65adbf937bc1f5c03435688945e436537805c692
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2004-11-12 Andrew Cagney <cagney@gnu.org>
2
3 * cris-tdep.c (cris_register_offset): Delete, never called.
4 (cris_spec_reg_applicable): Delete cris_ver_sim.
5 * MAINTAINERS: List d10v as OBSOLETE.
6 * rdi-share/host.h (FOPEN_WB): #ifdef 0 out definitions of
7 FOPEN_WB et.al., defined by "fopen-bin.h".
8
9 2004-11-12 Randolph Chung <tausq@debian.org>
10
11 * hppa-tdep.c (hppa_skip_permanent_breakpoint): Move definition ...
12 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): ... to here.
13 * config/pa/tm-hppa.h (SKIP_PERMANENT_BREAKPOINT): Move definition ...
14 * config/pa/tm-hppah.h (SKIP_PERMANENT_BREAKPOINT): ... to here.
15
16 2004-11-12 Mark Kettenis <kettenis@jive.nl>
17
18 * tui/tui-io.c: Don't include "terminal.h".
19 * Makefile.in (tui-io.o): Update dependencies.
20
21 2004-11-12 Kei Sakamoto <sakamoto.kei@renesas.com>
22
23 * Makefile.in (m32r-linux-tdep.o): Update dependencies.
24 * m32r-linux-tdep.c (m32r_linux_init_abi): Call
25 set_gdbarch_regset_from_core_section for core file support.
26 (m32r_linux_supply_gregset, m32r_linux_regset_from_core_section):
27 New functions.
28
29 2004-11-11 Randolph Chung <tausq@debian.org>
30
31 * hppa-tdep.c (skip_prologue_hard_way): Make static, add
32 stop_after_branch parameter and use it to determine if we should look
33 at the delay slot of the first branch insn to find prologue insns.
34 (hppa_skip_prologue): Update comment and call to skip_prologue_hard_way.
35 (hppa_frame_cache): Likewise.
36
37 2004-11-11 Randolph Chung <tausq@debian.org>
38
39 * hppa-tdep.c (hppa_frame_cache): Properly handle the frame pointer
40 register so that it can be unwound from anywhere in the prologue.
41
42 2004-11-10 msnyder <msnyder@redhat.com>
43
44 * rs6000-tdep.c (skip_prologue): After saving lr_offset,
45 must invalidate lr_reg (so we don't try to save it again).
46 Ditto for cr_offset and cr_reg.
47
48 2004-11-05 Jon Beniston <jon@beniston.com>
49
50 Committed by Andrew Cagney.
51 * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK
52 when an unexpected packet is received, as the target stubs
53 continually retransmit the same packet until ACKed.
54
55 2004-11-10 Randolph Chung <tausq@debian.org>
56
57 * frame.c (get_prev_frame): Use get_frame_type to retrieve the
58 frame's type.
59
60 2004-11-10 Randolph Chung <tausq@debian.org>
61
62 * blockframe.c (inside_entry_func): Move to .....
63 * frame.c (inside_entry_func): ... here, and make static.
64 (backtrace_past_entry): New flag.
65 (get_prev_frame): Stop backtrace at the entry function if enabled
66 by flag. Update comments.
67 (_initialize_frame): Add command to set backtrace_past_entry flag.
68 * defs.h (inside_entry_func): Remove prototype.
69
70 2004-11-10 Mark Kettenis <kettenis@gnu.org>
71
72 * dwarf2read.c: Fix formatting.
73
74 2004-11-10 Andrew Cagney <cagney@gnu.org>
75
76 * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
77 (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
78 macros with function declarations.
79 * value.c (coerce_ref, coerce_array, coerce_number)
80 (coerce_enum): New functions.
81 (value_as_long, value_as_address): Update.
82 * ada-lang.c (ada_coerce_ref, ada_value_binop)
83 (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
84 * jv-lang.c (evaluate_subexp_java): Update.
85 * valarith.c (value_less, value_neg, value_complement)
86 (value_binop, value_add, value_subscript, value_x_binop)
87 (value_logical_not, value_sub): Update.
88 * valops.c (check_field, value_struct_elt, value_ind)
89 (value_find_oload_method_list, value_cast, value_assign): Update.
90 * eval.c (evaluate_subexp_standard): Update.
91
92 2004-11-10 Mark Kettenis <kettenis@gnu.org>
93
94 * mips-tdep.c (mips32_relative_offset): Change return type to
95 LONGEST, change argument type to ULONGEST. Fix sign-extension.
96
97 2004-11-10 Randolph Chung <tausq@debian.org>
98
99 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
100 (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
101 (hppa_fetch_pointer_argument): Likewise.
102 (hppa_frame_cache): Use safe_frame_unwind_memory instead of
103 deprecated_read_memory_nobpt.
104 (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
105 add_set_cmd sequence with add_setshow_boolean_cmd.
106
107 2004-11-09 Andrew Cagney <cagney@gnu.org>
108
109 GDB 6.3 released from GDB 6.3 branch.
110
111 2004-11-09 Andrew Cagney <cagney@gnu.org>
112
113 * values.c: Rename to ...
114 * value.c: ..., new file.
115 * Makefile.in: Update.
116
117 2004-11-09 Daniel Jacobowitz <dan@debian.org>
118
119 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
120 size.
121
122 2004-11-09 Andrew Cagney <cagney@gnu.org>
123
124 * TODO: Delete.
125
126 * value.h (struct value): Delete field bfd_section.
127 (VALUE_BFD_SECTION): Delete macro.
128 (COERCE_REF): Update.
129 (value_at, value_at_lazy): Delete asection parameter.
130 * printcmd.c (print_formatted, x_command): Update.
131 (do_examine): Delete asection parameter.
132 (next_section): Delete variable.
133 * valops.c (value_cast, value_at, value_at_lazy)
134 (value_coerce_function, value_addr, value_ind, value_string)
135 (find_rt_vbase_offset, value_full_object): Update.
136 * hpacc-abi.c (hpacc_virtual_fn_field)
137 (hpacc_value_rtti_type): Update.
138 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field)
139 (gnuv3_baseclass_offset): Update.
140 * f-valprint.c (f_val_print): Update.
141 * c-valprint.c (c_val_print): Update.
142 * p-valprint.c (pascal_val_print): Update.
143 * jv-valprint.c (java_value_print): Update.
144 * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
145 * ada-lang.c (ada_value_primitive_packed_val)
146 (ada_evaluate_subexp): Update.
147 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
148 * expprint.c (print_subexp_standard): Update.
149 * infcall.c (call_function_by_hand): Update.
150 * valarith.c (value_add): Update.
151 * eval.c (evaluate_subexp_standard): Update.
152 * values.c (allocate_value, value_copy, value_static_field): Update.
153 * findvar.c (read_var_value, locate_var_value): Update.
154
155 2004-11-09 Andrew Cagney <cagney@gnu.org>
156
157 * i386-linux-tdep.c: Include "dwarf2-frame.h".
158 * Makefile.in: Update all dependencies.
159
160 2004-11-08 Andrew Cagney <cagney@gnu.org>
161
162 * sentinel-frame.c (sentinel_frame_prev_pc): New function.
163 (sentinel_frame_unwinder): Add the prev_pc method.
164 * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
165 available. Do not handle the sentinel-frame case.
166 * frame-unwind.h (frame_prev_register_ftype): Define.
167 (struct frame_unwind): Add prev_pc;
168
169 2004-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
170
171 * configure.in: Check for ncurses/term.h.
172 * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
173 * utils.c: Include gdb_curses.h instead of curses.h and term.h.
174 * tui/tui.c: Don't include term.h.
175 * configure, config.in: Rebuilt.
176
177 2004-11-08 Mark Kettenis <kettenis@gnu.org>
178
179 * m68kbsd-nat.c: Include "inf-ptrace.h".
180 (_initialize_m68kbsd_nat): Fix pasto.
181 * Makefile.in (m68kbsd-nat.o): Update dependencies.
182
183 2004-11-08 Randolph Chung <tausq@debian.org>
184
185 * infrun.c (debug_infrun): New variable.
186 (resume, proceed, wait_for_inferior): Annotate with debug messages.
187 (handle_inferior_event, keep_going): Likewise.
188 (_initialize_infrun): Register "set debug infrun" command.
189
190 2004-11-08 Andreas Schwab <schwab@suse.de>
191
192 * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
193 PTRACE_EVENT_VFORKDONE.
194 (child_follow_fork): Adjust.
195
196 2004-11-08 Andrew Cagney <cagney@gnu.org>
197
198 * README: Refer to 6.3, not 6.2, update directory listing droppng
199 references to intl/ and mmalloc/.
200 * PROBLEMS: Refer to 6.3 not 6.2.
201
202 * PROBLEMS: Delete no-longer applicable problems.
203
204 2004-11-07 Andrew Cagney <cagney@redhat.com>
205 Daniel Jacobowitz <dan@debian.org>
206 Roland McGrath <roland@redhat.com>
207
208 * Makefile.in (symfile-mem.o): Update dependencies.
209 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
210 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
211 * inf-ptrace.c (inf_ptrace_attach): Call
212 observer_notify_inferior_created.
213 * inftarg.c (child_attach): Likewise.
214 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
215 (symbol_file_add_from_memory): Take NAME argument. Use it for
216 the new BFD's filename.
217 (add_symbol_file_from_memory_command): Update call to
218 symbol_file_add_from_memory.
219 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
220 (symbol_file_add_from_memory_wrapper): New.
221 (_initialize_symfile_mem): Register add_vsyscall_page as an
222 inferior_created observer.
223
224 2004-11-07 Mark Kettenis <kettenis@gnu.org>
225
226 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
227 fetch_inferior_registers. Make static.
228 (m68kbsd_store_inferior_registers): Rename from
229 store_inferior_registers. Make static.
230 (_initialize_m68kbsd_nat): Construct and add target vector.
231 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
232 inftarg.o. Add inf-ptrace.o.
233 (NAT_FILE): Set to tm-solib.h.
234 (LOADLIBES): New variable.
235 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
236 inftarg.o. Add inf-ptrace.o.
237 (NAT_FILE): Delete variable.
238 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
239 inftarg.o. Add inf-ptrace.o.
240 (NAT_FILE): Set to tm-solib.h.
241 * config/m68k/nm-nbsdaout.h: Remove file.
242
243 2004-11-07 Daniel Jacobowitz <dan@debian.org>
244
245 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
246 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
247 (dwarf2_signal_frame_unwind): New.
248 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
249 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
250
251 2004-11-07 Mark Kettenis <kettenis@gnu.org>
252
253 * Makefile.in (mips64obsd-tdep.o): Fix typo.
254
255 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
256 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
257 to only include the structure members we actually need.
258 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
259 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
260 only include the structure members we actually need.
261 (mipsnbsd_init_abi): Update.
262
263 * mips64obsd-nat.c: Include "mips-tdep.h".
264 (MIPS64OBSD_NUM_REGS): Remove define.
265 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
266 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
267 floating-point registers correctly.
268 * Makefile.in (mips64obsd-nat.o): Update dependencies.
269
270 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
271 "gdb_assert.h".
272 (mips64obsd_sigframe_init): New function.
273 (mips64obsd_sigframe): New variable.
274 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
275 unwinder.
276 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
277
278 2004-11-06 Joel Brobecker <brobecker@gnat.com>
279
280 * alpha-mdebug-tdep.c: #include mdebugread.h.
281 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
282 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
283
284 2004-11-05 Andrew Cagney <cagney@gnu.org>
285
286 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
287 CFI and the init_reg method leave the register unspecified.
288 Include the register name in the "Incomplete CFI data" complaint.
289 Supress leading zeros in the address.
290
291 2004-11-05 Mark Kettenis <kettenis@gnu.org>
292
293 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
294 skipping a personality routine in a CIE augmentation.
295
296 2004-11-05 Jeff Johnston <jjohnstn@redhat.com>
297
298 * defs.h (fatal, vfatal): New function prototypes.
299 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
300 via catch_errors.
301 (backtrace_command): Change to call backtrace_command_stub via
302 catch_errors instead of calling backtrace_command_1 directly.
303 (backtrace_full_command): Ditto.
304 * utils.c (error_stream_1): New static function.
305 (verror): Change to call error_stream_1 instead of error_stream.
306 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
307 (vfatal, fatal): New functions.
308
309 2004-11-05 Andrew Cagney <cagney@gnu.org>
310
311 * stack.c (parse_frame_specification_1): Clear selected_frame_p
312 when not using selected frame.
313
314 2004-11-05 Mark Kettenis <kettenis@jive.nl>
315
316 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
317 personality routine in a CIE augmentation.
318
319 2004-11-05 Felix Lee <felix+log1@specifixinc.com>
320
321 * stack.c (set_current_sal_from_frame): New function.
322 (print_args_stub): Use it.
323 (print_frame_info): Don't set sal here.
324
325 2004-11-04 Mark Kettenis <kettenis@gnu.org>
326
327 * dwarf2-frame.c (read_encoded_value): Change type of third
328 argument to `unsigned char *'. Add support for LEB128 encodings.
329
330 2004-11-04 Jim Blandy <jimb@redhat.com>
331
332 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
333 prevent cross-objfile references.
334 (make_cv_type): Doc fix. Don't create cross-objfile references,
335 even for stub types.
336 (replace_type): Add assertion to prevent cross-objfile references.
337 (check_typedef): Never resolve a stub type by copying over a type
338 from another file.
339
340 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
341
342 * Makefile.in (m32r-tdep.o): Update dependencies.
343 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
344 ABI-specific overrides.
345
346 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
347
348 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
349 unnecessary parallel execution bit.
350 (m32r_memory_remove_breakpoint): Ditto.
351 (m32r_breakpoint_from_pc): Update.
352
353 2004-11-03 Randolph Chung <tausq@debian.org>
354
355 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
356 frame_func_unwind to locate the unwind entry.
357 (hppa_frame_this_id): Likewise.
358
359 2004-11-03 Andrew Cagney <cagney@gnu.org>
360
361 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
362 packet, obsolete configurations, end-of-life deprecated_registers.
363
364 2004-11-02 Mark Kettenis <kettenis@gnu.org>
365
366 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
367 encodings as well as unsigned encodings.
368
369 2004-11-02 Andrew Cagney <cagney@gnu.org>
370
371 * value.h (COERCE_VARYING_ARRAY): Delete.
372 * valops.c (value_cast, value_slice): Delete use.
373 * valarith.c (value_subscript, value_concat): Delete use.
374
375 2004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
376
377 * NEWS: GDB understands GNAT Ada.
378
379 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
380
381 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
382 (amd64-sol2-tdep.o): Add dependencies.
383 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
384 config/i386/sol2-64.mt: New files.
385 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
386 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
387 (supply_gregset): Correct order of arguments to
388 amd64_supply_native_gregset.
389 (fill_gregset): Correct order of arguments to
390 amd64_collect_native_gregset.
391 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
392 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
393 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
394 for definition of NEW_PROC_API.
395 * configure: Regenerate.
396
397 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
398
399 * MAINTAINERS (Write After Approval): Add myself.
400
401 2004-11-01 Andrew Cagney <cagney@gnu.org>
402
403 * configure.tgt: Mark d10v-*-* as obsolete.
404 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
405
406 2004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
407
408 * values.c (modify_field): Correct handling of bit-fields that
409 don't fit in 32 bits. Use unsigned operations throughout and
410 simplify the code a bit. Document preconditions.
411
412 2004-10-31 Andrew Cagney <cagney@gnu.org>
413
414 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
415 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
416 (in_plt_section): Delete.
417
418 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
419 (mips_gdbarch_init): Do not set same.
420
421 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
422 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
423
424 * gdbarch.sh (in_solib_call_trampoline): Delete.
425 * gdbarch.h, gdbarch.c: Re-generate.
426
427 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
428 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
429 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
430 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
431 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
432
433 2004-10-31 Mark Kettenis <kettenis@gnu.org>
434
435 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
436 (mipsnbsd_fetch_inferior_registers): Rename from
437 fetch_inferior_registers. Make static.
438 (mipsnbsd_store_inferior_registers): Rename from
439 store_inferior_registers. Make static.
440 (_initialize_mipsnbsd_nat): New function and prototype.
441 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
442 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
443 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
444 inf-ptrace.o.
445
446 2004-10-31 Andrew Cagney <cagney@gnu.org>
447
448 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
449 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
450 delete corresponding unused function.
451 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
452 in_solib_call_trampoline.
453 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
454 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
455 * config/mips/tm-nbsd.h: Ditto.
456 * config/arm/tm-linux.h: Ditto.
457 * config/mips/tm-linux.h: Ditto.
458
459 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
460 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
461 in_solib_call_trampoline, delete corresponding unused function.
462 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
463 (vaxnbsd_aout_init_abi): Ditto.
464 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
465 (sparc32nbsd_aout_init_abi): Ditto.
466 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
467 (ppc_linux_init_abi): Ditto.
468 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
469 (ns32knbsd_init_abi_aout): Ditto.
470 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
471 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
472 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
473 (m68kbsd_aout_init_abi): Ditto.
474 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
475 (i386_cygwin_init_abi): Ditto.
476 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
477 (i386bsd_init_abi): Ditto.
478
479 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
480 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
481 isn't used by this architecture.
482 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
483 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
484 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
485 * s390-tdep.c (s390_gdbarch_init): Ditto.
486 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
487 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
488 * i386-tdep.c (i386_svr4_init_abi): Ditto.
489 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
490 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
491 * amd64-tdep.c (amd64_init_abi): Ditto.
492
493 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
494 in_solib_call_trampoline to its default value of
495 generic_in_solib_call_trampoline.
496 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
497 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
498 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
499 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
500 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
501 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
502
503 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
504
505 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
506
507 * config/mips/tm-mips.h: Delete file.
508 * remote-mips.c: Delete tm-mips.h from comment.
509 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
510 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
511 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
512 * config/mips/tm-linux.h: Don't include tm-mips.h.
513 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
514 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
515 * config/mips/tm-wince.h: Don't include.
516
517 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
518 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
519 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
520 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
521
522 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
523 * mdebugread.c (ecoff_relocate_efi): Delete function.
524 * objfiles.c (objfile_relocate): Delete #ifdef
525 MDEBUG_EFI_SYMBOL_NAME code.
526
527 2004-10-31 Orjan Friberg <organ.friberg@axis.com>
528 Andrew Cagney <cagney@gnu.org>
529
530 * gdbarch.sh (single_step_through_delay): Add.
531 * gdbarch.h, gdbarch.c: Re-generate.
532 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
533 (mips_step_skips_delay): Delete.
534 * mips-tdep.c (mips_single_step_through_delay): Replace
535 mips_step_skips_delay.
536 (mips_gdbarch_init): Set single_step_through_delay.
537 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
538
539 2004-10-31 Mark Kettenis <kettenis@gnu.org>
540
541 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
542 from TRAMP_FRAME frame type.
543
544 2004-10-31 Andrew Cagney <cagney@gnu.org>
545
546 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
547
548 * mips-tdep.c (mips_ignore_helper): Delete.
549 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
550 * infrun.c (handle_inferior_event): Delete #ifdef
551 DEPRECATED_IGNORE_HELPER_CALL code.
552
553 * config/mips/tm-mips.h (RA_REGNUM): Delete.
554
555 2004-10-31 Mark Kettenis <kettenis@gnu.org>
556
557 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
558 (fill_fpregset): Do not compile for 64-bit systems.
559 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
560 * Makefile.in (i386-sol2-nat.o): Update dependencies.
561 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
562
563 2004-10-30 Andrew Cagney <cagney@gnu.org>
564
565 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
566 (struct mdebug_extra_func_info): Define.
567 * config/alpha/tm-alpha.h: Delete same.
568 * config/mips/tm-mips.h: Delete same.
569 * mdebugread.c: Delete same.
570 * Makefile.in: Update dependencies.
571 * mips-mdebug-tdep.c: Include "mdebugread.h".
572
573 * objfiles.c: Include "mdebugread.h".
574 * mdebugread.c: Include "mdebugread.h".
575 (ecoff_relocate_cfi): Delete.
576 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
577 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
578 * mdebugread.h (ecoff_relocate_efi): New file.
579 * Makefile.in: Update dependencies.
580
581 * mips-tdep.c (struct frame_extra_info): Delete.
582 (temp_proc_desc): Delete.
583
584 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
585 MIPS_EFI_SYMBOL_NAME.
586 (mips_extra_func_info_t, mips_extra_func_info): Delete.
587 (struct mdebug_extra_func_info): Replace struct
588 alpha_extra_func_info and alpha_extra_func_info_t.
589 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
590 MIPS_EFI_SYMBOL_NAME.
591 (struct mdebug_extra_func_info): Replace struct
592 alpha_extra_func_info and alpha_extra_func_info_t.
593 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
594 * mdebugread.c, alpha-mdebug-tdep.c:
595
596 Suggested by Mark Kettenis.
597 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
598 fields frame_adjust and high_addr.
599 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
600 (non_heuristic_proc_desc): Delete references.
601
602 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
603 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
604 * mips-tdep.c: Update.
605
606 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
607 (MIPS_LAST_EMBED_REGNUM): Add.
608 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
609 (LAST_EMBED_REGNUM): Delete.
610 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
611
612 * config/mips/tm-mips.h (PS_REGNUM): Delete.
613 * mips-tdep.h (MIPS_PS_REGNUM): Add.
614 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
615 * mips-linux-nat.c: Update.
616
617 * mips-tdep.h: Add comments on registers.
618 (MIPS_UNUSED_REGNUM): Define.
619 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
620 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
621 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
622 * mips-linux-nat.c, remote-mips.c: Update.
623
624 * config/mips/tm-mips.h (t_insn): Delete.
625 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
626 Replace t_insn with ULONGEST.
627
628 2004-10-30 Mark Kettenis <kettenis@gnu.org>
629
630 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
631 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
632 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
633 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
634 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
635 (mipsnbsd_core_osabi_sniffer): New function.
636 (mipsnbsd_init_abi): Set regset_from_core_section.
637 (_initialize_mipsnbsd_tdep): Remove calls to
638 deprecated_add_core_fns.
639 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
640 (mipsnbsd_regset_from_core_section): New functions.
641 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
642 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
643
644 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
645 Remove optimization for DEPRECATED_FP_REGNUM.
646
647 2004-10-30 Andrew Cagney <cagney@gnu.org>
648
649 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
650 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
651 (alpha_setup_arbitrary_frame): Delete.
652 * mips-tdep.c (setup_arbitrary_frame): Delete.
653 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
654 (setup_arbitrary_frame): Delete.
655 * stack.c (parse_frame_specification_1): When specified, call
656 create_new_frame with two parameters. Delete #ifdef
657 SETUP_ARBITRARY_FRAME.
658
659 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
660 (MIPS_INSTLEN): Delete.
661 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
662 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
663 * remote-mips.c, mips-tdep.c: Update.
664
665 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
666 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
667 * mips-tdep.c (mips_mdebug_frame_cache)
668 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
669 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
670 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
671 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
672 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
673 (mips_gdbarch_init): Do not append mdebug sniffers.
674 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
675 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
676 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
677 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
678 * Makefile.in: Update dependencies.
679
680 * mips-tdep.h (mips_abi_regsize): Declare.
681 * mips-tdep.c (mips_abi_regsize): Make non-static.
682
683 * mips-tdep.c (gdb_print_insn_mips): Simplify.
684 (make_mips16_addr): Delete.
685
686 2004-10-30 Mark Kettenis <kettenis@gnu.org>
687
688 * i386-sol2-nat.c: New file.
689 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
690 i386-sol2-tdep.c.
691 (i386-sol2-nat.o): Update dependencies.
692 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
693 i386-sol2-nat.o.
694
695 2004-10-30 Andrew Cagney <cagney@gnu.org>
696
697 Total breakage identified by Joel Brobecker.
698 * mips-tdep.c (after_prologue): Delete.
699 (mips_skip_prologue): Use skip_prologue_using_sal.
700 (heuristic_proc_desc): Delete, unused.
701
702 2004-10-30 Mark Kettenis <kettenis@gnu.org>
703
704 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
705 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
706 Cleanup coding style.
707
708 2004-10-30 Andrew Cagney <cagney@gnu.org>
709
710 * mips-tdep.h (mips_pc_is_mips16): Declare.
711 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
712 non-static. Update calls.
713
714 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
715 * command.h (add_setshow_enum_cmd): Declare.
716 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
717
718 * mips-tdep.c (_initialize_mips_tdep): Use
719 add_setshow_zinteger_cmd.
720
721 * mips-tdep.c (mips_eabi_extract_return_value)
722 (mips_o64_extract_return_value, mips_o64_store_return_value)
723 (return_value_location, mips_eabi_reg_struct_has_addr)
724 (mips_eabi_use_struct_convention)
725 (mips_eabi_store_return_value): Delete.
726 (mips_eabi_store_return_value): New function.
727 (mips_eabi_return_value): New function.
728 (mips_gdbarch_init): For O64 and EABI, delete
729 extract_return_value, store_return_value, use_struct_convention
730 and reg_struct_has_addr, add return_value.
731
732 * mips-tdep.c (read_signed_register): Use
733 regcache_cooked_read_signed.
734
735 2004-10-30 Mark Kettenis <kettenis@gnu.org>
736
737 * mipsread.c: Cleanup coding style.
738 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
739 (mipscoff_symfile_finish): Remove prototypes.
740
741 2004-10-29 Mark Kettenis <kettenis@gnu.org>
742
743 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
744 (mips_mdebug_frame_cache, mips16_scan_prologue)
745 (mips32_scan_prologue, mips_stub_frame_cache)
746 (heuristic_proc_start, heuristic_proc_desc)
747 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
748 (mips_n32n64_return_value, mips_o32_push_dummy_call)
749 (mips_o32_return_value, mips_o64_push_dummy_call)
750 (mips_step_skips_delay, mips_skip_trampoline_code)
751 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
752 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
753 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
754 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
755 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
756 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
757 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
758 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
759 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
760 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
761 ZERO_REGNUM.
762 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
763 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
764 ZERO_REGNUM.
765 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
766 A0_REGNUM.
767 * mipsnbsd-nat.c: Include "mips-tdep.h".
768 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
769 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
770
771 2004-10-29 Andrew Cagney <cagney@gnu.org>
772
773 * stack.c (parse_frame_specification_1): New function based on
774 parse_frame_specification. Add message and selected_frame_p
775 paramters. Truely always return non-NULL.
776 (parse_frame_specification): Call parse_frame_specification_1.
777 (frame_info): Update. Eliminate target_has_stack check.
778 (select_frame_command): Update.
779
780 2004-10-29 Andrew Cagney <cagney@gnu.org>
781
782 * frame.h (get_selected_frame): Add message parameter.
783 * frame.c (get_selected_frame): Add and use message parameter.
784 * stack.c (current_frame_command, return_command, locals_info)
785 (catch_info, args_info, up_silently_base, down_silently_base): Use
786 get_selected_frame with an explicit message.
787 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
788 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
789 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
790 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
791 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
792 * breakpoint.c: Update.
793
794 2004-10-29 Andrew Cagney <cagney@gnu.org>
795
796 * trad-frame.c (trad_frame_get_prev_register): Use
797 frame_unwind_register instead of frame_register_unwind, do not
798 recurse the register's location.
799 * xstormy16-tdep.c (xstormy16_frame_prev_register):
800 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
801 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
802 * sh-tdep.c (sh_frame_prev_register): Ditto.
803 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
804 * i386-tdep.c (i386_frame_prev_register): Ditto.
805 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
806 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
807
808 2004-10-28 Mark Kettenis <kettenis@jive.nl>
809
810 * proc-events.c: Fix several coding-style issues. Consistently
811 use #ifdef instead of #if defined().
812 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
813 ARRAY_SIZE.
814 (_initialize_proc_events): New prototype.
815
816 * proc-why.c: Fix several coding-style issues.
817 (proc_prettyfprint_why): Use ARRAY_SIZE.
818
819 2004-10-27 Jim Blandy <jimb@redhat.com>
820
821 * remote.c (fetch_register_using_p): Construct 'p' packet in a
822 manner independent of the host byte order.
823
824 2004-10-27 Mark Kettenis <kettenis@gnu.org>
825
826 * mips-tdep.c (id_delayed): Remove prototype.
827
828 2004-10-26 Mark Kettenis <kettenis@gnu.org>
829
830 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
831 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
832 to enum with register numbers.
833 (enum mips_insn_size): New enum.
834
835 2004-10-26 Andrew Cagney <cagney@gnu.org>
836
837 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
838 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
839 (mips_gdbarch_init): Update.
840 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
841
842 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
843 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
844 IN_SOLIB_RETURN_TRAMPOLINE.
845 * mips-tdep.c (mips_dump_tdep): Do not print
846 IN_SOLIB_RETURN_TRAMPOLINE.
847 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
848 (mips_gdbarch_init): Update.
849
850 * mips-tdep.h (mips_software_single_step): Move to here ...
851 * config/mips/tm-mips.h: ... from here.
852 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
853 (SOFTWARE_SINGLE_STEP): Delete.
854 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
855
856 2004-10-25 Andrew Cagney <cagney@gnu.org>
857
858 * NEWS: Add Changes since GDB 6.3 section.
859
860 2004-10-23 Andreas Schwab <schwab@suse.de>
861
862 * ada-lang.c (grow_vect): Return the new array instead of
863 expecting pointer to pointer to avoid violation of aliasing rules.
864 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
865
866 2004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
867
868 * s390-tdep.c (enum pv_boolean): Remove.
869 (pv_is_array_ref): Remove.
870 (s390_on_stack): Remove.
871 (S390_NUM_SPILL_SLOTS): Remove.
872 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
873 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
874 (s390_store): Track all stores of orginal incoming registers to the
875 stack constant offsets relative to the CFA, instead of only tracking
876 stores into specific spill slots.
877 (s390_load): Likewise.
878 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
879 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
880 defined as call-saved by the ABI.
881 (s390_push_dummy_call): Use bottom of dummy call argument save area
882 as return value, not the top. Do not store to the called function's
883 register save area.
884 (s390_unwind_dummy_id): Adapt accordingly.
885
886 2004-10-23 Andrew Cagney <cagney@gnu.org>
887
888 * objfiles.h (struct objfile): Rename obj_private to
889 deprecated_obj_private, sym_private to deprecated_sym_private, and
890 sym_stab_info to deprecated_sym_stab_info.
891 * gdb-stabs.h: Update.
892 * elfread.c: Update.
893 * dbxread.c: Update.
894 * coffread.c: Update.
895 * xcoffread.c: Update.
896 * symfile.c: Update.
897 * somread.c: Update.
898 * nlmread.c: Update.
899 * mdebugread.c: Update.
900 * hpread.c: Update.
901 * coffread.c: Update.
902
903 2004-10-23 Mark Kettenis <kettenis@gnu.org>
904
905 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
906 * configure.host: Add mips64*-*-openbsd*.
907 * configure.tgt: Add mips64*-*-openbsd*.
908 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
909 mips64obsd-tdep.c.
910 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
911 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
912
913 2004-10-21 Joel Brobecker <brobecker@gnat.com>
914
915 * symtab.c (symbol_search_name): Minor reformatting.
916
917 2004-10-20 Joel Brobecker <brobecker@gnat.com>
918
919 * symtab.h: Fix typo in comment.
920
921 2004-10-19 Mark Kettenis <kettenis@gnu.org>
922
923 * dwarf2read.c (struct comp_unit_head): Fix coding style.
924 (dwarf_decode_line_header): Likewise.
925
926 2004-10-19 Michael Chastain <mec.gnu@mindspring.com>
927
928 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
929
930 2004-10-19 Andrew Cagney <cagney@gnu.org>
931
932 GDB 6.3 branch created.
933 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
934
935 2004-10-15 Joel Brobecker <brobecker@gnat.com>
936
937 * dwarf2read.c (set_cu_language): Set language to Ada for
938 DW_LANG_Ada83 and DW_LANG_Ada95.
939
940 2004-10-15 Michael Chastain <mec.gnu@mindspring.com>
941
942 From Andreas Schwab <schwab@suse.de>:
943 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
944 for xmalloc and xrealloc.
945
946 2004-10-15 Andrew Cagney <cagney@gnu.org>
947
948 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
949 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
950 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
951 Update dependencies.
952
953 2004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
954
955 * ada-lang.c (ada_lookup_symbol): Correct comment.
956 (ada_evaluate_subexp): Change error message for
957 OP_FUNCALL case so as not to indicate an internal error.
958
959 2004-10-15 Joel Brobecker <brobecker@gnat.com>
960
961 Committed by Paul Hilfinger.
962 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
963 type sizes in XVE/XVU types, and emit a warning when that happens,
964 instead of rounding up the size of the resulting type.
965 Some minor reformatting.
966 (ada_is_aligner_type): Do not consider a type as an aligner type
967 if there is a corresponding XVS type as well.
968 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
969 have several levels of pointer indirection to the array.
970
971 2004-10-15 Jerome Guitton <guitton@gnat.com>
972
973 Committed by Paul Hilfinger.
974 * ada-lang.c (check_size): New function.
975 (coerce_unspec_val_to_type): call check_size to make sure
976 that the object size is reasonable.
977 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
978 Implements the case when we get a reference when we evaluate
979 the expression of one of the bounds of the slice.
980 (ada_value_struct_elt): when a packed array field is
981 a reference, use ada_coerce_ref to dereference it; use
982 ada_value_ind only if it is a pointer.
983
984 2004-10-15 Joel Brobecker <brobecker@gnat.com>
985
986 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
987 a bit to avoid the necessity of an advance declaration. Remove
988 declaration.
989 (set_reg_offset): Move implemenation up.
990 (mips16_get_imm): Likewise.
991 (mips16_scan_prologue): Likewise.
992 (reset_saved_regs): Likewise.
993 (mips32_scan_prologue): Likewise.
994
995 2004-10-14 Joel Brobecker <brobecker@gnat.com>
996
997 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
998 Remove sp as a parameter, compute it internally instead. Move
999 prologue scanning limit from heuristic_proc_desc to here.
1000 (mips16_scan_prologue): Likewise.
1001 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
1002 by call to mips16_scan_prologue.
1003 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
1004 by call to mips32_scan_prologue.
1005 (heuristic_proc_desc): Remove code that's no longer necessary.
1006 Update calls to mips16_scan_prologue and mips32_scan_prologue.
1007 (mips_skip_prologue): Update calls to mips16_scan_prologue
1008 and mips32_scan_prologue.
1009
1010 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1011
1012 * mips-tdep.c (mips16_scan_prologue): Merge code from
1013 mips16_skip_prologue. Now return the address of the first
1014 instruction past the function prologue.
1015 (mips16_skip_prologue): Remove, no longer necessary.
1016 (mips_skip_prologue): Replace call to mips16_skip_prologue
1017 by call to mips16_scan_prologue.
1018
1019 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1020
1021 * mips-tdep.c (mips32_scan_prologue): Merge code from
1022 mips32_skip_prologue. Now return the address of the first
1023 instruction past the function prologue.
1024 (mips32_skip_prologue): Remove. No longer necessary.
1025 (mips16_skip_prologue): Add parameter end_pc instead of
1026 computing it.
1027 (mips_skip_prologue): Compute the upper limit for the
1028 prologue scanning. Update call to mips16_skip_prologue.
1029 Replace call to mips32_skip_prologue by call to
1030 mips32_scan_prologue.
1031
1032 2004-10-14 Mark Kettenis <kettenis@gnu.org>
1033
1034 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
1035 NetBSD system call stubs that store %rp in the ERP slot of the
1036 stack frame.
1037
1038 * source.c: Always define O_BINARY to 0 if not defined already.
1039 (openp): Unconditionally use O_BINARY.
1040
1041 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
1042 * event-top.c (gdb_readline2): Likewise.
1043
1044 2004-10-14 Orjan Friberg <orjanf@axis.com>
1045
1046 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
1047 deprecated_add_core_fns which was removed by mistake.
1048
1049 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1050
1051 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
1052 references to deprecated_registers[] with equivalent code.
1053
1054 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1055
1056 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
1057 ``deprecated_registers'' with equivalent code. Use gdb_assert()
1058 instead of explicit test and print statement.
1059
1060 2004-10-12 Mark Kettenis <kettenis@gnu.org>
1061
1062 * sparc-nat.c: Include "inf-ptrace.h".
1063 (sparc_target): New function.
1064 * sparc-nat.h: Update copyright year.
1065 (sparc_target): New prototype.
1066 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
1067 (_initialize_sparcnbsd_nat): Construct and add target vector.
1068 * sparc64nbsd-nat.c: Include "target.h".
1069 (_initialize_sparc64nbsd_nat): Construct and add target vector.
1070 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
1071 Update dependencies.
1072 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
1073 inftarg.o, add inf-ptrace.o.
1074 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1075 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
1076 (NAT_FILE): Set to nm-bsd.h.
1077 (LOADLIBES): New variable.
1078 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1079 infarg.o, add inf-ptrace.o.
1080 * config/sparc/nm-nbsdaout.h: Remove file.
1081 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
1082 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
1083 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
1084
1085 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
1086 "fopen-same.h". Update comment.
1087
1088 2004-10-11 Mark Kettenis <kettenis@gnu.org>
1089
1090 * i386gnu-nat.c: Include "gdb_string.h".
1091 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
1092 registers when the floating-point state isn't initialized.
1093 * Makefile.in (i386gnu-nat.o): Update dependencies.
1094
1095 2004-10-11 David Anderson <davea@sgi.com>
1096
1097 * regcache.c (regcache_raw_read): Comment was missing "to".
1098 Extraneous ' removed.
1099 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
1100 comment now describes use.
1101
1102 2004-10-11 Orjan Friberg <orjanf@axis.com>
1103
1104 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
1105 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
1106 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
1107 (cris_sigtramp_frame_sniffer): New functions.
1108 (cris_gdbarch_init): Hook in signal trampoline unwinder.
1109 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
1110 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
1111 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
1112 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
1113 command.
1114 (cris_version_update): Remove, replace with ...
1115 (set_cris_version): New function.
1116 (struct gdbarch_tdep, cris_mode, cris_mode_update)
1117 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
1118 (_initialize_cris_tdep): Remove CRIS mode command.
1119 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
1120 cris-fpless-backtrace command.
1121 (cris_scan_prologue): Fix prologue scanning limit.
1122 (cris_register_type): Update to reflect actual registers.
1123 (cris_register_bytes_ok) Remove.
1124 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
1125 Remove set_gdbarch_deprecated_register_size,
1126 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
1127
1128 2004-10-10 Andrew Cagney <cagney@gnu.org>
1129
1130 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
1131 comment.
1132
1133 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1134
1135 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
1136
1137 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1138
1139 * mips-tdep.c (mips16_scan_prologue): Renames
1140 mips16_heuristic_proc_desc. Update comment.
1141 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
1142 (heuristic_proc_desc): Update calls to the 2 functions above.
1143
1144 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1145
1146 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
1147 Update comments. Also immediately return empty cache when the start
1148 address of our function could not be found.
1149 (mips_insn32_frame_cache): Likewise.
1150
1151 2004-10-10 Joel Brobecker <brobecker@gnat.com>
1152
1153 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
1154 (mips_insn16_frame_cache): Pass frame cache in call to
1155 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
1156 Remove code that became redundant as a consequence.
1157 (mips32_heuristic_proc_desc): No longer compute a fake
1158 procedure descriptor. Compute the full frame cache instead.
1159 Some minor comment reformatting.
1160
1161 2004-10-10 Jim Blandy <jimb@redhat.com>
1162
1163 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
1164 reader, tracing bytecode stuff): Remove self.
1165
1166 2004-10-10 Mark Kettenis <kettenis@gnu.org>
1167
1168 * sparc64-linux-tdep.c: Update copyright year. Don't include
1169 "solib-svr4.h".
1170 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
1171 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1172 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
1173
1174 * sparc-linux-tdep.c: Update copyright year.
1175 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
1176 to struct frame_info *. Use safe_frame_unwind_memory instead of
1177 deprecated_read_memory_nobpt.
1178 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
1179 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
1180 changed signature of sparc_linux_sigtramp_start.
1181 (sparc32_linux_pc_in_sigtramp): Remove function.
1182 (sparc32_linux_sigtramp_p): New function.
1183 (sparc32_linux_sigtramp_frame_sniffer): Use
1184 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
1185
1186 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
1187 Remove function.
1188 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
1189
1190 * ada-lang.c (lim_warning): Re-implement as a varargs function.
1191 (decode_packed_array_type, value_subscript_packed)
1192 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
1193 argument in call to lim_warning.
1194
1195 * configure.in: Really disable the TUI if an enhanced curses
1196 library isn't found.
1197 * configure: Regenerate.
1198
1199 2004-10-09 Mark Kettenis <kettenis@gnu.org>
1200
1201 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
1202 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
1203 * config/i386/nm-nbsdaout.h: Remove file.
1204 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
1205 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
1206 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
1207 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
1208 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
1209 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
1210 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
1211 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
1212 (ldd, ld_un, ld_2): Remove defines.
1213 * config/i386/nm-obsd.h: Likewise.
1214
1215 2004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
1216
1217 * ada-lex.l: Remove useless rule whose right-context clause
1218 causes unreferenced static function warning for yyrealloc.
1219 (ada_flex_use): Remove the artificial reference to yyrealloc.
1220
1221 2004-10-08 Andrew Cagney <cagney@gnu.org>
1222
1223 * target.h (struct target_ops): Rename to_xfer_memory to
1224 deprecated_xfer_memory.
1225 * target.c: Update.
1226 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
1227 * wince.c: Update.
1228 * win32-nat.c: Update.
1229 * v850ice.c: Update.
1230 * uw-thread.c: Update.
1231 * thread-db.c: Update.
1232 * sol-thread.c: Update.
1233 * remote.c: Update.
1234 * remote-vx.c: Update.
1235 * remote-st.c: Update.
1236 * remote-sim.c: Update.
1237 * remote-sds.c: Update.
1238 * remote-rdp.c: Update.
1239 * remote-rdi.c: Update.
1240 * remote-mips.c: Update.
1241 * remote-m32r-sdi.c: Update.
1242 * remote-e7000.c: Update.
1243 * procfs.c: Update.
1244 * ppc-bdm.c: Update.
1245 * nto-procfs.c: Update.
1246 * monitor.c: Update.
1247 * linux-nat.c: Update.
1248 * inftarg.c: Update.
1249 * hpux-thread.c: Update.
1250 * go32-nat.c: Update.
1251 * gnu-nat.c: Update.
1252 * exec.c: Update.
1253 * corelow.c: Update.
1254 * bsd-kvm.c: Update.
1255 * aix-thread.c: Update.
1256
1257 2004-10-08 Andrew Cagney <cagney@gnu.org>
1258
1259 * target.c (debug_target): Move to near start of file.
1260 (target_stopped_data_address_p): Re-org logic, add casts.
1261
1262 2004-10-02 Mark Kettenis <kettenis@gnu.org>
1263
1264 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
1265 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
1266 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
1267 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
1268 New defines.
1269
1270 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
1271
1272 * target.h (to_stopped_data_address): Change prototype to
1273 take a CORE_ADDR pointer and return an int.
1274 * target.c (update_current_target): Change to_stopped_data_address
1275 to match new prototype.
1276 (debug_to_stopped_data_address): Change appropriately.
1277 * breakpoint.c (bpstat_stop_status): Change call to
1278 target_stopped_data_address to use new prototype.
1279 * frv-tdep.c (frv_have_stopped_data_address): New function.
1280 (frv_stopped_data_address): Change to new prototype and
1281 functionality.
1282 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
1283 prototype and functionality.
1284 (ia64_stopped_by_watchpoint): New function.
1285 * i386-nat.c (i386_stopped_data_address): Change to new
1286 prototype and functionality.
1287 (i386_stopped_by_watchpoint): New function.
1288 * remote.c (remote_stopped_data_address): Change to new prototype
1289 and functionality.
1290 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
1291 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
1292 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
1293 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
1294 new i386_stopped_by_watchpoint function.
1295 (i386_stopped_by_watchpoint): New prototype.
1296 (i386_stoppped_data_address): Change to new prototype.
1297 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
1298 new ia64_stopped_by_watchpoint function.
1299 (ia64_stopped_by_watchpoint): New prototype.
1300 (ia64_stopped_data_address): Ditto.
1301
1302 2004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
1303
1304 * ada-typeprint.c (ada_print_type): Use int_string for printing
1305 modulus of modular type.
1306 * ada-lang.h (ada_modulus): Change return type to unsigned.
1307 * ada-lang.c (ada_language_arch_info): Correct type of
1308 string_char_type.
1309 (ada_modulus): Return unsigned result.
1310 (ada_lookup_symbol): Remove user disambiguation and modify comment
1311 accordingly.
1312
1313 2004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
1314
1315 Committed by Paul Hilfinger.
1316 * ada-lang.c (decode_packed_array): On big-endian targets,
1317 left-justify the value if it comes with a modular type.
1318
1319 2004-10-08 Joel Brobecker <brobecker@gnat.com>
1320
1321 Committed by Paul Hilfinger.
1322 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
1323 (is_name_suffix): Add support for "___JM" suffixes.
1324 (ada_check_typedef): Renames ada_completed_type.
1325 Update all users of CHECK_TYPEDEF, check_typedef, and
1326 ada_complete_type to call ada_check_typedef.
1327 * ada-typeprint.c: Likewise.
1328 * ada-valprint.c: Likewise.
1329
1330 2004-10-08 Corinna Vinschen <vinschen@redhat.com>
1331
1332 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
1333
1334 2004-10-08 Nick Roberts <nickrob@snap.net.nz>
1335
1336 * MAINTAINERS: Update e-mail address.
1337
1338 2004-10-07 Daniel Jacobowitz <dan@debian.org>
1339
1340 From Maciej W. Rozycki <macro@mips.com>:
1341 * mips-tdep.c (mips32_next_pc): Check the register's contents,
1342 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
1343
1344 2004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
1345
1346 * m32r-tdep.c (decode_prologue): Support functions written
1347 in assembler language. Recognize trap instructions as the
1348 end of prologue.
1349 (m32r_frame_unwind_cache): Ditto.
1350 (m32r_skip_prologue): Extend search limit. Quit analyzing
1351 prologue if pc's location is not readable.
1352
1353 2004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
1354
1355 * Makefile.in (.l.c): Do conversions of names of alloc and free
1356 functions that are done for .y.c files, plus special one
1357 for yy_flex_realloc. Also, correct missing-file tests here.
1358 * ada-lex.l (malloc, free): Remove macros.
1359 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
1360 xrealloc.
1361 (ada_flex_use): Dummy definition to remove warnings about unused
1362 functions.
1363 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
1364 to suppress warning.
1365
1366 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1367
1368 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
1369 RETURN_VALUE.
1370 (sh_return_value_fpu): Ditto for CPUs with FPU.
1371 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
1372 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
1373 Install sh_return_value_nofpu resp. sh_return_value_fpu as
1374 RETURN_VALUE functions.
1375
1376 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1377
1378 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
1379 (sh_pseudo_register_write): Ditto.
1380
1381 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1382
1383 * sh-tdep.c (IS_MACL_STS): New define.
1384 (IS_MOVI20): Ditto.
1385 (IS_MACL_LDS): Ditto.
1386 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
1387 instructions in prologue.
1388 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
1389 instructions in epilogue.
1390
1391 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1392
1393 * sh-tdep.c (SH_NUM_REGS): Define as 67.
1394 (sh_sh_register_name): Add eight empty register names.
1395 (sh_sh3_register_name): Ditto.
1396 (sh_sh3e_register_name): Ditto.
1397 (sh_sh2e_register_name): Ditto.
1398 (sh_sh2a_register_name): New function, defining SH2A register set.
1399 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
1400 in nofpu case.
1401 (sh_sh_dsp_register_name): Add eight empty register names.
1402 (sh_sh3_dsp_register_name): Ditto.
1403 (sh_sh4_register_name): Ditto.
1404 (sh_sh4_nofpu_register_name): Ditto.
1405 (sh_sh4al_dsp_register_name): Ditto.
1406 (sh2a_show_regs): New function.
1407 (sh2a_nofpu_show_regs): New function.
1408 (sh_sh2a_register_type): New function.
1409 (do_bank_register_info): New function.
1410 (sh_print_pseudo_register): Call do_bank_register_info.
1411 Call sh_print_pseudo_register for valid "bank" register.
1412 (sh_sh2a_register_sim_regno): New function.
1413 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
1414 Increment pseudo register count by one for all sh variants with
1415 pseudo registers to accomodate pseudo bank register.
1416 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
1417 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
1418 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
1419 Increment pseudo register numbers.
1420
1421 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
1422
1423 * dwarf2read.c (read_subroutine_type): Call make_function_type
1424 instead of lookup_function_type.
1425
1426 2004-10-05 Jim Blandy <jimb@redhat.com>
1427
1428 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
1429 (Previous change missed some uses.)
1430
1431 2004-10-05 Andrew Cagney <cagney@gnu.org>
1432
1433 * target.h (deprecated_child_ops): Rename child_ops.
1434 * wince.c: Update copyright. Rename child_ops.
1435 * win32-nat.c: Rename child_ops.
1436 * target.c: Rename child_ops.
1437 * rs6000-nat.c: Rename child_ops.
1438 * linux-nat.c: Rename child_ops.
1439 * infttrace.c: Rename child_ops.
1440 * inftarg.c: Rename child_ops.
1441 * infptrace.c: Rename child_ops.
1442 * hppah-nat.c: Update copyright. Rename child_ops.
1443 * hpux-thread.c: Update copyright. Rename child_ops.
1444
1445 2004-10-05 Daniel Jacobowitz <dan@debian.org>
1446
1447 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
1448
1449 2004-10-05 Andrew Cagney <cagney@gnu.org>
1450
1451 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
1452
1453 2004-10-05 Daniel Jacobowitz <dan@debian.org>
1454
1455 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
1456 (die_ref_table): Remove.
1457 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
1458 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
1459 the usage of this type.
1460 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
1461 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
1462 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
1463 (dwarf2_create_include_psymtab): Update comment.
1464 (find_partial_die): Remove third argument. Remove unreachable call
1465 to error ().
1466 (dwarf2_find_containing_comp_unit): Update comments. Change one
1467 assertion to an error. Remove an unreachable error.
1468 (dwarf2_find_comp_unit): Update comments.
1469 (type_at_offset): Remove dead code.
1470 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
1471 (store_in_ref_table): Add CU argument.
1472 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
1473 inter-compilation-unit references.
1474 (load_full_comp_unit, process_full_comp_unit): New functions, based
1475 on psymtab_to_symtab_1.
1476 (psymtab_to_symtab_1): Use them.
1477 (dwarf2_add_dependence): New function.
1478 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
1479 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
1480 (partial_die_parent_scope, guess_structure_name): Update for changes
1481 to find_partial_die.
1482 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
1483 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
1484 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
1485 (read_die_and_children): Update call to store_in_ref_table.
1486 (do_free_die_list_cleanup): Remove.
1487 (fixup_partial_die): Update for changes to find_partial_die.
1488 (read_full_die): Handle queueing absolute references.
1489 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
1490 (dwarf2_attr, die_specification, die_type)
1491 (die_containing_type, dwarf2_extension): Update calls to
1492 follow_die_ref.
1493 (dump_die): Update DW_FORM_ref* handling.
1494 (dwarf2_get_ref_die_offset): Likewise.
1495 (free_one_comp_unit): Release the dies list.
1496 (dwarf2_mark_helper): New function.
1497 (dwarf2_mark): Use it.
1498
1499 2004-10-05 Mark Kettenis <kettenis@jive.nl>
1500
1501 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
1502 when writing to memory.
1503
1504 2004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
1505
1506 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
1507 (m32r_extract_struct_value_address): Delete function.
1508 (m32r_return_value): New function.
1509 (m32r_gdbarch_init): Instead of store_return_value,
1510 extract_return_value, deprecated_extract_struct_value_address
1511 and deprecated_use_struct_convention, set return_value.
1512
1513 2004-10-03 Daniel Jacobowitz <dan@debian.org>
1514
1515 * dwarf2read.c (read_subrange_type): Add comment for variable
1516 sized arrays.
1517
1518 2004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
1519
1520 * Makefile.in (.l.c): Modify rule for compatibility with recent
1521 versions of flex, and remove most command-line options.
1522 * ada-lex.l: Add %options line in place of -I -i and -s command-line
1523 options.
1524
1525 2004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
1526
1527 Turn on initial Ada support (mainly expression evaluation).
1528
1529 * Makefile.in (SFILES): Remove ada-tasks.c.
1530 (HFILES_NO_SRCDIR): Add ada-lang.h.
1531 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
1532 (YYOBJ): Add ada-exp.o.
1533 (rule .l.c): Generalize to not mention ada.
1534 * symtab.c: Include ada-lang.h.
1535 (symbol_natural_name, symbol_demangled_name)
1536 (symbol_search_name): Add Ada case.
1537
1538 2004-10-01 Andrew Cagney <cagney@gnu.org>
1539
1540 * Makefile.in (COMMON_OBS): Add inf-child.o.
1541 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
1542 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1543 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1544 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
1545 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
1546 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
1547 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
1548 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
1549 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
1550 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
1551 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
1552 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
1553 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
1554
1555 * target.c (xfer_using_stratum): Change return type to LONGEST.
1556 On each iteration offset, readbuf and writebuf.
1557 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
1558 partial_length, and read/modify/write predicate, update comments.
1559 Pass buffer.word to ptrace write.
1560
1561 2004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1562
1563 * symfile.c (init_filename_language_table): Add extensions for
1564 Ada.
1565 * defs.h (enum language): Add language_ada.
1566 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
1567 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
1568 (add_symbols_from_enclosing_procs): Make a no-op for now.
1569 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
1570 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
1571 (find_line_in_linetable, find_next_line_in_linetable)
1572 (read_all_symtabs, is_plausible_func_for_line)
1573 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
1574 (is_runtime_sym_defined, check_size): Remove declaration.
1575 (function_name_from_pc, ada_translate_error_message)
1576 (ada_lookup_minimal_symbol): Remove definition.
1577 (ada_add_block_symbols): Remove useless label.
1578 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
1579 useless declaration.
1580 (ada_is_exception_sym): Likewise.
1581
1582 2004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
1583
1584 Add m32r-linux support.
1585 * configure.tgt: Add m32r*-*-linux*.
1586 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
1587 and m32r-linux-tdep.c.
1588 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
1589 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
1590 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
1591 m32r-linux-tdep.c.
1592 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
1593 config/m32r/linux.mh, config/m32r/linux.mt,
1594 config/m32r/nm-linux.h: New files.
1595
1596 2004-09-30 Joel Brobecker <brobecker@gnat.com>
1597
1598 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
1599 (mips32_fetch_instruction): Remove, unused.
1600
1601 2004-09-30 Joel Brobecker <brobecker@gnat.com>
1602
1603 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
1604 conditions that will always be true.
1605
1606 2004-09-30 Mark Kettenis <kettenis@gnu.org>
1607
1608 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
1609 (vaxbsd_fetch_inferior_registers): Rename from
1610 fetch_inferior_registers. Make static.
1611 (vaxbsd_store_inferior_registers): Rename from
1612 store_inferior_registers. Make static.
1613 (_initialize_vaxbsd_nat): Construct and add target vector.
1614 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1615 inftarg.o. Add inf-child.o and inf-ptrace.o.
1616 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1617 inftarg.o. Add inf-child.o and inf-ptrace.o.
1618 (NAT_FILE): Remove.
1619 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
1620 inftarg.o. Add inf-child.o and inf-ptrace.o.
1621 (NAT_FILE): Remove.
1622 * Makefile.in (vaxbsd-nat.o): Update dependencies.
1623
1624 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1625 (m88kbsd_fetch_inferior_registers): Rename from
1626 fetch_inferior_registers. Make static.
1627 (m88kbsd_store_inferior_registers): Rename from
1628 store_inferior_registers. Make static.
1629 (_initialize_m88kbsd_nat): New prototype and function.
1630 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
1631 inftarg.o. Add inf-child.o and inf-ptrace.o.
1632 (NAT_FILE): Remove.
1633 * Makefile.in (m88kbsd-nat.o): Update dependencies.
1634
1635 2004-09-30 Andrew Cagney <cagney@gnu.org>
1636
1637 * target.c (target_xfer_partial): New function.
1638 (target_read_memory_partial, target_write_memory_partial)
1639 (default_xfer_partial, target_read_partial, target_write_partial)
1640 (xfer_using_stratum): Use.
1641 (debug_to_xfer_partial): Delete function.
1642 (setup_target_debug): Do not override to_xfer_partial.
1643
1644 2004-09-30 Mark Kettenis <kettenis@chello.nl>
1645
1646 * fork-child.c: Update copyright year. Fix coding style.
1647
1648 2004-09-29 Mark Kettenis <kettenis@gnu.org>
1649
1650 * defs.h (msavestring, mstrsave): Remove prototypes.
1651 * utils.c (msavestring, mstrsave): Remove functions.
1652 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
1653 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
1654 of mstrsave.
1655 * source.c (find_and_open_source): Use xstrdup instead of
1656 mstrsave.
1657
1658 2004-09-30 Andrew Cagney <cagney@gnu.org>
1659
1660 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
1661 (inf_ptrace_xfer_memory): Delete.
1662 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
1663 (target_read_memory, target_write_memory): Use xfer_using_stratum
1664 when target_xfer_partial_p.
1665 (debug_target): Move to start of file.
1666 (target_read_memory_partial, target_write_memory_partial): Use
1667 to_xfer_partial when target_xfer_partial_p.
1668
1669 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
1670 inf_ptrace_xfer_memory with equivalent code.
1671 * inftarg.c (child_xfer_partial): When performing a write, pass
1672 writebuf to child_xfer_memory.
1673
1674 * target.c (target_read_string): Use target_read_memory instead of
1675 target_xfer_memory.
1676
1677 2004-09-29 Andrew Cagney <cagney@gnu.org>
1678
1679 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
1680 the address of status.
1681
1682 * infptrace.c (ptrace_wait): Mention problem with HPUX.
1683 (kill_inferior): Inline ptrace_wait call.
1684 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
1685 * inftarg.c (child_wait): Inline ptrace_wait call.
1686
1687 * target.h (struct target_ops): Delete field to_post_wait.
1688 (target_post_wait): Delete macro.
1689 (child_post_wait): Delete declaration.
1690 * target.c (update_current_target, update_current_target)
1691 (debug_to_post_wait, setup_target_debug): Delete functions and
1692 references.
1693 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
1694 * inftarg.c (child_post_wait): Delete.
1695 (init_child_ops): Do not set to_post_wait.
1696 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
1697 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
1698 * inf-child.c (inf_child_post_wait): Delete.
1699 (inf_child_target): Do not set to_post_wait.
1700 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
1701 (inf_ptrace_target): Do not set to_post_wait.
1702
1703 * wince.c (child_ops): Delete.
1704 * win32-nat.c (child_ops): Delete.
1705
1706 * inftarg.c (inftarg_set_find_memory_regions)
1707 (inftarg_set_make_corefile_notes): Delete functions.
1708 (_initialize_linux_nat): Inline calls.
1709
1710 * target.h (child_ops): Declare.
1711 * inftarg.c (child_ops): Move from here ...
1712 * target.c (child_ops): ... to here.
1713 * wince.c (child_ops): Delete extern declaration.
1714 * win32-nat.c (child_ops): Delete extern declaration.
1715 * linux-nat.c (child_ops): Delete extern declaration.
1716 * hpux-thread.c (child_ops): Delete extern declaration.
1717
1718 2004-09-28 Mark Kettenis <kettenis@gnu.org>
1719
1720 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
1721
1722 2004-09-28 Mark Kettenis <kettenis@gnu.org>
1723
1724 * configure.in: Only set host_makefile_frag when building a native
1725 debugger.
1726 * configure: Regenerate.
1727
1728 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
1729 for OpenBSD ELF.
1730
1731 2004-09-28 Andrew Cagney <cagney@gnu.org>
1732
1733 Problem identified by Paul Hilfinger.
1734 * Makefile.in (ada_lex_c): Define.
1735 (ada-lex.o): Delete rule.
1736
1737 * linux-proc.c: Delete file.
1738 * Makefile.in: Update.
1739 * config/sparc/linux64.mh (NATDEPFILES):
1740 * config/sparc/linux.mh (NATDEPFILES): Update.
1741 * config/s390/s390.mh (NATDEPFILES): Update.
1742 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
1743 * config/powerpc/linux.mh (NATDEPFILES): Update.
1744 * config/pa/linux.mh (NATDEPFILES): Update.
1745 * config/mips/linux.mh (NATDEPFILES): Update.
1746 * config/m68k/linux.mh (NATDEPFILES): Update.
1747 * config/ia64/linux.mh (NATDEPFILES): Update.
1748 * config/i386/linux64.mh (NATDEPFILES): Update.
1749 * config/i386/linux.mh (NATDEPFILES): Update.
1750 * config/arm/linux.mh (NATDEPFILES): Update.
1751 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
1752 * linux-nat.c: Update copyright. Include <sys/param.h>,
1753 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
1754 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
1755 (O_LARGEFILE): Possibly define.
1756 (_initialize_linux_nat, linux_proc_pending_signals)
1757 (add_line_to_sigset, linux_proc_xfer_memory)
1758 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
1759 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
1760 (struct linux_corefile_thread_data)
1761 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
1762 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
1763
1764 2004-09-16 Andrew Cagney <cagney@gnu.org>
1765
1766 * lin-lwp.c: Delete file.
1767 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
1768 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
1769 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
1770 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
1771 (linux_nat_attach, detach_callback, linux_nat_detach)
1772 (resume_callback, resume_clear_callback, linux_nat_resume)
1773 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
1774 (stop_wait_callback, linux_nat_has_pending, flush_callback)
1775 (status_callback, running_callback, count_events_callback)
1776 (select_singlestep_lwp_callback, select_event_lwp_callback)
1777 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
1778 (child_wait, stop_and_resume_callback, linux_nat_wait)
1779 (kill_callback, kill_wait_callback, linux_nat_kill)
1780 (linux_nat_create_inferior, linux_nat_mourn_inferior)
1781 (linux_nat_xfer_memory, linux_nat_thread_alive)
1782 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
1783 (_initialize_linux_nat): New functions.
1784 * Makefile.in: Update all dependencies.
1785 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1786 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1787 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
1788 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1789 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1790 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1791 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1792 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1793 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1794 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
1795 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1796 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
1797 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
1798
1799 2004-09-27 Mark Kettenis <kettenis@gnu.org>
1800
1801 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
1802 config/i386/obsd64.mh (NAT_FILE): Remove variable.
1803
1804 * configure.in: Don't comment out NATDEPFILES in the generated
1805 Makefile if NAT_FILE is unset.
1806 * configure: Regenerate.
1807
1808 2004-09-27 Andrew Cagney <cagney@gnu.org>
1809
1810 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
1811 (insert_step_resume_breakpoint): Delete.
1812 (insert_step_resume_breakpoint_at_frame): New function.
1813 (insert_step_resume_breakpoint_at_sal): New function.
1814 (handle_inferior_event, step_into_function)
1815 (insert_step_resume_breakpoint): Simplify by using same.
1816
1817 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
1818
1819 2004-09-26 Mark Kettenis <kettenis@gnu.org>
1820
1821 * fbsd-proc.c: Remove file.
1822 * Makefile.in (fbsd-proc.o): Remove dependency.
1823
1824 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
1825 code together.
1826
1827 * config/i386/nm-fbsd64.h: Remove file.
1828 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1829
1830 2004-09-26 Mark Kettenis <kettenis@gnu.org>
1831
1832 * amd64-nat.h: Update copyright year.
1833 (amd64bsd_target): New prototype.
1834 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
1835 (amd64bsd_target): New function.
1836 (amd64bsd_fetch_inferior_registers): Rename from
1837 fetch_inferior_registers. Make static.
1838 (amd64bsd_store_inferior_registers): Rename from
1839 store_inferior_registers. Make static.
1840 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
1841 (_initialize_amd64fbsd_nat): Construct and add target vector.
1842 * amd64nbsd-nat.o: Include "target.h".
1843 (_initialize_amd64nbsd_nat): Construct and add target vector.
1844 * amd64obsd-nat.c: Include "target.h".
1845 (_initialize_amd64obsd_nat): Construct and add target vector.
1846 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
1847 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
1848 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
1849 fbsd-nat.o.
1850 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
1851 Remove infptrace.o and inftarg.o. Add inf-child.o and
1852 inf-ptrace.o.
1853 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
1854 (amd64obsd-nat.o): Update dependencies.
1855
1856 2004-09-25 Mark Kettenis <kettenis@gnu.org>
1857
1858 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
1859 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
1860 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
1861 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
1862 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
1863
1864 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
1865 Inline attach call.
1866 (inf_ptrace_detach): Inline detach call.
1867
1868 * configure.in: Check for waddstr instead of mvwaddstr when
1869 searching for curses library. Check for wborder.
1870 * configure, config.in: Regenerate.
1871 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
1872 available.
1873
1874 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
1875
1876 2004-09-24 Robert Picco <Robert.Picco@hp.com>
1877
1878 Committed by Andrew Cagney.
1879 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
1880 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
1881 configuration.
1882 (fetch_register_using_p): Implement 'p' packet. Based on code by
1883 Fernando Nasser.
1884 (remote_fetch_registers): Call fetch_register_using_p.
1885 (init_all_packet_configs, show_remote_cmd)
1886 (_initialize_remote): Add p-packet.
1887
1888 2004-09-24 Mark Kettenis <kettenis@gnu.org>
1889
1890 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
1891 instead of call_ptrace. Call wait directly instead of
1892 ptrace_wait.
1893 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
1894 (inf_ptrace_wait): Inline ptrace_wait call.
1895
1896 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
1897
1898 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
1899 rolled back instead.
1900
1901 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
1902
1903 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
1904 the new argument order.
1905
1906 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
1907
1908 * MAINTAINERS: Remove "broken" from XStormy16 entry.
1909 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
1910 (struct gdbarch_tdep): Remove.
1911 (struct xstormy16_frame_cache): New frame cache structure.
1912 (xstormy16_register_byte, xstormy16_register_raw_size)
1913 (xstormy16_reg_virtual_type, xstormy16_register_type)
1914 (xstormy16_push_arguments, xstormy16_push_return_address)
1915 (xstormy16_pop_frame, xstormy16_store_struct_return)
1916 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
1917 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
1918 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
1919 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
1920 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
1921 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
1922 (xstormy16_use_struct_convention): Drop gcc_p parameter.
1923 (xstormy16_extract_return_value, xstormy16_store_return_value):
1924 Regcachify. Drop useless struct convention handling.
1925 (xstormy16_register_type, xstormy16_return_value)
1926 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
1927 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
1928 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
1929 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
1930 (xstormy16_unwind_sp, xstormy16_unwind_pc)
1931 (xstormy16_unwind_dummy_id) : New functions.
1932 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
1933 of xstormy16_scan_prologue.
1934 (xstormy16_frame_unwind): New frame_unwind structure.
1935 (xstormy16_frame_base): New frame_base structure.
1936 (xstormy16_gdbarch_init): Accomodate all of the above changes.
1937 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
1938
1939 2004-09-22 Mark Kettenis <kettenis@gnu.org>
1940
1941 * language.c (language_gdbarch_post_init): Fix off-by one error.
1942
1943 2004-09-21 Daniel Jacobowitz <dan@debian.org>
1944
1945 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
1946 (struct dwarf2_offset_and_type): New.
1947 (set_die_type, reset_die_and_siblings_types, get_die_type)
1948 (offset_and_type_hash, offset_and_type_eq): New functions.
1949 (read_structure_type, read_enumeration_type, read_array_type)
1950 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
1951 (read_tag_reference_type, read_tag_const_type)
1952 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
1953 (read_typedef, read_base_type, read_subrange_type): Use
1954 set_die_type.
1955
1956 2004-09-20 Daniel Jacobowitz <dan@debian.org>
1957
1958 * Makefile.in (dwarf2read.o): Update dependencies.
1959 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
1960 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
1961 and read_in_chain.
1962 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
1963 mark, and has_form_ref_addr.
1964 (struct dwarf2_per_cu_data): New.
1965 (dwarf2_max_cache_age): New.
1966 (dwarf2_build_psymtabs_hard): Free cached compilation units
1967 after loading. Create and manage the list of compilation units.
1968 Remove unnecessary NULL initialization. Fix indentation.
1969 (psymtab_to_symtab_1): Initialize all of CU.
1970 (dwarf2_read_abbrevs): Set has_form_ref_addr.
1971 (find_partial_die): Use dwarf2_find_containing_comp_unit
1972 and load_comp_unit.
1973 (free_stack_comp_unit): Update comments. Clear the per-cu
1974 pointer. Handle aging.
1975 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
1976 (age_cached_comp_units, free_one_cached_comp_unit)
1977 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
1978 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
1979 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
1980 (show_dwarf2_cmd): New.
1981 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
1982 and "maint show dwarf2 max-cache-age".
1983 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
1984 externs.
1985 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
1986 global.
1987
1988 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
1989
1990 * dwarf2read.c (typename_concat): Change prototype to accept obstack
1991 and dwarf2_cu struct pointer as arguments. Change function to use
1992 obstack if provided and use dwarf2_cu to determine language-specific
1993 separator.
1994 (partial_die_parent_scope): Change comment to include java. Use
1995 new version of typename_concat instead of obconcat.
1996 (partial_die_full_name): Use typename_concat.
1997 (read_namespace): Ditto.
1998 (read_enumeration_type): Use typename_concat instead of obconcat.
1999 (new_symbol): Ditto.
2000 (add_partial_symbol): Enhance tests for C++ to also test for Java.
2001 (guess_structure_name): Ditto.
2002 (read_subroutine_type): Ditto.
2003 (read_structure_type): Ditto.
2004 (is_vtable_name): Add Java support.
2005 (determine_class_name): Switch to new typename_concat call.
2006 (determine_prefix): Switch to new typename_concat call.
2007 * jv-exp.y (FuncStart): New pattern.
2008 (MethodInvocation): Add support for simple function calls. Change
2009 warning message for other forms of inferior call currently not
2010 supported.
2011 * valarith.c (value_subscript): Treat an array with upper-bound
2012 of -1 as unknown size.
2013
2014 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2015
2016 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
2017 (lookup_partial_symtab): Use symtab_to_fullname.
2018
2019 2004-09-19 Jim Blandy <jimb@redhat.com>
2020
2021 * minsyms.c (lookup_minimal_symbol): Doc fix.
2022
2023 2004-09-20 Andrew Cagney <cagney@gnu.org>
2024
2025 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
2026 CHILD_RESUME.
2027 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
2028 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
2029 KILL_INFERIOR.
2030 * infptrace.c: Update.
2031
2032 2004-09-19 Daniel Jacobowitz <dan@debian.org>
2033
2034 * symtab.c (output_source_filename): Mark first argument as const.
2035 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
2036 for "info sources" output.
2037
2038 2004-09-20 Mark Kettenis <kettenis@gnu.org>
2039
2040 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
2041 <machine/vmparam.h>.
2042 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
2043 (register_u_addr): Remove prototype.
2044
2045 2004-09-19 Mark Kettenis <kettenis@gnu.org>
2046
2047 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
2048 (i386bsd_fetch_inferior_registers): Rename from
2049 fetch_inferior_registers. Make static.
2050 (i386bsd_store_inferior_registers): Rename from
2051 store_inferior_registers. Make static.
2052 (i386bsd_target): New function.
2053 * i386bsd-nat.h: New file.
2054 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
2055 "i386bsd-nat.h".
2056 (i386fbsd_resume): Rename from child_resume. Make static.
2057 (_initialize_i386fbsd_nat): Construct and add target vector.
2058 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
2059 (_initialize_i386nbsd_nat): Construct and add target vector.
2060 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
2061 Remove defines.
2062 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
2063 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
2064 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
2065 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2066 (LOADLIBES): New variable.
2067 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
2068 inf-ptrace.o. Remove inftarg.o.
2069 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
2070 inf-ptrace.o. Remove inftarg.o.
2071 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
2072 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2073 (LOADLIBES): New variable.
2074 * Makefile.in (i386bsd_nat_h): New variable.
2075 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
2076 dependencies.
2077
2078 * sparc64nbsd-tdep.c: Include "objfiles.h".
2079 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
2080 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2081 svr4_lp64_fetch_link_map_offsets.
2082 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
2083 "nbsd-tdep.h".
2084 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
2085 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2086 svr4_lp64_fetch_link_map_offsets.
2087 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
2088 dependencies.
2089
2090 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
2091 * fbsd-nat.h: New file.
2092 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
2093 (fbsd_nat_h): New variable.
2094 (fbsd-nat.o): New dependency.
2095
2096 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
2097 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
2098
2099 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
2100 comment.
2101
2102 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2103
2104 * ada-exp.y (type_int): New function to add layer of abstraction
2105 around references to expression types.
2106 (type_long): Ditto.
2107 (type_long_long): Ditto.
2108 (type_float): Ditto.
2109 (type_double): Ditto.
2110 (type_long_double): Ditto.
2111 (type_char): Ditto.
2112 (type_system_address): Ditto.
2113 (simple_exp): Use type_* functions in place of builtin_*
2114 variables.
2115 (exp): Ditto.
2116 (write_var_from_name): Ditto.
2117 (write_object_renaming): Ditto.
2118 * ada-lang.c (ada_create_fundamental_type): Remove redundant
2119 declaration.
2120 (build_ada_types): Remove, replacing with...
2121 (ada_language_arch_info): New function to initialize primitive
2122 type vector in language_arch_info.
2123 (ada_array_length): Remove use of builtin_type_ada_int.
2124 (value_pos_atr): Ditto.
2125 (ada_evaluate_subexp): Ditto.
2126 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
2127 builtin_type_ada_long_long, builtin_type_ada_char,
2128 builtin_type_ada_float, builtin_type_ada_double,
2129 builtin_type_ada_long_double, builtin_type_ada_natural,
2130 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2131 (ada_builtin_types): Remove.
2132 (ada_language_defn): Remove entries for la_builtin_type_vector and
2133 string_char_type and use ada_language_arch_info.
2134 (_initialize_ada_language): Do type-vector initialization along
2135 the lines of c-lang.c.
2136 (ada_create_fundamental_type): Break up line.
2137 (ada_dump_symtab): Remove unused function.
2138 (enum ada_primitive_types): Define.
2139 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
2140 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
2141 builtin_type_ada_float, builtin_type_ada_double,
2142 builtin_type_ada_long_double, builtin_type_ada_natural,
2143 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
2144 * ada-lex.l: Use type_* functions in place of builtin_* variables.
2145 (processInt): Ditto.
2146 (processReal): Ditto.
2147 (name_lookup): Ditto.
2148 * ada-typeprint.c (print_range): Use builtin_type_int, not
2149 builtin_type_ada_int.
2150
2151 2004-09-18 Mark Kettenis <kettenis@gnu.org>
2152
2153 * i386-tdep.c (i386_register_name): Rename regno to regnum.
2154
2155 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
2156 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
2157 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
2158 * configure.in: Improve checks for curses library by checking for
2159 mvwaddstr instead of initscr. Drop HP curses in favour of
2160 standard curses on HP-UX.
2161 * configure: Regenerated.
2162
2163 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2164
2165 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
2166 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
2167 Minor formatting changes.
2168 (empty_array): Slight rewrite for formatting.
2169 (emit_char,parse,ada_language_defn,build_ada_types,
2170 ada_is_exception_sym, _initialize_ada_language): Move
2171 definitions around.
2172 (ada_dump_symtab): Remove unused definition.
2173 (ada_maybe_exception_partial_symbol): Remove unused definition.
2174
2175 2004-09-16 Andrew Cagney <cagney@gnu.org>
2176
2177 * inf-child.c: Include "gdb_string.h".
2178 (inf_child_core_file_to_sym_file): Delete.
2179 (inf_child_target): Set to_fetch_registers and to_store_registers.
2180 * inf-ptrace.c: Include "gdb_string.h".
2181 * Makefile.in: Update all dependencies.
2182
2183 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
2184 problem.
2185
2186 2004-09-14 Joel Brobecker <brobecker@gnat.com>
2187
2188 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
2189 call to heuristic_proc_desc. Remove code that became redundant
2190 as a consequence.
2191 (read_next_frame_reg): Remove special case for SP_REGNUM.
2192 (set_reg_offset): Fix small typo.
2193 (reset_saved_regs): New procedure.
2194 (mips32_heuristic_proc_desc): No longer compute a fake
2195 procedure descriptor. Compute the full frame cache instead.
2196 Some minor comment reformatting.
2197
2198 2004-09-14 Andrew Cagney <cagney@gnu.org>
2199
2200 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
2201 maintainer.
2202
2203 * thread-db.c (thread_db_new_objfile): Assume that there is a
2204 child process.
2205
2206 2004-09-13 Jim Blandy <jimb@redhat.com>
2207
2208 * valops.c (value_assign): Move 'buffer' to the enclosing block,
2209 so that its storage isn't referenced after its lifetime ends.
2210
2211 * valops.c (value_assign): 'use_buffer' is initialized to zero,
2212 and never assigned to. Delete it, and the 'if (use_buffer)'
2213 clauses. Delete 'raw_buffer', since it is now unused.
2214
2215 2004-09-13 Andrew Cagney <cagney@gnu.org>
2216
2217 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
2218 * configure: Re-generate.
2219 * nlm/Makefile.in (TAGS): Update.
2220 * Makefile.in (TAGS): Update.
2221 * config/vax/nbsd.mt (TM_FILE): Update.
2222 * config/sparc/vxworks.mt (TM_FILE): Update.
2223 * config/sparc/sol2.mt (TM_FILE): Update.
2224 * config/sparc/sol2-64.mt (TM_FILE): Update.
2225 * config/sparc/obsd64.mt (TM_FILE): Update.
2226 * config/sparc/obsd.mt (TM_FILE): Update.
2227 * config/sparc/nbsd64.mt (TM_FILE): Update.
2228 * config/sparc/nbsd.mt (TM_FILE): Update.
2229 * config/sparc/linux64.mt (TM_FILE): Update.
2230 * config/sparc/linux.mt (TM_FILE): Update.
2231 * config/sparc/fbsd.mt (TM_FILE): Update.
2232 * config/sh/wince.mt (TM_FILE): Update.
2233 * config/sh/nbsd.mt (TM_FILE): Update.
2234 * config/sh/linux.mt (TM_FILE): Update.
2235 * config/sh/embed.mt (TM_FILE): Update.
2236 * config/s390/s390.mt (TM_FILE): Update.
2237 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
2238 * config/rs6000/rs6000.mt (TM_FILE): Update.
2239 * config/rs6000/aix4.mt (TM_FILE): Update.
2240 * config/powerpc/vxworks.mt (TM_FILE): Update.
2241 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
2242 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
2243 * config/powerpc/obsd.mt (TM_FILE): Update.
2244 * config/powerpc/nbsd.mt (TM_FILE): Update.
2245 * config/powerpc/linux.mt (TM_FILE): Update.
2246 * config/powerpc/aix.mt (TM_FILE): Update.
2247 * config/pa/obsd.mt (TM_FILE): Update.
2248 * config/pa/linux.mt (TM_FILE): Update.
2249 * config/pa/hppahpux.mt (TM_FILE): Update.
2250 * config/pa/hppa64.mt (TM_FILE): Update.
2251 * config/pa/hppa.mt (TM_FILE): Update.
2252 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
2253 * config/mips/wince.mt (TM_FILE): Update.
2254 * config/mips/vxmips.mt (TM_FILE): Update.
2255 * config/mips/nbsd.mt (TM_FILE): Update.
2256 * config/mips/linux.mt (TM_FILE): Update.
2257 * config/mips/irix6.mt (TM_FILE): Update.
2258 * config/mips/irix5.mt (TM_FILE): Update.
2259 * config/mips/embed.mt (TM_FILE): Update.
2260 * config/m68k/vxworks68.mt (TM_FILE): Update.
2261 * config/m68k/st2000.mt (TM_FILE): Update.
2262 * config/m68k/os68k.mt (TM_FILE): Update.
2263 * config/m68k/obsd.mt (TM_FILE): Update.
2264 * config/m68k/nbsd.mt (TM_FILE): Update.
2265 * config/m68k/monitor.mt (TM_FILE): Update.
2266 * config/m68k/linux.mt (TM_FILE): Update.
2267 * config/m68k/cisco.mt (TM_FILE): Update.
2268 * config/ia64/linux.mt (TM_FILE): Update.
2269 * config/ia64/aix.mt (TM_FILE): Update.
2270 * config/ia64/ia64.mt (TM_FILE): Update.
2271 * config/i386/vxworks.mt (TM_FILE): Update.
2272 * config/i386/obsd64.mt (TM_FILE): Update.
2273 * config/i386/obsd.mt (TM_FILE): Update.
2274 * config/i386/nto.mt (TM_FILE): Update.
2275 * config/i386/nbsd64.mt (TM_FILE): Update.
2276 * config/i386/nbsd.mt (TM_FILE): Update.
2277 * config/i386/linux64.mt (TM_FILE): Update.
2278 * config/i386/linux.mt (TM_FILE): Update.
2279 * config/i386/i386sol2.mt (TM_FILE): Update.
2280 * config/i386/i386lynx.mt (TM_FILE): Update.
2281 * config/i386/fbsd64.mt (TM_FILE): Update.
2282 * config/i386/fbsd.mt (TM_FILE): Update.
2283 * config/i386/cygwin.mt (TM_FILE): Update.
2284 * config/h8300/h8300.mt (TM_FILE): Update.
2285 * config/frv/frv.mt (TM_FILE): Update.
2286 * config/cris/cris.mt (TM_FILE): Update.
2287 * config/arm/wince.mt (TM_FILE): Update.
2288 * config/arm/nbsd.mt (TM_FILE): Update.
2289 * config/arm/linux.mt (TM_FILE): Update.
2290 * config/arm/embed.mt (TM_FILE): Update.
2291 * config/alpha/nbsd.mt (TM_FILE): Update.
2292 * config/alpha/fbsd.mt (TM_FILE): Update.
2293 * config/alpha/alpha.mt (TM_FILE): Update.
2294 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
2295 * config/alpha/alpha-linux.mt (TM_FILE): Update.
2296
2297 Eliminate event_loop_p, always has the value 1.
2298 * defs.h (event_loop_p): Delete macro.
2299 * breakpoint.c (until_break_command): Simplify.
2300 * utils.c (prompt_for_continue): Simplify.
2301 * tracepoint.c (read_actions): Simplify.
2302 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
2303 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
2304 (set_prompt, init_main): Simplify.
2305 (init_signals, disconnect): Delete, unused.
2306 * remote.c (remote_async_resume)
2307 (extended_remote_async_create_inferior): Simplify.
2308 * mi/mi-interp.c (mi_input): Delete, unused.
2309 (mi_interpreter_resume, mi_command_loop): Simplify.
2310 * interps.c (current_interp_command_loop): Simplify.
2311 * infrun.c (proceed): Simplify.
2312 * infcmd.c (run_command, continue_command, step_1, jump_command)
2313 (until_command, advance_command, finish_command)
2314 (interrupt_target_command): Simplify.
2315 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
2316
2317 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2318 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2319 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2320 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2321 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
2322 * mips-tdep.c (mips_dump_tdep): Do not print same.
2323
2324 2004-09-12 Andrew Cagney <cagney@gnu.org>
2325
2326 * valprint.c (print_longest): Use fputs_filtered. Make "val"
2327 const.
2328 * Makefile.in (valprint.o): Delete explict rule.
2329
2330 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
2331 reported by Dave Anderson.
2332
2333 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
2334
2335 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
2336
2337 2004-09-12 Salvador E. Tropea <set@users.sf.net>
2338 Andrew Cagney <cagney@gnu.org>
2339
2340 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
2341 (mi_cmd_data_list_register_values)
2342 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
2343 the register number computation.
2344
2345 2004-09-12 Andrew Cagney <cagney@gnu.org>
2346
2347 * ppcnbsd-nat.c: Include "inf-ptrace.h".
2348 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
2349 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
2350 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
2351 target.
2352 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
2353 inf-ptrace.o and inf-child.o.
2354 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
2355 * Makefile.in: Update dependencies.
2356
2357 2004-09-11 Andrew Cagney <cagney@gnu.org>
2358
2359 * language.c (hex_string, hex_string_custom): Move from here ...
2360 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
2361 (CELLSIZE): Increase to 50.
2362 * language.h (hex_string, hex_string_custom): Move from here ...
2363 * defs.h: ... to here.
2364 * Makefile.in: Update all dependencies.
2365
2366 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
2367
2368 * language.c (local_hex_format_custom): Remove.
2369 (local_hex_string): Rename to hex_string, use C format, and move to
2370 utils.c
2371 (local_hex_string_custom): Rename to hex_string_custom and change
2372 interface. Now uses C format. Move to utils.c
2373 (local_octal_format_custom): Remove.
2374 (local_decimal_format_custom): Remove.
2375 (unknown_language_defn): Remove language-specific number
2376 formatting entries.
2377 (auto_language_defn): Ditto.
2378 (local_language_defn): Ditto.
2379 * language.h (struct language_format_info): Delete declaration.
2380 (struct language_defn): Remove language_format_info fields
2381 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
2382 (local_binary_format): Remove macro.
2383 (local_binary_format_prefix): Remove macro.
2384 (local_binary_format_specifier): Remove macro.
2385 (local_binary_format_suffix): Remove macro.
2386 (local_octal_format): Remove macro.
2387 (local_octal_format_prefix): Remove macro.
2388 (local_octal_format_specifier): Remove macro.
2389 (local_octal_format_suffix): Remove macro.
2390 (local_decimal_format): Remove macro.
2391 (local_decimal_format_prefix): Remove macro.
2392 (local_decimal_format_specifier): Remove macro.
2393 (local_decimal_format_suffix): Remove macro.
2394 (local_hex_format): Remove macro.
2395 (local_hex_format_prefix): Remove macro.
2396 (local_hex_format_specifier): Remove macro.
2397 (local_hex_format_suffix): Remove macro.
2398 (local_decimal_format_custom): Remove.
2399 (local_octal_format_custom): Remove.
2400 (local_hex_format_custom): Remove.
2401 (local_hex_string): Rename to hex_string and move to defs.h.
2402 (local_hex_string_custom): Rename to hex_string_custom, change
2403 interface, and move to defs.h.
2404 * utils.c: (int_string): New function.
2405 (hex_string): New function (from language.c).
2406 (hex_string_custom): New function (from language.c).
2407 (octal2str): New function.
2408 (decimal2str): Add width parameter.
2409 (paddr_u): Use new decimal2str interface.
2410 (paddr_d): Ditto.
2411 * defs.h (hex_string): Declare.
2412 (hex_string_custom): Declare.
2413 (int_string): Declare.
2414 * printcmd.c (print_scalar_formatted): Remove localized binary
2415 formatting.
2416 * valprint.c (print_longest): Use int_string.
2417 (print_floating): Use C hex format.
2418 (print_hex_chars): Ditto.
2419 (print_binary_chars): Remove language-specific formatting.
2420 (print_octal_chars): Use C octal format.
2421 (print_decimal_chars): Delocalize format.
2422 (print_decimal): Remove.
2423 * ada-lang.c (ada_language_defn): Remove language-specific number
2424 formatting entries.
2425 * p-lang.c (pascal_language_defn): Ditto.
2426 * c-lang.c (c_language_defn): Ditto.
2427 (cplus_language_defn): Ditto.
2428 (asm_language_defn): Ditto.
2429 (minimal_language_defn): Ditto.
2430 * f-lang.c (f_language_defn): Ditto.
2431 * jv-lang.c (java_language_defn): Ditto.
2432 * m2-lang.c (m2_language_defn): Ditto.
2433 * scm-lang.c (scm_language_defn): Ditto.
2434 * objc-lang.c (objc_language_defn): Ditto.
2435 * memattr.c (mem_info_command): Use renamed hex_string_custom with
2436 new interface.
2437 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
2438 * ui-out.c (ui_out_field_core_addr): Ditto.
2439 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
2440 * exec.c (print_section_info): Ditto.
2441 * i387-tdep.c (print_i387_status_word): Ditto.
2442 (print_i387_control_word): Ditto.
2443 (i387_print_float_info): Ditto.
2444 * maint.c (maint_print_section_info): Ditto.
2445 * solib.c (info_sharedlibrary_command): Ditto.
2446 * somsolib.c (som_sharedlibrary_info_command): Ditto.
2447 * symtab.c (print_msymbol_info): Ditto.
2448 * tracepoint.c (tracepoints_info): Ditto.
2449 * solib-frv.c (lm_base): Ditto.
2450 (frv_current_sos): Ditto.
2451 (enable_break2): Ditto.
2452 (enable_break): Ditto.
2453 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
2454 (process_one_symbol): Ditto.
2455 * infcmd.c (program_info): Ditto.
2456 * mdebugread.c (parse_partial_symbols): Ditto.
2457 * symfile.c (add_symbol_file_command): Ditto.
2458 * cli/cli-cmds.c (edit_command): Ditto.
2459 (list_command): Ditto.
2460 * infcall.c (call_function_by_hand): Ditto.
2461 * remote-vx.c (vx_run_files_info): Ditto.
2462 (vx_wait): Ditto.
2463 (vx_attach): Ditto.
2464 (vx_detach): Ditto.
2465 (vx_kill): Ditto.
2466 * aix-thread.c (pdc_symbol_addrs): Ditto.
2467 (pdc_read_regs): Ditto.
2468 (pdc_write_regs): Ditto.
2469 (pdc_read_data): Ditto.
2470 (pdc_write_data): Ditto.
2471 * d10v-tdep.c (display_trace): Ditto.
2472 * rs6000-nat.c (find_toc_address): Ditto.
2473 * aix-thread.c: Don't include language.h.
2474 * buildsym.c: Ditto.
2475 * dbxread.c: Ditto.
2476 * mdebugread.c: Ditto.
2477 * rs6000-nat.c: Ditto.
2478 * buildsym.c (make_blockvector): Use renamed hex_string.
2479
2480 2004-09-10 Jason Molenda (jmolenda@apple.com)
2481
2482 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
2483 chars after 'if' or 'while' commands in user-defined commands.
2484
2485 2004-09-08 Jim Blandy <jimb@redhat.com>
2486
2487 Fix bug reported and analyzed by Olivier Crete:
2488 * symfile.c (copy_section_addr_info): New function.
2489 (symbol_file_add_with_addrs_or_offsets): Use it to save the
2490 original set of address arguments, instead of handwritten code
2491 that uses one length to allocate and a different length to
2492 initialize. Use make_cleanup_free_section_addr_info.
2493 * symfile.h (copy_section_addr_info): New declaration.
2494 * utils.c: #include "symfile.h".
2495 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
2496 New functions.
2497 * defs.h (make_cleanup_free_section_addr_info): New declaration.
2498 * Makefile.in (utils.o): Update dependencies.
2499
2500 2004-09-08 Andrew Cagney <cagney@gnu.org>
2501
2502 * thread-db.c (keep_thread_db): Delete.
2503 (thread_db_new_objfile, thread_db_create_inferior)
2504 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
2505
2506 2004-09-08 Mark Kettenis <kettenis@gnu.org>
2507
2508 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
2509 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
2510 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
2511 (i386_frameless_signal_p): Remove prototype.
2512 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
2513 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
2514 I386_SSE_NUM_REGS.
2515 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
2516 instead of FP0_REGNUM.
2517 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
2518 of FP0_REGNUM and FPC_REGNUM.
2519
2520 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
2521 (sunos_solib_create_inferior_hook): Don't call
2522 sunos_relocate_main_executable.
2523
2524 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
2525 solib_svr4_fetch_link_map_offsets to
2526 svr4_ilp32_fetch_link_map_offsets.
2527 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
2528 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
2529 svr4_ilp32_fetch_link_map_offsets.
2530 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
2531
2532 2004-09-07 Jim Blandy <jimb@redhat.com>
2533
2534 * frame.h (frame_register): Doc fix.
2535
2536 2004-09-07 Andrew Cagney <cagney@gnu.org>
2537
2538 * vx-share/wait.h: Delete #ifdef USG.
2539 * utils.c (request_quit): Ditto.
2540 * tui/tui.c (tui_reset): Ditto.
2541 * remote.c: Ditto.
2542 * remote-sds.c: Ditto.
2543 * remote-rdi.c: Ditto.
2544 * mdebugread.c: Ditto.
2545 * m68klinux-nat.c: Ditto.
2546 * infttrace.c: Ditto.
2547 * infptrace.c: Ditto.
2548 * i386v-nat.c: Ditto.
2549 * exec.c: Ditto.
2550 * dbxread.c: Ditto.
2551 * core-aout.c: Ditto.
2552
2553 2004-09-05 Joel Brobecker <brobecker@gnat.com>
2554
2555 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
2556 heuristic_proc_desc.
2557 (mips_insn32_frame_cache): Likewise.
2558
2559 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2560
2561 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
2562 left behind by error.
2563
2564 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2565
2566 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
2567 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
2568
2569 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2570
2571 * config/rs6000/xm-aix4.h: Remove this file.
2572 * config/rs6000/aix4.mh (XM_FILE): Delete.
2573
2574 2004-09-04 Joel Brobecker <brobecker@gnat.com>
2575
2576 * config/rs6000/xm-rs6000.h: Remove this file.
2577 * config/rs6000/rs6000.mh (XM_FILE): Remove.
2578
2579 2004-09-03 Andrew Cagney <cagney@gnu.org>
2580
2581 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
2582 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
2583 only use.
2584
2585 * mips-tdep.c (temp_saved_regs): Delete.
2586 (set_reg_offset): Replace saved_regs parameter with this_cache.
2587 (heuristic_proc_desc, mips16_heuristic_proc_desc)
2588 (mips32_heuristic_proc_desc): Add this_cache parameter.
2589 (mips_insn32_frame_cache, mips_insn16_frame_cache)
2590 (after_prologue): Pass a NULL this_cache.
2591
2592 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
2593 non-kernel trap prologues.
2594
2595 * mips-tdep.c (find_proc_desc): Delete function.
2596 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
2597 simplify.
2598 (mips_insn16_frame_cache): Replace find_proc_desc with code from
2599 mips_insn32_frame_cache.
2600
2601 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
2602 Simplify as NEXT_FRAME is NULL.
2603 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
2604
2605 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
2606 local variable.
2607 (mips_skip_prologue): Update.
2608
2609 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
2610 "cur_frame" parameter.
2611 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
2612 (mips_insn32_frame_cache, find_proc_desc): Update
2613
2614 * config/vax/nm-obsd.h: Delete file.
2615 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2616 * config/vax/nm-nbsd.h: Delete file.
2617 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
2618 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2619 * config/sh/nm-nbsd.h: Delete file.
2620 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2621 * config/rs6000/nm-rs6000ly.h: Delete file.
2622 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
2623 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2624 * config/powerpc/nm-obsd.h: Delete file.
2625 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2626 * config/powerpc/nm-nbsd.h: Delete file.
2627 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2628 * config/pa/nm-obsd.h: Delete file.
2629 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2630 * config/mips/nm-nbsd.h: Delete file.
2631 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
2632 * config/m88k/nm-obsd.h: Delete file.
2633 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
2634 * config/m68k/nm-nbsd.h: Delete file.
2635 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
2636 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2637 * config/i386/nm-nbsd.h: Delete file.
2638 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
2639 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2640 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2641 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2642 * config/i386/nm-i386lynx.h: Delete file.
2643 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
2644 * config/arm/nm-nbsd.h: Delete file.
2645 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
2646 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
2647
2648 * config/i386/tm-fbsd.h: Delete file.
2649 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
2650 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
2651
2652 * config/rs6000/tm-rs6000-aix4.h: Delete file.
2653 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
2654 * config/rs6000/aix4.mt (TM_FILE): Set to
2655 config/rs6000/tm-rs6000.h.
2656 * config/powerpc/tm-ppc-aix.h: Delete file.
2657 * config/powerpc/aix.mt (TM_FILE): Set to
2658 config/rs6000/tm-rs6000.h.
2659 * config/m68k/tm-linux.h: Delete file.
2660 * config/m68k/linux.mt (TM_FILE): Set to solib.h
2661 * config/i386/tm-linux64.h: Delete file.
2662 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
2663 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
2664
2665 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2666 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
2667 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
2668 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
2669 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
2670 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
2671 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
2672 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2673 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
2674
2675 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
2676 gdb_host_cpu.
2677
2678 2004-09-02 Joel Brobecker <brobecker@gnat.com>
2679
2680 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
2681 Minor reformatting. Some code factoring.
2682
2683 2004-09-02 Andrew Cagney <cagney@gnu.org>
2684
2685 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
2686 * config/vax/tm-nbsd.h: Delete file.
2687 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2688 * config/sparc/tm-vxworks.h: Delete file.
2689 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
2690 * config/sparc/tm-nbsd.h: Delete file.
2691 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
2692 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
2693 * config/sparc/tm-linux.h: Delete file.
2694 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
2695 * config/s390/tm-linux.h: Delete file.
2696 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
2697 * config/pa/tm-bsd.h: Delete file.
2698 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
2699 * config/m68k/tm-obsd.h: Delete file.
2700 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
2701 * config/m68k/tm-nbsd.h: Delete file.
2702 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
2703 * config/i386/tm-vxworks.h: Delete file.
2704 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
2705 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
2706 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
2707 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
2708 * config/i386/tm-nbsd.h: Delete file.
2709 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
2710 * config/i386/tm-i386lynx.h: Delete file.
2711 * config/cris/cris.mt (TM_FILE): Set to solib.h.
2712 * config/cris/tm-cris.h: Delete file.
2713
2714 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
2715 * configure: Re-generate.
2716 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
2717 * config/arm/tm-nbsd.h: Delete file.
2718
2719 * config/powerpc/tm-ppcle-sim.h: Delete.
2720 * config/powerpc/tm-ppcle-eabi.h: Delete.
2721 * config/powerpc/tm-nbsd.h: Delete.
2722 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
2723 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
2724 tm-ppcle-eabi.h.
2725
2726 * config/i386/nto.mh (NAT_FILE): Delete.
2727 * config/i386/nm-nto.h: Delete.
2728
2729 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
2730 * config/m68k/tm-os68k.h: Ditto.
2731 * config/m68k/tm-monitor.h: Ditto.
2732 * config/m68k/tm-cisco.h: Ditto.
2733 * config/m68k/st2000.mt (TM_FILE): Delete.
2734 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
2735 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
2736 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
2737 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
2738
2739 * config/m68k/tm-st2000.h: Delete.
2740 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
2741 * config/sparc/fbsd.mt (TM_FILE): Delete.
2742 * config/sparc/tm-fbsd.h: Delete.
2743
2744 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
2745 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
2746 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
2747
2748 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
2749 GDB_TM_FILE and GDB_XM_FILE.
2750 * gdbarch.c: Re-generate.
2751 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
2752 quotes in macro definition.
2753 * configure.in: Re-generate.
2754
2755 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
2756 validating architecture methods.
2757 * gdbarch.c: Re-generate.
2758
2759 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
2760 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
2761 GDB_MULTI_ARCH_PARTIAL.
2762 * gdbarch.h: Re-generate.
2763
2764 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
2765 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
2766 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
2767 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
2768 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
2769 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
2770 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
2771 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
2772 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
2773 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
2774 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
2775 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
2776
2777 2004-09-01 Andrew Cagney <cagney@gnu.org>
2778
2779 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
2780 and main_func_highpc.
2781 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
2782 * objfiles.c (init_entry_point_info, objfile_relocate): Update
2783 * nlmread.c (nlm_symfile_read): Update.
2784
2785 2004-09-01 Joel Brobecker <brobecker@gnat.com>
2786
2787 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
2788 (mips_insn32_frame_cache): Inline call to find_proc_desc.
2789 (find_proc_desc): Remove dead code.
2790
2791 2004-09-01 Joel Brobecker <brobecker@gnat.com>
2792
2793 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
2794
2795 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
2796
2797 * observer.sh: Add struct so_list declaration.
2798 * Makefile.in: Add dependencies on observer.h for solib.c and
2799 breakpoint.c.
2800 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
2801 function.
2802 (_initialize_breakpoint): Register
2803 disable_breakpoints_in_unloaded_shlib as an observer of the
2804 "solib unloaded" observation event.
2805 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
2806 call decode_line_1 so unfound breakpoint errors are silent.
2807 * solib.c (update_solib_list): When a solib is discovered to have
2808 been unloaded by the program, notify all observers of the
2809 "solib unloaded" observation event.
2810
2811 2004-09-01 Andrew Cagney <cagney@gnu.org>
2812
2813 * frame.c: Include "objfiles.h".
2814 (inside_main_func): New function.
2815 (get_prev_frame): Use new inside_main_func.
2816 * Makefile.in (frame.o): Update dependencies.
2817 * defs.h (inside_main_func): Delete declaration.
2818 * blockframe.c (inside_main_func): Delete function.
2819
2820 2004-08-31 Jim Blandy <jimb@redhat.com>
2821
2822 * dwarf2read.c (is_vtable_name): New function, based on logic from
2823 read_structure_type, but passing the correct length to strncmp,
2824 and using 'sizeof' instead of 'strlen'.
2825 (read_structure_type): Call it.
2826
2827 2004-08-31 Joel Brobecker <brobecker@gnat.com>
2828
2829 * config/powerpc/aix.mh: Add comment.
2830
2831 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
2832
2833 * MAINTAINERS: Add self to Write-After-Approval.
2834
2835 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
2836
2837 * MAINTAINERS: Add self to Write-After-Approval.
2838
2839 2004-08-30 Andrew Cagney <cagney@gnu.org>
2840
2841 Fix PR breakpoints/1757.
2842 * infrun.c (struct execution_control_state): Replace
2843 remove_breakpoints_on_following_step with
2844 step_after_step_resume_breakpoint.
2845 (init_execution_control_state): Update.
2846 (handle_inferior_event): For signals, when stepping off a
2847 breakpoint, set step_after_step_resume_breakpoint. When
2848 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
2849 (keep_going): Delete code handling
2850 remove_breakpoints_on_following_step.
2851
2852 2004-08-29 David Lecomber <david@streamline-computing.com>
2853
2854 Fix PR gdb/648
2855 * language.h (enum array_ordering): New enum.
2856 * language.h (struct language_defn): New la_array_ordering
2857 attribute.
2858 * language.c (unknown_language_defn, auto_language_defn)
2859 (local_language_defn): Ditto.
2860 * ada-lang.c (ada_language_defn): Ditto.
2861 * c-lang.c (c_language_defn, cplus_language_defn)
2862 (asm_language_defn, minimal_language_defn): Ditto.
2863 * f-lang.c (f_language_defn): Ditto.
2864 * jv-lang.c (java_language_defn): Ditto.
2865 * m2-lang.c (f_language_defn): Ditto.
2866 * objc-lang.c (objc_language_defn): Ditto.
2867 * p-lang.c (pascal_language_defn): Ditto.
2868 * scm-lang.c (scm_language_defn): Ditto.
2869 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
2870 oriented large to small in type structure.
2871 * dwarf2read.c (read_array_order): New function.
2872 (read_array_type): Use read_array_order to check row/column
2873 major ordering.
2874
2875 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
2876
2877 * target.c (target_resize_to_sections): Check
2878 current_target.to_sections for an old value when updating.
2879
2880 2004-08-27 Joel Brobecker <brobecker@gnat.com>
2881
2882 * procfs.c (dbx_link_bpt_addr): New static global variable.
2883 (dbx_link_shadow_contents): New static global variable.
2884 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
2885 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
2886 if we just hit it.
2887 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
2888 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
2889 from run to run.
2890 (procfs_create_inferior): Remove syssgi syscall-exit notifications
2891 after the inferior has been forked.
2892 (remove_dbx_link_breakpoint): New function.
2893 (dbx_link_addr): New function.
2894 (insert_dbx_link_bpt_in_file): New function.
2895 (insert_dbx_link_bpt_in_region): New function.
2896 (insert_dbx_link_breakpoint): New function.
2897 (proc_trace_syscalls_1): New function, extracted from
2898 proc_trace_syscalls.
2899 (proc_trace_syscalls): Replace extract code by call to
2900 proc_trace_syscalls_1.
2901 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
2902 is no longer valid.
2903
2904 2004-08-25 Jim Blandy <jimb@redhat.com>
2905
2906 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
2907
2908 2004-08-25 Andrew Cagney <cagney@gnu.org>
2909
2910 * infrun.c (struct execution_control_state): Delete field
2911 "stepping_through_sigtramp".
2912 (init_execution_control_state): Do not set same.
2913 (context_switch): Do not pass same to save_infrun_state and
2914 load_infrun_state.
2915 * gdbthread.h (struct thread_info): Delete field
2916 stepping_through_sigtramp.
2917 (save_infrun_state, load_infrun_state): Delete parameter
2918 stepping_through_sigtramp.
2919 * thread.c (load_infrun_state, save_infrun_state): Update.
2920
2921 * infrun.c: Re-indent. Move expression operators to the beginning
2922 of the line. Remove long disabled #if 0 code.
2923
2924 2004-08-24 Andrew Cagney <cagney@gnu.org>
2925
2926 * doublest.h (floatformat_ieee_quad): Rename
2927 floatformat_ia64_quad.
2928 * doublest.c (floatformat_ieee_quad): Rename
2929 floatformat_ia64_quad.
2930 (_initialize_doublest): Update.
2931
2932 2004-08-24 Jim Blandy <jimb@redhat.com>
2933
2934 * dwarf2expr.h (struct dwarf_expr_context): New members
2935 'num_pieces' and 'pieces', for returning the result of an
2936 expression that uses DW_OP_piece.
2937 (struct dwarf_expr_piece): New struct type.
2938 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
2939 pieces.
2940 (free_dwarf_expr_context): Free pieces, if any.
2941 (add_piece): New function.
2942 (execute_stack_op): Implement DW_OP_piece.
2943 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
2944 expression is a list of pieces, print an error message.
2945 (dwarf2_loc_desc_needs_frame): If the expression yields
2946 pieces, and any piece is in a register, then we need a frame.
2947
2948 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
2949 the stack until we've decided what sort of result the evaluation
2950 has produced. Use separate variables, with more specific names.
2951
2952 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
2953
2954 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
2955 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
2956 (arm_netbsd_init_abi_common): Register them.
2957
2958 2004-08-22 Mark Kettenis <kettenis@gnu.org>
2959
2960 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
2961
2962 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
2963 safe_frame_unwind_memory instead of target_read_memory.
2964
2965 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
2966 Reorder includes.
2967 (fetch_register, store_register): Remove prototypes.
2968 (child_resume): Reorganize code and comments such that it is
2969 grouped a bit more logically.
2970 (attach): Explicitly compare errno against 0.
2971 (detach): Likewise. Use perror_with_name instead of
2972 print_sys_errmsg.
2973 * Makefile.in (infptrace.o): Update dependencies.
2974
2975 * ia64-linux-nat.c: Update copyright year.
2976 (fetch_debug_register, store_debug_register)
2977 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
2978 PTRACE_TYPE_ARG3.
2979 * config/ia64/nm-linux.h: Update copyright year.
2980 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
2981
2982 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
2983 from CORE_ADDR to struct frame_info *. Use
2984 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
2985 (amd64_linux_sigtramp_p): Adjust for changed signature of
2986 and64_linux_sigtramp_start
2987
2988 * gdb_ptrace.h: GNU/Linux.
2989
2990 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
2991 Remove defines.
2992
2993 * infptrace.c: Include "gdb_assert.h".
2994 (PTRACE_XFER_TYPE): Remove define.
2995 (offsetof): Only define if U_REGS_OFFSET isn't defined.
2996 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
2997 Tweak comment.
2998 (fetch_inferior_registers, store_inferior_registers): Remove
2999 redundant culry braces. Tweak comment. s/regno/regnum.
3000 * Makefile.in (infptrace.o): Update dependencies.
3001
3002 * configure.in: Change test for return type of ptrace to default
3003 to `long' instead of `int'.
3004 * configure: Regenerate.
3005
3006 2004-08-21 Mark Kettenis <kettenis@gnu.org>
3007
3008 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
3009
3010 * configure.in: Check for ttrace function.
3011 * configure, config.in: Regenerate.
3012
3013 * gdb_ptrace.h: New file.
3014 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
3015 <sys/ptrace.h>.
3016 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
3017 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
3018 (attach): Don't define PT_ATTACH.
3019 (detach): Don't define PT_DETACH.
3020 * Makefile.in (gdb_ptrace_h): New variable.
3021 (infptrace.o): Update dependencies.
3022
3023 2004-08-16 Mark Kettenis <kettenis@gnu.org>
3024
3025 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
3026 instead of `int' if not already defined.
3027 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
3028 PTRACE_TYPE_ARG3.
3029 * infptrace.c (call_ptrace): Revert change that replaced
3030 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3031
3032 2004-08-15 Mark Kettenis <kettenis@gnu.org>
3033
3034 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3035 Remove defines.
3036
3037 * linux-nat.c (kill_inferior): Add missing third and fourth
3038 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
3039
3040 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
3041 PTRACE_TYPE_RET.
3042
3043 * proc-why.c (proc_prettyfprint_why): Fix format string.
3044
3045 * solib-osf.c (osf_current_sos): Remove unsused label.
3046
3047 * configure.in: Add <ncurses/ncurses.h> to the list of possible
3048 curses headers.
3049 * configure, config.in: Regenerate.
3050 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
3051 <ncurses/ncurses.h>.
3052
3053 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
3054 * config/nm-nbsd.h: Update copyright year.
3055 (PTRACE_ARG3_TYPE): Remove define.
3056
3057 * sparc-nat.c (fetch_inferior_registers)
3058 (store_inferior_registers, sparc_xfer_wcookie):
3059 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3060
3061 * alphabsd-nat.c (fetch_inferior_registers):
3062 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3063 PTRACE_TYPE_ARG3.
3064 * amd64bsd-nat.c (fetch_inferior_registers)
3065 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3066 PTRACE_TYPE_ARG3.
3067 * armnbsd-nat.c: Update copyright year.
3068 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
3069 (store_register, store_regs, store_fp_register, store_fp_regs):
3070 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3071 * hppabsd-nat.c (fetch_inferior_registers)
3072 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3073 PTRACE_TYPE_ARG3.
3074 * i386bsd-nat.c (fetch_inferior_registers)
3075 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
3076 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3077 * m68kbsd-nat.c (fetch_inferior_registers)
3078 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3079 PTRACE_TYPE_ARG3.
3080 * m88kbsd-nat.c (fetch_inferior_registers)
3081 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3082 PTRACE_TYPE_ARG3.
3083 * mipsnbsd-nat.c: Update copyright year.
3084 (fetch_inferior_registers, store_inferior_registers):
3085 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3086 * ns32knbsd-nat.c: Update copyright year.
3087 (fetch_inferior_registers, store_inferior_registers):
3088 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3089 * ppcnbsd-nat.c (fetch_inferior_registers):
3090 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3091 PTRACE_TYPE_ARG3.
3092 * ppcobsd-nat.c (fetch_inferior_registers):
3093 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3094 PTRACE_TYPE_ARG3.
3095 * shnbsd-nat.c: Update copyright year.
3096 (fetch_inferior_registers, store_inferior_registers):
3097 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3098 * vaxbsd-nat.c (fetch_inferior_registers)
3099 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3100 PTRACE_TYPE_ARG3.
3101
3102 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
3103 PTRACE_TYPE_ARG3.
3104 * infptrace.c (call_ptrace, child_resume, attach, detach)
3105 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
3106 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3107 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
3108 PTRACE_TYPE_ARG3.
3109
3110 2004-08-14 Mark Kettenis <kettenis@gnu.org>
3111
3112 * defs.h: Remove out-of-date comment.
3113 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
3114 [!GETENV_PROVIDED] (getenv): Remove prototype.
3115
3116 * standalone.c: Remove file.
3117 * Makefile.in (standalone.o): Remove dependency.
3118
3119 * i386-linux-nat.c (dummy_sse_values): Remove function and
3120 prototype.
3121 (i386_linux_dr_get): Fix typo in comment.
3122 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
3123
3124 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
3125
3126 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3127 from declaration.
3128 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
3129 from definition.
3130
3131 2004-08-13 Mark Kettenis <kettenis@gnu.org>
3132
3133 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
3134 parenthesis in definition.
3135 * configure: Regenerated.
3136
3137 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
3138
3139 * PROBLEMS: Mention build/1411.
3140
3141 2004-08-09 Robert Millan <robertmh@gnu.org>
3142
3143 Committed by Nathanael Nerode.
3144 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
3145 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
3146
3147 2004-08-12 Andrew Cagney <cagney@gnu.org>
3148
3149 * NEWS: Mention fixes in GDB 6.2.1.
3150 * PROBLEMS: Remove mention of mips-irix.
3151
3152 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3153
3154 * config/powerpc/xm-aix.h: Delete.
3155 * config/powerpc/aix.mh (MH_FILE): Remove.
3156 * config/powerpc/aix432.mh (MH_FILE): Remove.
3157
3158 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3159
3160 * config/powerpc/aix.mh: Remove obsolete comment.
3161 * config/powerpc/aix432.mh: Likewise.
3162
3163 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3164
3165 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
3166
3167 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3168
3169 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
3170 this file is now empty.
3171 * config/xm-aix4.h: Remove, this file is no longer included
3172 anywhere.
3173
3174 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3175
3176 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
3177 that file is now empty.
3178 (termdef): Remove prototype, function no longer used.
3179
3180 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3181
3182 * doc/gdbint.texinfo (Host Definition): Remove documentation
3183 for USE_O_NOCTTY, no longer used.
3184 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
3185 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
3186
3187 2004-08-11 Joel Brobecker <brobecker@gnat.com>
3188
3189 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
3190 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
3191 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
3192
3193 2004-08-11 Mark Kettenis <kettenis@gnu.org>
3194
3195 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
3196 instead of FIVE_ARG_PTRACE.
3197
3198 * inflow.c (O_NOCTTY): Define to zero if not already defined.
3199 (new_tty): Use O_NOCTTY unconditionally.
3200
3201 2004-08-10 Mark Kettenis <kettenis@gnu.org>
3202
3203 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
3204 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
3205 fflush on stdout.
3206
3207 2004-08-10 Joel Brobecker <brobecker@gnat.com>
3208
3209 * xcoff_symfile_finish: Replace last call to xmfree by call
3210 to xfree.
3211
3212 2004-08-10 Andrew Cagney <cagney@gnu.org>
3213
3214 * main.c (captured_main): Delete call to init_malloc.
3215 * defs.h (init_malloc): Delete declaration.
3216 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
3217 (init_malloc): Delete functions.
3218
3219 * defs.h (xmfree): Delete.
3220 * utils.c (xmfree): Delete function.
3221 (xfree): Inline calls to xmfree and mfree.
3222 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
3223 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
3224 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
3225 * somread.c (som_symfile_finish): Ditto.
3226 * objfiles.c (allocate_objfile, free_objfile):
3227 * nlmread.c (nlm_symfile_finish): Ditto.
3228 * hpread.c (hpread_symfile_finish): Ditto.
3229 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
3230 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
3231 * coffread.c (coff_symfile_finish): Ditto.
3232
3233 * defs.h (xmcalloc): Delete declaration.
3234 * utils.c (xmcalloc): Delete.
3235 (xcalloc): Inline calls to xmcalloc and mcalloc.
3236 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
3237 xcalloc and xfree.
3238 * symtab.c (create_demangled_names_hash): Ditto.
3239
3240 * defs.h (xmrealloc): Delete.
3241 * utils.c (xmrealloc): Delete.
3242 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
3243 * symmisc.c (extend_psymbol_list): Use xrealloc.
3244 * source.c (find_source_lines): Ditto.
3245 * hpread.c (hpread_lookup_type): Ditto.
3246 * dbxread.c (add_bincl_to_list): Ditto.
3247
3248 * utils.c (xmmalloc): Delete.
3249 (xmalloc): Inline xmmalloc and mmalloc calls.
3250 (msavestring): Use xmalloc.
3251 * defs.h (xmmalloc): Delete declaration.
3252 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
3253 xmmalloc.
3254 * symmisc.c (extend_psymbol_list): Ditto.
3255 * symfile.c (init_psymbol_list): Ditto.
3256 * source.c (find_source_lines): Ditto.
3257 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
3258 * elfread.c (elf_symtab_read): Ditto.
3259 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
3260 * coffread.c (coff_symfile_init): Ditto.
3261
3262 2004-08-10 David Carlton <carlton@bactrian.org>
3263
3264 * MAINTAINERS: Remove David Carlton from c++ testsuite
3265 maintainers.
3266
3267 2004-08-10 Jerome Guitton <guitton@gnat.com>
3268
3269 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
3270 print a line feed before the prompt.
3271
3272 2004-08-10 Mark Kettenis <kettenis@gnu.org>
3273
3274 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
3275
3276 2004-08-09 Joel Brobecker <brobecker@gnat.com>
3277
3278 General cleanup of the AIX xm include file:
3279 * config/xm-aix4.h (fd_set): Remove undefine.
3280 Remove include of <sys/select.h>.
3281 (HAVE_TERMIO): Remove define.
3282 (USG): Likewise.
3283 (NULL): Remove redefine.
3284 (alloca): Remove #pragma.
3285 (vfork): Remove define.
3286 (termdef): Remove.
3287 (SIGWINCH_HANDLER): Remove.
3288 (SIGWINCH_HANDLER_BODY): Remove.
3289
3290 2004-08-09 Mark Kettenis <kettenis@gnu.org>
3291
3292 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
3293 GDB_OSABI_OPENBSD_ELF.
3294
3295 2004-08-07 Robert Millan <robertmh@gnu.org>
3296
3297 * bsd-kvm.c: Check for nlist.h before including it.
3298
3299 2004-08-09 Mark Kettenis <kettenis@gnu.org>
3300
3301 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
3302 sigcontext' offset consistency checks for ancient BSD.
3303
3304 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
3305
3306 * configure.in: Check for <sys/types.h>. Check return and
3307 argument types of ptrace.
3308 * configure, config.in: Regenerate.
3309
3310 2004-08-09 Jim Blandy <jimb@redhat.com>
3311
3312 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
3313 rs6000_register_sim_regno): Doc fixes.
3314
3315 2004-08-08 Joel Brobecker <brobecker@gnat.com>
3316
3317 * mips-tdep.c: Include "floatformat.h".
3318 (n32n64_floatformat_always_valid): New function.
3319 (floatformat_n32n64_long_double_big): New constant.
3320 (mips_gdbarch_init): Set size and format of long double
3321 for N32 and N64 ABIs.
3322 * Makefile.in (mips-tdep.o): Update dependencies.
3323
3324 2004-08-08 Andrew Cagney <cagney@gnu.org>
3325
3326 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
3327 print. Improve script's error messages.
3328 * gdbarch.h: Re-generate.
3329
3330 * gdbarch.sh (pformat): New function.
3331 (float_format, double_format, long_double_format): List with bit
3332 members. Use pformat when printing.
3333 * gdbarch.c, gdbarch.h: Re-generate.
3334
3335 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
3336
3337 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
3338 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
3339 (ppcnbsd_supply_pcb): New function.
3340 (_initialize_ppcnbsd_nat): New prototype and function.
3341 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3342 (LOADLIBES): New variable.
3343 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
3344
3345 2004-08-08 Andrew Cagney <cagney@gnu.org>
3346
3347 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
3348 (builtin_type_ieee_double, builtin_type_ia64_quad)
3349 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
3350 BE/LE floating-point types.
3351 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
3352 (builtin_type_ieee_double, builtin_type_ia64_quad)
3353 (builtin_type_ia64_spill): Declare.
3354 * doublest.c (_initialize_doublest, floatformat_ieee_single)
3355 (floatformat_ieee_double, floatformat_arm_ext)
3356 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
3357 of LE/BE floatformats.
3358 * doublest.h: (struct floatformat, floatformat_ieee_single)
3359 (floatformat_ieee_double, floatformat_arm_ext)
3360 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
3361
3362 2004-08-08 Mark Kettenis <kettenis@gnu.org>
3363
3364 * i386gnu-nat.c (gnu_store_registers): Fix typo.
3365
3366 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
3367 instead of regcache_raw_supply when storing the registers.
3368
3369 * i386gnu-nat.c: Update copyright year.
3370 (gnu_store_registers): Don't use deprecated_registers and
3371 deprecated_registers_valid. Use regcache_valid_p and
3372 regcache_raw_supply instead.
3373
3374 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
3375 frame_pc_unwind.
3376
3377 * procfs.c (procfs_pid_to_str): Remove redundant and unused
3378 variables. Incapitalized "process".
3379
3380 * configure.in: Add cursesX to the list of possible curses libs.
3381 Add cursesX.h to the list of possible curses headers.
3382 * configure, config.in: Regenerate.
3383
3384 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3385
3386 * configure.in: Test for struct lwp in <sys/lwp.h>.
3387 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
3388 the offset of l_addr in struct lwp.
3389
3390 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
3391
3392 * bsd-kvm.c: Include "gdbcore.h"
3393 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
3394
3395 2004-08-07 Andrew Cagney <cagney@gnu.org>
3396
3397 * gdbtypes.c (build_flt, build_complex): New functions.
3398 (gdbtypes_post_init): Use.
3399
3400 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
3401
3402 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
3403 through to builtin_type_uint128.
3404
3405 * c-exp.y: Use builtin_type function to obtain builtin types.
3406
3407 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
3408 builtin_uint128.
3409 * gdbtypes.c (gdbtypes_post_init): Update.
3410 (build_gdbtypes): Move initialization of builtin_type_int0
3411 through to builtin_type_uint128 from here ...
3412 (_initialize_gdbtypes): ... to here.
3413 * d10v-tdep.c (d10v_register_type): Update.
3414
3415 * doublest.c: Update copyright.
3416 (floatformat_from_length): Call error when floatformat is NULL.
3417 (extract_floating_by_length): Remove NULL fmt check.
3418 (store_floating_by_length): Ditto.
3419
3420 2004-08-07 Andrew Cagney <cagney@gnu.org>
3421
3422 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
3423 that the register is valid.
3424
3425 2004-08-05 Mark Kettenis <kettenis@chello.nl>
3426
3427 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3428 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
3429 struct frame_info *. Use safe_frame_unwind_memory instead of
3430 deprecated_read_memory_nobpt.
3431 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
3432 changed signature of i386_linux_sigtramp_start and
3433 i386_linux_rt_sigtramp_start.
3434
3435 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
3436 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
3437 instead of deprecated_read_memory_nobpt.
3438 (i386nbsd_sigtramp_p): Adjust for changed signature of
3439 i386nbsd_sigtramp_offset.
3440
3441 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
3442 safe_frame_unwind_memory instead of target_read_memory.
3443
3444 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3445 !NO_SYS_FILE.
3446 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
3447 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
3448 (_initialize_kernel_u_addr): Remove prototype and function.
3449 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
3450 !NO_SYS_FILE.
3451 * xcoffread.c: Likewise.
3452
3453 2004-08-06 Mark Kettenis <kettenis@gnu.org>
3454
3455 * vax-nat.c: New file.
3456 * vaxbsd-nat.c: Tweak comment.
3457 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
3458 vaxnbsd-tdep.c.
3459 (vax-nat.o): New dependency.
3460 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
3461 (vax-*-ultrix2*): Remove.
3462 * config/vax/vax.mh: New file.
3463 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
3464 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
3465 (vax_register_u_addr): New prototype.
3466 (REGISTER_U_ADDR): Define using vax_register_u_addr.
3467 * config/vax/vaxult2.mh: Remove file.
3468 * config/vax/vaxult.mh: Remove file.
3469 * config/vax/vaxbsd.mh: Remove file.
3470 * config/vax/vax.mt (TM_FILE): Remove.
3471 * config/vax/tm-vaxbsd.h: Remove file.
3472
3473 2004-08-06 Joel Brobecker <brobecker@gnat.com>
3474
3475 * aix-thread.c (get_signaled_thread): New function.
3476 (iter_trap): Delete, no longer used.
3477 (iter_tid): New function.
3478 (pd_update): Find the thread that received the SIGTRAP signal
3479 by first locating the kernel thread, and then finding its
3480 associated thread.
3481
3482 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
3483
3484 * lin-lwp.c (child_wait): Continue inferior after processing
3485 PTRACE_EVENT_CLONE event.
3486
3487 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
3488
3489 * MAINTAINERS: Add self to Write-After-Approval.
3490
3491 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
3492
3493 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
3494 libunwind-xxxx.so" where xxxx is UNW_TARGET.
3495
3496 2004-08-05 Andrew Cagney <cagney@gnu.org>
3497
3498 * config/xm-sysv4.h: Delete file.
3499 * config/mips/xm-irix5.h: Delete file.
3500 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
3501 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
3502 * config/ia64/xm-aix.h: Delete file.
3503 * config/ia64/aix.mh (XM_FILE): Delete.
3504 * config/pa/xm-hppah.h: Delete file.
3505 * config/pa/hpux11w.mh (XM_FILE): Delete.
3506 * config/pa/hpux11.mh (XM_FILE): Delete.
3507 * config/pa/hpux1020.mh (XM_FILE): Delete.
3508 * config/pa/hppahpux.mh (XM_FILE): Delete.
3509
3510 * config/alpha/xm-alphalinux.h: Delete file.
3511 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
3512 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
3513 * config/alpha/xm-alphaosf.h: Delete file.
3514 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
3515 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
3516 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
3517 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
3518
3519 * config/i386/xm-i386v.h: Delete file.
3520 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
3521 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
3522 * config/i386/xm-i386sco.h: Delete file.
3523 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
3524 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
3525 * config/i386/xm-i386v4.h: Delete file.
3526 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
3527 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
3528 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
3529 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
3530
3531 * config/vax/xm-vax.h: Delete file.
3532 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
3533 * config/vax/xm-vaxult2.h: Delete file.
3534 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
3535 * config/vax/vaxult2.mh (XM_FILE): Delete.
3536 * config/vax/xm-vaxult.h: Delete file.
3537 * config/vax/vaxult.mh (XM_FILE): Delete.
3538 * config/vax/xm-vaxbsd.h: Delete file.
3539 * config/vax/vaxbsd.mh (XM_FILE): Delete.
3540
3541 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
3542 * gdbarch.h, gdbarch.c: Re-generate.
3543 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
3544 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
3545 * frame.h: Delete deprecated_read_fp from comments.
3546 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
3547 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
3548
3549 2004-08-04 Mark Kettenis <kettenis@gnu.org>
3550
3551 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
3552 trampoline in OpenBSD 3.5-current.
3553
3554 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
3555 SSE registers.
3556
3557 * Makefile.in: Remove embedded page breaks.
3558
3559 2004-08-04 Jim Blandy <jimb@redhat.com>
3560
3561 * regcache.c (regcache_raw_read): Assert that, after calling
3562 target_fetch_registers, the register we're reading is cached.
3563
3564 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
3565 a call to 'internal_error', with a more helpful error message.
3566 * rs6000-tdep.c (e500_pseudo_register_read,
3567 e500_pseudo_register_write, rs6000_store_return_value): Same.
3568
3569 2004-08-04 Andrew Cagney <cagney@gnu.org>
3570
3571 * Makefile.in: Update dependencies.
3572
3573 2004-08-04 Jim Blandy <jimb@redhat.com>
3574
3575 Change the layout of the PowerPC E500 raw register cache to allow
3576 the lower 32-bit halves of the GPRS to be their own raw registers,
3577 not pseudoregisters.
3578 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
3579 add ppc_ev0_upper_regnum flag.
3580 * rs6000-tdep.c: #include "reggroups.h".
3581 (spe_register_p): Recognize the ev upper half registers as SPE
3582 registers.
3583 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
3584 registers.
3585 (e500_move_ev_register): New function.
3586 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
3587 vector registers are the pseudo-registers now, formed by splicing
3588 together the gprs and the upper-half registers.
3589 (e500_register_reggroup_p): New function.
3590 (P): Macro deleted.
3591 (P8, A4): New macro.
3592 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
3593 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
3594 macros.
3595 (registers_e500): Rearrange register set so that the raw register
3596 set contains 32-bit GPRs and upper-half registers, and the SPE
3597 vector registers become pseudo-registers.
3598 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
3599 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
3600 register numbers are now the same for the E500 as they are for
3601 other PowerPC variants. Register e500_register_reggroup_p as the
3602 register group function for the E500.
3603 * Makefile.in (rs6000-tdep.o): Update dependencies.
3604
3605 Adapt PPC E500 native support to the new raw regcache layout.
3606 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
3607 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
3608 (fetch_spe_register, store_spe_register): Handle fetching/storing
3609 all the SPE registers at once, if regno == -1. These now take
3610 over the job of fetch_spe_registers and store_spe_registers.
3611 (fetch_spe_registers, store_spe_registers): Deleted.
3612 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
3613 unconditionally; they're always raw. Fetch/store SPE upper half
3614 registers, if present, instead of ev registers.
3615 (fetch_register, store_register): Remove sanity checks: gprs are
3616 never pseudo-registers now, so we never need to even mention any
3617 registers that are ever pseudoregisters.
3618
3619 Use a fixed register numbering when communicating with the PowerPC
3620 simulator.
3621 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
3622 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
3623 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
3624 New functions.
3625 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
3626 init_sim_regno_table.
3627 * Makefile.in (gdb_sim_ppc_h): New variable.
3628 (rs6000-tdep.o): Update dependencies.
3629
3630 2004-08-02 Andrew Cagney <cagney@gnu.org>
3631
3632 * cris-tdep.c (cris_register_size): Restore function, still used
3633 locally.
3634
3635 * gdbarch.sh (deprecated_target_read_fp)
3636 (deprecated_frame_locals_address, deprecated_frame_args_address)
3637 (deprecated_frame_chain_valid, deprecated_frame_chain)
3638 (deprecated_init_extra_frame_info, deprecated_pop_frame)
3639 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
3640 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
3641 * gdbarch.h, gdbarch.c: Re-generate.
3642 * regcache.c (deprecated_read_fp): Do not call
3643 DEPRECATED_TARGET_READ_FP_P.
3644 * infcmd.c (default_print_registers_info): Do not call
3645 DEPRECATED_DO_REGISTERS_INFO.
3646 * frame-base.c (default_frame_locals_address): Do not call
3647 DEPRECATED_FRAME_LOCALS_ADDRESS.
3648 (default_frame_args_address): Do not call
3649 DEPRECATED_FRAME_ARGS_ADDRESS.
3650
3651 * gdbarch.sh (deprecated_register_raw_size)
3652 (deprecated_register_virtual_size:int): Delete.
3653 * gdbarch.h, gdbarch.c: Re-generate.
3654 * cris-tdep.c (cris_register_size): Delete.
3655 (cris_gdbarch_init): Update.
3656 * alpha-tdep.c (alpha_register_raw_size)
3657 (alpha_register_virtual_size): Delete.
3658 (alpha_gdbarch_init): Update.
3659
3660 * gdbarch.sh (deprecated_register_virtual_type)
3661 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
3662 (deprecated_dummy_write_sp): Delete.
3663 * gdbarch.h, gdbarch.c: Re-generate.
3664
3665 * gdbarch.sh (deprecated_register_bytes): Delete.
3666 * gdbarch.h, gdbarch.c: Re-generate.
3667 * regcache.c (deprecated_register_bytes): New function.
3668 * regcache.h (deprecated_register_bytes): Declare.
3669 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3670 * v850-tdep.c (v850_gdbarch_init): Update.
3671 * sh64-tdep.c (sh64_gdbarch_init): Update.
3672 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
3673 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3674 * mcore-tdep.c (mcore_gdbarch_init): Update.
3675 * cris-tdep.c (cris_gdbarch_init): Update.
3676 * arm-tdep.c (arm_gdbarch_init): Update.
3677 * remote.c (init_remote_state): Update.
3678 * remote-vx.c (vx_prepare_to_store): Update.
3679 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
3680 * irix5-nat.c (fetch_core_registers): Update.
3681 * cris-tdep.c (cris_register_bytes_ok): Update.
3682 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
3683
3684 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
3685 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
3686 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
3687 (mips_insn16_frame_base_address, mips_insn16_frame_base)
3688 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
3689 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
3690 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
3691 (mips_insn32_frame_base_address, mips_insn32_frame_base)
3692 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
3693 with mips_insn16 and mips_insn32.
3694
3695 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
3696 * rs6000-tdep.c (rs6000_push_dummy_call)
3697 (rs6000_extract_return_value): Use register_size.
3698 * xstormy16-tdep.c (xstormy16_get_saved_register)
3699 (xstormy16_extract_return_value): Ditto.
3700 * valops.c (value_assign): Ditto.
3701 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
3702 * v850-tdep.c (v850_extract_return_value): Ditto.
3703 * tracepoint.c (collect_symbol): Ditto.
3704 * target.c (debug_print_register): Ditto.
3705 * stack.c (frame_info): Ditto.
3706 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
3707 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
3708 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
3709 (store_register_using_P): Ditto.
3710 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
3711 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
3712 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
3713 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
3714 * regcache.c (deprecated_read_register_bytes)
3715 (deprecated_write_register_bytes, read_register)
3716 (write_register): Ditto.
3717 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
3718 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
3719 * monitor.c (monitor_supply_register, monitor_fetch_register)
3720 (monitor_store_register): Ditto.
3721 * mn10300-tdep.c (mn10300_pop_frame_regular)
3722 (mn10300_print_register): Ditto.
3723 * mipsv4-nat.c (fill_fpregset): Ditto.
3724 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
3725 (mips64_fill_fpregset): Ditto.
3726 * mi/mi-main.c (register_changed_p, get_register)
3727 (mi_cmd_data_write_register_values): Ditto.
3728 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
3729 * irix5-nat.c (fill_gregset, fetch_core_registers):
3730 * infrun.c (write_inferior_status_register): Ditto.
3731 * infptrace.c (fetch_register, store_register): Ditto.
3732 * infcmd.c (default_print_registers_info): Ditto.
3733 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
3734 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
3735 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
3736 * hpux-thread.c (hpux_thread_fetch_registers)
3737 (hpux_thread_store_registers): Ditto.
3738 * hppah-nat.c (store_inferior_registers, fetch_register):
3739 * findvar.c (value_from_register): Ditto.
3740 * dve3900-rom.c (fetch_bitmapped_register):
3741 * cris-tdep.c (cris_gdbarch_init): Ditto.
3742 * alpha-tdep.h: Ditto.
3743 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
3744
3745 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
3746 DEPRECATED_REGISTER_RAW_SIZE from comments.
3747 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
3748 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
3749 DEPRECATED_REGISTER_RAW_SIZE.
3750 * findvar.c (value_of_register): Simplify by assuming that the
3751 registers raw and virtual sizes are identical.
3752 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
3753 comment.
3754 * arch-utils.c (generic_register_size): Simplify by assuming
3755 register_type.
3756
3757 * regcache.c (legacy_read_register_gen, real_register)
3758 (legacy_write_register_gen): Delete, not used.
3759
3760 * regcache.c (struct regcache_descr): Delete legacy_p.
3761 (init_legacy_regcache_descr): Delete function.
3762 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
3763 Do not use deprecated register functions.
3764 (regcache_raw_read, deprecated_write_register_gen):
3765 (deprecated_read_register_gen, regcache_raw_write): Delete code
3766 predicated on legacy_p.
3767 (register_size): Delete check against register raw size.
3768
3769 * cris-tdep.c (cris_register_type): Replace
3770 cris_register_virtual_type.
3771 (cris_gdbarch_init): Update, set register_type.
3772
3773 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
3774 * gdbarch.h, gdbarch.c: Re-generate.
3775 * arm-tdep.c (arm_frameless_function_invocation): Delete.
3776 (arm_gdbarch_init) Do not set frameless function invocation.
3777 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
3778 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
3779 * frv-tdep.c (frv_frameless_function_invocation): Delete.
3780 (frv_gdbarch_init): Do not set frameless function invocation.
3781 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
3782 * sh-tdep.c (sh_gdbarch_init): Ditto.
3783 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
3784 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3785 * avr-tdep.c (avr_gdbarch_init): Ditto.
3786
3787 * blockframe.c (legacy_frame_chain_valid): Delete function.
3788
3789 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
3790 and pc. Update comments.
3791 (pc_in_dummy_frame): Delete function.
3792 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
3793 use the "id".
3794 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
3795 call_hi, top and pc, use the id.
3796 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
3797
3798 * dummy-frame.c: Include "gdb_string.h".
3799 (generic_save_call_dummy_addr, generic_push_dummy_frame)
3800 (generic_save_dummy_frame_tos): Delete.
3801 (dummy_frame_push): New function, replaces above.
3802 * dummy-frame.h: Update copyright.
3803 (dummy_frame_push): Declare.
3804 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
3805 (generic_save_call_dummy_addr): Delete declarations.
3806 * infcall.c: Include "dummy-frame.h".
3807 (call_function_by_hand): Add locals caller_regcache,
3808 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
3809 with call to frame_save_as_regcache plus cleanup. Delete calls to
3810 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
3811 Move clear_proceed_status to just before the resume, add call to
3812 dummy_frame_push (discard cleanup).
3813 * Makefile.in (infcall.o): Add $(dummy_frame_h).
3814 (dummy-frame.o): Add $(gdb_string_h).
3815
3816 2004-08-01 Andrew Cagney <cagney@gnu.org>
3817
3818 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
3819 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
3820 * dummy-frame.c (find_dummy_frame): Delete.
3821 (struct dummy_frame_cache, dummy_frame_sniffer)
3822 (dummy_frame_prev_register, dummy_frame_this_id)
3823 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
3824 frame unwinder using a dummy_frame_cache.
3825
3826 2004-08-01 Andrew Cagney <cagney@gnu.org>
3827
3828 * frame.h (frame_save_as_regcache): Declare.
3829 * frame.c (frame_save_as_regcache): New function.
3830 (do_frame_read_register): Replace do_frame_unwind_register.
3831 (frame_pop): Use frame_save_as_regcache.
3832 * dummy-frame.c (generic_push_dummy_frame): Use
3833 frame_save_as_regcache.
3834
3835 2004-08-01 Joel Brobecker <brobecker@gnat.com>
3836
3837 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
3838 file as included until we record the first line in the linetable.
3839
3840 2004-08-01 Andrew Cagney <cagney@gnu.org>
3841
3842 * frame.h (deprecated_pop_dummy_frame)
3843 (deprecated_read_register_dummy)
3844 (deprecated_generic_find_dummy_frame): Delete.
3845 * dummy-frame.c (deprecated_generic_find_dummy_frame)
3846 (deprecated_read_register_dummy)
3847 (deprecated_find_dummy_frame_regcache)
3848 (discard_innermost_dummy)
3849 (deprecated_pop_dummy_frame): Delete.
3850 (dummy_frame_this_id): Simplify.
3851 (struct dummy_frame): Delete "fp" and "sp".
3852 (find_dummy_frame): Simplify.
3853 (generic_push_dummy_frame): Do not set "fp" or "sp".
3854 (fprint_dummy_frames): Do not print "fp" and "sp"
3855
3856 2004-08-01 Mark Kettenis <kettenis@gnu.org>
3857
3858 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
3859 (struct i386_insn): New structure.
3860 (i386_match_insn): New function.
3861 (i386_frame_setup_skip_insns): New variable.
3862 (i386_analyze_frame_setup): Change to use i386_match_insn and the
3863 array i386_frame_setup_insns of instructions that should be
3864 skipped inside the frame setup sequence.
3865
3866 2004-08-01 Andrew Cagney <cagney@gnu.org>
3867
3868 * frame.h (deprecated_frame_xmalloc_with_cleanup)
3869 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
3870 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
3871 * stack.c (frame_info): Delete references to
3872 DEPRECATED_FRAME_INIT_SAVED_REGS and
3873 deprecated_get_frame_saved_regs.
3874 * frame.c (struct frame_info): Delete saved_regs and extra_info.
3875 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
3876 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
3877 (frame_unwind_register_signed)
3878 (frame_unwind_register_unsigned)
3879 (frame_unwind_unsigned_register): Use register_size.
3880 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
3881 (deprecated_frame_xmalloc_with_cleanup)
3882 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
3883 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
3884
3885 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
3886 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
3887 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
3888 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
3889
3890 * infcall.c (call_function_by_hand): Do not use
3891 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
3892 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
3893 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
3894 DEPRECATED_STACK_ALIGN.
3895
3896 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
3897
3898 Committed by Andrew Cagney.
3899 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
3900
3901 2004-08-01 Andrew Cagney <cagney@gnu.org>
3902
3903 * mips-tdep.c (mips16_frame_cache)
3904 (mips16_frame_this_id, mips16_frame_prev_register)
3905 (mips16_frame_unwind, mips16_frame_sniffer)
3906 (mips16_frame_base_address, mips16_frame_base)
3907 (mips16_frame_base_sniffer, mips32_frame_cache)
3908 (mips32_frame_this_id, mips32_frame_prev_register)
3909 (mips32_frame_unwind, mips32_frame_sniffer)
3910 (mips32_frame_base_address, mips32_frame_base)
3911 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
3912 separate heuristic mips16 and mips32 unwinders.
3913 (mips_stub_frame_cache, mips_stub_frame_this_id)
3914 (mips_stub_frame_prev_register)
3915 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
3916 (mips_stub_frame_base_address, mips_stub_frame_base)
3917 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
3918 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
3919 match true mdebug frames.
3920 (non_heuristic_proc_desc): Add forward declaration.
3921
3922 2004-08-01 Andrew Cagney <cagney@gnu.org>
3923
3924 * config/mips/tm-irix6.h: Delete file.
3925 * config/mips/tm-irix5.h: Delete file.
3926 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
3927 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
3928
3929 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
3930 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
3931 * config/nm-gnu.h (NO_CORE_OPS): Delete.
3932 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
3933 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
3934 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
3935 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
3936 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
3937 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
3938 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
3939 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
3940 (TARGET_SIGNAL_RAW_VALUES): Delete.
3941 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
3942 Delete.
3943 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
3944 (TARGET_HW_WATCH_LIMIT): Delete.
3945 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
3946 * minimon.h: Delete file.
3947
3948 * trad-frame.c (trad_frame_get_this_base)
3949 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
3950 functions.
3951 * trad-frame.h (trad_frame_set_this_base)
3952 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
3953
3954 2004-07-31 Andrew Cagney <cagney@gnu.org>
3955
3956 * trad-frame.c (trad_frame_get_prev_register): Rename
3957 trad_frame_get_prev_register.
3958 * vax-tdep.c (vax_frame_prev_register): Update.
3959 * trad-frame.h: Update.
3960 * trad-frame.c (trad_frame_get_register): Update.
3961 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
3962 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
3963 Update.
3964 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
3965 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
3966 Update.
3967 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
3968 Update.
3969 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
3970 Update.
3971 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
3972 Update.
3973 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
3974 Update.
3975 * s390-tdep.c (s390_frame_prev_register)
3976 (s390_stub_frame_prev_register)
3977 (s390_sigtramp_frame_prev_register): Update.
3978 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
3979 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
3980 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
3981 * m88k-tdep.c (m88k_frame_prev_register)
3982 * m68hc11-tdep.c (m68hc11_frame_prev_register)
3983 * m32r-tdep.c (m32r_frame_prev_register): Update.
3984 * hppa-tdep.c (hppa_frame_prev_register_helper)
3985 * frv-tdep.c (frv_frame_prev_register): Update.
3986 * d10v-tdep.c (d10v_frame_prev_register): Update.
3987 * cris-tdep.c (cris_frame_prev_register): Update.
3988 * avr-tdep.c (avr_frame_prev_register): Update.
3989 * arm-tdep.c (arm_prologue_prev_register)
3990 (arm_sigtramp_prev_register): Update.
3991
3992 2004-07-31 Andrew Cagney <cagney@gnu.org>
3993
3994 * frame.h (legacy_saved_regs_unwind)
3995 (legacy_frame_chain_valid, legacy_frame_p)
3996 (enum frame_type): Delete UNKNOWN_FRAME.
3997 * dummy-frame.c (dummy_frame_this_id): Simplify.
3998 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
3999 * frame.c (struct frame_info): Delete the field "type".
4000 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
4001 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
4002 (legacy_saved_regs_unwind, legacy_frame_p)
4003 (frame_type_from_pc): Delete.
4004 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
4005 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
4006
4007 2004-07-31 Mark Kettenis <kettenis@gnu.org>
4008
4009 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
4010 indentation.
4011
4012 * mips-nat.c: Remove file.
4013 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
4014 (mips-nat.o): Remove dependency.
4015
4016 * infptrace.c: Update copyright year.
4017 (fetch_register): Pass NULL in regcache_raw_supply call instead of
4018 explicitly setting the buffer to all zeroes.
4019
4020 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
4021 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
4022
4023 2004-07-30 Andrew Cagney <cagney@gnu.org>
4024
4025 * GDB 6.2 released from gdb_6_2-branch.
4026
4027 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
4028
4029 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
4030
4031 * exec.c (exec_file_attach):
4032 * nto-tdep.c (nto_find_and_open_solib):
4033 * pa64solib.c (pa64_solib_sizeof_symbol_table):
4034 * solib.c (solib_open):
4035 * somsolib.c (som_solib_sizeof_symbol_table):
4036 * source.c (is_regular_file, openp, open_source_file):
4037 * symfile.c (symfile_bfd_open):
4038 * wince.c (upload_to_device): Differentiate between the search for
4039 binary and source files.
4040
4041 2004-07-30 Andrew Cagney <cagney@gnu.org>
4042
4043 * complaints.c (_initialize_complaints): Pass NULL to
4044 add_setshow_zinteger_cmd for help_doc.
4045 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
4046
4047 2004-07-30 Andrew Cagney <cagney@gnu.org>
4048
4049 Fix PR i18n/761.
4050 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
4051 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
4052 $(PACKAGE).pot and update-po.
4053 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
4054 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
4055 (update-po): New rules.
4056 (localedir): Define using autoconf.
4057 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
4058 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
4059 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
4060 * configure.in: Generate CATALOGS and LINGUAS from contents of
4061 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
4062 * configure: Re-generate.
4063 * po/gdbtext: New file
4064
4065 2004-07-30 Jerome Guitton <guitton@gnat.com>
4066
4067 * MAINTAINERS: Reorder Write After Approval list in alphabetical
4068 order.
4069
4070 2004-07-30 David Lecomber <dsl@sources.redhat.com>
4071
4072 * dwarf2read.c (read_file_scope): Set producer if attribute
4073 present.
4074 (struct dwarf2_cu): Added new member producer.
4075
4076 2004-07-30 Jerome Guitton <guitton@gnat.com>
4077
4078 * inflow.c (kill_command): release file handles in BFD.
4079 * exec.c (exec_file_attach): Ditto.
4080 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
4081
4082 2004-07-29 Andrew Cagney <cagney@gnu.org>
4083
4084 * PROBLEMS (mips-irix): Note that it is broken.
4085
4086 2004-07-29 Andrew Cagney <cagney@gnu.org>
4087
4088 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
4089 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
4090
4091 * config/xm-nbsd.h: Delete file.
4092 * config/arm/xm-nbsd.h: Delete file.
4093 * config/i386/xm-nbsd.h: Delete file.
4094 * config/ns32k/xm-nbsd.h: Delete file.
4095 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
4096 * config/i386/nbsdelf.mh (XM_FILE): Delete.
4097 * config/i386/nbsdaout.mh (XM_FILE): Delete.
4098 * config/arm/nbsdelf.mh (XM_FILE): Delete.
4099 * config/arm/nbsdaout.mh (XM_FILE): Delete.
4100
4101 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
4102 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
4103 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
4104 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
4105 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
4106 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
4107
4108 * config/powerpc/xm-linux.h: Delete empty file.
4109 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
4110 * config/powerpc/linux.mh (XM_FILE): Delete.
4111 * config/m68k/xm-linux.h: Delete empty file.
4112 * config/m68k/linux.mh (XM_FILE): Delete.
4113 * config/ia64/xm-linux.h: Delete empty file.
4114 * config/ia64/linux.mh (XM_FILE): Delete.
4115 * config/arm/xm-linux.h: Delete empty file.
4116 * config/arm/linux.mh (XM_FILE): Delete.
4117
4118 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4119 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
4120 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4121 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
4122 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4123 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
4124 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4125 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
4126
4127 * config/m68k/xm-m68k.h: Delete file.
4128 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
4129 copyright.
4130 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
4131 * config/pa/xm-linux.h: Delete empty file.
4132 * config/pa/linux.mh (XM_FILE): Delete.
4133 * config/i386/xm-i386.h: Delete empty file.
4134 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
4135 "i386/xm-i386.h".
4136 * config/i386/obsdaout.mh (XM_FILE): Delete.
4137 * config/i386/obsd64.mh (XM_FILE): Delete.
4138 * config/i386/fbsd64.mh (XM_FILE): Delete.
4139 * config/i386/nto.mh (XM_FILE): Delete.
4140 * config/i386/obsd.mh (XM_FILE): Delete.
4141 * config/i386/linux64.mh (XM_FILE): Delete.
4142 * config/i386/linux.mh (XM_FILE): Delete.
4143 * config/i386/i386sol2.mh (XM_FILE): Delete.
4144 * config/i386/i386gnu.mh (XM_FILE): Delete.
4145 * config/i386/fbsd.mh (XM_FILE): Delete.
4146 * config/i386/nbsd64.mh (XM_FILE): Delete.
4147
4148 2004-07-29 Andrew Cagney <cagney@gnu.org>
4149
4150 * config/pa/xm-linux.h: Do not include "floatformat.h".
4151 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4152 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4153 * config/i386/xm-i386.h: Do not include "floatformat.h".
4154 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4155 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
4156 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
4157 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
4158 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
4159 GDB_HOST_LONG_DOUBLE_FORMAT instead.
4160 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
4161 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
4162 * configure, config.in: Regenerate.
4163 * configure.host (gdb_host_float_format, gdb_host_double_format)
4164 (gdb_host_long_double_format): Set according to the host.
4165
4166 2004-07-29 Andrew Cagney <cagney@gnu.org>
4167
4168 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
4169
4170 2004-07-28 Andrew Cagney <cagney@gnu.org>
4171
4172 * PROBLEMS: Mention threads/1650.
4173 * NEWS: Mention the NPTL fix.
4174
4175 2004-07-28 Andrew Cagney <cagney@gnu.org>
4176
4177 * cli/cli-decode.c (add_setshow_cmd): Delete function.
4178 (add_setshow_cmd_full): Make static.
4179 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
4180 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
4181 * cli/cli-decode.c (add_setshow_filename_cmd)
4182 (add_setshow_string_cmd): New functions.
4183 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
4184 * mips-tdep.c (_initialize_mips_tdep): Update.
4185 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
4186 * cli/cli-logging.c (_initialize_cli_logging): Update.
4187 * complaints.c (_initialize_complaints): Update.
4188 * remote.c (_initialize_remote): Update.
4189
4190 2004-07-28 Andrew Cagney <cagney@gnu.org>
4191
4192 * cli/cli-decode.c (add_setshow_zinteger_cmd)
4193 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
4194 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
4195 print parameters. Make string parameters constant.
4196 * command.h: Update. Update copyright.
4197 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
4198 * observer.c (_initialize_observer): Ditto.
4199 * frame.c (_initialize_frame): Ditto.
4200 * complaints.c (_initialize_complaints): Ditto.
4201 * maint.c (_initialize_maint_cmds): Ditto.
4202 * target.c (initialize_targets): Ditto.
4203 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
4204 * infcall.c (_initialize_infcall): Ditto.
4205 * arm-tdep.c (_initialize_arm_tdep): Ditto.
4206 * m32r-rom.c (_initialize_m32r_rom): Ditto.
4207 * remote-rdi.c (_initialize_remote_rdi): Ditto.
4208 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
4209 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4210
4211 2004-07-28 Andrew Cagney <cagney@gnu.org>
4212
4213 * gdbtypes.c (lookup_primitive_typename): Delete function.
4214 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
4215 * ada-lex.l: Use language_lookup_primitive_type_by_name.
4216 * gdbtypes.c (lookup_typename): Ditto.
4217 * f-exp.y (yylex): Ditto.
4218 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
4219
4220 * scm-lang.c (c_builtin_types): Delete extern declaration.
4221 (scm_language_defn): Replace
4222 string_char_type and primitive_type_vector with
4223 la_language_arch_info.
4224 * jv-lang.c (java_language_defn): Replace
4225 string_char_type and primitive_type_vector with
4226 la_language_arch_info.
4227 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
4228 c_builtin_types in comment.
4229 * c-lang.h (struct language_arch_info): Declare opaque.
4230 (c_language_arch_info): Declare.
4231 (c_builtin_types): Delete declaration.
4232 * c-lang.c (c_language_arch_info): Set string_char_type to
4233 builtin_char, not builtin_true_char. Make global.
4234 (c_builtin_types): Delete array.
4235 (asm_language_defn, minimal_language_defn): Replace
4236 string_char_type and primitive_type_vector with
4237 la_language_arch_info.
4238
4239 2004-07-28 Andrew Cagney <cagney@gnu.org>
4240
4241 * gdbtypes.h (struct builtin_type): Rename true_char to
4242 builtin_true_char.
4243 * gdbtypes.c (gdbtypes_post_init): Update.
4244 * c-lang.c (arch_info): New function.
4245 (enum c_primitive_types): New enum.
4246 (c_language_defn): Instead of string_char_type and
4247 primitive_type_vector set la_language_arch_info.
4248
4249 2004-07-28 Andrew Cagney <cagney@gnu.org>
4250
4251 * language.h (struct language_arch_info): Fix typo
4252 s/primative/primitive/.
4253 * gdbtypes.c (lookup_primitive_typename): Ditto.
4254 * language.c (language_lookup_primitive_type_by_name)
4255 (unknown_language_arch_info): Ditto.
4256
4257 2004-07-27 Andrew Cagney <cagney@gnu.org>
4258
4259 * defs.h (enum language): Add nr_languages.
4260 * language.h (struct language_arch_info): Define.
4261 (struct language_defn): Add la_language_arch_info.
4262 (language_lookup_primative_type_by_name): Declare.
4263 (language_string_char_type): Declare.
4264 * language.c (_initialize_language, language_gdbarch_post_init)
4265 (struct language_gdbarch, language_gdbarch_data): Implement
4266 per-architecture language information.
4267 (unknown_language_arch_info, language_string_char_type)
4268 (language_lookup_primative_type_by_name): New functions.
4269 (unknown_language_defn, auto_language_defn)
4270 (local_language_defn): Set la_language_arch_info to
4271 unknown_language_arch_info.
4272 (unknown_builtin_types): Delete.
4273 * gdbtypes.c (lookup_primitive_typename): Use
4274 language_lookup_primative_type_by_name.
4275 (create_string_type): Use language_string_char_type.
4276 * values.c (value_from_string): Use language_string_char_type.
4277 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
4278 * p-lang.c (pascal_language_defn): Ditto.
4279 * m2-lang.c (m2_language_defn): Ditto.
4280 * jv-lang.c (java_language_defn): Ditto.
4281 * objc-lang.c (objc_language_defn): Ditto.
4282 * f-lang.c (f_language_defn): Ditto.
4283 * c-lang.c (c_language_defn, cplus_language_defn)
4284 (asm_language_defn, minimal_language_defn): Ditto.
4285
4286 2004-07-27 Andrew Cagney <cagney@gnu.org>
4287
4288 * gdbtypes.h (struct builtin_type): Declare.
4289 (builtin_type): Declare.
4290 * d10v-tdep.c (d10v_register_type): Use builtin_type.
4291 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
4292 (gdbtypes_post_init): New function.
4293 (builtin_type): New function.
4294
4295 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
4296
4297 * remote-m32r-sdi.c: Fix breakpoint bug.
4298 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
4299 recv_char_data, recv_long_data): New functions to replace communication
4300 sequences.
4301
4302 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
4303
4304 Document PR threads/1650.
4305 * PROBLEMS (Threads): Document problem with many threads
4306
4307 2004-07-26 Andrew Cagney <cagney@gnu.org>
4308
4309 * gdb-mi.el: Move from here ...
4310 * mi/gdb-mi.el: ... to here.
4311
4312 2004-07-26 Andrew Cagney <cagney@gnu.org>
4313
4314 Problem reported by Ashley Pittman <ashley@quadrics.com>.
4315 * main.c (captured_main): When in batch mode always detach.
4316
4317 2004-07-26 Andrew Cagney <cagney@gnu.org>
4318
4319 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
4320 and h8300 as broken.
4321 * NEWS: END-OF-LIFE frame compatibility module.
4322 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
4323 specific comments.
4324
4325 2004-07-26 Andrew Cagney <cagney@gnu.org>
4326
4327 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
4328 * xcoffsolib.c (_initialize_xcoffsolib): Update.
4329 * wince.c (_initialize_wince): Update.
4330 * win32-nat.c (_initialize_win32_nat): Update.
4331 * varobj.c (_initialize_varobj): Update.
4332 * valops.c (_initialize_valops): Update.
4333 * utils.c (initialize_utils, initialize_utils): Update.
4334 * tui/tui-win.c (_initialize_tui_win): Update.
4335 * top.c (init_main): Update.
4336 * symfile.c (_initialize_symfile): Update.
4337 * source.c (_initialize_source): Update.
4338 * somsolib.c (_initialize_som_solib): Update.
4339 * solib.c (_initialize_solib): Update.
4340 * solib-frv.c (_initialize_frv_solib): Update.
4341 * serial.c (_initialize_serial): Update.
4342 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
4343 * remote.c (_initialize_remote, _initialize_remote): Update.
4344 * remote-vx.c (_initialize_vx): Update.
4345 * remote-utils.c (_initialize_sr_support): Update.
4346 * remote-sds.c (_initialize_remote_sds): Update.
4347 * remote-mips.c (_initialize_remote_mips): Update.
4348 * remote-e7000.c (_initialize_remote_e7000): Update.
4349 * proc-api.c (_initialize_proc_api): Update.
4350 * printcmd.c: Update.
4351 * parse.c (_initialize_parse): Update.
4352 * pa64solib.c (_initialize_pa64_solib): Update.
4353 * p-valprint.c (_initialize_pascal_valprint): Update.
4354 * monitor.c (_initialize_remote_monitors): Update.
4355 * mips-tdep.c (_initialize_mips_tdep): Update.
4356 * mcore-tdep.c (_initialize_mcore_tdep): Update.
4357 * maint.c (_initialize_maint_cmds): Update.
4358 * lin-lwp.c (_initialize_lin_lwp): Update.
4359 * language.c (_initialize_language): Update.
4360 * kod.c (_initialize_kod): Update.
4361 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
4362 * i386-tdep.c (_initialize_i386_tdep): Update.
4363 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
4364 * gdbarch.sh: Update.
4365 * gdbarch.c: Re-generate.
4366 * gdb-events.sh: Update.
4367 * gdb-events.c: Re-generate.
4368 * frame.c (_initialize_frame): Update.
4369 * exec.c: Update.
4370 * demangle.c (_initialize_demangler): Update.
4371 * dcache.c (_initialize_dcache): Update.
4372 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
4373 * cp-valprint.c (_initialize_cp_valprint): Update.
4374 * corefile.c (_initialize_core): Update.
4375 * command.h: Update.
4376 * cli/cli-decode.h: Update.
4377 * cli/cli-cmds.c (init_cli_cmds): Update.
4378 * charset.c (_initialize_charset): Update.
4379 * breakpoint.c (_initialize_breakpoint): Update.
4380 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
4381 * alpha-tdep.c (_initialize_alpha_tdep): Update.
4382 * aix-thread.c (_initialize_aix_thread): Update.
4383
4384 2004-07-24 Mark Kettenis <kettenis@gnu.org>
4385
4386 Partial fix for PR backtrace/1718.
4387 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
4388 that GCC migrates into the prolugue. Don't handle any
4389 instructions that clobber %ebx.
4390
4391 2004-07-23 Andrew Cagney <cagney@gnu.org>
4392
4393 Use regcache_raw_collect instead of regcache_collect.
4394 * regcache.h (regcache_collect): Delete declaration.
4395 * regcache.c (regcache_colect): Delete function.
4396 * win32-nat.c (do_child_store_inferior_registers): Update.
4397 * sol-thread.c (sol_thread_store_registers): Update.
4398 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
4399 * rs6000-nat.c (store_register): Update.
4400 * remote.c (store_register_using_P, remote_store_registers): Update.
4401 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
4402 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
4403 (fill_vrregset, store_spe_registers, fill_gregset)
4404 (fill_gregset): Update.
4405 * nto-procfs.c (procfs_store_registers): Update.
4406 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
4407 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
4408 * m68klinux-nat.c (store_register, fill_gregset): Update.
4409 * m68k-tdep.c (fill_gregset): Update.
4410 * infptrace.c (store_register): Update.
4411 * i386-nto-tdep.c (i386nto_regset_fill): Update.
4412 * i386-linux-nat.c (store_register, fill_gregset): Update.
4413 * hppa-linux-nat.c (fill_gregset): Update.
4414 * go32-nat.c (store_register): Update.
4415 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
4416 (store_fp_regs): Update.
4417 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
4418 (store_nwfpe_extended, store_fpregister, store_fpregs)
4419 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
4420 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
4421 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
4422 (store_regs_user_thread, store_regs_kernel_thread): Update.
4423
4424 2004-07-24 Mark Kettenis <kettenis@gnu.org>
4425
4426 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
4427 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
4428 encoding.
4429 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
4430 member of `struct comp_unit'.
4431
4432 2004-07-23 Andrew Cagney <cagney@gnu.org>
4433
4434 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
4435 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
4436
4437 2004-07-23 Martin Hunt <hunt@redhat.com>
4438 Kevin Buettner <kevinb@redhat.com>
4439
4440 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
4441 alignment was being added to the offset instead of multiplied.
4442
4443 2004-07-23 Mark Kettenis <kettenis@gnu.org>
4444
4445 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
4446 changed signal trampoline in OpenBSD 3.5-current.
4447
4448 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
4449 <machine/pcb.h> and "bsd-kvm.h".
4450 (sparc64nbsd_supply_pcb): New function.
4451 (_initialize_sparc64nbsd_nat): Renamed from
4452 _initialize_sparcnbsd_nat. Enable libkvm interface.
4453 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
4454 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
4455 (LOADLIBES): New variable.
4456
4457 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
4458
4459 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
4460
4461 2004-07-21 Andrew Cagney <cagney@gnu.org>
4462
4463 Use regcache_raw_supply instead of supply_register.
4464 * regcache.h (supply_register): Delete declaration.
4465 * regcache.c (supply_register): Delete function.
4466 * wince.c (do_child_fetch_inferior_registers): Update.
4467 * win32-nat.c (do_child_fetch_inferior_registers)
4468 (fetch_elf_core_registers): Update.
4469 * v850ice.c (v850ice_fetch_registers): Update.
4470 * thread-db.c (thread_db_store_registers): Update.
4471 * sol-thread.c (sol_thread_store_registers): Update.
4472 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
4473 * rs6000-nat.c (fetch_register): Update.
4474 * rom68k-rom.c (rom68k_supply_one_register): Update.
4475 * remote.c (remote_wait, remote_async_wait): Update.
4476 * remote-st.c (get_hex_regs): Update.
4477 * remote-sim.c (gdbsim_fetch_register): Update.
4478 * remote-sds.c (sds_fetch_registers): Update.
4479 * remote-rdp.c (remote_rdp_fetch_register): Update.
4480 * remote-rdi.c (arm_rdi_fetch_registers): Update.
4481 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
4482 * remote-m32r-sdi.c (m32r_fetch_register): Update.
4483 * remote-hms.c (init_hms_cmds): Update.
4484 * remote-est.c (init_est_cmds): Update.
4485 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
4486 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
4487 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
4488 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
4489 (fetch_register, supply_vrregset, supply_vrregset)
4490 (fetch_spe_registers): Update.
4491 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
4492 * monitor.c (monitor_supply_register): Update.
4493 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
4494 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
4495 (mipsnbsd_supply_fpreg): Update.
4496 * mips-nat.c (fetch_inferior_registers)
4497 (fetch_core_registers): Update.
4498 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
4499 (supply_fpregset, mips64_supply_gregset)
4500 (mips64_supply_fpregset): Update.
4501 * m68klinux-nat.c (fetch_register, supply_gregset)
4502 (supply_fpregset): Update.
4503 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
4504 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
4505 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
4506 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
4507 * infptrace.c (fetch_register): Update.
4508 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
4509 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
4510 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
4511 (gnu_fetch_registers, gnu_store_registers): Update.
4512 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
4513 * i386-linux-nat.c (fetch_register, supply_gregset)
4514 (dummy_sse_values): Update.
4515 * hpux-thread.c (hpux_thread_fetch_registers): Update.
4516 * hppah-nat.c (fetch_register): Update.
4517 * hppa-linux-nat.c (fetch_register, supply_gregset)
4518 (supply_fpregset): Update.
4519 * go32-nat.c (fetch_register): Update.
4520 * dve3900-rom.c (fetch_bitmapped_register)
4521 (_initialize_r3900_rom): Update.
4522 * cris-tdep.c (supply_gregset): Update.
4523 * abug-rom.c (init_abug_cmds): Update.
4524 * core-aout.c (fetch_core_registers): Update.
4525 * armnbsd-nat.c (supply_gregset, supply_fparegset)
4526 (fetch_register, fetch_fp_register): Update.
4527 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
4528 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
4529 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
4530 * alphanbsd-tdep.c (fetch_core_registers): Update.
4531 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
4532 * alpha-nat.c (fetch_osf_core_registers)
4533 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
4534 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
4535 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
4536
4537 2004-07-21 Andrew Cagney <cagney@gnu.org>
4538
4539 * PROBLEMS: Mention breakpoints/1702.
4540 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
4541 that is known to work.
4542
4543 2004-07-21 Andrew Cagney <cagney@gnu.org>
4544
4545 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
4546 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
4547 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
4548 (handle_inferior_event): Wrap call to deprecated
4549 IGNORE_HELPER_CALL in #ifdef.
4550 * config/mips/tm-nbsd.h: Update.
4551
4552 2004-07-20 Jim Blandy <jimb@redhat.com>
4553
4554 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
4555 bfd_mach_ppc has no segment registers.
4556
4557 Include PowerPC SPR numbers for special-purpose registers.
4558 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
4559 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
4560 new member in initializer.
4561 (S, S4, SN4, S64): New macros for defining special-purpose
4562 registers.
4563 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
4564 registers_403, registers_403GC, registers_505, registers_860,
4565 registers_601, registers_602, registers_603, registers_604,
4566 registers_750, registers_e500): Use them.
4567
4568 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
4569 replace references with expression used to initialize variable.
4570
4571 2004-07-20 Andrew Cagney <cagney@gnu.org>
4572
4573 * breakpoint.c (deprecated_read_memory_nobpt): Rename
4574 read_memory_nobpt.
4575 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
4576 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
4577 (s390_sigtramp_frame_sniffer): Update.
4578 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
4579 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
4580 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
4581 (mips32_fetch_instruction): Update.
4582 * mcore-tdep.c (get_insn): Update.
4583 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
4584 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
4585 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
4586 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4587 (i386_linux_rt_sigtramp_start): Update.
4588 * i386-linux-nat.c (child_resume): Update.
4589 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
4590 * hppa-linux-tdep.c (insns_match_pattern): Update.
4591 * gdbcore.h: Update.
4592 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
4593 * frame.c (safe_frame_unwind_memory): Update.
4594 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
4595 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
4596 * alpha-tdep.c (alpha_read_insn): Update.
4597
4598 2004-07-20 Andrew Cagney <cagney@gnu.org>
4599
4600 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
4601 containing both bytes and mask. Add "frame_type".
4602 * tramp-frame.c (tramp_frame_start): Update.
4603 (tramp_frame_prepend_unwinder): Update.
4604 * mips-linux-tdep.c (mips_linux_o32_sigframe)
4605 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
4606 (mips_linux_n64_rt_sigframe): Update. Make "static const".
4607 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
4608
4609 2004-07-19 Eli Zaretskii <eliz@gnu.org>
4610
4611 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
4612 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
4613 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
4614 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
4615
4616 2004-07-17 Andrew Cagney <cagney@gnu.org>
4617
4618 * NEWS, PROBLEMS: Update for 6.2.
4619
4620 * README: Update to 6.2.
4621
4622 * utils.c (xvasprintf): Call xstrvprintf.
4623
4624 * parse.c: Update copyright.
4625 (null_post_parser): Eliminate ARGSUSED.
4626
4627 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
4628 * tui/tui-win.c (tui_get_cmd_list): Ditto.
4629 * symfile-mem.c (_initialize_symfile_mem): Ditto.
4630
4631 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
4632 * ppc-linux-nat.c: Use "Linux kernel".
4633 * hppa-linux-tdep.c: Use GNU/Linux.
4634 * hppa-linux-nat.c: Use GNU/Linux.
4635 * dwarfread.c: Add [sic] to use of Linux.
4636
4637 * hppa-linux-nat.c: Do not include <string.h>.
4638 (supply_fpregset): Remove "register" attribute.
4639
4640 * solib-frv.c (fetch_loadmap): Use xfree, not free.
4641
4642 2004-07-17 Mark Kettenis <kettenis@gnu.org>
4643
4644 * configure.in: Define _MSE_INT_H on Solaris 9 too.
4645 * configure, config.in: Regenerated.
4646
4647 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4648 "bsd-kvm.h".
4649 (vaxbsd_supply_pcb): New function.
4650 (_initialize_vaxbsd_nat): New prototype and function.
4651 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
4652 solib-sunos.o.
4653 (LOADLIBES): New variable.
4654 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4655 (LOADLIBES): New variable.
4656 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4657 (LOADLIBES): New variable.
4658 * Makefile.in (vaxbsd-nat.o): Update dependencies.
4659
4660 2004-07-16 Andrew Cagney <cagney@gnu.org>
4661
4662 * defs.h (event_loop_p): Replace variable declaration with macro,
4663 always 1.
4664 * main.c (captured_main): Delete options "-async" and "-noasync".
4665 (event_loop_p): Delete variable.
4666 * NEWS: Mention that "-async" and "-noasync" were removed.
4667
4668 2004-07-16 Andrew Cagney <cagney@gnu.org>
4669
4670 * remote-m32r-sdi.c: Re-indent.
4671
4672 2004-07-16 Jim Blandy <jimb@redhat.com>
4673
4674 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
4675 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
4676 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
4677 missing MPC823 SPRs.
4678 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
4679 incorrect. (This was corrected in GDB's register name tables on
4680 2004-07-14.)
4681
4682 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
4683 should be "esasrr" ("ESA Save and Restore Register").
4684
4685 2004-07-16 Andrew Cagney <cagney@gnu.org>
4686
4687 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
4688 calls, no longer applicable. Update comments and rename parameter
4689 "step_frame" to "return_frame".
4690
4691 2004-07-16 Andrew Cagney <cagney@gnu.org>
4692
4693 * frame.c (fprint_field): New function.
4694 (fprint_frame_id): Use fprint_field.
4695
4696 2004-07-15 Joel Brobecker <brobecker@gnat.com>
4697
4698 * ada-lang.c (ada_language_defn): Remove commented out code.
4699
4700 2004-07-15 Jim Blandy <jimb@redhat.com>
4701
4702 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
4703 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
4704
4705 2004-07-14 Jim Blandy <jimb@redhat.com>
4706
4707 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
4708
4709 * ppc-tdep.h (ppc_num_vrs): New enum constant.
4710
4711 * ppc-tdep.h (ppc_num_srs): New enum constant.
4712
4713 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
4714 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
4715 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
4716 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
4717 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
4718 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
4719 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
4720 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
4721 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
4722 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
4723 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
4724 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
4725 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
4726 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
4727 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
4728 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
4729 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
4730 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
4731 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
4732 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
4733 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
4734 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
4735 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
4736 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
4737 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
4738 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
4739 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
4740 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
4741 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
4742 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
4743 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
4744 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
4745 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
4746 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
4747 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
4748 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
4749 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
4750 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
4751 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
4752 special-purpose register numbers.
4753
4754 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
4755 manual mentions 'md_twb', but many mention 'm_twb', and at that
4756 point in the register list.)
4757
4758 2004-07-14 Andrew Cagney <cagney@gnu.org>
4759
4760 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
4761 instead of "internal-error".
4762
4763 2004-07-10 Joel Brobecker <brobecker@gnat.com>
4764
4765 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
4766 that was inserted inside a comment.
4767
4768 2004-07-10 Randolph Chung <tausq@debian.org>
4769
4770 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
4771 function.
4772 (hppa_hpux_push_dummy_code): New function.
4773 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
4774 Set find_global_pointer method.
4775
4776 2004-07-10 Mark Kettenis <kettenis@gnu.org>
4777
4778 * NEWS: Mention BSD libkvm interface.
4779
4780 2004-07-10 Michael Snyder <msnyder@redhat.com>
4781
4782 * symfile.c (generic_load): Comment typo.
4783 * stack.c (get_selected_block): Ditto.
4784 * regcache.c (regcache_cooked_read): Ditto.
4785 * monitor.c (monitor_debug): Ditto.
4786 * mips-tdep.c (mips_read_pc): Ditto.
4787 * i386-linux-nat.c (ps_get_thread_area): Ditto.
4788 * gdb_mbuild.sh: Ditto.
4789 * gdbarch.sh: Ditto.
4790 * gdbarch.h: Ditto.
4791
4792 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
4793
4794 * ada-tasks.c: Remove file.
4795
4796 Remove ARI problems:
4797
4798 * ada-exp.y (write_var_from_sym): Reformat to put operator at
4799 beginning of line.
4800
4801 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
4802 Add comment.
4803 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
4804 (MIN_OF_SIZE): Rename min_of_size. Add comment.
4805 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
4806 (UMIN_OF_SIZE): Remove.
4807 (max_of_type): New function to replace orphan macro in gdbtypes.h
4808 (min_of_type): Ditto.
4809 (discrete_type_high_bound): Use max_of_type.
4810 (discrete_type_low_bound): Use min_of_type.
4811 (possible_user_operator_p): Move operator to beginning of line.
4812 (ada_is_variant_part): Ditto.
4813 (ensure_lval): Rewrite to avoid deprecated operations.
4814 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
4815 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
4816 (ada_enum_name): Remove assignments in 'if' statements.
4817 (build_ada_types): Add gdbarch parameter.
4818 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
4819 with gdbarch_data_register_post_init.
4820 Use add_setshow_uinteger_cmd rather than add_set_cmd and
4821 add_show_from_set.
4822
4823 * ada-valprint.c (inspect_it): Remove declaration.
4824 (repeat_count_threshold): Remove declaration.
4825 (ada_print_floating): Remove assignments in 'if' statements.
4826 (print_str): Move operator to beginning of line.
4827
4828 2004-07-08 Jim Blandy <jimb@redhat.com>
4829
4830 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
4831
4832 2004-07-08 Bob Rossi <bob@brasko.net>
4833
4834 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
4835
4836 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
4837
4838 * language.h (struct_language_defn): Add new function pointer:
4839 la_class_name_from_physname. Also add new prototype for
4840 language_class_name_from_physname.
4841 * language.c (language_class_name_from_physname): New function.
4842 (unk_lang_class_name): Ditto.
4843 (unknown_language_defn, auto_language_defn): Change
4844 to add unk_lang_class_name function pointer for
4845 la_class_name_from_physname.
4846 (local_language_defn): Ditto.
4847 * dwarf2read.c (guess_structure_name): Change to call
4848 language_class_name_from_physname.
4849 (determine_class_name): Ditto.
4850 * cp-support.c (class_name_from_physname): Renamed.
4851 (cp_class_name_from_physname): New name of function.
4852 * cp-support.h: Ditto.
4853 * c-lang.c (c_language_defn): Change to add NULL
4854 for class_name_from_physname function pointer.
4855 (cplus_language_defn): Change to add cp_class_name_from_physname.
4856 * jv-lang.c (java_class_name_physname): New function.
4857 (java_find_last_component): New static routine.
4858 (java_language_defn): Add java_class_name_from_physname pointer.
4859 * ada-lang.c (ada_language_defn): Change to add NULL
4860 for class_name_from_physname function pointer.
4861 * f-lang.c (f_language_defn): Ditto.
4862 * m2-lang.c (m2_language_defn): Ditto.
4863 * objc-lang.c (objc_language_defn): Ditto.
4864 * p-lang.c (pascal_language_defn): Ditto.
4865 * scm-lang.c (scm_language_defn): Ditto.
4866
4867 2004-07-06 Andrew Cagney <cagney@gnu.org>
4868
4869 Patch from Bart Robinson.
4870 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
4871 (O_LARGEFILE): Define to 0, if not defined.
4872
4873 2004-07-03 Mark Kettenis <kettenis@gnu.org>
4874
4875 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
4876 <machine/pcb.h> and "bsd-kvm.h".
4877 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
4878 (m68kbsd_supply_pcb): New function.
4879 (_initialize_m68kbsd_nat): New prototype and function.
4880 * Makefile.in (m68kbsd-nat.o): Update dependencies.
4881 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4882 (LOADLIBES): New variable.
4883 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
4884 (LOADLIBES): New variable.
4885
4886 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
4887
4888 2004-07-03 Mark Kettenis <kettenis@gnu.org>
4889
4890 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
4891 <sys/proc.h>.
4892 (bsd_kvm_cmdlist): New variable.
4893 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
4894 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
4895 command and "kvm proc" command.
4896 * Makefile.in (bsd-kvm.o): Update dependencies.
4897
4898 2004-07-02 Mark Kettenis <kettenis@gnu.org>
4899
4900 * osabi.c: Update copyright year.
4901 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
4902 notes if EI_OSABI is set to ELFOSABI_HPUX.
4903
4904 2004-07-01 Michael Snyder <msnyder@redhat.com>
4905
4906 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
4907 that seems to have gotten whacked out of line.
4908
4909 2004-07-01 Mark Kettenis <kettenis@gnu.org>
4910
4911 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
4912 code.
4913
4914 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
4915
4916 * ada-lang.c (decode_packed_array): Minor change to comment.
4917 (ada_value_slice_ptr): New function.
4918 (ada_value_slice): New function.
4919 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
4920 test. Don't know why it is there.
4921 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
4922 to avoid dereferencing huge arrays from which one is slicing.
4923 (empty_array): Correct to return an array rather than
4924 a subrange value.
4925 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
4926 on empty arrays (let'em use 'FIRST instead).
4927
4928 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
4929
4930 Address complaints from gdb_ari.sh:
4931
4932 * ada-exp.y: Include gdb_string.h rather than string.h.
4933 (convert_char_literal): Reformat declaration.
4934 * ada-lang.h: Include opaque struct declaration for struct frame_info.
4935 * ada-lex.l: Change use of free to xfree (the macro would do so
4936 anyway, but this is harmless).
4937 Include gdb_string.h rather than string.h.
4938 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
4939
4940 * ada-lang.c (parse): Remove K&Rism in parameter list.
4941 (is_name_suffix): Correct Linux => GNU/Linux in comment.
4942
4943 2004-06-30 Mark Kettenis <kettenis@gnu.org>
4944
4945 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
4946 dead code.
4947
4948 2004-06-30 Mark Kettenis <kettenis@gnu.org>
4949
4950 * alphabsd-nat.c: Update copyright year.
4951 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
4952
4953 2004-06-29 Joel Brobecker <brobecker@gnat.com>
4954
4955 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
4956 (i386_cygwin_in_solib_call_trampoline): New function.
4957 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
4958 and skip_trampoline_code gdbarch methods.
4959
4960 2004-06-29 Jim Blandy <jimb@redhat.com>
4961
4962 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
4963 name actually used in the dependency lists.
4964
4965 2004-06-29 Randolph Chung <tausq@debian.org>
4966
4967 * NEWS (New native configurations): Mention GNU/Linux/hppa.
4968
4969 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
4970
4971 * win32-nat.c (child_pid_to_exec_file): New function.
4972 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
4973 functionality.
4974
4975 2004-06-28 Andrew Cagney <cagney@gnu.org>
4976
4977 * defs.h (xstrvprintf): Declare.
4978 * utils.c (xstrvprintf): New function.
4979 (internal_vproblem, xstrprintf, xasprintf)
4980 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
4981 * serial.c (serial_printf): Ditto.
4982 * complaints.c (vcomplaint): Ditto.
4983
4984 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
4985
4986 * infcmd.c (attach_command): Move call to target_terminal_inferior
4987 behind loading symbol table.
4988
4989 2004-06-28 Andrew Cagney <cagney@gnu.org>
4990
4991 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
4992 change - add back extern deprecated_ui_loop_hook declaration.
4993
4994 2004-06-28 Andrew Cagney <cagney@gnu.org>
4995
4996 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
4997 xstrprintf.
4998 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
4999 (c_value_of_variable): Ditto.
5000 * utils.c (internal_vproblem): Ditto.
5001 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
5002 * remote.c (add_packet_config_cmd): Ditto.
5003 * remote-rdp.c (rdp_set_command_line): Ditto.
5004 * regcache.c (regcache_dump): Ditto.
5005 * frv-tdep.c (new_variant, new_variant): Ditto.
5006 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
5007 (fbsd_find_memory_regions): Ditto.
5008 * breakpoint.c (create_thread_event_breakpoint)
5009 (create_breakpoints): Ditto.
5010 * aix-thread.c (aix_thread_pid_to_str): Ditto.
5011 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
5012
5013 2004-06-28 Joel Brobecker <brobecker@gnat.com>
5014
5015 * ada-lang.c: Re-indent file, with some massaging to help indent
5016 a bit when the result is otherwise really too ugly.
5017
5018 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5019
5020 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
5021 code_addr_p and special_addr_p to 'unsigned int'.
5022
5023 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5024
5025 * i386v4-nat.c: Update copyright year and tweak comment.
5026 (regmap): Remove trailing comma.
5027 (supply_gregset): Rename local variable i to regnum. Call
5028 regcache_raw_supply instead of supply_register.
5029 (fill_gregset): Rename argument regno to regnum. Call
5030 regcache_raw_collect instead of regcache_collect.
5031
5032 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5033
5034 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
5035 and special_addr_p.
5036 (frame_id_build, frame_id_build_special): Update comments.
5037 (frame_id_build_wild): New prototype.
5038 * frame.c (frame_id_build, frame_id_build_special): Fill in new
5039 struct frame_id fields.
5040 (frame_id_build_wild): New function.
5041 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
5042
5043 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5044
5045 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
5046 hppabsd-tdep.c.
5047
5048 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5049
5050 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
5051
5052 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5053
5054 * ada-lang.c: Re-indent file.
5055
5056 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5057
5058 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
5059 (no_symtab_msg): Likewise.
5060
5061 2004-06-27 Andreas Schwab <schwab@suse.de>
5062
5063 * source.c: Fix whitespace.
5064
5065 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5066
5067 * configure.in: Include <sys/param.h> for td_pcb test.
5068 * configure: Regenerated.
5069
5070 * i386nbsd-nat.c: New file.
5071 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
5072 i386obsd-nat.c and i386obsd-tdep.c.
5073 (i386nbsd-nat.o): New dependency.
5074 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
5075 bsd-kvm.o.
5076 (LOADLIBES): New variable.
5077 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
5078 bsd-kvm.o.
5079 (LOADLIBES): New variable.
5080
5081 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
5082 (LOADLIBES): New variable.
5083
5084 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
5085 fetching from BSD_KVM_PADDR. Correctly lookup address for
5086 "_thread0".
5087
5088 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
5089 "bsd-kvm.h".
5090 (amd64fbsd_supply_pcb): New funcion.
5091 (_initialize_amd64fbsd_nat): Enable libkvm interface.
5092
5093 2004-06-27 <david@streamline-computing.com>
5094
5095 Partial fix for PR cli/1056.
5096 * valarith.c: Check for zero in division and remainder
5097 evaluation.
5098
5099 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5100
5101 * i387-tdep.c: Remove excessive whitespace.
5102
5103 2004-06-26 Andrew Cagney <cagney@gnu.org>
5104
5105 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
5106 * gdb-events.h, gdb-events.c: Re-generate.
5107 * tui/tui-hooks.c (tui_install_hooks): Update.
5108 (tui_remove_hooks): Update.
5109 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
5110
5111 2004-06-26 Mark Kettenis <kettenis@gnu.org>
5112
5113 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
5114 (gregset_t, fpregset_t): Remove typedefs.
5115 (REG_OFFSET): Rename argument.
5116 (amd64bsd_r_reg_offset): Rename from reg_offset.
5117 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5118 Remove functions.
5119 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
5120 of reg_offset.
5121 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
5122
5123 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
5124
5125 * vax-tdep.c: Tweak comment.
5126
5127 Add OpenBSD/hppa support.
5128 * NEWS (New native configurations): Mention OpenBSD/hppa.
5129 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
5130 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
5131 files.
5132 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
5133 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
5134 * configure.host: Add hppa*-*-openbsd*.
5135 * configure.tgt: Add hppa*-*-openbsd*.
5136
5137 2004-06-25 Andrew Cagney <cagney@gnu.org>
5138
5139 * defs.h (deprecated_ui_loop_hook): Deprecated.
5140 * wince.c (child_wait): Update.
5141 * win32-nat.c (child_wait): Update.
5142 * v850ice.c (v850ice_wait): Update.
5143 * top.c (deprecated_ui_loop_hook): Update.
5144 * serial.h: Update.
5145 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
5146 (do_unix_readchar): Update.
5147 * ser-tcp.c (net_open): Update.
5148 * remote-sim.c (gdb_os_poll_quit): Update.
5149 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
5150
5151 2004-06-24 Andrew Cagney <cagney@gnu.org>
5152
5153 * defs.h (deprecated_pre_add_symbol_hook)
5154 (deprecated_post_add_symbol_hook): Deprecated.
5155 * symfile.c (symbol_file_add_with_addrs_or_offsets)
5156 (symbol_file_add_with_addrs_or_offsets): Update references.
5157
5158 2004-06-24 Andrew Cagney <cagney@gnu.org>
5159
5160 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
5161 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
5162 * wince.c (ui_loop_hook): Delete extern declaration.
5163 * win32-nat.c (ui_loop_hook): Delete extern declaration..
5164 * v850ice.c (ui_loop_hook): Delete extern declaration..
5165 * ser-unix.c (ui_loop_hook): Delete extern declaration..
5166 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
5167 * remote-sim.c (ui_loop_hook): Delete extern declaration..
5168 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
5169 ui_loop_hook declaration.
5170
5171 2004-06-24 Andrew Cagney <cagney@gnu.org>
5172
5173 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
5174 entry_func_highpc fields.
5175 * objfiles.c (init_entry_point_info): Do not clear
5176 entry_func_lowpc and entry_func_highpc.
5177 (objfile_relocate): Do not relocate entry_func_lowpc and
5178 entry_func_highpc.
5179 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
5180 entry_func_highpc.
5181 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
5182 entry_func_highpc.
5183 * blockframe.c (legacy_frame_chain_valid): Replace tests against
5184 entry_func_lowpc and entry_func_highpc with call to
5185 inside_entry_func.
5186
5187 2004-06-24 Mark Kettenis <kettenis@gnu.org>
5188
5189 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
5190 quad-precision floating point arguments in registers.
5191
5192 2004-06-24 Mark Kettenis <kettenis@gnu.org>
5193
5194 From Michael Mueller <m.mueller99@kay-mueller.de>:
5195 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
5196 account.
5197
5198 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
5199
5200 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
5201 to -1.
5202 * breakpoint.c (bpstat_stop_status): Move check for ignoring
5203 untriggered watchpoints to a separate if clause. Update function
5204 comment regarding STOPPED_BY_WATCHPOINT argument.
5205
5206 2004-06-22 Jim Blandy <jimb@redhat.com>
5207
5208 * gdbarch.sh: Doc fix.
5209
5210 2004-06-21 Martin Hunt <hunt@redhat.com>
5211 Kevin Buettner <kevinb@redhat.com>
5212
5213 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
5214 * mips-tdep.h (MIPS_SP_REGNUM): Define.
5215 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
5216 to set_gdbarch_sp_regnum(). Use cooked register number.
5217 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
5218
5219 2004-06-21 Andrew Cagney <cagney@gnu.org>
5220
5221 * gdbarch.sh: When the macro field is empty, do not generate a
5222 macro definition. When the macro field is "=", generate the macro
5223 name from the upper-case function name.
5224 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
5225 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
5226 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
5227 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
5228 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
5229 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
5230 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
5231 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
5232 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
5233 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
5234 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
5235 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
5236 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
5237 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
5238 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
5239 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
5240 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
5241 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
5242 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
5243 (DEPRECATED_USE_STRUCT_CONVENTION)
5244 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5245 (DEPRECATED_FRAME_INIT_SAVED_REGS)
5246 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
5247 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
5248 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
5249 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
5250 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
5251 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
5252 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
5253 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
5254 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
5255 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
5256 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
5257 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
5258 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
5259 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
5260 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
5261 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
5262
5263 2004-06-21 Andrew Cagney <cagney@gnu.org>
5264
5265 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
5266 macro name, and the function rather than macro value. Only wrap
5267 macro print statements in #ifdef. Move format logic to where it
5268 is needed.
5269 * gdbarch.c: Re-generate.
5270
5271 * gdbarch.sh (read): Delete "print_p" and "description", add
5272 "garbage_at_eol". Check for non-empty garbage at end-of-line.
5273 Delete references to print_p.
5274 (TARGET_ARCHITECTURE): Delete print predicate.
5275 * gdbarch.c: Re-generate.
5276
5277 * gdbarch.sh: Check that multi-arch methods do not provide a
5278 macro.
5279 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
5280 (print_registers_info, print_float_info, print_vector_info)
5281 (adjust_breakpoint_address, remote_translate_xfer_address)
5282 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
5283 (address_class_type_flags_to_name, unwind_sp): Remove the macro
5284 name from the multi-arch definition.
5285
5286 2004-06-20 Andrew Cagney <cagney@gnu.org>
5287
5288 * gdbarch.sh: Sort by the function, instead of macro name.
5289 * gdbarch.c: Re-generate.
5290
5291 2004-06-20 Andrew Cagney <cagney@gnu.org>
5292
5293 * gdbarch.sh: Use the function, instead of macro name in
5294 errors and the log file.
5295 (return_value): Remove stray ":" in spec.
5296
5297 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
5298 * gdbarch.h, gdbarch.c: Re-generate.
5299 * Makefile.in (arch-utils.o): Update dependencies.
5300 * values.c (using_struct_return): Move code calling
5301 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
5302 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
5303 to legacy_return_value, simplify.
5304 * infcmd.c (print_return_value): Move code calling
5305 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
5306 to legacy_return_value, simplify.
5307 * infcall.c (call_function_by_hand): Move code calling
5308 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
5309 * arch-utils.c: Update copyright. Include "gdbcore.h".
5310 (legacy_return_value): New function.
5311 * arch-utils.h: Update copyright.
5312 (legacy_return_value): Declare.
5313
5314 2004-06-20 Andrew Cagney <cagney@gnu.org>
5315
5316 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
5317 * gdbarch.h, gdbarch.c: Re-generate.
5318 * values.c (using_struct_return): Update call.
5319 * mcore-tdep.c: Update comment.
5320 * infcall.c (call_function_by_hand): Update comment.
5321 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5322 * arch-utils.h (always_use_struct_convention): Update.
5323 * v850-tdep.c (v850_gdbarch_init): Update.
5324 * sh64-tdep.c (sh64_gdbarch_init): Update.
5325 * sh-tdep.c (sh_gdbarch_init): Update.
5326 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5327 * mips-tdep.c (mips_gdbarch_init): Update.
5328 * mcore-tdep.c (mcore_gdbarch_init): Update.
5329 * m32r-tdep.c (m32r_gdbarch_init): Update.
5330 * ia64-tdep.c (ia64_gdbarch_init): Update.
5331 * h8300-tdep.c (h8300_gdbarch_init): Update.
5332 * frv-tdep.c (frv_gdbarch_init): Update.
5333 * cris-tdep.c (cris_gdbarch_init): Update.
5334 * arm-tdep.c (arm_gdbarch_init): Update.
5335 * alpha-tdep.c (alpha_gdbarch_init): Update.
5336
5337 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
5338
5339 * PROBLEMS: Add more specific information, and a work-around,
5340 for PR gdb/1458.
5341
5342 2004-06-18 Andrew Cagney <cagney@gnu.org>
5343
5344 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
5345 * gdbarch.h, gdbarch.c: Re-generate.
5346 * ada-lang.c (ada_finish_decode_line_1): Update.
5347 * infrun.c (handle_inferior_event): Update.
5348 * infcall.c (find_function_addr): Update.
5349 * linespec.c (minsym_found): Update.
5350 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
5351 Update.
5352 * blockframe.c (legacy_frameless_look_for_prologue): Update.
5353 * cli/cli-cmds.c (disassemble_command): Update.
5354 * vax-tdep.c (vax_gdbarch_init): Update.
5355
5356 2004-06-18 Mark Kettenis <kettenis@gnu.org>
5357
5358 * i386-tdep.c (i386_collect_fpregset): Fix comment.
5359
5360 2004-06-17 Andrew Cagney <cagney@gnu.org>
5361
5362 GDB 6.1.1 released from the GDB 6.1 branch.
5363 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
5364 * PROBLEMS: Ditto.
5365
5366 2004-06-16 Daniel Jacobowitz <dan@debian.org>
5367
5368 PR gdb/1658
5369 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
5370 operation as a uleb128. Found by Michael Coulter.
5371
5372 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
5373
5374 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
5375 make it non-static.
5376 * ada-lang.h (task_control_block): declaration moved from ada-task.c
5377 to ada-lang.h; this is needed to be able to implement the kill command
5378 in multi-task mode.
5379 (task_ptid): Ditto.
5380 (task_entry): Ditto.
5381 (task_list): Ditto.
5382 (ada_build_task_list): Ditto.
5383
5384 * ada-lang.c: Conditionalize routines and data structures related
5385 to breakpoints, exceptions, completion, and symbol caching on
5386 GNAT_GDB, since these are not yet used in the submitted public sources.
5387 (ada_main_name): Editorial: Move definition out of exception-related
5388 code.
5389
5390 2004-06-15 Andrew Cagney <cagney@gnu.org>
5391
5392 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
5393 deprecated_pc_in_call_dummy.
5394
5395 2004-06-15 Alan Modra <amodra@bigpond.net.au>
5396
5397 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
5398 bfd_get_section_size_before_reloc or _raw_size.
5399 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
5400 * dwarf2read.c (dwarf2_locate_sections): Likewise.
5401 (dwarf2_read_section): Likewise.
5402 * elfread.c (elf_locate_sections): Likewise.
5403 * gcore.c (derive_heap_segment): Likewise.
5404 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
5405 * remote-e7000.c (e7000_load): Likewise.
5406 * remote-m32r-sdi.c (m32r_load): Likewise.
5407 * remote-mips.c (mips_load_srec): Likewise.
5408 (pmon_load_fast): Likewise.
5409 * remote.c (compare_sections_command): Likewise.
5410 * symfile.c (add_section_size_callback): Likewise.
5411 (load_section_callback): Likewise.
5412 (pc_in_unmapped_range): Likewise.
5413 (pc_in_mapped_range): Likewise.
5414 (sections_overlap): Likewise.
5415 (list_overlays_command): Likewise.
5416 (simple_overlay_update_1): Likewise.
5417 (simple_overlay_update): Likewise.
5418 * tracepoint.c (remote_set_transparent_ranges): Likewise.
5419 * win32-nat.c (core_section_load_dll_symbols): Likewise.
5420
5421 2004-06-14 Randolph Chung <tausq@debian.org>
5422
5423 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
5424 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
5425 static.
5426 (hppa_hpux_inferior_created): New function.
5427 (hppa_hpux_init_abi): Register observer.
5428 * symfile.c (hp_cxx_exception_support_initialized)
5429 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
5430 (symbol_file_add_main_1, symbol_file_clear): Likewise.
5431
5432 2004-06-14 Randolph Chung <tausq@debian.org>
5433
5434 * MAINTAINERS (Write After Approval): Alphabetize my entry
5435 correctly.
5436
5437 2004-06-14 Andrew Cagney <cagney@gnu.org>
5438
5439 * MAINTAINERS (testsuite): List Michael Chastain as the lead
5440 testsuite maintainer.
5441
5442 2004-06-13 Andrew Cagney <cagney@gnu.org>
5443
5444 * infcmd.c (print_return_value): Fix logic, allow
5445 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
5446
5447 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
5448 defining any macros.
5449 * gdbarch.h: Re-generate.
5450
5451 * gdbarch.sh: Delete "level" attribute. Only check for a macro
5452 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
5453 * gdbarch.h: Re-generate.
5454
5455 * values.c (generic_use_struct_convention): Don't check gcc_p.
5456
5457 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
5458 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
5459 * gdbarch.h, gdbarch.c: Regenerate.
5460 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
5461 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
5462 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5463 deprecated_max_register_raw_size and
5464 deprecated_max_register_virtual_size.
5465 * v850-tdep.c (v850_gdbarch_init): Ditto.
5466 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5467 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5468 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5469 * cris-tdep.c (cris_gdbarch_init): Ditto.
5470
5471 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
5472 * gdbarch.h, gdbarch.c: Re-generate.
5473 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
5474 (m68hc11_use_struct_convention): Delete function.
5475 (m68hc11_extract_struct_value_address): Delete function.
5476 (m68hc11_return_value): New function.
5477 (m68hc11_gdbarch_init): Instead of store_return_value,
5478 extract_return_value, return_value_on_stack,
5479 deprecated_extract_struct_value_address and use_struct_convention,
5480 set return_value.
5481 * values.c (using_struct_return): Do not call
5482 RETURN_VALUE_ON_STACK.
5483 * arch-utils.h (generic_return_value_on_stack_not): Delete
5484 declaration.
5485 * arch-utils.c (generic_return_value_on_stack_not): Delete
5486 function.
5487
5488 2004-06-12 Andrew Cagney <cagney@gnu.org>
5489
5490 * values.c (register_value_being_returned): Delete function.
5491 * infcmd.c (legacy_return_value): Delete function.
5492 * infcall.c (call_function_by_hand): Inline
5493 "register_value_being_returned", simplify.
5494 * values.c (using_struct_return): Update comment, refer to
5495 print_return_value instead of register_value_being_returned.
5496 * infcmd.c (print_return_value): Inline calls to
5497 register_value_being_returned and legacy_return_value. Simplify.
5498
5499 2004-06-11 Randolph Chung <tausq@debian.org>
5500
5501 * somread.c (som_symtab_read): Exclude gcc local symbols.
5502
5503 2004-06-11 Randolph Chung <tausq@debian.org>
5504
5505 * infrun.c (handle_inferior_event): Handle the case when a
5506 trampoline ends up in the runtime resolver, and if the trampoline
5507 has no name. Rearrange the code so that all the trampoline
5508 processing happens before other step-out-of-range handling.
5509
5510 2004-06-11 Martin Hunt <hunt@redhat.com>
5511
5512 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
5513 has no fpu.
5514
5515 2004-06-10 Andrew Cagney <cagney@gnu.org>
5516
5517 * blockframe.c (legacy_inside_entry_func): Delete.
5518 (legacy_frame_chain_valid): Inline call to
5519 legacy_inside_entry_func, simplify.
5520
5521 2004-06-10 Bob Rossi <bob@brasko.net>
5522
5523 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
5524 * dwarf2read.c (partial_die_info): Add dirname field.
5525 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
5526 (read_partial_die): Save away DW_AT_comp_dir.
5527 * defs.h (symtab_to_filename): Removed.
5528 * source.c (find_and_open_source): Added.
5529 (open_source_file): Just calls find_and_open_source.
5530 (symtab_to_filename): Removed.
5531 (symtab_to_fullname, psymtab_to_fullname): Added.
5532 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
5533 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
5534 symtab_to_filename.
5535 * symtab.h (partial_symtab): Add dirname field.
5536 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
5537 (mi_cmd_file_list_exec_source_file): Call new function
5538 symtab_to_fullname to find fullname.
5539 (mi_cmd_file_list_exec_source_files): Added.
5540 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
5541 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
5542
5543 2004-06-10 Andrew Cagney <cagney@gnu.org>
5544
5545 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
5546 to generic_use_struct_convention, the default value.
5547
5548 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
5549 of abort.
5550
5551 * ns32k-tdep.c (ns32k_push_arguments): New function.
5552 (ns32k_gdbarch_init): Set deprecated_push_arguments.
5553 * infcall.c (call_function_by_hand): Call error instead of
5554 legacy_push_arguments.
5555 * value.h (legacy_push_arguments): Delete declaration.
5556 * valops.c (legacy_push_arguments): Delete function.
5557 (value_push): Delete function.
5558
5559 2004-06-10 Brian Ford <ford@vss.fsi.com>
5560
5561 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
5562 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
5563 info.
5564 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
5565
5566 2004-06-10 Andrew Cagney <cagney@gnu.org>
5567
5568 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
5569 * gdbarch.h, gdbarch.c: Re-generate.
5570 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
5571 parameters.
5572 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
5573 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
5574 deprecated_pc_in_call_dummy instead of
5575 DEPRECATED_PC_IN_CALL_DUMMY.
5576 (arm_skip_prologue): Ditto.
5577 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
5578 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
5579 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
5580 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
5581 Ditto.
5582 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
5583 (sh64_init_extra_frame_info, sh64_get_saved_register)
5584 (sh64_pop_frame): Ditto.
5585 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
5586 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
5587 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
5588 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
5589 (h8300_pop_frame): Ditto.
5590 * blockframe.c (legacy_inside_entry_func)
5591 (legacy_frame_chain_valid): Ditto.
5592 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
5593 to deprecated_pc_in_call_dummy.
5594
5595 2004-06-09 Andrew Cagney <cagney@gnu.org>
5596
5597 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
5598 provide a default value.
5599 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
5600 * gdbarch.h, gdbarch.c: Re-generate.
5601 * arch-utils.c (generic_convert_register_p): Rename
5602 legacy_convert_register_p
5603 (legacy_register_to_value, legacy_value_to_register): Delete
5604 functions.
5605 * arch-utils.h (generic_convert_register_p): Rename
5606 legacy_convert_register_p.
5607 (legacy_register_to_value, legacy_value_to_register): Delete
5608 declarations.
5609
5610 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
5611 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
5612 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
5613 * gdbarch.h, gdbarch.c: Re-generate.
5614 * infcmd.c (default_print_registers_info): Simplify.
5615 * findvar.c (value_of_register): Simplify.
5616 * mi/mi-main.c (get_register): Simplify.
5617 * arch-utils.c (legacy_convert_register_p): Always return 0.
5618 (legacy_register_to_value, legacy_value_to_register): Always call
5619 internal_error.
5620
5621 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
5622 #ifdef CLEAR_INSN_CACHE code.
5623 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
5624 Delete #ifdef CLEAR_DEFERRED_STORES code.
5625
5626 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
5627
5628 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
5629 copyright.
5630 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
5631
5632 * config/mips/mipsv4.mh: Delete file.
5633
5634 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
5635 unreferenced macro.
5636 (hpread_adjust_stack_address): Delete declaration.
5637
5638 2004-06-08 Andrew Cagney <cagney@gnu.org>
5639
5640 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5641 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
5642 PTRACE_ATTACH / PTRACE_DETACH available call error.
5643 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
5644 * infttrace.c (update_thread_state_after_attach, attach, detach):
5645 Remove #ifdef wrappers.
5646 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
5647 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
5648 * config/nm-bsd.h (ATTACH_DETACH): Delete.
5649 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
5650 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
5651 * config/nm-linux.h (ATTACH_DETACH): Delete.
5652 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
5653 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
5654 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
5655 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
5656 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
5657
5658 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
5659
5660 * configure.in: Set $configdir to the right OS specific value.
5661 Use value when setting $tcldir and $tkdir.
5662 * configure: Regenerate.
5663
5664 2004-06-06 Paul Brook <paul@codesourcery.com>
5665
5666 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
5667 records.
5668
5669 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
5670
5671 * ada-lang.c (lookup_symbol_in_language): New function to allow
5672 re-use of another language's symbol lookup code. (Placed here
5673 temporarily while Ada support is being integrated into the public
5674 tree).
5675 (restore_language): New auxiliary function for
5676 lookup_symbol_in_language.
5677 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
5678 temporarily while Ada support is being integrated into the public
5679 tree).
5680
5681 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
5682
5683 * Makefile.in (check//%): New.
5684
5685 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
5686 (mn10300_store_return_value): Rewrite.
5687 (mn10300_type_align): New.
5688 (mn10300_use_struct_convention): Rewrite.
5689 (mn10300_return_value): New, using all of the above.
5690 (mn10300_pop_frame_regular): Add saved_regs_size.
5691 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
5692
5693 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
5694 regs if PC is on movm.
5695
5696 2004-06-07 Jim Blandy <jimb@redhat.com>
5697
5698 Add native Linux support for the PowerPC E500.
5699 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
5700 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
5701 all architectures except the E500.
5702 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
5703 #definitions.
5704 (struct gdb_evrregset_t): New type.
5705 (have_ptrace_getsetevrregs): New variable.
5706 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
5707 fetch_spe_registers): New functions.
5708 (fetch_register): Call fetch_spe_register as appropriate.
5709 Assert that we're only passed raw register numbers.
5710 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
5711 Don't fetch gprs if they're pseudoregisters.
5712 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
5713 store_spe_registers): New functions.
5714 (store_register): Call store_spe_register as appropriate.
5715 Assert that we're only passed raw register numbers.
5716 (store_ppc_registers): Call store_spe_registers as appropriate.
5717 Don't store gprs if they're pseudoregisters.
5718
5719 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
5720
5721 * thread-db.c (thread_get_info_callback): Fill in the thread_info
5722 struct if one exists, even if we are dealing with a zombie thread.
5723
5724 2004-06-07 Andrew Cagney <cagney@gnu.org>
5725
5726 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
5727 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
5728 Rename PC_REQUIRES_RUN_BEFORE_USE.
5729 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
5730 #ifdef.
5731
5732 2004-06-07 Randolph Chung <tausq@debian.org>
5733
5734 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
5735 unwinding after sp has been saved to the stack but before the end
5736 of the prologue, and after the fp has been modified but before it has
5737 been saved to the stack.
5738 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
5739 Remove superfluous definitions.
5740 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
5741
5742 2004-06-07 Guy Martin <gmsoft@gentoo.org>
5743
5744 Committed by Randolph Chung.
5745 * hppa-linux-nat.c: Include the correct version of the header file
5746 depending on the kernel version.
5747
5748 2004-06-06 Randolph Chung <tausq@debian.org>
5749
5750 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
5751 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
5752
5753 2004-06-06 Randolph Chung <tausq@debian.org>
5754
5755 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
5756 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
5757 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
5758 * hppa-tdep.c (hppa_symbol_address): New function definition.
5759 * hppa-tdep.h (hppa_symbol_address): New function declaration.
5760
5761 2004-06-06 Randolph Chung <tausq@debian.org>
5762
5763 * hppa-tdep.h (struct value): Forward declaration.
5764 (gdbarch_tdep): Define tdep find_global_pointer method.
5765 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
5766 associated with the function we are trying to call, and write it
5767 to the gp register.
5768 (hppa32_convert_from_funct_ptr_addr): New function.
5769 (hppa_find_global_pointer): New function.
5770 (hppa_gdbarch_init): Set default find_global_pointer method; set
5771 convert_from_func_ptr_addr method.
5772 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
5773 (hppa_linux_init_abi): Set find_global_pointer method.
5774 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
5775
5776 2004-06-06 Randolph Chung <tausq@debian.org>
5777
5778 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
5779 to struct value *function.
5780 * gdbarch.c: Regenerate.
5781 * gdbarch.h: Likewise.
5782 * infcall.c (call_function_by_hand): Pass entire function value
5783 to push_dummy_call.
5784
5785 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
5786 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
5787 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
5788 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
5789 * arm-tdep.c (arm_push_dummy_call): Likewise.
5790 * avr-tdep.c (avr_push_dummy_call): Likewise.
5791 * cris-tdep.c (cris_push_dummy_call): Likewise.
5792 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
5793 * frv-tdep.c (frv_push_dummy_call): Likewise.
5794 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
5795 * hppa-tdep.c (hppa32_push_dummy_call)
5796 (hppa64_push_dummy_call): Likewise.
5797 * i386-tdep.c (i386_push_dummy_call): Likewise.
5798 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
5799 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
5800 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
5801 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
5802 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
5803 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
5804 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
5805 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
5806 (ppc64_sysv_abi_push_dummy_call): Likewise.
5807 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
5808 (ppc64_sysv_abi_push_dummy_call): Likewise.
5809 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
5810 * s390-tdep.c (s390_push_dummy_call): Likewise.
5811 * sh-tdep.c (sh_push_dummy_call_fpu)
5812 (sh_push_dummy_call_nofpu): Likewise.
5813 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
5814 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
5815 * vax-tdep.c (vax_push_dummy_call): Likewise.
5816
5817 2004-06-04 Jim Blandy <jimb@redhat.com>
5818
5819 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
5820 gdbarch argument to register_size.
5821
5822 * rs6000-tdep.c (rs6000_store_return_value): Use
5823 regcache_cooked_write_part instead of
5824 deprecated_write_register_bytes.
5825 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
5826 not gdbarch_deprecated_store_return_value.
5827
5828 * ppc-linux-nat.c (store_register, fetch_register): Remove
5829 incorrect assertions. Simplify and generalize handling of
5830 transfers whose sizes are not multiples of, or less than, sizeof
5831 (PTRACE_XFER_TYPE).
5832
5833 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
5834
5835 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
5836 as a new thread event.
5837 * thread-db.c (thread_get_info_callback): If the thread is a
5838 zombie, return TD_THR_ZOMBIE.
5839 (thread_from_lwp): If thread_get_info_callback returns
5840 TD_THR_ZOMBIE, check if the thread is still on the thread list
5841 and return a -1 ptid if not found.
5842 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
5843 change the status to TARGET_WAITKIND_SPURIOUS.
5844
5845 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
5846
5847 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
5848 double values in little endian mode.
5849
5850 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
5851
5852 Committed by Andrew Cagney.
5853 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
5854 after last enum constant to avoid error from IBM C
5855 compiler.
5856
5857 2004-06-02 Jim Blandy <jimb@redhat.com>
5858
5859 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
5860 to 'message', and make it local to the lone block that uses it.
5861
5862 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
5863
5864 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
5865
5866 * ada-exp.y: Update copyright notice.
5867 Include block.h.
5868
5869 Replace REGNAME, LAST, INTERNAL_VARIABLE with
5870 SPECIAL_VARIABLE and unify the treatment of these cases.
5871
5872 (write_attribute_call0): Remove.
5873 (write_attribute_call1): Remove.
5874 (write_attribute_calln): Remove.
5875 (save_qualifier): Add missing semicolon.
5876
5877 (simple_exp,exp): Decomment (i.e., reactivate) code that was
5878 temporarily disabled to allow compilation with FSF head version.
5879
5880 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
5881 use individual operators (OP_*) for all attributes.
5882 (exp syntax): Use write_int.
5883 Handle STRING literals with OP_STRING.
5884 (variable syntax): Add limit parameter to calls to
5885 write_object_renaming.
5886
5887 (temp_parse_space): New definition to hold entities that need
5888 only live until the next call to ada_parse.
5889 (string_to_operator): Rename fields of ada_opname_table entries.
5890
5891 (write_var_from_sym): Record block.
5892 (write_var_from_name): Minor reformatting.
5893 Make sure saved name is properly encoded in the case of multiple
5894 matches, and set its language to Ada.
5895 Update comment.
5896 Modify to indicate unresolved name as symbol in the UNRESOLVED
5897 namespace, allocated in temp_parse_space.
5898 (write_int): New function.
5899
5900 (write_object_renaming): Add max_depth parameter to limit
5901 chains of object renamings.
5902 Handle case where root of renaming expression is itself a renaming.
5903 Use temp_parse_space for temporary name buffer.
5904 Handle renamings to dereferenced pointers (___XEXA suffices).
5905
5906 (ada_parse, yyerror, string_to_operator,
5907 write_var_from_sym, write_var_from_name, write_attribute_call0,
5908 write_attribute_call1, write_attribute_calln,
5909 write_object_renaming): Protoize.
5910
5911 (_initialize_ada_exp): New function.
5912
5913 * ada-lang.c: Update copyright notice.
5914 General terminology change to conform to GNAT compiler usage:
5915 mangle => encode, demangle => decode
5916 Include gdb_obstack.h.
5917 Include gdb_regex.h
5918 Include frame.h
5919 Include hashtab.h
5920 Include completer.h
5921 Include gdb_stat.h
5922 Include block.h
5923 Include infcall.h
5924
5925 (ADA_RETAIN_DOTS): Make sure this is defined.
5926 (TRUNCATION_TOWARDS_ZERO): Define.
5927 (struct string_vector): Define.
5928 (unresolved_names): Remove definition.
5929 (xnew_string_vector): New function.
5930 (string_vector_append): New function.
5931 (extract_string): Make static.
5932 (ada_unqualified_name): New function.
5933 (add_angle_brackets): New function.
5934 (function_name_from_pc): New function.
5935 (place_on_stack): Rename to ensure_lval.
5936
5937 (ensure_lval): Renamed from place_on_stack.
5938 Make identity on lvals.
5939 Update comment.
5940 (is_nonfunction): New interface.
5941 Only symbols in LOC_CONST class can be enumerals.
5942 (fill_in_ada_prototype): Remove; now independent of language.
5943 (add_defn_to_vec): Add obstack and symtab arguments.
5944 Use obstack to hold collected definitions.
5945 (num_defns_collected): New function.
5946 (defns_collected): New function.
5947 (ada_resolve_subexp): Rename to resolve_subexp.
5948 (resolve_subexp): Renamed from ada_resolve_subexp.
5949 (ada_op_name): Return non-const result.
5950 (ada_decoded_op_name): Renamed from ada_op_name, now used for
5951 other purposes.
5952
5953 (to_fixed_array_type): Add declaration.
5954 (coerce_unspec_val_to_type): Remove offset parameter.
5955 (find_sal_from_funcs_and_line): New interface.
5956 (find_line_in_linetable): Ditto.
5957
5958 (all_sals_for_line): Rename to ada_sals_for_line and make
5959 global.
5960 Add new parameter. When set, do not ask the user to choose the
5961 instance, but use the first one found instead.
5962 Use given line number in returned sals.
5963 Fix comment.
5964 Skip the prologue if funfirstline is set.
5965 Correct for memory leak when 0 lines found.
5966
5967 (value_pos_atr): Use pos_atr.
5968 (pos_atr): New function.
5969 (standard_lookup): Add block parameter.
5970
5971 (makeTimeStart): Remove declaration and uses.
5972 (makeTimeStop): Remove declaration and uses.
5973
5974 (ada_completer_word_break_characters): Allow for VMS.
5975 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
5976 (raise_sym_name): New constant.
5977 (raise_unhandled_sym_name): New constant.
5978 (raise_assert_sym_name): New constant.
5979 (process_raise_exception_name): New constant.
5980 (longest_exception_template): New constant.
5981 (warning_limit): New variable to limit warnings during expression
5982 evaluation.
5983 (warnings_issued): New variable to keep track of warnings issued.
5984 (known_runtime_file_name_patterns): New constant.
5985 (known_auxiliary_function_name_patterns): New constant.
5986 (symbol_list_obstack): New variable.
5987
5988 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
5989 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
5990 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
5991 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
5992 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
5993 ada_variant_discrim_name, field_alignment, dynamic_template_type,
5994 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
5995 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
5996 and strcmp.
5997
5998 (ada_get_field_index): New function.
5999 (lim_warning): New function.
6000 (ada_translate_error_message): New function.
6001 (MAX_OF_SIZE): New function.
6002 (MIN_OF_SIZE): New function.
6003 (UMAX_OF_SIZE): New function.
6004 (UMIN_OF_SIZE): New function.
6005 (discrete_type_high_bound): New function.
6006 (discrete_type_low_bound): New function.
6007 (base_type): New function.
6008 (do_command): Remove.
6009
6010 (ada_update_initial_language): Use language_ada, not language_unknown.
6011 (ada_encode): Renamed from ada_mangle.
6012 Obey ADA_RETAIN_DOTS.
6013 (ada_decode): Renamed from ada_demangle.
6014 Update coding conventions.
6015 (decoded_names_store): New hash table.
6016 (ada_decode_symbol): New function.
6017 (ada_la_decode): New function.
6018
6019 (modify_general_field): Correct computations of offset and bit
6020 position.
6021 (desc_base_type): Handle ref types, too.
6022 (ada_is_direct_array_type): New function.
6023
6024 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6025 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6026 (ada_is_bogus_array_descriptor,ada_type_of_array,
6027 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
6028 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
6029 ada_is_array_descriptor_type.
6030
6031 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
6032 (ada_is_packed_array_type): Handle pointers or
6033 references to packed arrays as well.
6034 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
6035 (decode_packed_array_type): Search for the packed array type
6036 symbol in the currently selected block and associated
6037 superblocks too.
6038 Use lookup_symbol again.
6039
6040 (decode_packed_array): Handle pointers and references.
6041 Update call to coerce_unspec_val_to_type.
6042 (decode_packed_array_type,value_subscript_packed): Limit warnings.
6043 (ada_value_primitive_packed_val): Improve comment.
6044
6045 (ada_index_type): Substitute int type for "undefined".
6046 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
6047 ada_array_langth, ada_is_string_type): Use renamed
6048 ada_is_simple_array_type.
6049 (empty_array): New function.
6050
6051 (ada_resolve): Rename to resolve.
6052 (resolve): Make static.
6053 Call renamed resolve_subexp.
6054 Update comment.
6055 (ada_resolve_subexp): Rename to resolve_subexp.
6056 (resolve_subexp): Update comment.
6057 Decomment disabled code.
6058 Add LOC_COMPUTED* cases.
6059 Modify to use temporary struct symbols (marked as being in
6060 UNDEF_NAMESPACE) to indicate unresolved names, instead of
6061 OP_UNRESOLVED_VALUE.
6062 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
6063 Add OP_STRING case.
6064 Remove OP_ARRAY.
6065 Use SYMBOL_PRINT_NAME instead of ada_demangle.
6066 Use new ada_lookup_symbol_list interface.
6067 Use new ada_resolve_function interface.
6068 Remove OP_TYPE case.
6069
6070 (ada_args_match): Idiot proof against null actuals.
6071 Use intermediate variables to clarify.
6072 (ada_resolve_function): Update comment and interface.
6073 (mangled_ordered_before): Rename to encoded_ordered_before and
6074 update comment.
6075 (sort_choices): Update comment and interface.
6076 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
6077 (user_select_syms): New interface.
6078 Use new sort_choices interface.
6079 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
6080 (possible_user_operator_p): Idiot-proof against null values.
6081 (ada_simple_renamed_entity): Don't make cleanup; rely on
6082 caller to free result string.
6083 Remove const from return type.
6084 (make_array_descriptor): Rename uses of place_on_stack to
6085 ensure_lval.
6086 Make sure that arrays are on stack.
6087
6088 (HASH_SIZE): Define.
6089 (struct cache_entry): Define.
6090 (cache_space): Define.
6091 (cache): Define.
6092 (clear_ada_sym_cache): New function.
6093 (find_entry): New function.
6094 (lookup_cached_symbol): New function.
6095 (defn_vector_size): Define.
6096 (cache_symbol): New function.
6097 (defn_symbols): Remove.
6098
6099 (standard_lookup): Use lookup_symbol_in_language to get effect of
6100 C lookup.
6101 Cache results.
6102
6103 (symbol_completion_match): New function.
6104 (symbol_completion_add): New function.
6105 (ada_make_symbol_completion_list): New function.
6106
6107 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
6108 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
6109 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6110 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
6111
6112 (ada_lookup_simple_minsym): New function.
6113 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
6114
6115 (add_symbols_from_enclosing_procs): New interface.
6116 Conditionalize more helpfully.
6117 Don't bother if program isn't running.
6118 Use new interface to get_frame_block.
6119 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
6120
6121 (remove_extra_symbols): New interface.
6122 (xget_renaming_scope): New function.
6123 (is_package_name): New function.
6124 (renaming_is_visible): New function.
6125 (remove_out_of_scope_renamings): New function.
6126
6127 (ada_lookup_symbol_list): New interface.
6128 Properly reinitialize the symbol list obstack.
6129 Don't call add_symbols_from_enclosing_procs if we start from a
6130 static or global block.
6131 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
6132 add_symbols_from_enclosing_procs.
6133 Add symtab data to cached entries.
6134 Handle symbols prefixed with
6135 "standard__" specially; strip prefix and don't look in local symbols.
6136 Do not include out of scope renaming symbols in list of
6137 symbols returned.
6138 Add const to block parameter.
6139 Move check for non-local, non-global symbols earlier.
6140 Remove timing stuff.
6141 (ada_lookup_symbol): New interface.
6142 Find symtab as well.
6143 (ada_lookup_symbol_nonlocal): New function.
6144
6145 (is_name_suffix): Enhance suffix detection to recognize
6146 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
6147 (is_dot_digits_suffix): New function.
6148 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
6149
6150 (ada_add_block_symbols): New interface. Use obstack to return results
6151 in a vector of struct ada_symbol_infos. Add symtab argument.
6152 Use new interface to add_defn_to_vec.
6153 Remove calls to fill_in_ada_prototype.
6154 Use BLOCK_BUCKETS, BLOCK_BUCKET.
6155
6156 (ada_finish_decode_line_1): Add const qualification to local to fix
6157 warning.
6158 Start looking in static block for functions to avoid attempts
6159 to search frame chain for up-level variables.
6160 Adapt to new ada_sals_for_line interface.
6161 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
6162 Handle quoting of the function name inside the spec string.
6163 Skip prologue when funfirstline is set and update the
6164 function documentation to that effect.
6165
6166 (debug_print_lines, debug_print_block, debug_print_blocks,
6167 debug_print_symtab): Remove.
6168
6169 (ada_main_name): New function.
6170 (ada_exception_breakpoint_type): New function.
6171 (is_known_support_routine): New function.
6172 (ada_find_printable_frame): Renamed from find_printable_frame and made
6173 global.
6174 Remove level parameter.
6175 Use new interface to select_frame.
6176
6177 (begin_command): Remove.
6178 (ada_adjust_exception_stop): New function.
6179 (ada_print_exception_stop): New function.
6180 (exception_name_from_cond): New function.
6181 (ada_report_exception_break): Replace disabled code with
6182 conditionalization on GNAT_GDB.
6183 Get the exception name from the condition string.
6184 Remove and move functionality into new functions
6185 ada_print_exception_breakpoint_task and
6186 ada_print_exception_breakpoint_nontask.
6187 (error_breakpoint_runtime_sym_not_found): New function.
6188 (is_runtime_sym_defined): New function.
6189 (ada_breakpoint_rewrite): Uncomment suppressed code.
6190 Use symbolic error-message and runtime-symbol names.
6191 Surround runtime symbol names in quotes.
6192 Allow non-specific breakpoints on exceptions and assertions before
6193 program starts.
6194
6195 (ada_is_tagged_type): Add parameter.
6196 (ada_is_tag_type): New function.
6197 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
6198 (ada_variant_discrim_type): Ditto.
6199 (value_tag_from_contents_and_address): New function.
6200 (type_from_tag): New function.
6201 (struct tag_args): New structure used to communicate with
6202 ada_tag_name_1.
6203 (ada_tag_name_1): New function.
6204 (ada_tag_name): New function.
6205
6206 (ada_scan_number): Update comment.
6207 (find_struct_field): New function.
6208 (ada_search_struct_field): Make static.
6209 (ada_value_struct_elt): New version that returns references when
6210 given pointers or references to structs.
6211 (ada_lookup_struct_elt_type): Add 'refok' parameter.
6212 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
6213 interface.
6214 (ada_value_ind): Use new ada_to_fixed_value interface.
6215 (ada_coerce_ref): Ditto.
6216 (field_offset): Remove.
6217
6218 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
6219 (ada_find_renaming_symbol): New function.
6220 (ada_prefer_type): Prefer named types over unnamed ones.
6221 (variant_field_index): New function.
6222 (contains_variant_part): Removed: subsumed by variant_field_index.
6223 (ada_template_to_fixed_record_type): New function, mostly from
6224 template_to_fixed_record_type.
6225 (template_to_fixed_record_type):
6226 Do not scan the type fields beyond the last one; prevents a
6227 potential SEGV.
6228 Handle case where variant field is listed BEFORE discriminant it
6229 depends on.
6230 Fix calculation of record length when bit length is
6231 not evenly divisible by char length.
6232 Move code to ada_template_to_fixed_record_type and call it.
6233
6234 (template_to_static_fixed_type): Revise comment.
6235 Modify to work on ordinary record types as well as templates,
6236 so as to handle fields that use ___XVE or ___XVU encodings.
6237 (to_record_with_fixed_variant_part): Fill out comment.
6238 Initialize C++ stuff in right type.
6239 Allow case where DVAL is null.
6240 Handle case where variant field is not last.
6241 Fix typo concerning record length.
6242 (to_fixed_record_type): Decomment disabled code.
6243 (to_fixed_record_type): Use variant_field_index instead of
6244 contains_variant_part.
6245 (to_fixed_variant_branch_type): Ditto.
6246 (to_fixed_array_type): Decomment disabled code.
6247 (ada_to_fixed_type): Convert tagged types to the specific type.
6248 Deactivate the size-check for array types in order to avoid
6249 some false size alarms.
6250 (to_static_fixed_type): Decomment disabled code.
6251 Modify to call template_to_static_fixed_type
6252 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
6253 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
6254 Remove valaddr argument, as it is never really used.
6255 (ada_to_fixed_value): Change interface to act on single struct value*
6256 operand.
6257 (adjust_pc_past_prologue): New function.
6258 (ada_attribute_name): Modify to take enum exp_opcode argument.
6259
6260 (ada_enum_name): Recognize new homonym-distinguishing convention.
6261 Adjust local variable's type to remove compiler warning.
6262 Fix a small problem in the part that unqualifies the enumeration name.
6263 (ada_value_binop): New function.
6264 (ada_value_equal): New function.
6265
6266 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
6267 Don't give error message when not doing normal evaluation
6268 and a tagged type doesn't seem to contain a structure member.
6269 Give error message for packed arrays.
6270 For indexing arrays, handle pointers to packed arrays correctly.
6271 Handle case of 'first and 'last attributes of bare integral type
6272 without encoded subtype info.
6273 Remove some unnecessary casts.
6274 Fix uninitialized value of type in computing 'first, 'last, or 'length
6275 of array object.
6276 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
6277 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
6278 calls.
6279 Attributes are now exp_opcode values.
6280 Correct treatment of 'modulus.
6281 Better error message for taking 'length of wrong kind of type;
6282 improve comment.
6283 Change EVAL_NORMAL to noside for consistency.
6284 Use ada_value_binop for DIV, MOD, REM.
6285 Make special case out of array of length 0, since an argument
6286 of 0 upsets some platforms' malloc.
6287 Use OP_STRING instead of OP_ARRAY.
6288 For slice, add check that we have an array type before extracting
6289 a slice out of it. Avoids a SEGV.
6290 When evaluating an array slice, if the array type is a reference to
6291 an aligner type, then replace the aligner type by the actual type.
6292 Decomment disabled code.
6293 Remove some dead code.
6294 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
6295 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
6296 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
6297 and UNOP_MBR to UNOP_IN_RANGE.
6298 If an array type has a parallel ___XVE type, then use it.
6299 Turn arrays into pointers for lvalue arrays.
6300 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
6301 bounds error and handle 0-length slices.
6302 Use lim_warning.
6303 When selecting fields, apply ada_to_fixed_value (because the fields
6304 might have ___XVU or ___XVE encodings even if not dynamic.)
6305 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
6306 (ada_is_system_address_type): New function.
6307
6308 (get_var_value): Use new interface to ada_lookup_symbol_list.
6309 (get_int_var_value): New interface.
6310 (to_fixed_range_type): Allow unknown bound, with warning.
6311 (ada_is_modular_type): Decomment disabled code.
6312 (ADA_OPERATORS): New definition.
6313 (ada_operator_length): New function.
6314 (ada_expr_op_name): New function.
6315 (ada_forward_operator_length): New function.
6316 (ada_dump_subexp_body): New function.
6317 (ada_print_subexp): New function.
6318 (ada_exp_descriptor): New constant.
6319 (ada_op_print_tab): Add 'size. Remove FIXMEs.
6320 (ada_language_defn): Add ada_exp_descriptor entry.
6321 Change ada_parse => parse.
6322 Add post-parser entry.
6323 Use ada-specific non-local symbol lookup.
6324 Don't use C-style arrays.
6325 String lower-bound is 1.
6326 Decomment disabled code.
6327 (parse): New function.
6328 New fields ada_translate_error_message, ada_lookup_symbol,
6329 ada_lookup_minimal_symbol.
6330
6331 * ada-lang.h: Update copyright dates.
6332 Replace the mangle/demangle terminology throughout by the
6333 more appropriate encode/decode one.
6334 Include breakpoint.h.
6335 Forward declare struct partial_symbol, struct block.
6336 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
6337 (EXTRACT_ADDRESS): Remove.
6338 (EXTRACT_INT): Remove.
6339 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
6340 (MAX_ENCLOSING_FRAME_LEVELS): Define.
6341 (MAX_RENAMING_CHAIN_LENGTH): Define.
6342 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
6343
6344 (enum task_states): Remove.
6345 ada_task_states: Remove.
6346 (fat_string): Remove.
6347 (struct entry_call): Remove.
6348 (struct task_fields): Remove.
6349 (struct task_entry): Remove.
6350
6351 (struct ada_symbol_info): Define.
6352 (enum ada_attribute): Remove.
6353 (enum ada_operator): Define.
6354
6355 (ada_get_field_index): Declare.
6356 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
6357 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6358 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6359 (ada_lookup_symbol_list): New interface.
6360 (ada_decode_symbol): Declare.
6361 (ada_decode): Declare.
6362 (ada_lookup_symbol): New interface.
6363 (ada_update_initial_language): Declare.
6364 (ada_lookup_simple_minsym): Declare.
6365 (user_select_syms): New interface.
6366 (ada_sals_for_line): Declare.
6367 (ada_is_tagged_type): New interface.
6368 (ada_tag_name): Declare.
6369 (ada_lookup_struct_elt_type): Remove declaration.
6370 (ada_search_struct_field): Remove declaration.
6371 (ada_attribute_name): New interface.
6372 (ada_is_system_address_type): Declare.
6373 (ada_to_fixed_value): Remove declaration.
6374 (ada_template_to_fixed_record_type_1): Declare.
6375 (get_int_var_value): New interface.
6376 (ada_find_any_symbol): Declare.
6377 (ada_find_renaming_symbol): Declare.
6378 (ada_mangle): Rename to ada_encode.
6379 (ada_simple_renamed_entity): Remove const.
6380 (ada_main_name): Declare.
6381 (get_current_task): Rename to ada_get_current_task.
6382 (get_entry_number): Remove declaration.
6383 (ada_report_exception_break): Remove declaration.
6384 (ada_print_exception_breakpoint_nontask): Declare.
6385 (ada_print_exception_breakpoint_task): Declare.
6386 (ada_find_printable_frame): Declare.
6387
6388 * ada-lex.l: Update copyright notices.
6389 Use xmalloc and xfree instead of malloc and free.
6390 Use new interface to name_lookup.
6391 Use new interface to
6392 ada_mangle=>ada_encode.
6393 Redo handling of '$...' variable to parallel current treatment
6394 in c-exp.y.
6395 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
6396 digit_to_int, strtoulst, processInt, processReal, processId,
6397 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
6398 yywrap): Protoize.
6399
6400 (processInt): Use cast to remove harmless warning.
6401 (processReal): Modify to get rid of compiler warning on scan formats.
6402
6403 (processId): Replace xmalloc with obstack_alloc for name and remove
6404 call to ada_name_string_cleanup.
6405 Remove obsolete disabled code.
6406 (name_lookup): Ditto.
6407 New interface.
6408 Use obsavestring on temp_parse_space instead of savestring
6409 on name, and remove call to ada_name_string_cleanup.
6410 Free string returned from ada_simple_renamed_entity.
6411 Use new interface to ada_lookup_symbol_list.
6412 Decomment disabled code.
6413 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
6414 not types.
6415 When a type name lookup succeeds as a result of
6416 lookup_primitive_typename, check for regular type entry that has not
6417 yet been read in.
6418 Limit length of chain of renamed symbols we are willing to follow.
6419 Do not break names beginning with "standard__" into segments.
6420 (block_lookup): Use new interface to ada_lookup_symbol_list.
6421
6422 * ada-typeprint.c: Update copyright notice.
6423 (demangled_type_name): Rename to decoded_type_name.
6424 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
6425 (print_range_bound): Correct handling of negative
6426 bounds that make the index type looked unsigned under STABS.
6427 (print_dynamic_range_bound): Use new interface to get_int_var_value.
6428 (print_range_type_named): Use the builtin int type if no type
6429 corresponding to the given type name could be found.
6430 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
6431 Add some bullet-proofing.
6432 (print_variant_clauses): Allow for variant branches with ___XVU
6433 encodings that are not dynamic fields.
6434 Use new interface to ada_is_tagged_type.
6435 (print_record_type): Allow for fields with ___XVE encodings that
6436 are not dynamic fields.
6437 Use new interface to ada_is_tagged_type.
6438 (ada_print_type): ada_is_array_descriptor =>
6439 ada_is_array_descriptor_type.
6440
6441 * ada-valprint.c: Update copyright notice.
6442 Include gdb_string.h
6443 Include infcall.h
6444 (ui_memcpy): New function.
6445 (ada_print_floating): New function.
6446 (ada_print_str): Order arguments correctly.
6447 Correct handling of empty arrays and arrays of 0-length items.
6448 ada_is_array_descriptor => ada_is_array_descriptor_type
6449 Print values of type System.Address in hexadecimal format.
6450 Use ada_print_floating to print floating-point numbers in Ada format.
6451 Print class tag values with type names.
6452 No longer print the address of reference values. Avoids
6453 a potential confusion.
6454 (ada_value_print): Stop printing the object type for reference
6455 values, but preserve that behavior for access types. Avoids
6456 a potential confusion.
6457 Simplify one conditional expression, as the first part is now
6458 necessarily true.
6459 ada_is_array_descriptor => ada_is_array_descriptor_type
6460 Add check for arrays for null records, and print them by hand.
6461
6462 2004-06-01 Jim Blandy <jimb@redhat.com>
6463
6464 * ppc-tdep.h: Delete unused 'regoff' member.
6465 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
6466
6467 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
6468
6469 Fix PR symtab/1661.
6470 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
6471 (hpread_read_struct_type): Likewise.
6472
6473 2004-06-01 Andrew Cagney <cagney@gnu.org>
6474
6475 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
6476 instead of xasprintf.
6477 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
6478 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
6479 (mi_cmd_data_list_register_names)
6480 (mi_cmd_data_list_changed_registers)
6481 (mi_cmd_data_list_register_values)
6482 (get_register, mi_cmd_data_write_register_values)
6483 (mi_cmd_data_write_register_values)
6484 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
6485 (mi_cmd_target_download, mi_cmd_target_select)
6486 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
6487 (mi_execute_cli_command, mi_execute_async_cli_command)
6488 (mi_execute_async_cli_command): Ditto.
6489 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
6490 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
6491
6492 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
6493 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
6494 error_last_message instead of mi_error_last_message.
6495 * mi/mi-main.c (mi_error_last_message): Delete function.
6496
6497 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
6498 "invalid number of columns" error. Delete redundant "out of
6499 memory" check.
6500
6501 2004-05-31 Mark Kettenis <kettenis@gnu.org>
6502
6503 * i386bsd-nat.c: Don't include <sys/procfs.h>.
6504 (gregset_t, fpregset_t): Remove typedefs.
6505 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
6506 (REG_OFFSET): Rename argument.
6507 (i386bsd_r_reg_offset): Rename from reg_offset.
6508 (REG_ADDR): Remove macro.
6509 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
6510 functions.
6511 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
6512 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
6513 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
6514 instead of supply_gregset.
6515 (store_inferior_registers): Use `struct reg' and `struct fpreg'
6516 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
6517 instead of fill_gregset.
6518 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
6519
6520 * i386bsd-nat.c: Don't include "gregset.h".
6521 (supply_gregset, fill_gregset): Make static.
6522 (supply_fpregset, fill_fpregset): Remove.
6523 * Makefile.in (i386bsd-nat.o): Update dependencies.
6524
6525 2004-05-30 Mark Kettenis <kettenis@gnu.org>
6526
6527 * fbsd-proc.c: Include "regcache.h", "regset.h" and
6528 "gdb_assert.h". Con't include "gregset.h".
6529 (fbsd_make_corefile_notes): Use regset-based core file support
6530 instead off fill_gregset and fill_fpregset.
6531 * Makefile.in (fbsd-proc.o): Update dependencies.
6532
6533 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
6534 instructions.
6535 (m88k_frame_prev_register): Simplify code a bit.
6536
6537 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
6538 (amd64_collect_fpregset): New function.
6539 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
6540
6541 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
6542
6543 * i386-tdep.c (i386_supply_gregset): Adjust comment.
6544 (i386_collect_gregset): New function.
6545 (i386_supply_fpregset): Adjust comment.
6546 (i386_collect_fpregset): New function.
6547 (i386_regset_from_core_section): Use i386_collect_gregset and
6548 i386_collect_fpregset.
6549
6550 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
6551 handle VALUEP being null.
6552
6553 * regset.h (collect_regset_ftype): Unconstify fourth argument.
6554
6555 2004-05-29 Mark Kettenis <kettenis@gnu.org>
6556
6557 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
6558
6559 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
6560 assembler in OpenBSD 3.5-current.
6561 (amd64obsd_sigcontext_addr): Likewise.
6562
6563 2004-05-28 Jim Blandy <jimb@redhat.com>
6564
6565 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
6566 register set, so our regcache isn't declared "legacy" and our E500
6567 pseudoregister read and write functions aren't ignored.
6568 (rs6000_register_byte, rs6000_register_raw_size,
6569 rs6000_register_virtual_type, rs6000_register_convertible,
6570 rs6000_register_convert_to_virtual,
6571 rs6000_register_convert_to_raw): Deleted.
6572 (rs6000_register_type, rs6000_convert_register_p,
6573 rs6000_register_to_value, rs6000_value_to_register): New
6574 functions.
6575 (rs6000_gdbarch_init): Don't register
6576 gdbarch_deprecated_register_size,
6577 gdbarch_deprecated_register_bytes,
6578 gdbarch_deprecated_register_byte,
6579 gdbarch_deprecated_register_raw_size,
6580 gdbarch_deprecated_register_virtual_type,
6581 gdbarch_deprecated_register_convertible,
6582 gdbarch_deprecated_register_convert_to_virtual, or
6583 gdbarch_deprecated_register_convert_to_raw methods. Instead,
6584 register gdbarch_register_type, gdbarch_convert_register_p,
6585 gdbarch_register_to_value, and gdbarch_value_to_register methods.
6586
6587 2004-05-26 Jim Blandy <jimb@redhat.com>
6588
6589 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
6590 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
6591 functions, updated to match the register numberings used in GCC.
6592 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
6593 rs6000_dwarf2_reg_to_regnum as register number conversions
6594 functions for STABS and Dwarf2.
6595
6596 2004-05-26 Randolph Chung <tausq@debian.org>
6597
6598 * infttrace.h (target_waitkind): Forward declare type instead of pulling
6599 in header file.
6600
6601 2004-05-25 Joel Brobecker <brobecker@gnat.com>
6602
6603 * NEWS: Document new "start" command.
6604
6605 2004-05-25 Randolph Chung <tausq@debian.org>
6606
6607 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
6608 hppa-linux.
6609
6610 2004-05-25 Randolph Chung <tausq@debian.org>
6611
6612 * hppa-hpux-tdep.c (offsetof): Define.
6613 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
6614 (hppa32_hpux_frame_base_before_sigtramp)
6615 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6616 (hppa64_hpux_frame_saved_pc_in_sigtramp)
6617 (hppa64_hpux_frame_base_before_sigtramp)
6618 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
6619 functions.
6620 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
6621 (hppa_hpux_sigtramp_frame_unwind_cache)
6622 (hppa_hpux_sigtramp_frame_this_id)
6623 (hppa_hpux_sigtramp_frame_prev_register)
6624 (hppa_hpux_sigtramp_frame_unwind)
6625 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
6626 (hppa_hpux_init_abi): Register sigtramp unwinder.
6627 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
6628
6629 2004-05-25 Randolph Chung <tausq@debian.org>
6630
6631 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
6632 and multiple stack unwinds.
6633 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
6634
6635 2004-05-25 Andrew Cagney <cagney@gnu.org>
6636
6637 * symfile.h (symbol_file_add_from_memory): Delete declaration.
6638 * symfile-mem.h: Delete file.
6639 * symfile-mem.c: Do not include "symfile-mem.h".
6640 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
6641 "struct bfd_section". When an error do not bother returning NULL.
6642 (add_symbol_file_from_memory_command): Use "struct bfd" and
6643 "struct bfd_section".
6644 * Makefile.in (symfile_mem_h): Delete.
6645 (symfile-mem.o): Update dependencies.
6646
6647 2004-05-25 Nick Roberts <nickrob@gnu.org>
6648
6649 * gdb-mi.el: New file.
6650
6651 2004-05-25 Andrew Cagney <cagney@gnu.org>
6652
6653 * inftarg.c: Include "observer.h".
6654 (child_attach, child_create_inferior): Notify inferior_created.
6655 * corelow.c: Include "observer.h".
6656 (core_open): Notify inferior_created.
6657 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
6658
6659 2004-05-25 Andrew Cagney <cagney@gnu.org>
6660
6661 * target.h (struct target_ops): Add from_tty to
6662 to_create_inferior.
6663 (target_create_inferior, find_default_create_inferior): Update.
6664 * infcmd.c (run_command): Update.
6665 * wince.c (child_create_inferior): Update.
6666 * win32-nat.c (child_create_inferior): Update.
6667 * uw-thread.c (uw_thread_create_inferior): Update.
6668 * thread-db.c (thread_db_create_inferior): Update.
6669 * target.c (debug_to_create_inferior)
6670 (find_default_create_inferior): Update.
6671 (maybe_kill_then_create_inferior): Update.
6672 * sol-thread.c (sol_thread_create_inferior): Update.
6673 * remote.c (extended_remote_async_create_inferior)
6674 (extended_remote_create_inferior): Update.
6675 * remote-vx.c (vx_create_inferior): Update.
6676 * remote-st.c (st2000_create_inferior): Update.
6677 * remote-sim.c (gdbsim_create_inferior): Update.
6678 * remote-sds.c (sds_create_inferior): Update.
6679 * remote-rdp.c (remote_rdp_create_inferior): Update.
6680 * remote-rdi.c (arm_rdi_create_inferior): Update.
6681 * remote-m32r-sdi.c (m32r_create_inferior): Update.
6682 * remote-e7000.c (e7000_create_inferior): Update.
6683 * procfs.c (procfs_create_inferior): Update.
6684 * ocd.c (ocd_create_inferior): Update.
6685 * ocd.h (ocd_create_inferior): Update.
6686 * nto-procfs.c (procfs_create_inferior): Update.
6687 * monitor.c (monitor_create_inferior): Update.
6688 * lin-lwp.c (lin_lwp_create_inferior): Update.
6689 * inftarg.c (child_create_inferior): Update.
6690 * hpux-thread.c (hpux_thread_create_inferior): Update.
6691 * gnu-nat.c (gnu_create_inferior): Update.
6692
6693 2004-05-25 Andrew Cagney <cagney@gnu.com>
6694
6695 * MAINTAINERS: Update e-mail address.
6696
6697 2004-05-24 Randolph Chung <tausq@debian.org>
6698
6699 * thread.c (info_threads_command, thread_apply_all_command)
6700 (thread_apply_command, thread_command, do_captured_thread_select):
6701 Remove HPUXHPPA-specific code.
6702
6703 2004-05-24 Randolph Chung <tausq@debian.org>
6704
6705 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
6706 unused symbols.
6707 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
6708 references.
6709
6710 2004-05-24 Joel Brobecker <brobecker@gnat.com>
6711
6712 * infcmd.c (kill_if_already_running): New function, extracted
6713 from run_command().
6714 (run_command): Replace extracted code by call to
6715 kill_if_already_running().
6716 (start_command): New function.
6717 (_initialize_infcmd): Add "start" command.
6718
6719 2004-05-24 Mark Kettenis <kettenis@gnu.org>
6720
6721 Add OpenBSD/m88k support.
6722 * NEWS (New native configurations): Mention OpenBSD/m88k.
6723 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
6724 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
6725 * Makefile.in (m88k_tdep_h): New variable.
6726 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
6727 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
6728 * configure.host: Add m88*-*-openbsd*.
6729 * configure.tgt: Add m88*-*-openbsd*.
6730
6731 2004-05-24 Jim Blandy <jimb@redhat.com>
6732
6733 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
6734 to approve changes.
6735
6736 2004-05-24 Kevin Buettner <kevinb@redhat.com>
6737
6738 * symtab.c (fixup_section): Search section table when lookup by
6739 name fails.
6740
6741 2004-05-24 Randolph Chung <tausq@debian.org>
6742
6743 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
6744 be "small_struct".
6745
6746 2004-05-24 Mark Kettenis <kettenis@gnu.org>
6747
6748 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
6749 register number in regcache_raw_collect call.
6750 (m68kbsd_collect_fpregset): Likewise.
6751 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
6752
6753 * regset.h (struct regset): Add back `regset' member.
6754
6755 2004-05-23 Mark Kettenis <kettenis@gnu.org>
6756
6757 * configure.in: Check for td_pcb in `struct thread'.
6758 * configure, config.in: Regenerated.
6759
6760 * dpx2-nat.c: Remove file.
6761 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
6762 (dpx2-nat.o): Remove dependencies.
6763
6764 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
6765 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
6766 (amd64obsd_supply_pcb): New function.
6767 (_initialize_amd64obsd_nat): Enable libkvm interface.
6768 * Makefile.in (amd64obsd-nat.o): Update dependencies.
6769 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
6770 (LOADLIBES): New variable.
6771
6772 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
6773 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
6774 (sparc32nbsd_supply_pcb): New function.
6775 (_initialize_sparcnbsd_nat): Enable libkvm interface.
6776 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
6777 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
6778 (LOADLIBES): New variable.
6779
6780 2004-05-22 Mark Kettenis <kettenis@gnu.org>
6781
6782 * bsd-kvm.c, bsd-kvm.h: New files.
6783 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
6784 "bsd-kvm.h".
6785 (i386fbsd_supply_pcb): New function.
6786 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
6787 (i386fbsd-nat.o): Update dependencies.
6788 (bsd_kvm_h): New variable.
6789 (bsd-kvm.o): New dependency.
6790 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
6791 (LOADLIBES): New variable.
6792
6793 * regset.c: Tweak comment.
6794 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
6795 macro.
6796 * regset.h: Update copyright year.
6797 (struct regset): Remove `descr' member, add `gdbarch' member.
6798 (regset_alloc): Adjust prototype and comment.
6799 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
6800 (i386_supply_fpregset): Likewise.
6801 (i386_regset_from_core_section): Update call to regset_alloc.
6802 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
6803 REGSET->arch.
6804 (i386obsd_aout_regset_from_core_section): Update call to
6805 regset_alloc.
6806 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
6807 REGSET->arch.
6808 (i386nbsd_aout_regset_from_core_section): Update call to
6809 regset_alloc.
6810 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
6811 REGSET->arch.
6812 (amd64_regset_from_core_section): Update call to regset_alloc.
6813 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
6814 REGSET->arch.
6815 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
6816 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
6817 &sparc32nbsd_gregset in sparc32_supply_gregset call.
6818 (sparc32nbsd_init_abi): Update call to regset_alloc.
6819 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
6820 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
6821 (sparc64obsd_init_abi): Update call to regset_alloc.
6822 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
6823 &sparc64nbsd_gregset in sparc64_supply_gregset call.
6824 (sparc64nbsd_init_abi): Update call to regset_alloc.
6825 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
6826 &sparc64fbsd_gregset in sparc64_supply_gregset call.
6827 (sparc64fbsd_init_abi): Update call to regset_alloc.
6828
6829 2004-05-22 Jim Blandy <jimb@redhat.com>
6830
6831 * ppc-tdep.h (spe_register_p): New declaration.
6832 (struct gdbarch_tdep): New members: ppc_acc_regnum and
6833 ppc_spefscr_regnum.
6834 * rs6000-tdep.c (spe_register_p): New function.
6835 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
6836 spefscr.
6837 (rs6000_gdbarch_init): Initialize the new members of the tdep
6838 structure.
6839
6840 2004-05-21 Jim Blandy <jimb@redhat.com>
6841
6842 * ppc-linux-nat.c (fetch_register): Move code back to be next
6843 to the comment that describes it. (Moved code, instead of
6844 comment, for symmetry with store_register.)
6845
6846 Allocate regset structures in the gdbarch's obstack, not using
6847 xmalloc.
6848 * regset.c (regset_alloc): Renamed from regset_xmalloc.
6849 Add 'arch' argument. Allocate the regset on arch's obstack, not
6850 using xmalloc.
6851 * regset.h (regset_alloc): Update declaration.
6852 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
6853 gdbarch argument.
6854 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
6855 * i386-tdep.c (i386_regset_from_core_section): Same.
6856 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
6857 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
6858 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
6859 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
6860 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
6861 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
6862
6863 2004-05-21 Joel Brobecker <brobecker@gnat.com>
6864
6865 * config/djgpp/fnchange.lst: Undo previous change, was useless.
6866
6867 2004-05-21 Jim Blandy <jimb@redhat.com>
6868
6869 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
6870 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
6871
6872 2004-05-20 Jim Blandy <jimb@redhat.com>
6873
6874 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
6875
6876 2004-05-20 Mark Kettenis <kettenis@gnu.org>
6877
6878 * regset.h: Make prototype const-correct.
6879 * regset.c (regset_xmalloc): Make const-correct.
6880
6881 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
6882
6883 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
6884 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
6885 (symbol_search_name): Declare.
6886
6887 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
6888 (iter_name_next_hashed): Ditto.
6889 (iter_name_next_linear): Ditto.
6890 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
6891
6892 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
6893 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
6894 (symbol_search_name): New function.
6895
6896 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
6897
6898 * minsyms.c (build_minimal_symbol_hash_tables): Change
6899 test for adding to demangled hash table to check for difference
6900 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
6901
6902 2004-05-19 Jim Blandy <jimb@redhat.com>
6903
6904 Use a constructor function to create regset structures.
6905 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
6906 (struct regset): Use supply_regset_ftype. Add new
6907 'collect_regset' member.
6908 (regset_xmalloc): New declaration.
6909 * regset.c: New file.
6910 * am64-tdep.c (amd64_regset_from_core_section): Use
6911 regset_xmalloc to construct regset structures.
6912 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
6913 * i386-tdep.c (i386_regset_from_core_section): Same.
6914 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
6915 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
6916 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
6917 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
6918 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
6919 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
6920 * Makefile.in (COMMON_OBS): Add regset.o.
6921 (regset.o): New rule.
6922
6923 2004-05-19 Joel Brobecker <brobecker@gnat.com>
6924
6925 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
6926 and pthread_cond_wait.c.
6927
6928 2004-05-18 Jim Blandy <jimb@redhat.com>
6929
6930 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
6931 before the mach-specific switch, and then let the individual cases
6932 override the defaults, rather than leaving them uninitialized
6933 until the switch and then setting them in each case.
6934
6935 2004-05-18 Randolph Chung <tausq@debian.org>
6936
6937 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
6938 millicode functions.
6939
6940 2004-05-18 Randolph Chung <tausq@debian.org>
6941
6942 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
6943 references to dld_flags_buffer consistent.
6944
6945 2004-05-18 Randolph Chung <tausq@debian.org>
6946
6947 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
6948 it for unwinding the stack.
6949
6950 2004-05-18 Randolph Chung <tausq@debian.org>
6951
6952 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
6953 Undefine these so we can overide them using gdbarch.
6954
6955 2004-05-18 Randolph Chung <tausq@debian.org>
6956
6957 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
6958 handling for 64-bit HPUX (elf).
6959
6960 2004-05-18 Daniel Jacobowitz <dan@debian.org>
6961
6962 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
6963 constants.
6964 * amd64-tdep.c (amd64_skip_prologue): Likewise.
6965 * ia64-tdep.c (examine_prologue): Likewise.
6966 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
6967 * v850-tdep.c (v850_fix_call_dummy): Likewise.
6968
6969 2004-05-18 Mark Kettenis <kettenis@gnu.org>
6970
6971 * vax-tdep.c (vax_return_value): Implement
6972 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6973
6974 2004-05-17 Mark Kettenis <kettenis@gnu.org>
6975
6976 * vax-tdep.c (vax_return_value): Fix typo.
6977
6978 2004-05-17 Andrew Cagney <cagney@redhat.com>
6979
6980 * MAINTAINERS: Mark Salter was also responsible for
6981 testsuite/config/
6982
6983 * NEWS: Mention signal fixes.
6984
6985 2004-05-17 Randolph Chung <tausq@debian.org>
6986
6987 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
6988 check to see if we are unwinding an export stub. Export stubs clobber
6989 the %rp in the call path and stores the original rp in a stack slot.
6990
6991 2004-05-17 Jim Blandy <jimb@redhat.com>
6992
6993 * MAINTAINERS: Update address for J.T. Conklin.
6994
6995 2004-05-17 Randolph Chung <tausq@debian.org>
6996
6997 * hppa-tdep.c: Remove superfluous #include's.
6998 * Makefile.in (hppa-tdep.o): Update dependencies.
6999
7000 2004-05-17 Randolph Chung <tausq@debian.org>
7001
7002 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
7003 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
7004 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
7005 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
7006 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
7007 Remove static function declarations.
7008
7009 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7010
7011 * alphabsd-nat.c: Update copyright year.
7012 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
7013
7014 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
7015 and M68K_A2_REGNUM.
7016
7017 * m68k-tdep.c (m68k_svr4_return_value): Implement
7018 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7019
7020 2004-05-16 Mark Kettenis <kettenis@gnu.org>
7021
7022 * sol-thread.c Update copyright year. Fix various coding
7023 standards violations. Tweak a few comments.
7024 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
7025 Delete prototypes.
7026
7027 2004-05-15 Randolph Chung <tausq@debian.org>
7028
7029 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
7030 as pointer instead of array reference since HPUX compiler does
7031 not accept unsized array arguments.
7032 * somsolib.c (dld_flags_buffer): Use constant array size.
7033
7034 2004-05-15 Mark Kettenis <kettenis@gnu.org>
7035
7036 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
7037 offset with decimal offset.
7038 (amd64obsd_sigcontext_addr): Return correct address for entire
7039 signal trampoline.
7040
7041 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
7042 instead of get_frame_base.
7043
7044 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
7045 (fill_gregset): Use regcache_raw_collect.
7046
7047 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
7048 ppcobsd-tdep.c.
7049
7050 * config/sparc/tm-nbsd64.h: Remove file.
7051 * config/tm-sunos.h: Remove file.
7052
7053 2004-05-15 Joel Brobecker <brobecker@gnat.com>
7054
7055 * rs6000-tdep.c (store_param_on_stack_p): New function,
7056 an improved version of some code extracted from skip_prologue().
7057 (skip_prologue): Use store_param_on_stack_p() to detect
7058 instructions saving a parameter on the stack. Detect when r0
7059 is used to save a parameter.
7060 Do not mark "li rx, SIMM" instructions as part of the prologue,
7061 unless the following instruction is also part of the prologue.
7062
7063 2004-05-14 Andrew Cagney <cagney@redhat.com>
7064
7065 * infrun.c (handle_inferior_event): Simplify
7066 STEP_OVER_UNDEBUGGABLE.
7067
7068 * infrun.c (handle_step_into_function): Delete function.
7069 (handle_inferior_event): Inline calls to
7070 handle_step_into_function.
7071
7072 2004-05-14 Jerome Guitton <guitton@gnat.com>
7073
7074 * rs6000-nat.c: Fix a comment.
7075
7076 2004-05-12 David Anderson <davea@sgi.com>
7077
7078 Committed by Jim Blandy <jimb@redhat.com>:
7079 * regcache.c (struct regcache_descr): fix comment spelling.
7080
7081 2004-05-13 J. Brobecker <brobecker@gnat.com>
7082
7083 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
7084 Fixes a link link failure.
7085
7086 2004-05-13 J. Brobecker <brobecker@gnat.com>
7087
7088 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
7089 error that was causing the build to fail.
7090
7091 2004-05-13 J. Brobecker <brobecker@gnat.com>
7092
7093 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
7094 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
7095
7096 2004-05-13 Andrew Cagney <cagney@redhat.com>
7097
7098 * infrun.c (handle_inferior_event): Check for
7099 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
7100 calls. Update comments.
7101
7102 2004-05-13 Jim Blandy <jimb@redhat.com>
7103
7104 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
7105 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7106 (store_regs_user_thread, store_regs_kernel_thread): Use
7107 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
7108 * ppc-linux-nat.c (fill_gregset): Same.
7109 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
7110 (ppc_linux_sigtramp_cache): Same.
7111 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
7112 (ppcnbsd_sigtramp_cache_init): Same.
7113 * rs6000-nat.c (fetch_core_registers): Same.
7114 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
7115 (rs6000_frame_cache): Same.
7116
7117 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
7118 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
7119 of assuming that the gprs are numbered starting with zero.
7120 * ppc-linux-nat.c (fill_gregset): Same.
7121 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
7122 * ppcnbsd-nat.c (getregs_supplies): Same.
7123 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
7124 * rs6000-nat.c (fetch_core_registers): Same.
7125 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
7126
7127 2004-05-07 Michael Snyder <msnyder@redhat.com>
7128
7129 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
7130 LOC_COMPUTED_ARG, and LOC_INDIRECT.
7131
7132 2004-05-13 Andrew Cagney <cagney@redhat.com>
7133
7134 * infrun.c (handle_inferior_event): Use frame_unwind_id.
7135
7136 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7137
7138 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
7139 base_address for shared libraries.
7140
7141 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
7142
7143 * MAINTAINERS (write after approval): Add myself.
7144
7145 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7146
7147 * breakpoint.c (bpstat_stop_status): Add new argument
7148 STOPPED_BY_WATCHPOINT. Use it instead of testing
7149 target_stopped_data_address agaist 0 to check whether
7150 or not we stopped due to a hardware watchpoint.
7151 * breakpoint.h (bpstat_stop_status): Adapt prototype.
7152 * infrun.c (handle_inferior_event): Call bpstat_stop_status
7153 with new argument.
7154
7155 2004-05-12 Jim Blandy <jimb@redhat.com>
7156
7157 * configure.in: When checking whether we should use the -bbigtoc
7158 option, don't forget to restore the original value of LDFLAGS.
7159 * configure: Regenerated.
7160
7161 2004-05-12 Andrew Cagney <cagney@redhat.com>
7162
7163 * thread.c (load_infrun_state): Delete step_sp.
7164 * infrun.c (context_switch): Ditto.
7165 * inferior.h (step_sp): Ditto.
7166 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
7167 * gdbthread.h (struct thread_info, save_infrun_state)
7168 (restore_infrun_state): Ditto.
7169
7170 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
7171
7172 * MAINTAINERS (write after approval): Add myself.
7173
7174 2004-05-12 Andrew Cagney <cagney@redhat.com>
7175
7176 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
7177 eliminate reference to step_sp.
7178 (struct execution_control_state, init_execution_control_state)
7179 (handle_inferior_event, keep_going): Delete update_step_sp and
7180 step_sp.
7181 * infcmd.c (step_sp): Note that variable is unused.
7182
7183 2004-05-11 Andrew Cagney <cagney@redhat.com>
7184
7185 * infrun.c (step_over_function): Delete function.
7186 (handle_step_into_function): Use insert_step_resume_breakpoint.
7187 (insert_step_resume_breakpoint): Fix assertion.
7188
7189 2004-05-11 Nick Roberts <nickrob@gnu.org>
7190
7191 * utils.c (defaulted_query): Just use the normal query input type
7192 when printing the annotations.
7193
7194 2004-05-11 Andrew Cagney <cagney@redhat.com>
7195
7196 * infrun.c (handle_inferior_event): Simplify code handling
7197 step-into or return-from a signal trampoline.
7198
7199 2004-05-11 Andrew Cagney <cagney@redhat.com>
7200
7201 * ppcnbsd-tdep.c: Include "gdb_assert.h".
7202 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
7203
7204 2004-05-10 Jim Blandy <jimb@redhat.com>
7205
7206 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
7207 with a call to internal_error.
7208
7209 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
7210 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
7211 processor variant lacks those registers.
7212 (ppc_floating_point_unit_p): Change description to make it clear
7213 that this returns info about the ISA, not the ABI.
7214 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
7215 return true or false by checking tdep->ppc_fp0_regnum and
7216 tdep->ppc_fpscr_regnum. The original code replicated the BFD
7217 arch/mach switching done in rs6000_gdbarch_init; it's better to
7218 keep that logic there, and just check the results here.
7219 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
7220 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
7221 floating-point registers.
7222 (ppc_supply_fpregset, ppc_collect_fpregset)
7223 (rs6000_push_dummy_call, rs6000_extract_return_value)
7224 (rs6000_store_return_value): Assert that we have floating-point
7225 registers.
7226 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
7227 (rs6000_frame_cache): Don't note the locations at which
7228 floating-point registers were saved if we have no fprs.
7229 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
7230 registers.
7231 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7232 (store_regs_user_thread, store_regs_kernel_thread): Only call
7233 supply_fprs / fill_fprs if we actually have floating-point
7234 registers.
7235 (special_register_p): Check ppc_fpscr_regnum before matching
7236 against it.
7237 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
7238 supply / collect fpscr if we don't have it.
7239 * ppc-bdm.c: #include "gdb_assert.h".
7240 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
7241 have floating-point registers, since I can't test this code on
7242 FP-free systems to adapt it.
7243 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
7244 fpscr and floating point register numbers if they don't exist.
7245 (fetch_register): Assert that we have floating-point registers
7246 before we reach the code that handles them.
7247 (store_register): Same. And use tdep instead of calling
7248 gdbarch_tdep again.
7249 (fill_fpregset): Don't try to collect FP registers and fpscr if we
7250 don't have them.
7251 (ppc_linux_sigtramp_cache): Don't record the saved locations of
7252 fprs and fpscr if we don't have them.
7253 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
7254 don't have them.
7255 * ppcnbsd-nat.c: #include "gdb_assert.h".
7256 (getfpregs_supplies): Assert that we have floating-point registers.
7257 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
7258 * ppcobsd-tdep.c: #include "gdb_assert.h".
7259 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
7260 have floating-point registers.
7261 * rs6000-nat.c (regmap): Don't match against the fpscr and
7262 floating point register numbers if they don't exist.
7263 (fetch_inferior_registers, store_inferior_registers,
7264 fetch_core_registers): Only fetch / store / supply the
7265 floating-point registers and the fpscr if we have them.
7266 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
7267 (ppcobsd-tdep.o): Update dependencies.
7268
7269 2004-05-10 Andrew Cagney <cagney@redhat.com>
7270
7271 * infrun.c (through_sigtramp_breakpoint): Delete variable.
7272 (context_switch): Do not switch through_sigtramp_breakpoint.
7273 * gdbthread.h (save_infrun_state, load_infrun_state)
7274 (struct thread_info): Delete through_sigtramp_breakpoint parameter
7275 and structure member.
7276 * thread.c (load_infrun_state, save_infrun_state): Update.
7277
7278 2004-05-10 Mark Kettenis <kettenis@gnu.org>
7279
7280 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
7281
7282 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7283
7284 * acinclude.m4: Quote macro names being defined by AC_DEFUN
7285 throughout.
7286 * aclocal.m4: Regenerate.
7287
7288 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
7289
7290 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
7291
7292 2004-05-10 Andrew Cagney <cagney@redhat.com>
7293
7294 * infrun.c (check_sigtramp2): Delete function.
7295 (handle_inferior_event): When single stepping, and taking a
7296 signal, set a breakpoint at the signal return address. Delete
7297 redundant calls to check_sigtramp2.
7298 (insert_step_resume_breakpoint): New function.
7299 (through_sigtramp_breakpoint, handle_inferior_event)
7300 (follow_exec, wait_for_inferior, fetch_inferior_event)
7301 (currently_stepping, keep_going): Delete most uses of
7302 through_sigtramp_breakpoint, not that it should be deleted.
7303 (delete_breakpoint_current_contents): Delete function.
7304
7305 2004-05-10 Randolph Chung <tausq@debian.org>
7306
7307 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
7308 target.
7309 * config/pa/tm-linux.h: New file.
7310
7311 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
7312
7313 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
7314 of prefixes. Don't print the prefix twice in the CLI.
7315
7316 2004-05-10 Jim Blandy <jimb@redhat.com>
7317
7318 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
7319 collect all the gprs.
7320
7321 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
7322 loop collecting gprs.
7323
7324 2004-05-09 Andrew Cagney <cagney@redhat.com>
7325
7326 * remote-vx.c (net_step): Delete step-range code.
7327 * remote.c (remote_resume, init_all_packet_configs)
7328 (set_remote_protocol_E_packet_cmd)
7329 (show_remote_protocol_E_packet_cmd)
7330 (remote_protocol_E, show_remote_cmd, _initialize_remote)
7331 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
7332 (show_remote_protocol_e_packet_cmd): Ditto.
7333
7334 2004-05-09 Mark Kettenis <kettenis@gnu.org>
7335
7336 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
7337
7338 * hppa-tdep.h: Update copyright year.
7339 (struct trad_frame_saved_reg): Add opaque declaration.
7340
7341 * amd64-tdep.c (amd64_return_value): Implement
7342 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7343
7344 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
7345 (m68k_value_to_register): New functions.
7346 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
7347 value_to_register.
7348
7349 * defs.h (enum return_value_convention): Add
7350 RETURN_VALUE_ABI_RETURNS_ADDRESS and
7351 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
7352 * infcmd.c (legacy_return_value): New function.
7353 (print_return_value): Rwerite to implement
7354 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7355 * values.c (using_struct_return): Check for inequality to
7356 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
7357 RETURN_VALUE_STRUCT_CONVENTION.
7358 * i386-tdep.c (i386_return_value): Implement
7359 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7360
7361 * vax-tdep.c: Tweak comments. Reorder include files. Don't
7362 include "symtab.h", "opcode/vax.h" and "inferior.h".
7363 (vax_skip_prologue): Replace calls to read_memory_integer by calls
7364 to read_memory_unsigned_integer.
7365 (vax_gdbarch_init): Reorder.
7366 (_initialize_vax_tdep): Spell out prototype.
7367 * Makefile.in (vax-tdep.o): Update dependencies.
7368
7369 2004-05-08 Andrew Cagney <cagney@redhat.com>
7370
7371 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
7372 * target.c (target_detach, target_disconnect): Ditto.
7373
7374 * infcall.c (call_function_by_hand): When no
7375 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
7376 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
7377 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
7378 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7379 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7380
7381 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
7382 * gdbarch.h, gdbarch.c: Re-generate.
7383 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7384 deprecated_fix_call_dummy.
7385 * v850-tdep.c (v850_gdbarch_init): Ditto.
7386 * infcall.c (call_function_by_hand): Do not call
7387 DEPRECATED_FIX_CALL_DUMMY.
7388
7389 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
7390 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
7391 * gdbarch.h, gdbarch.c: Re-generate.
7392 * arm-linux-tdep.c (arm_linux_call_dummy_words)
7393 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
7394 deprecated_sizeof_call_dummy_words.
7395 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
7396 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7397 * v850-tdep.c (v850_gdbarch_init): Ditto.
7398 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7399 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
7400 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7401 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7402 * arch-utils.h (legacy_call_dummy_words)
7403 (legacy_sizeof_call_dummy_words): Delete declarations.
7404 * arch-utils.c (legacy_call_dummy_words)
7405 (legacy_sizeof_call_dummy_words): Delete variables.
7406
7407 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
7408 * gdbarch.h, gdbarch.c: Re-generate.
7409 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
7410 * infcall.c (call_function_by_hand): Eliminate call to
7411 DEPRECATED_PUSH_DUMMY_FRAME.
7412 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7413 push_dummy_frame.
7414 (ns32k_push_dummy_frame): Delete function.
7415
7416 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7417 deprecated_call_dummy_breakpoint_offset or
7418 deprecated_call_dummy_start_offset.
7419 * dummy-frame.c, arm-tdep.c: Update comments.
7420 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
7421 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
7422 * gdbarch.h, gdbarch.c: Re-generate.
7423
7424 * infcall.c (legacy_push_dummy_code): Delete function.
7425 (push_dummy_code): Delete call.
7426
7427 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
7428 * gdbarch.h, gdbarch.c: Re-generate.
7429 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
7430 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
7431 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
7432 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
7433
7434 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
7435 (struct frame_info): Delete opaque declaration.
7436 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
7437 * frame.c (get_frame_type): Delete call.
7438
7439 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
7440 pc_in_call_dummy.
7441 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
7442 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
7443
7444 2004-05-08 Mark Kettenis <kettenis@gnu.org>
7445
7446 * alphanbsd-tdep.c: Include "gdb_string.h".
7447 * armnbsd-tdep.c: Update copyright year.
7448 Include "gdb_string.h".
7449 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
7450 dependencies.
7451
7452 * delta68-nat.c: Remove file.
7453 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
7454 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
7455 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
7456 (delta68-nat.o): Remove dependency.
7457
7458 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
7459 function.
7460 (m68k_gdbarch_init): Don't set
7461 deprecated_frameless_function_invocation.
7462
7463 2004-05-07 Randolph Chung <tausq@debian.org>
7464
7465 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
7466 read_memory_nobpt for code reading when doing frame unwinding.
7467 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
7468
7469 2004-05-07 Randolph Chung <tausq@debian.org>
7470
7471 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
7472 instead of sp, handle sigaltstack case.
7473 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
7474 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
7475 signal handler and not that of the caller.
7476 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
7477 hppa_linux_sigtramp_find_sigcontext.
7478
7479 2004-05-07 Randolph Chung <tausq@debian.org>
7480
7481 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
7482 hppa-linux-nat.c.
7483 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
7484 * hppa-linux-nat.c (fetch_register, store_register): Define.
7485 (fetch_inferior_registers, store_inferior_registers): Define.
7486 (supply_gregset): Add comment and clean up some unneeded code.
7487 (fill_gregset): Add comment and fix so that it saves registers in
7488 the right place in the gregset.
7489 (fill_fpregset): Fix buffer overrun problem.
7490 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
7491
7492 2004-05-07 Randolph Chung <tausq@debian.org>
7493
7494 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
7495 do common handling of the pcoqt register.
7496 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
7497 to use helper function.
7498 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
7499 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
7500 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
7501 generic fallback unwinder when all else fails.
7502 (hppa_gdbarch_init): Add fallback sniffer.
7503 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
7504 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
7505 to use helper function.
7506
7507 2004-05-08 Joel Brobecker <brobecker@gnat.com>
7508
7509 * config/djgpp/fnchange.lst: Add translation rules for
7510 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
7511
7512 2004-05-08 Mark Kettenis <kettenis@gnu.org>
7513
7514 * frame.c (get_prev_frame_1): Work around GCC bug.
7515 * frame.h: Add comment about GCC bug.
7516
7517 2004-05-07 Andrew Cagney <cagney@redhat.com>
7518
7519 * observer.c: Include "commands.h" and "gdbcmd.h".
7520 (observer_debug, _initialize_observer): Add the
7521 command "set/show debug observer".
7522 * observer.sh: When observer debugging, log notify calls.
7523 * Makefile.in (observer.o): Update dependencies.
7524
7525 2004-05-07 Jason Molenda (jmolenda@apple.com)
7526
7527 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
7528
7529 2004-05-07 Jim Blandy <jimb@redhat.com>
7530
7531 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
7532 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
7533 to recognize gpr regnums, instead of assuming that
7534 tdep->ppc_fp0_regnum marks the end of the general-purpose
7535 registers.
7536
7537 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
7538 the given architecture has floating-point registers.
7539
7540 2004-05-07 Andrew Cagney <cagney@redhat.com>
7541
7542 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
7543 macro defined to 1.
7544 * gdbarch.h, gdbarch.c: Re-generate.
7545 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
7546 deprecated_use_generic_dummy_frames.
7547
7548 2004-05-07 Brian Ford <ford@vss.fsi.com>
7549
7550 * NEWS: Mention Cygwin DWARF 2 support.
7551
7552 2004-05-07 Andrew Cagney <cagney@redhat.com>
7553
7554 * objfiles.h (struct entry_info): Delete unused fields
7555 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
7556 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
7557 * mipsread.c (mipscoff_symfile_read): Update.
7558 * mdebugread.c (parse_partial_symbols): Update.
7559 * dwarfread.c (read_file_scope): Update.
7560 * dwarf2read.c (read_file_scope): Update.
7561 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
7562 * coffread.c (complete_symtab): Update.
7563
7564 2004-05-07 Mark Kettenis <kettenis@gnu.org>
7565
7566 * infcall.c (_initialize_infcall): Fix typo.
7567
7568 2004-05-07 Andrew Cagney <cagney@redhat.com>
7569
7570 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
7571 * command.h (add_setshow_zinteger_cmd): Declare.
7572
7573 2004-05-06 Randolph Chung <tausq@debian.org>
7574
7575 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
7576 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
7577 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
7578 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
7579 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
7580 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
7581 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
7582 definitions ...
7583 * hppa-tdep.h: ... to here, with HPPA_ prefix.
7584 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
7585 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
7586 (hppa64_hpux_frame_find_saved_regs_in_sig)
7587 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
7588 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
7589 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
7590 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
7591 (hppa_linux_sigtramp_frame_prev_register): Likewise.
7592 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
7593 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
7594 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
7595 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
7596 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
7597 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
7598 (hppa32_register_type, hppa_cannot_store_register)
7599 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
7600 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
7601 * hpread.c (hpread_process_one_debug_symbol): Likewise.
7602 * pa64solib.c (pa64_solib_have_load_event)
7603 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
7604 (pa64_solib_unloaded_library_pathname): Likewise.
7605 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
7606 (som_solib_library_pathname): Likewise.
7607
7608 2004-05-05 Jim Ingham <jingham@apple.com>
7609
7610 * breakpoint.c (create_breakpoints): Copy the ignore count and
7611 thread id over from the pended breakpoint to the actual
7612 breakpoint.
7613
7614 2004-05-05 Andrew Cagney <cagney@redhat.com>
7615
7616 * gdbarch.sh (PARM_BOUNDARY): Delete.
7617 gdbarch.h, gdbarch.c: Re-generate.
7618 * valops.c (PARM_BOUNDARY): Delete macro.
7619 (value_push): Delete PARM_BOUNDARY code.
7620 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
7621
7622 2004-05-04 Jim Blandy <jimb@redhat.com>
7623
7624 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
7625 Don't assume that the gprs, fprs, and UISA sprs are
7626 contiguous, start at register number zero, and end with fpscr.
7627 Instead, use the numbers from the tdep structure.
7628
7629 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
7630 should no longer be used in code specific to the RS6000 and its
7631 derivatives.
7632 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
7633 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
7634 tdep->ppc_fp0_regnum.
7635 (ppc_supply_fpregset, ppc_collect_fpregset)
7636 (rs6000_push_dummy_call, rs6000_extract_return_value)
7637 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
7638 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
7639 FP0_REGNUM.
7640 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
7641 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
7642 Same.
7643 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
7644 bdm_ppc_store_registers): Same.
7645 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
7646 (store_register, fill_fpregset): Same.
7647 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
7648 (ppc_linux_supply_fpregset): Same.
7649 * ppcnbsd-nat.c (getfpregs_supplies): Same.
7650 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
7651 Same.
7652 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
7653 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
7654 ppc64_sysv_abi_return_value): Same.
7655 * rs6000-nat.c (regmap, fetch_inferior_registers)
7656 (store_inferior_registers, fetch_core_registers): Same.
7657
7658 2004-05-01 Mark Kettenis <kettenis@gnu.org>
7659
7660 * m68knbsd-nat.c: Remove file.
7661 * m68knbsd-tdep.c: Remove file.
7662 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
7663 dependencies.
7664 * configure.host: Add m68k-*-netbsdelf*.
7665 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
7666 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
7667 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
7668 (XM_FILE): Remove.
7669 * config/m68k/nbsdelf.mh: New file.
7670 * config/m68k/nbsd.mt: New file.
7671 * config/m68k/nbsdaout.mt: Remove file.
7672 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
7673 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
7674 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
7675 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
7676 (use_struct_convention): Remove prototype.
7677 (USE_STRUCT_CONVENTION): Remove define.
7678 * config/m68k/xm-nbsd.h: Remove file.
7679
7680 2004-05-04 Michael Snyder <msnyder@redhat.com>
7681
7682 * m68k-tdep.c (m68k_gdbarch_init): Default to using
7683 reg_struct_return method (as gcc usually does for cross targets).
7684
7685 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7686
7687 Committed by Andrew Cagney.
7688 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
7689 alignment padding when accessing ucontext struct members.
7690
7691 2004-05-04 Jim Blandy <jimb@redhat.com>
7692
7693 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
7694 'ppc_gplast_regnum' member.
7695 (ppc_num_gprs): New enum constant.
7696 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
7697 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
7698 * rs6000-nat.c (regmap, fetch_inferior_registers,
7699 store_inferior_registers): Same.
7700 * rs6000-tdep.c (e500_pseudo_register_read)
7701 (e500_pseudo_register_write): Same.
7702 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
7703
7704 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
7705 * ppc-tdep.h (ppc_num_fprs): New enum constant.
7706 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
7707 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
7708 FPLAST_REGNUM.
7709 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7710 Same.
7711 * ppc-linux-nat.c (ppc_register_u_addr): Same.
7712 * rs6000-nat.c (regmap, fetch_inferior_registers)
7713 (store_inferior_registers): Same.
7714
7715 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
7716 with FPLAST_REGNUM.
7717
7718 2004-05-03 Joel Brobecker <brobecker@gnat.com>
7719
7720 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
7721 failure detected by recent versions of GCC.
7722 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
7723 to be consistent with the usage in dwarf2_create_include_psymtab.
7724
7725 2004-05-03 Michael Snyder <msnyder@redhat.com>
7726
7727 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
7728 (heuristic_proc_start): Whitespace cleanup.
7729
7730 2004-05-04 Mark Kettenis <kettenis@gnu.org>
7731
7732 * sun3-nat.c: Remove file.
7733 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
7734 dependencies.
7735 (ALLDEPFILES): Remove sun3-nat.c.
7736 (sun3-nat.o): Remove dependencies.
7737
7738 * i386-interix-nat.c, i386-interix-tdep.c,
7739 config/i386/nm-interix.h, config/i386/interix.mh,
7740 config/i386/interix.mt: Remove files.
7741 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
7742 dependencies.
7743
7744 2004-05-03 Mark Kettenis <kettenis@gnu.org>
7745
7746 * m68k-tdep.h (struct gdbarch_tdep): Add member
7747 struct_value_regnum.
7748 (m68k_svr4_init_abi): New prototype.
7749 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
7750 different calling conventions.
7751 (m68k_extract_return_value): Remove code dealing with single-field
7752 structs.
7753 (m68k_store_return_value): Remove code dealing with single-field
7754 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
7755 (m68k_extract_struct_value_address): Remove function.
7756 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
7757 (m68k_reg_struct_return_p, m68k_return_value)
7758 (m68k_svr4_return_value): New functions.
7759 (m68k_use_struct_convention): Remove function.
7760 (m68k_push_dummy_call): Use new struct_value_regnum member of
7761 `struct gdbarch_tdep' instead of hardcoded register number to
7762 store STRUCT_ADDR.
7763 (m68k_svr4_init_abi): New function.
7764 (m68k_gdbarch_init): Don't set extract_return_value,
7765 store_return_values, deprecated_extract_struct_value_address and
7766 use_struct_convention. Set return_value instead. Initialize new
7767 struct_value_regnum member of `struct gdbarch_tdep'.
7768 * m68klinux-tdep.c: Update copyright year.
7769 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
7770 (m68k_linux_extract_struct_value_address): Remove function.
7771 (m68k_linux_init_abi): Don't set extract_return_value,
7772 store_return_values, deprecated_extract_struct_value_address and
7773 use_struct_convention. Call m68k_svr4_init_abi but override the
7774 new struct_value_regnum member of `struct gdbarch_tdep'.
7775 * Makefile.in (m68k-tdep.o): Update dependencies.
7776
7777 2004-05-03 J. Brobecker <brobecker@gnat.com>
7778
7779 * dwarf2read.c (line_header): Add new included_p field in
7780 field file_names.
7781 (partial_die_info): New field has_stmt_list. New field line_offset.
7782 (dwarf2_create_include_psymtab): New function.
7783 (dwarf2_build_include_psymtabs): New function.
7784 (add_file_name): Add forward declaration. Initialize new field.
7785 (dwarf_decode_lines): Add new parameter. Enhance this procedure
7786 to be able to determine the list of files included by the
7787 given unit, and build their associated psymtabs.
7788 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
7789 files as well.
7790 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
7791 (read_file_scope): Update call to dwarf_decode_lines.
7792 (read_partial_die): Handle DW_AT_stmt_list attributes.
7793
7794 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
7795
7796 Unfix PR gdb/1626.
7797 * configure.in: Revert special case for osf5.*.
7798 * configure: Regenerate.
7799
7800 2004-05-02 Jim Blandy <jimb@redhat.com>
7801
7802 Move the symbol-file-from-memory functions into their own file.
7803 * symfile-mem.c, symfile-mem.h: New files.
7804 * symfile.c (symbol_file_add_from_bfd): New function.
7805 (symbol_file_add): Call symbol_file_add_from_bfd.
7806 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
7807 Moved to symfile-mem.c.
7808 (_initialize_symfile): Move definition of
7809 add-symbol-file-from-memory command to symfile-mem.c.
7810 * symfile.h (symbol_file_add_from_bfd): New declaration.
7811 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
7812 * config/powerpc/linux.mt (TDEPFILES): Same.
7813 * Makefile.in (SFILES): Add symfile-mem.c.
7814 (symfile_mem_h): New variable.
7815 (HFILES_NO_SRCDIR): Add symfile-mem.h.
7816 (symfile-mem.o): New rule.
7817
7818 2004-05-01 Andrew Cagney <cagney@redhat.com>
7819
7820 * breakpoint.c (insert_bp_location): Use get_frame_id, and
7821 frame_find_by_id instead of frame_relative_level.
7822 (do_enable_breakpoint): Ditto.
7823 * thread.c: Update copyright.
7824 (info_threads_command): Ditto, simplify.
7825
7826 * frame.c (deprecated_generic_get_saved_register): Delete
7827 function, moved to "xstormy16-tdep.c".
7828 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
7829 deprecated_generic_get_saved_register from "frame.c".
7830 (xstormy16_frame_saved_register): Call
7831 xstormy16_get_saved_register.
7832 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
7833 static.
7834 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
7835 * frame.h (deprecated_generic_get_saved_register): Delete.
7836
7837 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
7838
7839 * dwarfread.c: Update documentation on the state of dwarf-1.
7840
7841 2004-05-01 Andrew Cagney <cagney@redhat.com>
7842
7843 * stack.c (select_frame_command): Delete call to
7844 frame_relative_level.
7845 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
7846 Delete #if0 code.
7847 (frame_info): Do not print FRAMELESS.
7848 (print_block_frame_labels): Replace DEPRECATED_STREQ.
7849 (catch_info): Delete #if0 code.
7850
7851 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
7852 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
7853 of frame_relative_level.
7854 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
7855 to SENTINEL_FRAME.
7856 * frame.h (enum frame_type): Add SENTINEL_FRAME.
7857 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
7858 frame_relative_level.
7859
7860 * frame.h (deprecated_set_frame_type): Delete declaration.
7861 * frame.c (deprecated_set_frame_type): Delete function, update
7862 comments.
7863
7864 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
7865 * gdbarch.h, gdbarch.c: Re-generate.
7866 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
7867 (shnbsd_pc_in_sigtramp): Delete.
7868 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
7869 pc_in_sigtramp.
7870 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
7871 pc_in_sigtramp.
7872 * frame.h: Update comments.
7873 * ppc-linux-tdep.c: Update comments.
7874 * breakpoint.c (bpstat_what): Update comments.
7875
7876 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
7877 m68klinux-tdep.o's dependencies, were previously added to
7878 m68klinux-nat.o.
7879
7880 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
7881 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
7882 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
7883 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
7884 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
7885
7886 * Makefile.in (m68klinux-nat.o): Update dependencies.
7887 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
7888 (m68k_linux_sigtramp_frame_cache)
7889 (m68k_linux_sigtramp_frame_this_id)
7890 (m68k_linux_sigtramp_frame_prev_register)
7891 (m68k_linux_sigtramp_frame_unwind)
7892 (m68k_linux_sigtramp_frame_sniffer)
7893 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
7894 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
7895 names, use trad-frame.h.
7896 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
7897 (struct m68k_sigtramp_info): Delete.
7898 * m68k-tdep.c (m68k_sigtramp_frame_cache)
7899 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
7900 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
7901 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
7902 "m68klinux-tdep.c".
7903
7904 * infrun.c (check_sigtramp2): Delete check for
7905 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
7906
7907 2004-05-01 Mark Kettenis <kettenis@gnu.org>
7908
7909 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
7910
7911 2004-05-01 Andrew Cagney <cagney@redhat.com>
7912
7913 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
7914 (frv_linux_sigtramp_frame_cache)
7915 (frv_linux_sigtramp_frame_this_id)
7916 (frv_linux_sigtramp_frame_prev_register)
7917 (frv_linux_sigtramp_frame_unwind)
7918 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
7919 include "linux" in function and variable names, directly call
7920 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
7921 the latest trad-frame code.
7922 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
7923 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
7924 * Makefile.in (frv-linux-tdep.o): Update dependencies.
7925 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
7926 * frv-tdep.c (frv_sigtramp_frame_cache)
7927 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7928 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
7929 frv-linux-tdep.c.
7930 (frv_gdbarch_init): Do not append a sigtramp sniffer.
7931 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
7932 (frv_set_sigcontext_reg_addr): Delete function.
7933
7934 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
7935 (DEPRECATED_SIGTRAMP_END): Delete.
7936 * gdbarch.h, gdbarch.c: Re-generate.
7937 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
7938 * config/vax/tm-vaxbsd.h: Update copyright.
7939 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7940 (DEPRECATED_IN_SIGTRAMP): Define.
7941 * config/m68k/tm-nbsd.h: Update copyright.
7942 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
7943 (DEPRECATED_IN_SIGTRAMP): Define.
7944
7945 2004-05-01 Mark Kettenis <kettenis@gnu.org>
7946
7947 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
7948 encondings. Fixes PR gdb/1628.
7949
7950 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
7951 DW_CFA_restore state without a matching DW_CFA_remember_state
7952 instead of aborting. Fixes PR backtrace/1589.
7953
7954 2004-04-30 Joel Brobecker <brobecker@gnat.com>
7955
7956 * MAINTAINERS: Add self as AIX maintainer.
7957 Update my e-mail address in write-after-approval section.
7958
7959 2004-04-30 Andrew Cagney <cagney@redhat.com>
7960
7961 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
7962 (legacy_get_prev_frame): Ditto.
7963
7964 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
7965 (mips_gdbarch_init): Do not set pc_in_sigtramp.
7966 * mipsread.c (sigtramp_address): Delete extern variable.
7967 (mipscoff_new_init): Delete reference.
7968 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
7969 (fixup_sigtramp): Delete function.
7970 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
7971 (fixup_sigtramp): Delete declarations.
7972
7973 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
7974 deprecated_pc_in_sigtramp.
7975 (ppcnbsd_pc_in_sigtramp): Delete function.
7976
7977 2004-05-01 Mark Kettenis <kettenis@gnu.org>
7978
7979 * config/m68k/nm-nbsd.h: Tweak comments.
7980 * config/m68k/nm-nbsdaout.h: Likewise.
7981
7982 2004-04-30 Andrew Cagney <cagney@redhat.com>
7983
7984 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
7985 legacy_pc_in_sigtramp.
7986 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
7987
7988 2004-05-01 Mark Kettenis <kettenis@gnu.org>
7989
7990 Add OpenBSD/m68k support.
7991 * NEWS (New native configurations): Mention OpenBSD/m68k.
7992 * m68kbsd-tdep.c: New file.
7993 * m68kbsd-nat.c: New file.
7994 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
7995 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
7996 * configure.host: Add m68k-*-openbsd.
7997 * configure.tgt: Add m68k-*-openbsd.
7998 * config/m68k/tm-obsd.h: New file.
7999 * config/m68k/obsd.mt: New file.
8000 * config/m68k/obsd.mh: New file.
8001 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
8002 m68kbsd-tdep.c.
8003
8004 2004-04-30 Andrew Cagney <cagney@redhat.com>
8005
8006 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
8007 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
8008
8009 2004-04-30 Mark Kettenis <kettenis@gnu.org>
8010
8011 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
8012 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
8013
8014 2004-04-30 Brian Ford <ford@vss.fsi.com>
8015
8016 Revert 2004-04-16 change.
8017 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
8018 (i386_coff_init_abi): Remove.
8019 * i386-tdep.h (i386_coff_init_abi): Remove.
8020 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
8021
8022 2004-04-30 Andrew Cagney <cagney@redhat.com>
8023
8024 * blockframe.c (find_pc_partial_function): Delete use of
8025 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
8026 DEPRECATED_SIGTRAMP_END.
8027
8028 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
8029 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
8030 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
8031 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
8032 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
8033
8034 * defs.h (deprecated_inside_entry_file): Delete declaration.
8035 * blockframe.c (deprecated_inside_entry_file): Delete function.
8036 (legacy_frame_chain_valid): Delete call.
8037 * sh64-tdep.c (sh64_frame_chain): Delete call.
8038 * objfiles.h: Update comments.
8039 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
8040 call.
8041 * frame.c (get_prev_frame): Delete call, update comments.
8042
8043 2004-04-30 Brian Ford <ford@vss.fsi.com>
8044
8045 * MAINTAINERS (Write After Approval): Add myself.
8046
8047 2004-04-30 Andrew Cagney <cagney@redhat.com>
8048
8049 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
8050 * gdbarch.h, gdbarch.c: Re-generate.
8051 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
8052 code.
8053
8054 2004-04-30 Andrew Cagney <cagney@redhat.com>
8055
8056 * gdb-events.sh (selected_thread_changed)
8057 (selected_frame_level_changed, target_changed): Delete.
8058 * gdb-events.h, gdb-events.c: Re-generate.
8059 * valops.c (value_assign): Update.
8060 * stack.c (select_frame_command, up_silently_base)
8061 (down_silently_base): Update.
8062
8063 2004-04-29 Andrew Cagney <cagney@redhat.com>
8064
8065 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
8066 registers correctly.
8067 (print_gp_register_row, mips32_heuristic_proc_desc)
8068 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
8069 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
8070 references to mips_isa_regsize.
8071
8072 2004-04-29 Andrew Cagney <cagney@redhat.com>
8073
8074 * mips-tdep.c (struct gdbarch_tdep): Delete
8075 mips_fp_register_double.
8076 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
8077 mips_abi_regsize.
8078 (mips_gdbarch_init): Do not set mips_fp_register_double.
8079 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
8080
8081 2004-04-29 Joel Brobecker <brobecker@gnat.com>
8082
8083 Committed by Andrew Cagney.
8084 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
8085 function calls.
8086
8087 2004-04-29 Andrew Cagney <cagney@redhat.com>
8088
8089 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
8090 gdbarch, use mips_abi, update callers.
8091 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
8092 mips_abi_regsize, update callers.
8093 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
8094 mips_default_abi_regsize.
8095 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
8096 mips_default_abi_regsize.
8097
8098 2004-04-29 Andrew Cagney <cagney@redhat.com>
8099
8100 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
8101 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
8102 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
8103 mips_default_abi_regsize.
8104 (mips_isa_regsize): Rename mips_regisze.
8105 * mipsnbsd-tdep.c: Update.
8106 * mips-linux-tdep.c: Update.
8107 * irix5-nat.c: Update.
8108 * mips-tdep.h (mips_isa_regsize): Update.
8109
8110 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
8111 Delete all disabled code.
8112 * gdb-events.h, gdb-events.c: Re-generate.
8113
8114 2004-04-19 Jerome Guitton <guitton@gnat.com>
8115 Mark Kettenis <kettenis@gnu.org>
8116
8117 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
8118 the function begins with a branch instruction.
8119
8120 2004-04-29 Mark Kettenis <kettenis@gnu.org>
8121
8122 * i386-tdep.c: Fix spelling mistakes.
8123
8124 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8125 Andrew Cagney <cagney@redhat.com>
8126
8127 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
8128 <sys/proc.h>.
8129 * acconfig.h: Provide default _KMEMUSER value.
8130 * config.in, configure: Re-generate.
8131 * NEWS: Mention fix.
8132
8133 2004-04-24 Randolph Chung <tausq@debian.org>
8134
8135 * configure.host (hppa*-*-linux*): New target.
8136 * configure.tgt (hppa*-*-linux*): Likewise.
8137 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
8138 gdbarch_init_osabi() call earlier so that osabi-specific frame
8139 unwinders can be registered first.
8140 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
8141 hppa-linux-nat.c.
8142 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
8143 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
8144 * config/pa/linux.mh: New file.
8145 * config/pa/linux.mt: New file.
8146 * config/pa/nm-linux.h: New file.
8147 * config/pa/xm-linux.h: New file.
8148 * hppa-linux-nat.c: New file.
8149 * hppa-linux-tdep.c: New file.
8150
8151 2004-04-28 Randolph Chung <tausq@debian.org>
8152
8153 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
8154 return values.
8155 (hppa32_push_dummy_call): Fix small struct and floating point argument
8156 passing, and make sure the stack frame is properly aligned.
8157
8158 2004-04-28 Andrew Cagney <cagney@redhat.com>
8159
8160 * stack.c (print_stack_frame): Fix description.
8161
8162 * NEWS: Mention gdb/gdbserver/configure execute permission
8163 changed. PR server/519.
8164
8165 2004-04-28 Andrew Cagney <cagney@redhat.com>
8166
8167 * stack.c (print_stack_frame_stub): Delete declaration.
8168 (struct print_stack_frame_args, print_stack_frame)
8169 (print_frame_info, print_frame): Replace "source" with print what.
8170 Replace "print" with "print_level". Replace "args" with
8171 "print_args".
8172 * frame.h (show_and_print_stack_frame, print_stack_frame)
8173 (print_frame_info): Update declarations.
8174 * stack.c (select_and_print_frame, frame_command)
8175 (current_frame_command, up_command, down_command): Update calls -
8176 use get_selected_frame, pass "enum print_what" for source, do not
8177 call frame_relative_level.
8178 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
8179 * remote-rdp.c (remote_rdp_open): Ditto.
8180 * remote-mips.c (common_open): Ditto.
8181 * remote-e7000.c (e7000_start_remote): Ditto.
8182 * ocd.c (ocd_start_remote): Ditto.
8183 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
8184 * infrun.c (normal_stop): Ditto.
8185 * inflow.c (kill_command): Ditto.
8186 * infcmd.c (finish_command): Ditto.
8187 * corelow.c (core_open): Ditto.
8188 * tracepoint.c (finish_tfind_command): Ditto.
8189 * thread.c (info_threads_command, info_threads_command)
8190 (restore_current_thread, do_captured_thread_select): Ditto.
8191 * ada-tasks.c (task_command): Ditto.
8192
8193 2004-04-26 Orjan Friberg <orjanf@axis.com>
8194
8195 * frame.c: Include "observer.h".
8196 (frame_observer_target_changed): New function.
8197 (_initialize_frame): Attach target_changed observer.
8198 * regcache.c: Include "observer.h".
8199 (regcache_observer_target_changed): New function.
8200 (_initialize_regcache): Attach target_changed observer.
8201 * valops.c: Include "observer.h".
8202 (value_assign): Notify target_changed event when modifying register.
8203 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
8204
8205 2004-04-26 Orjan Friberg <orjanf@axis.com>
8206
8207 From Paul Koning <pkoning@equallogic.com>:
8208 * breakpoint.c (free_valchain): New function.
8209 (insert_bp_location, delete_breakpoint): Use free_valchain.
8210 (remove_breakpoint): Do not remove the valchain.
8211 (bpstat_stop_status): If not stopped by watchpoint, skip
8212 watchpoints when generating stop status list.
8213 * infrun.c (handle_inferior_event): Make
8214 stepped_after_stopped_by_watchpoint a global variable.
8215 * remote.c (remote_stopped_data_address): Return watch data
8216 address rather than zero if stepped_after_stopped_by_watchpoint is
8217 set.
8218
8219 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
8220
8221 Fix PR gdb/1626.
8222 * configure.in: Check for curses after termcap.
8223 On osf5.*, do not check for ncurses.
8224 * configure: Regenerate.
8225
8226 2004-04-25 Mark Kettenis <kettenis@gnu.org>
8227
8228 * ppcobsd-nat.c: Include "ppc-tdep.h".
8229 * Makefile.in (ppcobsd-nat.o): Update dependencies.
8230
8231 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
8232 Fixes PR tdep/1623 and PR tdep/1624.
8233
8234 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
8235
8236 * xmodem.h, xmodem.c: Remove files.
8237 * Makefile.in: Remove references to xmodem.h, xmodem.c.
8238
8239 2004-04-23 Randolph Chung <tausq@debian.org>
8240
8241 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
8242 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
8243 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
8244 for handling stackless frames.
8245 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
8246
8247 2004-04-23 Randolph Chung <tausq@debian.org>
8248
8249 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
8250 starts at a pc before the frame is created.
8251
8252 2004-04-23 Joel Brobecker <brobecker@gnat.com>
8253
8254 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
8255
8256 2004-04-23 Jerome Guitton <guitton@gnat.com>
8257
8258 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
8259 use convert_typed_floating to get the appropriate format.
8260
8261 2004-04-22 Randolph Chung <tausq@debian.org>
8262
8263 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
8264 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
8265 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
8266 (hppa_sign_extend): Add prototype.
8267 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
8268 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
8269 (sign_extend): Rename with hppa_ prefix and make non-static. Other
8270 hppa targets will also use these functions.
8271 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
8272 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
8273 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
8274 (hppa_gdbarch_init): Remove gdbarch setting of
8275 skip_trampoline_code, in_solib_call_trampoline and
8276 in_solib_return_trampoline.
8277 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
8278 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
8279 hppa_in_solib_call_trampoline.
8280 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
8281 Moved from hppa-tdep.c.
8282 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
8283 in_solib_call_trampoline and in_solib_return_trampoline.
8284
8285 2004-04-22 Randolph Chung <tausq@debian.org>
8286
8287 * hppa-tdep.c (hppa_debug): New variable.
8288 (find_unwind_entry, hppa_frame_cache): Add debug output.
8289 (_initialize_hppa_tdep): Add command to set debug flag.
8290
8291 2004-04-22 Andrew Cagney <cagney@redhat.com>
8292
8293 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
8294 "trad-frame.h".
8295 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
8296 signal trampoline unwinder.
8297 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
8298
8299 2004-04-22 Mark Kettenis <kettenis@gnu.org>
8300
8301 Add OpenBSD/powerpc support.
8302 * NEWS (New native configurations): Mention OpenBSD/powerpc.
8303 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
8304 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
8305 (ppc_collect_fpregset): New prototypes.
8306 * ppcobsd-nat.c: New file.
8307 * ppcobsd-tdep.c: New file.
8308 * ppcobsd-tdep.h: New file.
8309 * rs6000-tdep.c: Include "regset.h".
8310 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
8311 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
8312 New functions.
8313 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
8314 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
8315 (rs6000-tdep.o): Update dependencies.
8316 * configure.host: Add powerpc-*-openbsd.
8317 * configure.tgt: Add powerpc-*-openbsd.
8318 * config/powerpc/obsd.mh: New file.
8319 * config/powerpc/nm-obsd.h: New file.
8320 * config/powerpc/obsd.mt: New file.
8321
8322 2004-04-22 Andrew Cagney <cagney@redhat.com>
8323
8324 * frame.h (show_frame_info): Delete declaration.
8325
8326 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
8327 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
8328 * m32r-tdep.c (m32r_frame_this_id): Ditto.
8329 * frv-tdep.c (frv_frame_this_id): Ditto.
8330 * avr-tdep.c (avr_frame_this_id): Ditto.
8331
8332 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
8333
8334 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
8335
8336 2004-04-22 Jim Blandy <jimb@redhat.com>
8337
8338 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
8339 register number zero.
8340
8341 2004-04-21 Michael Snyder <msnyder@redhat.com>
8342
8343 * mips-tdep.c (heuristic_proc_start):
8344 Warning() already prefixes "Warning: ".
8345
8346 2004-04-21 Andrew Cagney <cagney@redhat.com>
8347
8348 * annotate.h (deprecated_annotate_starting_hook)
8349 (deprecated_annotate_stopped_hook)
8350 (deprecated_annotate_exited_hook)
8351 (deprecated_annotate_signal_hook)
8352 (deprecated_annotate_signalled_hook): Deprecate.
8353 * tracepoint.h (deprecated_create_tracepoint_hook)
8354 (deprecated_delete_tracepoint_hook)
8355 (deprecated_modify_tracepoint_hook)
8356 (deprecated_trace_find_hook)
8357 (deprecated_trace_start_stop_hook): Deprecate.
8358 * target.h (deprecated_target_new_objfile_hook): Deprecate.
8359 * remote.h (deprecated_target_resume_hook)
8360 (deprecated_target_wait_loop_hook): Deprecate.
8361 * gdbcore.h (deprecated_exec_file_display_hook)
8362 (deprecated_file_changed_hook): Deprecate.
8363 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
8364 * defs.h (deprecated_modify_breakpoint_hook)
8365 (deprecated_command_loop_hook, deprecated_show_load_progress)
8366 (deprecated_print_frame_info_listing_hook)
8367 (deprecated_query_hook, deprecated_warning_hook)
8368 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
8369 (deprecated_delete_breakpoint_hook)
8370 (deprecated_interactive_hook, deprecated_registers_changed_hook)
8371 (deprecated_readline_begin_hook, deprecated_readline_hook)
8372 (deprecated_readline_end_hook, deprecated_register_changed_hook)
8373 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
8374 (deprecated_context_hook, deprecated_target_wait_hook)
8375 (deprecated_attach_hook, deprecated_detach_hook)
8376 (deprecated_call_command_hook, deprecated_set_hook)
8377 (deprecated_error_hook, deprecated_error_begin_hook)
8378 (deprecated_ui_load_progress_hook): Deprecate.
8379 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
8380 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
8381 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
8382 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
8383 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
8384 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
8385 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
8386 * annotate.c, aix-thread.c: Update.
8387
8388 2004-04-21 Andrew Cagney <cagney@redhat.com>
8389
8390 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
8391 * vaxnbsd-tdep.c: Include "gdb_string.h".
8392
8393 * symfile.c (symbol_file_add_from_memory): #if 0 function.
8394 (add_symbol_file_from_memory_command): #if 0 function body, call
8395 error instead.
8396
8397 2004-04-21 Andrew Cagney <cagney@redhat.com>
8398
8399 * gdbcore.h: Update copyright.
8400 (deprecated_add_core_fns): Rename add_core_fns.
8401 * win32-nat.c (_initialize_core_win32): Update.
8402 * sun3-nat.c (_initialize_core_sun3): Update.
8403 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
8404 * rs6000-nat.c (_initialize_core_rs6000): Update.
8405 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
8406 * nto-tdep.c (_initialize_nto_tdep): Update.
8407 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
8408 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
8409 * mips-nat.c (_initialize_core_mips): Update.
8410 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8411 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
8412 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
8413 * lynx-nat.c (_initialize_core_lynx): Update.
8414 * irix5-nat.c (_initialize_core_irix5): Update.
8415 * i386-interix-nat.c (_initialize_core_interix): Update.
8416 * cris-tdep.c (_initialize_cris_tdep): Update.
8417 * corelow.c (deprecated_add_core_fns): Update.
8418 * core-regset.c (_initialize_core_regset): Update.
8419 * core-aout.c (_initialize_core_aout): Update.
8420 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
8421 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
8422 * alpha-nat.c (_initialize_core_alpha): Update.
8423
8424 2004-04-21 Jim Blandy <jimb@redhat.com>
8425
8426 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
8427
8428 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
8429
8430 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
8431 Delete.
8432 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
8433 (read_attribute_value): Update calls to dwarf_alloc_block.
8434 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
8435 dwarf2_tmp_obstack.
8436 (psymtab_to_symtab_1): Likewise. Clean up using
8437 free_stack_comp_unit.
8438 (add_to_cu_func_list): Use the comp_unit_obstack.
8439
8440 2004-04-19 Joel Brobecker <brobecker@gnat.com>
8441
8442 * dwarf2read.c (dwarf2_flag_true_p): New function.
8443 (die_is_declaration): Use the function above. Add some comments.
8444
8445 2004-04-19 Mark Kettenis <kettenis@gnu.org>
8446
8447 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
8448 architecture when registering sparcnbsd_core_osabi_sniffer.
8449 Adjust comment.
8450
8451 2004-04-18 Mark Kettenis <kettenis@gnu.org>
8452
8453 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
8454 return value.
8455
8456 Based on a patch from Brian Ford <ford@vss.fsi.com>:
8457 * i386-tdep.c: Correct register numbering scheme comments
8458 throughout.
8459 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
8460 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
8461 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
8462 (i386_gdb_arch_init): Likewise.
8463
8464 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
8465 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
8466 ppcnbsd-tdep.o.
8467
8468 * m68k-tdep.h: Tweak comments.
8469 * m68k-tdep.c: Tweak comment.
8470
8471 2004-04-17 Randolph Chung <tausq@debian.org>
8472
8473 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
8474 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
8475 (hppa_hpux_som_init_abi): Set is_elf to 0.
8476 (hppa_hpux_elf_init_abi): Set is_elf to 1.
8477 * hppa-tdep.c (low_text_segment_address): Remove global.
8478 (record_text_segment_lowaddr): Pass in low address as parameter. Use
8479 section offset to calculate segment address.
8480 (internalize_unwinds): Define low_text_segment_address as local and
8481 pass to record_text_segment_lowaddr for ELF targets.
8482 (hppa_gdbarch_init): Zero fill tdep structure.
8483 (hppa_dump_tdep): Print tdep structure.
8484 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
8485
8486 2004-04-17 Randolph Chung <tausq@debian.org>
8487
8488 * hppa-tdep.c (hppa_pseudo_register_read): Define.
8489 (hppa_gdbarch_init): Set pseudo_register_read.
8490 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
8491 * regcache.c (supply_register): Remove check for
8492 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
8493
8494 2004-04-17 Randolph Chung <tausq@debian.org>
8495
8496 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
8497 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
8498 (hpread_adjust_stack_address): Move to hpread.c.
8499 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8500 obj_private_struct): Move from tm-hppa.h.
8501 * hpread.c (hppa-tdep.h): Include.
8502 (hpread_adjust_stack_address): Move from hppa-tdep.c.
8503 (hpread_read_function_type, hpread_read_doc_function_type)
8504 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
8505 directly.
8506 * pa64solib.c (hppa-tdep.h): Include.
8507 * somsolib.c (hppa-tdep.h): Include.
8508 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
8509 inferior_status): Remove unused forward declarations.
8510 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
8511 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
8512 obj_private_struct): Move to hppa-tdep.h.
8513 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
8514
8515 2004-04-17 Randolph Chung <tausq@debian.org>
8516
8517 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
8518 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
8519 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
8520 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
8521 Remove forward declaration and make static.
8522 (hppa_reg_struct_has_addr): Remove.
8523
8524 2004-04-16 Joel Brobecker <brobecker@gnat.com>
8525
8526 * observer.sh: Move comments in sed command to first column.
8527
8528 2004-04-16 Jason Molenda (jmolenda@apple.com)
8529
8530 * frame.c: Minor typeo corrections in comments.
8531
8532 2004-04-16 Joel Brobecker <brobecker@gnat.com>
8533
8534 * observer.c (observer_test_first_notification_function): Update
8535 function profile.
8536 (observer_test_second_notification_function): Likewise.
8537 (observer_test_third_notification_function): Likewise.
8538
8539 2004-04-16 Mark Kettenis <kettenis@gnu.org>
8540
8541 From Brian Ford <ford@vss.fsi.com>:
8542 * i386-tdep.c (i386_coff_init_abi): New function.
8543 * i386-tdep.h (i386_coff_init_abi): New prototype.
8544 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
8545 register number translation functions for DWARF and DWARF 2.
8546
8547 2004-04-16 Joel Brobecker <brobecker@gnat.com>
8548
8549 * dwarf2read.c: Back out my previous change, it was incorrect.
8550
8551 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
8552
8553 * dwarf2read.c: Include "hashtab.h".
8554 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
8555 has_namespace_info.
8556 (struct partial_die_info): Add comments. Use bitfields to reduce
8557 memory footprint. Add scope, scope_set, has_specification,
8558 spec_offset, die_parent, die_child, and die_sibling.
8559 (peek_die_abbrev): Add prototype.
8560 (partial_read_comp_unit_head): New function, broken out from
8561 dwarf2_build_psymtabs_hard.
8562 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
8563 Use partial_read_comp_unit_head. Initialize the CU and
8564 comp_unit_obstack. Update calls to read_partial_die and
8565 scan_partial_symbols. Use free_stack_comp_unit and
8566 load_partial_dies.
8567 (scan_partial_symbols): Change PDI to a pointer. Use the child and
8568 sibling pointers to walk partial DIEs. Call fixup_partial_die.
8569 Update calls to helper functions. Remove NAMESPACE argument.
8570 Update comments.
8571 (partial_die_parent_scope, partial_die_full_name): New functions.
8572 (add_partial_symbol): Remove namespace argument. Update call to
8573 pdi_needs_namespace. Use partial_die_full_name. Handle
8574 DW_TAG_namespace. Check has_namespace_info flag.
8575 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
8576 tag. Handle namespaces.
8577 (add_partial_namespace, add_partial_enumeration): Simplify.
8578 (guess_structure_name): New function, derived from
8579 add_partial_structure.
8580 (add_partial_structure): Remove.
8581 (determine_class_name): Update comment.
8582 (dwarf2_read_abbrevs): Set has_namespace_info flag.
8583 (is_type_tag_for_partial, load_partial_dies): New functions.
8584 (read_partial_die): Pass abbrev and abbrev_len as arguments.
8585 Record specifications instead of following them immediately.
8586 (find_partial_die_in_comp_unit, find_partial_die)
8587 (fixup_partial_die, free_stack_comp_unit)
8588 (hashtab_obstack_allocate, dummy_obstack_deallocate)
8589 (partial_die_hash, partial_die_eq): New functions.
8590 * Makefile.in (hashtab_h): Define.
8591 (dwarf2read.o): Update dependencies.
8592 (observer_inc, observer_h): Move to the correct section.
8593
8594 2004-04-15 Joel Brobecker <brobecker@gnat.com>
8595
8596 * dwarf2read.c (dwarf2_attribute_true_p): New function.
8597 (die_is_declaration): Use the function above. Add comment.
8598
8599 2004-04-15 Joel Brobecker <brobecker@gnat.com>
8600
8601 * dwarf2read.c (read_structure_scope): Identify stub types
8602 using die_is_declaration() only.
8603
8604 2004-04-15 Roland McGrath <roland@redhat.com>
8605
8606 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
8607 argument instead of NAME.
8608 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
8609 in call to symbol_file_add_with_addrs_or_offsets.
8610 (build_addr_info): New function, helper for ...
8611 (symbol_file_add_from_memory): New function.
8612 (add_symbol_file_from_memory_command): New function using that.
8613 (_initialize_symfile): Register it for add-symbol-file-from-memory.
8614 (pre_add_symbol_hook): Add const to argument type.
8615 * symfile.h (symbol_file_add_from_memory): Declare it.
8616
8617 2004-04-15 Mark Kettenis <kettenis@gnu.org>
8618
8619 * NEWS (New native configurations): Mention OpenBSD/vax.
8620 * configure.host: Add vax-*-openbsd*.
8621 * config/vax/obsd.mh: New file.
8622 * config/vax/nm-obsd.h: New file.
8623
8624 * vax-tdep.c: Include "regset.h".
8625 (vax_supply_gregset): New function.
8626 (vax_gregset): New variable.
8627 (vax_regset_from_core_section): New function.
8628 (vax_gdbarch_init): Set regset_from_core_section.
8629 * Makefile.in (vax-tdep.o): Update dependencies.
8630
8631 2004-04-15 Andrew Cagney <cagney@redhat.com>
8632
8633 * observer.c (normal_stop_subject, observer_notify_normal_stop)
8634 (observer_normal_stop_notification_stub)
8635 (observer_attach_normal_stop, observer_detach_normal_stop):
8636 Delete, replaced by #include "observer.inc".
8637 * infrun.c (normal_stop): Pass "stop_bpstat" to
8638 observer_notify_normal_stop.
8639 * Makefile.in (observer_inc): Define.
8640 (observer.o): Update dependencies.
8641 (observer.h, observer.inc): New rules.
8642 * observer.h: Delete file.
8643 * observer.sh: New file.
8644
8645 2004-04-15 Mark Kettenis <kettenis@gnu.org>
8646
8647 * vax-tdep.c (vax_frame_cache): Fix typo.
8648
8649 2004-04-14 Mark Kettenis <kettenis@gnu.org>
8650
8651 * NEWS (New native configurations): Mention NetBSD/vax.
8652 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
8653 * config/vax/nbsdelf.mh: New file.
8654 * config/vax/nbsdaout.mh: New file.
8655 * config/vax/nm-nbsd.h: New file.
8656 * config/vax/nm-nbsdaout.h: New file.
8657
8658 * vaxnbsd-tdep.c: New file.
8659 * Makefile.in (vaxnbsd-tdep.o): New dependency.
8660 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
8661 * config/vax/nbsd.mt: New file.
8662 * config/vax/tm-nbsd.h: New file.
8663
8664 * Makefile.in (vaxbsd-nat.o): New dependency.
8665
8666 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
8667 * vax-tdep.c (vax_store_arguments): Remove struct_return and
8668 struct_addr arguments. Don't push return value address.
8669 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
8670 arguments to vax_store_arguments. Store return value address in
8671 R1.
8672 (vax_store_struct_return, vax_extract_return_value)
8673 (vax_store_return_value): Remove functions.
8674 (vax_return_value): New function.
8675 (vax_gdbarch_init): Set return value. Don't set
8676 deprecated_store_struct_return, deprecated_extract_struct_return
8677 and deprecated_store_return_value.
8678
8679 2004-04-14 Andreas Schwab <schwab@suse.de>
8680
8681 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
8682 value buffer.
8683 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
8684
8685 2004-04-14 Mark Kettenis <kettenis@gnu.org>
8686
8687 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
8688 (vax_unwind_dummy_id): New functions.
8689 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
8690 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
8691 variables.
8692 (vax_fix_call_dummy): Remove function.
8693 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
8694 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
8695 call_dummy_location, deprecated_call_dummy_words,
8696 deprecated_sizeof_call_dummy_words,
8697 deprecated_call_dummy_breakpoint_offset,
8698 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
8699 and deprecated_dummy_write_sp.
8700
8701 2004-04-13 David Carlton <carlton@kealia.com>
8702
8703 * MAINTAINERS: Move myself to "paper trail" section.
8704
8705 2004-04-12 Mark Kettenis <kettenis@gnu.org>
8706
8707 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
8708 "trad-frame.h".
8709 (vax_frame_init_saved_regs): Remove function.
8710 (vax_sigtramp_saved_pc): Remove function.
8711 (vax_frame_saved_pc): Remove function.
8712 (vax_frame_args_address): Remove function.
8713 (vax_frame_num_args): Rewrite.
8714 (vax_frame_chain): Remove function.
8715 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
8716 VAX_FP_REGNUM.
8717 (vax_pop_frame): Likewise.
8718 (vax_saved_pc_after_call): Remove function.
8719 (struct vax_frame_cache): New structure.
8720 (vax_frame_cache): New function.
8721 (vax_frame_this_id): New function.
8722 (vax_frame_prev_register): New function.
8723 (vax_frame_unwind): New variable.
8724 (vax_frame_sniffer): New function.
8725 (vax_frame_base_address): New function.
8726 (vax_frame_args_address): New function.
8727 (vax_frame_base): New variable.
8728 (vax_unwind_pc): New function.
8729 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
8730 deprecated_fp_regnum, deprecated_saved_pc_after_call,
8731 deprecated_frame_chain, deprecated_frame_saved_pc,
8732 deprecated_frame_args_address and
8733 deprecated_frame_init_saved_regs.
8734 * Makefile.in (vax-tdep.o): Update dependencies.
8735
8736 * vaxbsd-nat.c: New file.
8737
8738 * vax-tdep.h: Update copyright year. Adjust comments.
8739 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
8740 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
8741 (vax_regnum): New enum. Replacing...
8742 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
8743 (VAX_PS_REGNUM): ... these removed macros.
8744 * vax-tdep.c (vax_register_name): Remove prototype.
8745 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
8746 (vax_register_byte, vax_register_raw_size,
8747 vax_register_virtual_size, vax_register_virtual_type): Remove
8748 functions.
8749 (vax_register_type): New function.
8750 (vax_breakpoint_from_pc): Reorganize.
8751 (vax_gdbarch_init): Set register_type. Don't set
8752 deprecated_register_size, deprecated_register_bytes,
8753 deprecated_register_byte, deprecated_register_raw_size,
8754 deprecated_max_register_raw_size,
8755 deprecated_register_virtual_size,
8756 deprecated_max_register_virtual_size and
8757 deprecated_register_virtual_type. Add comment on stack direction.
8758
8759 2004-04-11 Mark Kettenis <kettenis@gnu.org>
8760
8761 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
8762 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
8763 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
8764
8765 2004-04-10 Randolph Chung <tausq@debian.org>
8766
8767 * MAINTAINERS (write after approval): Add myself.
8768
8769 2004-04-07 Randolph Chung <tausq@debian.org>
8770
8771 * hppa-tdep.c (hppa_inner_than): Remove.
8772 (is_pa_2): Remove unused static variable.
8773 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
8774
8775 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
8776
8777 * language.h (language_defn): Add new la_post_parser field.
8778 * parser-defs.h (null_post_parser): New declaration (default for
8779 la_post_parser).
8780
8781 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
8782 insert call to that function.
8783 (parse_exp_in_context): New function, including code formerly in
8784 parse_exp_1. Calls language-dependent post-parser after
8785 prefixification.
8786 (parse_expression_in_context): New exported function.
8787 (null_post_parser): New definition.
8788 * expression.h (parse_expression_in_context): Add declaration.
8789
8790 * p-lang.c (pascal_language_defn): Add trivial post-parser.
8791 * c-lang.c (c_language_defn): Ditto.
8792 (cplus_language_defn): Ditto.
8793 (asm_language_defn): Ditto.
8794 (minimal_language_defn): Ditto.
8795 * f-lang.c (f_language_defn): Ditto.
8796 * jv-lang.c (java_language_defn): Ditto.
8797 * language.c (unknown_language_defn): Ditto.
8798 (auto_language_defn): Ditto.
8799 (local_language_defn): Ditto.
8800 * m2-lang.c (m2_language_defn): Ditto.
8801 * scm-lang.c (scm_language_defn): Ditto.
8802 * obj-lang.c (objc_language_defn): Ditto.
8803
8804 2004-04-10 Mark Kettenis <kettenis@gnu.org>
8805
8806 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
8807 (amd64nbsd_mcontext_addr): New function.
8808 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
8809 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
8810 with amd64nbsd_r_reg_offset, instead of building it on the fly.
8811
8812 * corelow.c (core_xfer_partial): Fix coding standards violation.
8813 Add support for TARGET_OBJECT_WCOOKIE.
8814
8815 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
8816 deprecated_pc_in_sigtramp.
8817 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
8818 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
8819 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
8820 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8821 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
8822 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8823 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
8824
8825 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
8826 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
8827 Fix typo.
8828
8829 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
8830 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
8831 (amd64_collect_fxsave): Likewise.
8832
8833 * i386-sol2-tdep.c: Include "gdb_string.h".
8834 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
8835 name.
8836 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
8837
8838 2004-04-10 Mark Kettenis <kettenis@gnu.org>
8839
8840 * i386-sol2-tdep.c: Include "solib-svr4.h".
8841 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
8842 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
8843 * config/i386/tm-i386sol2.h: Include :solib.h".
8844 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
8845 solib-svr4.o and solib-legacy.o.
8846 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
8847 solib-svr4.o.
8848
8849 2004-04-09 Mark Kettenis <kettenis@gnu.org>
8850
8851 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
8852 whether a register is supplied by PTRACE_GETFPREGS.
8853 (store_inferior_registers): Likewise.
8854 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
8855 whether a register is supplied by PT_GETFPREGS.
8856 (store_inferior_registers): Likewise.
8857
8858 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
8859 * config/i386/linux64.mt (TDEPFILES): Likewise.
8860
8861 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
8862
8863 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
8864 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
8865 the program counter is in the range specified by `struct
8866 gdbarch_tdep'.
8867 * amd64-linux-tdep.c: Include "symtab.h".
8868 (amd64_linux_pc_in_sigtramp): Remove function.
8869 (amd64_linux_sigtramp_p): New function.
8870 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
8871 deprecated_pc_in_sigtramp.
8872 * amd64nbsd-tdep.c: Include "symtab.h".
8873 (amd64nbsd_sigtramp_p): New function.
8874 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
8875 deprecated_pc_in_sigtramp.
8876 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
8877 few comments.
8878 (amd64obsd_pc_in_sigtramp): Remove function.
8879 (amd64obsd_sigtramp_p): New function.
8880 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
8881 deprecated_pc_in_sigtramp.
8882 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
8883 (i386bsd_pc_ins_sigtramp): Remove prototype.
8884 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
8885 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
8886 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
8887 the program counter is in the range specified by `struct
8888 gdbarch_tdep'.
8889 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
8890 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
8891 (i386_go32_pc_in_sigtramp): Remove function.
8892 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
8893 Initialize TDEP->sigtramp_p.
8894 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
8895 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
8896 deprecated_pc_in_sigtramp.
8897 * i386-linux-tdep.c: Adjust comments.
8898 (i386_linux_pc_in_sigtramp): Remove function.
8899 (i386_linux_sigtramp_p): New function.
8900 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
8901 deprecated_pc_in_sigtramp.
8902 * i386-nto-tdep.c: Update copyright year.
8903 (i386nto_pc_in_sigtramp): Remove function.
8904 (i386nto_sigtramp_p): New function.
8905 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
8906 SP_REGNUM.
8907 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
8908 deprecated_pc_in_sigtramp.
8909 * i386-sol2-tdep.c: Update copyright year.
8910 (i386_sol2_pc_in_sigtramp): Remove function.
8911 (i386_sol2_sigtramp_p): New function.
8912 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
8913 deprecated_pc_in_sigtramp.
8914 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
8915 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
8916 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8917 deprecated_sigtramp_start and deprecated_sigtramp_end.
8918 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
8919 (i386nbsd_pc_in_sigtramp): Remove function.
8920 (i386nbsd_sigtramp_p): New function.
8921 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8922 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
8923 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
8924 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
8925 (i386obsd_pc_in_sigtramp): Remove function.
8926 (i386obsd_sigtramp_p): New function.
8927 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
8928 functions.
8929 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
8930 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
8931 TDEP->sigtramp_p.
8932 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
8933 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
8934 dependencies.
8935
8936 * config/i386/i386aout.mt: Remove file.
8937
8938 * configure.tgt: Remove i[34567]86-*-go32*,
8939 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
8940 and i[34567]86-*-isc*. Set gdb_target to i386 for
8941 i[34567]86-*-netware* and i[34567]86-*-*.
8942 * config/i386/i386.mt: New file.
8943 * config/i386/embed.mt: Remove file.
8944 * config/i386/go32.mt: Remove file.
8945 * config/i386/i386nw.mt: Remove file.
8946 * config/i386/i386v.mt: Remove file.
8947 * config/i386/tm-go32.h: Remove file.
8948
8949 * tui/tui-hooks.c: Include "readline/readline.h" after
8950 "gdb_curses.h" instead of before.
8951 * tui/tui-io.c: Likewise.
8952
8953 * tui/tui.c: Fix typo in comment.
8954
8955 * sparc64-tdep.c (sparc_address_from_register): Remove function.
8956
8957 2004-04-08 Andrew Cagney <cagney@redhat.com>
8958
8959 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
8960 (deprecated_exception_support_initialized): Declare.
8961 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
8962 (initialize_hp_cxx_exception_support)
8963 (child_enable_exception_callback): Update.
8964 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
8965 (deprecated_exception_support_initialized): Rename
8966 deprecated_exception_catchpoints_are_fragile and
8967 deprecated_exception_support_initialized.
8968 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
8969
8970 * symtab.c (deprecated_hp_som_som_object_present): Rename
8971 hp_som_som_object_present.
8972 * symtab.h (deprecated_hp_som_som_object_present): Declare.
8973 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
8974 Update. Delete extern declaration.
8975 * valops.c (hp_som_som_object_present): Ditto.
8976 * parse.c (deprecated_hp_som_som_object_present)
8977 (parse_nested_classes_for_hpacc): Ditto.
8978 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8979 * hppa-hpux-tdep.c (hp_som_som_object_present)
8980 (initialize_hp_cxx_exception_support): Ditto.
8981 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8982 * cp-valprint.c (hp_som_som_object_present)
8983 (cp_print_class_method): Ditto.
8984 * c-typeprint.c (hp_som_som_object_present):
8985 (c_type_print_base): Ditto.
8986 * c-exp.y (hp_som_som_object_present): Ditto.
8987
8988 2004-04-08 Andrew Cagney <cagney@redhat.com>
8989
8990 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
8991 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
8992 (frame_unwind_find_by_frame): Re-implement the unwind code so
8993 that it can both prepend and append sniffers. Replace
8994 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
8995 * tramp-frame.c (tramp_frame_append): Use
8996 frame_unwind_prepend_unwinder.
8997 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
8998 frame_unwind_register_unwinder.
8999 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
9000 tramp_frame_append.
9001 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
9002 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
9003 (mips_linux_init_abi): Update.
9004
9005 2004-04-08 Kevin Buettner <kevinb@redhat.com>
9006
9007 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
9008 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
9009 file support.
9010
9011 2004-04-07 Kevin Buettner <kevinb@redhat.com>
9012
9013 * ia64-tdep.c (elf.h): Don't include.
9014 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
9015
9016 2004-04-07 Jason Molenda (jmolenda@apple.com)
9017
9018 * frame.h: Typeo corrections in comments.
9019
9020 2004-04-07 Jim Blandy <jimb@redhat.com>
9021
9022 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
9023 %esp and %ebp
9024
9025 2004-04-07 Mark Kettenis <kettenis@gnu.org>
9026
9027 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
9028 * config/sparc/linux64.mt (TDEPFILES): Likewise.
9029 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9030 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
9031 and solib-legacy.o.
9032 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
9033 solib-svr4.o.
9034 * config/sparc/tm-sol2.h: Update copyright year. Include
9035 "solib.h".
9036
9037 * sparc-sol2-tdep.c: Update copyright year. Include
9038 "solib-svr4.h".
9039 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9040 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
9041 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9042 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
9043 dependencies.
9044
9045 2004-04-06 Andrew Cagney <cagney@redhat.com>
9046
9047 * infttrace.c: Include "infttrace.h".
9048 * infttrace.h: Include "target.h".
9049 * Makefile.in (infttrace_h): Update.
9050 (infttrace.o): Update.
9051
9052 2004-04-06 Andrew Cagney <cagney@redhat.com>
9053
9054 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
9055 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
9056 move extern declarations from here ...
9057 * infttrace.h: ... to here.
9058 * Makefile.in (hppah-nat.o): Update dependencies.
9059
9060 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
9061 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
9062 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
9063 (hppa_breakpoint_from_pc): Delete.
9064
9065 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
9066
9067 2004-04-05 Andrew Cagney <cagney@redhat.com>
9068
9069 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
9070 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
9071 <sys/file.h>.
9072
9073 2004-04-06 Randolph Chung <tausq@debian.org>
9074
9075 Committed by Andrew Cagney (mechanical change).
9076 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
9077 exception_catchpoints_are_fragile, find_stub_with_shl_get,
9078 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
9079 child_enable_exception_callback, current_ex_event,
9080 null_symtab_and_line, child_get_current_exception_event,
9081 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
9082 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
9083 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
9084 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
9085 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
9086 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
9087 Move hpux-specific definitions ...
9088 * hppa-hpux-tdep.c: ... to here.
9089
9090 2004-04-05 Andrew Cagney <cagney@redhat.com>
9091
9092 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
9093 skip_prologue_using_sal.
9094
9095 2004-04-05 Andrew Cagney <cagney@redhat.com>
9096
9097 * config/i386/tm-i386.h: Delete file.
9098 * config/i386/tm-vxworks.h: Update copyright, do not include
9099 "tm-i386.h".
9100 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
9101 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
9102 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
9103 * config/i386/ncr3000.mt (TM_FILE): Delete.
9104 * config/i386/interix.mt (TM_FILE): Delete.
9105 * config/i386/i386v.mt (TM_FILE): Delete.
9106 * config/i386/i386nw.mt (TM_FILE): Delete.
9107 * config/i386/i386gnu.mt (TM_FILE): Delete.
9108 * config/i386/i386aout.mt (TM_FILE): Delete.
9109 * config/i386/embed.mt (TM_FILE): Delete.
9110
9111 2004-04-05 Kevin Buettner <kevinb@redhat.com>
9112
9113 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
9114 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
9115 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
9116 (accg7_regnum): New constants.
9117 (last_spr_regnum, last_pseudo_regnum): Update.
9118 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
9119 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
9120 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
9121 for accg registers.
9122 (frv_register_sim_regno): Update spr_map[].
9123
9124 2004-04-04 Andrew Cagney <cagney@redhat.com>
9125
9126 * config/mips/xm-riscos.h: Delete.
9127 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
9128 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
9129 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
9130 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
9131 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
9132 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
9133 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
9134 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
9135 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
9136 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
9137 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
9138 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
9139 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
9140 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
9141 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
9142 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
9143 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
9144 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
9145 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
9146 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
9147 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
9148 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
9149 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
9150 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
9151 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
9152 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
9153
9154 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
9155 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
9156 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
9157 * configure.host: Remove m680[01]0-sun-sunos3*,
9158 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
9159 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
9160 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
9161 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
9162 mips-*-riscos*.
9163 * NEWS: Mention removed systems.
9164
9165 2004-04-04 Andrew Cagney <cagney@redhat.com>
9166
9167 GDB 6.1 release created from 6.1 branch.
9168
9169 2004-04-04 Andrew Cagney <cagney@redhat.com>
9170
9171 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
9172 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
9173 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
9174
9175 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
9176 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
9177 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
9178
9179 2004-04-03 Jim Blandy <jimb@redhat.com>
9180
9181 * MAINTAINERS: Chris Faylor has changed employers; add him to
9182 "paper trail" section, and update his E-mail address.
9183
9184 2004-04-03 Andrew Cagney <cagney@redhat.com>
9185
9186 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
9187 generic dummy frames.
9188 * dummy-frame.c: Update copyright.
9189 (dummy_frame_sniffer): Delete check for generic dummy frames.
9190
9191 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
9192 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
9193 (REG_PARM_STACK_SPACE): Delete.
9194 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
9195 Inline reference to REG_PARM_STACK_SPACE.
9196
9197 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
9198 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9199 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
9200 (FRAME_BASE_BEFORE_SIGTRAMP)
9201 (hppa32_hpux_frame_base_before_sigtramp)
9202 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
9203 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
9204 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
9205 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
9206 (FRAME_BASE_BEFORE_SIGTRAMP)
9207 (hppa64_hpux_frame_base_before_sigtramp)
9208 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
9209
9210 2004-04-03 Andrew Cagney <cagney@redhat.com>
9211
9212 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
9213
9214 2004-04-02 Andrew Cagney <cagney@redhat.com>
9215
9216 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
9217 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
9218 * dummy-frame.h: Delete out-of-date comments.
9219 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
9220 * gdbarch.h, gdbarch.c: Re-generate.
9221
9222 2004-04-02 Joel Brobecker <brobecker@gnat.com>
9223
9224 Committed by Andrew Cagney <cagney@redhat.com>.
9225 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
9226 into account an instruction saving a register if we have already
9227 seen an earlier instruction saving that same register.
9228
9229 2004-04-02 Andrew Cagney <cagney@redhat.com>
9230
9231 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
9232 * gdbarch.h, gdbarch.c: Re-generate.
9233 * frame.c (legacy_get_prev_frame): Delete references to
9234 DEPRECATED_INIT_FRAME_PC_FIRST.
9235
9236 * infrun.c (pc_in_sigtramp): Delete function.
9237 (check_sigtramp2): Inline call to pc_in_sigtramp, use
9238 get_frame_type.
9239
9240 2004-04-02 Andrew Cagney <cagney@redhat.com>
9241
9242 * infrun.c (handle_step_into_function): Delete code conditional on
9243 legacy_frame_p.
9244 (handle_inferior_event, step_over_function): Ditto.
9245
9246 2004-04-02 Andrew Cagney <cagney@redhat.com>
9247
9248 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
9249 "previous frame inner to this frame" test.
9250
9251 2004-04-02 Andrew Cagney <cagney@redhat.com>
9252
9253 * frame.c (safe_frame_unwind_memory): New function.
9254 * frame.h (safe_frame_unwind_memory): Declare. Update description
9255 of /safe_/ methods.
9256 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
9257 "next_frame". Use safe_frame_unwind_memory.
9258 (tramp_frame_sniffer): Update call to tramp_frame_start.
9259
9260 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
9261
9262 * dwarf2read.c (dwarf2_objfile_data_key): New.
9263 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
9264 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
9265 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
9266 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
9267 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
9268 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
9269 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
9270 Remove variables.
9271 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
9272 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
9273 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
9274 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
9275 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
9276 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
9277 Remove macros.
9278 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
9279 data.
9280 (dwarf2_locate_sections, dwarf2_build_psymtabs)
9281 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
9282 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
9283 (read_partial_die, read_full_die, read_indirect_string)
9284 (dwarf_decode_line_header, dwarf_decode_macros)
9285 (dwarf2_symbol_mark_computed): Remove use of removed macros.
9286 Update uses of removed variables.
9287 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
9288 of removed macros.
9289 (_initialize_dwarf2_read): New function.
9290 * symfile.h (dwarf2_has_info): Update prototype.
9291 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
9292 * elfread.c (elf_symfile_read): Likewise.
9293
9294 2004-04-01 Jim Blandy <jimb@redhat.com>
9295
9296 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
9297 function for register numbers on all the rs6000-derived targets.
9298 (rs6000_gdbarch_init): Don't register a separate
9299 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
9300 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
9301 variants.
9302
9303 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
9304 numbering.
9305
9306 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
9307
9308 * valarith.c: Update copyright notice.
9309 (value_add): Handle range types.
9310 (value_sub): Ditto.
9311 (value_equal): Ditto.
9312 (value_less): Ditto.
9313 (value_neg): Ditto.
9314 (value_complement): Ditto.
9315 (value_binop): Simplify slightly by using is_integral_type and
9316 eliminiating unnecessary COERCE_ENUMs.
9317
9318 2004-03-31 Andrew Cagney <cagney@redhat.com>
9319
9320 * frame.h (frame_unwind_id): Declare.
9321 * frame.c (frame_unwind_id): New function.
9322 (get_prev_frame_1): New function.
9323 (frame_debug_got_null_frame): New function.
9324 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
9325 code proper to prev_frame, update description.
9326 * infrun.c (step_over_function): Use frame_unwind_id.
9327
9328 2004-04-31 J. Brobecker <brobecker@gnat.com>
9329
9330 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
9331 (hppa64_push_dummy_call): Likewise.
9332
9333 2004-03-30 Jim Blandy <jimb@redhat.com>
9334
9335 From Ulrich Weigand:
9336 * utils.c (query): Do not use a va_list variable multiple times.
9337
9338 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
9339
9340 * Makefile.in (linux_nat_h): Update dependencies.
9341 * configure.in: Check for <gnu/libc-version.h>.
9342 * configure: Regenerate.
9343 * config.in: Regenerate.
9344 * linux-nat.h: Include "target.h". Add waitstatus field to
9345 struct lwp_info.
9346 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
9347 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
9348 to.
9349 (lin_lwp_handle_extended): New function. Handle clone events.
9350 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
9351 thread exit events.
9352 (child_wait): Handle clone events.
9353 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
9354 * linux-nat.c (linux_enable_event_reporting): Turn on
9355 PTRACE_O_TRACECLONE.
9356 (linux_handle_extended_wait): Handle clone events.
9357 * thread-db.c: Include <gnu/libc-version.h>.
9358 (struct private_thread_info): Add dying flag.
9359 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
9360 higher.
9361 (attach_thread): Update comments. Handle dying threads.
9362 (detach_thread): Set the dying flag.
9363 (check_event): Always call attach_thread.
9364
9365 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
9366
9367 * mips-tdep.c (mips_pdr_data): New.
9368 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
9369 (_initialize_mips_tdep): Initialize mips_pdr_data.
9370
9371 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
9372
9373 * minsyms.c (install_minimal_symbols): Move dropping leading
9374 char from linkage name from here...
9375 (prim_record_minimal_symbol_and_info): ...to here. Simplify
9376 test for "__gnu_compiled*" symbols.
9377
9378 2004-03-28 Jim Blandy <jimb@redhat.com>
9379
9380 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
9381 registers to temp register r0 and byte stores as prologue
9382 instructions.
9383
9384 2004-03-28 Andrew Cagney <cagney@redhat.com>
9385
9386 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
9387 arm*-*-*.
9388
9389 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
9390
9391 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
9392 and switch the layout to force a display of register window.
9393
9394 2004-02-26 J. Brobecker <brobecker@gnat.com>
9395
9396 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
9397 of the INTEGER class.
9398
9399 2004-03-26 Jim Blandy <jimb@redhat.com>
9400
9401 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
9402 bytes long on PPC GNU/Linux.
9403
9404 2004-03-26 David Carlton <carlton@kealia.com>
9405
9406 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
9407
9408 2004-03-25 Andrew Cagney <cagney@redhat.com>
9409
9410 * PROBLEMS: Add general section titles, remove references to
9411 specific releases.
9412
9413 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
9414
9415 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
9416 INT_REGISTER_SIZE.
9417 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
9418 FP_REGISTER_VIRTUAL_SIZE.
9419 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
9420 of DEPRECATED_REGISTER_RAW_SIZE.
9421 (arm_register_type): Add gdbarch argument.
9422 (arm_register_raw_size, arm_register_virtual_size): Delete.
9423 (arm_register_byte, arm_extract_return_value)
9424 (arm_store_return_value, arm_get_longjmp_target): Update references
9425 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
9426 (arm_gdbarch_init): Likewise. Don't set
9427 deprecated_register_raw_size, deprecated_register_virtual_size,
9428 deprecated_max_register_raw_size,
9429 deprecated_max_register_virtual_size, or
9430 deprecated_max_register_virtual_type. Do set register_type.
9431 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
9432 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
9433 (FP_REGISTER_VIRTUAL_SIZE): Delete.
9434 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
9435 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
9436 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
9437 INT_REGISTER_SIZE.
9438 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
9439 (remote_rdp_store_register): Likewise.
9440
9441 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
9442
9443 * Makefile.in (mips-linux-tdep.o): Update dependencies.
9444 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
9445 to after osabi initialization.
9446 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
9447 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
9448 functions.
9449 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
9450 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
9451 variables.
9452 (mips_linux_init_abi): Append signal trampoline unwinders.
9453
9454 2004-03-24 Andrew Cagney <cagney@redhat.com>
9455
9456 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
9457 * tramp-frame.c: Include "gdb_assert.h".
9458 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
9459 correct sizeof.
9460 (tramp_frame_append): Validate the tramp frame's instructions.
9461 * Makefile.in (tramp-frame.o): Update dependencies.
9462
9463 2004-03-23 Andrew Cagney <cagney@redhat.com>
9464
9465 * trad-frame.h (trad_frame_set_reg_addr): Declare.
9466
9467 2004-03-23 Andrew Cagney <cagney@redhat.com>
9468
9469 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
9470 Nasser as past testsuite/lib/ (and other) maintainers.
9471
9472 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
9473
9474 * infcmd.c (attach_command): Reread symbols if we already have
9475 an exec file.
9476
9477 2004-03-23 Andrew Cagney <cagney@redhat.com>
9478
9479 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
9480
9481 2004-03-23 Andrew Cagney <cagney@redhat.com>
9482
9483 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
9484 * gdbarch.h, gdbarch.c: Re-generate.
9485 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9486 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9487 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9488 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
9489 (DEPRECATED_SIGTRAMP_START): Update.
9490 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
9491 (DEPRECATED_SIGTRAMP_START): Update.
9492 * blockframe.c (find_pc_sect_partial_function): Update.
9493 * arch-utils.c (legacy_pc_in_sigtramp): Update.
9494
9495 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
9496
9497 * remote.c (remote_open_1): Reopen the exec file and reread symbols
9498 if necessary.
9499
9500 2004-03-23 Andrew Cagney <cagney@redhat.com>
9501
9502 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
9503 predicate, deprecate.
9504 * gdbarch.h, gdbarch.c: Re-generate.
9505 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
9506 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
9507 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
9508 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
9509 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
9510 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
9511 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
9512 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
9513 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
9514 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
9515 * blockframe.c (find_pc_partial_function): Update.
9516 * breakpoint.c (bpstat_what): Update.
9517 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
9518 * frv-linux-tdep.c (frv_linux_init_abi): Update.
9519 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
9520 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
9521 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9522 * i386-linux-tdep.c (i386_linux_init_abi): Update.
9523 * i386-nto-tdep.c (i386nto_init_abi): Update.
9524 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
9525 * i386-tdep.c (i386_sigtramp_frame_sniffer)
9526 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
9527 * i386bsd-tdep.c (i386bsd_init_abi): Update.
9528 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
9529 * i386obsd-tdep.c (i386obsd_init_abi): Update.
9530 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
9531 * infrun.c (pc_in_sigtramp): Update.
9532 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
9533 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9534 * mips-tdep.c (mips_gdbarch_init): Update.
9535 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
9536 * ppc-linux-tdep.c: Update comment.
9537 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
9538 * shnbsd-tdep.c (shnbsd_init_abi): Update.
9539 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
9540 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
9541 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
9542 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
9543 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
9544 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
9545 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
9546 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
9547
9548 2004-03-23 Andrew Cagney <cagney@redhat.com>
9549
9550 * tramp-frame.h, tramp-frame.h: New files.
9551 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
9552 Update rules to include "tramp-frame.h" and "tramp-frame.c".
9553
9554 * Makefile.in: Update all dependencies.
9555
9556 2004-03-23 Andrew Cagney <cagney@redhat.com>
9557
9558 * Makefile.in (trad_frame_h): Add $(frame_h).
9559 * trad-frame.h: Update copyright. Include "frame.h".
9560 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
9561 (trad_frame_set_id, trad_frame_get_id): Declare.
9562 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
9563 * trad-frame.c: Update copyright.
9564 (struct trad_frame_cache): Define.
9565 (trad_frame_cache_zalloc): New function.
9566 (trad_frame_set_id, trad_frame_get_id): New functions.
9567 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
9568
9569 2004-03-22 Andrew Cagney <cagney@redhat.com>
9570
9571 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
9572 s390_pltstub_unwind_cache.
9573 (s390_stub_frame_unwind_cache): Rename
9574 s390_pltstub_frame_unwind_cache.
9575 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
9576 (s390_stub_frame_prev_register): Rename
9577 s390_pltstub_frame_prev_register.
9578 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
9579 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
9580
9581 From Ulrich Weigand:
9582 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
9583 pointer calls like PLT calls.
9584
9585 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
9586
9587 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
9588 PC rather than the partial function start address. Use the start
9589 address to sanity check the found PDR.
9590
9591 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
9592
9593 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
9594 linux_handle_extended_wait.
9595
9596 2004-03-22 Andrew Cagney <cagney@redhat.com>
9597
9598 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
9599 function.
9600
9601 * frame.h (generic_pop_current_frame): Delete declaration.
9602 (deprecate_pop_dummy_frame): Deprecate
9603 generic_pop_dummy_frame.
9604 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
9605 (generic_pop_current_frame): Delete function.
9606 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
9607 generic_pop_current_frame.
9608 * v850-tdep.c (v850_pop_frame): Update.
9609 * mcore-tdep.c (mcore_pop_frame): Update.
9610 * sh64-tdep.c (sh64_pop_frame): Update.
9611 * h8300-tdep.c (h8300_pop_frame): Update.
9612
9613 2004-03-22 Andrew Cagney <cagney@redhat.com>
9614
9615 * frame.h (deprecated_pc_in_call_dummy): Rename
9616 generic_pc_in_call_dummy.
9617 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
9618 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
9619 generic_pc_in_call_dummy.
9620 (pc_in_dummy_frame): Make static.
9621 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
9622 * gdbarch.h, gdbarch.c: Re-generate.
9623 * dummy-frame.c (dummy_frame_sniffer): Simplify.
9624 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
9625 (legacy_get_prev_frame): Ditto.
9626 * inferior.h: Delete reference to generic_pc_in_call_dummy in
9627 comment.
9628
9629 2004-03-21 Andrew Cagney <cagney@redhat.com>
9630
9631 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
9632 declaration and out-of-date comment.
9633 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9634 Delete function.
9635 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
9636 deprecated_pc_in_call_dummy.
9637
9638 * infrun.c (handle_inferior_event): For non legacy frames, use the
9639 frame ID and frame type to identify a signal trampoline. Update
9640 comments.
9641
9642 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
9643
9644 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
9645 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
9646
9647 2004-03-21 Andrew Cagney <cagney@redhat.com>
9648
9649 * frame-unwind.h: Update copyright.
9650 (struct frame_data): Add opaque declaration.
9651 (frame_sniffer_ftype): Declare.
9652 (struct frame_unwind): Add "unwind_data" and "sniffer".
9653 (frame_unwind_register_unwinder): Declare.
9654 (frame_unwind_find_by_frame): Add parameter "this_cache".
9655 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
9656 (legacy_get_prev_frame, legacy_get_prev_frame)
9657 (get_frame_type): Pass the prologue_cache to
9658 frame_unwind_find_by_frame.
9659 * frame-unwind.c (struct frame_unwind_table_entry): Add field
9660 "unwinder".
9661 (frame_unwind_register_unwinder): New function.
9662 (frame_unwind_find_by_frame): Handle an unwind sniffer.
9663
9664 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
9665
9666 * bcache.c (print_percentage): Use floating point to avoid
9667 incorrect results when portion*100 overflows.
9668
9669 2004-03-19 Kevin Buettner <kevinb@redhat.com>
9670
9671 * ppc_tdep.h (ppc_linux_frame_saved_pc)
9672 (ppc_linux_init_extra_frame_info)
9673 (ppc_linux_frameless_function_invocation)
9674 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
9675 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
9676 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
9677 (rs6000_frame_chain): Delete declarations.
9678 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
9679 (ppc_linux_init_extra_frame_info)
9680 (ppc_linux_frameless_function_invocation)
9681 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
9682 (ppc_linux_init_abi): Remove registration of above deleted functions.
9683 * rs6000-tdep.c (rs6000_init_extra_frame_info)
9684 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
9685 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
9686 (rs6000_pop_frame, rs6000_frameless_function_invocation)
9687 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
9688 (rs6000_gdbarch_init): Remove registration of above deleted functions.
9689 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
9690 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
9691 frame management for all OSABIs.
9692
9693 2004-03-19 Andrew Cagney <cagney@redhat.com>
9694
9695 Committed by Kevin Buettner <kevinb@redhat.com>.
9696
9697 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
9698 Update copyright.
9699 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
9700 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
9701 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
9702 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
9703 unwinders. #ifdef legacy frame code.
9704 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9705 "frame-base.h".
9706 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
9707 (struct rs6000_frame_cache, rs6000_frame_cache)
9708 (rs6000_frame_this_id, rs6000_frame_prev_register)
9709 (rs6000_frame_sniffer, rs6000_frame_unwind)
9710 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
9711 (rs6000_frame_base): Implement a traditional frame unwinder.
9712 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
9713 frame unwinder.
9714
9715 2004-03-19 Kevin Buettner <kevinb@redhat.com>
9716
9717 * breakpoint.c (adjust_breakpoint_address): Don't adjust
9718 breakpoint address for watchpoints or the catch eventpoints.
9719 Add new paramter ``bptype''. Adjust all callers.
9720
9721 2004-03-19 Andrew Cagney <cagney@redhat.com>
9722
9723 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
9724
9725 * PROBLEMS: Delete note that ARM does not use frame code, problem
9726 fixed.
9727
9728 2004-03-18 Andrew Cagney <cagney@redhat.com>
9729
9730 * stack.c (return_command): Delete code wrapped in #ifdef
9731 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
9732
9733 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
9734
9735 2004-03-18 Andrew Cagney <cagney@redhat.com>
9736
9737 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
9738 DEPRECATED_IN_SIGTRAMP.
9739 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9740 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
9741 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9742 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9743 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9744 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9745 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9746 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
9747 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
9748 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
9749
9750 2004-03-18 Andrew Cagney <cagney@redhat.com>
9751
9752 * frame-base.c: Update copyright. Include "gdb_obstack.h".
9753 (struct frame_base_table_entry): Define.
9754 (struct frame_base_table): Re-implement as a linked list.
9755 (frame_base_init): Re-implement.
9756 (frame_base_table): Delete function.
9757 (append_predicate): Delete function.
9758 (frame_base_append_sniffer): Update.
9759 (frame_base_set_default): Update.
9760 (frame_base_find_by_frame): Update.
9761 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
9762 * Makefile.in (frame-base.o): Update dependencies.
9763
9764 2004-03-17 Andrew Cagney <cagney@redhat.com>
9765
9766 * frame.c (legacy_get_prev_frame): Pass correct frame to
9767 frame_unwind_find_by_frame.
9768
9769 2004-03-17 David Carlton <carlton@kealia.com>
9770
9771 * NEWS: Mention C++ nested types and namespaces
9772
9773 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
9774
9775 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
9776 and "Regressions since gdb 5.3.". Add known regressions since
9777 gdb 6.0.
9778
9779 2004-03-16 David Carlton <carlton@kealia.com>
9780
9781 * dwarf2read.c (process_structure_scope): Process children even
9782 when we're a declaration.
9783
9784 2004-03-16 Andrew Cagney <cagney@redhat.com>
9785
9786 * symtab.h (find_pc_sect_partial_function): Delete declaration.
9787 * blockframe.c (find_pc_partial_function)
9788 (find_pc_sect_partial_function): Merge into a single
9789 find_pc_partial_function.
9790
9791 2004-03-16 Mark Kettenis <kettenis@gnu.org>
9792
9793 * i386bsd-nat.c: s/regno/regnum/g.
9794 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
9795 FP0_REGNUM.
9796 (store_inferior_registers): Likewise.
9797
9798 2004-03-16 Mark Kettenis <kettenis@gnu.org>
9799
9800 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
9801 of i387_fill_fsave.
9802 (store_inferior_registers): Call i387_collect_fsave and
9803 i387_collect_fxsave instead of i387_fill_fsave and
9804 i387_fill_fxsave.
9805
9806 2004-03-15 Andrew Cagney <cagney@redhat.com>
9807
9808 * Makefile.in (frame-unwind.o): Update dependencies.
9809 * frame-unwind.c: Include "gdb_obstack.h".
9810 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
9811 parameter.
9812 (append_predicate): Delete function.
9813 (struct frame_unwind_table_entry): New structure.
9814 (struct frame_unwind_table): Replace "sniffer" with "head" and
9815 "tail".
9816 (frame_unwind_append_sniffer): Update.
9817 (frame_unwind_find_by_frame): Update.
9818 (_initialize_frame_unwind): Registe frame_unwind_init using
9819 gdbarch_data_register_pre_init.
9820
9821 2004-03-15 Mark Kettenis <kettenis@gnu.org>
9822
9823 * i386bsd-nat.c: Update copyright year.
9824 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
9825 define unconditionally.
9826
9827 2004-03-15 Mark Kettenis <kettenis@gnu.org>
9828
9829 * i387-tdep.h (i387_collect_fsave): New prototype.
9830 * i387-tdep.c (i387_collect_fsave): New function containing most
9831 of the code from i387_fill_fsave.
9832 (i387_fill_fsave): Call i387_collect_fsave.
9833
9834 2004-03-15 Mark Kettenis <kettenis@gnu.org>
9835
9836 * i386-linux-tdep.c: Update copyright year.
9837 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
9838 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
9839 svr4_ilp32_link_map_offsets instead of
9840 i386_linux_svr4_fetch_link_map_offsets.
9841
9842 2004-03-15 David Carlton <carlton@kealia.com>
9843
9844 Fix for PR c++/1553:
9845 * dwarf2read.c (read_structure_type): Determine type name by
9846 calling determine_class_name.
9847 (determine_class_name): New.
9848 (determine_prefix): Look at TYPE_TAG_NAME and call
9849 determine_class_name when appropriate.
9850 (determine_prefix_aux, class_name): Delete.
9851 (read_namespace): Set die->type.
9852
9853 2004-03-15 Kevin Buettner <kevinb@redhat.com>
9854
9855 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
9856 unused macro definition. The definition in target.h (or perhaps
9857 elsewhere) takes precedence.
9858
9859 2004-03-15 Andrew Cagney <cagney@redhat.com>
9860
9861 * ppc-tdep.h: Update copyright.
9862 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
9863 function signatures to match "regsets.h".
9864 * ppc-linux-tdep.c: Include "regset.h".
9865 (ELF_GREGSET_SIZE): Delete.
9866 (right_supply_register): New function.
9867 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
9868 using right_supply_register.
9869 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
9870 functions.
9871 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
9872 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
9873 (_initialize_ppc_linux_tdep): Do not register
9874 ppc_linux_regset_core_fns.
9875 (ppc_linux_regset_from_core_section): Replace
9876 fetch_core_registers.
9877 (ppc_linux_regset_core_fns): Delete.
9878 * ppc-linux-nat.c: (right_fill_reg): New function.
9879 (supply_gregset): Update call to ppc_linux_supply_gregset.
9880 (fill_gregset): Clear the register set, use right_fill_reg.
9881 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
9882 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
9883
9884 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
9885 unsigned.
9886
9887 2004-03-15 Andrew Cagney <cagney@redhat.com>
9888
9889 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
9890 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
9891 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
9892 and register_gdbarch_data.
9893 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
9894 (struct gdbarch_data): Replace "init" by "pre_init" and
9895 "post_init".
9896 * gdbarch.h, gdbarch.c: Re-generate.
9897 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
9898 with"obstack", use OBSTACK_ZALLOC.
9899 (dwarf2_frame_ops): Delete.
9900 (dwarf2_frame_set_init_reg): Use gdbarch_data.
9901 (dwarf2_frame_init_reg): Use gdbarch_data.
9902 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
9903 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
9904 (_initialize_svr4_solib): Update.
9905 * user-regs.c (_initialize_user_regs): Update.
9906 * reggroups.c (_initialize_reggroup): Update.
9907 * regcache.c (_initialize_regcache): Update.
9908 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
9909 * libunwind-frame.c (_initialize_libunwind_frame): Update.
9910 * gnu-v3-abi.c (init_gnuv3_ops): Update.
9911 * frame-unwind.c (_initialize_frame_unwind): Update.
9912 * frame-base.c (_initialize_frame_base): Update.
9913 * user-regs.c (user_reg_add): Update.
9914 * reggroups.c (reggroup_add): Update.
9915 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
9916 * libunwind-frame.c (libunwind_frame_set_descr): Update.
9917 * frame-unwind.c (frame_unwind_append_sniffer): Update.
9918 * frame-base.c (frame_base_table): Update.
9919 * remote.c (_initialize_remote): Update.
9920 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
9921
9922 2004-03-15 Andrew Cagney <cagney@redhat.com>
9923
9924 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
9925
9926 2004-03-15 Kevin Buettner <kevinb@redhat.com>
9927
9928 * Makefile.in (frv-linux-tdep.o): Add dependencies.
9929 * frv-linux-tdep.c: New file.
9930 * frv-tdep.c (struct gdbarch_tdep): Add new field
9931 ``sigcontext_reg_addr''.
9932 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
9933 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
9934 (frv_sigramp_frame_sniffer): New functions.
9935 (frv_sigtramp_frame_unwind): New static global.
9936 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
9937 sniffers.
9938 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
9939 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
9940
9941 2004-03-15 Kevin Buettner <kevinb@redhat.com>
9942
9943 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
9944 but not via a call to error(), when unable to read memory.
9945
9946 2004-03-15 Kevin Buettner <kevinb@redhat.com>
9947
9948 * frv-tdep.c (frv_call_dummy_words): Delete.
9949 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
9950
9951 2004-03-15 Andrew Cagney <cagney@redhat.com>
9952
9953 * infrun.c (handle_step_into_function, step_over_function): Only
9954 update and use STEP_FRAME_ID when the system is using legacy
9955 frames. Update comments.
9956
9957 2004-03-14 Mark Kettenis <kettenis@gnu.org>
9958
9959 * amd64-linux-tdep.h: Remove file.
9960 * amd64-linux-tdep.c: Don't include "inferior.h" and
9961 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
9962 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
9963 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
9964 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
9965 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
9966 macros.
9967 (user_to_gdb_regmap): Remove variable.
9968 (amd64_linux_gregset_reg_offset): New variable.
9969 (amd64_core_fns): Remove variable.
9970 (fetch_core_registers): Remove function.
9971 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
9972 functions.
9973 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
9974 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
9975 * Makefile.in (amd64_linux_tdep_h): Remove.
9976 (amd64-linux-nat.o): Update dependencies.
9977 (amd64-linux-tdep.o): Update dependencies.
9978
9979 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
9980 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
9981 functions.
9982 (fetch_inferior_registers, store_inferior_registers): Rewrite.
9983
9984 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
9985 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
9986
9987 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
9988
9989 * dwarf2read.c (read_structure_type): Rename from
9990 read_structure_scope. Don't create a symbol or call process_die.
9991 Return immediately if die->type is set. Call read_type_die before
9992 dwarf2_add_member_fn.
9993 (process_structure_scope): New function.
9994 (read_enumeration_type, process_enumeration_scope): New functions,
9995 broken out from read_enumeration. Don't create the enumeration
9996 type if it has already been created.
9997 (read_enumeration): Removed.
9998 (process_die): Call read_structure_type, process_structure_scope,
9999 read_enumeration_type, and process_enumeration_scope. Just call
10000 new_symbol for base and subrange types. Add a comment about other
10001 type dies.
10002 (read_type_die): Call read_enumeration_type.
10003 (add_partial_structure, new_symbol): Update comments.
10004
10005 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10006
10007 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
10008
10009 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10010
10011 * tui/tui-win.h (tui_get_cmd_list): Declare.
10012 * tui/tui-win.c (tui_command): New function.
10013 (tui_get_cmd_list): New function.
10014 (_initialize_tui_win): Moved initialization of tui command in
10015 tui_get_cmd_list.
10016
10017 * tui/tui-data.c (init_content_element): Setup new data members.
10018 (init_win_info): Likewise.
10019 (free_content_elements): Free it.
10020 * tui/tui-data.h (struct tui_data_element): Store the register
10021 content to print.
10022 (struct tui_data_info): Keep the current register group.
10023
10024 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
10025
10026 * tui/tui-regs.h (tui_show_registers): Update prototype.
10027 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
10028 (tui_resize_all): No need to calculate anything for register window.
10029 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
10030 (tui_set_register_element, tui_set_general_regs_content): Remove.
10031 (tui_set_special_regs_content): Remove.
10032 (tui_set_general_and_special_regs_content): Remove.
10033 (tui_set_float_regs_content): Remove.
10034 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
10035 (tui_set_regs_content): Remove.
10036 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
10037 (tui_v_show_registers_command_support): Remove.
10038 (tui_show_registers): Use a reggroup to specify the registers to show.
10039 (tui_show_register_group): New function.
10040 (tui_display_registers_from): Compute the layout of register window
10041 and refresh with new API; be sure to delete old register windows.
10042 (tui_check_register_values): Update to use tui_get_register and
10043 tui_display_data.
10044 (tui_display_register): Just refresh the register window part.
10045 (tui_register_format): Format registers and save in tui_data_element.
10046 (tui_get_register): New to combine tui_reg_value_has_changed and
10047 tui_get_register_raw_value; fix to use the new gdb API.
10048 (tui_show_float_command): Renamed tui_reg_float_command.
10049 (tui_show_general_command): Renamed tui_reg_general_command.
10050 (tui_show_special_command): Renamed tui_reg_system_command.
10051 (_initialize_tui_regs): Remove unused commands.
10052
10053 2004-03-13 Mark Kettenis <kettenis@gnu.org>
10054
10055 * NEWS (New native configurations): Mention OpenBSD/amd64.
10056
10057 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
10058 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
10059 Remove defines.
10060 * config/i386/nm-fbsd64.h: Likewise.
10061 * config/i386/nm-obsd.h: Likewise.
10062 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
10063 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
10064
10065 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10066
10067 * frv-tdep.c (set_variant_scratch_registers): New function.
10068 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
10069 New constants.
10070
10071 From Richard Sandiford <rsandifo@redhat.com>:
10072 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
10073
10074 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10075
10076 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
10077 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
10078 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
10079 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
10080 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
10081 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
10082 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
10083 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
10084 definitions from frv-tdep.c to frv-tdep.h.
10085
10086 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10087
10088 Add shared library support for FR-V FDPIC ABI:
10089 * Makefile.in (solib-frv.o): Add dependencies.
10090 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
10091 New functions.
10092 (frv_push_dummy_call): Add support for FDPIC ABI.
10093 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
10094 for FDPIC ABI.
10095 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
10096 (frv_fdpic_find_canonical_descriptor): Declare.
10097 * solib-frv.c: New file.
10098 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
10099 * config/frv/tm-frv.h (solib.h): Include.
10100
10101 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10102
10103 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
10104 (frv-tdep.o): Update dependencies.
10105 * frv-tdep.h: New file.
10106 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
10107 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
10108 constants.
10109 (struct gdbarch_tdep): Add new member ``frv_abi''.
10110 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
10111 functions.
10112 (new_variant): Set ``frv_abi'' field.
10113 (gdb_arch_init): Detect FDPIC executables.
10114
10115 2004-03-12 Mark Kettenis <kettenis@gnu.org>
10116
10117 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
10118 wrapper.
10119
10120 2004-03-11 Andrew Cagney <cagney@redhat.com>
10121
10122 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
10123
10124 2004-03-11 Kevin Buettner <kevinb@redhat.com>
10125
10126 * solist.h (master_so_list): New function.
10127 * solib.c (master_so_list): Likewise.
10128 * solib-svr4.c (enable_break): Iterate over so_list entries
10129 obtained from master list instead of entries obtained directly
10130 via svr4_current_sos().
10131
10132 2004-03-10 Ben Elliston <bje@gnu.org>
10133
10134 * MAINTAINERS: Update my mail address.
10135
10136 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
10137
10138 * remote-m32r-sdi.c: Support hardware watchpoint.
10139
10140 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10141
10142 * user-regs.c: Update copyright years.
10143 (struct user_regs): Rename to gdb_user_regs.
10144 (append_user_reg, builtin_user_regs, user_regs_init)
10145 (user_reg_add, user_reg_map_name_to_regnum)
10146 (usernum_to_user_reg): Update.
10147
10148 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10149
10150 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
10151 (skip_children): New functions.
10152 (locate_pdi_sibling): Call skip_children.
10153
10154 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10155
10156 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
10157 * gdbtypes.c (check_typedef): Update comments.
10158
10159 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10160
10161 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
10162 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
10163 pointer. Update comment about comp_unit_head.
10164 (struct abbrev_info): Shorten two int flags.
10165 (dwarf_alloc_abbrev): Take a CU argument.
10166 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
10167 each time through the loop. Update cleanup argument.
10168 (psymtab_to_symtab_1): Update cleanup call.
10169 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
10170 abbrev_obstack.
10171 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
10172 Just call obstack_free and clear the pointer.
10173
10174 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10175
10176 * infrun.c (handle_inferior_event): Remove short-circuit code for
10177 events in a different thread.
10178
10179 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10180
10181 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
10182 print the whole transfer.
10183 (initialize_targets): Update description of "set debug target".
10184
10185 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
10186
10187 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
10188
10189 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
10190
10191 * MAINTAINERS (write after approval): Add myself.
10192
10193 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
10194
10195 * sh-tdep.c (sh_print_registers_info): Use for loop.
10196 Don't skip multiple registers when a float register is encountered.
10197
10198 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
10199
10200 Fix PR tdep/1291.
10201 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
10202 to official SH documentation.
10203
10204 2004-03-07 Andrew Cagney <cagney@redhat.com>
10205
10206 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
10207 unused function.
10208
10209 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
10210
10211 * arm-tdep.c (thumb_get_next_pc): Handle BX.
10212 (arm_get_next_pc): Handle BX and BLX.
10213
10214 2004-03-07 Andrew Cagney <cagney@redhat.com>
10215
10216 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
10217 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
10218 HPPA_SP_REGNUM.
10219 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
10220 (hppa_target_read_fp): Delete.
10221 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
10222 register_virtual_size, max_register_raw_size,
10223 max_register_virtual_size, register_byte, register_size,
10224 target_read_fp, fp_regnum, and register_bytes. Set register_type
10225 instead of register_virtual_type.
10226 (hppa32_register_type, hppa64_register_type): Replace
10227 hppa32_register_virtual_type and hppa64_register_virtual_type.
10228 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
10229 (HPPA_FP_REGNUM): Define.
10230
10231 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
10232
10233 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
10234 (pa_do_registers_info): Delete.
10235 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
10236 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
10237 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
10238
10239 * infcall.c (legacy_push_dummy_code): Delete #ifdef
10240 GDB_TARGET_IS_HPPA code.
10241 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
10242 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
10243 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
10244 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
10245 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
10246 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
10247 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
10248 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
10249 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
10250 (hppa_frameless_function_invocation, hppa64_store_return_value)
10251 (hppa_store_struct_return, hppa64_extract_return_value)
10252 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
10253 (hppa32_call_dummy_length, hppa64_call_dummy_length)
10254 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
10255 (find_proc_framesize, deposit_21, restore_pc_queue)
10256 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
10257 (rp_saved, pc_in_linker_stub): Delete.
10258
10259 Unconditionally enable 64-bit frame and ABI code.
10260 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
10261 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
10262 push_dummy_frame, fix_call_dummy, push_arguments,
10263 call_dummy_location, extract_return_value, use_struct_convention,
10264 store_return_value, store_struct_return, saved_pc_after_call,
10265 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
10266 frame_chain, frame_chain_valid, frameless_function_invocation,
10267 frame_saved_pc, and pop_frame.
10268
10269 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
10270 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
10271 (hppa_gdbarch_init): Do not set PC_REGNUM.
10272
10273 2004-03-06 Mark Kettenis <kettenis@gnu.org>
10274
10275 * config/alpha/tm-fbsd.h: Remove file.
10276 * config/alpha/fbsd.mt: Tweak comment.
10277 (TM_FILE): Set to tm-alpha.h.
10278
10279 2004-03-05 Andrew Cagney <cagney@redhat.com>
10280
10281 * infrun.c (step_over_function): When non-legacy code, and no
10282 step_frame_id, use the unwinder to get the caller's frame ID.
10283
10284 2004-03-05 Mark Kettenis <kettenis@gnu.org>
10285
10286 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
10287 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
10288 bfd_arch_unknown. Adjust comment.
10289
10290 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
10291 * i386obsd-tdep.c: Correct spelling in comment.
10292 * i386nbsd-tdep.c: Correct spelling in comment.
10293 * sparc-tdep.c: Correct spelling in comments.
10294
10295 2004-03-05 David Carlton <carlton@kealia.com>
10296
10297 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
10298 bug.
10299
10300 2004-03-05 Mark Kettenis <kettenis@gnu.org>
10301
10302 * sparc-tdep.c: Fix typo in comment.
10303
10304 2004-03-04 J. Brobecker <brobecker@gnat.com>
10305
10306 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
10307
10308 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
10309
10310 * dwarf2read.c: Add comment describing memory lifetimes.
10311 (struct dwarf2_pinfo): Update comment.
10312 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
10313 (read_enumeration, new_symbol): Don't use obsavestring.
10314
10315 2004-03-04 Mark Kettenis <kettenis@gnu.org>
10316
10317 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
10318 instead of amd64_fill_fxsave.
10319 * amd64bsd-nat.c (store_inferior_registers): Likewise.
10320 * amd64fbsd-nat.c (fill_fpregset): Likewise.
10321
10322 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
10323 Reorganize code a bit.
10324
10325 2004-03-04 Orjan Friberg <orjanf@axis.com>
10326
10327 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
10328 when the frame pointer is pushed. Don't set the frame pointer's
10329 address on the stack unless it's actually located there.
10330 Set the SRP's address on the stack correctly when the PC is still in
10331 the prologue.
10332 (cris_return_value): New function.
10333 (cris_gdbarch_init): Clear deprecated store_return_value,
10334 extract_return_value.
10335
10336 2004-03-02 Jim Blandy <jimb@redhat.com>
10337
10338 * stabsread.c (reg_value_complaint): The maximum register number
10339 is one less than the number of registers.
10340
10341 2004-03-02 Andrew Cagney <cagney@redhat.com>
10342
10343 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
10344 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
10345 trailing comma and redundant assignment of I386_ST0_REGNUM.
10346 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
10347 32-bit segment registers.
10348
10349 2004-03-01 Andrew Cagney <cagney@redhat.com>
10350
10351 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
10352 use frame_relative_level and get_next_frame.
10353
10354 2004-02-29 Andrew Cagney <cagney@redhat.com>
10355
10356 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
10357 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
10358 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
10359 Delete macro.
10360
10361 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
10362
10363 * inflow.c (terminal_inferior): Don't give up the terminal if we
10364 previously couldn't get the inferior's terminal state.
10365
10366 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
10367
10368 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
10369 PC_REGNUM.
10370
10371 2004-02-28 Andrew Cagney <cagney@redhat.com>
10372
10373 * NEWS: Refer to GDB 6.1.
10374 * README: Refer to GDB 6.1.
10375 * PROBLEMS: Refer to GDB 6.1.
10376
10377 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
10378
10379 * thread-db.c (disable_thread_signals): Remove unused function.
10380
10381 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10382
10383 * amd64-nat.c: Include "gdb_string.h".
10384 (amd64_collect_native_gregset): Zero-extend the 32-bit
10385 general-purpose registers and %eip.
10386
10387 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
10388 * amd64-tdep.c (amd64_collect_fxsave): New function.
10389 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
10390
10391 * i387-tdep.h: Update copyright year.
10392 (i387_collect_fxsave): New prototype.
10393 * i387-tdep.c: Update copyright year.
10394 (i387_collect_fxsave): New function containing most of the code
10395 from i387_fill_fxsave.
10396 (i387_fill_fxsave): Call i387_collect_fxsave.
10397
10398 2004-02-28 Andrew Cagney <cagney@redhat.com>
10399
10400 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
10401 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
10402
10403 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10404
10405 * amd64-tdep.c (amd64_frame_cache): Fix comment.
10406
10407 2004-02-28 Andrew Cagney <cagney@redhat.com>
10408
10409 * utils.c: Use "", instead of <>, to include readline.
10410 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
10411 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
10412 * source.c, solib.c, exec.c, event-top.c: Ditto.
10413 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
10414 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
10415 * Makefile.in: Update all dependencies.
10416 (readline_tilde_h, readline_history_h): Define.
10417 (readline_headers): Delete.
10418
10419 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10420
10421 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
10422 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
10423 "config/i386/tm-lx64.h".
10424
10425 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
10426 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
10427 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
10428
10429 2004-02-28 Andrew Cagney <cagney@redhat.com>
10430
10431 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
10432
10433 * breakpoint.c (_initialize_breakpoint): Use
10434 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
10435 Add help to show command.
10436
10437 2004-02-28 Mark Kettenis <kettenis@gnu.org>
10438
10439 * i386-nat.c: Reformat to be closer to coding standards.
10440 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
10441 `retval'. Make variables `align' and `size' local to while-loop.
10442 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
10443 (_initialize_i386_nat): New prototype.
10444
10445 * tui/tui.c: Include <readline/readline.h> instead of
10446 "readline/readline.h". Include it after <term.h> and
10447 "gdb_curses.h".
10448
10449 2004-02-27 Andrew Cagney <cagney@redhat.com>
10450
10451 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
10452 the new frame unwind code.
10453 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
10454 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
10455 PCOQ_HEAD_REGNUM.
10456
10457 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
10458 "return_value" and "push_dummy_call".
10459 (hppa32_use_struct_convention): Delete unused function.
10460 (hppa32_store_return_value): Delete unused function.
10461 (hppa32_extract_return_value): Delete unused function.
10462 (hppa32_stack_align): Delete function.
10463
10464 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
10465
10466 * coffread.c (enter_linenos): Don't let rawptr reference memory
10467 outside linetab[]'s limits.
10468
10469 2004-02-27 Andrew Cagney <cagney@redhat.com>
10470
10471 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
10472 inferior stack space - the stack needs to grow upwards.
10473 (hppa32_frame_align): New function.
10474 (hppa64_frame_align): Replace hppa_frame_align.
10475 (hppa_gdbarch_init): Update.
10476
10477 2004-02-26 Orjan Friberg <orjanf@axis.com>
10478
10479 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
10480 (dwarf2-frame.h): Include.
10481 (enum cris_regnums): New enum CRIS_FP_REGNUM.
10482 Remove static variables related to ABI setting.
10483 (struct gdbarch_tdep): Remove cris_abi member.
10484 (struct frame_extra_info): Remove.
10485 (cris_unwind_cache, stack_item): New structs.
10486 (cris_frame_unwind, cris_frame_base): New variables.
10487 (push_stack_item, pop_stack_item)
10488 (cris_frame_unwind_cache, cris_frame_this_id)
10489 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
10490 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
10491 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
10492 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
10493 (cris_reg_struct_has_addr): New functions.
10494 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
10495 (cris_frame_saved_pc, cris_saved_pc_after_call,
10496 (cris_store_struct_return, cris_frameless_function_invocation)
10497 (cris_pop_frame, cris_skip_prologue_main)
10498 (cris_abi_original_store_return_value)
10499 (cris_abi_v2_store_return_value)
10500 (cris_abi_original_extract_return_value)
10501 (cris_abi_v2_extract_return_value)
10502 (cris_abi_original_reg_struct_has_addr)
10503 (cris_abi_v2_reg_struct_has_addr)
10504 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
10505 (cris_push_return_address, cris_abi_update): Remove.
10506 (_initialize_cris_tdep): Remove ABI command.
10507 (cris_dump_tdep): Ditto.
10508 (cris_gdbarch_init): Remove ABI command.
10509 Set store_return_value, extract_return_value, push_dummy_code,
10510 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
10511 frame_unwind_append_sniffer, frame_base_set_default.
10512 Clear deprecated init_frame_pc, push_arguments, store_return_value,
10513 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
10514 sizeof_call_dummy_words, get_saved_register, push_return_address,
10515 pop_frame, store_struct_return, frame_init_saved_regs,
10516 init_extra_frame_info, frameless_function_invocation, frame_chain,
10517 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
10518 dummy_write_sp.
10519
10520 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10521
10522 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
10523 * valprint.c (print_hex_chars): Change from static to external.
10524 (print_char_chars): New function.
10525 * printcmd.c (print_scalar_formatted): For integer and enum types
10526 that are longer than LONGEST, perform processing via appropriate
10527 print_*_chars routines.
10528
10529 2004-02-26 Andrew Cagney <cagney@redhat.com>
10530
10531 * Makefile.in: Update dependencies.
10532 Changes from Ulrich Weigand,
10533 * s390-tdep.c: Include "dwarf2-frame.h".
10534 (s390_dwarf2_frame_init_reg): New function.
10535 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
10536 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
10537
10538 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
10539
10540 * breakpoint.c (pending_break_support): New setting variable.
10541 (break_command_1): Account for pending_break_support setting
10542 when creating pending breakpoints.
10543 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
10544 (_initialize_breakpoint): Add "set breakpoint pending" and
10545 "show breakpoint pending" commands.
10546
10547 2004-02-26 Andrew Cagney <cagney@redhat.com>
10548
10549 Fix PR i18n/1570.
10550 * charset.c (backslashable, backslashed, represented): Remove 'e'
10551 from list of escaped characters, not part of ISO-C.
10552
10553 2004-02-25 J. Brobecker <brobecker@gnat.com>
10554
10555 From Peter Schauer <schauer@pdf.de>:
10556 * tui/tui.c: Move system header includes after local includes.
10557 Fixes a build failure on solaris systems.
10558
10559 2004-02-25 J. Brobecker <brobecker@gnat.com>
10560
10561 * configure.in: Refine the previous change.
10562 * configure: Regenerate.
10563
10564 2004-02-25 Mark Kettenis <kettenis@gnu.org>
10565
10566 * amd64-tdep.h: Renamed from x86-64-tdep.h.
10567 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
10568 "amd64-tdep.h" instead of "x86-64-tdep.h".
10569 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10570 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
10571 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
10572 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10573 and "x86-64-tdep.c".
10574 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
10575 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
10576 and "x86-64-tdep.c".
10577 * amd64bsd-nat.c: Update copyright year.
10578 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
10579 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
10580 "x86-64-tdep.h".
10581 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
10582 "x86-64-tdep.h".
10583 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
10584 "x86-64-tdep.h".
10585 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
10586 "x86-64-tdep.h".
10587 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
10588 "x86-64-tdep.h".
10589 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
10590 "x86-64-tdep.h".
10591 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
10592 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
10593 * Makefile.in (amd64_linux_tdep_h): Renamed from
10594 x86_64_linux_tdep_h.
10595 (amd64_tdep_h): Renamed from x86_64_tdep_h.
10596 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
10597 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
10598 (amd64obsd-tdep.o): Update dependencies.
10599 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
10600 dependencies.
10601 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
10602 dependencies.
10603 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
10604 amd64-linux-nat.c amd64-linux-tdep.c.
10605 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
10606 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
10607 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
10608 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
10609 amd64-tdep.o and amd64-linux-tdep.o.
10610 (TM_FILE): Set to tm-linux64.h.
10611 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
10612 (NAT_FILE): Set to nm-linux64.h.
10613 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
10614 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10615 amd64-tdep.o.
10616 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10617 amd64-tdep.o.
10618 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
10619 amd64-tdep.o.
10620
10621 2004-02-25 Roland McGrath <roland@redhat.com>
10622
10623 * remote.c (remote_protocol_qPart_auxv): New variable.
10624 (init_all_packet_configs): Initialize it.
10625 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
10626 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
10627 (show_remote_cmd): Call it.
10628 (_initialize_remote): Initialize commands.
10629 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
10630 service TARGET_OBJECT_AUXV requests.
10631
10632 2004-02-25 J. Brobecker <brobecker@gnat.com>
10633
10634 * configure.in: Make sure that the wborder function is available.
10635 Otherwise, search for it in the cur_colr library.
10636 * configure: Regenerate.
10637
10638 2004-02-25 Andrew Cagney <cagney@redhat.com>
10639
10640 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
10641
10642 2004-02-25 Mark Kettenis <kettenis@gnu.org>
10643
10644 * config/i386/tm-x86-64linux.h: Tweak comments.
10645
10646 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
10647
10648 * MAINTAINERS: Add self to write-after-approval list.
10649
10650 2004-02-25 Andrew Cagney <cagney@redhat.com>
10651
10652 PR cli/1566. Problem found, and fix suggested by David Allan.
10653 * cli/cli-script.c (execute_control_command): Unconditionally
10654 install a cleanup. Default "ret" to "invalid_control". Use
10655 "break" instead of "return" to escape from the switch.
10656
10657 2004-02-24 J. Brobecker <brobecker@gnat.com>
10658
10659 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
10660 with the lines macro defined in term.h on AiX.
10661 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
10662 a collision with the label_width macro defined in term.h on AiX.
10663
10664 2004-02-23 David Mosberger <davidm@hpl.hp.com>
10665
10666 Committed by Kevin Buettner <kevinb@redhat.com>.
10667
10668 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
10669 * ia64-tdep.c (ia64_write_pc): Make it a global function.
10670 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
10671 instead of ia64_write_pc().
10672 * ia64-linux-tdep.c (regcache.h): Include.
10673 (ia64_linux_write_pc): New function.
10674
10675 2004-02-23 Roland McGrath <roland@redhat.com>
10676
10677 * auxv.c (info_auxv_command): Fix typos in error messages.
10678
10679 2004-02-23 Mark Kettenis <kettenis@gnu.org>
10680
10681 * x86-64-tdep.h: Tweak comment.
10682 (enum amd64_regnum): New.
10683 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
10684 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
10685 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
10686 (X86_64_XMM1_REGNUM): Removed.
10687 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
10688 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
10689 prototypes for renamed functions.
10690 * x86-64-tdep.c: Fix typo.
10691 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
10692 register numbers.
10693 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
10694 Use constants from `enum amd64_regnum' for register numbers.
10695 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
10696 (amd64_analyze_prologue, amd64_frame_cache,
10697 amd64_sigtramp_frame_cache): Use constants from `enum
10698 amd64_regnum' for register numbers.
10699 (amd64_supply_fpregset): Adjust for renamed functions.
10700 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
10701 `enum amd64_regnum' for register numbers.
10702 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
10703 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
10704 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
10705 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
10706 (amd64_linux_fill_gregset): Adjust for renamed macros.
10707 (fetch_core_registers): Adjust for renamed functions.
10708 (amd64_linux_init_abi): Adjust for renamed functions.
10709 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
10710 renamed functions.
10711 * amd64-nat.c: Adjust for renamed macros.
10712 * amd64bsd-nat.c (fetch_inferior_registers)
10713 (store_inferior_registers): Use constants from `enum amd64_regnum'
10714 for register numbers. Adjust for renamed variables.
10715 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
10716 renamed variables.
10717 (_initialize_amd64fbsd_nat): Use constants from `enum
10718 amd64_regnum' for register numbers.
10719 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
10720 `enum amd64_regnum' for register numbers.
10721 (amd64fbsd_init_abi): Adjust for renamed functions.
10722 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
10723 `enum amd64_regnum' for register numbers.
10724 (amd64nbsd_init_abi): Adjust for renamed functions.
10725 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
10726 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
10727 `enum amd64_regnum' for register numbers.
10728 (amd64obsd_init_abi): Adjust for renamed functions.
10729 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
10730
10731 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10732
10733 * breakpoint.c (print_one_breakpoint): Do not output spaces
10734 after printing <PENDING> for a pending breakpoint.
10735
10736 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10737
10738 * printcmd.c (print_scalar_formatted): Initialize val_long
10739 to remove compiler warning message.
10740
10741 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
10742
10743 * defs.h (nquery, yquery): New prototypes.
10744 * breakpoint.c (break_command_1): Use new nquery interface.
10745 * utils.c (defaulted_query, nquery, yquery): New functions.
10746
10747 2004-02-23 Andrew Cagney <cagney@redhat.com>
10748
10749 * hppa-tdep.c (hppa_frame_align): New function.
10750 (hppa32_push_dummy_call): New function.
10751 (hppa64_push_dummy_call): New function.
10752 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
10753 disabled.
10754
10755 * infcall.c (legacy_push_dummy_code): Don't call deprecated
10756 FIX_CALL_DUMMY when push_dummy_call is available.
10757 (call_function_by_hand, push_dummy_code): Ditto.
10758
10759 2004-02-22 Andrew Cagney <cagney@redhat.com>
10760
10761 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
10762 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
10763 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
10764 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
10765 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
10766 call_dummy_location to ON_STACK.
10767
10768 2004-02-22 Mark Kettenis <kettenis@gnu.org>
10769
10770 * x86-64-linux-tdep.c: Tweak comment.
10771 (amd64_linux_supply_gregset): Renamed from
10772 x86_64_linux_supply_gresget.
10773 (amd64_linux_fill_gregset): Renamed from
10774 x86_64_linux_fill_gregset.
10775 (fetch_core_registers): Adjust for renamed functions.
10776 (amd64_core_fns): Renamed from x86_64_core_fns.
10777 (amd64_linux_sigtramp_start): Renamed from
10778 x86_64_linux_sigtramp_start.
10779 (amd64_linux_pc_in_sigtramp): Renamed from
10780 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
10781 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
10782 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
10783 (amd64_linux_sigcontext_addr): Renamed from
10784 x86_64_linux_sigcontext_addr.
10785 (amd64_linux_sc_reg_offset): Renamed from
10786 x86_64_linux_sc_reg_offset.
10787 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
10788 Adjust for renamed functions and variables.
10789 (_initialize_amd64_linux_tdep): Renamed from
10790 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
10791 variables.
10792 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
10793 Adjust for renamed functions.
10794
10795 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
10796 from x86_64_linux_gregset64_reg_offset.
10797 (amd64_linux_gregset32_reg_offset): Rename from
10798 x86_64_linux_gregset64_reg_offset.
10799 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
10800 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
10801 (amd64_linux_dr_set_control): Renamed from
10802 x86_64_linux_dr_set_control. Adjust for renamed functions.
10803 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
10804 Adjust for renamed functions.
10805 (amd64_linux_dr_reset_addr): Renamed from
10806 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
10807 (amd64_linux_dr_get_status): Renamed from
10808 x86_64_linux_dr_get_status. Adjust for renamed functions.
10809 (_initialize_amd64_linux_nat): Renamed from
10810 _initialize_x86_64_linux_nat. Adjust for renamed variables and
10811 functions.
10812 * config/i386/nm-x86-64linux.h: Update copyright year.
10813 Adjust for renamed functions.
10814
10815 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
10816 amd64fbsd_sigtramp_start.
10817 (amd64fbsd_sigtramp_end_addr): Renamed from
10818 amd64fbsd_sigtramp_end.
10819 (amd64fbsd_init_abi): Adjust for renamed variables.
10820 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
10821 variables.
10822 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
10823 amd64fbsd_sigtramp_start.
10824 (amd64fbsd_sigtramp_end_addr): Renamed from
10825 amd64fbsd_sigtramp_end.
10826
10827 2004-02-22 Andrew Cagney <cagney@redhat.com>
10828
10829 * hppa-tdep.c (hppa32_return_value): New function.
10830 (hppa64_return_value): New function.
10831 (hppa_gdbarch_init): Set return_value; keep disabled.
10832
10833 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
10834 struct-return and inferior function call methods.
10835
10836 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10837 "frame-base.h".
10838 (struct hppa_frame_cache): Define.
10839 (hppa_frame_cache, hppa_frame_this_id): New functions.
10840 (hppa_frame_prev_register): New function.
10841 (hppa_frame_unwind, hppa_frame_base): New variables.
10842 (hppa_frame_unwind_sniffer): New function.
10843 (hppa_frame_base_address, hppa_unwind_pc): New function.
10844 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
10845 sniffer, and frame base sniffer; keep disabled.
10846 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
10847 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
10848
10849 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
10850 to predicates for "seriously old code".
10851
10852 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
10853 runtime if(0).
10854
10855 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
10856 unsigned.
10857 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
10858
10859 * config/pa/tm-hppa.h: Update copyright.
10860 (DEPRECATED_INIT_FRAME_PC): Delete macro.
10861 (deprecated_init_frame_pc_default): Delete declaration.
10862 (hppa_frame_init_saved_regs): Delete declaration.
10863 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10864 * hppa-tdep.c: Include "arch-utils.h".
10865 (hppa_gdbarch_init): Set deprecated init_frame_pc
10866 and deprecated frame_init_saved_regs.
10867 (hppa_frame_init_saved_regs): Make static.
10868
10869 2004-02-22 Mark Kettenis <kettenis@gnu.org>
10870
10871 Remove old 386BSD support.
10872 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
10873 * configure.host: Remove i[34567]86-*-bsd*.
10874 * configure.tgt: Remove i[34567]86-*-bsd*.
10875 * i386b-nat.c: Removed.
10876 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
10877 (i386b-nat.o): Remove dependencies.
10878
10879 * config/i386/i386bsd.mh: Removed.
10880 * config/i386/i386bsd.mt: Removed.
10881 * config/i386/nm-i386bsd.h: Removed.
10882 * config/i386/tm-i386bsd.h: Removed.
10883 * config/i386/xm-i386bsd.h: Removed.
10884
10885 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
10886
10887 * amd64fbsd-tdep.c: Include "solib-svr4.h".
10888 (amd64fbsd_init_abi): Set link map offsets.
10889 * amd64nbsd-tdep.c: Include "slib-svr4.h".
10890 (amd64nbsd_init_abi): Set link map offsets.
10891 * amd64obsd-tdep.c: Include "solib-svr4.h".
10892 (amd64obsd_init_abi): Set link map offsets.
10893 * i386fbsd-tdep.c: Include "solib-svr4.h".
10894 (i386fbsd_init_abi): Set link map offsets.
10895 * i386nbsd-tdep.c: Include "solib-svr4.h".
10896 (i386nbsdelf_init_abi): Set link map offsets.
10897 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
10898 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
10899 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
10900 solib-legacy.o and core-aout.o. Reformat.
10901 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
10902 solib-svr4.o, solib-legacy.o. Reformat.
10903 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
10904 * config/i386/nbsdelf.mh: Reformat.
10905 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
10906 solib-svr4.o, solib-legacy.o and corelow.o.
10907 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
10908 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
10909 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
10910 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
10911 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
10912 (TM_FILE): Set to tm-fbsd.h.
10913 * config/i386/nbsd.mt (TDEPFILES): Reformat.
10914 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
10915 solib-svr4.o.
10916 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
10917 solib-svr4.o.
10918 (TM_FILE): Set to nm-nbsd.h.
10919 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
10920 Simplify shared library support. Don't include "elf/common.h".
10921 (SVR4_SHARED_LIBS): Don't define.
10922 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
10923 "solib.h".
10924 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
10925 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
10926 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
10927 Don't include "i386/tm-i386.h". Include "solib.h".
10928 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
10929 Don't include "i386/tm-i386.h".
10930 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
10931 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
10932 Include "i386/xm-i386.h".
10933 (HOST_LONG_DOUBLE_FORMAT): Remove.
10934
10935 Fix OpenBSD/i386 sigtramp recognition.
10936 * i386-tdep.h: Update copyright year.
10937 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
10938 (i386bsd_sigtramp_end): New prototypes.
10939 (i386fbsd_sigtramp_start_addr): Renamed from
10940 i386fbsd_sigtramp_start.
10941 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10942 (i386obsd_sigtramp_start_addr): Renamed from
10943 i386obsd_sigtramp_start.
10944 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10945 * i386bsd-tdep.c: Update copyright year.
10946 (i386bsd_pc_in_sigtramp): Make public.
10947 * i386fbsd-nat.c: Update copyright year.
10948 (_initialize_i386fbsd_nat): Adjust for renamed variables.
10949 * i386fbsd-tdep.c: Update copyright year.
10950 (i386fbsd_sigtramp_start_addr): Renamed from
10951 i386fbsd_sigtramp_start.
10952 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
10953 (i386fbsdaout_init_abi): Adjust for renamed variables.
10954 * i386obsd-nat.c: Update copyright year.
10955 (_initialize_i386obsd_nat): Adjust for renamed variables.
10956 * i386obsd-tdep.c: Include "target.h".
10957 (i386obsd_page_size): New variable.
10958 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
10959 (i386obsd_sigtramp_end): New functions.
10960 (i386obsd_sigtramp_start_addr): Renamed from
10961 i386obsd_sigtramp_start.
10962 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
10963 (i386obsd_init_abi): Adjust for renamed variables. Set
10964 pc_in_sigtramp, sigtramp_start and sigtramp_end.
10965 * Makefile.in (i386obsd-tdep.o): Update dependencies.
10966
10967 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
10968 trampoline change in OpenBSD kernel.
10969
10970 * amd64-nat.c: Update copyright year.
10971 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
10972 architecture from REGCACHE.
10973
10974 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
10975 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
10976
10977 2004-02-21 Mark Kettenis <kettenis@gnu.org>
10978
10979 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
10980 i[34567]86-*-openbsd3.[0-3].
10981 * config/i386/obsdaout.mh: New file.
10982
10983 * config/i386/obsd.mh (MH_FLAGS): Remove.
10984
10985 Fix PR build/1549.
10986 * i386obsd-tdep.c: Update copyright years. Include
10987 "solib-svr4.h".
10988 (i386obsd_init_abi): Don't set regset_from_core_section here.
10989 (i386obsd_aout_init_abi): New function. Set
10990 regset_from_core_section here.
10991 (i386obsd_elf_init_abi): New function.
10992 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
10993 * Makefile.in (i386obsd-tdep.o): Update dependecies.
10994 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
10995 (TM_FILE): Set to tm-nbsd.h.
10996
10997 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
10998 solib-sunos.o.
10999
11000 * solib-svr4.h: Update copyright year.
11001 (svr4_ilp32_fetch_link_map_offsets)
11002 (svr4_lp64_fetch_link_map_offsets): New prototype.
11003 * solib-svr4.c: Update copyright year.
11004 (svr4_ilp32_fetch_link_map_offsets)
11005 (svr4_lp64_fetch_link_map_offsets): New function.
11006
11007 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
11008
11009 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
11010 to the partial symbol table.
11011
11012 2004-02-20 J. brobecker <brobecker@gnat.com>
11013
11014 * PROBLEMS: Add description of problem documented under gdb/1560.
11015
11016 2004-02-20 Mark Kettenis <kettenis@gnu.org>
11017
11018 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
11019 comments.
11020 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
11021 functions.
11022 (amd64obsd_init_abi): Reorder initializations. Use
11023 amd64obsd_r_reg_offset to initialize the general-purpose register
11024 set details. Set regset_from_core_section.
11025 (_initialize_amd64obsd_tdep): Rename from
11026 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
11027 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
11028 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
11029
11030 * NEWS (New native configurations): Mention OpenBSD/alpha.
11031 * configure.tgt: Add alpha*-*-openbsd*.
11032 * configure.host: Add alpha*-*-openbsd*.
11033 * alphanbsd-tdep.c: Update copyright year.
11034 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
11035
11036 2004-02-20 Andrew Cagney <cagney@redhat.com>
11037
11038 Fix PR tdep/1372.
11039 * configure.tgt: Delete target "none-*-*".
11040 * configure.host: Delete host "none-*-*".
11041 * config/none/none.mh: Delete file.
11042 * config/none/none.mt: Delete file.
11043 * config/none/xm-none.h: Delete file.
11044 * config/none/tm-none.h: Delete file.
11045 * config/none/nm-none.h: Delete file.
11046
11047 2004-02-19 Fred Fish <fnf@redhat.com>
11048
11049 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
11050 cache->uses_fp prior to setting it.
11051
11052 2004-02-19 Fred Fish <fnf@redhat.com>
11053
11054 Fix for PR breakpoint/1558.
11055 * sh-tdep.c (IS_JSR): New macro.
11056 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
11057
11058 2004-02-19 Jim Blandy <jimb@redhat.com>
11059
11060 * findvar.c (value_from_register): Doc fix.
11061
11062 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
11063
11064 * printcmd.c (print_scalar_formatted): Do not check for sizeof
11065 type being greater than sizeof of host's LONGEST. Always use
11066 unpack_long() unless format 'f' chosen.
11067
11068 2004-02-19 Joel Brobecker <brobecker@gnat.com>
11069
11070 Committed by Elena Zannoni <ezannoni@redhat.com>
11071
11072 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
11073 contains a symbol wich is the best, non-exact match for the given
11074 pc. Update comments.
11075
11076 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
11077
11078 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
11079 macro, which was part of the now removed Mach 3 port.
11080 * utils.c (request_quit): Ditto.
11081
11082 2004-02-18 Mark Kettenis <kettenis@gnu.org>
11083
11084 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
11085 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
11086
11087 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11088
11089 Committed by Mark Kettenis <kettenis@gnu.org>.
11090
11091 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
11092 Define.
11093
11094 2004-02-18 Andrew Cagney <cagney@redhat.com>
11095
11096 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
11097 CONFIG_INSTALL and CONFIG_UNINSTALL.
11098 * configure: Re-generate.
11099 * interps.h (INTERP_TUI): Define.
11100 * Makefile.in: Update dependencies.
11101 (TUI): New macro.
11102 (tui-main.o): Specify dependencies.
11103 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
11104 * tui/tui-main.c: New file.
11105
11106 2004-02-18 Mark Kettenis <kettenis@gnu.org>
11107
11108 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
11109 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
11110 dependencies.
11111 * configure.host: Add x86_64-*-openbsd*.
11112 * configure.tgt: Add x86_64-*-openbsd*.
11113 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
11114
11115 * tui/tui.c: Don't include <malloc.h>.
11116
11117 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
11118 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
11119 amd64nbsd-tdep.c.
11120
11121 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
11122 static. Remove extraneous whitespace.
11123 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
11124 static.
11125
11126 2004-02-17 Jim Blandy <jimb@redhat.com>
11127
11128 * findvar.c (value_from_register): Doc fix.
11129
11130 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11131
11132 Committed by Jim Blandy <jimb@redhat.com>.
11133
11134 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
11135 CORE_ADDR as type for selectors. Correct types for GNU run time
11136 message lookup function to use double indirection.
11137 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
11138 * objc-lang.h (lookup_child_selector): Adapt prototype.
11139
11140 * s390-nat.c (SUBOFF): New macro.
11141 (supply_gregset, fill_gregset): Use it to handle debugging
11142 of 32-bit exectuables running under a 64-bit kernel.
11143 * s390-tdep.c: Include "solib-svr4.h".
11144 (s390_svr4_fetch_link_map_offset): New function.
11145 (s390x_svr_fetch_link_map_offset): Likewise.
11146 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
11147 * Makefile.in (s390-tdep.o): Update dependencies.
11148
11149 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
11150 "frame-unwind.h".
11151 (s390_readinstruction): Reformat. Use read_memory_nobpt.
11152 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
11153 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
11154 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
11155 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
11156 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
11157 S390_SIGNAL_FRAMESIZE,
11158 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
11159 (struct frame_extra_info): Remove.
11160 (s390_memset_extra_info): Remove.
11161 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
11162 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
11163 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
11164 (is_rse): Renamed to ...
11165 (is_rsy): ... this. Support long displacements.
11166 (is_rxe): Renamed to ...
11167 (is_rxy): ... this. Support long displacements.
11168 (compute_x_addr): Support long displacements.
11169 (struct s390_prologue_data): New data type.
11170 (s390_on_stack): Change API to use struct s390_prologue_data.
11171 (s390_store): Reimplement.
11172 (s390_load): New function.
11173 (s390_get_signal_frame_info): Remove.
11174 (s390_get_frame_info): Remove, replace by ...
11175 (s390_analyze_prolog): ... this new function.
11176 (s390_check_function_end): Remove.
11177 (s390_function_start): Remove.
11178 (s390_frameless_function_invokation): Remove.
11179 (s390_is_sigreturn): Remove.
11180 (s390_init_frame_pc_first): Remove.
11181 (s390_init_frame_extra_info): Remove.
11182 (s390_frame_init_saved_regs): Remove.
11183 (s390_frame_saved_pc_nofix): Remove.
11184 (s390_frame_saved_pc): Remove.
11185 (s390_frame_chain): Remove.
11186 (s390_fp_regnum, s390_read_fp): Remove.
11187 (s390_pop_frame_regular, s390_pop_frame): Remove.
11188 (s390_saved_pc_after_call): Remove.
11189 (s390_skip_prologue): Reimplement.
11190 (s390_in_function_epilogue_p): Support long displacements.
11191 (struct s390_unwind_cache): New data structure.
11192 (s390_frame_unwind_cache): New function.
11193 (s390_prologue_frame_unwind_cache): Likewise.
11194 (s390_backchain_frame_unwind_cache): Likewise.
11195 (s390_frame_this_id, s390_frame_prev_register): Likewise.
11196 (s390_frame_unwind): Define.
11197 (s390_frame_sniffer): New function.
11198 (struct s390_pltstub_unwind_cache): New data structure.
11199 (s390_pltstub_frame_unwind_cache): New function.
11200 (s390_pltstub_frame_this_id): Likewise.
11201 (s390_pltstub_frame_prev_register): Likewise.
11202 (s390_pltstub_frame_unwind): Define.
11203 (s390_pltstub_frame_sniffer): New function.
11204 (struct s390_sigtramp_unwind_cache): New data structure.
11205 (s390_sigtramp_frame_unwind_cache): New function.
11206 (s390_sigtramp_frame_this_id): Likewise.
11207 (s390_sigtramp_frame_prev_register): Likewise.
11208 (s390_sigtramp_frame_unwind): Define.
11209 (s390_sigtramp_frame_sniffer): New function.
11210 (s390_frame_base_address, s390_local_base_address): New functions.
11211 (s390_frame_base): Define.
11212 (s390_unwind_pc, s390_unwind_sp): New function.
11213 (s390_push_dummy_call): Use new frame base location.
11214 (s390_unwind_dummy_id): Likewise.
11215 (s390_gdbarch_init): Remove calls to:
11216 set_gdbarch_frameless_function_invocation,
11217 set_gdbarch_deprecated_init_frame_pc,
11218 set_gdbarch_deprecated_frame_chain,
11219 set_gdbarch_deprecated_frame_init_saved_regs,
11220 set_gdbarch_deprecated_pop_frame,
11221 set_gdbarch_deprecated_init_extra_frame_info,
11222 set_gdbarch_deprecated_init_frame_pc_first,
11223 set_gdbarch_deprecated_target_read_fp,
11224 set_gdbarch_deprecated_frame_saved_pc,
11225 set_gdbarch_deprecated_saved_pc_after_call,
11226 set_gdbarch_deprecated_fp_regnum.
11227 Add calls to:
11228 set_gdbarch_in_solib_call_trampoline,
11229 frame_unwind_append_sniffer,
11230 frame_base_set_default,
11231 set_gdbarch_unwind_pc,
11232 set_gdbarch_unwind_sp.
11233 * Makefile.in (s390-tdep.o): Update dependencies.
11234
11235 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
11236 (S390_STACK_FRAME_OVERHEAD): Remove.
11237 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
11238 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
11239 (s390_promote_integer_argument): Remove.
11240 (s390_cannot_extract_struct_value_address): Remove.
11241 (s390_use_struct_convention, s390_store_struct_return): Remove.
11242 (s390_extract_return_value, s390_store_return_value): Remove.
11243 (s390_return_value_convention, s390_return_value): New functions.
11244 (is_float_singleton): Handle typedefs.
11245 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
11246 Remove, replace by ...
11247 (s390_function_arg_pass_by_reference, s390_function_arg_float,
11248 s390_function_arg_integer): ... these new functions.
11249 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
11250 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
11251 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
11252 Fill in tdep->abi.
11253 Remove calls to:
11254 set_gdbarch_deprecated_store_struct_return,
11255 set_gdbarch_deprecated_extract_return_value,
11256 set_gdbarch_deprecated_store_return_value,
11257 set_gdbarch_use_struct_convention,
11258 set_gdbarch_extract_struct_value_address,
11259 set_gdbarch_deprecated_pc_in_call_dummy,
11260 set_gdbarch_deprecated_push_arguments,
11261 set_gdbarch_deprecated_save_dummy_frame_tos,
11262 set_gdbarch_deprecated_push_return_address,
11263 set_gdbarch_deprecated_sizeof_call_dummy_words,
11264 set_gdbarch_deprecated_call_dummy_words,
11265 set_gdbarch_deprecated_dummy_write_sp.
11266 Add calls to:
11267 set_gdbarch_push_dummy_call,
11268 set_gdbarch_unwind_dummy_id,
11269 set_gdbarch_return_value.
11270
11271 * config/s390/nm-linux.h: Update comments.
11272 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
11273 (STOPPED_BY_WATCHPOINT): Redefine.
11274 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
11275 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
11276 (s390_stopped_by_watchpoint): Likewise.
11277 (watch_area_cnt): Remove.
11278 * s390-nat.c: Update comments.
11279 (watch_area): Remove typedef.
11280 Global replace watch_area by struct watch_area.
11281 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
11282 (s390_stopped_by_watchpoint): Remove pid argument,
11283 use s390_inferior_tid. Add short-cut for the no watchpoint case.
11284 (s390_fix_watch_points): Remove pid argument,
11285 use s390_inferior_tid. Recompute area spanned by watchpoints.
11286 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
11287 argument. Reimplement.
11288
11289 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
11290 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
11291 (FETCH_INFERIOR_REGISTERS): Define.
11292 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
11293 core-regset.o.
11294 * config/s390/s390x.mt: Remove.
11295 * config/s390/tm-s390.h: Remove.
11296 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
11297 (TARGET_ELF64): Remove.
11298 (SKIP_TRAMPOLINE_CODE): Do not undefine.
11299 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
11300 s390*-*-* case; always set gdb_target to s390.
11301 * regformats/reg-s390.dat: Remove control registers.
11302 * regformats/reg-s390x.dat: Likewise.
11303 * s390-tdep.h: New file.
11304 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
11305 Include "inferior.h" and "s390-tdep.h".
11306 Remove private definition of offsetof.
11307 (s390_register_u_addr): Remove.
11308 (regmap_gregset, regmap_fpregset): Define.
11309 (supply_gregset, fill_gregset): Reimplement.
11310 (supply_fpregset, fill_fpregset): Likewise.
11311 (s390_inferior_tid): New function.
11312 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
11313 (fetch_inferior_registers, store_inferior_registers): Likewise.
11314 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
11315 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
11316 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
11317 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
11318 (struct gdbarch_tdep): Define.
11319 (struct s390_register_info): Define.
11320 (s390_register_info): New variable.
11321 (s390_register_name): Reimplement.
11322 (s390_register_type): New function.
11323 (s390_register_raw_size, s390x_register_raw_size): Remove.
11324 (s390_cannot_fetch_register): Remove.
11325 (s390_register_byte): Remove.
11326 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
11327 (s390_dwarf_regmap): New variable.
11328 (s390_dwarf_reg_to_regnum): New function.
11329 (s390_stab_reg_to_regnum): Remove.
11330 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
11331 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
11332 (s390_convert_register_p): Likewise.
11333 (s390_register_to_value, s390_value_to_register): Likewise.
11334 (s390_register_reggroup_p): Likewise.
11335 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
11336 s390_gregset, s390x_gregset, s390_fpregset): New variables.
11337 (s390_supply_regset, s390_regset_from_core_section): New functions.
11338 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
11339 (S390_FPR_SIZE): Likewise.
11340 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
11341 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
11342 (S390_NUM_GPRS): Move here from tm-s390.h.
11343 (S390_NUM_FPRS): Likewise.
11344 (s390_in_function_epilogue_p): New function.
11345 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
11346 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
11347 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
11348 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
11349 Replace S390_FP_REGNUM by S390_SP_REGNUM.
11350 Remove calls to:
11351 set_gdbarch_deprecated_max_register_raw_size,
11352 set_gdbarch_deprecated_max_register_virtual_size,
11353 set_gdbarch_deprecated_register_byte,
11354 set_gdbarch_cannot_fetch_register,
11355 set_gdbarch_cannot_store_register,
11356 set_gdbarch_deprecated_register_size,
11357 set_gdbarch_deprecated_register_raw_size,
11358 set_gdbarch_deprecated_register_virtual_size,
11359 set_gdbarch_deprecated_register_virtual_type,
11360 set_gdbarch_deprecated_register_bytes.
11361 Add calls to:
11362 set_gdbarch_num_pseudo_regs,
11363 set_gdbarch_register_type,
11364 set_gdbarch_convert_register_p,
11365 set_gdbarch_register_to_value,
11366 set_gdbarch_value_to_register,
11367 set_gdbarch_register_reggroup_p,
11368 set_gdbarch_regset_from_core_section,
11369 set_gdbarch_pseudo_register_read,
11370 set_gdbarch_pseudo_register_write,
11371 set_gdbarch_in_function_epilogue_p.
11372 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
11373 (s390_tdep_h): New variable.
11374
11375 2004-02-17 Jim Blandy <jimb@redhat.com>
11376
11377 * findvar.c (value_from_register): If the type has no length, just
11378 return an acceptable value --- don't report an internal error.
11379
11380 * stabsread.c (read_type): If we find any type numbers that are
11381 forward references, complain if the references aren't resolved by
11382 the time we're finished reading.
11383 (cleanup_undefined_types): Make error message more appropriate for
11384 a complaint.
11385
11386 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
11387
11388 * Makefile.in (defs_h): Remove dependency on progress_h.
11389 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
11390 progress.h.
11391 * main.c (captured_main): Delete use of START_PROGRESS and
11392 END_PROGRESS.
11393
11394 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
11395
11396 * objfiles.c (terminate_minimal_symbol_table): Add back
11397 initialization of MSYMBOL_TYPE.
11398
11399 2004-02-17 David Mosberger <davidm@hpl.hp.com>
11400
11401 Committed by Andrew Cagney.
11402 * Makefile.in (ia64_tdep_h): New macro.
11403 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
11404 (ia64-tdep.o): Likewise.
11405 * ia64-tdep.h: New file.
11406 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
11407 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
11408 (ia64_aix_sigcontext_register_address): Likewise.
11409 (ia64_linux_getunwind_table): Delete declaration.
11410 * ia64-linux-tdep.c: Likewise.
11411
11412 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
11413
11414 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
11415 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
11416 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
11417
11418 2004-02-17 Andrew Cagney <cagney@redhat.com>
11419
11420 * symtab.c (skip_prologue_using_sal): New function.
11421 * symtab.h (skip_prologue_using_sal): Declare.
11422 * frv-tdep.c: Include "symtab.h".
11423 (skip_prologue_using_sal): Delete function.
11424 * mips-tdep.c (skip_prologue_using_sal): Delete function.
11425 * rs6000-tdep.c (refine_prologue_limit): Mention
11426 skip_prologue_using_sal.
11427 * ia64-tdep.c (refine_prologue_limit): Ditto.
11428 * Makefile.in: Update dependencies.
11429
11430 2004-02-16 Andrew Cagney <cagney@redhat.com>
11431
11432 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
11433 START_INFERIOR_TRAPS_EXPECTED.
11434 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
11435 START_INFERIOR_TRAPS_EXPECTED.
11436 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
11437 Delete macro.
11438 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
11439 macro, moved to "nm-osf.h". Update copyright.
11440 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
11441 update copyright.
11442
11443 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
11444 and function replacing FRAMELESS_FUNCTION_INVOCATION.
11445 * blockframe.c (legacy_frameless_look_for_prologue): Rename
11446 frameless_look_for_prologue.
11447 * frame.h (legacy_frameless_look_for_prologue): Rename
11448 frameless_look_for_prologue.
11449 * gdbarch.h, gdbarch.c: Re-generate.
11450 * sh64-tdep.c (sh64_gdbarch_init): Update.
11451 * sh-tdep.c (sh_gdbarch_init): Update.
11452 * s390-tdep.c (s390_gdbarch_init): Update.
11453 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11454 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11455 * m68k-tdep.c (m68k_gdbarch_init): Update.
11456 (delta68_frame_args_address): Update.
11457 * m32r-tdep.c (m32r_gdbarch_init): Update.
11458 * hppa-tdep.c (hppa_gdbarch_init): Update.
11459 * h8300-tdep.c (h8300_gdbarch_init): Update.
11460 * frv-tdep.c (frv_gdbarch_init): Update.
11461 (frv_frameless_function_invocation): Update.
11462 * cris-tdep.c (cris_gdbarch_init): Update.
11463 (cris_frameless_function_invocation): Update.
11464 * avr-tdep.c (avr_gdbarch_init): Update.
11465 * arm-tdep.c (arm_gdbarch_init): Update.
11466 * stack.c (frame_info): Update, call predicate.
11467 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
11468 * frame.c (legacy_get_prev_frame): Update, call predicate..
11469 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
11470 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
11471 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
11472 invocation.
11473 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11474 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11475 * vax-tdep.c (vax_gdbarch_init): Ditto.
11476
11477 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
11478 function.
11479
11480 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
11481
11482 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
11483 initializations.
11484
11485 2004-02-16 Andrew Cagney <cagney@redhat.com>
11486
11487 * tui/tui-windata.c: Include "gdb_string.h".
11488 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
11489 * tui/tui-layout.c, tui/tui-command.c: Ditto.
11490 * Makefile.in: Update dependencies.
11491
11492 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
11493
11494 * Makefile.in (infrun.o): Add $(gdb_assert_h).
11495 * infrun.c: Include "gdb_assert.h".
11496 (singlestep_ptid, saved_singlestep_ptid)
11497 (stepping_past_singlestep_breakpoint): New variables.
11498 (resume): Set singlestep_ptid. Check for singlestep thread
11499 hop.
11500 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
11501 (handle_inferior_event): Handle singlestep thread hop.
11502
11503 2004-02-16 Andrew Cagney <cagney@redhat.com>
11504
11505 * dwarf2-frame.c (dwarf2_frame_ops): New function.
11506 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
11507 (dwarf2_frame_init_reg): Ditto.
11508
11509 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
11510 suggested by Joshua Neuheisel
11511
11512 * configure.in: Always check for curses, including pdcurses.
11513 Warn, instead of error, when no curses are found. Enable TUI when
11514 curses is available.
11515 * configure: Re-generate.
11516
11517 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
11518
11519 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
11520 sh_sh4_register_convert_to_virtual.
11521 (sh_register_convert_to_raw): Rename from
11522 sh_sh4_register_convert_to_raw.
11523 (sh_pseudo_register_read): Accomodate above name change.
11524 (sh_pseudo_register_write): Ditto.
11525
11526 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
11527
11528 * sh-tdep.c (sh_generic_register_name): Remove.
11529 (sh_gdbarch_init): Use sh_sh_register_name in default case.
11530
11531 2004-02-15 Andrew Cagney <cagney@redhat.com>
11532
11533 * configure.in (build_warnings): Add -Wunused-function.
11534 * configure: Re-generate.
11535
11536 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
11537 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
11538
11539 * procfs.c (procfs_init_inferior): Assume that
11540 START_INFERIOR_TRAPS_EXPECTED is defined.
11541 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
11542 * config/ns32k/tm-nbsd.h: Delete file,
11543 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
11544
11545 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
11546 * config/vax/tm-vax.h: Delete file.
11547
11548 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11549 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11550 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11551 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11552 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
11553 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
11554 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
11555
11556 2004-02-15 Mark Kettenis <kettenis@gnu.org>
11557
11558 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
11559 * dwarf2-frame.c (dwarf2_frame_data): New variable.
11560 (struct dwarf2_frame_ops): New.
11561 (dwarf2_frame_default_init_reg): New function, based on
11562 dwarf2_frame_init_reg.
11563 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
11564 (dwarf2_frame_init_reg): Call architecture-specific function.
11565 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
11566 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
11567 instead of dwarf2_frame_data.
11568 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
11569 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
11570
11571 2004-02-15 Andrew Cagney <cagney@redhat.com>
11572
11573 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
11574 register_gdbarch_swap.
11575 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
11576 * f-lang.c (_initialize_f_language): Update, use
11577 DEPRECATED_REGISTER_GDBARCH_SWAP.
11578 * remote.c (_initialize_remote): Ditto.
11579 * regcache.c (_initialize_regcache): Ditto.
11580 * parse.c (_initialize_parse): Ditto.
11581 * infrun.c (_initialize_infrun): Ditto.
11582 * mi/mi-main.c (_initialize_mi_main): Ditto.
11583 * gdbtypes.c (_initialize_gdbtypes): Ditto.
11584
11585 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
11586 poking .cacheable directly.
11587 * symfile.c (symfile_bfd_open): Ditto.
11588
11589 * Makefile.in: Update all dependencies.
11590
11591 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
11592 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
11593 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
11594 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
11595 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
11596
11597 2004-02-14 Andrew Cagney <cagney@redhat.com>
11598
11599 * arch-utils.c (legacy_convert_register_p): Check
11600 DEPRECATED_REGISTER_CONVERTIBLE_P.
11601 * findvar.c (value_of_register): Ditto.
11602
11603 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
11604 * gdbarch.h, gdbarch.c: Re-generate.
11605 * arch-utils.c (deprecated_register_convertible_not): Delete.
11606 * arch-utils.h (deprecated_register_convertible_not): Delete.
11607 * mi/mi-main.c (get_register): Update. Update copyright.
11608 * infcmd.c (default_print_registers_info): Update.
11609
11610 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11611 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
11612 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
11613 * gdbarch.h, gdbarch.c: Re-generate.
11614 * frame.c (deprecated_get_next_frame_hack): Delete function.
11615 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
11616 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
11617 Update.
11618 * infcall.c (call_function_by_hand): Update.
11619
11620 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
11621
11622 * symfile.c (init_entry_point_info, entry_point_address): Move
11623 from here...
11624 * objfiles.c (init_entry_point_info, entry_point_address):..to
11625 here.
11626 * symfile.h (init_entry_point_info, entry_point_address): Remove
11627 prototypes.
11628 * objfiles.h (init_entry_point_info, entry_point_address):Add
11629 prototypes.
11630 * cris-tdep.c: Remove include of symfile.h. Add include of
11631 objfiles.h.
11632 * infcall.c: Ditto.
11633 * mcore-tdep.c: Ditto.
11634 * mn10300-tdep.c: Ditto.
11635 * sh64-tdep.c: Ditto.
11636 * v850-tdep.c: Ditto.
11637 * arm-tdep.c: Remove include of symfile.h.
11638 * blockframe.c: Ditto.
11639 * coffread.c: Ditto.
11640 * dbxread.c: Ditto.
11641 * dwarf2read.c: Ditto.
11642 * dwarfread.c: Ditto.
11643 * frv-tdep.c: Ditto.
11644 * ia64-tdep.c: Ditto.
11645 * mdebugread.c: Ditto.
11646 * mipsread.c: Ditto.
11647 * rs6000-tdep.c: Ditto.
11648 * s390-tdep.c: Ditto.
11649 * sh-tdep.c: Ditto.
11650 * xstormy16-tdep.c: Ditto.
11651 * gdbarch.sh: Remove include of symfile.h.
11652 * gdbarch.c: Regenerate.
11653 * solib-irix.c (enable_break): Use entry_point_address().
11654 Add comment about include file.
11655 * xcoffread.c: Add comment about include file.
11656 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
11657 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
11658 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
11659 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
11660 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
11661
11662 2004-02-13 Andrew Cagney <cagney@redhat.com>
11663
11664 * corelow.c (core_xfer_partial): Use "struct bfd_section".
11665 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
11666 copyright.
11667 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
11668
11669 2004-02-12 Fred Fish <fnf@redhat.com>
11670
11671 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
11672 set_gdbarch_store_return_value.
11673
11674 2004-02-12 Andrew Cagney <cagney@redhat.com>
11675
11676 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
11677 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
11678 (interrupt_query): Ditto.
11679 (ofunc): Delete unused variable.
11680 * cris-tdep.c (cris_abi): Delete unused function.
11681 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
11682 (cris_get_wide_opcode, cris_get_short_size): Ditto.
11683 (cris_get_asr_quick_shift_steps): Ditto.
11684 (cris_skip_prologue_frameless_p): Ditto.
11685 * arm-tdep.c (arm_push_return_address): Delete unused function.
11686 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
11687 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
11688 * s390-tdep.c (s390_function_start): Delete unused function.
11689
11690 2004-02-12 Andrew Cagney <cagney@redhat.com>
11691
11692 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
11693 gdbarch.h, gdbarch.c: Re-generate.
11694 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
11695 to generic_prologue_frameless_p.
11696 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
11697 * arch-utils.c (generic_prologue_frameless_p): Delete function.
11698
11699 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
11700
11701 * mips-linux-tdep.c: Include "frame.h".
11702 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
11703 (mips_linux_skip_resolver): New functions.
11704 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
11705 and set_gdbarch_in_solib_call_trampoline.
11706 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
11707 to after set_gdbarch_in_solib_return_trampoline. Only set the
11708 solib hooks to mips16 functions if the OS ABI is unknown.
11709 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
11710 including "config/tm-linux.h".
11711 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
11712 * Makefile.in (mips-linux-tdep.o): Update.
11713
11714 2004-02-11 David Carlton <carlton@kealia.com>
11715
11716 * linespec.c (decode_compound): Only look for a class symbol when
11717 considering all but the rightmost component.
11718
11719 2004-02-11 Andrew Cagney <cagney@redhat.com>
11720
11721 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
11722 abi code are are separatly grouped.
11723
11724 2004-02-11 Andrew Cagney <cagney@redhat.com>
11725
11726 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
11727 * gdbarch.h, gdbarch.c: Re-generate.
11728 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11729 * v850-tdep.c (v850_gdbarch_init): Update.
11730 * sh64-tdep.c (sh64_gdbarch_init): Update.
11731 * sh-tdep.c (sh_gdbarch_init): Update.
11732 * s390-tdep.c (s390_gdbarch_init): Update.
11733 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11734 * mips-tdep.c (mips_gdbarch_init): Update.
11735 * mcore-tdep.c (mcore_gdbarch_init): Update.
11736 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11737 * m32r-tdep.c (m32r_gdbarch_init): Update.
11738 * ia64-tdep.c (ia64_gdbarch_init): Update.
11739 * hppa-tdep.c (hppa_gdbarch_init): Update.
11740 * h8300-tdep.c (h8300_gdbarch_init): Update.
11741 * frv-tdep.c (frv_gdbarch_init): Update.
11742 * d10v-tdep.c (d10v_gdbarch_init): Update.
11743 * cris-tdep.c (cris_gdbarch_init): Update.
11744 * avr-tdep.c (avr_gdbarch_init): Update.
11745 * arm-tdep.c (arm_gdbarch_init): Update.
11746 * alpha-tdep.c (alpha_gdbarch_init): Update.
11747
11748 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
11749
11750 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
11751 comma.
11752 (sh_sh4al_dsp_register_name): Ditto.
11753
11754 2004-02-10 Andrew Cagney <cagney@redhat.com>
11755
11756 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
11757 (mips_init_frame_pc_first): Delete function.
11758 (mips_frame_saved_pc): Delete function.
11759 (mips_frame_chain): Delete function.
11760 (mips_init_extra_frame_info): Delete function.
11761 (mips_xfer_register): Delete unused variable "reg".
11762 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
11763 (mips_n32n64_return_value): Delete unused variable "reg".
11764 (mips_n32n64_return_value): Delete unused variable "pos".
11765 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
11766 (mips_o32_return_value): Delete unused variable "pos".
11767 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
11768 (mips_print_fp_register): Delete unused variable "namelen"
11769 (mips_print_fp_register): Delete unused variable "flt2"
11770 (get_frame_pointer): Delete function.
11771 (cached_proc_desc): Delete static variable.
11772 (mips_pop_frame): Delete function.
11773 (mips_find_saved_regs): Delete function.
11774 (mips_get_saved_register): Delete function.
11775 (mips_saved_pc_after_call): Delete function.
11776 (SIGFRAME_BASE): Delete macro.
11777 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
11778 (SIGFRAME_PC_OFF): Delete macro.
11779 (SIGFRAME_REGSAVE_OFF): Delete macro.
11780 (mips_dump_tdep): Do not print deleted macro definitions.
11781
11782 2004-02-10 Andrew Cagney <cagney@redhat.com>
11783
11784 * Makefile.in (SFILES): Remove explictly listed tui files.
11785 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
11786
11787 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
11788
11789 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
11790 to use paddr functions to format ia64 addresses and long values.
11791 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
11792 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
11793 (get_kernel_table, ia64_find_proc_info_x): Ditto.
11794 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
11795 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
11796
11797 2004-02-10 Andrew Cagney <cagney@redhat.com>
11798
11799 * defs.h: Do not include "tui.h".
11800 * gdb_curses.h: New file.
11801 * tui/tui-hooks.h: New file.
11802 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
11803 (tui_install_hooks, tui_remove_hooks): Delete declarations.
11804 (tui_initialize_io): Delete declaration.
11805 (tui_initialize_readline: Delete redundant declaration.
11806 (struct tui_point): Delete definition.
11807 * tui/tui-data.h (struct tui_point): Define.
11808 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
11809 * utils.c: Include "tui/tui.h".
11810 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
11811 * printcmd.c [TUI]: Include "tui/tui.h".
11812 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
11813 * tui/tui-command.c: Include "gdb_curses.h".
11814 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
11815 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
11816 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
11817 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
11818 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
11819 * Makefile.in: Update all dependencies.
11820 (tui_hooks_h, gdb_curses_h): Define.
11821 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
11822
11823 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
11824
11825 * objfiles.h (struct objfile): Remove unused fields auxf1 and
11826 auxf2. Add comments about some other rarely used fields.
11827
11828 2004-02-10 Andrew Cagney <cagney@redhat.com>
11829
11830 * Makefile.in (init.c): Fix script removing duplicates. Problem
11831 reported by Peter Schauer.
11832
11833 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
11834
11835 * bcache.c (bcache_xmalloc): Use obstack_init instead of
11836 obstack_specify_allocation.
11837 * objfiles.c (allocate_objfile): Ditto.
11838 * solib-sunos.c (solib_add_common_symbols)
11839 (allocate_rt_common_objfile): Ditto.
11840 * symfile.c (reread_symbols): Ditto.
11841 * gdb_obstack.h: Add comment.
11842
11843 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
11844
11845 * linespec.c (decode_line_1, locate_first_half)
11846 (decode_compound, lookup_prefix_sym): Update comments. Delete old
11847 commented out code.
11848
11849 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
11850
11851 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
11852 obstack_free.
11853
11854 2004-02-09 Andrew Cagney <cagney@redhat.com>
11855
11856 * blockframe.c (find_pc_partial_function): If find_pc_overlay
11857 fails, try find_pc_section. Fix PR c++/1267.
11858 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
11859 instead of find_pc_mapped_section.
11860 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
11861 not default to the section containing PC. Fix PR symtab/1519.
11862
11863 2004-02-09 Andrew Cagney <cagney@redhat.com>
11864
11865 * Makefile.in (mips-tdep.o): Update dependencies.
11866 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
11867 "trad-frame.h".
11868 (mips_unwind_pc): Return the pseudo PC register.
11869 (mips_unwind_dummy_id): New function.
11870 (mips16_fetch_instruction): New function.
11871 (mips32_fetch_instruction): New function.
11872 (struct mips_frame_cache): Define.
11873 (mips_mdebug_frame_cache): New function.
11874 (mips_mdebug_frame_this_id): New function.
11875 (mips_mdebug_frame_prev_register): New function.
11876 (mips_mdebug_frame_unwind): Define.
11877 (mips_mdebug_frame_sniffer): New function.
11878 (mips_mdebug_frame_base_address): New function.
11879 (mips_mdebug_frame_base): Define.
11880 (mips_mdebug_frame_base_sniffer): New function.
11881 (mips_gdbarch_init): Append unwind and base sniffers. Set
11882 unwind_dummy_id.
11883
11884 2004-02-08 Andrew Cagney <cagney@redhat.com>
11885
11886 * frame.c: Print both the register number and name.
11887
11888 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
11889 and a sed into a single sed. Make .c and .o patterns more robust.
11890 (OBS): Delete.
11891 (INIT_FILES): Replace OBS with COMMON_OBS.
11892 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
11893
11894 2004-02-08 Mark Kettenis <kettenis@gnu.org>
11895
11896 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
11897 the PT_WCOOKIE request.
11898
11899 2004-02-08 Andrew Cagney <cagney@redhat.com>
11900
11901 * mips-tdep.c (mips_unwind_pc): New function.
11902 (mips_gdbarch_init): Set mips_unwind_pc.
11903
11904 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
11905 (get_frame_id): Allow the UNKNOWN_FRAME.
11906 (frame_register_unwind, get_frame_type): Ditto.
11907
11908 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
11909 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
11910 unwind_dummy_id indicates a legacy frame.
11911
11912 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
11913 * configure: Re-generate.
11914
11915 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
11916 methods.
11917
11918 2004-02-08 Andrew Cagney <cagney@redhat.com>
11919
11920 * configure.in (CONFIG_ALL): Set to Makefile target, and not
11921 makefile macro.
11922 * configure: Re-generate.
11923 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
11924 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
11925 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
11926 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
11927 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
11928 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
11929 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
11930 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
11931 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
11932 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
11933
11934 2004-02-07 Andrew Cagney <cagney@redhat.com>
11935
11936 * Makefile.in: Update all dependencies.
11937
11938 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
11939 * configure: Re-generate.
11940 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
11941 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
11942 (COMMON_OBS): Add "main.o" and "annotate.o".
11943 (ANNOTATE_OBS): Delete.
11944 (OBS): Remove ANNOTATE_OBS.
11945 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
11946 CONFIG_INITS.
11947 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
11948 against CONFIG_OBS and "main.o".
11949 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
11950 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
11951
11952 * tui/tui-command.c: Include "gdb_string.h", delete register
11953 attribute, use ISO-C function signatures.
11954 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
11955 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11956 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
11957 * tui/tui.c: Ditto.
11958
11959 * tui/tui-command.c: Change variable and function names to lower
11960 case.
11961 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
11962 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
11963 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11964 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11965 * tui/tui-winsource.c, tui/tui.c: Ditto.
11966
11967 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
11968
11969 * buildsym.c (free_pending_blocks, finish_block)
11970 (record_pending_block, make_blockvector, end_symtab): Replace
11971 symbol_obstack with objfile_obstack.
11972 * coffread.c (process_coff_symbol, coff_read_struct_type)
11973 (coff_read_enum_type): Ditto.
11974 * cp-namespace.c (initialize_namespace_symtab)
11975 (check_one_possible_namespace_symbol): Ditto.
11976 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
11977 (dwarf2_symbol_mark_computed): Ditto.
11978 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
11979 * elfread.c (elf_symtab_read): Ditto.
11980 * hpread.c (hpread_symfile_init, hpread_symfile_init)
11981 (hpread_read_enum_type, hpread_read_function_type)
11982 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
11983 Ditto.
11984 * jv-lang.c (get_java_class_symtab, add_class_symbol)
11985 (java_link_class_type): Ditto.
11986 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
11987 (new_symbol): Ditto.
11988 * minsyms.c (install_minimal_symbols): Ditto.
11989 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
11990 (terminate_minimal_symbol_table): Replace symbol_obstack with
11991 objfile_obstack.
11992 (free_objfile): Remove freeing of symbol_obstack.
11993 * objfiles.h: Remove symbol_obstack field.
11994 * pa64solib.c (add_to_solist): Replace symbol_obstack with
11995 objfile_obstack.
11996 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11997 symbol_obstack.
11998 (solib_add_common_symbols): Replace symbol_obstack with
11999 objfile_obstack.
12000 * somsolib.c (som_solib_add): Ditto.
12001 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
12002 (common_block_start, common_block_end): Ditto.
12003 * symfile.c (reread_symbols): Remove freeing and init of
12004 symbol_obstack.
12005 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
12006 * symfile.h: Update comment.
12007 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
12008 stats printing.
12009 * symtab.c (symbol_set_names): Replace symbol_obstack with
12010 objfile_obstack.
12011 * symtab.h (struct general_symbol_info, struct minimal_symbol):
12012 Update comments.
12013 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
12014 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
12015 objfile_obstack.
12016
12017 2004-02-07 Andrew Cagney <cagney@redhat.com>
12018
12019 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
12020 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
12021 fields and variables.
12022 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
12023 (m_beInvisible): Delete macro.
12024 * tui/tui-data.h: Fix case case fields and variables.
12025 (m_genWinPtrIsNull): Delete macro.
12026 (tui_win_list): Rename winList.
12027 (TUI_SRC_WIN): Rename srcWin.
12028 (TUI_DISASM_WIN): Rename disassemWin.
12029 (TUI_DATA_WIN): Rename dataWin.
12030 (TUI_CMD_WIN): Rename cmdWin.
12031 (m_genWinPtrNotNull): Delete macro.
12032 (m_winPtrIsNull): Delete macro.
12033 (m_winPtrNotNull): Delete macro.
12034 (tui_win_is_source_type): Replace m_winIsSourceType
12035 (tui_win_is_auxillary): Replace m_winIsAuzillary.
12036 (tui_win_has_locator): Replace m_hasLocator.
12037 (tui_set_win_highlight): Replace m_setWinHighlightOn and
12038 m_setWinHighlightOff.
12039 * tui/tui-data.c: Update references.
12040 (tui_win_is_source_type, tui_set_win_highlight): New functions.
12041 (tui_win_has_locator, tui_win_is_auxillary): New functions.
12042 * tui/tui-command.c, tui/tui-disasm.c: Update references.
12043 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
12044 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
12045 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12046 * tui/tui-winsource.c, tui/tui.c: Ditto.
12047
12048 2004-02-07 Mark Kettenis <kettenis@gnu.org>
12049
12050 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
12051 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
12052 StackGhost.
12053
12054 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
12055 variable `i6' to `i7'.
12056 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12057
12058 2004-02-07 Andrew Cagney <cagney@redhat.com>
12059
12060 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
12061 (TuiPoint, TuiPointPtr): Ditto.
12062 (TuiStatus, TuiStatusPtr): Ditto.
12063 (TuiWinType, TuiWinTypePtr): Ditto.
12064 (struct tui_point): Rename _TuiPoint.
12065 (tui_get_low_disassembly_address): Rename
12066 tuiGetLowDisassemblyAddress.
12067 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
12068 (tuiFree): Delete declaration.
12069 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
12070 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
12071 * tui/tui.c (tuiFree): Delete function.
12072 * cli/cli-cmds.c (disassemble_command): Update references.
12073 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
12074 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12075 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
12076 * tui/tui-winsource.c: Ditto.
12077
12078 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12079
12080 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
12081 coffstab_build_psymtabs, elfstab_build_psymtabs)
12082 (stabsect_build_psymtabs): Replace psymbol_obstack with
12083 objfile_obstack.
12084 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
12085 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
12086 Ditto.
12087 * dwarfread.c (scan_compilation_units): Ditto.
12088 * elfread.c (elfstab_offset_sections): Ditto.
12089 * hppa-tdep.c (read_unwind_info): Ditto.
12090 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
12091 (hpread_end_psymtab): Ditto.
12092 * mdebugread.c (mdebug_build_psymtabs, add_pending)
12093 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
12094 Ditto.
12095 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
12096 * objfiles.c (add_to_objfile_sections)
12097 (build_objfile_section_table): Ditto.
12098 (allocate_objfile): Remove init of psymbol_obstack.
12099 (free_objfile): Remove freeing of psymbol_obstack.
12100 * objfiles.h (struct objfile): Remove field
12101 psymbol_obstack. Update comments.
12102 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
12103 psymbol_obstack with objfile_obstack.
12104 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12105 psymbol_obstack.
12106 * somread.c (som_symfile_offsets, init_import_symbols)
12107 (init_export_symbols): Replace psymbol_obstack with
12108 objfile_obstack.
12109 * somsolib.c (som_solib_add_solib_objfile): Ditto.
12110 * symfile.c (default_symfile_offsets, syms_from_objfile)
12111 (reread_symbols): Remove freeing and init of psymbol_obstack.
12112 (cashier_psymtab): Update comment.
12113 * symmisc.c (print_objfile_statistics): Don't report stats for
12114 psymbol obstack.
12115 * symtab.h (struct general_symbol_info, struct partial_symtab):
12116 Update comments.
12117 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
12118 (xcoff_symfile_offsets): Replace psymbol_obstack with
12119 objfile_obstack.
12120
12121 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12122
12123 * objfiles.h (struct objfile): Add objfile_obstack field.
12124 Remove type_obstack field.
12125
12126 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
12127 read_structure_scope read_enumeration, new_symbol): Replace
12128 type_obstack with objfile_obstack.
12129 * dwarfread.c (struct_type, enum_type): Ditto.
12130 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
12131 (lookup_fundamental_type): Ditto.
12132 * gdbtypes.h (TYPE_ALLOC): Ditto.
12133 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
12134 (hpread_read_doc_function_type, hpread_read_struct_type)
12135 (fix_static_member_physnames, hpread_read_array_type)
12136 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
12137 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
12138 (java_link_class_type): Ditto.
12139 * mdebugread.c (parse_type): Ditto.
12140 * objfiles.c (allocate_objfile, free_objfile): Ditto.
12141 * solib-sunos.c (solib_add_common_symbols): Ditto.
12142 * stabsread.c (define_symbol, read_type, read_member_functions,
12143 read_cpp_abbrev, read_one_struct_field): Ditto.
12144 * symfile.c (reread_symbols): Ditto.
12145 * symmisc.c (print_objfile_statistics): Ditto.
12146
12147 2004-02-07 Andrew Cagney <cagney@redhat.com>
12148
12149 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
12150 (tui_exec_info_content): Rename TuiExecInfoContent.
12151 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
12152 (TuiWinInfo, TuiWinInfoPtr): Ditto.
12153 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
12154 (TuiList, TuiListPtr): Ditto.
12155 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
12156 (TuiDataType, TuiDataTypePtr): Ditto.
12157 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
12158 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
12159 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
12160 (TuiSourceElement, TuiSourceElementPtr): Ditto.
12161 (TuiDataElement, TuiDataElementPtr): Ditto.
12162 (TuiWinElement, TuiWinElementPtr): Ditto.
12163 (TuiDataInfo, TuiDataInfoPtr): Ditto.
12164 (TuiCommandElement, TuiCommandElementPtr): Ditto.
12165 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
12166 (TuiWhichElement, TuiWhichElementPtr): Ditto.
12167 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
12168 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
12169 * tui/tui-command.c, tui/tui-data.c: Update references.
12170 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
12171 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12172 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12173 * tui/tui-winsource.c, tui/tui.c: Ditto.
12174
12175 2004-02-07 Mark Kettenis <kettenis@gnu.org>
12176
12177 * dwarf2-frame.h: Update copyright.
12178 (enum dwarf2_frame_reg_rule): New.
12179 (struct dwarf2_frame_state_reg): New.
12180 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
12181 * dwarf2-frame.c: Update copyright.
12182 (enum dwarf2_reg_rule): Remove.
12183 (struct dwarf2_frame_state): Remove defenition of `struct
12184 dwarf2_frame_state_reg'.
12185 (read_reg): Call get_frame_arch to get the architecture instead of
12186 using CURRENT_GDBARCH.
12187 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
12188 DWARF2_FRAME_.
12189 (dwarf2_frame_init_reg): New function.
12190 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
12191 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
12192 initialize the register state. Prefix old `enum dwarf2_reg_rule'
12193 tags with DWARF2_FRAME_.
12194 (dwarf2_frame_prev_register): Call get_frame_arch to get the
12195 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
12196 dwarf2_reg_rule' tags with DWARF2_FRAME_.
12197
12198 2004-02-06 Andrew Cagney <cagney@redhat.com>
12199
12200 * tui/tui-data.h (struct tui_list): Rename _TuiList.
12201 (enum tui_data_type): Rename _TuiDataType.
12202 (struct tui_layout_def): Rename _TuiLayoutDef.
12203 (struct tui_source_element): Rename _TuiSourceElement.
12204 (struct tui_data_element): Rename _TuiDataElement.
12205 (struct tui_command_element): Rename _TuiCommandElement.
12206 (struct tui_locator_element): Rename _TuiLocatorElement.
12207 (union tui_which_element): Define.
12208 (struct tui_win_element): Rename _TuiWinElement.
12209 (struct tui_data_info): Rename _TuiDataInfo.
12210 (struct tui_source_info): Rename _TuiSourceInfo.
12211 (struct tui_command_info): Rename _TuiCommandInfo.
12212 (tui_initialize_static_data): Rename initializeStaticData.
12213 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
12214 (tui_alloc_win_info): Rename allocWinInfo.
12215 (tui_init_generic_part): Rename initGenericPart.
12216 (tui_init_win_info): Rename initWinInfo.
12217 (tui_alloc_content): Rename allocContent.
12218 (tui_add_content_elements): Rename addContentElements.
12219 (tui_init_content_element): Rename initContentElement.
12220 (tui_free_window): Rename freeWindow.
12221 (tui_free_win_content): Rename freeWinContent.
12222 (tui_free_data_content): Rename freeDataContent.
12223 (tui_free_all_source_wins_content): Rename
12224 freeAllSourceWinsContent.
12225 (tui_del_window): Rename tuiDelWindow.
12226 (tui_del_data_windows): Rename tuiDelDataWindows.
12227 (tui_partial_win_by_name): Rename partialWinByName.
12228 (tui_win_name): Rename winName.
12229 (tui_current_layout): Rename currentLayout.
12230 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
12231 (tui_term_height): Rename termHeight.
12232 (tui_set_term_height_to): Rename setTermHeightTo.
12233 (tui_term_width): Rename termWidth.
12234 (tui_set_term_width_to): Rename setTermWidthTo.
12235 (tui_set_gen_win_origin): Rename setGenWinOrigin.
12236 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
12237 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
12238 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
12239 (tui_source_windows): Rename sourceWindows.
12240 (tui_clear_source_windows): Rename clearSourceWindows.
12241 (tui_clear_source_windows_detail): Rename
12242 clearSourceWindowsDetail.
12243 (tui_clear_win_detail): Rename clearWinDetail.
12244 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
12245 (tui_default_tab_len): Rename tuiDefaultTabLen.
12246 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
12247 (tui_win_with_focus): Rename tuiWinWithFocus.
12248 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
12249 (tui_layout_def): Rename tuiLayoutDef.
12250 (tui_win_resized): Rename tuiWinResized.
12251 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
12252 (tui_next_win): Rename tuiNextWin.
12253 (tui_prev_win): Rename tuiPrevWin.
12254 (tui_add_to_source_windows): Rename addToSourceWindows.
12255 * tui/tui-winsource.c, tui/tui-win.c: Update references.
12256 * tui/tui-layout.c, tui/tui-source.c: Ditto.
12257 * tui/tui-stack.c, tui/tui-io.c: Ditto.
12258 * tui/tui.c, tui/tui-data.c: Ditto.
12259 * tui/tui-interp.c, tui/tui-data.c: Ditto.
12260 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
12261
12262 * tui/tui-source.h: Update copyright. Include "tui-data.h".
12263 (struct symtab): Declare.
12264 (tui_set_source_content): Rename tuiSetSourceContent.
12265 (tui_show_symtab_source): Rename tuiShowSource.
12266 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
12267 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
12268 * tui/tui-source.c: Update copyright. Update references.
12269 * tui/tui-win.c, tui/tui-winsource.c: Update references.
12270 * tui/tui-stack.c: Update references.
12271
12272 * tui/tui-win.h: Update copyright. Include "tui-data.h".
12273 (struct tui_win_info): Declare.
12274 (tui_scroll_forward): Rename tuiScrollForward.
12275 (tui_scroll_backward): Rename tuiScrollBackward.
12276 (tui_scroll_left): Rename tuiScrollLeft.
12277 (tui_scroll_right): Rename tuiScrollRight.
12278 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
12279 (tui_resize_all): Rename tuiResizeAll.
12280 (tui_refresh_all_win): Rename tuiRefreshAll.
12281 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
12282 * tui/tui-layout.c, * tui/tui-io.c: Update references.
12283 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
12284 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
12285
12286 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
12287 (tui_erase_data_content): Rename tuiEraseDataContent.
12288 (tui_display_all_data): Rename tuiDisplayAllData.
12289 (tui_check_data_values): Rename tuiCheckDataValues.
12290 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
12291 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
12292 (tui_first_data_element_no_in_line): Rename
12293 tuiFirstDataElementNoInLine.
12294 (tui_delete_data_content_windows): Rename
12295 tuiDeleteDataContentWindows.
12296 (tui_refresh_data_win): Rename tuiRefreshDataWin.
12297 (tui_display_data_from): Rename tuiDisplayDataFrom.
12298 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
12299 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
12300 * tui/tui-win.c, tui/tui-regs.c: Update references.
12301 * tui/tui-layout.c, tui/tui.c: Update references.
12302
12303 * tui/tui-wingeneral.h: Update copyright.
12304 (m_allBeVisible): Delete macro.
12305 (m_allBeInvisible): Delete macro.
12306 (struct tui_gen_win_info): Declare.
12307 (struct tui_win_info): Declare.
12308 (tui_unhighlight_win): Rename unhighlightWin.
12309 (tui_make_visible, tui_make_invisible): Replace makeVisible.
12310 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
12311 (tui_make_window): Rename makeWindow.
12312 (tui_copy_win): Rename copyWin.
12313 (tui_box_win): Rename boxWin.
12314 (tui_highlight_win): Rename highlightWin.
12315 (tui_check_and_display_highlight_if_needed): Rename
12316 checkAndDisplayHighlightIfNeeded.
12317 (tui_refresh_all): Rename refreshAll.
12318 (tui_delete_win): Rename tuiDelwin.
12319 (tui_refresh_win): Rename tuiRefreshWin.
12320 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
12321 (tui_make_visible, tui_make_invisible): New functions.
12322 (tui_make_all_visible, tui_make_all_invisible): New functions.
12323 (make_all_visible): Rename makeAllVisible.
12324 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
12325 * tui/tui-data.c, tui/tui-winsource.c: Update references.
12326 * tui/tui-windata.c, tui/tui-win.c: Update references.
12327 * tui/tui-regs.c, tui/tui-layout.c: Update references.
12328 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
12329
12330 2004-02-06 Mark Kettenis <kettenis@gnu.org>
12331
12332 * proc-api.c (write_with_trace): Initialize local variable to
12333 silence compiler warning.
12334
12335 2004-02-06 Andrew Cagney <cagney@redhat.com>
12336
12337 * tui/tui-source.h: Do not include "defs.h".
12338 (struct tui_win_info): Declare.
12339 (tui_set_source_content_nil): Declare.
12340 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
12341 (union tui_line_or_address): Rename _TuiLineOrAddress.
12342 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
12343 (tui_update_source_window): Rename tuiUpdateSourceWindow.
12344 (tui_update_source_window_as_is): Rename
12345 tuiUpdateSourceWindowAsIs.
12346 (tui_update_source_windows_with_addr): Rename
12347 tuiUpdateSourceWindowsWithAddr.
12348 (tui_update_source_windows_with_line): Rename
12349 tuiUpdateSourceWindowsWithLine.
12350 (tui_clear_source_content): Rename tuiClearSourceContent.
12351 (tui_erase_source_content): Rename tuiEraseSourceContent.
12352 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
12353 (tui_show_source_content): Rename tuiShowSourceContent.
12354 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
12355 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
12356 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
12357 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
12358 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
12359 (tui_update_exec_info): Rename tuiUpdateExecInfo.
12360 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
12361 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
12362 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
12363 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
12364 (struct tui_win_info): Declare.
12365 * tui/tui-stack.c: Update references.
12366 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
12367 * tui/tui-win.c, tui/tui-source.c: Ditto.
12368 * tui/tui.c, tui/tui-disasm.c: Ditto.
12369
12370 2004-02-06 Mark Kettenis <kettenis@gnu.org>
12371
12372 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
12373 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
12374
12375 2004-02-05 Mark Kettenis <kettenis@gnu.org>
12376
12377 * infrun.c (handle_inferior_event): Allow for breakpoint
12378 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
12379 and SIGEMT. Update comments.
12380 * NEWS (Revised SPARC target): Mention support for non-executable
12381 stack.
12382
12383 2004-02-04 Mark Kettenis <kettenis@gnu.org>
12384
12385 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
12386 * inftarg.c: Update copyright year.
12387 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
12388 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
12389 (sparc_xfer_wcookie): New function.
12390 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12391 * Makefile.in (sparc-nat.o): Update dependencies.
12392 * config/sparc/nm-nbsd.h: Include "target.h".
12393 (NATIVE_XFER_WCOOKIE): New define.
12394 (sparc_xfer_wcookie): New prototype.
12395
12396 2004-02-04 Andrew Cagney <cagney@redhat.com>
12397
12398 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
12399 SYSCALL_TRAP function.
12400 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
12401
12402 2004-02-04 Andrew Cagney <cagney@redhat.com>
12403 Daniel Jacobowitz <drow@mvista.com>
12404
12405 * objfiles.h: Delete comments refering to inside_entry_func and
12406 DEPRECATED_FRAME_CHAIN_VALID.
12407 * defs.h (inside_entry_func): Update prototype..
12408 * blockframe.c (inside_entry_func): Rename to
12409 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
12410 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
12411
12412 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
12413
12414 * breakpoint.c (struct captured_parse_breakpoint_args): Move
12415 outside of #ifdef SOLIB_ADD region.
12416 (do_restore_lang_radix_cleanup): Ditto.
12417 (resolve_pending_breakpoint): Ditto.
12418
12419 2004-02-03 Andrew Cagney <cagney@redhat.com>
12420
12421 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
12422 (process_note_abi_tag_sections): Delete unused function.
12423 (ia64_read_fp): Delete unused function.
12424 (gdbarch_extract_struct_value_address): Delete declaration.
12425
12426 2004-02-02 Andrew Cagney <cagney@redhat.com>
12427
12428 * vax-tdep.c (vax_frame_chain): Delete call to
12429 deprecated_inside_entry_file.
12430 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
12431
12432 2004-02-02 Mark Kettenis <kettenis@gnu.org>
12433
12434 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
12435 column that's "empty" or "same value" when eliminating REG_RA
12436 rules.
12437
12438 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12439
12440 * NEWS: Add information about new pending breakpoint support.
12441
12442 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
12443
12444 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
12445 and pending fields for pending breakpoint support.
12446 * breakpoint.c (breakpoint_enabled): Add check for not pending.
12447 (condition_command): Only parse condition if not a pending
12448 breakpoint.
12449 (print_one_breakpoint): Add support for pending breakpoints.
12450 (describe_other_breakpoints): Add checks to verify we are not
12451 dealing with pending breakpoints.
12452 (check_duplicates): Don't check pending breakpoints.
12453 (set_raw_breakpoint): Initialize pending flag.
12454 (do_restore_lang_radix_cleanup): New cleanup routine.
12455 (resolve_pending_breakpoint): New function.
12456 (re_enable_breakpoints_in_shlibs): Try and resolve any
12457 pending breakpoints via resolve_pending_breakpoint.
12458 (mention): Add pending breakpoint support.
12459 (parse_breakpoint_sals): Add new parameter to pass to
12460 decode_line_1 to indicate silent errors when files or functions
12461 are not found. Change all callers.
12462 (do_captured_parse_breakpoint): New function.
12463 (break_command_1): Change prototype to return an rc value and to
12464 take an optional pending breakpoint pointer. Support creating
12465 a pending breakpoint if a "not found" form of error occurs when
12466 parsing the breakpoint. Also support resolving an existing pending
12467 breakpoint and be silent if the resolution fails.
12468 (create_breakpoints): Change prototype to take pending breakpoint
12469 pointer. When resolving a pending breakpoint, use the new pointer
12470 to provide a conditional or commands added by the end-user.
12471 (delete_breakpoint): Add appropriate check for pending.
12472 (breakpoint_re_set_one): Ditto.
12473 (do_enable_breakpoint): Ditto.
12474
12475 2004-02-02 David Carlton <carlton@kealia.com>
12476
12477 * valops.c (enum oload_classification): New.
12478 (find_overload_match): Break implementation into separate
12479 functions; delete #if 0'd code; look for symbols within
12480 namespaces.
12481 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
12482 (find_oload_champ,oload_method_static,classify_oload_match): New.
12483 * cp-support.h: Add declaration for cp_func_name; update
12484 declaration for make_symbol_overload_list.
12485 * cp-support.c (cp_func_name): New.
12486 (overload_list_add_symbol): Fix comment, use
12487 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
12488 (make_symbol_overload_list): Take a function name and a namespace
12489 instead of a symbol; change implementation.
12490 (make_symbol_overload_list_using): New.
12491 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
12492
12493 2004-02-02 Fred Fish <fnf@redhat.com>
12494
12495 * main.c (gdb_stdtarg): Move definition to group with other
12496 gdb_stdtarg definitions and update copyright years.
12497 * remote-sim.c (gdb_os_write_stderr): Write output to
12498 gdb_stdtargerr stream instead of gdb_stdtarg stream.
12499 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
12500 gdb_stderr stream and update copyright years.
12501
12502 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12503
12504 * Makefile.in (mips-linux-nat.o): Update dependencies.
12505 * mips-linux-nat.c: Include mips-tdep.h.
12506
12507 2004-02-01 Roland McGrath <roland@redhat.com>
12508
12509 * sol-thread.c (sol_thread_xfer_partial): New function.
12510 (init_sol_thread_ops): Use that for to_xfer_partial hook.
12511 (init_sol_core_ops): Likewise.
12512
12513 * procfs.c (procfs_xfer_partial): New function.
12514 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
12515 * Makefile.in (procfs.o): Add $(auxv_h) dep.
12516
12517 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
12518 procfs_xfer_auxv function.
12519
12520 * procfs.c (procfs_make_note_section): If we can read
12521 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
12522 * linux-proc.c (linux_make_note_section): Likewise.
12523
12524 * auxv.h: New file.
12525 * auxv.c: New file.
12526 * Makefile.in (auxv_h): New variable.
12527 (COMMON_OBS): Add auxv.o here.
12528 (auxv.o): New target.
12529
12530 * corelow.c (core_xfer_partial): New function.
12531 (init_core_ops): Use it for core_ops.to_xfer_partial.
12532
12533 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
12534 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
12535 macro if that is defined.
12536
12537 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12538
12539 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
12540 and check the specified thread for each breakpoint.
12541 * breakpoint.h (bpstat_stop_status): Update prototype.
12542 * infrun.c (handle_inferior_event): Update calls to
12543 bpstat_stop_status.
12544
12545 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12546
12547 * Makefile.in (cli-cmds.o): Add $(readline_h).
12548
12549 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
12550
12551 * cli/cli-cmds.c: Include readline.h.
12552 (complete_command): Pass the start of the last word to
12553 complete_line.
12554
12555 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12556
12557 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
12558 argument, and change first argument to a CORE_ADDR.
12559 * breakpoint.h (bpstat_stop_status): Update prototype.
12560 * infrun.c (adjust_pc_after_break): Add a new comment.
12561 (handle_inferior_event): Update calls to bpstat_stop_status.
12562
12563 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12564
12565 * breakpoint.h: Update copyright years.
12566
12567 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12568
12569 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
12570 (bpstat_stop_status): Don't decrement PC.
12571 * breakpoint.h (software_breakpoint_inserted_here_p): Add
12572 prototype.
12573 * infrun.c (adjust_pc_after_break): New function.
12574 (handle_inferior_event): Call it, early. Remove later references
12575 to DECR_PC_AFTER_BREAK.
12576 (normal_stop): Add commentary.
12577
12578 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
12579
12580 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
12581 2004-01-27 double-free fix.
12582
12583 2004-01-31 Mark Kettenis <kettenis@gnu.org>
12584
12585 * sparc-tdep.c (sparc_fetch_wcookie): New function.
12586 (sparc32_frame_prev_register): Handle StackGhost.
12587 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12588
12589 2004-01-29 Roland McGrath <roland@redhat.com>
12590
12591 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
12592 * configure: Regenerated.
12593
12594 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
12595 * Makefile.in (procfs.o): Add dep.
12596
12597 2004-01-28 Andrew Cagney <cagney@redhat.com>
12598
12599 * tui/tui-stack.h: Update copyright.
12600 (struct frame_info): Add opaque declaration.
12601 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
12602 (tui_show_locator_content): Rename tuiShowLocatorContent.
12603 (tui_show_frame_info): Rename tuiShowFrameInfo.
12604 * tui/tui-stack.c: Update copyright. Update references.
12605 * tui/tui-winsource.c: Update references.
12606 * tui/tui-win.c: Update references.
12607 * tui/tui-layout.c: Update references.
12608 * tui/tui-hooks.c: Update copyright, update references.
12609 * tui/tui.c: Update copyright, update references.
12610 * tui/tui-disasm.c: Update references.
12611
12612 2004-01-28 David Carlton <carlton@kealia.com>
12613
12614 * dwarf2read.c (add_partial_structure): Use demangled name if
12615 namespace equals "".
12616
12617 2004-01-27 Jim Blandy <jimb@redhat.com>
12618
12619 Clean up misapplied patch:
12620 * dwarf2read.c (determine_prefix): Change one of the two forward
12621 declarations for 'determine_prefix_aux' to a declaration for this.
12622 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
12623 argument to 'die_specification'.
12624
12625 * dwarf2read.c (read_func_scope): Re-indent comment.
12626
12627 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
12628
12629 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
12630 b->exp to NULL after freeing so that error during re-parsing or
12631 evaluation of expressions associated with breakpoint don't
12632 eventually lead to re-freeing of storage.
12633 Committed by Andrew Cagney.
12634
12635 2004-01-27 Andrew Cagney <cagney@redhat.com>
12636
12637 * source.c (ambiguous_line_spec): Delete undefined declaration.
12638 * m32r-rom.c (m32r_set_board_address): Delete unused function.
12639 (m32r_set_server_address, m32r_set_download_path): Ditto.
12640 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
12641
12642 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
12643
12644 * dwarf2read.c: Update calls to changed and renamed functions, and
12645 references to moved variables.
12646
12647 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
12648 language, language_defn, list_in_scope, and ftypes members.
12649 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
12650 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
12651 (baseaddr): Remove globals.
12652
12653 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
12654 (set_cu_language, die_is_declaration, die_specification)
12655 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
12656 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
12657 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
12658 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
12659
12660 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
12661 cu.list_in_scope. Don't initialize cu_header_offset.
12662 (add_partial_symbol): Add local baseaddr.
12663 (psymtab_to_symtab_1): Add local baseaddr. Use
12664 objfile->section_offsets for consistency. Don't initialize
12665 cu_header_offset; do initialize cu.header.offset and
12666 cu.list_in_scope.
12667 (read_file_scope, read_func_scope, read_lexical_block_scope)
12668 (dwarf_decode_lines, new_symbol): Add local baseaddr.
12669
12670 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
12671
12672 * PROBLEMS: Add gdb/1516.
12673
12674 2003-12-29 Robert Millan <robertmh@gnu.org>
12675
12676 Patch committed by Andrw Cagney.
12677 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
12678 * configure.tgt: Match knetbsd*-gnu.
12679
12680 2004-01-26 Andrew Cagney <cagney@redhat.com>
12681
12682 * breakpoint.c (catch_command_1): Delete #ifdef code.
12683 (catch_fork_command_1): Delete #ifdef wrapper.
12684 (catch_exec_command_1): Ditto.
12685 (catch_load_command_1): Ditto.
12686 (catch_unload_command_1): Ditto.
12687
12688 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
12689 (catch_breakpoint): Delete #if0ed function.
12690 (disable_catch_breakpoint): Ditto.
12691 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
12692 (disable_catch, enable_catch, delete_catch): Ditto.
12693
12694 2004-01-26 Andrew Cagney <cagney@redhat.com>
12695
12696 * remote.c (echo_check, quit_flag): Delete variables.
12697 (cisco_kernel_mode): Delete variable.
12698 (minitelnet_return, tty_input, escape_count): Delete variables.
12699 (remote_cisco_mode): Delete variable.
12700 (remote_cisco_open, remote_cisco_close): Delete function.
12701 (remote_cisco_mourn, remote_cisco_wait): Delete function.
12702 (init_remote_cisco_ops): Delete function.
12703 (_initialize_remote): Do not install "remote cisco" code.
12704 (read_frame): Delete cisco specific code.
12705 (remote_info_process): Delete function.
12706 (remote_wait): Delete cisco specific code.
12707 (remote_cisco_section_offsets): Delete function.
12708 (remote_cisco_objfile_relocate): Delete function.
12709 (remote_async_wait): Delete cisco specific code.
12710 (minitelnet, readtty, readsocket): Delete function.
12711
12712 2004-01-26 Andrew Cagney <cagney@redhat.com>
12713
12714 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
12715 comments mentioning extract_returned_value_address.
12716 * infcmd.c (print_return_value): Update. Add comments on
12717 extract_returned_value_address.
12718 * stack.c (return_command): Add comments on
12719 extract_returned_value_address.
12720 * values.c: Update comment.
12721 * m32r-tdep.c: Update comment.
12722 * sparc-tdep.c: Update comment.
12723 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
12724 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12725 * sh64-tdep.c (sh64_gdbarch_init): Update.
12726 * sh-tdep.c (sh_gdbarch_init): Update.
12727 * s390-tdep.c (s390_gdbarch_init): Update.
12728 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12729 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
12730 * m68k-tdep.c (m68k_gdbarch_init): Update.
12731 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12732 * m32r-tdep.c (m32r_gdbarch_init): Update.
12733 * ia64-tdep.c (ia64_gdbarch_init): Update.
12734 * h8300-tdep.c (h8300_gdbarch_init): Update.
12735 * frv-tdep.c (frv_gdbarch_init): Update.
12736 * arm-tdep.c (arm_gdbarch_init): Update.
12737 * alpha-tdep.c (alpha_gdbarch_init): Update.
12738
12739 2004-01-26 Andrew Cagney <cagney@redhat.com>
12740
12741 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
12742 SYMBOL_LOCATION_FUNCS
12743 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
12744 "struct symbol_ops".
12745 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
12746 type to "struct symbol_ops".
12747 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
12748 (struct symbol): Replace ".aux_value.loc.funcs" and
12749 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
12750 (SYMBOL_OBJFILE): Delete macro.
12751 (SYMBOL_LOCATION_FUNCS): Delete macro.
12752 (SYMBOL_LOCATION_BATON): Update.
12753 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
12754 intead of SYMBOL_LOCATION_FUNCS.
12755 * ax-gdb.c (gen_var_ref): Ditto.
12756 * printcmd.c (address_info): Ditto.
12757 * findvar.c (read_var_value): Ditto.
12758 (symbol_read_needs_frame): Ditto.
12759
12760 2004-01-26 Andrew Cagney <cagney@redhat.com>
12761
12762 * dwarf2read.c (read_func_scope): Document frame-base hack.
12763
12764 2004-01-25 Mark Kettenis <kettenis@gnu.org>
12765
12766 * infcmd.c (print_return_value): Plug memory leak; delete
12767 ui_stream object. Rename argument `structure_return' to
12768 `struct_return'.
12769
12770 2004-01-25 Mark Kettenis <kettenis@gnu.org>
12771
12772 * infcmd.c (print_return_value): Wrap long lines.
12773 (finish_command_continuation, finish_command): Remove unused
12774 variable `funcaddr'. Fix some coding-standards problems.
12775
12776 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
12777 SECT_SIZE is large enough, not whether it's exactly the right size.
12778 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
12779 TDEP->fpregset to zero.
12780
12781 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
12782 floating-point registers for traditional NetBSD core files.
12783 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
12784 TDEP->sizeof_fpregset here.
12785
12786 2004-01-25 Mark Kettenis <kettenis@gnu.org>
12787
12788 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
12789 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
12790 function with code split out from
12791 sparc32nbsd_sigcontext_frame_cache.
12792 (sparc32nbsd_sigcontext_frame_cache): Use
12793 sparc32nbsd_sigcontext_saved_regs.
12794 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
12795 OpenBSD.
12796 * sparcobsd-tdep.c: New file.
12797 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
12798 (sparcobsd-tdep.o): New dependency.
12799 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
12800 * config/sparc/obsd.mt: New file.
12801
12802 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
12803 TDEP->fpregset to be initialized to enable core file register
12804 sets.
12805
12806 2004-01-24 Mark Kettenis <kettenis@gnu.org>
12807
12808 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
12809 Add opaque declarations.
12810 (sparc64nbsd_sigcontext_saved_regs): New prototype.
12811 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
12812 function with code split out from
12813 sparc64nbsd_sigcontext_frame_cache.
12814 (sparc64nbsd_sigcontext_frame_cache): Use
12815 sparc64nbsd_sigcontext_saved_regs.
12816 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
12817 OpenBSD.
12818 * sparc64obsd-tdep.c: New file.
12819 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
12820 (sparc64obsd-tdep.o): New dependency.
12821 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
12822 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
12823 * config/sparc/obsd64.mt: New file.
12824
12825 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
12826 read the instruction at PC.
12827
12828 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
12829 value of GDB_OSABI_DEFAULT.
12830 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
12831 instead of GDB_OSABI_NETBSD_AOUT.
12832
12833 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
12834
12835 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
12836 copyright.
12837
12838 2004-01-23 Andrew Cagney <cagney@redhat.com>
12839
12840 * printcmd.c (display_command): Replace tui_set_display call with
12841 tui_set_layout_for_display_command.
12842 * tui/tui.h (enum tui_win_type): Define.
12843 (tui_set_layout): Delete declaration.
12844 (tui_set_layout_for_display_command): Rename set_tui_layout.
12845 * tui/tui-data.h (enum tui_layout_type): Define.
12846 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
12847 "tui.h".
12848 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
12849 (tui_default_win_height): Rename tuiDefaultWinHeight.
12850 (tui_default_win_viewport_height): Rename
12851 tuiDefaultWinViewportHeight.
12852 (tui_set_layout): RenametuiSetLayout.
12853 * tui/tui-layout.c: Update references.
12854 * tui/tui.c: Update references.
12855 * tui/tui-disasm.c: Update references.
12856
12857 2004-01-23 David Carlton <carlton@kealia.com>
12858
12859 Partial workaround for PR c++/1511:
12860 * cp-namespace.c: Include frame.h.
12861 (cp_lookup_transparent_type): New
12862 (cp_lookup_transparent_type_loop): New.
12863 * cp-support.h: Declare cp_lookup_transparent_type.
12864 * symtab.c (basic_lookup_transparent_type): Renamed from
12865 lookup_transparent_type.
12866 (lookup_transparent_type): Replace old body by a call to
12867 current_language->la_lookup_transparent_type.
12868 * symtab.h: Update copyright. Declare
12869 basic_lookup_transparent_type.
12870 * language.h: Update copyright.
12871 (struct language_defn): Add la_lookup_transparent_type.
12872 * language.c: Update copyright.
12873 (unknown_language_defn): Add basic_lookup_transparent_type.
12874 (auto_language_defn): Add basic_lookup_transparent_type.
12875 (local_language_defn): Add basic_lookup_transparent_type.
12876 * ada-lang.c: Update copyright.
12877 (ada_language_defn): Add basic_lookup_transparent_type.
12878 * c-lang.c: Update copyright.
12879 (c_language_defn): Add basic_lookup_transparent_type.
12880 (cplus_language_defn): Add basic_lookup_transparent_type.
12881 (asm_language_defn): Add basic_lookup_transparent_type.
12882 (minimal_language_defn): Add basic_lookup_transparent_type.
12883 * f-lang.c: Update copyright.
12884 (f_language_defn): Add basic_lookup_transparent_type.
12885 * jv-lang.c: Update copyright.
12886 (java_language_defn): Add basic_lookup_transparent_type.
12887 * m2-lang.c: Update copyright.
12888 (m2_language_defn): Add basic_lookup_transparent_type.
12889 * objc-lang.c: Update copyright.
12890 (objc_language_defn): Add basic_lookup_transparent_type.
12891 * p-lang.c: Update copyright.
12892 (p_language_defn): Add basic_lookup_transparent_type.
12893 * scm-lang.c: Update copyright.
12894 (scm_language_defn): Add basic_lookup_transparent_type.
12895 * Makefile.in (cp-namespace.o): Depend on frame.h.
12896
12897 2004-01-23 David Carlton <carlton@kealia.com>
12898
12899 Patch for PR c++/1520:
12900 * dwarf2read.c (read_func_scope): Set processing_current_prefix
12901 properly if we have a specification die.
12902 (determine_prefix_aux): Rename from determine_prefix.
12903 (determine_prefix): Like the old determine_prefix, but never
12904 returns NULL.
12905
12906 2004-01-23 Theodore A. Roth <troth@openavr.org>
12907
12908 * avr-tdep.c: Update copyright.
12909 (avr_iaddr_p): Delete unused function.
12910 (avr_saddr_p): Delete unused function.
12911
12912 2004-01-23 David Carlton <carlton@kealia.com>
12913
12914 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
12915 Fix for PR symtab/1534.
12916
12917 2004-01-23 Mark Kettenis <kettenis@gnu.org>
12918
12919 * NEWS (New native configurations): Mention OpenBSD/sparc and
12920 OpenBSD/sparc64.
12921 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
12922 * configure.host: Likewise.
12923 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
12924 handler for OpenBSD.
12925 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
12926
12927 2004-01-22 Mark Kettenis <kettenis@gnu.org>
12928
12929 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
12930 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
12931
12932 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
12933 * cli/cli-cmds.c (shell_escape): Likewise.
12934
12935 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
12936 OpenBSD .note.openbsd.ident sections.
12937
12938 2004-01-22 David Carlton <carlton@kealia.com>
12939
12940 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
12941 get_scope_pc_bounds.
12942 (read_file_scope): Ditto.
12943 (get_scope_pc_bounds): New function, produced by extracting code
12944 from the above two functions, consolidating it, and adding support
12945 for DW_TAG_namespace.
12946
12947 2004-01-22 Mark Kettenis <kettenis@gnu.org>
12948
12949 * osabi.c (MAX_NOTESZ): New define.
12950 (check_note): New function.
12951 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
12952 check_note.
12953
12954 2004-01-21 Roland McGrath <roland@redhat.com>
12955
12956 * MAINTAINERS (write after approval): Add myself.
12957
12958 2004-01-21 Eli Zaretskii <eliz@gnu.org>
12959
12960 * utils.c (init_page_info): Move declarations of `rows' and
12961 `cols' before the __GO32__-specific code. Move the closing brace
12962 outside the #ifdef __GO32__..#endif block.
12963 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
12964
12965 2004-01-21 Paul Brook <paul@codesourcery.com>
12966
12967 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
12968 BPSTAT_WHAT_CHECK_SHLIBS.
12969
12970 2004-01-21 Paul Brook <paul@codesourcery.com>
12971
12972 * MAINTAINERS: Add myself to write-after-approval.
12973
12974 2004-01-20 Andrew Cagney <cagney@redhat.com>
12975
12976 * ax-gdb.c (print_axs_value): Delete unused function.
12977 * jv-lang.c (java_lookup_type): Delete unused function.
12978 * cli/cli-dump.c (dump_filetype): Delete unused function.
12979 * remote-mips.c (remote_mips_insert_hw_breakpoint)
12980 (remote_mips_remove_hw_breakpoint): Delete unused functions.
12981 (mips_getstring): Delete unused function.
12982 (pmon_insert_breakpoint): Delete #if0ed function.
12983 (PMON_MAX_BP): Delete #if0ed MACRO.
12984 (mips_pmon_bp_info): Delete #if0ed variable.
12985 (pmon_remove_breakpoint): Delete #if0ed function.
12986 * monitor.c (monitor_write_even_block): Delete unused function.
12987 (monitor_write_memory_block): Delete #if0ed code.
12988 * dink32-rom.c (dink32_load): Delete unused function.
12989 (_initialize_dink32_rom): Delete #if0ed code.
12990 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
12991
12992 * tui/tui-command.c: Update references.
12993 * tui/tui-io.c: Update references.
12994 * tui/tui-command.h: Update copyright.
12995 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
12996
12997 * source.c (ambiguous_line_spec): Delete never-defined function.
12998 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
12999 * gdbtypes.c (add_name, add_mangled_type): Ditto.
13000 * cli/cli-cmds.c (validate_comname): Ditto.
13001
13002 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
13003 "tui-data.h".
13004 (tui_set_disassem_content): Rename tuiSetDisassemContent.
13005 (tui_show_disassem): Rename tuiShowDisassem.
13006 (tui_show_disassem_and_update_source): Rename
13007 tuiVerticalDisassemScroll.
13008 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
13009 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
13010 * tui/tui.h: Update copyright.
13011 (enum tui_status): Define.
13012 * tui/tui-data.h (enum tui_scroll_direction): Define.
13013 * tui/tui-disasm.c: Update copyright. Update references.
13014 * tui/tui-winsource.c: Update copyright. Update references.
13015 * tui/tui-win.c: Update references.
13016 * tui/tui-layout.c: Update references.
13017
13018 2004-01-20 Andrew Cagney <cagney@redhat.com>
13019
13020 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
13021 sym2 to start of block.
13022
13023 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
13024
13025 * MAINTAINERS: Delete mmalloc.
13026 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
13027 * NEWS: Mention removal of --with-malloc.
13028 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
13029 * config.in: Regenerate.
13030 * configure: Regenerate.
13031 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
13032 USE_MMALLOC, MMCHECK_FORCE.
13033 * gdbinit.in: Remove mmalloc.
13034 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
13035 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
13036 * config/i386/go32.mh: Likewise.
13037 * config/i386/interix.mh: Likewise.
13038 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
13039
13040 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
13041
13042 * linespec.c (decode_variable, symtab_from_filename): Call
13043 error_silent with error message instead of throwing an exception
13044 directly.
13045 * defs.h (error_silent, error_output_message): Add prototypes.
13046 (catch_exceptions_with_msg): Ditto.
13047 * utils.c (error_silent, error_output_message): New functions.
13048 * top.c (catch_exceptions_with_msg): New function.
13049
13050 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
13051
13052 * mi/mi-cmds.h (enum print_values): Add definition.
13053
13054 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
13055 type and value for simple data types and just the name and type
13056 for complex ones, if required.
13057
13058 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
13059 children, if required.
13060
13061 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13062
13063 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
13064 unused declarations.
13065
13066 2004-01-19 Andrew Cagney <cagney@redhat.com>
13067
13068 * top.h (mapped_symbol_files): Delete declaration.
13069 * main.c (captured_main): Delete option "m" and "mapped".
13070 * objfiles.c (mapped_symbol_files): Delete variable.
13071 * symfile.c (symbol_file_command): Delete mmap code.
13072 (symbol_file_add_with_addrs_or_offsets): Ditto.
13073 (add_symbol_file_command, reread_separate_symbols): Ditto.
13074 * objfiles.h (OBJF_MAPPED): Delete.
13075 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
13076 (free_objfile) [USE_MMALLOC]: Ditto.
13077 (open_existing_mapped_file): Delete function.
13078 (open_mapped_file): Delete function.
13079 (map_to_file): Delete function.
13080
13081 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13082
13083 * infrun.c (step_into_function): Account for possible breakpoint
13084 adjustment when computing ``stop_func_start''.
13085
13086 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13087
13088 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
13089 the region size against the size of a pointer, not the size of
13090 a register as given by DEPRECATED_REGISTER_SIZE.
13091
13092 2004-01-19 Andrew Cagney <cagney@redhat.com>
13093
13094 * tui/tui-regs.h: Include "tui-data.h".
13095 (tuiFirstRegElementNoInLine): Delete declaration.
13096 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
13097 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
13098 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
13099 (tui_calculate_regs_column_count): Rename
13100 tuiCalculateRegsColumnCount.
13101 (tui_check_register_values): Rename tuiCheckRegisterValues.
13102 (tui_show_registers): Rename tuiShowRegisters.
13103 (tui_display_registers_from_line): Rename
13104 tuiDisplayRegistersFromLine.
13105 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
13106 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
13107 (tui_first_reg_element_no_inline): Rename
13108 tuiFirstRegElementNoInLine.
13109 * tui/tui-data.h: Update copyright.
13110 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
13111 * tui/tui-windata.c: Update copyright, update references.
13112 * tui/tui-regs.c: Update copyright, update references.
13113 * tui/tui-win.c: Update copyright, update references.
13114 * tui/tui-layout.c: Update copyright, update references.
13115
13116 2004-01-18 Andrew Cagney <cagney@redhat.com>
13117
13118 * tui/tui-io.c: Update copyright.
13119 (key_is_end_sequence, key_is_backspace): New functions.
13120 (key_is_command_char, key_is_start_sequence): New function.
13121 (tui_getc): Update references.
13122 * tui/tui-io.h: Update copyright.
13123 (m_tuiStartNewLine): Delete macro.
13124 (m_isBackspace, m_isDeleteChar): Delete macros.
13125 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
13126 (m_isNextPage, m_isPrevPage): Delete macros.
13127 (m_isLeftArrow, m_isRightArrow): Delete macros.
13128 (m_isXdbStyleCommandChar): Delete macro.
13129 (key_is_start_sequence): Declare, replace m_isStartSequence.
13130 (key_is_end_sequence): Declare, replace m_isEndSequence.
13131 (key_is_backspace): Declare ,replace m_isBackspace.
13132 (key_is_command_char): Declare, replace m_isCommandChar.
13133 * tui/tui-command.c: Update copyright.
13134 (tuiDispatchCtrlChar): Update references.
13135
13136 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
13137 tuiSourceWin.h.
13138
13139 * tui/tui-command.c: Rename tui/tuiCommand.c.
13140 * tui/tui-command.h: Rename tui/tuiCommand.h.
13141 * tui/tui-data.c: Rename tui/tuiData.c.
13142 * tui/tui-data.h: Rename tui/tuiData.h.
13143 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
13144 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
13145 * tui/tui-io.c: Rename tui/tuiIO.c.
13146 * tui/tui-io.h: Rename tui/tuiIO.h.
13147 * tui/tui-layout.c: Rename tui/tuiLayout.c.
13148 * tui/tui-layout.h: Rename tui/tuiLayout.h.
13149 * tui/tui-regs.c: Rename tui/tuiRegs.c.
13150 * tui/tui-regs.h: Rename tui/tuiRegs.h.
13151 * tui/tui-source.c: Rename tui/tuiSource.c.
13152 * tui/tui-source.h: Rename tui/tuiSource.h.
13153 * tui/tui-stack.c: Rename tui/tuiStack.c.
13154 * tui/tui-stack.h: Rename tui/tuiStack.h.
13155 * tui/tui-win.c: Rename tui/tuiWin.c.
13156 * tui/tui-win.h: Rename tui/tuiWin.h.
13157 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
13158 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
13159 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
13160 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
13161 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
13162 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
13163 * tui/tui-file.c: Update includes.
13164 * tui/tui-hooks.c: Update includes.
13165 * tui/tui-interp.c: Update includes.
13166 * tui/tui.c: Update includes.
13167 * Makefile.in: Update all tui/ dependencies.
13168 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
13169
13170 * Makefile.in: Update copyright. Update dependencies.
13171
13172 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
13173 problem.
13174
13175 2004-01-18 Andrew Cagney <cagney@redhat.com>
13176
13177 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
13178 instead of register_gdbarch_init.
13179
13180 * remote-sds.c (tohex): Delete unused function. Update copyright.
13181 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
13182 * v850-tdep.c (v850_register_virtual_size): Ditto.
13183 * target.c (normal_target_post_startup_inferior): Ditto.
13184 * source.c (ambiguous_line_spec): Ditto.
13185 * remote.c (adapt_remote_get_threadinfo): Ditto.
13186 * mi/mi-out.c (out_field_fmt): Ditto.
13187 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
13188 (output_control_change_notification): Ditto.
13189 * m68k-tdep.c (m68k_register_byte): Ditto.
13190 (m68k_remote_breakpoint_from_pc): Ditto.
13191 * ui-out.c (init_ui_out_state): Delete unused declaration.
13192 * stabsread.c (search_value): Ditto.
13193 * mi/mi-cmd-env.c (env_cli_command): Ditto.
13194 * maint.c (print_section_table): Ditto.
13195 * infrun.c (set_follow_fork_mode_command): Ditto.
13196
13197 2004-01-18 Mark Kettenis <kettenis@gnu.org>
13198
13199 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
13200 DW_CFA_def_cfa_exporession. Add support for
13201 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
13202 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
13203
13204 2004-01-18 Andrew Cagney <cagney@redhat.com>
13205
13206 * ocd.c: Update copyright.
13207 (bdm_read_register_command): Delete unused function.
13208 (_initialize_remote_ocd): Delete commented out reference.
13209 (get_quoted_char, reset_packet): Delete #if0ed function.
13210 (output_packet, put_quoted_char): Delete #if0ed function.
13211 (stu_put_packet, stu_get_packet): Delete #if0ed function.
13212 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
13213 (BDM_BREAKPOINT): Delete #if0ed macro.
13214 (remote_timeout): Delete #if0ed variable.
13215
13216 2004-01-18 Mark Kettenis <kettenis@gnu.org>
13217
13218 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
13219 (core-sol2.o): Remove dependency.
13220 * core-sol2.c: Remove file.
13221
13222 2004-01-17 Andrew Cagney <cagney@redhat.com>
13223
13224 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
13225 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
13226 enums.
13227
13228 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13229
13230 * remote.c: Update copyright years.
13231
13232 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13233
13234 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
13235
13236 2004-01-17 Andrew Cagney <cagney@redhat.com>
13237
13238 * mdebugread.c: Update copyright.
13239 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
13240 (parse_type, parse_procedure): Ditto.
13241 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
13242
13243 * cris-tdep.c (cris_store_struct_return): Put back accidently
13244 deleted function.
13245
13246 * gdbarch.sh: Update copyright year.
13247 * gdbarch.h, gdbarch.c: Re-generate.
13248
13249 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13250
13251 Suggested by George Anzinger.
13252 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
13253 correct stack offset. Include unknown opcode numbers in the error
13254 message.
13255
13256 2004-01-17 Andrew Cagney <cagney@redhat.com>
13257
13258 * x86-64-tdep.c (x86_64_init_abi): No need to clear
13259 extract_struct_value_address, i386 does not set it.
13260 * sparc64-tdep.c (sparc64_init_abi): Do not set
13261 extract_struct_value_address, never called.
13262 (sparc64_extract_struct_value_address): Delete function.
13263 * m68hc11-tdep.c: Update copyright.
13264 (m68hc11_gdbarch_init): Delete redundant assignment of
13265 extract_struct_value_address.
13266 * i386-tdep.c: Update copyright.
13267 (i386_gdbarch_init): Do not set extract_struct_value_address,
13268 never called.
13269 (i386_extract_struct_value_address): Delete function.
13270 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
13271 extract_struct_value_address, never called.
13272 (sparc32_extract_struct_value_address): #if 0 function. Add
13273 comments explaining its future.
13274
13275 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13276
13277 * arm-tdep.c (arm_write_pc): New function.
13278 (arm_gdbarch_init): Call set_gdbarch_write_pc.
13279
13280 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
13281
13282 * breakpoint.c (must_shift_inst_regs): Delete.
13283 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
13284 and SHIFT_INST_REGS.
13285 * infcmd.c (step_1, step_1_continuation): Delete references to
13286 SHIFT_INST_REGS.
13287 * infrun.c (keep_going): Likewise.
13288 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
13289 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
13290
13291 2004-01-17 Andrew Cagney <cagney@redhat.com>
13292
13293 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13294 * gdbarch.h, gdbarch.c: Re-generate.
13295 * infcmd.c (print_return_value): Delete reference to
13296 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
13297
13298 * cris-tdep.c (cris_gdbarch_init): Do not set
13299 deprecated_extract_struct_value_address.
13300
13301 * xstormy16-tdep.c: Update copyright.
13302 (xstormy16_extract_struct_value_address): Update to current
13303 extract struct value address interface.
13304 (xstormy16_gdbarch_init): Set extract_struct_value_address.
13305 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
13306 current extract struct value address interface.
13307 (sh64_gdbarch_init): Set extract_struct_value_address.
13308
13309 * cris-tdep.c: Update copyright.
13310 (cris_extract_struct_value_address): Delete function.
13311 (struct_return_address): Delete variable.
13312 (cris_store_struct_return): Do not set struct_return_address.
13313
13314 * mcore-tdep.c: Update copyright.
13315 (mcore_extract_struct_value_address): Delete function. Update
13316 comments.
13317 (mcore_gdbarch_init): Update.
13318 * mn10300-tdep.c: Update copyright.
13319 (mn10300_extract_struct_value_address): Delete function.
13320 (mn10300_gdbarch_init): Update.
13321 * v850-tdep.c: Update copyright.
13322 (v850_extract_struct_value_address): Delete.
13323 (v850_gdbarch_init): Update.
13324 * ns32k-tdep.c: Update copyright.
13325 (ns32k_extract_struct_value_address): Delete.
13326 (ns32k_gdbarch_init): Update.
13327 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
13328 (hppa_gdbarch_init): Update.
13329 * vax-tdep.c: Update copyright.
13330 (vax_extract_struct_value_address): Delete.
13331 (vax_gdbarch_init): Update.
13332
13333 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
13334 * gdbarch.h, gdbarch.c: Re-generate.
13335 * procfs.c (procfs_fetch_registers): Delete reference to
13336 DEPRECATED_NPC_REGNUM.
13337 (procfs_store_registers): Ditto.
13338 * regcache.c (generic_target_write_pc): Simplify.
13339 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
13340
13341 * core-sol2.c (fetch_core_registers): Replace
13342 DEPRECATED_NPC_REGNUM with equivalent tdep value.
13343
13344 * hppa-tdep.c: Update copyright year.
13345 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
13346 NPC_REGNUM.
13347 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
13348
13349 * mips-tdep.c (mips_write_pc): New function.
13350 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
13351 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
13352 (mips_find_saved_regs, mips_software_single_step: Ditto.
13353 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
13354 mips_init_extra_frame_info, mips_pop_frame): Ditto.
13355
13356 2004-01-17 Andrew Cagney <cagney@redhat.com>
13357
13358 * mips-tdep.c: Re-indent. Group functions by ABI.
13359
13360 2004-01-17 Andrew Cagney <cagney@redhat.com>
13361
13362 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
13363 * gdbarch.c: Re-generate.
13364 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13365 DECR_PC_AFTER_BREAK to zero.
13366 * vax-tdep.c (vax_gdbarch_init): Ditto.
13367 * v850-tdep.c (v850_gdbarch_init): Ditto.
13368 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13369 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13370 * sh-tdep.c (sh_gdbarch_init): Ditto.
13371 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13372 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13373 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13374 * mips-tdep.c (mips_gdbarch_init): Ditto.
13375 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13376 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13377 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13378 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13379 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
13380 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13381 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13382 * frv-tdep.c (frv_gdbarch_init): Ditto.
13383 * cris-tdep.c (cris_gdbarch_init): Ditto.
13384 * avr-tdep.c (avr_gdbarch_init): Ditto.
13385 * arm-tdep.c (arm_gdbarch_init): Ditto.
13386 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
13387
13388 2004-01-17 J. Brobecker <brobecker@gnat.com>
13389
13390 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
13391 Delete, no longer used.
13392 (read_subrange_type): New function, mostly extracted from
13393 read_array_type().
13394 (read_array_type): Replace extracted code by call to
13395 read_subrange_type().
13396 (dwarf2_get_attr_constant_value): New function.
13397 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
13398 (add_partial_symbol): Likewise.
13399 (process_die): Likewise.
13400 (new_symbol): Likewise.
13401 (read_type_die): Likewise.
13402
13403 2004-01-16 Andrew Cagney <cagney@redhat.com>
13404
13405 * symfile.c: Update copyright year.
13406 (compare_symbols): Delete unused function.
13407 * stabsread.c: Update copyright year.
13408 (lrs_general_complaint): Delete unused function.
13409 (ref_search_value): Ditto.
13410 (get_substring): Delete declaration.
13411 * sh64-tdep.c: Update copyright year.
13412 (sh64_get_gdb_regnum): Delete unused function.
13413 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
13414 Delete unused function.
13415
13416 2004-01-17 Mark Kettenis <kettenis@gnu.org>
13417
13418 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
13419 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
13420
13421 2004-01-16 Andrew Cagney <cagney@redhat.com>
13422
13423 Changes from Peter Schauer.
13424 * rs6000-tdep.c: Update copyright year.
13425 (rs6000_push_dummy_call): Update the stack pointer before
13426 accessing the corresponding stack region.
13427 * rs6000-nat.c: Update copyright year.
13428 (set_host_arch): Set "info.abfd" to "exec_bfd".
13429
13430 2004-01-15 Mark Kettenis <kettenis@gnu.org>
13431
13432 * blockframe.c: Update copyright year.
13433 (inside_entry_func): Don't treat a zero PC specially.
13434
13435 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
13436
13437 * gcore.c (gcore_copy_callback): Use paddr_d to print size
13438 variable.
13439 (gcore_create_callback): Ditto. Skip any memory segment that has
13440 no permissions set.
13441
13442 2004-01-14 David Carlton <carlton@kealia.com>
13443
13444 Change symbols for C++ nested types to contain the fully qualified
13445 name, if possible. (At least in the DWARF-2 case.) Partial fix
13446 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
13447 c++/895.
13448 * c-exp.y (qualified_type): Handle types nested within classes.
13449 * cp-namespace.c: Update comments.
13450 (cp_set_block_scope): Delete #if 0.
13451 (cp_lookup_nested_type): Handle types nested within classes.
13452 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
13453 when appropriate.
13454 (add_partial_symbol): Add the name of the enclosing namespace to
13455 types.
13456 (pdi_needs_namespace): New.
13457 (add_partial_namespace): Tweak comment.
13458 (add_partial_structure): New.
13459 (psymtab_to_symtab_1): Initialize processing_current_prefix
13460 here...
13461 (process_die): instead of here.
13462 (read_structure_scope): Try to figure out the name of the class or
13463 namespace that the structure might be defined within.
13464 (read_enumeration): Generate fully-qualified names, if possible.
13465 (read_namespace): Don't set name to NULL.
13466 (die_specification): New.
13467 (new_symbol): Generate fully-qualified names for types.
13468 (read_type_die): Determine appropriate prefix.
13469 (determine_prefix): New.
13470 (typename_concat): New.
13471 (class_name): New.
13472 * valops.c (value_aggregate_elt): Pass NOSIDE to
13473 value_struct_elt_for_reference.
13474 (value_struct_elt_for_reference): Make static, add NOSIDE
13475 parameter, call value_maybe_namespace_elt as a last resort.
13476 (value_namespace_elt): Break out code into
13477 value_maybe_namespace_elt.
13478 (value_maybe_namespace_elt): New.
13479
13480 2004-01-12 Andrew Cagney <cagney@redhat.com>
13481
13482 * mips-tdep.c (mips_convert_register_p): Handle both raw and
13483 cooked floating-point registers.
13484 (mips_gdbarch_init): Set convert_register_p, register_to_value,
13485 and value_to_register.
13486
13487 2004-01-13 Andrew Cagney <cagney@redhat.com>
13488
13489 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
13490 * gdbarch.c: Re-generate.
13491 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13492 FUNCTION_START_OFFSET.
13493 * v850-tdep.c (v850_gdbarch_init): Ditto.
13494 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
13495 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
13496 * sh-tdep.c (sh_gdbarch_init): Ditto.
13497 * s390-tdep.c (s390_gdbarch_init): Ditto.
13498 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13499 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
13500 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13501 * mips-tdep.c (mips_gdbarch_init): Ditto.
13502 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13503 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
13504 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13505 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
13506 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13507 * i386-tdep.c (i386_gdbarch_init): Ditto.
13508 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
13509 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13510 * frv-tdep.c (frv_gdbarch_init): Ditto.
13511 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
13512 * cris-tdep.c (cris_gdbarch_init): Ditto.
13513 * avr-tdep.c (avr_gdbarch_init): Ditto.
13514 * arm-tdep.c (arm_gdbarch_init): Ditto.
13515 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
13516
13517 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
13518
13519 * infrun.c (follow_fork_mode_ask): Remove.
13520 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
13521 (follow_fork): Simplify and remove internal error for
13522 follow_fork_mode_ask.
13523 (_initialize_infrun): Update "set follow-fork-mode" help text.
13524
13525 2004-01-13 Andrew Cagney <cagney@redhat.com>
13526
13527 * configure.in: Update copyright year.
13528 (build_warnings): Add -Wunused-label.
13529 * configure: Re-generate.
13530
13531 2004-01-12 Andrew Cagney <cagney@redhat.com>
13532
13533 * exec.h (exec_ops): Make "extern".
13534
13535 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
13536 the function is void.
13537 (mips_pseudo_register_write): Ditto.
13538
13539 2004-01-12 Andrew Cagney <cagney@redhat.com>
13540
13541 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
13542 call. Never defined.
13543 * sparc-tdep.h (struct frame_info): Add opaque declaration.
13544 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
13545 (struct sparc_gregset, struct regcache): Ditto.
13546 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
13547
13548 2004-01-12 Andrew Cagney <cagney@redhat.com>
13549
13550 * mi/ChangeLog: Delete file. Renamed to ...
13551 * mi/ChangeLog-1999-2003: New file.
13552 * tui/ChangeLog: Delete file. Renamed to ...
13553 * tui/ChangeLog-1998-2003: New file.
13554
13555 2004-01-11 Mark Kettenis <kettenis@gnu.org>
13556
13557 * sparc64nbsd-tdep.c: Include "regset.h".
13558 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
13559 Remove variables.
13560 (fetch_core_registers): Remove function.
13561 (sparc64nbsd_core_fns): Remove variable.
13562 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
13563 functions.
13564 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
13565 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
13566 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
13567
13568 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
13569 sparc_extract_struct_value_address.
13570 (sparc32_gdbarch_init): Set extract_struct_value_address.
13571 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
13572 function.
13573 (sparc64_init_abi): Set extract_struct_value_address. Don't set
13574 return_value_on_stack.
13575
13576 * NEWS: Mention that %cs and %ss have been added to the AMD64
13577 configurations
13578
13579 * frame.c: Update copyright year.
13580 (get_prev_frame): Improve comment.
13581
13582 * sparc64fbsd-tdep.c: Include "regset.h".
13583 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
13584 Remove variables.
13585 (fetch_core_registers): Remove function.
13586 (sparc64fbsd_core_fns): Remove variable.
13587 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
13588 functions.
13589 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
13590 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
13591 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
13592
13593 * sparcnbsd-tdep.c: Include "regset.h".
13594 (fetch_core_registers): Remove function.
13595 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
13596 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
13597 functions.
13598 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
13599 TDEP->fpregset.
13600 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
13601
13602 * sparc-tdep.h (struct regset): Provide opaque declaration.
13603 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
13604 fpregset and sizeof_fpregset members.
13605 * sparc-tdep.c (struct regset): Provide opaque declaration.
13606 (sparc_regset_from_core_section): New function.
13607 (sparc32_gdbarch_init): Initialize TDEP->gregset,
13608 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
13609 Set regset_from_core_section when appropriate.
13610
13611 2004-01-10 Mark Kettenis <kettenis@gnu.org>
13612
13613 * x86-64-tdep.c (amd64_non_pod_p): New function.
13614 (amd64_classify_aggregate): Return class memory for non-POD
13615 C++ structure types.
13616
13617 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
13618 argument. Use it to reserve a register if necessary.
13619 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
13620 amd64_push_arguments.
13621
13622 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
13623
13624 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
13625 register numbers in comments.
13626 * x86-64-tdep.h: Update copyright year.
13627 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
13628 Adjust for addition of %cs and %ss.
13629 * amd64fbsd-nat.c: Update copyright year.
13630 (reg_offset): Add register offsets for %cs and %ss.
13631 * amd64fbsd-tdep.c: Update copyright year.
13632 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
13633 (amd64fbsd_sc_reg_offset): Likewise.
13634 * x86-64-linux-nat.c: Update copyright year.
13635 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
13636 and %ss.
13637 * amd64nbsd-nat.c: Update copyright year.
13638 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
13639 * amd64nbsd-tdep.c: Update copyright year.
13640 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
13641 * x86-64-linux-tdep.c: Update copyright year.
13642 (user_to_gdb_regmap): Add mapping for %cs and %ss.
13643 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
13644 * regformats/reg-x86-64.dat: Add %cs and %ss.
13645
13646 * blockframe.c (inside_entry_func): Reformat. Introduce new local
13647 variables to prevent long lines. Update comments to reflect
13648 reality.
13649
13650 2004-01-09 David Carlton <carlton@kealia.com>
13651
13652 Checked in by Elena Zannoni <ezannoni@redhat.com>.
13653 * dwarf2read.c (read_namespace): Pull out name-generating code
13654 into namespace_name. Rename previous_namespace to previous_prefix
13655 and processing_current_namespace to processing_current_prefix..
13656 (namespace_name): New function.
13657 (add_partial_symbol): Substitute uses of pdi->name with
13658 actual_name.
13659 * cp-support.h: Rename processing_current_namespace to
13660 processing_current_prefix.
13661 Update copyright year.
13662 * cp-namespace.c: Rename processing_current_namespace to
13663 processing_current_prefix.
13664 Update copyright year.
13665
13666 2004-01-09 Andrew Cagney <cagney@redhat.com>
13667
13668 * jv-valprint.c, ser-unix.c: Add missing copyright years.
13669
13670 2004-01-09 Mark Kettenis <kettenis@gnu.org>
13671
13672 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
13673 complaining.
13674 (process_one_symbol): Deal with N_PATCH stabs.
13675
13676 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
13677
13678 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
13679 ifdeffed code.
13680 Update copyright year.
13681
13682 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13683
13684 * config/pa/tm-hppa.h: Update extern declarations for
13685 hppa32_hpux_frame_saved_pc_in_sigtramp,
13686 hppa32_hpux_frame_base_before_sigtramp, and
13687 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
13688
13689 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
13690
13691 * config/pa/tm-hppah.h: Update copyright years.
13692
13693 2004-01-08 Andrew Cagney <cagney@redhat.com>
13694
13695 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
13696 (mips_o32_reg_struct_has_addr): Delete function.
13697 (mips_gdbarch_init): Update.
13698 (mips_extract_struct_value_address): Delete function.
13699
13700 2004-01-08 David Mosberger <davidm@hpl.hp.com>
13701
13702 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
13703 reality.
13704
13705 2004-01-07 Andrew Cagney <cagney@redhat.com>
13706
13707 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
13708 architecture's elf flags (when available).
13709
13710 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
13711 FPU to the start, check the MIPS FPU when looking for an old
13712 architecture.
13713 (set_mipsfpu_single_command): Update the architecture.
13714 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
13715
13716 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
13717 (mips_mask_address_p): Add "tdep" parameter.
13718 (show_mask_address, mips_addr_bits_remove): Update.
13719 (mips_dump_tdep): Update.
13720 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
13721 (MIPS_STACK_ARGSIZE): Delete macro.
13722 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
13723 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
13724 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
13725 (mips_dump_tdep): Update.
13726 (MIPS_SAVED_REGSIZE): Delete macro.
13727 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
13728 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
13729 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
13730 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
13731 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
13732 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
13733 (mips_pop_frame, return_value_location): Update.
13734 (mips_n32n64_return_value, mips_dump_tdep): Update.
13735
13736 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
13737 MIPS ABI.
13738
13739 * mips-tdep.c: Update copyright.
13740 (mips_gdbarch_init): Merge two code blocks handling the register
13741 name and number layout.
13742
13743 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
13744
13745 * tracepoint.c (validate_actionline): Fix segv at EOF
13746
13747 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
13748
13749 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
13750 properly for static fields.
13751
13752 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
13753 Jason Molenda <jmolenda@apple.com>
13754
13755 * disasm.c: Update copyright to include 2004.
13756 (do_mixed_source_and_assembly): For uiout asm list
13757 and tuple cleanups, initialize to null_cleanup instead of
13758 NULL and do so prior to loop. Only reset when we close off
13759 the tuple/list. Move check for whether to close off the
13760 asm tuple/list to after dump_insns call where it will be run
13761 on each loop iteration.
13762
13763 2004-01-05 Andrew Cagney <cagney@redhat.com>
13764
13765 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
13766 should be a switch case and not a label.
13767 * mips-tdep.c (mips32_next_pc): Delete unused labels
13768 "greater_equal_branch" and "less_zero_branch".
13769 * jv-valprint.c (java_print_value_fields): Delete unused label
13770 "flush_it".
13771
13772 * target.c (unpush_target): Only close a target that is in the
13773 target stack.
13774
13775 2004-01-05 Mark Kettenis <kettenis@gnu.org>
13776
13777 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
13778 address from [sp + 64] instead of %o2.
13779
13780 * frame.c (get_prev_frame): Don't try to unwind the PC. This
13781 fixes PR backtrace/1476.
13782
13783 2004-01-05 Andrew Cagney <cagney@redhat.com>
13784
13785 * libunwind-frame.h (struct frame_id): Add opaque declaration,
13786 move to start of file.
13787 * i386-tdep.h (struct regcache): Add opaque declaration.
13788 * config/ia64/nm-linux.h (struct target_ops): Add opaque
13789 declaration.
13790 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
13791 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
13792 * win32-nat.c (fake_create_process): Use ISO C style definition.
13793 * stabsread.c (define_symbol): Delete #ifndef
13794 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
13795 stabs_argument_has_addr call, macro never defined.
13796
13797 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
13798
13799 * op50-rom.c: Delete.
13800 * w89k-rom.c: Delete.
13801 * Makefile.in: Remove references.
13802
13803 2004-01-04 Mark Kettenis <kettenis@gnu.org>
13804
13805 * x86-64-tdep.c: Update copyright year.
13806 (struct amd64_register_info): Rename from x86_64_register_info.
13807 (amd64_register_info): Rename from x86_64_register_info.
13808 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
13809 (amd64_register_name): Rename from x86_64_register_name.
13810 (amd64_register_type): Rename from x86_64_register_type.
13811 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
13812 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
13813 (amd64_dwarf_reg_to_regnum): Rename from
13814 x86_64_dwarf_reg_to_regnum.
13815 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
13816 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
13817 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
13818 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
13819 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
13820 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
13821 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
13822 (amd64_frame_cache): Rename from x86_64_frame_cache.
13823 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
13824 (amd64_frame_prev_register): Rename from
13825 x86_64_frame_prev_register.
13826 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
13827 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
13828 (amd64_sigtramp_frame_cache): Rename from
13829 x86_64_sigtramp_frame_cache.
13830 (amd64_sigtramp_frame_prev_register): Rename from
13831 x86_64_sigtramp_frame_prev_register.
13832 (amd64_sigtramp_frame_unwind): Rename from
13833 x86_64_sigtramp_frame_unwind.
13834 (amd64_sigtramp_frame_sniffer): Rename from
13835 x86_64_sigtramp_frame_sniffer.
13836 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
13837 (amd64_frame_base): Rename from x86_64_frame_base.
13838 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
13839 (amd64_frame_align): Rename from x86_64_frame_align.
13840 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
13841 (amd64_regset_from_core_section): Rename from
13842 x86_64_regset_from_core_section.
13843 (x86_64_init_abi): Update comments.
13844
13845 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
13846
13847 * MAINTAINERS (write after approval): Add myself.
13848
13849 2004-01-04 Mark Kettenis <kettenis@gnu.org>
13850
13851 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
13852 `float' arguments.
13853
13854 2004-01-04 Mark Kettenis <kettenis@gnu.org>
13855
13856 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
13857 such that it mentions a specific version of GCC that exhibits this
13858 bug.
13859
13860 2004-01-03 Mark Kettenis <kettenis@gnu.org>
13861
13862 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
13863 structure that has a single `float' member, store it in %f1 in
13864 addition to %f0.
13865
13866 * sparc-sol2-nat.c: Add missing '\'.
13867
13868 * sparc-tdep.c (sparc32_return_value): New function.
13869 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
13870 Remove functions.
13871 (sparc32_gdbarch_init): Set return_value, don't set
13872 extract_return_value, store_return_value, use_struct_convention
13873 and return_value_on_stack.
13874
13875 * sparc-sol2-nat.c: Add missing ')'.
13876
13877 2004-01-03 J. Brobecker <brobecker@gnat.com>
13878
13879 * infrun.c (handle_step_into_function): New function.
13880 (handle_inferior_event): Extract out some code into the new
13881 function above.
13882
13883 2004-01-03 J. Brobecker <brobecker@gnat.com>
13884
13885 * infrun.c (handle_inferior_event): Move the declaration of
13886 real_stop_pc inside the if blocks where it is used.
13887
13888 2004-01-03 Mark Kettenis <kettenis@gnu.org>
13889
13890 * sparc64-tdep.c (sparc64_16_byte_align_p)
13891 (sparc64_store_floating_fields, sparc64_store_floating_fields):
13892 Use check_typedef to get subtypes of structures and unions.
13893 (sparc64_store_return_value): Fix calculation of the appropriate
13894 offset into VALBUF when storing a structure or union.
13895 (sparc64_return_value): New function.
13896 (sparc64_use_struct_convention): Remove function.
13897 (sparc64_init_abi): Set return_value, don't set
13898 extract_return_value, store_return_value and
13899 use_struct_convention.
13900
13901 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
13902
13903 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
13904 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
13905 gdb/config/alpha/xm-alphaosf.h,
13906 gdb/config/powerpc/tm-ppcle-eabi.h,
13907 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
13908 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
13909 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
13910 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
13911 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
13912 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
13913 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
13914 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
13915 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
13916 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
13917 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
13918 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
13919 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
13920 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
13921 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
13922 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
13923 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
13924 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
13925 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
13926 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
13927 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
13928 Remove lines for .cvsignore files.
13929
13930 2004-01-03 J. Brobecker <brobecker@gnat.com>
13931
13932 * infrun.c: Back out the previous change.
13933
13934 2004-01-03 Mark Kettenis <kettenis@gnu.org>
13935
13936 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
13937 sparc-*-sunos4* to the list of REMOVED configurations.
13938
13939 * configure.tgt: Add back sparc-*-vxworks*.
13940 * remote-vxsparc.c: Remove all includes except for "defs.h",
13941 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
13942 Include "sparc-tdep.h".
13943 (SPARC_R_G1): New define.
13944 (vxsparc_gregset): New variable.
13945 (ext_format_sparc): Remove extern declaration.
13946 (vx_read_register): Rewrite to use sparc32_supply_gregset and
13947 sparc32_supply_fpregset.
13948 (vx_write_register): Rewrite to use sparc32_collect_gregset,
13949 sparc_collect_rwindow and sparc32_collect_fpregset.
13950 * config/sparc/tm-vxworks.h: New file, based on recently removed
13951 tm-vxsparc.h.
13952 * config/sparc/vxworks.mt: New file, based on recently removed
13953 vxworks.mt.
13954
13955 2004-01-03 J. Brobecker <brobecker@gnat.com>
13956
13957 * infrun.c (handle_step_into_function): New function.
13958 (handle_inferior_event): Extract out some code into the new
13959 function above.
13960
13961 2004-01-02 Mark Kettenis <kettenis@gnu.org>
13962
13963 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
13964 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
13965 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
13966 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
13967 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
13968 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
13969 (sparc_nat_h): New variable.
13970 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
13971 (tm-sun4os4.h): Remove dependency.
13972 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
13973 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
13974 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
13975 sparc-tdep.o): Update dependencies.
13976 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
13977 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
13978 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
13979 dependencies.
13980 * configure.host: Remove existing sparc-*-lynxos*,
13981 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
13982 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
13983 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
13984 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
13985 triplets.
13986 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
13987 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
13988 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
13989 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
13990 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
13991 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
13992 sparc64-*-solaris2* and sparc64-*-* triplets.
13993 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
13994 "symtab.h" and "objfiles.h".
13995 (BIAS): Remove define.
13996 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
13997 (X_DISP19): Remove macros.
13998 (sparc_fetch_instruction): Remove function.
13999 (struct gdbarch_tdep): Remove definition.
14000 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
14001 (sparc_breakpoint_from_pc): Remove function.
14002 (struct sparc64_frame_cache): Remove definition.
14003 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
14004 sparc64_unwind_pc): Remove functions.
14005 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
14006 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
14007 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
14008 (sparc64_frame_cache): Change return type to `struct
14009 sparc_frame_cache *'. Simply call sparc_frame_cache.
14010 (sparc64_frame_this_id, sparc64_frame_prev_register,
14011 sparc64_frame_base_address): Use `struct sparc_frame_cache'
14012 instead of `struct sparc64_frame_cache.
14013 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
14014 sparc_analyze_control_transfer, sparc_software_single_step,
14015 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
14016 _initialize_sparc64_tdep): Remove functions.
14017 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
14018 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
14019 macros.
14020 (sparc64_supply_gregset, sparc64_collect_gregset,
14021 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
14022 (sparc64_init_abi): New function.
14023 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
14024 inclusion guard. Include "sparc-tdep.h".
14025 (BIAS): Define.
14026 (r_tstate_offset, r_fprs_offset): New defines.
14027 (enum sparc_regnum): Remove defenition.
14028 (enum sparc64_regnum): Reformat.
14029 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
14030 (sparc64_init_abi, sparc64_supply_gregset,
14031 sparc64_collect_gregset, sparc64_supply_fpregset,
14032 sparc64_collect_fpregset): New prototypes.
14033 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
14034 Add extern declarations.
14035 (sparc64_sol2_init_abi): New prototype.
14036 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14037 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14038 prototypes.
14039 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
14040 "sparnbsd-nat.h".
14041 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
14042 functions.
14043 (_initialize_sparc64fbsd_nat): Remove initialization of
14044 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
14045 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
14046 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
14047 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
14048 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
14049 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
14050 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
14051 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
14052 (sparc64fbsd_r_y_offset): Remove variables.
14053 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14054 Make static and const.
14055 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14056 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14057 functions.
14058 (sparc64fbsd_gregset): New variable.
14059 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
14060 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
14061 and sparc64_supply_fpregset.
14062 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
14063 (sparc64fbsd_sigtramp_frame_this_id)
14064 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
14065 (sparc64fbsd_sigtramp_frame_unwind): New variable.
14066 (sparc64fbsd_sigtramp_frame_sniffer): New function.
14067 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
14068 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
14069 * sparcnbsd-tdep.c: Update copyright year. Include
14070 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
14071 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
14072 "value.h" and "sparcnbsd-tdep.h".
14073 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
14074 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
14075 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
14076 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
14077 defines.
14078 (sparcnbsd_gregset): New variable.
14079 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
14080 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
14081 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
14082 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
14083 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
14084 variables.
14085 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
14086 (sparc32nbsd_sigcontext_frame_this_id)
14087 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
14088 (sparc32nbsd_sigcontext_frame_unwind): New variable.
14089 (sparc32nbsd_sigtramp_frame_sniffer): New function.
14090 (sparcnbsd_get_longjmp_target_32,
14091 sparcnbsd_get_longjmp_target_64): Remove functions.
14092 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
14093 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
14094 sparcnbsd_init_elf): Remove.
14095 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
14096 (sparcnbsd_elf_init_abi): New functions.
14097 (_initialize_sparcnbsd_tdep): New prototype.
14098 (_initialize_sparnbsd_tdep): Update.
14099 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
14100 corelow.o. Add sparc64-nat.o and sparc-nat.o.
14101 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
14102 * config/sparc/linux.mh: Update comment.
14103 (XM_FILE, HOST_IPC): Remove variables.
14104 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
14105 sparc-linux-nat.o.
14106 * config/sparc/linux.mt: Update comment.
14107 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
14108 * config/sparc/nbsd.mt: Reformat.
14109 * config/sparc/nbsd64.mh: Update comment.
14110 (NATDEPFILES): Add sparc-nat.o.
14111 * config/sparc/nbsd64.mt: Update comment.
14112 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
14113 (TM_FILE): Set to tm-nbsd.h.
14114 * config/sparc/nbsdelf.mh: Update comment.
14115 (NATDEPFILES): Add sparc-nat.o.
14116 (XM_FILE): Delete.
14117 * config/sparc/nbsdaout.mh: Update comment.
14118 (NATDEPFILES): Add sparc-nat.o
14119 (XM_FILE): Delete.
14120 * config/sparc/nm-linux.h: Update copyright year. Don't include
14121 "config/nm-svr4.h" and "solib.h". Add protection against multiple
14122 inclusion.
14123 (KERNEL_U_SIZE): Remove define.
14124 (kernel_u_size): Remove prototype.
14125 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
14126 * config/sparc/nm-nbsd.h: Update copyright. Don't include
14127 "regcache.h".
14128 (CHILD_PREPARE_TO_STORE): Remove define.
14129 * config/sparc/nm-nbsdaout.h: Tweak some comments.
14130 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
14131 sparcnbsd-nat.c: Rewrite files.
14132 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
14133 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
14134 sparcnbsd-tdep.h: Remove files.
14135 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
14136 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
14137 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
14138 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
14139 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
14140 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
14141 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
14142 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
14143 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
14144 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
14145 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
14146 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
14147 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
14148 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
14149 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
14150 * config/sparc/linux64.mh, config/sparc/linux64.mt,
14151 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
14152 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
14153 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
14154
14155 2004-01-02 Andrew Cagney <cagney@redhat.com>
14156
14157 From 2003-12-18 Kazuhiro Inaoka:
14158 * configure.host: Add m32r-linux target.
14159
14160 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
14161
14162 * top.c (print_gdb_version): Update year to 2004.
14163
14164 2004-01-02 Mark Mitchell <mark@codesourcery.com>
14165
14166 * MAINTAINERS: Add myself to the write-after-approval category.
14167
14168 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
14169
14170 From Bernardo Innocenti <bernie@develer.com>:
14171 * configure.tgt: Add uClinux target.
14172
14173 2004-01-02 Andrew Cagney <cagney@redhat.com>
14174
14175 * utils.c (do_my_cleanups): Make static, add forward declaration.
14176 * defs.h (do_my_cleanups): Delete declaration.
14177
14178 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
14179
14180 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
14181 bfd/ChangeLog-0203.
14182
14183 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14184
14185 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
14186 in <machine/reg.h>.
14187 * configure, config.in: Regenerate.
14188
14189 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
14190 tui/ChangeLog-1998-2003.
14191 \f
14192 Local Variables:
14193 mode: change-log
14194 left-margin: 8
14195 fill-column: 74
14196 version-control: never
14197 End:
This page took 0.316205 seconds and 3 git commands to generate.