* hppa-tdep.c (hppa_lookup_stub_minimal_symbol): New function.
[binutils-gdb.git] / gdb / ChangeLog
1 2004-12-17 Joel Brobecker <brobecker@gnat.com>
2
3 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): New function.
4 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Add declaration.
5 * solib-som.c (som_solib_create_inferior_hook): Replace stub
6 msymbol search by call to hppa_lookup_stub_minimal_symbol. This
7 extends the search to all objfiles, not just shared libraries.
8 Remove unused variable.
9
10 2004-12-16 Michael Snyder <msnyder@redhat.com>
11
12 * MAINTAINERS: Add myself as maintainer for mn10300.
13 * NEWS: Mention mn10300.
14
15 2004-12-15 Kevin Buettner <kevinb@redhat.com>
16
17 * xstormy16-tdep.c (xstormy16_skip_prologue): Clear/initialize the
18 frame cache.
19
20 2004-12-14 Randolph Chung <tausq@debian.org>
21
22 * hppa-tdep.c (hppa_in_function_epilogue_p): New function.
23 (hppa_gdbarch_init): Set in_epilogue_p method.
24
25 2004-12-14 Corinna Vinschen <vinschen@redhat.com>
26
27 * sh-tdep.c (sh_extract_return_value_nofpu): Rename from
28 sh_default_extract_return_value.
29 (sh_extract_return_value_fpu): Rename from
30 sh3e_sh4_extract_return_value.
31 (sh_store_return_value_nofpu): Rename from
32 sh_default_store_return_value.
33 (sh_store_return_value_fpu): Rename from sh3e_sh4_store_return_value.
34 (sh_return_value_nofpu): Accomodate above changes.
35 (sh_return_value_fpu): Ditto.
36
37 2004-12-13 Jerome Guitton <guitton@gnat.com>
38
39 * stabsread.c (read_huge_number): Add support for reading octal
40 signed number in twos complement, based on the size of this
41 number.
42 (read_range_type): Add support for reading octal signed bounds
43 in twos complements, based on the size of the type.
44 (read_type_number, read_cpp_abbrev, read_member_functions,
45 read_cpp_abbrev, read_one_struct_field, read_baseclasses,
46 read_struct_type, read_array_type, read_enum_type,
47 read_sun_builtin_type, read_sun_floating_type): Update calls to
48 read_huge_number.
49 (read_type): Update call to read_range_type.
50
51 2004-12-13 Randolph Chung <tausq@debian.org>
52
53 * hppa-hpux-tdep.c (internalize_hp_cxx_exception_support): Call
54 solib_get_solib_by_pc method through target vector.
55 (hppa_hpux_som_find_global_pointer): Call solib_get_got_by_pc
56 method through target vector.
57
58 2004-12-13 Joel Brobecker <brobecker@gnat.com>
59
60 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Change
61 parameter name to make it clear that we already have a next
62 frame. Return the sigcontext from that next frame instead
63 of the frame following it.
64
65 2004-12-13 Randolph Chung <tausq@debian.org>
66
67 * Makefile.in (pa64solib_h, somsolib_h): Delete.
68 (solib_pa64_h, solib_som_h): New.
69 (HFILES_NO_SRCDIR, ALLDEPFILES): Replace somsolib.h with solib-som.h.
70 (hppa-hpux-tdep.o, hpread.o): Update dependencies.
71 (pa64solib.o, somsolib.o): Delete.
72 (solib-pa64.o, solib-som.o): New.
73 * hppa-hpux-tdep.c: Include new solib interfaces.
74 (hppa_hpux_som_init_abi): Attach to SOM solib interface.
75 (hppa_hpux_elf_init_abi): Attach to PA64 ELF solib interface.
76 * hppa-tdep.c (internalize_unwinds): If solib_get_text_base method
77 is available, use it to determine the base of unwind records.
78 * hppa-tdep.h (gdbarch_tdep): Add new solib methods.
79 * hpread.c: Replace somsolib.h with solib-som.h.
80 (hpread_process_one_debug_symbol): Use target vector to get thread
81 start address.
82 * config/pa/hppa64.mt (TDEPFILES): Use new solib interface.
83 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
84 * config/pa/hpux.mh (NATDEPFILES): Delete references to target objects.
85 * config/pa/tm-hppah.h: Use new solib interface.
86
87 2004-12-13 Randolph Chung <tausq@debian.org>
88
89 * tramp-frame.c (tramp_frame_sniffer): Allow frames with names or
90 sections to be trampolines too.
91
92 2004-12-13 Ben Elliston <bje@au.ibm.com>
93
94 * f-exp.y (typename): Remove unused nonterminal.
95 (name): Likewise.
96
97 2004-12-12 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
98
99 Committed by Andrew Cagney.
100 * abug-rom.c, ada-lang.c, ada-typeprint.c, alpha-tdep.c: i18n
101 markup.
102
103 2004-12-12 Andrew Cagney <cagney@gnu.org>
104
105 * frame.c (get_prev_frame): When unwinding normal frames, check
106 that the PC isn't zero.
107 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Delete check for a
108 zero PC.
109
110 * MAINTAINERS: Reword description of what "Target Instruction Set
111 Architectures" covers.
112
113 2004-12-12 Mark Kettenis <kettenis@gnu.org>
114
115 * hppa-hpux-nat.c (hppa_hpux_child_can_run): Tweak comment.
116
117 2004-12-11 Mark Kettenis <kettenis@gnu.org>
118
119 * hppa-hpux-nat.c (ss_mpsfu_high): Remove define.
120 (hppa_hpux_save_state_offset): New function, replacing variable
121 with the same name.
122 (hppa_cannot_fetch_register, hppa_cannot_store_register): Remove
123 functions.
124 (hppa_hpux_fetch_register): Don't call hppa_cannot_fetch_register.
125 Use new hppa_hpux_save_state_offset function. Add special
126 handling for handling 64-bit "flags" register.
127 (hppa_hpux_store_register): Likewise.
128 (hppa_hpux_child_can_run): Tweak comment.
129
130 * inf-ttrace.c (inf_ttrace_him): Set TTEVT_BPT_SSTEP if available.
131 (inf_ttrace_attach): Likewise.
132 (inf_ttrace_resume_callback): New function.
133 (inf_ttrace_resume): Don't use TT_PROC_CONTINUE. Iterate over all
134 lwps and call inf_ttrace_resume_callback instead.
135 (inf_ttrace_wait): Handle TTEVT_BPT_SSTEP.
136
137 * inf-ttrace.c (_initialize_inf_ttrace): Unconditionially compile.
138
139 2004-12-10 Michael Snyder <msnyder@redhat.com>
140
141 * mn10300-tdep.c: New file. This is a re-implementation of
142 the mn10300 target back-end using the new frame api etc.
143 * mn10300-tdep.h: New file.
144 * config/mn10300/mn10300.mt: New file (or replace old file).
145 * configure.tgt: Add mn10300 target.
146
147 2004-12-10 Mark Kettenis <kettenis@gnu.org>
148
149 * configure.host (hppa*-*-hpux11*): Remove.
150 * config/pa/hpux11.mh: Remove file.
151
152 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind_cache): Fix
153 typo.
154
155 2004-12-10 Kris Warkentin <kewarken@qnx.com>
156
157 * nto-tdep.h: Include osabi.h. Prototypes for generic Neutrino
158 osabi sniffer, signal handling initializer, 'in_dynsym_resolve_code'
159 function and nto_set_target function.
160 (struct nto_target_ops): Put comments inline with struct. Add osabi
161 sniffer hook. Redefine macros to permit testing/assignment. Remove
162 nto_ prefix from members.
163 * nto-tdep.c (nto_find_and_open_solib): Allocate all buffers
164 dynamically to support arbitrary root paths. Check for basename of
165 lib in search path and then check for absolute.
166 (nto_in_dynsym_resolve_code): New function.
167 (nto_core_sniffer): New function.
168 (regset_core_fns): Register core sniffer.
169 (nto_initialize_signals): New function.
170 (_initialize_nto_tdep): Move signal initialization code to above to
171 avoid initialization race conditions.
172 (nto_set_target): New function.
173 * nto-procfs.c: Minor formatting/indenting changes.
174 (procfs_is_nto_target): New function.
175 (procfs_open): Set nto_is_nto_target.
176 (_initialize_procfs): Ditto. Remove notice_signals() call to avoid
177 initialization race conditions.
178 (procfs_create_inferior): Resume inferior after creation.
179 * i386-nto-tdep.c: Declare i386_nto_target.
180 (init_i386nto_ops): Initialize i386_nto_target instead of
181 current_nto_target.
182 (i386nto_init_abi): Initialize signals. Call nto_set_target. Set
183 TARGET_SO_IN_DYNSYM_RESOLVE_CODE.
184 (_initialize_i386nto_tdep): Call init_i386nto_ops. Register osabi
185 sniffer.
186
187 2004-12-10 Mark Kettenis <kettenis@gnu.org>
188
189 * hppa-hpux-tdep.c (child_enable_exception_callback): Use XMALLOC.
190 (hppa_hpux_sigtramp_frame_unwind_cache): Use ARRAY_SIZE.
191 (hppa_hpux_init_abi): Reformat long line.
192
193 2004-12-09 Mark Kettenis <kettenis@gnu.org>
194
195 * hppa-hpux-tdep.c: Include "regset.h".
196 (HPPA_HPUX_SS_WIDEREGS, HPPA_HPUX_SS_FLAGS_OFFSET)
197 (HPPA_HPUX_SS_NARROW_OFFSET, HPPA_HPUX_SS_FPBLOCK_OFFSET)
198 (HPPA_HPUX_SS_WIDE_OFFSET, HPPA_HPUX_SAVE_STATE_SIZE)
199 (HPPA_HPUX_PA89_SAVE_STATE_SIZE): New defines.
200 (hppa_hpux_supply_ss_narrow, hppa_hpux_supply_ss_fpblock)
201 (hppa_hpux_supply_ss_wide, hppa_hpux_supply_save_state): New
202 functions.
203 (hppa_hpux_regset): New variable.
204 (hppa_hpux_regset_from_core_section): New function.
205 (hppa_hpux_init_abi): Set regset_from_core_section.
206 (hppa_hpux_core_osabi_sniffer): New function.
207 (_initialize_hppa_hpux_tdep): Register
208 hppa_hpux_core_osabi_sniffer.
209 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
210 * config/pa/hppahpux.mt (TDEPFILES): Add corelow.o.
211
212 2004-12-09 Randolph Chung <tausq@debian.org>
213
214 * solib-pa64.c (pa64_relocate_section_addresses): Properly relocate
215 text and data sections.
216 (pa64_current_sos): Also include the dld in the list of current shared
217 objects.
218 (pa64_solib_get_solib_by_pc): Update comments.
219 (pa64_solib_get_text_base): New function.
220 (pa64_solib_select): Set solib_get_text_base method.
221
222 2004-12-08 Daniel Jacobowitz <dan@debian.org>
223
224 * linux-thread-db.c (BUILD_THREAD): Delete.
225 (thread_get_info_callback): Include LWP ID in thread ID.
226 (thread_from_lwp, check_event, find_new_threads_callback): Likewise.
227 (lwp_from_thread): Use the LWP ID from the thread ID.
228
229 2004-12-07 Randolph Chung <tausq@debian.org>
230
231 * hppa-tdep.c (hppa_frame_prev_register_helper): Zero out the entire
232 register for both 32- and 64-bit targets.
233
234 2004-12-07 Randolph Chung <tausq@debian.org>
235
236 * frame.c (get_prev_frame): Don't terminate unwinding at main if we
237 are unwinding through a dummy frame.
238
239 2004-12-07 Randolph Chung <tausq@debian.org>
240
241 * hppa-tdep.h (gdbarch_tdep): Add unwind_adjust_stub method.
242 * hppa-hpux-tdep.c (hppa_hpux_unwind_adjust_stub): New function.
243 (hppa_hpux_init_abi) Set unwind_adjust_stub method.
244 * hppa-tdep.c (hppa_frame_cache): Call unwind_adjust_stub method
245 if defined.
246
247 2004-12-07 Randolph Chung <tausq@debian.org>
248
249 * hppa-tdep.c (hppa_stub_Frame_unwind_cache): Stop unwinding if
250 unwinding from a frame with pc == 0.
251 (hppa_stub_frame_this_id): Likewise.
252 (hppa_stub_frame_prev_register): Only provide real values if the frame
253 cache is not NULL.
254
255 2004-12-07 Randolph Chung <tausq@debian.org>
256
257 * solib-som.c: New file.
258 * solib-som.h: New file.
259 * solib-pa64.c: New file.
260 * solib-pa64.h: New file.
261
262 2004-12-07 Mark Kettenis <kettenis@gnu.org>
263
264 * Makefile.in (inf-ttrace.o): Fix typo.
265
266 2004-12-07 Jim Blandy <jimb@redhat.com>
267
268 * remote.c (remote_threads_info, remote_current_thread): Use
269 strtoul to parse thread ID numbers.
270
271 2004-12-07 Mark Kettenis <kettenis@gnu.org>
272
273 * inf-ttrace.c: Include "gdbthread.h".
274 (inf_ttrace_num_lwps): New variable.
275 (inf_ttrace_num_lwps_in_syscall): Renamed from
276 inf_ttrace_num_threads_in_syscall.
277 (inf_ttrace_him): Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
278 TTEVT_LWP_TERMINATE events.
279 (inf_ttrace_create_inferior): Assert that INF_TTRACE_NUM_LWPS is
280 zero.
281 (inf_ttrace_mourn_inferior): Set INF_TTRACE_NUM_LWPS to zero.
282 (inf_ttrace_attach): Assert that INF_TTRACE_NUM_LWPS is zero.
283 Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE
284 events.
285 (inf_ttrace_wait): Report status as TARGET_WAITKIND_SPURIOUS by
286 default. Handle TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
287 TTEVT_LWP_TERMINATE events.
288 (inf_ttrace_thread_alive, inf_ttrace_pid_to_str): New functions.
289 (inf_ttrace_target): Set to_thread_alive and to_pid_to_str.
290 * Makefile.in (inf-ttrace.o): Update dependencies.
291
292 * hppa-tdep.h (hppa_read_pc, hppa_write_pc, hppa_unwind_pc): New
293 prototypes.
294 * hppa-tdep.c (hppa_read_pc): Rename from hppa_target_read_pc.
295 Make global. Remove HP-UX specific code. Use
296 frame_unwind_register_unsigned instead of
297 frame_unwind_register_signed.
298 (hppa_write_pc): Rename from hppa_target_write_pc. Make global.
299 Remove HP-UX specific code.
300 (hppa_unwind_pc): Make global. Remove HP-UX specific code.
301 (hppa_frame_prev_register_helper): Set "flags" register to zero
302 for all unwound frames.
303 (hppa_gdbarch_init): Adjust.
304 * hppa-hpux-tdep.c (HPPA_HPUX_SS_INSYSCALL): New define.
305 (hppa_hpux_read_pc, hppa_hpux_write_pc)
306 (hppa_hpux_unwind_pc): New functions.
307 (hppa_hpux_init_abi): Set read_pc, write_pc and unwind_pc.
308
309 2004-12-07 Andreas Schwab <schwab@suse.de>
310
311 * main.c (long_options): Add entry for "-l".
312 (print_gdb_help): Add line for -l option.
313 * NEWS: Mention it.
314
315 2004-12-05 Randolph Chung <tausq@debian.org>
316
317 * hppah-nat.c (store_inferior_registers): Rewrite logic to not use
318 DEPRECATED_REGISTER_BYTE.
319
320 2004-12-05 Randolph Chung <tausq@debian.org>
321
322 * hppa-tdep.c (unwind_command): Print the stub type for stub unwind
323 records.
324
325 2004-12-05 Mark Kettenis <kettenis@gnu.org>
326
327 * somsolib.c [PA_SOM_ONLY] (no_shared_libraries): New function.
328 * config/pa/hppahpux.mt (TDEPFILES): Remove solib.o.
329
330 * hppa-hpux-tdep.c: Update copyright notice and year.
331
332 2004-12-05 Richard Earnshaw <rearnsha@arm.com>
333
334 * doublest.c (FLOATFORMAT_LARGEST_BYTES): New define.
335 (get_field, put_field): Assert that the format is one we can handle.
336 Simplify logic accordingly.
337 (floatformat_normalize_byteorder): New function.
338 (convert_floatformat_to_doublest): Use floatformat_normalize_byteorder
339 to normalize and select modified byte order. Pass modified byte order
340 to get_field.
341 (floatformat_is_negative, floatformat_is_nan, floatformat_mantissa):
342 Likewise.
343 (convert_doublest_to_floatformat): Select an appropriate intermediate
344 byte order if necessary. Always convert to the final format before
345 returning.
346
347 2004-12-04 Daniel Jacobowitz <dan@debian.org>
348
349 PR tui/1703
350 * linux-nat.c (linux_tracefork_child): Use _exit instead of exit.
351 Suggested by Joshua Neuheisel.
352
353 2004-12-03 Randolph Chung <tausq@debian.org>
354
355 * gdbarch.sh (instruction_nullified): Delete.
356 * gdbarch.c: Regenerate.
357 * gdbarch.h: Regenerate.
358 * hppa-tdep.c (hppa_target_read_pc): Adjust pc if instruction is
359 nullified.
360 (hppa_unwind_pc): Likewise.
361 (hppa_instruction_nullified): Delete.
362 (hppa_gdbarch_init): Don't set instruction_nullified method.
363 * infrun.c (infwait_states): Remove infwait_nullified_state.
364 (handle_inferior_event): Remove handling of infwait_nullified_state.
365 Remove handling of nullified instructions.
366
367 2004-12-03 Mark Kettenis <kettenis@gnu.org>
368
369 * inf-ttrace.c: Include <sys/mman.h>.
370 (struct inf_ttrace_page): New.
371 (struct inf_ttrace_page_dict): New.
372 (inf_ttrace_num_threads_in_syscall)
373 (inf_ttrace_reenable_page_protections): New variables.
374 (inf_ttrace_enable_syscall_events)
375 (inf_ttrace_disable_syscall_events, inf_ttrace_get_page)
376 (inf_ttrace_add_page, inf_ttrace_insert_page)
377 (inf_ttrace_remove_page, inf_ttrace_mask_page_protections)
378 (inf_ttrace_enable_page_protections)
379 (inf_ttrace_disable_page_protections)
380 (inf_ttrace_insert_watchpoint, inf_ttrace_remove_watchpoint)
381 (inf_ttrace_can_use_hw_breakpoint)
382 (inf_ttrace_region_size_ok_for_hw_watchpoint)
383 (inf_ttrace_stopped_by_watchpoint): New functions.
384 (inf_ttrace_him): Remove unsused varaible `tts'.
385 (inf_ttrace_create_inferior): Add assertionts.
386 (inf_ttrace_mourn_inferior): Clear page dictionary.
387 (inf_ttrace_attach): Set initial event mask.
388 (inf_ttrace_detach): Reset number of threads in system call.
389 (inf_ttrace_wait): Deal with system call events.
390 (inf_ttrace_target): Initialize "hardware" watchpoint-related
391 parts of the target vector.
392 (_initialize_inf_ttrace): New prototype and function.
393
394 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Use ULONGEST as
395 type of `gp' variable.
396
397 2004-12-03 Richard Sandiford <rsandifo@redhat.com>
398
399 * README: Remove config.if from directory listing.
400
401 2004-12-01 Joel Brobecker <brobecker@gnat.com>
402
403 * alpha-tdep.c (alpha_register_name): Add comment.
404 (alpha_cannot_fetch_register): Exclude registers numbers which
405 are no longer used from the list of registers that can be fetched.
406 (alpha_cannot_store_register): Exclude registers numbers which
407 are no longer used from the list of registers that can be stored.
408 * alpha-nat.c (fetch_osf_core_registers): Add missing value in
409 core_reg_mapping array.
410
411 2004-12-01 Joel Brobecker <brobecker@gnat.com>
412
413 * alpha-tdep.c (alpha_heuristic_frame_prev_register): Fetch
414 the register value from the correct frame.
415
416 2004-11-30 Randolph Chung <tausq@debian.org>
417
418 * hppa-linux-tdep.c (insns_match_pattern_relaxed): New function.
419 (hppa_linux_in_dyncall): Check that we are inside the range of
420 $$dyncall, not necessarily at the first insn.
421 (hppa_linux_in_solib_call_trampoline): Identify a trampoline
422 even if the pc does not point to the first insn of the trampoline.
423
424 2004-11-30 Randolph Chung <tausq@debian.org>
425
426 * breakpoint.c (break_at_finish_command): Delete.
427 (break_at_finish_command_1): Delete.
428 (break_at_finish_at_depth_command): Delete.
429 (break_at_finish_at_depth_command_1): Delete.
430 (tbreak_at_finish_command): Delete.
431 * hppa-tdep.c (_initialize_hppa_tdep): Remove deprecated xbreak, tbreak
432 and bx commands.
433
434 2004-11-30 Andrew Cagney <cagney@gnu.org>
435
436 * config/nm-gnu.h: Delete file.
437 * config/i386/nm-i386gnu.h: Inline "config/nm-gnu.h".
438
439 * config/nm-sysv4.h: Delete file.
440 * config/i386/nm-i386v4.h: Inline "config/nm-sysv4.h".
441 * config/i386/nm-i386v42mp.h: Inline "config/nm-sysv4.h".
442 * config/i386/nm-i386sol2.h: Inline "config/nm-sysv4.h".
443 * config/ia64/nm-aix.h: Inline "config/nm-sysv4.h".
444 * config/mips/nm-irix5.h: Inline "config/nm-sysv4.h".
445
446 2004-11-29 Andrew Cagney <cagney@gnu.org>
447
448 * MAINTAINERS: Add Randolph Chung (pa), Jeff Johnston (ia64), Kei
449 Sakamoto (m32r), Joel Brobecker (mips), and Ulrich Weigand (s390)
450 as can-commit architecture developers.
451
452 2004-11-29 Mark Kettenis <kettenis@gnu.org>
453
454 * sparc-tdep.c (X_RS1, X_SIMM13): New macros.
455 (sparc32_skip_prologue): Skip instructions that store arguments in
456 registers into their corresponding stack slots.
457
458 * config/m68k/nbsdaout.mh (NAT_FILE): Set to solib.h instead of
459 tm-solib.h.
460 * config/m68k/obsd.mh (NAT_FILE): Likewise.
461
462 * sparc-tdep.h (sparc32nbsd_elf_init_abi): New prototype.
463 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Make global.
464 * sparcobsd-tdep.c (sparc32obsd_init_abi): Call
465 sparc32nbsd_elf_init_abi. Remove duplicate code.
466
467 * config/sparc/nbsdaout.mh (NAT_FILE): Set to solib.h.
468 * config/sparc/nbsdelf.mh (NAT_FILE): Remove variable.
469 * config/sparc/nm-nbsd.h: Remove file.
470 * config/sparc/nm-nbsdaout.h: Remove file.
471
472 * sparc-nat.c (inf_ptrace_xfer_partial): New variable.
473 (sparc_xfer_partial): New function.
474 (sparc_target): Save value of to_xfer_partial from ptrace vector.
475 Set to_xfer_partial.
476
477 * fork-child.c (fork_inferior): Fork instead of vfork if
478 PRE_TRACE_FUN is non-null.
479
480 2004-11-24 Fred Fish <fnf@specifixinc.com>
481
482 * rs6000-tdep.c (skip_prologue): Use line table info to skip over
483 compiler generated function calls made as part of a prologue.
484
485 2004-11-23 Mark Kettenis <kettenis@gnu.org>
486
487 * inf-ttrace.c: New file.
488 * inf-ttrace.h: New file.
489 * hppa-hpux-nat.c [HAVE_TTRACE]: Include <sys/ttrace>.
490 Include "inf-ttrace.h".
491 (ss_mpsfu_high): Define to ss_tlsp if necessary.
492 (hppa_hpux_fetch_register, hppa_hpux_store_register): Use
493 ptid_get_pid instead of PIDGET. Modify to handle both ttrace and
494 ptrace systems.
495 (_initialize_hppa_hpux_nat) [HAVE_TTRACE]: Call inf_ttrace_traget
496 instead of inf_ptrace_target.
497 * config/pa/hpux.mh (NATDEPFILES): Add inf-ttrace.o.
498 * Makefile.in (inf_ttrace_h): New variable.
499 (hppa-hpux-nat.o): Update dependency.
500 (inf-ttrace.o): New dependency.
501 (ALLDEPFILES): Add inf-ptrace.c and inf-ttrace.c.
502
503 2004-11-23 Randolph Chung <tausq@debian.org>
504
505 * arch-utils.c (generic_instruction_nullified): New.
506 * arch-utils.h (generic_instruction_nullified): New.
507 * gdbarch.sh (instruction_nullified): New method.
508 * gdbarch.c: Regenerate.
509 * gdbarch.h: Regenerate.
510 * infrun.c (INSTRUCTION_NULLIFIED): Delete.
511 (handle_inferior_event): Replace INSTRUCTION_NULLIFIED with calls to
512 new gdbarch method.
513 * config/pa/tm-hppa.h (INSTRUCTION_NULLIFIED): Delete definition.
514 * hppa-tdep.c (hppa_instruction_nullified): Remove prototype and make
515 static. Rewrite to work directly off the passed regcache.
516 (hppa_gdbarch_init): Set instruction_nullified method.
517
518 2004-11-23 Joel Brobecker <brobecker@gnat.com>
519
520 * sparc-tdep.c (sparc_is_unimp_insn): New function.
521 (sparc32_frame_cache): For functions where there is no debugging
522 information to help us determine whether it's a struct-return
523 function or not, fallback on checking whether the instruction
524 at the return address is an "unimp" instruction or not.
525
526 2004-11-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
527
528 * MAINTAINERS: Add myself to write after approval section.
529
530 * hppa-hpux-nat.c (child_suppress_run): Add variable to allow
531 hpux-thread.c to suppress children from running.
532 (hppa_hpux_child_can_run): New function.
533 (_initialize_hppa_hpux_nat): Use hppa_hpux_child_can_run.
534 * hpux-thread.c: Include string.h and hppa-tdep.h.
535 (FLAGS_REGNUM, SP_REGNUM, PC_REGNUM): Rename to HPPA_FLAGS_REGNUM,
536 HPPA_SP_REGNUM and HPPA_PCOQ_HEAD_REGNUM, respectively.
537 (hpux_thread_store_registers): Replace deprecated_registers with
538 calls to regcache_raw_read.
539 * config/pa/hpux11.mh, config/pa/hpux11w.mh: Delete HOST_IPC.
540
541 2004-11-21 Mark Kettenis <kettenis@gnu.org>
542
543 * sparc64fbsd-nat.c: Update copyright year.
544 (_initialize_sparc64fbsd_nat): Construct and add target vector.
545 * config/sparc/fbsd.mh (NATDEPFILES): Remove infptrace.o,
546 inftarg.o.
547
548 2004-11-21 Daniel Jacobowitz <dan@debian.org>
549
550 * sparc-tdep.c (sparc_software_single_step): Handle stepping to NULL.
551
552 2004-11-21 Daniel Jacobowitz <dan@debian.org>
553
554 * linux-nat.c (my_waitpid): New function.
555 (linux_test_for_tracefork): Make more robust and verbose. Take
556 an ORIGINAL_PID argument and test for PTRACE_SETOPTIONS first.
557 (linux_supports_tracefork, linux_supports_tracevforkdone): Take a PID
558 argument. Update calls to linux_test_for_tracefork.
559 (linux_enable_event_reporting, child_follow_fork)
560 (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
561 (child_insert_exec_catchpoint): Update calls to
562 linux_supports_tracefork and linux_supports_tracevforkdone.
563
564 2004-11-21 Daniel Jacobowitz <dan@debian.org>
565
566 * valarith.c (value_subscript): Copy VALUE_FRAME_ID.
567 (value_subscripted_rvalue): Likewise.
568 * valops.c (search_struct_field, value_slice): Likewise.
569
570 2004-11-21 Mark Kettenis <kettenis@gnu.org>
571
572 * inf-ptrace.c: Don't include "regcache.h" and "gdbcmd.h".
573 Reorder includes a bit. Fix comment.
574 * Makefile.in (inf-ptrace.o): Update dependencies.
575
576 2004-11-21 Andreas Schwab <schwab@suse.de>
577
578 * m68klinux-tdep.c: Include "glibc-tdep.h" and "solib-svr4.h".
579 (m68k_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
580 svr4_ilp32_fetch_link_map_offsets and gdbarch_skip_solib_resolver
581 to glibc_skip_solib_resolver.
582 * config/m68k/linux.mt (TDEPFILES): Add glibc-tdep.o. Remove
583 solib-legacy.o.
584 * Makefile.in (m68klinux-tdep.o): Update dependencies.
585
586 2004-11-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
587
588 * infttrace.h (ttrace_write_reg_64): Add prototype.
589 * hppah-nat.c (store_inferior_registers): Fix warning from ambiguous
590 expression.
591 (store_inferior_registers): Correct formatting. Replace uses of
592 deprecated_registers with calls to regcache_raw_read,
593 regcache_raw_write_part and regcache_raw_read_part.
594
595 2004-11-21 Mark Kettenis <kettenis@gnu.org>
596
597 * config/pa/hppahpux.mh: Remove file.
598 * config/pa/hpux1020.mh: Remove file.
599
600 2004-11-20 Andreas Schwab <schwab@suse.de>
601
602 * configure.host: Set host floatformat for m68k.
603
604 2004-11-20 Eli Zaretskii <eliz@gnu.org>
605
606 * config/djgpp/fnchange.lst: Resolve file-name clash between
607 hppa-hpux-tdep.c and the new hppa-hpux-nat.c.
608
609 2004-11-20 Mark Kettenis <kettenis@gnu.org>
610
611 * hppa-hpux-nat.c: New file.
612 * config/pa/hpux.mh (NATDEPFILES): New file.
613 * Makefile.in (ALLDEPFILES): Add hppa-hpux-nat.c.
614 (hppa-hpux-nat.o): New dependency.
615 * configure.host: Remove hppa*-*-hpux10.20.
616 (hppa*-*-hpux*, hppa*-*-hiux*): Set gdb_host to hpux.mh.
617
618 * inf-ptrace.c: Fix coding style.
619
620 * gdb_ptrace.h [PTRACE_TYPE_ARG5] (ptrace): New macro.
621 * infptrace.c (call_ptrace): Simply call ptrace with four
622 arguments.
623
624 * dbxread.c (process_one_symbol): Fix a few coding standard
625 issues. Improve code formatting.
626
627 * dbxread.c: Include "gdb_string.h".
628 (record_minimal_symbol, read_ofile_symtab): Replace
629 DEPRECATED_STREQ and DEPRECATED_STREQN with strcmp and strncmp.
630 * Makefile.in (dbxread.o): Update dependencies.
631
632 * dwarf2-frame.c (read_encoded_value): Correctly calculate number
633 of bytes read for aligned LEB128 encodings.
634
635 2004-11-19 Mark Kettenis <kettenis@gnu.org>
636
637 * bsd-kvm.c (bsd_kvm_pcb_cmd): Cast return value from
638 parse_and_eval_address to u_long before converting it to a pointer
639 type.
640 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Change type of
641 ps_strings from int to u_long.
642 * i386obsd-nat.c (_initialize_i386obsd_nat): Cast _ps.val to
643 u_long instead of CORE_ADDR.
644
645 2004-11-18 Mark Kettenis <kettenis@gnu.org>
646
647 * dbxread.c (process_one_symbol): Do not adjust address of first
648 N_SLINE stab for a function for code generated by non-GCC
649 compilers.
650
651 2004-11-18 Kevin Buettner <kevinb@redhat.com>
652
653 * solib-null.c: New file.
654
655 2004-11-17 Andrew Cagney <cagney@gnu.org>
656
657 * MAINTAINERS: Drop MIPS and remote.
658
659 2004-11-15 Andrew Cagney <cagney@gnu.org>
660
661 * findvar.c (value_of_register): Set the frame ID.
662 * value.c (value_primitive_field): Copy the frame ID.
663 * valops.c (value_assign): Simplify lval_register case, there's
664 always a frame.
665
666 2004-11-14 Daniel Jacobowitz <dan@debian.org>
667
668 * Makefile.in (mips-linux-tdep.o): Update dependencies.
669 * mips-linux-tdep.c: Include "regcache.h".
670 (fill_fpregset, mips64_fill_fpregset): Use regcache_raw_collect.
671
672 2004-11-14 Daniel Jacobowitz <dan@debian.org>
673
674 * Makefile.in (linux-thread-db.o): Fix typo in last change.
675
676 2004-11-14 Daniel Jacobowitz <dan@debian.org>
677
678 * linux-thread-db.c: New file, renamed from thread-db.c.
679 * thread-db.c: Remove.
680 * Makefile.in (linux-thread-db.o): Rename from thread-db.o rule.
681 * config/alpha/alpha-linux.mh (NATDEPFILES): Rename thread-db.o
682 to linux-thread-db.o.
683 * config/arm/linux.mh (NATDEPFILES): Likewise.
684 * config/i386/linux.mh (NATDEPFILES): Likewise.
685 * config/i386/linux64.mh (NATDEPFILES): Likewise.
686 * config/ia64/linux.mh (NATDEPFILES): Likewise.
687 * config/m32r/linux.mh (NATDEPFILES): Likewise.
688 * config/m68k/linux.mh (NATDEPFILES): Likewise.
689 * config/mips/linux.mh (NATDEPFILES): Likewise.
690 * config/pa/linux.mh (NATDEPFILES): Likewise.
691 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
692 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
693 * config/s390/s390.mh (NATDEPFILES): Likewise.
694 * config/sparc/linux.mh (NATDEPFILES): Likewise.
695 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
696
697 2004-11-13 Andrew Cagney <cagney@gnu.org>
698
699 * config/i386/i386lynx.mh: Delete file.
700 * config/i386/i386lynx.mt: Delete file.
701 * Makefile.in (ALLDEPFILES, i386ly-tdep.o): Remove i386ly-tdep.c.
702 * i386ly-tdep.c: Delete.
703
704 * config/tm-lynx.h: Delete, inline contents ...
705 * config/rs6000/tm-rs6000ly.h: ... here.
706
707 * config/tm-sysv4.h: Delete file, inlining contents.
708 * config/ia64/tm-aix.h (SKIP_TRAMPOLINE_CODE): Define.
709 * config/tm-linux.h (SKIP_TRAMPOLINE_CODE): Define.
710 * config/tm-nto.h (SKIP_TRAMPOLINE_CODE): Define.
711
712 * regcache.h (deprecated_register_valid): Delete.
713 (deprecated_registers): Delete.
714 * regcache.c (deprecated_register_valid): Delete.
715 (deprecated_registers): Delete.
716 (deprecated_read_register_byte, _initialize_regcache)
717 (deprecated_write_register_bytes, build_regcache): Update.
718 * config/powerpc/ppc-sim.mt (TDEPFILES): Remove ppc-bdm.o and
719 remote-sds.o.
720 * config/powerpc/ppc-eabi.mt (TDEPFILES): Ditto.
721 * config/mips/embed.mt (TDEPFILES): Remove remote-mips.o.
722
723 * NEWS: List h8300*-*-*, mcore-*-*, mn10300-*-*, ns32k-*-*, and
724 v850-*-* under removed.
725 * configure.host: Delete ns32k-*-netbsd*.
726 * configure.tgt: Delete h8300-*-*, mcore*-*-*, mn10300-*-*,
727 ns32k-*-netbsd*, and v850*-*-*.
728 * MAINTAINERS: Mark h8300, mcore, mn10300, ns32k, v850 as
729 "Deleted"
730 * config/h8300/tm-h8300.h, config/h8300/h8300.mt: Delete.
731 * h8300-tdep.c, config/mcore/mcore.mt, mcore-rom.c: Delete.
732 * mcore-tdep.c, config/mn10300/mn10300.mt: Delete.
733 * mn10300-tdep.c, config/ns32k/nbsdaout.mh: Delete.
734 * config/ns32k/nbsdaout.mt, config/ns32k/nm-nbsd.h: Delete.
735 * config/ns32k/nm-nbsdaout.h, config/ns32k/tm-ns32k.h: Delete.
736 * ns32knbsd-nat.c, ns32knbsd-tdep.c, ns32k-tdep.c: Delete.
737 * ns32k-tdep.h, config/v850/v850.mt, v850ice.c: Delete.
738 * v850-tdep.c: Delete.
739
740 2004-11-13 Joel Brobecker <brobecker@gnat.com>
741
742 * irix5-nat.c (fetch_core_registers): Replace use of
743 deprecated_registers by equivalent code.
744
745 2004-11-13 Joel Brobecker <brobecker@gnat.com>
746
747 * irix5-nat.c (fill_gregset): Replace use of deprecated_registers
748 with equivalent code.
749 (fill_fpregset): Likewise.
750
751 2004-11-13 Andrew Cagney <cagney@gnu.org>
752
753 * MAINTAINERS: Do not list "Deleted" architectures.
754
755 * configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
756 m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
757 sparc-*-vxworks*.
758 * NEWS: Mention that vxworks was deleted.
759 * config/m68k/tm-vx68.h, config/mips/tm-vxmips.h: Delete.
760 * config/powerpc/tm-vxworks.h, config/tm-vxworks.h: Delete.
761 * config/i386/vxworks.mt, config/m68k/vxworks68.mt: Delete.
762 * config/mips/vxmips.mt, config/powerpc/vxworks.mt: Delete.
763 * config/sparc/vxworks.mt, vx-share/dbgRpcLib.h: Delete.
764 * vx-share/ptrace.h, vx-share/regPacket.h: Delete.
765 * vx-share/vxTypes.h, vx-share/vxWorks.h: Delete.
766 * vx-share/wait.h, vx-share/xdr_ld.c: Delete.
767 * vx-share/xdr_ld.h, vx-share/xdr_ptrace.c: Delete.
768 * vx-share/xdr_ptrace.h, vx-share/xdr_rdb.c: Delete.
769 * vx-share/xdr_rdb.h, remote-vxsparc.c: Delete.
770 * remote-vxmips.c, remote-vx.c: Delete.
771 * remote-vx68.c: Delete.
772 * config/m68k/tm-os68k.h: Remove reference to VxWorks.
773 * config/m68k/os68k.mt, ada-lang.h: Ditto.
774 * Makefile.in (HFILES_NO_SRCDIR, ALLDEPFILES, remote-vx68.o)
775 (remote-vx.o, remote-vxmips.o, remote-vxsparc.o): Delete vx files.
776
777 2004-11-13 Eli Zaretskii <eliz@gnu.org>
778
779 * config/i386/xm-go32.h: Don't include fopen-bin.h.
780 Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR.
781
782 * source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the
783 branch that doesn't define CRLF_SOURCE_FILES; always use
784 binary-mode open.
785 (print_source_lines_base, forward_search_command)
786 (reverse_search_command): Enable the code that accepts DOS-style
787 CRLF line endings on all platforms (this removes the need for
788 CRLF_SOURCE_FILES).
789
790 * defs.h: Fix wording of the comment before FOPEN_RB.
791 (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
792
793 * config/djgpp/fnchange.lst: Group renames for opcode directory
794 together.
795
796 * config/djgpp/djconfig.sh: Replace file names that don't exist
797 anymore with existing files, for checking the unpacked
798 distribution.
799
800 * config/djgpp/config.sed (am_cv_exeext, lt_cv_sys_max_cmd_len):
801 Export pre-cooked values in configure-* targets that begin with
802 "@test -f stage_last".
803
804 2004-11-12 Andrew Cagney <cagney@gnu.org>
805
806 * defs.h (enum lval_type): Delete lval_reg_frame_relative.
807 * value.h (struct value): Update comment.
808 * valops.c (value_assign): Fold lval_reg_fame_relative into
809 lval_register.
810 * findvar.c (value_from_register, locate_var_value): Ditto.
811
812 2004-11-12 Randolph Chung <tausq@debian.org>
813
814 * config/tm/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
815 * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
816 (write_exp_msymbol): Remove conditional check for symbols starting
817 with $. Update comments.
818
819 2004-11-12 Randolph Chung <tausq@debian.org>
820
821 * pa64solib.c (pa64_solib_thread_start_addr): Rename from
822 so_lib_thread_start_addr.
823 * pa64solib.h (so_list): Forward declare.
824 (pa64_solib_thread_start_addr): Prototype.
825 * somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined.
826 (no_shared_libraries): Remove.
827 (som_solib_thread_start_addr): Rename from so_lib_thread_start_addr.
828 * somsolib.h (som_solib_thread_start_addr): Likewise; prototype.
829 * hpread.c (hpread_process_one_debug_symbol): Use either the som or
830 the elf solib handler to find the start address.
831
832 * config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support
833 files to the target makefile.
834 * config/pa/hpux1020.mh (NATDEPFILES): Likewise.
835 * config/pa/hpux11.mh (NATDEPFILES): Likewise.
836 * config/pa/hpux11w.mh (NATDEPFILES): Likewise.
837
838 * config/pa/hppa64.mt (TDEPFILES): Put target-specific support
839 files for symbol reading and shared library handling here.
840 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
841 (PA_SOM_ONLY): Define so we can build a 32-bit SOM only target
842 without bringing in 64-bit support.
843
844 2004-11-12 Andrew Cagney <cagney@gnu.org>
845
846 * sparc-tdep.c: Replace VALUE_TYPE with value_type.
847 * v850-tdep.c, sparc64-tdep.c, sh-tdep.c: Ditto.
848 * sh64-tdep.c, s390-tdep.c, mcore-tdep.c: Ditto.
849 * h8300-tdep.c, arm-linux-tdep.c, amd64-tdep.c: Ditto.
850 * hppa-tdep.c, mips-tdep.c, m88k-tdep.c: Ditto.
851 * m68hc11-tdep.c, m32r-tdep.c, ia64-tdep.c: Ditto.
852 * frv-tdep.c, cris-tdep.c, avr-tdep.c, alpha-tdep.c: Ditto.
853
854 Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM.
855 * value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete.
856 (VALUE_REGNUM): Define.
857 (struct value): Delete location.regnum, rename "regno" to
858 "regnum".
859 * value.c, valops.c, valarith.c, findvar.c: Update.
860
861 * value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE)
862 (VALUE_BITPOS): Delete.
863 (value_type, value_offset, value_bitsize, value_bitpos): Declare.
864 * value.c (value_type, value_offset, value_bitpos)
865 (value_bitsize): New functions. Update references.
866 * arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update.
867 * f-valprint.c, cp-valprint.c, c-valprint.c: Update.
868 * ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update.
869 * p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update.
870 * objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update.
871 * infcall.c, linespec.c, printcmd.c, valarith.c: Update.
872 * valops.c, eval.c, findvar.c, breakpoint.c: Update.
873 * tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c:
874 * rs6000-tdep.c, ppc-sysv-tdep.c: Update.
875
876 2004-11-12 Andrew Cagney <cagney@gnu.org>
877
878 * cris-tdep.c (cris_register_offset): Delete, never called.
879 (cris_spec_reg_applicable): Delete cris_ver_sim.
880 * MAINTAINERS: List d10v as OBSOLETE.
881 * rdi-share/host.h (FOPEN_WB): #ifdef 0 out definitions of
882 FOPEN_WB et.al., defined by "fopen-bin.h".
883
884 2004-11-12 Randolph Chung <tausq@debian.org>
885
886 * hppa-tdep.c (hppa_skip_permanent_breakpoint): Move definition ...
887 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): ... to here.
888 * config/pa/tm-hppa.h (SKIP_PERMANENT_BREAKPOINT): Move definition ...
889 * config/pa/tm-hppah.h (SKIP_PERMANENT_BREAKPOINT): ... to here.
890
891 2004-11-12 Mark Kettenis <kettenis@jive.nl>
892
893 * tui/tui-io.c: Don't include "terminal.h".
894 * Makefile.in (tui-io.o): Update dependencies.
895
896 2004-11-12 Kei Sakamoto <sakamoto.kei@renesas.com>
897
898 * Makefile.in (m32r-linux-tdep.o): Update dependencies.
899 * m32r-linux-tdep.c (m32r_linux_init_abi): Call
900 set_gdbarch_regset_from_core_section for core file support.
901 (m32r_linux_supply_gregset, m32r_linux_regset_from_core_section):
902 New functions.
903
904 2004-11-11 Randolph Chung <tausq@debian.org>
905
906 * hppa-tdep.c (skip_prologue_hard_way): Make static, add
907 stop_after_branch parameter and use it to determine if we should look
908 at the delay slot of the first branch insn to find prologue insns.
909 (hppa_skip_prologue): Update comment and call to skip_prologue_hard_way.
910 (hppa_frame_cache): Likewise.
911
912 2004-11-11 Randolph Chung <tausq@debian.org>
913
914 * hppa-tdep.c (hppa_frame_cache): Properly handle the frame pointer
915 register so that it can be unwound from anywhere in the prologue.
916
917 2004-11-10 msnyder <msnyder@redhat.com>
918
919 * rs6000-tdep.c (skip_prologue): After saving lr_offset,
920 must invalidate lr_reg (so we don't try to save it again).
921 Ditto for cr_offset and cr_reg.
922
923 2004-11-05 Jon Beniston <jon@beniston.com>
924
925 Committed by Andrew Cagney.
926 * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK
927 when an unexpected packet is received, as the target stubs
928 continually retransmit the same packet until ACKed.
929
930 2004-11-10 Randolph Chung <tausq@debian.org>
931
932 * frame.c (get_prev_frame): Use get_frame_type to retrieve the
933 frame's type.
934
935 2004-11-10 Randolph Chung <tausq@debian.org>
936
937 * blockframe.c (inside_entry_func): Move to .....
938 * frame.c (inside_entry_func): ... here, and make static.
939 (backtrace_past_entry): New flag.
940 (get_prev_frame): Stop backtrace at the entry function if enabled
941 by flag. Update comments.
942 (_initialize_frame): Add command to set backtrace_past_entry flag.
943 * defs.h (inside_entry_func): Remove prototype.
944
945 2004-11-10 Mark Kettenis <kettenis@gnu.org>
946
947 * dwarf2read.c: Fix formatting.
948
949 2004-11-10 Andrew Cagney <cagney@gnu.org>
950
951 * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
952 (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
953 macros with function declarations.
954 * value.c (coerce_ref, coerce_array, coerce_number)
955 (coerce_enum): New functions.
956 (value_as_long, value_as_address): Update.
957 * ada-lang.c (ada_coerce_ref, ada_value_binop)
958 (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
959 * jv-lang.c (evaluate_subexp_java): Update.
960 * valarith.c (value_less, value_neg, value_complement)
961 (value_binop, value_add, value_subscript, value_x_binop)
962 (value_logical_not, value_sub): Update.
963 * valops.c (check_field, value_struct_elt, value_ind)
964 (value_find_oload_method_list, value_cast, value_assign): Update.
965 * eval.c (evaluate_subexp_standard): Update.
966
967 2004-11-10 Mark Kettenis <kettenis@gnu.org>
968
969 * mips-tdep.c (mips32_relative_offset): Change return type to
970 LONGEST, change argument type to ULONGEST. Fix sign-extension.
971
972 2004-11-10 Randolph Chung <tausq@debian.org>
973
974 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
975 (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
976 (hppa_fetch_pointer_argument): Likewise.
977 (hppa_frame_cache): Use safe_frame_unwind_memory instead of
978 deprecated_read_memory_nobpt.
979 (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
980 add_set_cmd sequence with add_setshow_boolean_cmd.
981
982 2004-11-09 Andrew Cagney <cagney@gnu.org>
983
984 GDB 6.3 released from GDB 6.3 branch.
985
986 2004-11-09 Andrew Cagney <cagney@gnu.org>
987
988 * values.c: Rename to ...
989 * value.c: ..., new file.
990 * Makefile.in: Update.
991
992 2004-11-09 Daniel Jacobowitz <dan@debian.org>
993
994 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
995 size.
996
997 2004-11-09 Andrew Cagney <cagney@gnu.org>
998
999 * TODO: Delete.
1000
1001 * value.h (struct value): Delete field bfd_section.
1002 (VALUE_BFD_SECTION): Delete macro.
1003 (COERCE_REF): Update.
1004 (value_at, value_at_lazy): Delete asection parameter.
1005 * printcmd.c (print_formatted, x_command): Update.
1006 (do_examine): Delete asection parameter.
1007 (next_section): Delete variable.
1008 * valops.c (value_cast, value_at, value_at_lazy)
1009 (value_coerce_function, value_addr, value_ind, value_string)
1010 (find_rt_vbase_offset, value_full_object): Update.
1011 * hpacc-abi.c (hpacc_virtual_fn_field)
1012 (hpacc_value_rtti_type): Update.
1013 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field)
1014 (gnuv3_baseclass_offset): Update.
1015 * f-valprint.c (f_val_print): Update.
1016 * c-valprint.c (c_val_print): Update.
1017 * p-valprint.c (pascal_val_print): Update.
1018 * jv-valprint.c (java_value_print): Update.
1019 * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
1020 * ada-lang.c (ada_value_primitive_packed_val)
1021 (ada_evaluate_subexp): Update.
1022 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
1023 * expprint.c (print_subexp_standard): Update.
1024 * infcall.c (call_function_by_hand): Update.
1025 * valarith.c (value_add): Update.
1026 * eval.c (evaluate_subexp_standard): Update.
1027 * values.c (allocate_value, value_copy, value_static_field): Update.
1028 * findvar.c (read_var_value, locate_var_value): Update.
1029
1030 2004-11-09 Andrew Cagney <cagney@gnu.org>
1031
1032 * i386-linux-tdep.c: Include "dwarf2-frame.h".
1033 * Makefile.in: Update all dependencies.
1034
1035 2004-11-08 Andrew Cagney <cagney@gnu.org>
1036
1037 * sentinel-frame.c (sentinel_frame_prev_pc): New function.
1038 (sentinel_frame_unwinder): Add the prev_pc method.
1039 * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
1040 available. Do not handle the sentinel-frame case.
1041 * frame-unwind.h (frame_prev_register_ftype): Define.
1042 (struct frame_unwind): Add prev_pc;
1043
1044 2004-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1045
1046 * configure.in: Check for ncurses/term.h.
1047 * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
1048 * utils.c: Include gdb_curses.h instead of curses.h and term.h.
1049 * tui/tui.c: Don't include term.h.
1050 * configure, config.in: Rebuilt.
1051
1052 2004-11-08 Mark Kettenis <kettenis@gnu.org>
1053
1054 * m68kbsd-nat.c: Include "inf-ptrace.h".
1055 (_initialize_m68kbsd_nat): Fix pasto.
1056 * Makefile.in (m68kbsd-nat.o): Update dependencies.
1057
1058 2004-11-08 Randolph Chung <tausq@debian.org>
1059
1060 * infrun.c (debug_infrun): New variable.
1061 (resume, proceed, wait_for_inferior): Annotate with debug messages.
1062 (handle_inferior_event, keep_going): Likewise.
1063 (_initialize_infrun): Register "set debug infrun" command.
1064
1065 2004-11-08 Andreas Schwab <schwab@suse.de>
1066
1067 * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
1068 PTRACE_EVENT_VFORKDONE.
1069 (child_follow_fork): Adjust.
1070
1071 2004-11-08 Andrew Cagney <cagney@gnu.org>
1072
1073 * README: Refer to 6.3, not 6.2, update directory listing droppng
1074 references to intl/ and mmalloc/.
1075 * PROBLEMS: Refer to 6.3 not 6.2.
1076
1077 * PROBLEMS: Delete no-longer applicable problems.
1078
1079 2004-11-07 Andrew Cagney <cagney@redhat.com>
1080 Daniel Jacobowitz <dan@debian.org>
1081 Roland McGrath <roland@redhat.com>
1082
1083 * Makefile.in (symfile-mem.o): Update dependencies.
1084 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
1085 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
1086 * inf-ptrace.c (inf_ptrace_attach): Call
1087 observer_notify_inferior_created.
1088 * inftarg.c (child_attach): Likewise.
1089 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
1090 (symbol_file_add_from_memory): Take NAME argument. Use it for
1091 the new BFD's filename.
1092 (add_symbol_file_from_memory_command): Update call to
1093 symbol_file_add_from_memory.
1094 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
1095 (symbol_file_add_from_memory_wrapper): New.
1096 (_initialize_symfile_mem): Register add_vsyscall_page as an
1097 inferior_created observer.
1098
1099 2004-11-07 Mark Kettenis <kettenis@gnu.org>
1100
1101 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
1102 fetch_inferior_registers. Make static.
1103 (m68kbsd_store_inferior_registers): Rename from
1104 store_inferior_registers. Make static.
1105 (_initialize_m68kbsd_nat): Construct and add target vector.
1106 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1107 inftarg.o. Add inf-ptrace.o.
1108 (NAT_FILE): Set to tm-solib.h.
1109 (LOADLIBES): New variable.
1110 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1111 inftarg.o. Add inf-ptrace.o.
1112 (NAT_FILE): Delete variable.
1113 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
1114 inftarg.o. Add inf-ptrace.o.
1115 (NAT_FILE): Set to tm-solib.h.
1116 * config/m68k/nm-nbsdaout.h: Remove file.
1117
1118 2004-11-07 Daniel Jacobowitz <dan@debian.org>
1119
1120 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
1121 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
1122 (dwarf2_signal_frame_unwind): New.
1123 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
1124 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
1125
1126 2004-11-07 Mark Kettenis <kettenis@gnu.org>
1127
1128 * Makefile.in (mips64obsd-tdep.o): Fix typo.
1129
1130 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
1131 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
1132 to only include the structure members we actually need.
1133 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
1134 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
1135 only include the structure members we actually need.
1136 (mipsnbsd_init_abi): Update.
1137
1138 * mips64obsd-nat.c: Include "mips-tdep.h".
1139 (MIPS64OBSD_NUM_REGS): Remove define.
1140 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
1141 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
1142 floating-point registers correctly.
1143 * Makefile.in (mips64obsd-nat.o): Update dependencies.
1144
1145 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
1146 "gdb_assert.h".
1147 (mips64obsd_sigframe_init): New function.
1148 (mips64obsd_sigframe): New variable.
1149 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
1150 unwinder.
1151 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
1152
1153 2004-11-06 Joel Brobecker <brobecker@gnat.com>
1154
1155 * alpha-mdebug-tdep.c: #include mdebugread.h.
1156 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
1157 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
1158
1159 2004-11-05 Andrew Cagney <cagney@gnu.org>
1160
1161 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
1162 CFI and the init_reg method leave the register unspecified.
1163 Include the register name in the "Incomplete CFI data" complaint.
1164 Supress leading zeros in the address.
1165
1166 2004-11-05 Mark Kettenis <kettenis@gnu.org>
1167
1168 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
1169 skipping a personality routine in a CIE augmentation.
1170
1171 2004-11-05 Jeff Johnston <jjohnstn@redhat.com>
1172
1173 * defs.h (fatal, vfatal): New function prototypes.
1174 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
1175 via catch_errors.
1176 (backtrace_command): Change to call backtrace_command_stub via
1177 catch_errors instead of calling backtrace_command_1 directly.
1178 (backtrace_full_command): Ditto.
1179 * utils.c (error_stream_1): New static function.
1180 (verror): Change to call error_stream_1 instead of error_stream.
1181 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
1182 (vfatal, fatal): New functions.
1183
1184 2004-11-05 Andrew Cagney <cagney@gnu.org>
1185
1186 * stack.c (parse_frame_specification_1): Clear selected_frame_p
1187 when not using selected frame.
1188
1189 2004-11-05 Mark Kettenis <kettenis@jive.nl>
1190
1191 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
1192 personality routine in a CIE augmentation.
1193
1194 2004-11-05 Felix Lee <felix+log1@specifixinc.com>
1195
1196 * stack.c (set_current_sal_from_frame): New function.
1197 (print_args_stub): Use it.
1198 (print_frame_info): Don't set sal here.
1199
1200 2004-11-04 Mark Kettenis <kettenis@gnu.org>
1201
1202 * dwarf2-frame.c (read_encoded_value): Change type of third
1203 argument to `unsigned char *'. Add support for LEB128 encodings.
1204
1205 2004-11-04 Jim Blandy <jimb@redhat.com>
1206
1207 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
1208 prevent cross-objfile references.
1209 (make_cv_type): Doc fix. Don't create cross-objfile references,
1210 even for stub types.
1211 (replace_type): Add assertion to prevent cross-objfile references.
1212 (check_typedef): Never resolve a stub type by copying over a type
1213 from another file.
1214
1215 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
1216
1217 * Makefile.in (m32r-tdep.o): Update dependencies.
1218 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
1219 ABI-specific overrides.
1220
1221 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
1222
1223 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
1224 unnecessary parallel execution bit.
1225 (m32r_memory_remove_breakpoint): Ditto.
1226 (m32r_breakpoint_from_pc): Update.
1227
1228 2004-11-03 Randolph Chung <tausq@debian.org>
1229
1230 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
1231 frame_func_unwind to locate the unwind entry.
1232 (hppa_frame_this_id): Likewise.
1233
1234 2004-11-03 Andrew Cagney <cagney@gnu.org>
1235
1236 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
1237 packet, obsolete configurations, end-of-life deprecated_registers.
1238
1239 2004-11-02 Mark Kettenis <kettenis@gnu.org>
1240
1241 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
1242 encodings as well as unsigned encodings.
1243
1244 2004-11-02 Andrew Cagney <cagney@gnu.org>
1245
1246 * value.h (COERCE_VARYING_ARRAY): Delete.
1247 * valops.c (value_cast, value_slice): Delete use.
1248 * valarith.c (value_subscript, value_concat): Delete use.
1249
1250 2004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
1251
1252 * NEWS: GDB understands GNAT Ada.
1253
1254 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
1255
1256 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
1257 (amd64-sol2-tdep.o): Add dependencies.
1258 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
1259 config/i386/sol2-64.mt: New files.
1260 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
1261 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
1262 (supply_gregset): Correct order of arguments to
1263 amd64_supply_native_gregset.
1264 (fill_gregset): Correct order of arguments to
1265 amd64_collect_native_gregset.
1266 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
1267 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
1268 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
1269 for definition of NEW_PROC_API.
1270 * configure: Regenerate.
1271
1272 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
1273
1274 * MAINTAINERS (Write After Approval): Add myself.
1275
1276 2004-11-01 Andrew Cagney <cagney@gnu.org>
1277
1278 * configure.tgt: Mark d10v-*-* as obsolete.
1279 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
1280
1281 2004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1282
1283 * values.c (modify_field): Correct handling of bit-fields that
1284 don't fit in 32 bits. Use unsigned operations throughout and
1285 simplify the code a bit. Document preconditions.
1286
1287 2004-10-31 Andrew Cagney <cagney@gnu.org>
1288
1289 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
1290 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1291 (in_plt_section): Delete.
1292
1293 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
1294 (mips_gdbarch_init): Do not set same.
1295
1296 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
1297 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
1298
1299 * gdbarch.sh (in_solib_call_trampoline): Delete.
1300 * gdbarch.h, gdbarch.c: Re-generate.
1301
1302 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
1303 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
1304 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
1305 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
1306 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
1307
1308 2004-10-31 Mark Kettenis <kettenis@gnu.org>
1309
1310 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1311 (mipsnbsd_fetch_inferior_registers): Rename from
1312 fetch_inferior_registers. Make static.
1313 (mipsnbsd_store_inferior_registers): Rename from
1314 store_inferior_registers. Make static.
1315 (_initialize_mipsnbsd_nat): New function and prototype.
1316 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1317 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
1318 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
1319 inf-ptrace.o.
1320
1321 2004-10-31 Andrew Cagney <cagney@gnu.org>
1322
1323 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
1324 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
1325 delete corresponding unused function.
1326 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
1327 in_solib_call_trampoline.
1328 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1329 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
1330 * config/mips/tm-nbsd.h: Ditto.
1331 * config/arm/tm-linux.h: Ditto.
1332 * config/mips/tm-linux.h: Ditto.
1333
1334 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
1335 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
1336 in_solib_call_trampoline, delete corresponding unused function.
1337 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
1338 (vaxnbsd_aout_init_abi): Ditto.
1339 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
1340 (sparc32nbsd_aout_init_abi): Ditto.
1341 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
1342 (ppc_linux_init_abi): Ditto.
1343 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
1344 (ns32knbsd_init_abi_aout): Ditto.
1345 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
1346 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
1347 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
1348 (m68kbsd_aout_init_abi): Ditto.
1349 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
1350 (i386_cygwin_init_abi): Ditto.
1351 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
1352 (i386bsd_init_abi): Ditto.
1353
1354 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
1355 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
1356 isn't used by this architecture.
1357 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
1358 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
1359 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
1360 * s390-tdep.c (s390_gdbarch_init): Ditto.
1361 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
1362 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
1363 * i386-tdep.c (i386_svr4_init_abi): Ditto.
1364 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
1365 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
1366 * amd64-tdep.c (amd64_init_abi): Ditto.
1367
1368 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
1369 in_solib_call_trampoline to its default value of
1370 generic_in_solib_call_trampoline.
1371 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
1372 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
1373 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
1374 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
1375 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
1376 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
1377
1378 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
1379
1380 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
1381
1382 * config/mips/tm-mips.h: Delete file.
1383 * remote-mips.c: Delete tm-mips.h from comment.
1384 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
1385 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
1386 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
1387 * config/mips/tm-linux.h: Don't include tm-mips.h.
1388 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
1389 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
1390 * config/mips/tm-wince.h: Don't include.
1391
1392 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
1393 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
1394 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1395 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1396
1397 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
1398 * mdebugread.c (ecoff_relocate_efi): Delete function.
1399 * objfiles.c (objfile_relocate): Delete #ifdef
1400 MDEBUG_EFI_SYMBOL_NAME code.
1401
1402 2004-10-31 Orjan Friberg <organ.friberg@axis.com>
1403 Andrew Cagney <cagney@gnu.org>
1404
1405 * gdbarch.sh (single_step_through_delay): Add.
1406 * gdbarch.h, gdbarch.c: Re-generate.
1407 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
1408 (mips_step_skips_delay): Delete.
1409 * mips-tdep.c (mips_single_step_through_delay): Replace
1410 mips_step_skips_delay.
1411 (mips_gdbarch_init): Set single_step_through_delay.
1412 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
1413
1414 2004-10-31 Mark Kettenis <kettenis@gnu.org>
1415
1416 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
1417 from TRAMP_FRAME frame type.
1418
1419 2004-10-31 Andrew Cagney <cagney@gnu.org>
1420
1421 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
1422
1423 * mips-tdep.c (mips_ignore_helper): Delete.
1424 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
1425 * infrun.c (handle_inferior_event): Delete #ifdef
1426 DEPRECATED_IGNORE_HELPER_CALL code.
1427
1428 * config/mips/tm-mips.h (RA_REGNUM): Delete.
1429
1430 2004-10-31 Mark Kettenis <kettenis@gnu.org>
1431
1432 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
1433 (fill_fpregset): Do not compile for 64-bit systems.
1434 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
1435 * Makefile.in (i386-sol2-nat.o): Update dependencies.
1436 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
1437
1438 2004-10-30 Andrew Cagney <cagney@gnu.org>
1439
1440 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
1441 (struct mdebug_extra_func_info): Define.
1442 * config/alpha/tm-alpha.h: Delete same.
1443 * config/mips/tm-mips.h: Delete same.
1444 * mdebugread.c: Delete same.
1445 * Makefile.in: Update dependencies.
1446 * mips-mdebug-tdep.c: Include "mdebugread.h".
1447
1448 * objfiles.c: Include "mdebugread.h".
1449 * mdebugread.c: Include "mdebugread.h".
1450 (ecoff_relocate_cfi): Delete.
1451 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
1452 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
1453 * mdebugread.h (ecoff_relocate_efi): New file.
1454 * Makefile.in: Update dependencies.
1455
1456 * mips-tdep.c (struct frame_extra_info): Delete.
1457 (temp_proc_desc): Delete.
1458
1459 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1460 MIPS_EFI_SYMBOL_NAME.
1461 (mips_extra_func_info_t, mips_extra_func_info): Delete.
1462 (struct mdebug_extra_func_info): Replace struct
1463 alpha_extra_func_info and alpha_extra_func_info_t.
1464 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1465 MIPS_EFI_SYMBOL_NAME.
1466 (struct mdebug_extra_func_info): Replace struct
1467 alpha_extra_func_info and alpha_extra_func_info_t.
1468 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
1469 * mdebugread.c, alpha-mdebug-tdep.c:
1470
1471 Suggested by Mark Kettenis.
1472 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
1473 fields frame_adjust and high_addr.
1474 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
1475 (non_heuristic_proc_desc): Delete references.
1476
1477 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
1478 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
1479 * mips-tdep.c: Update.
1480
1481 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
1482 (MIPS_LAST_EMBED_REGNUM): Add.
1483 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
1484 (LAST_EMBED_REGNUM): Delete.
1485 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
1486
1487 * config/mips/tm-mips.h (PS_REGNUM): Delete.
1488 * mips-tdep.h (MIPS_PS_REGNUM): Add.
1489 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
1490 * mips-linux-nat.c: Update.
1491
1492 * mips-tdep.h: Add comments on registers.
1493 (MIPS_UNUSED_REGNUM): Define.
1494 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
1495 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
1496 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
1497 * mips-linux-nat.c, remote-mips.c: Update.
1498
1499 * config/mips/tm-mips.h (t_insn): Delete.
1500 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
1501 Replace t_insn with ULONGEST.
1502
1503 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1504
1505 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
1506 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
1507 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
1508 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
1509 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
1510 (mipsnbsd_core_osabi_sniffer): New function.
1511 (mipsnbsd_init_abi): Set regset_from_core_section.
1512 (_initialize_mipsnbsd_tdep): Remove calls to
1513 deprecated_add_core_fns.
1514 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
1515 (mipsnbsd_regset_from_core_section): New functions.
1516 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
1517 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
1518
1519 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
1520 Remove optimization for DEPRECATED_FP_REGNUM.
1521
1522 2004-10-30 Andrew Cagney <cagney@gnu.org>
1523
1524 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
1525 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
1526 (alpha_setup_arbitrary_frame): Delete.
1527 * mips-tdep.c (setup_arbitrary_frame): Delete.
1528 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
1529 (setup_arbitrary_frame): Delete.
1530 * stack.c (parse_frame_specification_1): When specified, call
1531 create_new_frame with two parameters. Delete #ifdef
1532 SETUP_ARBITRARY_FRAME.
1533
1534 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
1535 (MIPS_INSTLEN): Delete.
1536 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
1537 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
1538 * remote-mips.c, mips-tdep.c: Update.
1539
1540 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
1541 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
1542 * mips-tdep.c (mips_mdebug_frame_cache)
1543 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
1544 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
1545 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
1546 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
1547 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
1548 (mips_gdbarch_init): Do not append mdebug sniffers.
1549 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
1550 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
1551 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
1552 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
1553 * Makefile.in: Update dependencies.
1554
1555 * mips-tdep.h (mips_abi_regsize): Declare.
1556 * mips-tdep.c (mips_abi_regsize): Make non-static.
1557
1558 * mips-tdep.c (gdb_print_insn_mips): Simplify.
1559 (make_mips16_addr): Delete.
1560
1561 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1562
1563 * i386-sol2-nat.c: New file.
1564 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
1565 i386-sol2-tdep.c.
1566 (i386-sol2-nat.o): Update dependencies.
1567 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
1568 i386-sol2-nat.o.
1569
1570 2004-10-30 Andrew Cagney <cagney@gnu.org>
1571
1572 Total breakage identified by Joel Brobecker.
1573 * mips-tdep.c (after_prologue): Delete.
1574 (mips_skip_prologue): Use skip_prologue_using_sal.
1575 (heuristic_proc_desc): Delete, unused.
1576
1577 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1578
1579 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
1580 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
1581 Cleanup coding style.
1582
1583 2004-10-30 Andrew Cagney <cagney@gnu.org>
1584
1585 * mips-tdep.h (mips_pc_is_mips16): Declare.
1586 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
1587 non-static. Update calls.
1588
1589 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
1590 * command.h (add_setshow_enum_cmd): Declare.
1591 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
1592
1593 * mips-tdep.c (_initialize_mips_tdep): Use
1594 add_setshow_zinteger_cmd.
1595
1596 * mips-tdep.c (mips_eabi_extract_return_value)
1597 (mips_o64_extract_return_value, mips_o64_store_return_value)
1598 (return_value_location, mips_eabi_reg_struct_has_addr)
1599 (mips_eabi_use_struct_convention)
1600 (mips_eabi_store_return_value): Delete.
1601 (mips_eabi_store_return_value): New function.
1602 (mips_eabi_return_value): New function.
1603 (mips_gdbarch_init): For O64 and EABI, delete
1604 extract_return_value, store_return_value, use_struct_convention
1605 and reg_struct_has_addr, add return_value.
1606
1607 * mips-tdep.c (read_signed_register): Use
1608 regcache_cooked_read_signed.
1609
1610 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1611
1612 * mipsread.c: Cleanup coding style.
1613 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
1614 (mipscoff_symfile_finish): Remove prototypes.
1615
1616 2004-10-29 Mark Kettenis <kettenis@gnu.org>
1617
1618 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1619 (mips_mdebug_frame_cache, mips16_scan_prologue)
1620 (mips32_scan_prologue, mips_stub_frame_cache)
1621 (heuristic_proc_start, heuristic_proc_desc)
1622 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1623 (mips_n32n64_return_value, mips_o32_push_dummy_call)
1624 (mips_o32_return_value, mips_o64_push_dummy_call)
1625 (mips_step_skips_delay, mips_skip_trampoline_code)
1626 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
1627 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
1628 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
1629 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
1630 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
1631 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
1632 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
1633 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
1634 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
1635 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
1636 ZERO_REGNUM.
1637 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1638 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
1639 ZERO_REGNUM.
1640 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
1641 A0_REGNUM.
1642 * mipsnbsd-nat.c: Include "mips-tdep.h".
1643 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
1644 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1645
1646 2004-10-29 Andrew Cagney <cagney@gnu.org>
1647
1648 * stack.c (parse_frame_specification_1): New function based on
1649 parse_frame_specification. Add message and selected_frame_p
1650 paramters. Truely always return non-NULL.
1651 (parse_frame_specification): Call parse_frame_specification_1.
1652 (frame_info): Update. Eliminate target_has_stack check.
1653 (select_frame_command): Update.
1654
1655 2004-10-29 Andrew Cagney <cagney@gnu.org>
1656
1657 * frame.h (get_selected_frame): Add message parameter.
1658 * frame.c (get_selected_frame): Add and use message parameter.
1659 * stack.c (current_frame_command, return_command, locals_info)
1660 (catch_info, args_info, up_silently_base, down_silently_base): Use
1661 get_selected_frame with an explicit message.
1662 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
1663 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
1664 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
1665 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
1666 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
1667 * breakpoint.c: Update.
1668
1669 2004-10-29 Andrew Cagney <cagney@gnu.org>
1670
1671 * trad-frame.c (trad_frame_get_prev_register): Use
1672 frame_unwind_register instead of frame_register_unwind, do not
1673 recurse the register's location.
1674 * xstormy16-tdep.c (xstormy16_frame_prev_register):
1675 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
1676 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
1677 * sh-tdep.c (sh_frame_prev_register): Ditto.
1678 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
1679 * i386-tdep.c (i386_frame_prev_register): Ditto.
1680 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
1681 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
1682
1683 2004-10-28 Mark Kettenis <kettenis@jive.nl>
1684
1685 * proc-events.c: Fix several coding-style issues. Consistently
1686 use #ifdef instead of #if defined().
1687 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
1688 ARRAY_SIZE.
1689 (_initialize_proc_events): New prototype.
1690
1691 * proc-why.c: Fix several coding-style issues.
1692 (proc_prettyfprint_why): Use ARRAY_SIZE.
1693
1694 2004-10-27 Jim Blandy <jimb@redhat.com>
1695
1696 * remote.c (fetch_register_using_p): Construct 'p' packet in a
1697 manner independent of the host byte order.
1698
1699 2004-10-27 Mark Kettenis <kettenis@gnu.org>
1700
1701 * mips-tdep.c (id_delayed): Remove prototype.
1702
1703 2004-10-26 Mark Kettenis <kettenis@gnu.org>
1704
1705 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
1706 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
1707 to enum with register numbers.
1708 (enum mips_insn_size): New enum.
1709
1710 2004-10-26 Andrew Cagney <cagney@gnu.org>
1711
1712 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
1713 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
1714 (mips_gdbarch_init): Update.
1715 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
1716
1717 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1718 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
1719 IN_SOLIB_RETURN_TRAMPOLINE.
1720 * mips-tdep.c (mips_dump_tdep): Do not print
1721 IN_SOLIB_RETURN_TRAMPOLINE.
1722 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
1723 (mips_gdbarch_init): Update.
1724
1725 * mips-tdep.h (mips_software_single_step): Move to here ...
1726 * config/mips/tm-mips.h: ... from here.
1727 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
1728 (SOFTWARE_SINGLE_STEP): Delete.
1729 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
1730
1731 2004-10-25 Andrew Cagney <cagney@gnu.org>
1732
1733 * NEWS: Add Changes since GDB 6.3 section.
1734
1735 2004-10-23 Andreas Schwab <schwab@suse.de>
1736
1737 * ada-lang.c (grow_vect): Return the new array instead of
1738 expecting pointer to pointer to avoid violation of aliasing rules.
1739 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
1740
1741 2004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
1742
1743 * s390-tdep.c (enum pv_boolean): Remove.
1744 (pv_is_array_ref): Remove.
1745 (s390_on_stack): Remove.
1746 (S390_NUM_SPILL_SLOTS): Remove.
1747 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
1748 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
1749 (s390_store): Track all stores of orginal incoming registers to the
1750 stack constant offsets relative to the CFA, instead of only tracking
1751 stores into specific spill slots.
1752 (s390_load): Likewise.
1753 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
1754 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
1755 defined as call-saved by the ABI.
1756 (s390_push_dummy_call): Use bottom of dummy call argument save area
1757 as return value, not the top. Do not store to the called function's
1758 register save area.
1759 (s390_unwind_dummy_id): Adapt accordingly.
1760
1761 2004-10-23 Andrew Cagney <cagney@gnu.org>
1762
1763 * objfiles.h (struct objfile): Rename obj_private to
1764 deprecated_obj_private, sym_private to deprecated_sym_private, and
1765 sym_stab_info to deprecated_sym_stab_info.
1766 * gdb-stabs.h: Update.
1767 * elfread.c: Update.
1768 * dbxread.c: Update.
1769 * coffread.c: Update.
1770 * xcoffread.c: Update.
1771 * symfile.c: Update.
1772 * somread.c: Update.
1773 * nlmread.c: Update.
1774 * mdebugread.c: Update.
1775 * hpread.c: Update.
1776 * coffread.c: Update.
1777
1778 2004-10-23 Mark Kettenis <kettenis@gnu.org>
1779
1780 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
1781 * configure.host: Add mips64*-*-openbsd*.
1782 * configure.tgt: Add mips64*-*-openbsd*.
1783 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
1784 mips64obsd-tdep.c.
1785 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
1786 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
1787
1788 2004-10-21 Joel Brobecker <brobecker@gnat.com>
1789
1790 * symtab.c (symbol_search_name): Minor reformatting.
1791
1792 2004-10-20 Joel Brobecker <brobecker@gnat.com>
1793
1794 * symtab.h: Fix typo in comment.
1795
1796 2004-10-19 Mark Kettenis <kettenis@gnu.org>
1797
1798 * dwarf2read.c (struct comp_unit_head): Fix coding style.
1799 (dwarf_decode_line_header): Likewise.
1800
1801 2004-10-19 Michael Chastain <mec.gnu@mindspring.com>
1802
1803 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
1804
1805 2004-10-19 Andrew Cagney <cagney@gnu.org>
1806
1807 GDB 6.3 branch created.
1808 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
1809
1810 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1811
1812 * dwarf2read.c (set_cu_language): Set language to Ada for
1813 DW_LANG_Ada83 and DW_LANG_Ada95.
1814
1815 2004-10-15 Michael Chastain <mec.gnu@mindspring.com>
1816
1817 From Andreas Schwab <schwab@suse.de>:
1818 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
1819 for xmalloc and xrealloc.
1820
1821 2004-10-15 Andrew Cagney <cagney@gnu.org>
1822
1823 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
1824 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
1825 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
1826 Update dependencies.
1827
1828 2004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
1829
1830 * ada-lang.c (ada_lookup_symbol): Correct comment.
1831 (ada_evaluate_subexp): Change error message for
1832 OP_FUNCALL case so as not to indicate an internal error.
1833
1834 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1835
1836 Committed by Paul Hilfinger.
1837 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
1838 type sizes in XVE/XVU types, and emit a warning when that happens,
1839 instead of rounding up the size of the resulting type.
1840 Some minor reformatting.
1841 (ada_is_aligner_type): Do not consider a type as an aligner type
1842 if there is a corresponding XVS type as well.
1843 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
1844 have several levels of pointer indirection to the array.
1845
1846 2004-10-15 Jerome Guitton <guitton@gnat.com>
1847
1848 Committed by Paul Hilfinger.
1849 * ada-lang.c (check_size): New function.
1850 (coerce_unspec_val_to_type): call check_size to make sure
1851 that the object size is reasonable.
1852 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
1853 Implements the case when we get a reference when we evaluate
1854 the expression of one of the bounds of the slice.
1855 (ada_value_struct_elt): when a packed array field is
1856 a reference, use ada_coerce_ref to dereference it; use
1857 ada_value_ind only if it is a pointer.
1858
1859 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1860
1861 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
1862 a bit to avoid the necessity of an advance declaration. Remove
1863 declaration.
1864 (set_reg_offset): Move implemenation up.
1865 (mips16_get_imm): Likewise.
1866 (mips16_scan_prologue): Likewise.
1867 (reset_saved_regs): Likewise.
1868 (mips32_scan_prologue): Likewise.
1869
1870 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1871
1872 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
1873 Remove sp as a parameter, compute it internally instead. Move
1874 prologue scanning limit from heuristic_proc_desc to here.
1875 (mips16_scan_prologue): Likewise.
1876 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
1877 by call to mips16_scan_prologue.
1878 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
1879 by call to mips32_scan_prologue.
1880 (heuristic_proc_desc): Remove code that's no longer necessary.
1881 Update calls to mips16_scan_prologue and mips32_scan_prologue.
1882 (mips_skip_prologue): Update calls to mips16_scan_prologue
1883 and mips32_scan_prologue.
1884
1885 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1886
1887 * mips-tdep.c (mips16_scan_prologue): Merge code from
1888 mips16_skip_prologue. Now return the address of the first
1889 instruction past the function prologue.
1890 (mips16_skip_prologue): Remove, no longer necessary.
1891 (mips_skip_prologue): Replace call to mips16_skip_prologue
1892 by call to mips16_scan_prologue.
1893
1894 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1895
1896 * mips-tdep.c (mips32_scan_prologue): Merge code from
1897 mips32_skip_prologue. Now return the address of the first
1898 instruction past the function prologue.
1899 (mips32_skip_prologue): Remove. No longer necessary.
1900 (mips16_skip_prologue): Add parameter end_pc instead of
1901 computing it.
1902 (mips_skip_prologue): Compute the upper limit for the
1903 prologue scanning. Update call to mips16_skip_prologue.
1904 Replace call to mips32_skip_prologue by call to
1905 mips32_scan_prologue.
1906
1907 2004-10-14 Mark Kettenis <kettenis@gnu.org>
1908
1909 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
1910 NetBSD system call stubs that store %rp in the ERP slot of the
1911 stack frame.
1912
1913 * source.c: Always define O_BINARY to 0 if not defined already.
1914 (openp): Unconditionally use O_BINARY.
1915
1916 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
1917 * event-top.c (gdb_readline2): Likewise.
1918
1919 2004-10-14 Orjan Friberg <orjanf@axis.com>
1920
1921 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
1922 deprecated_add_core_fns which was removed by mistake.
1923
1924 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1925
1926 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
1927 references to deprecated_registers[] with equivalent code.
1928
1929 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1930
1931 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
1932 ``deprecated_registers'' with equivalent code. Use gdb_assert()
1933 instead of explicit test and print statement.
1934
1935 2004-10-12 Mark Kettenis <kettenis@gnu.org>
1936
1937 * sparc-nat.c: Include "inf-ptrace.h".
1938 (sparc_target): New function.
1939 * sparc-nat.h: Update copyright year.
1940 (sparc_target): New prototype.
1941 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
1942 (_initialize_sparcnbsd_nat): Construct and add target vector.
1943 * sparc64nbsd-nat.c: Include "target.h".
1944 (_initialize_sparc64nbsd_nat): Construct and add target vector.
1945 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
1946 Update dependencies.
1947 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
1948 inftarg.o, add inf-ptrace.o.
1949 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1950 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
1951 (NAT_FILE): Set to nm-bsd.h.
1952 (LOADLIBES): New variable.
1953 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1954 infarg.o, add inf-ptrace.o.
1955 * config/sparc/nm-nbsdaout.h: Remove file.
1956 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
1957 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
1958 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
1959
1960 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
1961 "fopen-same.h". Update comment.
1962
1963 2004-10-11 Mark Kettenis <kettenis@gnu.org>
1964
1965 * i386gnu-nat.c: Include "gdb_string.h".
1966 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
1967 registers when the floating-point state isn't initialized.
1968 * Makefile.in (i386gnu-nat.o): Update dependencies.
1969
1970 2004-10-11 David Anderson <davea@sgi.com>
1971
1972 * regcache.c (regcache_raw_read): Comment was missing "to".
1973 Extraneous ' removed.
1974 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
1975 comment now describes use.
1976
1977 2004-10-11 Orjan Friberg <orjanf@axis.com>
1978
1979 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
1980 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
1981 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
1982 (cris_sigtramp_frame_sniffer): New functions.
1983 (cris_gdbarch_init): Hook in signal trampoline unwinder.
1984 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
1985 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
1986 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
1987 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
1988 command.
1989 (cris_version_update): Remove, replace with ...
1990 (set_cris_version): New function.
1991 (struct gdbarch_tdep, cris_mode, cris_mode_update)
1992 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
1993 (_initialize_cris_tdep): Remove CRIS mode command.
1994 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
1995 cris-fpless-backtrace command.
1996 (cris_scan_prologue): Fix prologue scanning limit.
1997 (cris_register_type): Update to reflect actual registers.
1998 (cris_register_bytes_ok) Remove.
1999 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
2000 Remove set_gdbarch_deprecated_register_size,
2001 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
2002
2003 2004-10-10 Andrew Cagney <cagney@gnu.org>
2004
2005 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
2006 comment.
2007
2008 2004-10-10 Joel Brobecker <brobecker@gnat.com>
2009
2010 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
2011
2012 2004-10-10 Joel Brobecker <brobecker@gnat.com>
2013
2014 * mips-tdep.c (mips16_scan_prologue): Renames
2015 mips16_heuristic_proc_desc. Update comment.
2016 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
2017 (heuristic_proc_desc): Update calls to the 2 functions above.
2018
2019 2004-10-10 Joel Brobecker <brobecker@gnat.com>
2020
2021 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
2022 Update comments. Also immediately return empty cache when the start
2023 address of our function could not be found.
2024 (mips_insn32_frame_cache): Likewise.
2025
2026 2004-10-10 Joel Brobecker <brobecker@gnat.com>
2027
2028 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
2029 (mips_insn16_frame_cache): Pass frame cache in call to
2030 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
2031 Remove code that became redundant as a consequence.
2032 (mips32_heuristic_proc_desc): No longer compute a fake
2033 procedure descriptor. Compute the full frame cache instead.
2034 Some minor comment reformatting.
2035
2036 2004-10-10 Jim Blandy <jimb@redhat.com>
2037
2038 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
2039 reader, tracing bytecode stuff): Remove self.
2040
2041 2004-10-10 Mark Kettenis <kettenis@gnu.org>
2042
2043 * sparc64-linux-tdep.c: Update copyright year. Don't include
2044 "solib-svr4.h".
2045 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
2046 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
2047 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
2048
2049 * sparc-linux-tdep.c: Update copyright year.
2050 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
2051 to struct frame_info *. Use safe_frame_unwind_memory instead of
2052 deprecated_read_memory_nobpt.
2053 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
2054 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
2055 changed signature of sparc_linux_sigtramp_start.
2056 (sparc32_linux_pc_in_sigtramp): Remove function.
2057 (sparc32_linux_sigtramp_p): New function.
2058 (sparc32_linux_sigtramp_frame_sniffer): Use
2059 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
2060
2061 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
2062 Remove function.
2063 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
2064
2065 * ada-lang.c (lim_warning): Re-implement as a varargs function.
2066 (decode_packed_array_type, value_subscript_packed)
2067 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
2068 argument in call to lim_warning.
2069
2070 * configure.in: Really disable the TUI if an enhanced curses
2071 library isn't found.
2072 * configure: Regenerate.
2073
2074 2004-10-09 Mark Kettenis <kettenis@gnu.org>
2075
2076 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
2077 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
2078 * config/i386/nm-nbsdaout.h: Remove file.
2079 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
2080 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
2081 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
2082 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
2083 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
2084 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
2085 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
2086 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
2087 (ldd, ld_un, ld_2): Remove defines.
2088 * config/i386/nm-obsd.h: Likewise.
2089
2090 2004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
2091
2092 * ada-lex.l: Remove useless rule whose right-context clause
2093 causes unreferenced static function warning for yyrealloc.
2094 (ada_flex_use): Remove the artificial reference to yyrealloc.
2095
2096 2004-10-08 Andrew Cagney <cagney@gnu.org>
2097
2098 * target.h (struct target_ops): Rename to_xfer_memory to
2099 deprecated_xfer_memory.
2100 * target.c: Update.
2101 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
2102 * wince.c: Update.
2103 * win32-nat.c: Update.
2104 * v850ice.c: Update.
2105 * uw-thread.c: Update.
2106 * thread-db.c: Update.
2107 * sol-thread.c: Update.
2108 * remote.c: Update.
2109 * remote-vx.c: Update.
2110 * remote-st.c: Update.
2111 * remote-sim.c: Update.
2112 * remote-sds.c: Update.
2113 * remote-rdp.c: Update.
2114 * remote-rdi.c: Update.
2115 * remote-mips.c: Update.
2116 * remote-m32r-sdi.c: Update.
2117 * remote-e7000.c: Update.
2118 * procfs.c: Update.
2119 * ppc-bdm.c: Update.
2120 * nto-procfs.c: Update.
2121 * monitor.c: Update.
2122 * linux-nat.c: Update.
2123 * inftarg.c: Update.
2124 * hpux-thread.c: Update.
2125 * go32-nat.c: Update.
2126 * gnu-nat.c: Update.
2127 * exec.c: Update.
2128 * corelow.c: Update.
2129 * bsd-kvm.c: Update.
2130 * aix-thread.c: Update.
2131
2132 2004-10-08 Andrew Cagney <cagney@gnu.org>
2133
2134 * target.c (debug_target): Move to near start of file.
2135 (target_stopped_data_address_p): Re-org logic, add casts.
2136
2137 2004-10-02 Mark Kettenis <kettenis@gnu.org>
2138
2139 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
2140 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
2141 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
2142 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
2143 New defines.
2144
2145 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
2146
2147 * target.h (to_stopped_data_address): Change prototype to
2148 take a CORE_ADDR pointer and return an int.
2149 * target.c (update_current_target): Change to_stopped_data_address
2150 to match new prototype.
2151 (debug_to_stopped_data_address): Change appropriately.
2152 * breakpoint.c (bpstat_stop_status): Change call to
2153 target_stopped_data_address to use new prototype.
2154 * frv-tdep.c (frv_have_stopped_data_address): New function.
2155 (frv_stopped_data_address): Change to new prototype and
2156 functionality.
2157 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
2158 prototype and functionality.
2159 (ia64_stopped_by_watchpoint): New function.
2160 * i386-nat.c (i386_stopped_data_address): Change to new
2161 prototype and functionality.
2162 (i386_stopped_by_watchpoint): New function.
2163 * remote.c (remote_stopped_data_address): Change to new prototype
2164 and functionality.
2165 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
2166 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
2167 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
2168 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
2169 new i386_stopped_by_watchpoint function.
2170 (i386_stopped_by_watchpoint): New prototype.
2171 (i386_stoppped_data_address): Change to new prototype.
2172 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
2173 new ia64_stopped_by_watchpoint function.
2174 (ia64_stopped_by_watchpoint): New prototype.
2175 (ia64_stopped_data_address): Ditto.
2176
2177 2004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
2178
2179 * ada-typeprint.c (ada_print_type): Use int_string for printing
2180 modulus of modular type.
2181 * ada-lang.h (ada_modulus): Change return type to unsigned.
2182 * ada-lang.c (ada_language_arch_info): Correct type of
2183 string_char_type.
2184 (ada_modulus): Return unsigned result.
2185 (ada_lookup_symbol): Remove user disambiguation and modify comment
2186 accordingly.
2187
2188 2004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
2189
2190 Committed by Paul Hilfinger.
2191 * ada-lang.c (decode_packed_array): On big-endian targets,
2192 left-justify the value if it comes with a modular type.
2193
2194 2004-10-08 Joel Brobecker <brobecker@gnat.com>
2195
2196 Committed by Paul Hilfinger.
2197 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
2198 (is_name_suffix): Add support for "___JM" suffixes.
2199 (ada_check_typedef): Renames ada_completed_type.
2200 Update all users of CHECK_TYPEDEF, check_typedef, and
2201 ada_complete_type to call ada_check_typedef.
2202 * ada-typeprint.c: Likewise.
2203 * ada-valprint.c: Likewise.
2204
2205 2004-10-08 Corinna Vinschen <vinschen@redhat.com>
2206
2207 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
2208
2209 2004-10-08 Nick Roberts <nickrob@snap.net.nz>
2210
2211 * MAINTAINERS: Update e-mail address.
2212
2213 2004-10-07 Daniel Jacobowitz <dan@debian.org>
2214
2215 From Maciej W. Rozycki <macro@mips.com>:
2216 * mips-tdep.c (mips32_next_pc): Check the register's contents,
2217 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
2218
2219 2004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
2220
2221 * m32r-tdep.c (decode_prologue): Support functions written
2222 in assembler language. Recognize trap instructions as the
2223 end of prologue.
2224 (m32r_frame_unwind_cache): Ditto.
2225 (m32r_skip_prologue): Extend search limit. Quit analyzing
2226 prologue if pc's location is not readable.
2227
2228 2004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
2229
2230 * Makefile.in (.l.c): Do conversions of names of alloc and free
2231 functions that are done for .y.c files, plus special one
2232 for yy_flex_realloc. Also, correct missing-file tests here.
2233 * ada-lex.l (malloc, free): Remove macros.
2234 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
2235 xrealloc.
2236 (ada_flex_use): Dummy definition to remove warnings about unused
2237 functions.
2238 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
2239 to suppress warning.
2240
2241 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2242
2243 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
2244 RETURN_VALUE.
2245 (sh_return_value_fpu): Ditto for CPUs with FPU.
2246 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
2247 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
2248 Install sh_return_value_nofpu resp. sh_return_value_fpu as
2249 RETURN_VALUE functions.
2250
2251 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2252
2253 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
2254 (sh_pseudo_register_write): Ditto.
2255
2256 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2257
2258 * sh-tdep.c (IS_MACL_STS): New define.
2259 (IS_MOVI20): Ditto.
2260 (IS_MACL_LDS): Ditto.
2261 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
2262 instructions in prologue.
2263 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
2264 instructions in epilogue.
2265
2266 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2267
2268 * sh-tdep.c (SH_NUM_REGS): Define as 67.
2269 (sh_sh_register_name): Add eight empty register names.
2270 (sh_sh3_register_name): Ditto.
2271 (sh_sh3e_register_name): Ditto.
2272 (sh_sh2e_register_name): Ditto.
2273 (sh_sh2a_register_name): New function, defining SH2A register set.
2274 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
2275 in nofpu case.
2276 (sh_sh_dsp_register_name): Add eight empty register names.
2277 (sh_sh3_dsp_register_name): Ditto.
2278 (sh_sh4_register_name): Ditto.
2279 (sh_sh4_nofpu_register_name): Ditto.
2280 (sh_sh4al_dsp_register_name): Ditto.
2281 (sh2a_show_regs): New function.
2282 (sh2a_nofpu_show_regs): New function.
2283 (sh_sh2a_register_type): New function.
2284 (do_bank_register_info): New function.
2285 (sh_print_pseudo_register): Call do_bank_register_info.
2286 Call sh_print_pseudo_register for valid "bank" register.
2287 (sh_sh2a_register_sim_regno): New function.
2288 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
2289 Increment pseudo register count by one for all sh variants with
2290 pseudo registers to accomodate pseudo bank register.
2291 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
2292 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
2293 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
2294 Increment pseudo register numbers.
2295
2296 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2297
2298 * dwarf2read.c (read_subroutine_type): Call make_function_type
2299 instead of lookup_function_type.
2300
2301 2004-10-05 Jim Blandy <jimb@redhat.com>
2302
2303 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
2304 (Previous change missed some uses.)
2305
2306 2004-10-05 Andrew Cagney <cagney@gnu.org>
2307
2308 * target.h (deprecated_child_ops): Rename child_ops.
2309 * wince.c: Update copyright. Rename child_ops.
2310 * win32-nat.c: Rename child_ops.
2311 * target.c: Rename child_ops.
2312 * rs6000-nat.c: Rename child_ops.
2313 * linux-nat.c: Rename child_ops.
2314 * infttrace.c: Rename child_ops.
2315 * inftarg.c: Rename child_ops.
2316 * infptrace.c: Rename child_ops.
2317 * hppah-nat.c: Update copyright. Rename child_ops.
2318 * hpux-thread.c: Update copyright. Rename child_ops.
2319
2320 2004-10-05 Daniel Jacobowitz <dan@debian.org>
2321
2322 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
2323
2324 2004-10-05 Andrew Cagney <cagney@gnu.org>
2325
2326 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
2327
2328 2004-10-05 Daniel Jacobowitz <dan@debian.org>
2329
2330 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
2331 (die_ref_table): Remove.
2332 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
2333 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
2334 the usage of this type.
2335 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
2336 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
2337 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
2338 (dwarf2_create_include_psymtab): Update comment.
2339 (find_partial_die): Remove third argument. Remove unreachable call
2340 to error ().
2341 (dwarf2_find_containing_comp_unit): Update comments. Change one
2342 assertion to an error. Remove an unreachable error.
2343 (dwarf2_find_comp_unit): Update comments.
2344 (type_at_offset): Remove dead code.
2345 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
2346 (store_in_ref_table): Add CU argument.
2347 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
2348 inter-compilation-unit references.
2349 (load_full_comp_unit, process_full_comp_unit): New functions, based
2350 on psymtab_to_symtab_1.
2351 (psymtab_to_symtab_1): Use them.
2352 (dwarf2_add_dependence): New function.
2353 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
2354 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
2355 (partial_die_parent_scope, guess_structure_name): Update for changes
2356 to find_partial_die.
2357 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
2358 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
2359 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
2360 (read_die_and_children): Update call to store_in_ref_table.
2361 (do_free_die_list_cleanup): Remove.
2362 (fixup_partial_die): Update for changes to find_partial_die.
2363 (read_full_die): Handle queueing absolute references.
2364 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
2365 (dwarf2_attr, die_specification, die_type)
2366 (die_containing_type, dwarf2_extension): Update calls to
2367 follow_die_ref.
2368 (dump_die): Update DW_FORM_ref* handling.
2369 (dwarf2_get_ref_die_offset): Likewise.
2370 (free_one_comp_unit): Release the dies list.
2371 (dwarf2_mark_helper): New function.
2372 (dwarf2_mark): Use it.
2373
2374 2004-10-05 Mark Kettenis <kettenis@jive.nl>
2375
2376 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
2377 when writing to memory.
2378
2379 2004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
2380
2381 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
2382 (m32r_extract_struct_value_address): Delete function.
2383 (m32r_return_value): New function.
2384 (m32r_gdbarch_init): Instead of store_return_value,
2385 extract_return_value, deprecated_extract_struct_value_address
2386 and deprecated_use_struct_convention, set return_value.
2387
2388 2004-10-03 Daniel Jacobowitz <dan@debian.org>
2389
2390 * dwarf2read.c (read_subrange_type): Add comment for variable
2391 sized arrays.
2392
2393 2004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
2394
2395 * Makefile.in (.l.c): Modify rule for compatibility with recent
2396 versions of flex, and remove most command-line options.
2397 * ada-lex.l: Add %options line in place of -I -i and -s command-line
2398 options.
2399
2400 2004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
2401
2402 Turn on initial Ada support (mainly expression evaluation).
2403
2404 * Makefile.in (SFILES): Remove ada-tasks.c.
2405 (HFILES_NO_SRCDIR): Add ada-lang.h.
2406 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
2407 (YYOBJ): Add ada-exp.o.
2408 (rule .l.c): Generalize to not mention ada.
2409 * symtab.c: Include ada-lang.h.
2410 (symbol_natural_name, symbol_demangled_name)
2411 (symbol_search_name): Add Ada case.
2412
2413 2004-10-01 Andrew Cagney <cagney@gnu.org>
2414
2415 * Makefile.in (COMMON_OBS): Add inf-child.o.
2416 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
2417 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2418 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2419 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
2420 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
2421 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
2422 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
2423 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
2424 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2425 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2426 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
2427 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
2428 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
2429
2430 * target.c (xfer_using_stratum): Change return type to LONGEST.
2431 On each iteration offset, readbuf and writebuf.
2432 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
2433 partial_length, and read/modify/write predicate, update comments.
2434 Pass buffer.word to ptrace write.
2435
2436 2004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2437
2438 * symfile.c (init_filename_language_table): Add extensions for
2439 Ada.
2440 * defs.h (enum language): Add language_ada.
2441 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
2442 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
2443 (add_symbols_from_enclosing_procs): Make a no-op for now.
2444 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
2445 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
2446 (find_line_in_linetable, find_next_line_in_linetable)
2447 (read_all_symtabs, is_plausible_func_for_line)
2448 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
2449 (is_runtime_sym_defined, check_size): Remove declaration.
2450 (function_name_from_pc, ada_translate_error_message)
2451 (ada_lookup_minimal_symbol): Remove definition.
2452 (ada_add_block_symbols): Remove useless label.
2453 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
2454 useless declaration.
2455 (ada_is_exception_sym): Likewise.
2456
2457 2004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
2458
2459 Add m32r-linux support.
2460 * configure.tgt: Add m32r*-*-linux*.
2461 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
2462 and m32r-linux-tdep.c.
2463 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
2464 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
2465 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
2466 m32r-linux-tdep.c.
2467 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
2468 config/m32r/linux.mh, config/m32r/linux.mt,
2469 config/m32r/nm-linux.h: New files.
2470
2471 2004-09-30 Joel Brobecker <brobecker@gnat.com>
2472
2473 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
2474 (mips32_fetch_instruction): Remove, unused.
2475
2476 2004-09-30 Joel Brobecker <brobecker@gnat.com>
2477
2478 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
2479 conditions that will always be true.
2480
2481 2004-09-30 Mark Kettenis <kettenis@gnu.org>
2482
2483 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
2484 (vaxbsd_fetch_inferior_registers): Rename from
2485 fetch_inferior_registers. Make static.
2486 (vaxbsd_store_inferior_registers): Rename from
2487 store_inferior_registers. Make static.
2488 (_initialize_vaxbsd_nat): Construct and add target vector.
2489 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
2490 inftarg.o. Add inf-child.o and inf-ptrace.o.
2491 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
2492 inftarg.o. Add inf-child.o and inf-ptrace.o.
2493 (NAT_FILE): Remove.
2494 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
2495 inftarg.o. Add inf-child.o and inf-ptrace.o.
2496 (NAT_FILE): Remove.
2497 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2498
2499 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
2500 (m88kbsd_fetch_inferior_registers): Rename from
2501 fetch_inferior_registers. Make static.
2502 (m88kbsd_store_inferior_registers): Rename from
2503 store_inferior_registers. Make static.
2504 (_initialize_m88kbsd_nat): New prototype and function.
2505 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
2506 inftarg.o. Add inf-child.o and inf-ptrace.o.
2507 (NAT_FILE): Remove.
2508 * Makefile.in (m88kbsd-nat.o): Update dependencies.
2509
2510 2004-09-30 Andrew Cagney <cagney@gnu.org>
2511
2512 * target.c (target_xfer_partial): New function.
2513 (target_read_memory_partial, target_write_memory_partial)
2514 (default_xfer_partial, target_read_partial, target_write_partial)
2515 (xfer_using_stratum): Use.
2516 (debug_to_xfer_partial): Delete function.
2517 (setup_target_debug): Do not override to_xfer_partial.
2518
2519 2004-09-30 Mark Kettenis <kettenis@chello.nl>
2520
2521 * fork-child.c: Update copyright year. Fix coding style.
2522
2523 2004-09-29 Mark Kettenis <kettenis@gnu.org>
2524
2525 * defs.h (msavestring, mstrsave): Remove prototypes.
2526 * utils.c (msavestring, mstrsave): Remove functions.
2527 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
2528 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
2529 of mstrsave.
2530 * source.c (find_and_open_source): Use xstrdup instead of
2531 mstrsave.
2532
2533 2004-09-30 Andrew Cagney <cagney@gnu.org>
2534
2535 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
2536 (inf_ptrace_xfer_memory): Delete.
2537 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
2538 (target_read_memory, target_write_memory): Use xfer_using_stratum
2539 when target_xfer_partial_p.
2540 (debug_target): Move to start of file.
2541 (target_read_memory_partial, target_write_memory_partial): Use
2542 to_xfer_partial when target_xfer_partial_p.
2543
2544 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
2545 inf_ptrace_xfer_memory with equivalent code.
2546 * inftarg.c (child_xfer_partial): When performing a write, pass
2547 writebuf to child_xfer_memory.
2548
2549 * target.c (target_read_string): Use target_read_memory instead of
2550 target_xfer_memory.
2551
2552 2004-09-29 Andrew Cagney <cagney@gnu.org>
2553
2554 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
2555 the address of status.
2556
2557 * infptrace.c (ptrace_wait): Mention problem with HPUX.
2558 (kill_inferior): Inline ptrace_wait call.
2559 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
2560 * inftarg.c (child_wait): Inline ptrace_wait call.
2561
2562 * target.h (struct target_ops): Delete field to_post_wait.
2563 (target_post_wait): Delete macro.
2564 (child_post_wait): Delete declaration.
2565 * target.c (update_current_target, update_current_target)
2566 (debug_to_post_wait, setup_target_debug): Delete functions and
2567 references.
2568 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
2569 * inftarg.c (child_post_wait): Delete.
2570 (init_child_ops): Do not set to_post_wait.
2571 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
2572 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
2573 * inf-child.c (inf_child_post_wait): Delete.
2574 (inf_child_target): Do not set to_post_wait.
2575 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
2576 (inf_ptrace_target): Do not set to_post_wait.
2577
2578 * wince.c (child_ops): Delete.
2579 * win32-nat.c (child_ops): Delete.
2580
2581 * inftarg.c (inftarg_set_find_memory_regions)
2582 (inftarg_set_make_corefile_notes): Delete functions.
2583 (_initialize_linux_nat): Inline calls.
2584
2585 * target.h (child_ops): Declare.
2586 * inftarg.c (child_ops): Move from here ...
2587 * target.c (child_ops): ... to here.
2588 * wince.c (child_ops): Delete extern declaration.
2589 * win32-nat.c (child_ops): Delete extern declaration.
2590 * linux-nat.c (child_ops): Delete extern declaration.
2591 * hpux-thread.c (child_ops): Delete extern declaration.
2592
2593 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2594
2595 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
2596
2597 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2598
2599 * configure.in: Only set host_makefile_frag when building a native
2600 debugger.
2601 * configure: Regenerate.
2602
2603 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
2604 for OpenBSD ELF.
2605
2606 2004-09-28 Andrew Cagney <cagney@gnu.org>
2607
2608 Problem identified by Paul Hilfinger.
2609 * Makefile.in (ada_lex_c): Define.
2610 (ada-lex.o): Delete rule.
2611
2612 * linux-proc.c: Delete file.
2613 * Makefile.in: Update.
2614 * config/sparc/linux64.mh (NATDEPFILES):
2615 * config/sparc/linux.mh (NATDEPFILES): Update.
2616 * config/s390/s390.mh (NATDEPFILES): Update.
2617 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
2618 * config/powerpc/linux.mh (NATDEPFILES): Update.
2619 * config/pa/linux.mh (NATDEPFILES): Update.
2620 * config/mips/linux.mh (NATDEPFILES): Update.
2621 * config/m68k/linux.mh (NATDEPFILES): Update.
2622 * config/ia64/linux.mh (NATDEPFILES): Update.
2623 * config/i386/linux64.mh (NATDEPFILES): Update.
2624 * config/i386/linux.mh (NATDEPFILES): Update.
2625 * config/arm/linux.mh (NATDEPFILES): Update.
2626 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
2627 * linux-nat.c: Update copyright. Include <sys/param.h>,
2628 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
2629 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
2630 (O_LARGEFILE): Possibly define.
2631 (_initialize_linux_nat, linux_proc_pending_signals)
2632 (add_line_to_sigset, linux_proc_xfer_memory)
2633 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
2634 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
2635 (struct linux_corefile_thread_data)
2636 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
2637 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
2638
2639 2004-09-16 Andrew Cagney <cagney@gnu.org>
2640
2641 * lin-lwp.c: Delete file.
2642 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
2643 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
2644 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
2645 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
2646 (linux_nat_attach, detach_callback, linux_nat_detach)
2647 (resume_callback, resume_clear_callback, linux_nat_resume)
2648 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
2649 (stop_wait_callback, linux_nat_has_pending, flush_callback)
2650 (status_callback, running_callback, count_events_callback)
2651 (select_singlestep_lwp_callback, select_event_lwp_callback)
2652 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
2653 (child_wait, stop_and_resume_callback, linux_nat_wait)
2654 (kill_callback, kill_wait_callback, linux_nat_kill)
2655 (linux_nat_create_inferior, linux_nat_mourn_inferior)
2656 (linux_nat_xfer_memory, linux_nat_thread_alive)
2657 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
2658 (_initialize_linux_nat): New functions.
2659 * Makefile.in: Update all dependencies.
2660 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2661 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2662 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
2663 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2664 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2665 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2666 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2667 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2668 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2669 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2670 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2671 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2672 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2673
2674 2004-09-27 Mark Kettenis <kettenis@gnu.org>
2675
2676 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
2677 config/i386/obsd64.mh (NAT_FILE): Remove variable.
2678
2679 * configure.in: Don't comment out NATDEPFILES in the generated
2680 Makefile if NAT_FILE is unset.
2681 * configure: Regenerate.
2682
2683 2004-09-27 Andrew Cagney <cagney@gnu.org>
2684
2685 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
2686 (insert_step_resume_breakpoint): Delete.
2687 (insert_step_resume_breakpoint_at_frame): New function.
2688 (insert_step_resume_breakpoint_at_sal): New function.
2689 (handle_inferior_event, step_into_function)
2690 (insert_step_resume_breakpoint): Simplify by using same.
2691
2692 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
2693
2694 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2695
2696 * fbsd-proc.c: Remove file.
2697 * Makefile.in (fbsd-proc.o): Remove dependency.
2698
2699 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
2700 code together.
2701
2702 * config/i386/nm-fbsd64.h: Remove file.
2703 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2704
2705 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2706
2707 * amd64-nat.h: Update copyright year.
2708 (amd64bsd_target): New prototype.
2709 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
2710 (amd64bsd_target): New function.
2711 (amd64bsd_fetch_inferior_registers): Rename from
2712 fetch_inferior_registers. Make static.
2713 (amd64bsd_store_inferior_registers): Rename from
2714 store_inferior_registers. Make static.
2715 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
2716 (_initialize_amd64fbsd_nat): Construct and add target vector.
2717 * amd64nbsd-nat.o: Include "target.h".
2718 (_initialize_amd64nbsd_nat): Construct and add target vector.
2719 * amd64obsd-nat.c: Include "target.h".
2720 (_initialize_amd64obsd_nat): Construct and add target vector.
2721 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
2722 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
2723 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
2724 fbsd-nat.o.
2725 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
2726 Remove infptrace.o and inftarg.o. Add inf-child.o and
2727 inf-ptrace.o.
2728 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
2729 (amd64obsd-nat.o): Update dependencies.
2730
2731 2004-09-25 Mark Kettenis <kettenis@gnu.org>
2732
2733 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
2734 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
2735 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
2736 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
2737 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
2738
2739 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
2740 Inline attach call.
2741 (inf_ptrace_detach): Inline detach call.
2742
2743 * configure.in: Check for waddstr instead of mvwaddstr when
2744 searching for curses library. Check for wborder.
2745 * configure, config.in: Regenerate.
2746 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
2747 available.
2748
2749 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
2750
2751 2004-09-24 Robert Picco <Robert.Picco@hp.com>
2752
2753 Committed by Andrew Cagney.
2754 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
2755 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
2756 configuration.
2757 (fetch_register_using_p): Implement 'p' packet. Based on code by
2758 Fernando Nasser.
2759 (remote_fetch_registers): Call fetch_register_using_p.
2760 (init_all_packet_configs, show_remote_cmd)
2761 (_initialize_remote): Add p-packet.
2762
2763 2004-09-24 Mark Kettenis <kettenis@gnu.org>
2764
2765 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
2766 instead of call_ptrace. Call wait directly instead of
2767 ptrace_wait.
2768 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
2769 (inf_ptrace_wait): Inline ptrace_wait call.
2770
2771 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2772
2773 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
2774 rolled back instead.
2775
2776 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2777
2778 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
2779 the new argument order.
2780
2781 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
2782
2783 * MAINTAINERS: Remove "broken" from XStormy16 entry.
2784 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
2785 (struct gdbarch_tdep): Remove.
2786 (struct xstormy16_frame_cache): New frame cache structure.
2787 (xstormy16_register_byte, xstormy16_register_raw_size)
2788 (xstormy16_reg_virtual_type, xstormy16_register_type)
2789 (xstormy16_push_arguments, xstormy16_push_return_address)
2790 (xstormy16_pop_frame, xstormy16_store_struct_return)
2791 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
2792 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
2793 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
2794 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
2795 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
2796 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
2797 (xstormy16_use_struct_convention): Drop gcc_p parameter.
2798 (xstormy16_extract_return_value, xstormy16_store_return_value):
2799 Regcachify. Drop useless struct convention handling.
2800 (xstormy16_register_type, xstormy16_return_value)
2801 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
2802 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
2803 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
2804 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
2805 (xstormy16_unwind_sp, xstormy16_unwind_pc)
2806 (xstormy16_unwind_dummy_id) : New functions.
2807 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
2808 of xstormy16_scan_prologue.
2809 (xstormy16_frame_unwind): New frame_unwind structure.
2810 (xstormy16_frame_base): New frame_base structure.
2811 (xstormy16_gdbarch_init): Accomodate all of the above changes.
2812 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
2813
2814 2004-09-22 Mark Kettenis <kettenis@gnu.org>
2815
2816 * language.c (language_gdbarch_post_init): Fix off-by one error.
2817
2818 2004-09-21 Daniel Jacobowitz <dan@debian.org>
2819
2820 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
2821 (struct dwarf2_offset_and_type): New.
2822 (set_die_type, reset_die_and_siblings_types, get_die_type)
2823 (offset_and_type_hash, offset_and_type_eq): New functions.
2824 (read_structure_type, read_enumeration_type, read_array_type)
2825 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
2826 (read_tag_reference_type, read_tag_const_type)
2827 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
2828 (read_typedef, read_base_type, read_subrange_type): Use
2829 set_die_type.
2830
2831 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2832
2833 * Makefile.in (dwarf2read.o): Update dependencies.
2834 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
2835 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
2836 and read_in_chain.
2837 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
2838 mark, and has_form_ref_addr.
2839 (struct dwarf2_per_cu_data): New.
2840 (dwarf2_max_cache_age): New.
2841 (dwarf2_build_psymtabs_hard): Free cached compilation units
2842 after loading. Create and manage the list of compilation units.
2843 Remove unnecessary NULL initialization. Fix indentation.
2844 (psymtab_to_symtab_1): Initialize all of CU.
2845 (dwarf2_read_abbrevs): Set has_form_ref_addr.
2846 (find_partial_die): Use dwarf2_find_containing_comp_unit
2847 and load_comp_unit.
2848 (free_stack_comp_unit): Update comments. Clear the per-cu
2849 pointer. Handle aging.
2850 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
2851 (age_cached_comp_units, free_one_cached_comp_unit)
2852 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
2853 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
2854 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
2855 (show_dwarf2_cmd): New.
2856 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
2857 and "maint show dwarf2 max-cache-age".
2858 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
2859 externs.
2860 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
2861 global.
2862
2863 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
2864
2865 * dwarf2read.c (typename_concat): Change prototype to accept obstack
2866 and dwarf2_cu struct pointer as arguments. Change function to use
2867 obstack if provided and use dwarf2_cu to determine language-specific
2868 separator.
2869 (partial_die_parent_scope): Change comment to include java. Use
2870 new version of typename_concat instead of obconcat.
2871 (partial_die_full_name): Use typename_concat.
2872 (read_namespace): Ditto.
2873 (read_enumeration_type): Use typename_concat instead of obconcat.
2874 (new_symbol): Ditto.
2875 (add_partial_symbol): Enhance tests for C++ to also test for Java.
2876 (guess_structure_name): Ditto.
2877 (read_subroutine_type): Ditto.
2878 (read_structure_type): Ditto.
2879 (is_vtable_name): Add Java support.
2880 (determine_class_name): Switch to new typename_concat call.
2881 (determine_prefix): Switch to new typename_concat call.
2882 * jv-exp.y (FuncStart): New pattern.
2883 (MethodInvocation): Add support for simple function calls. Change
2884 warning message for other forms of inferior call currently not
2885 supported.
2886 * valarith.c (value_subscript): Treat an array with upper-bound
2887 of -1 as unknown size.
2888
2889 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2890
2891 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
2892 (lookup_partial_symtab): Use symtab_to_fullname.
2893
2894 2004-09-19 Jim Blandy <jimb@redhat.com>
2895
2896 * minsyms.c (lookup_minimal_symbol): Doc fix.
2897
2898 2004-09-20 Andrew Cagney <cagney@gnu.org>
2899
2900 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
2901 CHILD_RESUME.
2902 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
2903 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
2904 KILL_INFERIOR.
2905 * infptrace.c: Update.
2906
2907 2004-09-19 Daniel Jacobowitz <dan@debian.org>
2908
2909 * symtab.c (output_source_filename): Mark first argument as const.
2910 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
2911 for "info sources" output.
2912
2913 2004-09-20 Mark Kettenis <kettenis@gnu.org>
2914
2915 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
2916 <machine/vmparam.h>.
2917 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
2918 (register_u_addr): Remove prototype.
2919
2920 2004-09-19 Mark Kettenis <kettenis@gnu.org>
2921
2922 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
2923 (i386bsd_fetch_inferior_registers): Rename from
2924 fetch_inferior_registers. Make static.
2925 (i386bsd_store_inferior_registers): Rename from
2926 store_inferior_registers. Make static.
2927 (i386bsd_target): New function.
2928 * i386bsd-nat.h: New file.
2929 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
2930 "i386bsd-nat.h".
2931 (i386fbsd_resume): Rename from child_resume. Make static.
2932 (_initialize_i386fbsd_nat): Construct and add target vector.
2933 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
2934 (_initialize_i386nbsd_nat): Construct and add target vector.
2935 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
2936 Remove defines.
2937 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
2938 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
2939 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
2940 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2941 (LOADLIBES): New variable.
2942 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
2943 inf-ptrace.o. Remove inftarg.o.
2944 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
2945 inf-ptrace.o. Remove inftarg.o.
2946 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
2947 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2948 (LOADLIBES): New variable.
2949 * Makefile.in (i386bsd_nat_h): New variable.
2950 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
2951 dependencies.
2952
2953 * sparc64nbsd-tdep.c: Include "objfiles.h".
2954 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
2955 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2956 svr4_lp64_fetch_link_map_offsets.
2957 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
2958 "nbsd-tdep.h".
2959 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
2960 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2961 svr4_lp64_fetch_link_map_offsets.
2962 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
2963 dependencies.
2964
2965 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
2966 * fbsd-nat.h: New file.
2967 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
2968 (fbsd_nat_h): New variable.
2969 (fbsd-nat.o): New dependency.
2970
2971 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
2972 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
2973
2974 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
2975 comment.
2976
2977 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
2978
2979 * ada-exp.y (type_int): New function to add layer of abstraction
2980 around references to expression types.
2981 (type_long): Ditto.
2982 (type_long_long): Ditto.
2983 (type_float): Ditto.
2984 (type_double): Ditto.
2985 (type_long_double): Ditto.
2986 (type_char): Ditto.
2987 (type_system_address): Ditto.
2988 (simple_exp): Use type_* functions in place of builtin_*
2989 variables.
2990 (exp): Ditto.
2991 (write_var_from_name): Ditto.
2992 (write_object_renaming): Ditto.
2993 * ada-lang.c (ada_create_fundamental_type): Remove redundant
2994 declaration.
2995 (build_ada_types): Remove, replacing with...
2996 (ada_language_arch_info): New function to initialize primitive
2997 type vector in language_arch_info.
2998 (ada_array_length): Remove use of builtin_type_ada_int.
2999 (value_pos_atr): Ditto.
3000 (ada_evaluate_subexp): Ditto.
3001 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
3002 builtin_type_ada_long_long, builtin_type_ada_char,
3003 builtin_type_ada_float, builtin_type_ada_double,
3004 builtin_type_ada_long_double, builtin_type_ada_natural,
3005 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
3006 (ada_builtin_types): Remove.
3007 (ada_language_defn): Remove entries for la_builtin_type_vector and
3008 string_char_type and use ada_language_arch_info.
3009 (_initialize_ada_language): Do type-vector initialization along
3010 the lines of c-lang.c.
3011 (ada_create_fundamental_type): Break up line.
3012 (ada_dump_symtab): Remove unused function.
3013 (enum ada_primitive_types): Define.
3014 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
3015 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
3016 builtin_type_ada_float, builtin_type_ada_double,
3017 builtin_type_ada_long_double, builtin_type_ada_natural,
3018 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
3019 * ada-lex.l: Use type_* functions in place of builtin_* variables.
3020 (processInt): Ditto.
3021 (processReal): Ditto.
3022 (name_lookup): Ditto.
3023 * ada-typeprint.c (print_range): Use builtin_type_int, not
3024 builtin_type_ada_int.
3025
3026 2004-09-18 Mark Kettenis <kettenis@gnu.org>
3027
3028 * i386-tdep.c (i386_register_name): Rename regno to regnum.
3029
3030 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
3031 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
3032 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
3033 * configure.in: Improve checks for curses library by checking for
3034 mvwaddstr instead of initscr. Drop HP curses in favour of
3035 standard curses on HP-UX.
3036 * configure: Regenerated.
3037
3038 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
3039
3040 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
3041 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
3042 Minor formatting changes.
3043 (empty_array): Slight rewrite for formatting.
3044 (emit_char,parse,ada_language_defn,build_ada_types,
3045 ada_is_exception_sym, _initialize_ada_language): Move
3046 definitions around.
3047 (ada_dump_symtab): Remove unused definition.
3048 (ada_maybe_exception_partial_symbol): Remove unused definition.
3049
3050 2004-09-16 Andrew Cagney <cagney@gnu.org>
3051
3052 * inf-child.c: Include "gdb_string.h".
3053 (inf_child_core_file_to_sym_file): Delete.
3054 (inf_child_target): Set to_fetch_registers and to_store_registers.
3055 * inf-ptrace.c: Include "gdb_string.h".
3056 * Makefile.in: Update all dependencies.
3057
3058 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
3059 problem.
3060
3061 2004-09-14 Joel Brobecker <brobecker@gnat.com>
3062
3063 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
3064 call to heuristic_proc_desc. Remove code that became redundant
3065 as a consequence.
3066 (read_next_frame_reg): Remove special case for SP_REGNUM.
3067 (set_reg_offset): Fix small typo.
3068 (reset_saved_regs): New procedure.
3069 (mips32_heuristic_proc_desc): No longer compute a fake
3070 procedure descriptor. Compute the full frame cache instead.
3071 Some minor comment reformatting.
3072
3073 2004-09-14 Andrew Cagney <cagney@gnu.org>
3074
3075 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
3076 maintainer.
3077
3078 * thread-db.c (thread_db_new_objfile): Assume that there is a
3079 child process.
3080
3081 2004-09-13 Jim Blandy <jimb@redhat.com>
3082
3083 * valops.c (value_assign): Move 'buffer' to the enclosing block,
3084 so that its storage isn't referenced after its lifetime ends.
3085
3086 * valops.c (value_assign): 'use_buffer' is initialized to zero,
3087 and never assigned to. Delete it, and the 'if (use_buffer)'
3088 clauses. Delete 'raw_buffer', since it is now unused.
3089
3090 2004-09-13 Andrew Cagney <cagney@gnu.org>
3091
3092 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
3093 * configure: Re-generate.
3094 * nlm/Makefile.in (TAGS): Update.
3095 * Makefile.in (TAGS): Update.
3096 * config/vax/nbsd.mt (TM_FILE): Update.
3097 * config/sparc/vxworks.mt (TM_FILE): Update.
3098 * config/sparc/sol2.mt (TM_FILE): Update.
3099 * config/sparc/sol2-64.mt (TM_FILE): Update.
3100 * config/sparc/obsd64.mt (TM_FILE): Update.
3101 * config/sparc/obsd.mt (TM_FILE): Update.
3102 * config/sparc/nbsd64.mt (TM_FILE): Update.
3103 * config/sparc/nbsd.mt (TM_FILE): Update.
3104 * config/sparc/linux64.mt (TM_FILE): Update.
3105 * config/sparc/linux.mt (TM_FILE): Update.
3106 * config/sparc/fbsd.mt (TM_FILE): Update.
3107 * config/sh/wince.mt (TM_FILE): Update.
3108 * config/sh/nbsd.mt (TM_FILE): Update.
3109 * config/sh/linux.mt (TM_FILE): Update.
3110 * config/sh/embed.mt (TM_FILE): Update.
3111 * config/s390/s390.mt (TM_FILE): Update.
3112 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
3113 * config/rs6000/rs6000.mt (TM_FILE): Update.
3114 * config/rs6000/aix4.mt (TM_FILE): Update.
3115 * config/powerpc/vxworks.mt (TM_FILE): Update.
3116 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
3117 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
3118 * config/powerpc/obsd.mt (TM_FILE): Update.
3119 * config/powerpc/nbsd.mt (TM_FILE): Update.
3120 * config/powerpc/linux.mt (TM_FILE): Update.
3121 * config/powerpc/aix.mt (TM_FILE): Update.
3122 * config/pa/obsd.mt (TM_FILE): Update.
3123 * config/pa/linux.mt (TM_FILE): Update.
3124 * config/pa/hppahpux.mt (TM_FILE): Update.
3125 * config/pa/hppa64.mt (TM_FILE): Update.
3126 * config/pa/hppa.mt (TM_FILE): Update.
3127 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
3128 * config/mips/wince.mt (TM_FILE): Update.
3129 * config/mips/vxmips.mt (TM_FILE): Update.
3130 * config/mips/nbsd.mt (TM_FILE): Update.
3131 * config/mips/linux.mt (TM_FILE): Update.
3132 * config/mips/irix6.mt (TM_FILE): Update.
3133 * config/mips/irix5.mt (TM_FILE): Update.
3134 * config/mips/embed.mt (TM_FILE): Update.
3135 * config/m68k/vxworks68.mt (TM_FILE): Update.
3136 * config/m68k/st2000.mt (TM_FILE): Update.
3137 * config/m68k/os68k.mt (TM_FILE): Update.
3138 * config/m68k/obsd.mt (TM_FILE): Update.
3139 * config/m68k/nbsd.mt (TM_FILE): Update.
3140 * config/m68k/monitor.mt (TM_FILE): Update.
3141 * config/m68k/linux.mt (TM_FILE): Update.
3142 * config/m68k/cisco.mt (TM_FILE): Update.
3143 * config/ia64/linux.mt (TM_FILE): Update.
3144 * config/ia64/aix.mt (TM_FILE): Update.
3145 * config/ia64/ia64.mt (TM_FILE): Update.
3146 * config/i386/vxworks.mt (TM_FILE): Update.
3147 * config/i386/obsd64.mt (TM_FILE): Update.
3148 * config/i386/obsd.mt (TM_FILE): Update.
3149 * config/i386/nto.mt (TM_FILE): Update.
3150 * config/i386/nbsd64.mt (TM_FILE): Update.
3151 * config/i386/nbsd.mt (TM_FILE): Update.
3152 * config/i386/linux64.mt (TM_FILE): Update.
3153 * config/i386/linux.mt (TM_FILE): Update.
3154 * config/i386/i386sol2.mt (TM_FILE): Update.
3155 * config/i386/i386lynx.mt (TM_FILE): Update.
3156 * config/i386/fbsd64.mt (TM_FILE): Update.
3157 * config/i386/fbsd.mt (TM_FILE): Update.
3158 * config/i386/cygwin.mt (TM_FILE): Update.
3159 * config/h8300/h8300.mt (TM_FILE): Update.
3160 * config/frv/frv.mt (TM_FILE): Update.
3161 * config/cris/cris.mt (TM_FILE): Update.
3162 * config/arm/wince.mt (TM_FILE): Update.
3163 * config/arm/nbsd.mt (TM_FILE): Update.
3164 * config/arm/linux.mt (TM_FILE): Update.
3165 * config/arm/embed.mt (TM_FILE): Update.
3166 * config/alpha/nbsd.mt (TM_FILE): Update.
3167 * config/alpha/fbsd.mt (TM_FILE): Update.
3168 * config/alpha/alpha.mt (TM_FILE): Update.
3169 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
3170 * config/alpha/alpha-linux.mt (TM_FILE): Update.
3171
3172 Eliminate event_loop_p, always has the value 1.
3173 * defs.h (event_loop_p): Delete macro.
3174 * breakpoint.c (until_break_command): Simplify.
3175 * utils.c (prompt_for_continue): Simplify.
3176 * tracepoint.c (read_actions): Simplify.
3177 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
3178 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
3179 (set_prompt, init_main): Simplify.
3180 (init_signals, disconnect): Delete, unused.
3181 * remote.c (remote_async_resume)
3182 (extended_remote_async_create_inferior): Simplify.
3183 * mi/mi-interp.c (mi_input): Delete, unused.
3184 (mi_interpreter_resume, mi_command_loop): Simplify.
3185 * interps.c (current_interp_command_loop): Simplify.
3186 * infrun.c (proceed): Simplify.
3187 * infcmd.c (run_command, continue_command, step_1, jump_command)
3188 (until_command, advance_command, finish_command)
3189 (interrupt_target_command): Simplify.
3190 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
3191
3192 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3193 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3194 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3195 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3196 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3197 * mips-tdep.c (mips_dump_tdep): Do not print same.
3198
3199 2004-09-12 Andrew Cagney <cagney@gnu.org>
3200
3201 * valprint.c (print_longest): Use fputs_filtered. Make "val"
3202 const.
3203 * Makefile.in (valprint.o): Delete explict rule.
3204
3205 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
3206 reported by Dave Anderson.
3207
3208 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
3209
3210 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
3211
3212 2004-09-12 Salvador E. Tropea <set@users.sf.net>
3213 Andrew Cagney <cagney@gnu.org>
3214
3215 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
3216 (mi_cmd_data_list_register_values)
3217 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
3218 the register number computation.
3219
3220 2004-09-12 Andrew Cagney <cagney@gnu.org>
3221
3222 * ppcnbsd-nat.c: Include "inf-ptrace.h".
3223 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
3224 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
3225 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
3226 target.
3227 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
3228 inf-ptrace.o and inf-child.o.
3229 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
3230 * Makefile.in: Update dependencies.
3231
3232 2004-09-11 Andrew Cagney <cagney@gnu.org>
3233
3234 * language.c (hex_string, hex_string_custom): Move from here ...
3235 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
3236 (CELLSIZE): Increase to 50.
3237 * language.h (hex_string, hex_string_custom): Move from here ...
3238 * defs.h: ... to here.
3239 * Makefile.in: Update all dependencies.
3240
3241 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
3242
3243 * language.c (local_hex_format_custom): Remove.
3244 (local_hex_string): Rename to hex_string, use C format, and move to
3245 utils.c
3246 (local_hex_string_custom): Rename to hex_string_custom and change
3247 interface. Now uses C format. Move to utils.c
3248 (local_octal_format_custom): Remove.
3249 (local_decimal_format_custom): Remove.
3250 (unknown_language_defn): Remove language-specific number
3251 formatting entries.
3252 (auto_language_defn): Ditto.
3253 (local_language_defn): Ditto.
3254 * language.h (struct language_format_info): Delete declaration.
3255 (struct language_defn): Remove language_format_info fields
3256 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
3257 (local_binary_format): Remove macro.
3258 (local_binary_format_prefix): Remove macro.
3259 (local_binary_format_specifier): Remove macro.
3260 (local_binary_format_suffix): Remove macro.
3261 (local_octal_format): Remove macro.
3262 (local_octal_format_prefix): Remove macro.
3263 (local_octal_format_specifier): Remove macro.
3264 (local_octal_format_suffix): Remove macro.
3265 (local_decimal_format): Remove macro.
3266 (local_decimal_format_prefix): Remove macro.
3267 (local_decimal_format_specifier): Remove macro.
3268 (local_decimal_format_suffix): Remove macro.
3269 (local_hex_format): Remove macro.
3270 (local_hex_format_prefix): Remove macro.
3271 (local_hex_format_specifier): Remove macro.
3272 (local_hex_format_suffix): Remove macro.
3273 (local_decimal_format_custom): Remove.
3274 (local_octal_format_custom): Remove.
3275 (local_hex_format_custom): Remove.
3276 (local_hex_string): Rename to hex_string and move to defs.h.
3277 (local_hex_string_custom): Rename to hex_string_custom, change
3278 interface, and move to defs.h.
3279 * utils.c: (int_string): New function.
3280 (hex_string): New function (from language.c).
3281 (hex_string_custom): New function (from language.c).
3282 (octal2str): New function.
3283 (decimal2str): Add width parameter.
3284 (paddr_u): Use new decimal2str interface.
3285 (paddr_d): Ditto.
3286 * defs.h (hex_string): Declare.
3287 (hex_string_custom): Declare.
3288 (int_string): Declare.
3289 * printcmd.c (print_scalar_formatted): Remove localized binary
3290 formatting.
3291 * valprint.c (print_longest): Use int_string.
3292 (print_floating): Use C hex format.
3293 (print_hex_chars): Ditto.
3294 (print_binary_chars): Remove language-specific formatting.
3295 (print_octal_chars): Use C octal format.
3296 (print_decimal_chars): Delocalize format.
3297 (print_decimal): Remove.
3298 * ada-lang.c (ada_language_defn): Remove language-specific number
3299 formatting entries.
3300 * p-lang.c (pascal_language_defn): Ditto.
3301 * c-lang.c (c_language_defn): Ditto.
3302 (cplus_language_defn): Ditto.
3303 (asm_language_defn): Ditto.
3304 (minimal_language_defn): Ditto.
3305 * f-lang.c (f_language_defn): Ditto.
3306 * jv-lang.c (java_language_defn): Ditto.
3307 * m2-lang.c (m2_language_defn): Ditto.
3308 * scm-lang.c (scm_language_defn): Ditto.
3309 * objc-lang.c (objc_language_defn): Ditto.
3310 * memattr.c (mem_info_command): Use renamed hex_string_custom with
3311 new interface.
3312 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
3313 * ui-out.c (ui_out_field_core_addr): Ditto.
3314 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
3315 * exec.c (print_section_info): Ditto.
3316 * i387-tdep.c (print_i387_status_word): Ditto.
3317 (print_i387_control_word): Ditto.
3318 (i387_print_float_info): Ditto.
3319 * maint.c (maint_print_section_info): Ditto.
3320 * solib.c (info_sharedlibrary_command): Ditto.
3321 * somsolib.c (som_sharedlibrary_info_command): Ditto.
3322 * symtab.c (print_msymbol_info): Ditto.
3323 * tracepoint.c (tracepoints_info): Ditto.
3324 * solib-frv.c (lm_base): Ditto.
3325 (frv_current_sos): Ditto.
3326 (enable_break2): Ditto.
3327 (enable_break): Ditto.
3328 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
3329 (process_one_symbol): Ditto.
3330 * infcmd.c (program_info): Ditto.
3331 * mdebugread.c (parse_partial_symbols): Ditto.
3332 * symfile.c (add_symbol_file_command): Ditto.
3333 * cli/cli-cmds.c (edit_command): Ditto.
3334 (list_command): Ditto.
3335 * infcall.c (call_function_by_hand): Ditto.
3336 * remote-vx.c (vx_run_files_info): Ditto.
3337 (vx_wait): Ditto.
3338 (vx_attach): Ditto.
3339 (vx_detach): Ditto.
3340 (vx_kill): Ditto.
3341 * aix-thread.c (pdc_symbol_addrs): Ditto.
3342 (pdc_read_regs): Ditto.
3343 (pdc_write_regs): Ditto.
3344 (pdc_read_data): Ditto.
3345 (pdc_write_data): Ditto.
3346 * d10v-tdep.c (display_trace): Ditto.
3347 * rs6000-nat.c (find_toc_address): Ditto.
3348 * aix-thread.c: Don't include language.h.
3349 * buildsym.c: Ditto.
3350 * dbxread.c: Ditto.
3351 * mdebugread.c: Ditto.
3352 * rs6000-nat.c: Ditto.
3353 * buildsym.c (make_blockvector): Use renamed hex_string.
3354
3355 2004-09-10 Jason Molenda (jmolenda@apple.com)
3356
3357 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
3358 chars after 'if' or 'while' commands in user-defined commands.
3359
3360 2004-09-08 Jim Blandy <jimb@redhat.com>
3361
3362 Fix bug reported and analyzed by Olivier Crete:
3363 * symfile.c (copy_section_addr_info): New function.
3364 (symbol_file_add_with_addrs_or_offsets): Use it to save the
3365 original set of address arguments, instead of handwritten code
3366 that uses one length to allocate and a different length to
3367 initialize. Use make_cleanup_free_section_addr_info.
3368 * symfile.h (copy_section_addr_info): New declaration.
3369 * utils.c: #include "symfile.h".
3370 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
3371 New functions.
3372 * defs.h (make_cleanup_free_section_addr_info): New declaration.
3373 * Makefile.in (utils.o): Update dependencies.
3374
3375 2004-09-08 Andrew Cagney <cagney@gnu.org>
3376
3377 * thread-db.c (keep_thread_db): Delete.
3378 (thread_db_new_objfile, thread_db_create_inferior)
3379 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
3380
3381 2004-09-08 Mark Kettenis <kettenis@gnu.org>
3382
3383 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
3384 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
3385 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
3386 (i386_frameless_signal_p): Remove prototype.
3387 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
3388 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
3389 I386_SSE_NUM_REGS.
3390 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
3391 instead of FP0_REGNUM.
3392 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
3393 of FP0_REGNUM and FPC_REGNUM.
3394
3395 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
3396 (sunos_solib_create_inferior_hook): Don't call
3397 sunos_relocate_main_executable.
3398
3399 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
3400 solib_svr4_fetch_link_map_offsets to
3401 svr4_ilp32_fetch_link_map_offsets.
3402 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
3403 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
3404 svr4_ilp32_fetch_link_map_offsets.
3405 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
3406
3407 2004-09-07 Jim Blandy <jimb@redhat.com>
3408
3409 * frame.h (frame_register): Doc fix.
3410
3411 2004-09-07 Andrew Cagney <cagney@gnu.org>
3412
3413 * vx-share/wait.h: Delete #ifdef USG.
3414 * utils.c (request_quit): Ditto.
3415 * tui/tui.c (tui_reset): Ditto.
3416 * remote.c: Ditto.
3417 * remote-sds.c: Ditto.
3418 * remote-rdi.c: Ditto.
3419 * mdebugread.c: Ditto.
3420 * m68klinux-nat.c: Ditto.
3421 * infttrace.c: Ditto.
3422 * infptrace.c: Ditto.
3423 * i386v-nat.c: Ditto.
3424 * exec.c: Ditto.
3425 * dbxread.c: Ditto.
3426 * core-aout.c: Ditto.
3427
3428 2004-09-05 Joel Brobecker <brobecker@gnat.com>
3429
3430 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
3431 heuristic_proc_desc.
3432 (mips_insn32_frame_cache): Likewise.
3433
3434 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3435
3436 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
3437 left behind by error.
3438
3439 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3440
3441 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
3442 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
3443
3444 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3445
3446 * config/rs6000/xm-aix4.h: Remove this file.
3447 * config/rs6000/aix4.mh (XM_FILE): Delete.
3448
3449 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3450
3451 * config/rs6000/xm-rs6000.h: Remove this file.
3452 * config/rs6000/rs6000.mh (XM_FILE): Remove.
3453
3454 2004-09-03 Andrew Cagney <cagney@gnu.org>
3455
3456 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
3457 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
3458 only use.
3459
3460 * mips-tdep.c (temp_saved_regs): Delete.
3461 (set_reg_offset): Replace saved_regs parameter with this_cache.
3462 (heuristic_proc_desc, mips16_heuristic_proc_desc)
3463 (mips32_heuristic_proc_desc): Add this_cache parameter.
3464 (mips_insn32_frame_cache, mips_insn16_frame_cache)
3465 (after_prologue): Pass a NULL this_cache.
3466
3467 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
3468 non-kernel trap prologues.
3469
3470 * mips-tdep.c (find_proc_desc): Delete function.
3471 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
3472 simplify.
3473 (mips_insn16_frame_cache): Replace find_proc_desc with code from
3474 mips_insn32_frame_cache.
3475
3476 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
3477 Simplify as NEXT_FRAME is NULL.
3478 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
3479
3480 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
3481 local variable.
3482 (mips_skip_prologue): Update.
3483
3484 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
3485 "cur_frame" parameter.
3486 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
3487 (mips_insn32_frame_cache, find_proc_desc): Update
3488
3489 * config/vax/nm-obsd.h: Delete file.
3490 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3491 * config/vax/nm-nbsd.h: Delete file.
3492 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
3493 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3494 * config/sh/nm-nbsd.h: Delete file.
3495 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3496 * config/rs6000/nm-rs6000ly.h: Delete file.
3497 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
3498 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3499 * config/powerpc/nm-obsd.h: Delete file.
3500 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3501 * config/powerpc/nm-nbsd.h: Delete file.
3502 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3503 * config/pa/nm-obsd.h: Delete file.
3504 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3505 * config/mips/nm-nbsd.h: Delete file.
3506 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3507 * config/m88k/nm-obsd.h: Delete file.
3508 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3509 * config/m68k/nm-nbsd.h: Delete file.
3510 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
3511 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3512 * config/i386/nm-nbsd.h: Delete file.
3513 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
3514 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3515 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3516 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3517 * config/i386/nm-i386lynx.h: Delete file.
3518 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3519 * config/arm/nm-nbsd.h: Delete file.
3520 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
3521 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3522
3523 * config/i386/tm-fbsd.h: Delete file.
3524 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
3525 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
3526
3527 * config/rs6000/tm-rs6000-aix4.h: Delete file.
3528 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
3529 * config/rs6000/aix4.mt (TM_FILE): Set to
3530 config/rs6000/tm-rs6000.h.
3531 * config/powerpc/tm-ppc-aix.h: Delete file.
3532 * config/powerpc/aix.mt (TM_FILE): Set to
3533 config/rs6000/tm-rs6000.h.
3534 * config/m68k/tm-linux.h: Delete file.
3535 * config/m68k/linux.mt (TM_FILE): Set to solib.h
3536 * config/i386/tm-linux64.h: Delete file.
3537 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
3538 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
3539
3540 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3541 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
3542 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
3543 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3544 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
3545 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
3546 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
3547 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3548 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3549
3550 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
3551 gdb_host_cpu.
3552
3553 2004-09-02 Joel Brobecker <brobecker@gnat.com>
3554
3555 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
3556 Minor reformatting. Some code factoring.
3557
3558 2004-09-02 Andrew Cagney <cagney@gnu.org>
3559
3560 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
3561 * config/vax/tm-nbsd.h: Delete file.
3562 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3563 * config/sparc/tm-vxworks.h: Delete file.
3564 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
3565 * config/sparc/tm-nbsd.h: Delete file.
3566 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
3567 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
3568 * config/sparc/tm-linux.h: Delete file.
3569 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
3570 * config/s390/tm-linux.h: Delete file.
3571 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
3572 * config/pa/tm-bsd.h: Delete file.
3573 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
3574 * config/m68k/tm-obsd.h: Delete file.
3575 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
3576 * config/m68k/tm-nbsd.h: Delete file.
3577 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3578 * config/i386/tm-vxworks.h: Delete file.
3579 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
3580 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
3581 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
3582 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
3583 * config/i386/tm-nbsd.h: Delete file.
3584 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
3585 * config/i386/tm-i386lynx.h: Delete file.
3586 * config/cris/cris.mt (TM_FILE): Set to solib.h.
3587 * config/cris/tm-cris.h: Delete file.
3588
3589 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
3590 * configure: Re-generate.
3591 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
3592 * config/arm/tm-nbsd.h: Delete file.
3593
3594 * config/powerpc/tm-ppcle-sim.h: Delete.
3595 * config/powerpc/tm-ppcle-eabi.h: Delete.
3596 * config/powerpc/tm-nbsd.h: Delete.
3597 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
3598 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
3599 tm-ppcle-eabi.h.
3600
3601 * config/i386/nto.mh (NAT_FILE): Delete.
3602 * config/i386/nm-nto.h: Delete.
3603
3604 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
3605 * config/m68k/tm-os68k.h: Ditto.
3606 * config/m68k/tm-monitor.h: Ditto.
3607 * config/m68k/tm-cisco.h: Ditto.
3608 * config/m68k/st2000.mt (TM_FILE): Delete.
3609 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
3610 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
3611 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
3612 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
3613
3614 * config/m68k/tm-st2000.h: Delete.
3615 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
3616 * config/sparc/fbsd.mt (TM_FILE): Delete.
3617 * config/sparc/tm-fbsd.h: Delete.
3618
3619 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
3620 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
3621 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
3622
3623 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
3624 GDB_TM_FILE and GDB_XM_FILE.
3625 * gdbarch.c: Re-generate.
3626 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
3627 quotes in macro definition.
3628 * configure.in: Re-generate.
3629
3630 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
3631 validating architecture methods.
3632 * gdbarch.c: Re-generate.
3633
3634 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
3635 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
3636 GDB_MULTI_ARCH_PARTIAL.
3637 * gdbarch.h: Re-generate.
3638
3639 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
3640 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
3641 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
3642 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
3643 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
3644 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
3645 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
3646 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
3647 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
3648 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
3649 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
3650 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
3651
3652 2004-09-01 Andrew Cagney <cagney@gnu.org>
3653
3654 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
3655 and main_func_highpc.
3656 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
3657 * objfiles.c (init_entry_point_info, objfile_relocate): Update
3658 * nlmread.c (nlm_symfile_read): Update.
3659
3660 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3661
3662 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
3663 (mips_insn32_frame_cache): Inline call to find_proc_desc.
3664 (find_proc_desc): Remove dead code.
3665
3666 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3667
3668 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
3669
3670 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
3671
3672 * observer.sh: Add struct so_list declaration.
3673 * Makefile.in: Add dependencies on observer.h for solib.c and
3674 breakpoint.c.
3675 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
3676 function.
3677 (_initialize_breakpoint): Register
3678 disable_breakpoints_in_unloaded_shlib as an observer of the
3679 "solib unloaded" observation event.
3680 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
3681 call decode_line_1 so unfound breakpoint errors are silent.
3682 * solib.c (update_solib_list): When a solib is discovered to have
3683 been unloaded by the program, notify all observers of the
3684 "solib unloaded" observation event.
3685
3686 2004-09-01 Andrew Cagney <cagney@gnu.org>
3687
3688 * frame.c: Include "objfiles.h".
3689 (inside_main_func): New function.
3690 (get_prev_frame): Use new inside_main_func.
3691 * Makefile.in (frame.o): Update dependencies.
3692 * defs.h (inside_main_func): Delete declaration.
3693 * blockframe.c (inside_main_func): Delete function.
3694
3695 2004-08-31 Jim Blandy <jimb@redhat.com>
3696
3697 * dwarf2read.c (is_vtable_name): New function, based on logic from
3698 read_structure_type, but passing the correct length to strncmp,
3699 and using 'sizeof' instead of 'strlen'.
3700 (read_structure_type): Call it.
3701
3702 2004-08-31 Joel Brobecker <brobecker@gnat.com>
3703
3704 * config/powerpc/aix.mh: Add comment.
3705
3706 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
3707
3708 * MAINTAINERS: Add self to Write-After-Approval.
3709
3710 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
3711
3712 * MAINTAINERS: Add self to Write-After-Approval.
3713
3714 2004-08-30 Andrew Cagney <cagney@gnu.org>
3715
3716 Fix PR breakpoints/1757.
3717 * infrun.c (struct execution_control_state): Replace
3718 remove_breakpoints_on_following_step with
3719 step_after_step_resume_breakpoint.
3720 (init_execution_control_state): Update.
3721 (handle_inferior_event): For signals, when stepping off a
3722 breakpoint, set step_after_step_resume_breakpoint. When
3723 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
3724 (keep_going): Delete code handling
3725 remove_breakpoints_on_following_step.
3726
3727 2004-08-29 David Lecomber <david@streamline-computing.com>
3728
3729 Fix PR gdb/648
3730 * language.h (enum array_ordering): New enum.
3731 * language.h (struct language_defn): New la_array_ordering
3732 attribute.
3733 * language.c (unknown_language_defn, auto_language_defn)
3734 (local_language_defn): Ditto.
3735 * ada-lang.c (ada_language_defn): Ditto.
3736 * c-lang.c (c_language_defn, cplus_language_defn)
3737 (asm_language_defn, minimal_language_defn): Ditto.
3738 * f-lang.c (f_language_defn): Ditto.
3739 * jv-lang.c (java_language_defn): Ditto.
3740 * m2-lang.c (f_language_defn): Ditto.
3741 * objc-lang.c (objc_language_defn): Ditto.
3742 * p-lang.c (pascal_language_defn): Ditto.
3743 * scm-lang.c (scm_language_defn): Ditto.
3744 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
3745 oriented large to small in type structure.
3746 * dwarf2read.c (read_array_order): New function.
3747 (read_array_type): Use read_array_order to check row/column
3748 major ordering.
3749
3750 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
3751
3752 * target.c (target_resize_to_sections): Check
3753 current_target.to_sections for an old value when updating.
3754
3755 2004-08-27 Joel Brobecker <brobecker@gnat.com>
3756
3757 * procfs.c (dbx_link_bpt_addr): New static global variable.
3758 (dbx_link_shadow_contents): New static global variable.
3759 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
3760 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
3761 if we just hit it.
3762 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
3763 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
3764 from run to run.
3765 (procfs_create_inferior): Remove syssgi syscall-exit notifications
3766 after the inferior has been forked.
3767 (remove_dbx_link_breakpoint): New function.
3768 (dbx_link_addr): New function.
3769 (insert_dbx_link_bpt_in_file): New function.
3770 (insert_dbx_link_bpt_in_region): New function.
3771 (insert_dbx_link_breakpoint): New function.
3772 (proc_trace_syscalls_1): New function, extracted from
3773 proc_trace_syscalls.
3774 (proc_trace_syscalls): Replace extract code by call to
3775 proc_trace_syscalls_1.
3776 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
3777 is no longer valid.
3778
3779 2004-08-25 Jim Blandy <jimb@redhat.com>
3780
3781 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
3782
3783 2004-08-25 Andrew Cagney <cagney@gnu.org>
3784
3785 * infrun.c (struct execution_control_state): Delete field
3786 "stepping_through_sigtramp".
3787 (init_execution_control_state): Do not set same.
3788 (context_switch): Do not pass same to save_infrun_state and
3789 load_infrun_state.
3790 * gdbthread.h (struct thread_info): Delete field
3791 stepping_through_sigtramp.
3792 (save_infrun_state, load_infrun_state): Delete parameter
3793 stepping_through_sigtramp.
3794 * thread.c (load_infrun_state, save_infrun_state): Update.
3795
3796 * infrun.c: Re-indent. Move expression operators to the beginning
3797 of the line. Remove long disabled #if 0 code.
3798
3799 2004-08-24 Andrew Cagney <cagney@gnu.org>
3800
3801 * doublest.h (floatformat_ieee_quad): Rename
3802 floatformat_ia64_quad.
3803 * doublest.c (floatformat_ieee_quad): Rename
3804 floatformat_ia64_quad.
3805 (_initialize_doublest): Update.
3806
3807 2004-08-24 Jim Blandy <jimb@redhat.com>
3808
3809 * dwarf2expr.h (struct dwarf_expr_context): New members
3810 'num_pieces' and 'pieces', for returning the result of an
3811 expression that uses DW_OP_piece.
3812 (struct dwarf_expr_piece): New struct type.
3813 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
3814 pieces.
3815 (free_dwarf_expr_context): Free pieces, if any.
3816 (add_piece): New function.
3817 (execute_stack_op): Implement DW_OP_piece.
3818 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
3819 expression is a list of pieces, print an error message.
3820 (dwarf2_loc_desc_needs_frame): If the expression yields
3821 pieces, and any piece is in a register, then we need a frame.
3822
3823 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
3824 the stack until we've decided what sort of result the evaluation
3825 has produced. Use separate variables, with more specific names.
3826
3827 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
3828
3829 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
3830 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
3831 (arm_netbsd_init_abi_common): Register them.
3832
3833 2004-08-22 Mark Kettenis <kettenis@gnu.org>
3834
3835 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
3836
3837 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
3838 safe_frame_unwind_memory instead of target_read_memory.
3839
3840 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
3841 Reorder includes.
3842 (fetch_register, store_register): Remove prototypes.
3843 (child_resume): Reorganize code and comments such that it is
3844 grouped a bit more logically.
3845 (attach): Explicitly compare errno against 0.
3846 (detach): Likewise. Use perror_with_name instead of
3847 print_sys_errmsg.
3848 * Makefile.in (infptrace.o): Update dependencies.
3849
3850 * ia64-linux-nat.c: Update copyright year.
3851 (fetch_debug_register, store_debug_register)
3852 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
3853 PTRACE_TYPE_ARG3.
3854 * config/ia64/nm-linux.h: Update copyright year.
3855 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
3856
3857 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
3858 from CORE_ADDR to struct frame_info *. Use
3859 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
3860 (amd64_linux_sigtramp_p): Adjust for changed signature of
3861 and64_linux_sigtramp_start
3862
3863 * gdb_ptrace.h: GNU/Linux.
3864
3865 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3866 Remove defines.
3867
3868 * infptrace.c: Include "gdb_assert.h".
3869 (PTRACE_XFER_TYPE): Remove define.
3870 (offsetof): Only define if U_REGS_OFFSET isn't defined.
3871 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
3872 Tweak comment.
3873 (fetch_inferior_registers, store_inferior_registers): Remove
3874 redundant culry braces. Tweak comment. s/regno/regnum.
3875 * Makefile.in (infptrace.o): Update dependencies.
3876
3877 * configure.in: Change test for return type of ptrace to default
3878 to `long' instead of `int'.
3879 * configure: Regenerate.
3880
3881 2004-08-21 Mark Kettenis <kettenis@gnu.org>
3882
3883 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
3884
3885 * configure.in: Check for ttrace function.
3886 * configure, config.in: Regenerate.
3887
3888 * gdb_ptrace.h: New file.
3889 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
3890 <sys/ptrace.h>.
3891 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
3892 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
3893 (attach): Don't define PT_ATTACH.
3894 (detach): Don't define PT_DETACH.
3895 * Makefile.in (gdb_ptrace_h): New variable.
3896 (infptrace.o): Update dependencies.
3897
3898 2004-08-16 Mark Kettenis <kettenis@gnu.org>
3899
3900 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
3901 instead of `int' if not already defined.
3902 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
3903 PTRACE_TYPE_ARG3.
3904 * infptrace.c (call_ptrace): Revert change that replaced
3905 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3906
3907 2004-08-15 Mark Kettenis <kettenis@gnu.org>
3908
3909 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3910 Remove defines.
3911
3912 * linux-nat.c (kill_inferior): Add missing third and fourth
3913 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
3914
3915 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
3916 PTRACE_TYPE_RET.
3917
3918 * proc-why.c (proc_prettyfprint_why): Fix format string.
3919
3920 * solib-osf.c (osf_current_sos): Remove unsused label.
3921
3922 * configure.in: Add <ncurses/ncurses.h> to the list of possible
3923 curses headers.
3924 * configure, config.in: Regenerate.
3925 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
3926 <ncurses/ncurses.h>.
3927
3928 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
3929 * config/nm-nbsd.h: Update copyright year.
3930 (PTRACE_ARG3_TYPE): Remove define.
3931
3932 * sparc-nat.c (fetch_inferior_registers)
3933 (store_inferior_registers, sparc_xfer_wcookie):
3934 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3935
3936 * alphabsd-nat.c (fetch_inferior_registers):
3937 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3938 PTRACE_TYPE_ARG3.
3939 * amd64bsd-nat.c (fetch_inferior_registers)
3940 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3941 PTRACE_TYPE_ARG3.
3942 * armnbsd-nat.c: Update copyright year.
3943 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
3944 (store_register, store_regs, store_fp_register, store_fp_regs):
3945 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3946 * hppabsd-nat.c (fetch_inferior_registers)
3947 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3948 PTRACE_TYPE_ARG3.
3949 * i386bsd-nat.c (fetch_inferior_registers)
3950 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
3951 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3952 * m68kbsd-nat.c (fetch_inferior_registers)
3953 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3954 PTRACE_TYPE_ARG3.
3955 * m88kbsd-nat.c (fetch_inferior_registers)
3956 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3957 PTRACE_TYPE_ARG3.
3958 * mipsnbsd-nat.c: Update copyright year.
3959 (fetch_inferior_registers, store_inferior_registers):
3960 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3961 * ns32knbsd-nat.c: Update copyright year.
3962 (fetch_inferior_registers, store_inferior_registers):
3963 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3964 * ppcnbsd-nat.c (fetch_inferior_registers):
3965 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3966 PTRACE_TYPE_ARG3.
3967 * ppcobsd-nat.c (fetch_inferior_registers):
3968 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3969 PTRACE_TYPE_ARG3.
3970 * shnbsd-nat.c: Update copyright year.
3971 (fetch_inferior_registers, store_inferior_registers):
3972 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3973 * vaxbsd-nat.c (fetch_inferior_registers)
3974 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3975 PTRACE_TYPE_ARG3.
3976
3977 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
3978 PTRACE_TYPE_ARG3.
3979 * infptrace.c (call_ptrace, child_resume, attach, detach)
3980 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
3981 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3982 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
3983 PTRACE_TYPE_ARG3.
3984
3985 2004-08-14 Mark Kettenis <kettenis@gnu.org>
3986
3987 * defs.h: Remove out-of-date comment.
3988 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
3989 [!GETENV_PROVIDED] (getenv): Remove prototype.
3990
3991 * standalone.c: Remove file.
3992 * Makefile.in (standalone.o): Remove dependency.
3993
3994 * i386-linux-nat.c (dummy_sse_values): Remove function and
3995 prototype.
3996 (i386_linux_dr_get): Fix typo in comment.
3997 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
3998
3999 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
4000
4001 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
4002 from declaration.
4003 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
4004 from definition.
4005
4006 2004-08-13 Mark Kettenis <kettenis@gnu.org>
4007
4008 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
4009 parenthesis in definition.
4010 * configure: Regenerated.
4011
4012 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
4013
4014 * PROBLEMS: Mention build/1411.
4015
4016 2004-08-09 Robert Millan <robertmh@gnu.org>
4017
4018 Committed by Nathanael Nerode.
4019 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
4020 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
4021
4022 2004-08-12 Andrew Cagney <cagney@gnu.org>
4023
4024 * NEWS: Mention fixes in GDB 6.2.1.
4025 * PROBLEMS: Remove mention of mips-irix.
4026
4027 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4028
4029 * config/powerpc/xm-aix.h: Delete.
4030 * config/powerpc/aix.mh (MH_FILE): Remove.
4031 * config/powerpc/aix432.mh (MH_FILE): Remove.
4032
4033 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4034
4035 * config/powerpc/aix.mh: Remove obsolete comment.
4036 * config/powerpc/aix432.mh: Likewise.
4037
4038 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4039
4040 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
4041
4042 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4043
4044 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
4045 this file is now empty.
4046 * config/xm-aix4.h: Remove, this file is no longer included
4047 anywhere.
4048
4049 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4050
4051 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
4052 that file is now empty.
4053 (termdef): Remove prototype, function no longer used.
4054
4055 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4056
4057 * doc/gdbint.texinfo (Host Definition): Remove documentation
4058 for USE_O_NOCTTY, no longer used.
4059 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
4060 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
4061
4062 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4063
4064 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
4065 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
4066 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
4067
4068 2004-08-11 Mark Kettenis <kettenis@gnu.org>
4069
4070 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
4071 instead of FIVE_ARG_PTRACE.
4072
4073 * inflow.c (O_NOCTTY): Define to zero if not already defined.
4074 (new_tty): Use O_NOCTTY unconditionally.
4075
4076 2004-08-10 Mark Kettenis <kettenis@gnu.org>
4077
4078 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
4079 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
4080 fflush on stdout.
4081
4082 2004-08-10 Joel Brobecker <brobecker@gnat.com>
4083
4084 * xcoff_symfile_finish: Replace last call to xmfree by call
4085 to xfree.
4086
4087 2004-08-10 Andrew Cagney <cagney@gnu.org>
4088
4089 * main.c (captured_main): Delete call to init_malloc.
4090 * defs.h (init_malloc): Delete declaration.
4091 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
4092 (init_malloc): Delete functions.
4093
4094 * defs.h (xmfree): Delete.
4095 * utils.c (xmfree): Delete function.
4096 (xfree): Inline calls to xmfree and mfree.
4097 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
4098 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
4099 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
4100 * somread.c (som_symfile_finish): Ditto.
4101 * objfiles.c (allocate_objfile, free_objfile):
4102 * nlmread.c (nlm_symfile_finish): Ditto.
4103 * hpread.c (hpread_symfile_finish): Ditto.
4104 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
4105 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
4106 * coffread.c (coff_symfile_finish): Ditto.
4107
4108 * defs.h (xmcalloc): Delete declaration.
4109 * utils.c (xmcalloc): Delete.
4110 (xcalloc): Inline calls to xmcalloc and mcalloc.
4111 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
4112 xcalloc and xfree.
4113 * symtab.c (create_demangled_names_hash): Ditto.
4114
4115 * defs.h (xmrealloc): Delete.
4116 * utils.c (xmrealloc): Delete.
4117 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
4118 * symmisc.c (extend_psymbol_list): Use xrealloc.
4119 * source.c (find_source_lines): Ditto.
4120 * hpread.c (hpread_lookup_type): Ditto.
4121 * dbxread.c (add_bincl_to_list): Ditto.
4122
4123 * utils.c (xmmalloc): Delete.
4124 (xmalloc): Inline xmmalloc and mmalloc calls.
4125 (msavestring): Use xmalloc.
4126 * defs.h (xmmalloc): Delete declaration.
4127 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
4128 xmmalloc.
4129 * symmisc.c (extend_psymbol_list): Ditto.
4130 * symfile.c (init_psymbol_list): Ditto.
4131 * source.c (find_source_lines): Ditto.
4132 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
4133 * elfread.c (elf_symtab_read): Ditto.
4134 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
4135 * coffread.c (coff_symfile_init): Ditto.
4136
4137 2004-08-10 David Carlton <carlton@bactrian.org>
4138
4139 * MAINTAINERS: Remove David Carlton from c++ testsuite
4140 maintainers.
4141
4142 2004-08-10 Jerome Guitton <guitton@gnat.com>
4143
4144 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
4145 print a line feed before the prompt.
4146
4147 2004-08-10 Mark Kettenis <kettenis@gnu.org>
4148
4149 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
4150
4151 2004-08-09 Joel Brobecker <brobecker@gnat.com>
4152
4153 General cleanup of the AIX xm include file:
4154 * config/xm-aix4.h (fd_set): Remove undefine.
4155 Remove include of <sys/select.h>.
4156 (HAVE_TERMIO): Remove define.
4157 (USG): Likewise.
4158 (NULL): Remove redefine.
4159 (alloca): Remove #pragma.
4160 (vfork): Remove define.
4161 (termdef): Remove.
4162 (SIGWINCH_HANDLER): Remove.
4163 (SIGWINCH_HANDLER_BODY): Remove.
4164
4165 2004-08-09 Mark Kettenis <kettenis@gnu.org>
4166
4167 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
4168 GDB_OSABI_OPENBSD_ELF.
4169
4170 2004-08-07 Robert Millan <robertmh@gnu.org>
4171
4172 * bsd-kvm.c: Check for nlist.h before including it.
4173
4174 2004-08-09 Mark Kettenis <kettenis@gnu.org>
4175
4176 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
4177 sigcontext' offset consistency checks for ancient BSD.
4178
4179 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
4180
4181 * configure.in: Check for <sys/types.h>. Check return and
4182 argument types of ptrace.
4183 * configure, config.in: Regenerate.
4184
4185 2004-08-09 Jim Blandy <jimb@redhat.com>
4186
4187 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
4188 rs6000_register_sim_regno): Doc fixes.
4189
4190 2004-08-08 Joel Brobecker <brobecker@gnat.com>
4191
4192 * mips-tdep.c: Include "floatformat.h".
4193 (n32n64_floatformat_always_valid): New function.
4194 (floatformat_n32n64_long_double_big): New constant.
4195 (mips_gdbarch_init): Set size and format of long double
4196 for N32 and N64 ABIs.
4197 * Makefile.in (mips-tdep.o): Update dependencies.
4198
4199 2004-08-08 Andrew Cagney <cagney@gnu.org>
4200
4201 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
4202 print. Improve script's error messages.
4203 * gdbarch.h: Re-generate.
4204
4205 * gdbarch.sh (pformat): New function.
4206 (float_format, double_format, long_double_format): List with bit
4207 members. Use pformat when printing.
4208 * gdbarch.c, gdbarch.h: Re-generate.
4209
4210 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
4211
4212 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
4213 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
4214 (ppcnbsd_supply_pcb): New function.
4215 (_initialize_ppcnbsd_nat): New prototype and function.
4216 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
4217 (LOADLIBES): New variable.
4218 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
4219
4220 2004-08-08 Andrew Cagney <cagney@gnu.org>
4221
4222 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
4223 (builtin_type_ieee_double, builtin_type_ia64_quad)
4224 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
4225 BE/LE floating-point types.
4226 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
4227 (builtin_type_ieee_double, builtin_type_ia64_quad)
4228 (builtin_type_ia64_spill): Declare.
4229 * doublest.c (_initialize_doublest, floatformat_ieee_single)
4230 (floatformat_ieee_double, floatformat_arm_ext)
4231 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
4232 of LE/BE floatformats.
4233 * doublest.h: (struct floatformat, floatformat_ieee_single)
4234 (floatformat_ieee_double, floatformat_arm_ext)
4235 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
4236
4237 2004-08-08 Mark Kettenis <kettenis@gnu.org>
4238
4239 * i386gnu-nat.c (gnu_store_registers): Fix typo.
4240
4241 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
4242 instead of regcache_raw_supply when storing the registers.
4243
4244 * i386gnu-nat.c: Update copyright year.
4245 (gnu_store_registers): Don't use deprecated_registers and
4246 deprecated_registers_valid. Use regcache_valid_p and
4247 regcache_raw_supply instead.
4248
4249 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
4250 frame_pc_unwind.
4251
4252 * procfs.c (procfs_pid_to_str): Remove redundant and unused
4253 variables. Incapitalized "process".
4254
4255 * configure.in: Add cursesX to the list of possible curses libs.
4256 Add cursesX.h to the list of possible curses headers.
4257 * configure, config.in: Regenerate.
4258
4259 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
4260
4261 * configure.in: Test for struct lwp in <sys/lwp.h>.
4262 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
4263 the offset of l_addr in struct lwp.
4264
4265 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
4266
4267 * bsd-kvm.c: Include "gdbcore.h"
4268 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
4269
4270 2004-08-07 Andrew Cagney <cagney@gnu.org>
4271
4272 * gdbtypes.c (build_flt, build_complex): New functions.
4273 (gdbtypes_post_init): Use.
4274
4275 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
4276
4277 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
4278 through to builtin_type_uint128.
4279
4280 * c-exp.y: Use builtin_type function to obtain builtin types.
4281
4282 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
4283 builtin_uint128.
4284 * gdbtypes.c (gdbtypes_post_init): Update.
4285 (build_gdbtypes): Move initialization of builtin_type_int0
4286 through to builtin_type_uint128 from here ...
4287 (_initialize_gdbtypes): ... to here.
4288 * d10v-tdep.c (d10v_register_type): Update.
4289
4290 * doublest.c: Update copyright.
4291 (floatformat_from_length): Call error when floatformat is NULL.
4292 (extract_floating_by_length): Remove NULL fmt check.
4293 (store_floating_by_length): Ditto.
4294
4295 2004-08-07 Andrew Cagney <cagney@gnu.org>
4296
4297 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
4298 that the register is valid.
4299
4300 2004-08-05 Mark Kettenis <kettenis@chello.nl>
4301
4302 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4303 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
4304 struct frame_info *. Use safe_frame_unwind_memory instead of
4305 deprecated_read_memory_nobpt.
4306 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
4307 changed signature of i386_linux_sigtramp_start and
4308 i386_linux_rt_sigtramp_start.
4309
4310 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
4311 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
4312 instead of deprecated_read_memory_nobpt.
4313 (i386nbsd_sigtramp_p): Adjust for changed signature of
4314 i386nbsd_sigtramp_offset.
4315
4316 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
4317 safe_frame_unwind_memory instead of target_read_memory.
4318
4319 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
4320 !NO_SYS_FILE.
4321 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
4322 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
4323 (_initialize_kernel_u_addr): Remove prototype and function.
4324 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
4325 !NO_SYS_FILE.
4326 * xcoffread.c: Likewise.
4327
4328 2004-08-06 Mark Kettenis <kettenis@gnu.org>
4329
4330 * vax-nat.c: New file.
4331 * vaxbsd-nat.c: Tweak comment.
4332 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
4333 vaxnbsd-tdep.c.
4334 (vax-nat.o): New dependency.
4335 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
4336 (vax-*-ultrix2*): Remove.
4337 * config/vax/vax.mh: New file.
4338 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
4339 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
4340 (vax_register_u_addr): New prototype.
4341 (REGISTER_U_ADDR): Define using vax_register_u_addr.
4342 * config/vax/vaxult2.mh: Remove file.
4343 * config/vax/vaxult.mh: Remove file.
4344 * config/vax/vaxbsd.mh: Remove file.
4345 * config/vax/vax.mt (TM_FILE): Remove.
4346 * config/vax/tm-vaxbsd.h: Remove file.
4347
4348 2004-08-06 Joel Brobecker <brobecker@gnat.com>
4349
4350 * aix-thread.c (get_signaled_thread): New function.
4351 (iter_trap): Delete, no longer used.
4352 (iter_tid): New function.
4353 (pd_update): Find the thread that received the SIGTRAP signal
4354 by first locating the kernel thread, and then finding its
4355 associated thread.
4356
4357 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
4358
4359 * lin-lwp.c (child_wait): Continue inferior after processing
4360 PTRACE_EVENT_CLONE event.
4361
4362 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
4363
4364 * MAINTAINERS: Add self to Write-After-Approval.
4365
4366 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
4367
4368 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
4369 libunwind-xxxx.so" where xxxx is UNW_TARGET.
4370
4371 2004-08-05 Andrew Cagney <cagney@gnu.org>
4372
4373 * config/xm-sysv4.h: Delete file.
4374 * config/mips/xm-irix5.h: Delete file.
4375 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
4376 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
4377 * config/ia64/xm-aix.h: Delete file.
4378 * config/ia64/aix.mh (XM_FILE): Delete.
4379 * config/pa/xm-hppah.h: Delete file.
4380 * config/pa/hpux11w.mh (XM_FILE): Delete.
4381 * config/pa/hpux11.mh (XM_FILE): Delete.
4382 * config/pa/hpux1020.mh (XM_FILE): Delete.
4383 * config/pa/hppahpux.mh (XM_FILE): Delete.
4384
4385 * config/alpha/xm-alphalinux.h: Delete file.
4386 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
4387 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
4388 * config/alpha/xm-alphaosf.h: Delete file.
4389 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
4390 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
4391 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
4392 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
4393
4394 * config/i386/xm-i386v.h: Delete file.
4395 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
4396 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
4397 * config/i386/xm-i386sco.h: Delete file.
4398 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
4399 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
4400 * config/i386/xm-i386v4.h: Delete file.
4401 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
4402 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
4403 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
4404 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
4405
4406 * config/vax/xm-vax.h: Delete file.
4407 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
4408 * config/vax/xm-vaxult2.h: Delete file.
4409 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
4410 * config/vax/vaxult2.mh (XM_FILE): Delete.
4411 * config/vax/xm-vaxult.h: Delete file.
4412 * config/vax/vaxult.mh (XM_FILE): Delete.
4413 * config/vax/xm-vaxbsd.h: Delete file.
4414 * config/vax/vaxbsd.mh (XM_FILE): Delete.
4415
4416 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
4417 * gdbarch.h, gdbarch.c: Re-generate.
4418 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
4419 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
4420 * frame.h: Delete deprecated_read_fp from comments.
4421 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
4422 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
4423
4424 2004-08-04 Mark Kettenis <kettenis@gnu.org>
4425
4426 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
4427 trampoline in OpenBSD 3.5-current.
4428
4429 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
4430 SSE registers.
4431
4432 * Makefile.in: Remove embedded page breaks.
4433
4434 2004-08-04 Jim Blandy <jimb@redhat.com>
4435
4436 * regcache.c (regcache_raw_read): Assert that, after calling
4437 target_fetch_registers, the register we're reading is cached.
4438
4439 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
4440 a call to 'internal_error', with a more helpful error message.
4441 * rs6000-tdep.c (e500_pseudo_register_read,
4442 e500_pseudo_register_write, rs6000_store_return_value): Same.
4443
4444 2004-08-04 Andrew Cagney <cagney@gnu.org>
4445
4446 * Makefile.in: Update dependencies.
4447
4448 2004-08-04 Jim Blandy <jimb@redhat.com>
4449
4450 Change the layout of the PowerPC E500 raw register cache to allow
4451 the lower 32-bit halves of the GPRS to be their own raw registers,
4452 not pseudoregisters.
4453 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
4454 add ppc_ev0_upper_regnum flag.
4455 * rs6000-tdep.c: #include "reggroups.h".
4456 (spe_register_p): Recognize the ev upper half registers as SPE
4457 registers.
4458 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
4459 registers.
4460 (e500_move_ev_register): New function.
4461 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
4462 vector registers are the pseudo-registers now, formed by splicing
4463 together the gprs and the upper-half registers.
4464 (e500_register_reggroup_p): New function.
4465 (P): Macro deleted.
4466 (P8, A4): New macro.
4467 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
4468 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
4469 macros.
4470 (registers_e500): Rearrange register set so that the raw register
4471 set contains 32-bit GPRs and upper-half registers, and the SPE
4472 vector registers become pseudo-registers.
4473 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
4474 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
4475 register numbers are now the same for the E500 as they are for
4476 other PowerPC variants. Register e500_register_reggroup_p as the
4477 register group function for the E500.
4478 * Makefile.in (rs6000-tdep.o): Update dependencies.
4479
4480 Adapt PPC E500 native support to the new raw regcache layout.
4481 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
4482 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
4483 (fetch_spe_register, store_spe_register): Handle fetching/storing
4484 all the SPE registers at once, if regno == -1. These now take
4485 over the job of fetch_spe_registers and store_spe_registers.
4486 (fetch_spe_registers, store_spe_registers): Deleted.
4487 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
4488 unconditionally; they're always raw. Fetch/store SPE upper half
4489 registers, if present, instead of ev registers.
4490 (fetch_register, store_register): Remove sanity checks: gprs are
4491 never pseudo-registers now, so we never need to even mention any
4492 registers that are ever pseudoregisters.
4493
4494 Use a fixed register numbering when communicating with the PowerPC
4495 simulator.
4496 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
4497 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
4498 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
4499 New functions.
4500 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
4501 init_sim_regno_table.
4502 * Makefile.in (gdb_sim_ppc_h): New variable.
4503 (rs6000-tdep.o): Update dependencies.
4504
4505 2004-08-02 Andrew Cagney <cagney@gnu.org>
4506
4507 * cris-tdep.c (cris_register_size): Restore function, still used
4508 locally.
4509
4510 * gdbarch.sh (deprecated_target_read_fp)
4511 (deprecated_frame_locals_address, deprecated_frame_args_address)
4512 (deprecated_frame_chain_valid, deprecated_frame_chain)
4513 (deprecated_init_extra_frame_info, deprecated_pop_frame)
4514 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
4515 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
4516 * gdbarch.h, gdbarch.c: Re-generate.
4517 * regcache.c (deprecated_read_fp): Do not call
4518 DEPRECATED_TARGET_READ_FP_P.
4519 * infcmd.c (default_print_registers_info): Do not call
4520 DEPRECATED_DO_REGISTERS_INFO.
4521 * frame-base.c (default_frame_locals_address): Do not call
4522 DEPRECATED_FRAME_LOCALS_ADDRESS.
4523 (default_frame_args_address): Do not call
4524 DEPRECATED_FRAME_ARGS_ADDRESS.
4525
4526 * gdbarch.sh (deprecated_register_raw_size)
4527 (deprecated_register_virtual_size:int): Delete.
4528 * gdbarch.h, gdbarch.c: Re-generate.
4529 * cris-tdep.c (cris_register_size): Delete.
4530 (cris_gdbarch_init): Update.
4531 * alpha-tdep.c (alpha_register_raw_size)
4532 (alpha_register_virtual_size): Delete.
4533 (alpha_gdbarch_init): Update.
4534
4535 * gdbarch.sh (deprecated_register_virtual_type)
4536 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
4537 (deprecated_dummy_write_sp): Delete.
4538 * gdbarch.h, gdbarch.c: Re-generate.
4539
4540 * gdbarch.sh (deprecated_register_bytes): Delete.
4541 * gdbarch.h, gdbarch.c: Re-generate.
4542 * regcache.c (deprecated_register_bytes): New function.
4543 * regcache.h (deprecated_register_bytes): Declare.
4544 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4545 * v850-tdep.c (v850_gdbarch_init): Update.
4546 * sh64-tdep.c (sh64_gdbarch_init): Update.
4547 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4548 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4549 * mcore-tdep.c (mcore_gdbarch_init): Update.
4550 * cris-tdep.c (cris_gdbarch_init): Update.
4551 * arm-tdep.c (arm_gdbarch_init): Update.
4552 * remote.c (init_remote_state): Update.
4553 * remote-vx.c (vx_prepare_to_store): Update.
4554 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
4555 * irix5-nat.c (fetch_core_registers): Update.
4556 * cris-tdep.c (cris_register_bytes_ok): Update.
4557 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4558
4559 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
4560 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
4561 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
4562 (mips_insn16_frame_base_address, mips_insn16_frame_base)
4563 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
4564 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
4565 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
4566 (mips_insn32_frame_base_address, mips_insn32_frame_base)
4567 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
4568 with mips_insn16 and mips_insn32.
4569
4570 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
4571 * rs6000-tdep.c (rs6000_push_dummy_call)
4572 (rs6000_extract_return_value): Use register_size.
4573 * xstormy16-tdep.c (xstormy16_get_saved_register)
4574 (xstormy16_extract_return_value): Ditto.
4575 * valops.c (value_assign): Ditto.
4576 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
4577 * v850-tdep.c (v850_extract_return_value): Ditto.
4578 * tracepoint.c (collect_symbol): Ditto.
4579 * target.c (debug_print_register): Ditto.
4580 * stack.c (frame_info): Ditto.
4581 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
4582 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
4583 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
4584 (store_register_using_P): Ditto.
4585 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
4586 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
4587 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4588 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
4589 * regcache.c (deprecated_read_register_bytes)
4590 (deprecated_write_register_bytes, read_register)
4591 (write_register): Ditto.
4592 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
4593 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
4594 * monitor.c (monitor_supply_register, monitor_fetch_register)
4595 (monitor_store_register): Ditto.
4596 * mn10300-tdep.c (mn10300_pop_frame_regular)
4597 (mn10300_print_register): Ditto.
4598 * mipsv4-nat.c (fill_fpregset): Ditto.
4599 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
4600 (mips64_fill_fpregset): Ditto.
4601 * mi/mi-main.c (register_changed_p, get_register)
4602 (mi_cmd_data_write_register_values): Ditto.
4603 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
4604 * irix5-nat.c (fill_gregset, fetch_core_registers):
4605 * infrun.c (write_inferior_status_register): Ditto.
4606 * infptrace.c (fetch_register, store_register): Ditto.
4607 * infcmd.c (default_print_registers_info): Ditto.
4608 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
4609 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
4610 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
4611 * hpux-thread.c (hpux_thread_fetch_registers)
4612 (hpux_thread_store_registers): Ditto.
4613 * hppah-nat.c (store_inferior_registers, fetch_register):
4614 * findvar.c (value_from_register): Ditto.
4615 * dve3900-rom.c (fetch_bitmapped_register):
4616 * cris-tdep.c (cris_gdbarch_init): Ditto.
4617 * alpha-tdep.h: Ditto.
4618 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
4619
4620 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
4621 DEPRECATED_REGISTER_RAW_SIZE from comments.
4622 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
4623 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
4624 DEPRECATED_REGISTER_RAW_SIZE.
4625 * findvar.c (value_of_register): Simplify by assuming that the
4626 registers raw and virtual sizes are identical.
4627 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
4628 comment.
4629 * arch-utils.c (generic_register_size): Simplify by assuming
4630 register_type.
4631
4632 * regcache.c (legacy_read_register_gen, real_register)
4633 (legacy_write_register_gen): Delete, not used.
4634
4635 * regcache.c (struct regcache_descr): Delete legacy_p.
4636 (init_legacy_regcache_descr): Delete function.
4637 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
4638 Do not use deprecated register functions.
4639 (regcache_raw_read, deprecated_write_register_gen):
4640 (deprecated_read_register_gen, regcache_raw_write): Delete code
4641 predicated on legacy_p.
4642 (register_size): Delete check against register raw size.
4643
4644 * cris-tdep.c (cris_register_type): Replace
4645 cris_register_virtual_type.
4646 (cris_gdbarch_init): Update, set register_type.
4647
4648 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
4649 * gdbarch.h, gdbarch.c: Re-generate.
4650 * arm-tdep.c (arm_frameless_function_invocation): Delete.
4651 (arm_gdbarch_init) Do not set frameless function invocation.
4652 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
4653 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
4654 * frv-tdep.c (frv_frameless_function_invocation): Delete.
4655 (frv_gdbarch_init): Do not set frameless function invocation.
4656 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4657 * sh-tdep.c (sh_gdbarch_init): Ditto.
4658 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
4659 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4660 * avr-tdep.c (avr_gdbarch_init): Ditto.
4661
4662 * blockframe.c (legacy_frame_chain_valid): Delete function.
4663
4664 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
4665 and pc. Update comments.
4666 (pc_in_dummy_frame): Delete function.
4667 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
4668 use the "id".
4669 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
4670 call_hi, top and pc, use the id.
4671 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
4672
4673 * dummy-frame.c: Include "gdb_string.h".
4674 (generic_save_call_dummy_addr, generic_push_dummy_frame)
4675 (generic_save_dummy_frame_tos): Delete.
4676 (dummy_frame_push): New function, replaces above.
4677 * dummy-frame.h: Update copyright.
4678 (dummy_frame_push): Declare.
4679 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
4680 (generic_save_call_dummy_addr): Delete declarations.
4681 * infcall.c: Include "dummy-frame.h".
4682 (call_function_by_hand): Add locals caller_regcache,
4683 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
4684 with call to frame_save_as_regcache plus cleanup. Delete calls to
4685 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
4686 Move clear_proceed_status to just before the resume, add call to
4687 dummy_frame_push (discard cleanup).
4688 * Makefile.in (infcall.o): Add $(dummy_frame_h).
4689 (dummy-frame.o): Add $(gdb_string_h).
4690
4691 2004-08-01 Andrew Cagney <cagney@gnu.org>
4692
4693 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
4694 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
4695 * dummy-frame.c (find_dummy_frame): Delete.
4696 (struct dummy_frame_cache, dummy_frame_sniffer)
4697 (dummy_frame_prev_register, dummy_frame_this_id)
4698 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
4699 frame unwinder using a dummy_frame_cache.
4700
4701 2004-08-01 Andrew Cagney <cagney@gnu.org>
4702
4703 * frame.h (frame_save_as_regcache): Declare.
4704 * frame.c (frame_save_as_regcache): New function.
4705 (do_frame_read_register): Replace do_frame_unwind_register.
4706 (frame_pop): Use frame_save_as_regcache.
4707 * dummy-frame.c (generic_push_dummy_frame): Use
4708 frame_save_as_regcache.
4709
4710 2004-08-01 Joel Brobecker <brobecker@gnat.com>
4711
4712 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
4713 file as included until we record the first line in the linetable.
4714
4715 2004-08-01 Andrew Cagney <cagney@gnu.org>
4716
4717 * frame.h (deprecated_pop_dummy_frame)
4718 (deprecated_read_register_dummy)
4719 (deprecated_generic_find_dummy_frame): Delete.
4720 * dummy-frame.c (deprecated_generic_find_dummy_frame)
4721 (deprecated_read_register_dummy)
4722 (deprecated_find_dummy_frame_regcache)
4723 (discard_innermost_dummy)
4724 (deprecated_pop_dummy_frame): Delete.
4725 (dummy_frame_this_id): Simplify.
4726 (struct dummy_frame): Delete "fp" and "sp".
4727 (find_dummy_frame): Simplify.
4728 (generic_push_dummy_frame): Do not set "fp" or "sp".
4729 (fprint_dummy_frames): Do not print "fp" and "sp"
4730
4731 2004-08-01 Mark Kettenis <kettenis@gnu.org>
4732
4733 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
4734 (struct i386_insn): New structure.
4735 (i386_match_insn): New function.
4736 (i386_frame_setup_skip_insns): New variable.
4737 (i386_analyze_frame_setup): Change to use i386_match_insn and the
4738 array i386_frame_setup_insns of instructions that should be
4739 skipped inside the frame setup sequence.
4740
4741 2004-08-01 Andrew Cagney <cagney@gnu.org>
4742
4743 * frame.h (deprecated_frame_xmalloc_with_cleanup)
4744 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4745 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4746 * stack.c (frame_info): Delete references to
4747 DEPRECATED_FRAME_INIT_SAVED_REGS and
4748 deprecated_get_frame_saved_regs.
4749 * frame.c (struct frame_info): Delete saved_regs and extra_info.
4750 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
4751 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
4752 (frame_unwind_register_signed)
4753 (frame_unwind_register_unsigned)
4754 (frame_unwind_unsigned_register): Use register_size.
4755 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
4756 (deprecated_frame_xmalloc_with_cleanup)
4757 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4758 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4759
4760 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
4761 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
4762 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
4763 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
4764
4765 * infcall.c (call_function_by_hand): Do not use
4766 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
4767 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
4768 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
4769 DEPRECATED_STACK_ALIGN.
4770
4771 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
4772
4773 Committed by Andrew Cagney.
4774 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
4775
4776 2004-08-01 Andrew Cagney <cagney@gnu.org>
4777
4778 * mips-tdep.c (mips16_frame_cache)
4779 (mips16_frame_this_id, mips16_frame_prev_register)
4780 (mips16_frame_unwind, mips16_frame_sniffer)
4781 (mips16_frame_base_address, mips16_frame_base)
4782 (mips16_frame_base_sniffer, mips32_frame_cache)
4783 (mips32_frame_this_id, mips32_frame_prev_register)
4784 (mips32_frame_unwind, mips32_frame_sniffer)
4785 (mips32_frame_base_address, mips32_frame_base)
4786 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
4787 separate heuristic mips16 and mips32 unwinders.
4788 (mips_stub_frame_cache, mips_stub_frame_this_id)
4789 (mips_stub_frame_prev_register)
4790 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
4791 (mips_stub_frame_base_address, mips_stub_frame_base)
4792 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
4793 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
4794 match true mdebug frames.
4795 (non_heuristic_proc_desc): Add forward declaration.
4796
4797 2004-08-01 Andrew Cagney <cagney@gnu.org>
4798
4799 * config/mips/tm-irix6.h: Delete file.
4800 * config/mips/tm-irix5.h: Delete file.
4801 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
4802 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
4803
4804 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
4805 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
4806 * config/nm-gnu.h (NO_CORE_OPS): Delete.
4807 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
4808 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
4809 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
4810 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
4811 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
4812 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
4813 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
4814 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
4815 (TARGET_SIGNAL_RAW_VALUES): Delete.
4816 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
4817 Delete.
4818 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
4819 (TARGET_HW_WATCH_LIMIT): Delete.
4820 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
4821 * minimon.h: Delete file.
4822
4823 * trad-frame.c (trad_frame_get_this_base)
4824 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
4825 functions.
4826 * trad-frame.h (trad_frame_set_this_base)
4827 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
4828
4829 2004-07-31 Andrew Cagney <cagney@gnu.org>
4830
4831 * trad-frame.c (trad_frame_get_prev_register): Rename
4832 trad_frame_get_prev_register.
4833 * vax-tdep.c (vax_frame_prev_register): Update.
4834 * trad-frame.h: Update.
4835 * trad-frame.c (trad_frame_get_register): Update.
4836 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
4837 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
4838 Update.
4839 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
4840 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
4841 Update.
4842 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
4843 Update.
4844 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
4845 Update.
4846 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
4847 Update.
4848 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
4849 Update.
4850 * s390-tdep.c (s390_frame_prev_register)
4851 (s390_stub_frame_prev_register)
4852 (s390_sigtramp_frame_prev_register): Update.
4853 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
4854 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
4855 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
4856 * m88k-tdep.c (m88k_frame_prev_register)
4857 * m68hc11-tdep.c (m68hc11_frame_prev_register)
4858 * m32r-tdep.c (m32r_frame_prev_register): Update.
4859 * hppa-tdep.c (hppa_frame_prev_register_helper)
4860 * frv-tdep.c (frv_frame_prev_register): Update.
4861 * d10v-tdep.c (d10v_frame_prev_register): Update.
4862 * cris-tdep.c (cris_frame_prev_register): Update.
4863 * avr-tdep.c (avr_frame_prev_register): Update.
4864 * arm-tdep.c (arm_prologue_prev_register)
4865 (arm_sigtramp_prev_register): Update.
4866
4867 2004-07-31 Andrew Cagney <cagney@gnu.org>
4868
4869 * frame.h (legacy_saved_regs_unwind)
4870 (legacy_frame_chain_valid, legacy_frame_p)
4871 (enum frame_type): Delete UNKNOWN_FRAME.
4872 * dummy-frame.c (dummy_frame_this_id): Simplify.
4873 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
4874 * frame.c (struct frame_info): Delete the field "type".
4875 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
4876 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
4877 (legacy_saved_regs_unwind, legacy_frame_p)
4878 (frame_type_from_pc): Delete.
4879 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
4880 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
4881
4882 2004-07-31 Mark Kettenis <kettenis@gnu.org>
4883
4884 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
4885 indentation.
4886
4887 * mips-nat.c: Remove file.
4888 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
4889 (mips-nat.o): Remove dependency.
4890
4891 * infptrace.c: Update copyright year.
4892 (fetch_register): Pass NULL in regcache_raw_supply call instead of
4893 explicitly setting the buffer to all zeroes.
4894
4895 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
4896 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
4897
4898 2004-07-30 Andrew Cagney <cagney@gnu.org>
4899
4900 * GDB 6.2 released from gdb_6_2-branch.
4901
4902 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
4903
4904 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
4905
4906 * exec.c (exec_file_attach):
4907 * nto-tdep.c (nto_find_and_open_solib):
4908 * pa64solib.c (pa64_solib_sizeof_symbol_table):
4909 * solib.c (solib_open):
4910 * somsolib.c (som_solib_sizeof_symbol_table):
4911 * source.c (is_regular_file, openp, open_source_file):
4912 * symfile.c (symfile_bfd_open):
4913 * wince.c (upload_to_device): Differentiate between the search for
4914 binary and source files.
4915
4916 2004-07-30 Andrew Cagney <cagney@gnu.org>
4917
4918 * complaints.c (_initialize_complaints): Pass NULL to
4919 add_setshow_zinteger_cmd for help_doc.
4920 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
4921
4922 2004-07-30 Andrew Cagney <cagney@gnu.org>
4923
4924 Fix PR i18n/761.
4925 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
4926 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
4927 $(PACKAGE).pot and update-po.
4928 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
4929 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
4930 (update-po): New rules.
4931 (localedir): Define using autoconf.
4932 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
4933 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
4934 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
4935 * configure.in: Generate CATALOGS and LINGUAS from contents of
4936 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
4937 * configure: Re-generate.
4938 * po/gdbtext: New file
4939
4940 2004-07-30 Jerome Guitton <guitton@gnat.com>
4941
4942 * MAINTAINERS: Reorder Write After Approval list in alphabetical
4943 order.
4944
4945 2004-07-30 David Lecomber <dsl@sources.redhat.com>
4946
4947 * dwarf2read.c (read_file_scope): Set producer if attribute
4948 present.
4949 (struct dwarf2_cu): Added new member producer.
4950
4951 2004-07-30 Jerome Guitton <guitton@gnat.com>
4952
4953 * inflow.c (kill_command): release file handles in BFD.
4954 * exec.c (exec_file_attach): Ditto.
4955 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
4956
4957 2004-07-29 Andrew Cagney <cagney@gnu.org>
4958
4959 * PROBLEMS (mips-irix): Note that it is broken.
4960
4961 2004-07-29 Andrew Cagney <cagney@gnu.org>
4962
4963 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
4964 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
4965
4966 * config/xm-nbsd.h: Delete file.
4967 * config/arm/xm-nbsd.h: Delete file.
4968 * config/i386/xm-nbsd.h: Delete file.
4969 * config/ns32k/xm-nbsd.h: Delete file.
4970 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
4971 * config/i386/nbsdelf.mh (XM_FILE): Delete.
4972 * config/i386/nbsdaout.mh (XM_FILE): Delete.
4973 * config/arm/nbsdelf.mh (XM_FILE): Delete.
4974 * config/arm/nbsdaout.mh (XM_FILE): Delete.
4975
4976 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
4977 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
4978 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
4979 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
4980 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
4981 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
4982
4983 * config/powerpc/xm-linux.h: Delete empty file.
4984 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
4985 * config/powerpc/linux.mh (XM_FILE): Delete.
4986 * config/m68k/xm-linux.h: Delete empty file.
4987 * config/m68k/linux.mh (XM_FILE): Delete.
4988 * config/ia64/xm-linux.h: Delete empty file.
4989 * config/ia64/linux.mh (XM_FILE): Delete.
4990 * config/arm/xm-linux.h: Delete empty file.
4991 * config/arm/linux.mh (XM_FILE): Delete.
4992
4993 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4994 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
4995 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4996 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
4997 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
4998 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
4999 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
5000 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
5001
5002 * config/m68k/xm-m68k.h: Delete file.
5003 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
5004 copyright.
5005 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
5006 * config/pa/xm-linux.h: Delete empty file.
5007 * config/pa/linux.mh (XM_FILE): Delete.
5008 * config/i386/xm-i386.h: Delete empty file.
5009 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
5010 "i386/xm-i386.h".
5011 * config/i386/obsdaout.mh (XM_FILE): Delete.
5012 * config/i386/obsd64.mh (XM_FILE): Delete.
5013 * config/i386/fbsd64.mh (XM_FILE): Delete.
5014 * config/i386/nto.mh (XM_FILE): Delete.
5015 * config/i386/obsd.mh (XM_FILE): Delete.
5016 * config/i386/linux64.mh (XM_FILE): Delete.
5017 * config/i386/linux.mh (XM_FILE): Delete.
5018 * config/i386/i386sol2.mh (XM_FILE): Delete.
5019 * config/i386/i386gnu.mh (XM_FILE): Delete.
5020 * config/i386/fbsd.mh (XM_FILE): Delete.
5021 * config/i386/nbsd64.mh (XM_FILE): Delete.
5022
5023 2004-07-29 Andrew Cagney <cagney@gnu.org>
5024
5025 * config/pa/xm-linux.h: Do not include "floatformat.h".
5026 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
5027 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
5028 * config/i386/xm-i386.h: Do not include "floatformat.h".
5029 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
5030 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
5031 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
5032 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
5033 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
5034 GDB_HOST_LONG_DOUBLE_FORMAT instead.
5035 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
5036 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
5037 * configure, config.in: Regenerate.
5038 * configure.host (gdb_host_float_format, gdb_host_double_format)
5039 (gdb_host_long_double_format): Set according to the host.
5040
5041 2004-07-29 Andrew Cagney <cagney@gnu.org>
5042
5043 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
5044
5045 2004-07-28 Andrew Cagney <cagney@gnu.org>
5046
5047 * PROBLEMS: Mention threads/1650.
5048 * NEWS: Mention the NPTL fix.
5049
5050 2004-07-28 Andrew Cagney <cagney@gnu.org>
5051
5052 * cli/cli-decode.c (add_setshow_cmd): Delete function.
5053 (add_setshow_cmd_full): Make static.
5054 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
5055 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
5056 * cli/cli-decode.c (add_setshow_filename_cmd)
5057 (add_setshow_string_cmd): New functions.
5058 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
5059 * mips-tdep.c (_initialize_mips_tdep): Update.
5060 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
5061 * cli/cli-logging.c (_initialize_cli_logging): Update.
5062 * complaints.c (_initialize_complaints): Update.
5063 * remote.c (_initialize_remote): Update.
5064
5065 2004-07-28 Andrew Cagney <cagney@gnu.org>
5066
5067 * cli/cli-decode.c (add_setshow_zinteger_cmd)
5068 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
5069 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
5070 print parameters. Make string parameters constant.
5071 * command.h: Update. Update copyright.
5072 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
5073 * observer.c (_initialize_observer): Ditto.
5074 * frame.c (_initialize_frame): Ditto.
5075 * complaints.c (_initialize_complaints): Ditto.
5076 * maint.c (_initialize_maint_cmds): Ditto.
5077 * target.c (initialize_targets): Ditto.
5078 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
5079 * infcall.c (_initialize_infcall): Ditto.
5080 * arm-tdep.c (_initialize_arm_tdep): Ditto.
5081 * m32r-rom.c (_initialize_m32r_rom): Ditto.
5082 * remote-rdi.c (_initialize_remote_rdi): Ditto.
5083 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
5084 * mips-tdep.c (_initialize_mips_tdep): Ditto.
5085
5086 2004-07-28 Andrew Cagney <cagney@gnu.org>
5087
5088 * gdbtypes.c (lookup_primitive_typename): Delete function.
5089 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
5090 * ada-lex.l: Use language_lookup_primitive_type_by_name.
5091 * gdbtypes.c (lookup_typename): Ditto.
5092 * f-exp.y (yylex): Ditto.
5093 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
5094
5095 * scm-lang.c (c_builtin_types): Delete extern declaration.
5096 (scm_language_defn): Replace
5097 string_char_type and primitive_type_vector with
5098 la_language_arch_info.
5099 * jv-lang.c (java_language_defn): Replace
5100 string_char_type and primitive_type_vector with
5101 la_language_arch_info.
5102 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
5103 c_builtin_types in comment.
5104 * c-lang.h (struct language_arch_info): Declare opaque.
5105 (c_language_arch_info): Declare.
5106 (c_builtin_types): Delete declaration.
5107 * c-lang.c (c_language_arch_info): Set string_char_type to
5108 builtin_char, not builtin_true_char. Make global.
5109 (c_builtin_types): Delete array.
5110 (asm_language_defn, minimal_language_defn): Replace
5111 string_char_type and primitive_type_vector with
5112 la_language_arch_info.
5113
5114 2004-07-28 Andrew Cagney <cagney@gnu.org>
5115
5116 * gdbtypes.h (struct builtin_type): Rename true_char to
5117 builtin_true_char.
5118 * gdbtypes.c (gdbtypes_post_init): Update.
5119 * c-lang.c (arch_info): New function.
5120 (enum c_primitive_types): New enum.
5121 (c_language_defn): Instead of string_char_type and
5122 primitive_type_vector set la_language_arch_info.
5123
5124 2004-07-28 Andrew Cagney <cagney@gnu.org>
5125
5126 * language.h (struct language_arch_info): Fix typo
5127 s/primative/primitive/.
5128 * gdbtypes.c (lookup_primitive_typename): Ditto.
5129 * language.c (language_lookup_primitive_type_by_name)
5130 (unknown_language_arch_info): Ditto.
5131
5132 2004-07-27 Andrew Cagney <cagney@gnu.org>
5133
5134 * defs.h (enum language): Add nr_languages.
5135 * language.h (struct language_arch_info): Define.
5136 (struct language_defn): Add la_language_arch_info.
5137 (language_lookup_primative_type_by_name): Declare.
5138 (language_string_char_type): Declare.
5139 * language.c (_initialize_language, language_gdbarch_post_init)
5140 (struct language_gdbarch, language_gdbarch_data): Implement
5141 per-architecture language information.
5142 (unknown_language_arch_info, language_string_char_type)
5143 (language_lookup_primative_type_by_name): New functions.
5144 (unknown_language_defn, auto_language_defn)
5145 (local_language_defn): Set la_language_arch_info to
5146 unknown_language_arch_info.
5147 (unknown_builtin_types): Delete.
5148 * gdbtypes.c (lookup_primitive_typename): Use
5149 language_lookup_primative_type_by_name.
5150 (create_string_type): Use language_string_char_type.
5151 * values.c (value_from_string): Use language_string_char_type.
5152 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
5153 * p-lang.c (pascal_language_defn): Ditto.
5154 * m2-lang.c (m2_language_defn): Ditto.
5155 * jv-lang.c (java_language_defn): Ditto.
5156 * objc-lang.c (objc_language_defn): Ditto.
5157 * f-lang.c (f_language_defn): Ditto.
5158 * c-lang.c (c_language_defn, cplus_language_defn)
5159 (asm_language_defn, minimal_language_defn): Ditto.
5160
5161 2004-07-27 Andrew Cagney <cagney@gnu.org>
5162
5163 * gdbtypes.h (struct builtin_type): Declare.
5164 (builtin_type): Declare.
5165 * d10v-tdep.c (d10v_register_type): Use builtin_type.
5166 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
5167 (gdbtypes_post_init): New function.
5168 (builtin_type): New function.
5169
5170 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
5171
5172 * remote-m32r-sdi.c: Fix breakpoint bug.
5173 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
5174 recv_char_data, recv_long_data): New functions to replace communication
5175 sequences.
5176
5177 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
5178
5179 Document PR threads/1650.
5180 * PROBLEMS (Threads): Document problem with many threads
5181
5182 2004-07-26 Andrew Cagney <cagney@gnu.org>
5183
5184 * gdb-mi.el: Move from here ...
5185 * mi/gdb-mi.el: ... to here.
5186
5187 2004-07-26 Andrew Cagney <cagney@gnu.org>
5188
5189 Problem reported by Ashley Pittman <ashley@quadrics.com>.
5190 * main.c (captured_main): When in batch mode always detach.
5191
5192 2004-07-26 Andrew Cagney <cagney@gnu.org>
5193
5194 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
5195 and h8300 as broken.
5196 * NEWS: END-OF-LIFE frame compatibility module.
5197 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
5198 specific comments.
5199
5200 2004-07-26 Andrew Cagney <cagney@gnu.org>
5201
5202 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
5203 * xcoffsolib.c (_initialize_xcoffsolib): Update.
5204 * wince.c (_initialize_wince): Update.
5205 * win32-nat.c (_initialize_win32_nat): Update.
5206 * varobj.c (_initialize_varobj): Update.
5207 * valops.c (_initialize_valops): Update.
5208 * utils.c (initialize_utils, initialize_utils): Update.
5209 * tui/tui-win.c (_initialize_tui_win): Update.
5210 * top.c (init_main): Update.
5211 * symfile.c (_initialize_symfile): Update.
5212 * source.c (_initialize_source): Update.
5213 * somsolib.c (_initialize_som_solib): Update.
5214 * solib.c (_initialize_solib): Update.
5215 * solib-frv.c (_initialize_frv_solib): Update.
5216 * serial.c (_initialize_serial): Update.
5217 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
5218 * remote.c (_initialize_remote, _initialize_remote): Update.
5219 * remote-vx.c (_initialize_vx): Update.
5220 * remote-utils.c (_initialize_sr_support): Update.
5221 * remote-sds.c (_initialize_remote_sds): Update.
5222 * remote-mips.c (_initialize_remote_mips): Update.
5223 * remote-e7000.c (_initialize_remote_e7000): Update.
5224 * proc-api.c (_initialize_proc_api): Update.
5225 * printcmd.c: Update.
5226 * parse.c (_initialize_parse): Update.
5227 * pa64solib.c (_initialize_pa64_solib): Update.
5228 * p-valprint.c (_initialize_pascal_valprint): Update.
5229 * monitor.c (_initialize_remote_monitors): Update.
5230 * mips-tdep.c (_initialize_mips_tdep): Update.
5231 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5232 * maint.c (_initialize_maint_cmds): Update.
5233 * lin-lwp.c (_initialize_lin_lwp): Update.
5234 * language.c (_initialize_language): Update.
5235 * kod.c (_initialize_kod): Update.
5236 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
5237 * i386-tdep.c (_initialize_i386_tdep): Update.
5238 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
5239 * gdbarch.sh: Update.
5240 * gdbarch.c: Re-generate.
5241 * gdb-events.sh: Update.
5242 * gdb-events.c: Re-generate.
5243 * frame.c (_initialize_frame): Update.
5244 * exec.c: Update.
5245 * demangle.c (_initialize_demangler): Update.
5246 * dcache.c (_initialize_dcache): Update.
5247 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
5248 * cp-valprint.c (_initialize_cp_valprint): Update.
5249 * corefile.c (_initialize_core): Update.
5250 * command.h: Update.
5251 * cli/cli-decode.h: Update.
5252 * cli/cli-cmds.c (init_cli_cmds): Update.
5253 * charset.c (_initialize_charset): Update.
5254 * breakpoint.c (_initialize_breakpoint): Update.
5255 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
5256 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5257 * aix-thread.c (_initialize_aix_thread): Update.
5258
5259 2004-07-24 Mark Kettenis <kettenis@gnu.org>
5260
5261 Partial fix for PR backtrace/1718.
5262 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
5263 that GCC migrates into the prolugue. Don't handle any
5264 instructions that clobber %ebx.
5265
5266 2004-07-23 Andrew Cagney <cagney@gnu.org>
5267
5268 Use regcache_raw_collect instead of regcache_collect.
5269 * regcache.h (regcache_collect): Delete declaration.
5270 * regcache.c (regcache_colect): Delete function.
5271 * win32-nat.c (do_child_store_inferior_registers): Update.
5272 * sol-thread.c (sol_thread_store_registers): Update.
5273 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
5274 * rs6000-nat.c (store_register): Update.
5275 * remote.c (store_register_using_P, remote_store_registers): Update.
5276 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
5277 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
5278 (fill_vrregset, store_spe_registers, fill_gregset)
5279 (fill_gregset): Update.
5280 * nto-procfs.c (procfs_store_registers): Update.
5281 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
5282 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
5283 * m68klinux-nat.c (store_register, fill_gregset): Update.
5284 * m68k-tdep.c (fill_gregset): Update.
5285 * infptrace.c (store_register): Update.
5286 * i386-nto-tdep.c (i386nto_regset_fill): Update.
5287 * i386-linux-nat.c (store_register, fill_gregset): Update.
5288 * hppa-linux-nat.c (fill_gregset): Update.
5289 * go32-nat.c (store_register): Update.
5290 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
5291 (store_fp_regs): Update.
5292 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
5293 (store_nwfpe_extended, store_fpregister, store_fpregs)
5294 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
5295 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
5296 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
5297 (store_regs_user_thread, store_regs_kernel_thread): Update.
5298
5299 2004-07-24 Mark Kettenis <kettenis@gnu.org>
5300
5301 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
5302 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
5303 encoding.
5304 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
5305 member of `struct comp_unit'.
5306
5307 2004-07-23 Andrew Cagney <cagney@gnu.org>
5308
5309 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
5310 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
5311
5312 2004-07-23 Martin Hunt <hunt@redhat.com>
5313 Kevin Buettner <kevinb@redhat.com>
5314
5315 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
5316 alignment was being added to the offset instead of multiplied.
5317
5318 2004-07-23 Mark Kettenis <kettenis@gnu.org>
5319
5320 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
5321 changed signal trampoline in OpenBSD 3.5-current.
5322
5323 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
5324 <machine/pcb.h> and "bsd-kvm.h".
5325 (sparc64nbsd_supply_pcb): New function.
5326 (_initialize_sparc64nbsd_nat): Renamed from
5327 _initialize_sparcnbsd_nat. Enable libkvm interface.
5328 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
5329 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
5330 (LOADLIBES): New variable.
5331
5332 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
5333
5334 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
5335
5336 2004-07-21 Andrew Cagney <cagney@gnu.org>
5337
5338 Use regcache_raw_supply instead of supply_register.
5339 * regcache.h (supply_register): Delete declaration.
5340 * regcache.c (supply_register): Delete function.
5341 * wince.c (do_child_fetch_inferior_registers): Update.
5342 * win32-nat.c (do_child_fetch_inferior_registers)
5343 (fetch_elf_core_registers): Update.
5344 * v850ice.c (v850ice_fetch_registers): Update.
5345 * thread-db.c (thread_db_store_registers): Update.
5346 * sol-thread.c (sol_thread_store_registers): Update.
5347 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
5348 * rs6000-nat.c (fetch_register): Update.
5349 * rom68k-rom.c (rom68k_supply_one_register): Update.
5350 * remote.c (remote_wait, remote_async_wait): Update.
5351 * remote-st.c (get_hex_regs): Update.
5352 * remote-sim.c (gdbsim_fetch_register): Update.
5353 * remote-sds.c (sds_fetch_registers): Update.
5354 * remote-rdp.c (remote_rdp_fetch_register): Update.
5355 * remote-rdi.c (arm_rdi_fetch_registers): Update.
5356 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
5357 * remote-m32r-sdi.c (m32r_fetch_register): Update.
5358 * remote-hms.c (init_hms_cmds): Update.
5359 * remote-est.c (init_est_cmds): Update.
5360 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
5361 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
5362 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
5363 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
5364 (fetch_register, supply_vrregset, supply_vrregset)
5365 (fetch_spe_registers): Update.
5366 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
5367 * monitor.c (monitor_supply_register): Update.
5368 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
5369 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
5370 (mipsnbsd_supply_fpreg): Update.
5371 * mips-nat.c (fetch_inferior_registers)
5372 (fetch_core_registers): Update.
5373 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
5374 (supply_fpregset, mips64_supply_gregset)
5375 (mips64_supply_fpregset): Update.
5376 * m68klinux-nat.c (fetch_register, supply_gregset)
5377 (supply_fpregset): Update.
5378 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
5379 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
5380 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
5381 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
5382 * infptrace.c (fetch_register): Update.
5383 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
5384 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
5385 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
5386 (gnu_fetch_registers, gnu_store_registers): Update.
5387 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
5388 * i386-linux-nat.c (fetch_register, supply_gregset)
5389 (dummy_sse_values): Update.
5390 * hpux-thread.c (hpux_thread_fetch_registers): Update.
5391 * hppah-nat.c (fetch_register): Update.
5392 * hppa-linux-nat.c (fetch_register, supply_gregset)
5393 (supply_fpregset): Update.
5394 * go32-nat.c (fetch_register): Update.
5395 * dve3900-rom.c (fetch_bitmapped_register)
5396 (_initialize_r3900_rom): Update.
5397 * cris-tdep.c (supply_gregset): Update.
5398 * abug-rom.c (init_abug_cmds): Update.
5399 * core-aout.c (fetch_core_registers): Update.
5400 * armnbsd-nat.c (supply_gregset, supply_fparegset)
5401 (fetch_register, fetch_fp_register): Update.
5402 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
5403 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
5404 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
5405 * alphanbsd-tdep.c (fetch_core_registers): Update.
5406 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
5407 * alpha-nat.c (fetch_osf_core_registers)
5408 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
5409 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
5410 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
5411
5412 2004-07-21 Andrew Cagney <cagney@gnu.org>
5413
5414 * PROBLEMS: Mention breakpoints/1702.
5415 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
5416 that is known to work.
5417
5418 2004-07-21 Andrew Cagney <cagney@gnu.org>
5419
5420 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
5421 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
5422 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
5423 (handle_inferior_event): Wrap call to deprecated
5424 IGNORE_HELPER_CALL in #ifdef.
5425 * config/mips/tm-nbsd.h: Update.
5426
5427 2004-07-20 Jim Blandy <jimb@redhat.com>
5428
5429 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
5430 bfd_mach_ppc has no segment registers.
5431
5432 Include PowerPC SPR numbers for special-purpose registers.
5433 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
5434 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
5435 new member in initializer.
5436 (S, S4, SN4, S64): New macros for defining special-purpose
5437 registers.
5438 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
5439 registers_403, registers_403GC, registers_505, registers_860,
5440 registers_601, registers_602, registers_603, registers_604,
5441 registers_750, registers_e500): Use them.
5442
5443 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
5444 replace references with expression used to initialize variable.
5445
5446 2004-07-20 Andrew Cagney <cagney@gnu.org>
5447
5448 * breakpoint.c (deprecated_read_memory_nobpt): Rename
5449 read_memory_nobpt.
5450 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
5451 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
5452 (s390_sigtramp_frame_sniffer): Update.
5453 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
5454 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
5455 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
5456 (mips32_fetch_instruction): Update.
5457 * mcore-tdep.c (get_insn): Update.
5458 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
5459 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
5460 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
5461 * i386-linux-tdep.c (i386_linux_sigtramp_start)
5462 (i386_linux_rt_sigtramp_start): Update.
5463 * i386-linux-nat.c (child_resume): Update.
5464 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
5465 * hppa-linux-tdep.c (insns_match_pattern): Update.
5466 * gdbcore.h: Update.
5467 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
5468 * frame.c (safe_frame_unwind_memory): Update.
5469 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
5470 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
5471 * alpha-tdep.c (alpha_read_insn): Update.
5472
5473 2004-07-20 Andrew Cagney <cagney@gnu.org>
5474
5475 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
5476 containing both bytes and mask. Add "frame_type".
5477 * tramp-frame.c (tramp_frame_start): Update.
5478 (tramp_frame_prepend_unwinder): Update.
5479 * mips-linux-tdep.c (mips_linux_o32_sigframe)
5480 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
5481 (mips_linux_n64_rt_sigframe): Update. Make "static const".
5482 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
5483
5484 2004-07-19 Eli Zaretskii <eliz@gnu.org>
5485
5486 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
5487 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
5488 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
5489 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
5490
5491 2004-07-17 Andrew Cagney <cagney@gnu.org>
5492
5493 * NEWS, PROBLEMS: Update for 6.2.
5494
5495 * README: Update to 6.2.
5496
5497 * utils.c (xvasprintf): Call xstrvprintf.
5498
5499 * parse.c: Update copyright.
5500 (null_post_parser): Eliminate ARGSUSED.
5501
5502 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
5503 * tui/tui-win.c (tui_get_cmd_list): Ditto.
5504 * symfile-mem.c (_initialize_symfile_mem): Ditto.
5505
5506 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
5507 * ppc-linux-nat.c: Use "Linux kernel".
5508 * hppa-linux-tdep.c: Use GNU/Linux.
5509 * hppa-linux-nat.c: Use GNU/Linux.
5510 * dwarfread.c: Add [sic] to use of Linux.
5511
5512 * hppa-linux-nat.c: Do not include <string.h>.
5513 (supply_fpregset): Remove "register" attribute.
5514
5515 * solib-frv.c (fetch_loadmap): Use xfree, not free.
5516
5517 2004-07-17 Mark Kettenis <kettenis@gnu.org>
5518
5519 * configure.in: Define _MSE_INT_H on Solaris 9 too.
5520 * configure, config.in: Regenerated.
5521
5522 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5523 "bsd-kvm.h".
5524 (vaxbsd_supply_pcb): New function.
5525 (_initialize_vaxbsd_nat): New prototype and function.
5526 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
5527 solib-sunos.o.
5528 (LOADLIBES): New variable.
5529 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5530 (LOADLIBES): New variable.
5531 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5532 (LOADLIBES): New variable.
5533 * Makefile.in (vaxbsd-nat.o): Update dependencies.
5534
5535 2004-07-16 Andrew Cagney <cagney@gnu.org>
5536
5537 * defs.h (event_loop_p): Replace variable declaration with macro,
5538 always 1.
5539 * main.c (captured_main): Delete options "-async" and "-noasync".
5540 (event_loop_p): Delete variable.
5541 * NEWS: Mention that "-async" and "-noasync" were removed.
5542
5543 2004-07-16 Andrew Cagney <cagney@gnu.org>
5544
5545 * remote-m32r-sdi.c: Re-indent.
5546
5547 2004-07-16 Jim Blandy <jimb@redhat.com>
5548
5549 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
5550 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
5551 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
5552 missing MPC823 SPRs.
5553 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
5554 incorrect. (This was corrected in GDB's register name tables on
5555 2004-07-14.)
5556
5557 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
5558 should be "esasrr" ("ESA Save and Restore Register").
5559
5560 2004-07-16 Andrew Cagney <cagney@gnu.org>
5561
5562 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
5563 calls, no longer applicable. Update comments and rename parameter
5564 "step_frame" to "return_frame".
5565
5566 2004-07-16 Andrew Cagney <cagney@gnu.org>
5567
5568 * frame.c (fprint_field): New function.
5569 (fprint_frame_id): Use fprint_field.
5570
5571 2004-07-15 Joel Brobecker <brobecker@gnat.com>
5572
5573 * ada-lang.c (ada_language_defn): Remove commented out code.
5574
5575 2004-07-15 Jim Blandy <jimb@redhat.com>
5576
5577 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
5578 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
5579
5580 2004-07-14 Jim Blandy <jimb@redhat.com>
5581
5582 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
5583
5584 * ppc-tdep.h (ppc_num_vrs): New enum constant.
5585
5586 * ppc-tdep.h (ppc_num_srs): New enum constant.
5587
5588 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
5589 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
5590 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
5591 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
5592 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
5593 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
5594 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
5595 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
5596 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
5597 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
5598 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
5599 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
5600 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
5601 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
5602 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
5603 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
5604 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
5605 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
5606 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
5607 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
5608 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
5609 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
5610 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
5611 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
5612 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
5613 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
5614 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
5615 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
5616 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
5617 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
5618 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
5619 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
5620 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
5621 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
5622 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
5623 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
5624 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
5625 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
5626 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
5627 special-purpose register numbers.
5628
5629 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
5630 manual mentions 'md_twb', but many mention 'm_twb', and at that
5631 point in the register list.)
5632
5633 2004-07-14 Andrew Cagney <cagney@gnu.org>
5634
5635 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
5636 instead of "internal-error".
5637
5638 2004-07-10 Joel Brobecker <brobecker@gnat.com>
5639
5640 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
5641 that was inserted inside a comment.
5642
5643 2004-07-10 Randolph Chung <tausq@debian.org>
5644
5645 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
5646 function.
5647 (hppa_hpux_push_dummy_code): New function.
5648 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
5649 Set find_global_pointer method.
5650
5651 2004-07-10 Mark Kettenis <kettenis@gnu.org>
5652
5653 * NEWS: Mention BSD libkvm interface.
5654
5655 2004-07-10 Michael Snyder <msnyder@redhat.com>
5656
5657 * symfile.c (generic_load): Comment typo.
5658 * stack.c (get_selected_block): Ditto.
5659 * regcache.c (regcache_cooked_read): Ditto.
5660 * monitor.c (monitor_debug): Ditto.
5661 * mips-tdep.c (mips_read_pc): Ditto.
5662 * i386-linux-nat.c (ps_get_thread_area): Ditto.
5663 * gdb_mbuild.sh: Ditto.
5664 * gdbarch.sh: Ditto.
5665 * gdbarch.h: Ditto.
5666
5667 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
5668
5669 * ada-tasks.c: Remove file.
5670
5671 Remove ARI problems:
5672
5673 * ada-exp.y (write_var_from_sym): Reformat to put operator at
5674 beginning of line.
5675
5676 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
5677 Add comment.
5678 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
5679 (MIN_OF_SIZE): Rename min_of_size. Add comment.
5680 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
5681 (UMIN_OF_SIZE): Remove.
5682 (max_of_type): New function to replace orphan macro in gdbtypes.h
5683 (min_of_type): Ditto.
5684 (discrete_type_high_bound): Use max_of_type.
5685 (discrete_type_low_bound): Use min_of_type.
5686 (possible_user_operator_p): Move operator to beginning of line.
5687 (ada_is_variant_part): Ditto.
5688 (ensure_lval): Rewrite to avoid deprecated operations.
5689 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
5690 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
5691 (ada_enum_name): Remove assignments in 'if' statements.
5692 (build_ada_types): Add gdbarch parameter.
5693 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
5694 with gdbarch_data_register_post_init.
5695 Use add_setshow_uinteger_cmd rather than add_set_cmd and
5696 add_show_from_set.
5697
5698 * ada-valprint.c (inspect_it): Remove declaration.
5699 (repeat_count_threshold): Remove declaration.
5700 (ada_print_floating): Remove assignments in 'if' statements.
5701 (print_str): Move operator to beginning of line.
5702
5703 2004-07-08 Jim Blandy <jimb@redhat.com>
5704
5705 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
5706
5707 2004-07-08 Bob Rossi <bob@brasko.net>
5708
5709 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
5710
5711 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
5712
5713 * language.h (struct_language_defn): Add new function pointer:
5714 la_class_name_from_physname. Also add new prototype for
5715 language_class_name_from_physname.
5716 * language.c (language_class_name_from_physname): New function.
5717 (unk_lang_class_name): Ditto.
5718 (unknown_language_defn, auto_language_defn): Change
5719 to add unk_lang_class_name function pointer for
5720 la_class_name_from_physname.
5721 (local_language_defn): Ditto.
5722 * dwarf2read.c (guess_structure_name): Change to call
5723 language_class_name_from_physname.
5724 (determine_class_name): Ditto.
5725 * cp-support.c (class_name_from_physname): Renamed.
5726 (cp_class_name_from_physname): New name of function.
5727 * cp-support.h: Ditto.
5728 * c-lang.c (c_language_defn): Change to add NULL
5729 for class_name_from_physname function pointer.
5730 (cplus_language_defn): Change to add cp_class_name_from_physname.
5731 * jv-lang.c (java_class_name_physname): New function.
5732 (java_find_last_component): New static routine.
5733 (java_language_defn): Add java_class_name_from_physname pointer.
5734 * ada-lang.c (ada_language_defn): Change to add NULL
5735 for class_name_from_physname function pointer.
5736 * f-lang.c (f_language_defn): Ditto.
5737 * m2-lang.c (m2_language_defn): Ditto.
5738 * objc-lang.c (objc_language_defn): Ditto.
5739 * p-lang.c (pascal_language_defn): Ditto.
5740 * scm-lang.c (scm_language_defn): Ditto.
5741
5742 2004-07-06 Andrew Cagney <cagney@gnu.org>
5743
5744 Patch from Bart Robinson.
5745 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
5746 (O_LARGEFILE): Define to 0, if not defined.
5747
5748 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5749
5750 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
5751 <machine/pcb.h> and "bsd-kvm.h".
5752 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
5753 (m68kbsd_supply_pcb): New function.
5754 (_initialize_m68kbsd_nat): New prototype and function.
5755 * Makefile.in (m68kbsd-nat.o): Update dependencies.
5756 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5757 (LOADLIBES): New variable.
5758 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5759 (LOADLIBES): New variable.
5760
5761 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
5762
5763 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5764
5765 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
5766 <sys/proc.h>.
5767 (bsd_kvm_cmdlist): New variable.
5768 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
5769 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
5770 command and "kvm proc" command.
5771 * Makefile.in (bsd-kvm.o): Update dependencies.
5772
5773 2004-07-02 Mark Kettenis <kettenis@gnu.org>
5774
5775 * osabi.c: Update copyright year.
5776 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
5777 notes if EI_OSABI is set to ELFOSABI_HPUX.
5778
5779 2004-07-01 Michael Snyder <msnyder@redhat.com>
5780
5781 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
5782 that seems to have gotten whacked out of line.
5783
5784 2004-07-01 Mark Kettenis <kettenis@gnu.org>
5785
5786 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
5787 code.
5788
5789 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5790
5791 * ada-lang.c (decode_packed_array): Minor change to comment.
5792 (ada_value_slice_ptr): New function.
5793 (ada_value_slice): New function.
5794 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
5795 test. Don't know why it is there.
5796 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
5797 to avoid dereferencing huge arrays from which one is slicing.
5798 (empty_array): Correct to return an array rather than
5799 a subrange value.
5800 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
5801 on empty arrays (let'em use 'FIRST instead).
5802
5803 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5804
5805 Address complaints from gdb_ari.sh:
5806
5807 * ada-exp.y: Include gdb_string.h rather than string.h.
5808 (convert_char_literal): Reformat declaration.
5809 * ada-lang.h: Include opaque struct declaration for struct frame_info.
5810 * ada-lex.l: Change use of free to xfree (the macro would do so
5811 anyway, but this is harmless).
5812 Include gdb_string.h rather than string.h.
5813 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
5814
5815 * ada-lang.c (parse): Remove K&Rism in parameter list.
5816 (is_name_suffix): Correct Linux => GNU/Linux in comment.
5817
5818 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5819
5820 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
5821 dead code.
5822
5823 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5824
5825 * alphabsd-nat.c: Update copyright year.
5826 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
5827
5828 2004-06-29 Joel Brobecker <brobecker@gnat.com>
5829
5830 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
5831 (i386_cygwin_in_solib_call_trampoline): New function.
5832 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
5833 and skip_trampoline_code gdbarch methods.
5834
5835 2004-06-29 Jim Blandy <jimb@redhat.com>
5836
5837 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
5838 name actually used in the dependency lists.
5839
5840 2004-06-29 Randolph Chung <tausq@debian.org>
5841
5842 * NEWS (New native configurations): Mention GNU/Linux/hppa.
5843
5844 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5845
5846 * win32-nat.c (child_pid_to_exec_file): New function.
5847 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
5848 functionality.
5849
5850 2004-06-28 Andrew Cagney <cagney@gnu.org>
5851
5852 * defs.h (xstrvprintf): Declare.
5853 * utils.c (xstrvprintf): New function.
5854 (internal_vproblem, xstrprintf, xasprintf)
5855 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
5856 * serial.c (serial_printf): Ditto.
5857 * complaints.c (vcomplaint): Ditto.
5858
5859 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5860
5861 * infcmd.c (attach_command): Move call to target_terminal_inferior
5862 behind loading symbol table.
5863
5864 2004-06-28 Andrew Cagney <cagney@gnu.org>
5865
5866 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
5867 change - add back extern deprecated_ui_loop_hook declaration.
5868
5869 2004-06-28 Andrew Cagney <cagney@gnu.org>
5870
5871 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
5872 xstrprintf.
5873 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
5874 (c_value_of_variable): Ditto.
5875 * utils.c (internal_vproblem): Ditto.
5876 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
5877 * remote.c (add_packet_config_cmd): Ditto.
5878 * remote-rdp.c (rdp_set_command_line): Ditto.
5879 * regcache.c (regcache_dump): Ditto.
5880 * frv-tdep.c (new_variant, new_variant): Ditto.
5881 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
5882 (fbsd_find_memory_regions): Ditto.
5883 * breakpoint.c (create_thread_event_breakpoint)
5884 (create_breakpoints): Ditto.
5885 * aix-thread.c (aix_thread_pid_to_str): Ditto.
5886 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
5887
5888 2004-06-28 Joel Brobecker <brobecker@gnat.com>
5889
5890 * ada-lang.c: Re-indent file, with some massaging to help indent
5891 a bit when the result is otherwise really too ugly.
5892
5893 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5894
5895 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
5896 code_addr_p and special_addr_p to 'unsigned int'.
5897
5898 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5899
5900 * i386v4-nat.c: Update copyright year and tweak comment.
5901 (regmap): Remove trailing comma.
5902 (supply_gregset): Rename local variable i to regnum. Call
5903 regcache_raw_supply instead of supply_register.
5904 (fill_gregset): Rename argument regno to regnum. Call
5905 regcache_raw_collect instead of regcache_collect.
5906
5907 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5908
5909 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
5910 and special_addr_p.
5911 (frame_id_build, frame_id_build_special): Update comments.
5912 (frame_id_build_wild): New prototype.
5913 * frame.c (frame_id_build, frame_id_build_special): Fill in new
5914 struct frame_id fields.
5915 (frame_id_build_wild): New function.
5916 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
5917
5918 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5919
5920 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
5921 hppabsd-tdep.c.
5922
5923 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5924
5925 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
5926
5927 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5928
5929 * ada-lang.c: Re-indent file.
5930
5931 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5932
5933 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
5934 (no_symtab_msg): Likewise.
5935
5936 2004-06-27 Andreas Schwab <schwab@suse.de>
5937
5938 * source.c: Fix whitespace.
5939
5940 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5941
5942 * configure.in: Include <sys/param.h> for td_pcb test.
5943 * configure: Regenerated.
5944
5945 * i386nbsd-nat.c: New file.
5946 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
5947 i386obsd-nat.c and i386obsd-tdep.c.
5948 (i386nbsd-nat.o): New dependency.
5949 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
5950 bsd-kvm.o.
5951 (LOADLIBES): New variable.
5952 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
5953 bsd-kvm.o.
5954 (LOADLIBES): New variable.
5955
5956 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
5957 (LOADLIBES): New variable.
5958
5959 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
5960 fetching from BSD_KVM_PADDR. Correctly lookup address for
5961 "_thread0".
5962
5963 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
5964 "bsd-kvm.h".
5965 (amd64fbsd_supply_pcb): New funcion.
5966 (_initialize_amd64fbsd_nat): Enable libkvm interface.
5967
5968 2004-06-27 <david@streamline-computing.com>
5969
5970 Partial fix for PR cli/1056.
5971 * valarith.c: Check for zero in division and remainder
5972 evaluation.
5973
5974 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5975
5976 * i387-tdep.c: Remove excessive whitespace.
5977
5978 2004-06-26 Andrew Cagney <cagney@gnu.org>
5979
5980 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
5981 * gdb-events.h, gdb-events.c: Re-generate.
5982 * tui/tui-hooks.c (tui_install_hooks): Update.
5983 (tui_remove_hooks): Update.
5984 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
5985
5986 2004-06-26 Mark Kettenis <kettenis@gnu.org>
5987
5988 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
5989 (gregset_t, fpregset_t): Remove typedefs.
5990 (REG_OFFSET): Rename argument.
5991 (amd64bsd_r_reg_offset): Rename from reg_offset.
5992 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
5993 Remove functions.
5994 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
5995 of reg_offset.
5996 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
5997
5998 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
5999
6000 * vax-tdep.c: Tweak comment.
6001
6002 Add OpenBSD/hppa support.
6003 * NEWS (New native configurations): Mention OpenBSD/hppa.
6004 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
6005 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
6006 files.
6007 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
6008 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
6009 * configure.host: Add hppa*-*-openbsd*.
6010 * configure.tgt: Add hppa*-*-openbsd*.
6011
6012 2004-06-25 Andrew Cagney <cagney@gnu.org>
6013
6014 * defs.h (deprecated_ui_loop_hook): Deprecated.
6015 * wince.c (child_wait): Update.
6016 * win32-nat.c (child_wait): Update.
6017 * v850ice.c (v850ice_wait): Update.
6018 * top.c (deprecated_ui_loop_hook): Update.
6019 * serial.h: Update.
6020 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
6021 (do_unix_readchar): Update.
6022 * ser-tcp.c (net_open): Update.
6023 * remote-sim.c (gdb_os_poll_quit): Update.
6024 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
6025
6026 2004-06-24 Andrew Cagney <cagney@gnu.org>
6027
6028 * defs.h (deprecated_pre_add_symbol_hook)
6029 (deprecated_post_add_symbol_hook): Deprecated.
6030 * symfile.c (symbol_file_add_with_addrs_or_offsets)
6031 (symbol_file_add_with_addrs_or_offsets): Update references.
6032
6033 2004-06-24 Andrew Cagney <cagney@gnu.org>
6034
6035 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
6036 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
6037 * wince.c (ui_loop_hook): Delete extern declaration.
6038 * win32-nat.c (ui_loop_hook): Delete extern declaration..
6039 * v850ice.c (ui_loop_hook): Delete extern declaration..
6040 * ser-unix.c (ui_loop_hook): Delete extern declaration..
6041 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
6042 * remote-sim.c (ui_loop_hook): Delete extern declaration..
6043 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
6044 ui_loop_hook declaration.
6045
6046 2004-06-24 Andrew Cagney <cagney@gnu.org>
6047
6048 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
6049 entry_func_highpc fields.
6050 * objfiles.c (init_entry_point_info): Do not clear
6051 entry_func_lowpc and entry_func_highpc.
6052 (objfile_relocate): Do not relocate entry_func_lowpc and
6053 entry_func_highpc.
6054 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
6055 entry_func_highpc.
6056 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
6057 entry_func_highpc.
6058 * blockframe.c (legacy_frame_chain_valid): Replace tests against
6059 entry_func_lowpc and entry_func_highpc with call to
6060 inside_entry_func.
6061
6062 2004-06-24 Mark Kettenis <kettenis@gnu.org>
6063
6064 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
6065 quad-precision floating point arguments in registers.
6066
6067 2004-06-24 Mark Kettenis <kettenis@gnu.org>
6068
6069 From Michael Mueller <m.mueller99@kay-mueller.de>:
6070 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
6071 account.
6072
6073 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
6074
6075 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
6076 to -1.
6077 * breakpoint.c (bpstat_stop_status): Move check for ignoring
6078 untriggered watchpoints to a separate if clause. Update function
6079 comment regarding STOPPED_BY_WATCHPOINT argument.
6080
6081 2004-06-22 Jim Blandy <jimb@redhat.com>
6082
6083 * gdbarch.sh: Doc fix.
6084
6085 2004-06-21 Martin Hunt <hunt@redhat.com>
6086 Kevin Buettner <kevinb@redhat.com>
6087
6088 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
6089 * mips-tdep.h (MIPS_SP_REGNUM): Define.
6090 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
6091 to set_gdbarch_sp_regnum(). Use cooked register number.
6092 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
6093
6094 2004-06-21 Andrew Cagney <cagney@gnu.org>
6095
6096 * gdbarch.sh: When the macro field is empty, do not generate a
6097 macro definition. When the macro field is "=", generate the macro
6098 name from the upper-case function name.
6099 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
6100 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
6101 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
6102 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
6103 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
6104 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
6105 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
6106 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
6107 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
6108 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
6109 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
6110 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
6111 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
6112 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
6113 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
6114 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
6115 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
6116 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
6117 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
6118 (DEPRECATED_USE_STRUCT_CONVENTION)
6119 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6120 (DEPRECATED_FRAME_INIT_SAVED_REGS)
6121 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
6122 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
6123 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
6124 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
6125 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
6126 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
6127 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
6128 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
6129 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
6130 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
6131 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
6132 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
6133 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
6134 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
6135 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
6136 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
6137
6138 2004-06-21 Andrew Cagney <cagney@gnu.org>
6139
6140 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
6141 macro name, and the function rather than macro value. Only wrap
6142 macro print statements in #ifdef. Move format logic to where it
6143 is needed.
6144 * gdbarch.c: Re-generate.
6145
6146 * gdbarch.sh (read): Delete "print_p" and "description", add
6147 "garbage_at_eol". Check for non-empty garbage at end-of-line.
6148 Delete references to print_p.
6149 (TARGET_ARCHITECTURE): Delete print predicate.
6150 * gdbarch.c: Re-generate.
6151
6152 * gdbarch.sh: Check that multi-arch methods do not provide a
6153 macro.
6154 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
6155 (print_registers_info, print_float_info, print_vector_info)
6156 (adjust_breakpoint_address, remote_translate_xfer_address)
6157 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
6158 (address_class_type_flags_to_name, unwind_sp): Remove the macro
6159 name from the multi-arch definition.
6160
6161 2004-06-20 Andrew Cagney <cagney@gnu.org>
6162
6163 * gdbarch.sh: Sort by the function, instead of macro name.
6164 * gdbarch.c: Re-generate.
6165
6166 2004-06-20 Andrew Cagney <cagney@gnu.org>
6167
6168 * gdbarch.sh: Use the function, instead of macro name in
6169 errors and the log file.
6170 (return_value): Remove stray ":" in spec.
6171
6172 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
6173 * gdbarch.h, gdbarch.c: Re-generate.
6174 * Makefile.in (arch-utils.o): Update dependencies.
6175 * values.c (using_struct_return): Move code calling
6176 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
6177 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
6178 to legacy_return_value, simplify.
6179 * infcmd.c (print_return_value): Move code calling
6180 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
6181 to legacy_return_value, simplify.
6182 * infcall.c (call_function_by_hand): Move code calling
6183 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
6184 * arch-utils.c: Update copyright. Include "gdbcore.h".
6185 (legacy_return_value): New function.
6186 * arch-utils.h: Update copyright.
6187 (legacy_return_value): Declare.
6188
6189 2004-06-20 Andrew Cagney <cagney@gnu.org>
6190
6191 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
6192 * gdbarch.h, gdbarch.c: Re-generate.
6193 * values.c (using_struct_return): Update call.
6194 * mcore-tdep.c: Update comment.
6195 * infcall.c (call_function_by_hand): Update comment.
6196 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6197 * arch-utils.h (always_use_struct_convention): Update.
6198 * v850-tdep.c (v850_gdbarch_init): Update.
6199 * sh64-tdep.c (sh64_gdbarch_init): Update.
6200 * sh-tdep.c (sh_gdbarch_init): Update.
6201 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6202 * mips-tdep.c (mips_gdbarch_init): Update.
6203 * mcore-tdep.c (mcore_gdbarch_init): Update.
6204 * m32r-tdep.c (m32r_gdbarch_init): Update.
6205 * ia64-tdep.c (ia64_gdbarch_init): Update.
6206 * h8300-tdep.c (h8300_gdbarch_init): Update.
6207 * frv-tdep.c (frv_gdbarch_init): Update.
6208 * cris-tdep.c (cris_gdbarch_init): Update.
6209 * arm-tdep.c (arm_gdbarch_init): Update.
6210 * alpha-tdep.c (alpha_gdbarch_init): Update.
6211
6212 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
6213
6214 * PROBLEMS: Add more specific information, and a work-around,
6215 for PR gdb/1458.
6216
6217 2004-06-18 Andrew Cagney <cagney@gnu.org>
6218
6219 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
6220 * gdbarch.h, gdbarch.c: Re-generate.
6221 * ada-lang.c (ada_finish_decode_line_1): Update.
6222 * infrun.c (handle_inferior_event): Update.
6223 * infcall.c (find_function_addr): Update.
6224 * linespec.c (minsym_found): Update.
6225 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
6226 Update.
6227 * blockframe.c (legacy_frameless_look_for_prologue): Update.
6228 * cli/cli-cmds.c (disassemble_command): Update.
6229 * vax-tdep.c (vax_gdbarch_init): Update.
6230
6231 2004-06-18 Mark Kettenis <kettenis@gnu.org>
6232
6233 * i386-tdep.c (i386_collect_fpregset): Fix comment.
6234
6235 2004-06-17 Andrew Cagney <cagney@gnu.org>
6236
6237 GDB 6.1.1 released from the GDB 6.1 branch.
6238 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
6239 * PROBLEMS: Ditto.
6240
6241 2004-06-16 Daniel Jacobowitz <dan@debian.org>
6242
6243 PR gdb/1658
6244 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
6245 operation as a uleb128. Found by Michael Coulter.
6246
6247 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
6248
6249 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
6250 make it non-static.
6251 * ada-lang.h (task_control_block): declaration moved from ada-task.c
6252 to ada-lang.h; this is needed to be able to implement the kill command
6253 in multi-task mode.
6254 (task_ptid): Ditto.
6255 (task_entry): Ditto.
6256 (task_list): Ditto.
6257 (ada_build_task_list): Ditto.
6258
6259 * ada-lang.c: Conditionalize routines and data structures related
6260 to breakpoints, exceptions, completion, and symbol caching on
6261 GNAT_GDB, since these are not yet used in the submitted public sources.
6262 (ada_main_name): Editorial: Move definition out of exception-related
6263 code.
6264
6265 2004-06-15 Andrew Cagney <cagney@gnu.org>
6266
6267 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
6268 deprecated_pc_in_call_dummy.
6269
6270 2004-06-15 Alan Modra <amodra@bigpond.net.au>
6271
6272 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
6273 bfd_get_section_size_before_reloc or _raw_size.
6274 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
6275 * dwarf2read.c (dwarf2_locate_sections): Likewise.
6276 (dwarf2_read_section): Likewise.
6277 * elfread.c (elf_locate_sections): Likewise.
6278 * gcore.c (derive_heap_segment): Likewise.
6279 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
6280 * remote-e7000.c (e7000_load): Likewise.
6281 * remote-m32r-sdi.c (m32r_load): Likewise.
6282 * remote-mips.c (mips_load_srec): Likewise.
6283 (pmon_load_fast): Likewise.
6284 * remote.c (compare_sections_command): Likewise.
6285 * symfile.c (add_section_size_callback): Likewise.
6286 (load_section_callback): Likewise.
6287 (pc_in_unmapped_range): Likewise.
6288 (pc_in_mapped_range): Likewise.
6289 (sections_overlap): Likewise.
6290 (list_overlays_command): Likewise.
6291 (simple_overlay_update_1): Likewise.
6292 (simple_overlay_update): Likewise.
6293 * tracepoint.c (remote_set_transparent_ranges): Likewise.
6294 * win32-nat.c (core_section_load_dll_symbols): Likewise.
6295
6296 2004-06-14 Randolph Chung <tausq@debian.org>
6297
6298 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
6299 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
6300 static.
6301 (hppa_hpux_inferior_created): New function.
6302 (hppa_hpux_init_abi): Register observer.
6303 * symfile.c (hp_cxx_exception_support_initialized)
6304 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
6305 (symbol_file_add_main_1, symbol_file_clear): Likewise.
6306
6307 2004-06-14 Randolph Chung <tausq@debian.org>
6308
6309 * MAINTAINERS (Write After Approval): Alphabetize my entry
6310 correctly.
6311
6312 2004-06-14 Andrew Cagney <cagney@gnu.org>
6313
6314 * MAINTAINERS (testsuite): List Michael Chastain as the lead
6315 testsuite maintainer.
6316
6317 2004-06-13 Andrew Cagney <cagney@gnu.org>
6318
6319 * infcmd.c (print_return_value): Fix logic, allow
6320 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
6321
6322 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
6323 defining any macros.
6324 * gdbarch.h: Re-generate.
6325
6326 * gdbarch.sh: Delete "level" attribute. Only check for a macro
6327 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
6328 * gdbarch.h: Re-generate.
6329
6330 * values.c (generic_use_struct_convention): Don't check gcc_p.
6331
6332 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
6333 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
6334 * gdbarch.h, gdbarch.c: Regenerate.
6335 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
6336 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
6337 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6338 deprecated_max_register_raw_size and
6339 deprecated_max_register_virtual_size.
6340 * v850-tdep.c (v850_gdbarch_init): Ditto.
6341 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6342 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6343 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6344 * cris-tdep.c (cris_gdbarch_init): Ditto.
6345
6346 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
6347 * gdbarch.h, gdbarch.c: Re-generate.
6348 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
6349 (m68hc11_use_struct_convention): Delete function.
6350 (m68hc11_extract_struct_value_address): Delete function.
6351 (m68hc11_return_value): New function.
6352 (m68hc11_gdbarch_init): Instead of store_return_value,
6353 extract_return_value, return_value_on_stack,
6354 deprecated_extract_struct_value_address and use_struct_convention,
6355 set return_value.
6356 * values.c (using_struct_return): Do not call
6357 RETURN_VALUE_ON_STACK.
6358 * arch-utils.h (generic_return_value_on_stack_not): Delete
6359 declaration.
6360 * arch-utils.c (generic_return_value_on_stack_not): Delete
6361 function.
6362
6363 2004-06-12 Andrew Cagney <cagney@gnu.org>
6364
6365 * values.c (register_value_being_returned): Delete function.
6366 * infcmd.c (legacy_return_value): Delete function.
6367 * infcall.c (call_function_by_hand): Inline
6368 "register_value_being_returned", simplify.
6369 * values.c (using_struct_return): Update comment, refer to
6370 print_return_value instead of register_value_being_returned.
6371 * infcmd.c (print_return_value): Inline calls to
6372 register_value_being_returned and legacy_return_value. Simplify.
6373
6374 2004-06-11 Randolph Chung <tausq@debian.org>
6375
6376 * somread.c (som_symtab_read): Exclude gcc local symbols.
6377
6378 2004-06-11 Randolph Chung <tausq@debian.org>
6379
6380 * infrun.c (handle_inferior_event): Handle the case when a
6381 trampoline ends up in the runtime resolver, and if the trampoline
6382 has no name. Rearrange the code so that all the trampoline
6383 processing happens before other step-out-of-range handling.
6384
6385 2004-06-11 Martin Hunt <hunt@redhat.com>
6386
6387 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
6388 has no fpu.
6389
6390 2004-06-10 Andrew Cagney <cagney@gnu.org>
6391
6392 * blockframe.c (legacy_inside_entry_func): Delete.
6393 (legacy_frame_chain_valid): Inline call to
6394 legacy_inside_entry_func, simplify.
6395
6396 2004-06-10 Bob Rossi <bob@brasko.net>
6397
6398 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
6399 * dwarf2read.c (partial_die_info): Add dirname field.
6400 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
6401 (read_partial_die): Save away DW_AT_comp_dir.
6402 * defs.h (symtab_to_filename): Removed.
6403 * source.c (find_and_open_source): Added.
6404 (open_source_file): Just calls find_and_open_source.
6405 (symtab_to_filename): Removed.
6406 (symtab_to_fullname, psymtab_to_fullname): Added.
6407 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
6408 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
6409 symtab_to_filename.
6410 * symtab.h (partial_symtab): Add dirname field.
6411 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
6412 (mi_cmd_file_list_exec_source_file): Call new function
6413 symtab_to_fullname to find fullname.
6414 (mi_cmd_file_list_exec_source_files): Added.
6415 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
6416 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
6417
6418 2004-06-10 Andrew Cagney <cagney@gnu.org>
6419
6420 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
6421 to generic_use_struct_convention, the default value.
6422
6423 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
6424 of abort.
6425
6426 * ns32k-tdep.c (ns32k_push_arguments): New function.
6427 (ns32k_gdbarch_init): Set deprecated_push_arguments.
6428 * infcall.c (call_function_by_hand): Call error instead of
6429 legacy_push_arguments.
6430 * value.h (legacy_push_arguments): Delete declaration.
6431 * valops.c (legacy_push_arguments): Delete function.
6432 (value_push): Delete function.
6433
6434 2004-06-10 Brian Ford <ford@vss.fsi.com>
6435
6436 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
6437 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
6438 info.
6439 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
6440
6441 2004-06-10 Andrew Cagney <cagney@gnu.org>
6442
6443 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
6444 * gdbarch.h, gdbarch.c: Re-generate.
6445 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
6446 parameters.
6447 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
6448 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
6449 deprecated_pc_in_call_dummy instead of
6450 DEPRECATED_PC_IN_CALL_DUMMY.
6451 (arm_skip_prologue): Ditto.
6452 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
6453 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
6454 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
6455 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
6456 Ditto.
6457 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
6458 (sh64_init_extra_frame_info, sh64_get_saved_register)
6459 (sh64_pop_frame): Ditto.
6460 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
6461 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
6462 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
6463 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
6464 (h8300_pop_frame): Ditto.
6465 * blockframe.c (legacy_inside_entry_func)
6466 (legacy_frame_chain_valid): Ditto.
6467 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
6468 to deprecated_pc_in_call_dummy.
6469
6470 2004-06-09 Andrew Cagney <cagney@gnu.org>
6471
6472 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
6473 provide a default value.
6474 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
6475 * gdbarch.h, gdbarch.c: Re-generate.
6476 * arch-utils.c (generic_convert_register_p): Rename
6477 legacy_convert_register_p
6478 (legacy_register_to_value, legacy_value_to_register): Delete
6479 functions.
6480 * arch-utils.h (generic_convert_register_p): Rename
6481 legacy_convert_register_p.
6482 (legacy_register_to_value, legacy_value_to_register): Delete
6483 declarations.
6484
6485 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
6486 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
6487 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
6488 * gdbarch.h, gdbarch.c: Re-generate.
6489 * infcmd.c (default_print_registers_info): Simplify.
6490 * findvar.c (value_of_register): Simplify.
6491 * mi/mi-main.c (get_register): Simplify.
6492 * arch-utils.c (legacy_convert_register_p): Always return 0.
6493 (legacy_register_to_value, legacy_value_to_register): Always call
6494 internal_error.
6495
6496 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
6497 #ifdef CLEAR_INSN_CACHE code.
6498 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
6499 Delete #ifdef CLEAR_DEFERRED_STORES code.
6500
6501 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
6502
6503 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
6504 copyright.
6505 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
6506
6507 * config/mips/mipsv4.mh: Delete file.
6508
6509 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
6510 unreferenced macro.
6511 (hpread_adjust_stack_address): Delete declaration.
6512
6513 2004-06-08 Andrew Cagney <cagney@gnu.org>
6514
6515 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6516 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
6517 PTRACE_ATTACH / PTRACE_DETACH available call error.
6518 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
6519 * infttrace.c (update_thread_state_after_attach, attach, detach):
6520 Remove #ifdef wrappers.
6521 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
6522 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6523 * config/nm-bsd.h (ATTACH_DETACH): Delete.
6524 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
6525 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
6526 * config/nm-linux.h (ATTACH_DETACH): Delete.
6527 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
6528 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
6529 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
6530 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
6531 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
6532
6533 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
6534
6535 * configure.in: Set $configdir to the right OS specific value.
6536 Use value when setting $tcldir and $tkdir.
6537 * configure: Regenerate.
6538
6539 2004-06-06 Paul Brook <paul@codesourcery.com>
6540
6541 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
6542 records.
6543
6544 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
6545
6546 * ada-lang.c (lookup_symbol_in_language): New function to allow
6547 re-use of another language's symbol lookup code. (Placed here
6548 temporarily while Ada support is being integrated into the public
6549 tree).
6550 (restore_language): New auxiliary function for
6551 lookup_symbol_in_language.
6552 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
6553 temporarily while Ada support is being integrated into the public
6554 tree).
6555
6556 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
6557
6558 * Makefile.in (check//%): New.
6559
6560 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
6561 (mn10300_store_return_value): Rewrite.
6562 (mn10300_type_align): New.
6563 (mn10300_use_struct_convention): Rewrite.
6564 (mn10300_return_value): New, using all of the above.
6565 (mn10300_pop_frame_regular): Add saved_regs_size.
6566 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
6567
6568 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
6569 regs if PC is on movm.
6570
6571 2004-06-07 Jim Blandy <jimb@redhat.com>
6572
6573 Add native Linux support for the PowerPC E500.
6574 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
6575 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
6576 all architectures except the E500.
6577 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
6578 #definitions.
6579 (struct gdb_evrregset_t): New type.
6580 (have_ptrace_getsetevrregs): New variable.
6581 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
6582 fetch_spe_registers): New functions.
6583 (fetch_register): Call fetch_spe_register as appropriate.
6584 Assert that we're only passed raw register numbers.
6585 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
6586 Don't fetch gprs if they're pseudoregisters.
6587 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
6588 store_spe_registers): New functions.
6589 (store_register): Call store_spe_register as appropriate.
6590 Assert that we're only passed raw register numbers.
6591 (store_ppc_registers): Call store_spe_registers as appropriate.
6592 Don't store gprs if they're pseudoregisters.
6593
6594 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
6595
6596 * thread-db.c (thread_get_info_callback): Fill in the thread_info
6597 struct if one exists, even if we are dealing with a zombie thread.
6598
6599 2004-06-07 Andrew Cagney <cagney@gnu.org>
6600
6601 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
6602 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
6603 Rename PC_REQUIRES_RUN_BEFORE_USE.
6604 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
6605 #ifdef.
6606
6607 2004-06-07 Randolph Chung <tausq@debian.org>
6608
6609 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
6610 unwinding after sp has been saved to the stack but before the end
6611 of the prologue, and after the fp has been modified but before it has
6612 been saved to the stack.
6613 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
6614 Remove superfluous definitions.
6615 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
6616
6617 2004-06-07 Guy Martin <gmsoft@gentoo.org>
6618
6619 Committed by Randolph Chung.
6620 * hppa-linux-nat.c: Include the correct version of the header file
6621 depending on the kernel version.
6622
6623 2004-06-06 Randolph Chung <tausq@debian.org>
6624
6625 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
6626 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
6627
6628 2004-06-06 Randolph Chung <tausq@debian.org>
6629
6630 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6631 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
6632 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
6633 * hppa-tdep.c (hppa_symbol_address): New function definition.
6634 * hppa-tdep.h (hppa_symbol_address): New function declaration.
6635
6636 2004-06-06 Randolph Chung <tausq@debian.org>
6637
6638 * hppa-tdep.h (struct value): Forward declaration.
6639 (gdbarch_tdep): Define tdep find_global_pointer method.
6640 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
6641 associated with the function we are trying to call, and write it
6642 to the gp register.
6643 (hppa32_convert_from_funct_ptr_addr): New function.
6644 (hppa_find_global_pointer): New function.
6645 (hppa_gdbarch_init): Set default find_global_pointer method; set
6646 convert_from_func_ptr_addr method.
6647 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
6648 (hppa_linux_init_abi): Set find_global_pointer method.
6649 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
6650
6651 2004-06-06 Randolph Chung <tausq@debian.org>
6652
6653 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
6654 to struct value *function.
6655 * gdbarch.c: Regenerate.
6656 * gdbarch.h: Likewise.
6657 * infcall.c (call_function_by_hand): Pass entire function value
6658 to push_dummy_call.
6659
6660 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
6661 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
6662 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
6663 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
6664 * arm-tdep.c (arm_push_dummy_call): Likewise.
6665 * avr-tdep.c (avr_push_dummy_call): Likewise.
6666 * cris-tdep.c (cris_push_dummy_call): Likewise.
6667 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
6668 * frv-tdep.c (frv_push_dummy_call): Likewise.
6669 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
6670 * hppa-tdep.c (hppa32_push_dummy_call)
6671 (hppa64_push_dummy_call): Likewise.
6672 * i386-tdep.c (i386_push_dummy_call): Likewise.
6673 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
6674 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
6675 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
6676 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
6677 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
6678 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6679 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
6680 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
6681 (ppc64_sysv_abi_push_dummy_call): Likewise.
6682 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
6683 (ppc64_sysv_abi_push_dummy_call): Likewise.
6684 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6685 * s390-tdep.c (s390_push_dummy_call): Likewise.
6686 * sh-tdep.c (sh_push_dummy_call_fpu)
6687 (sh_push_dummy_call_nofpu): Likewise.
6688 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
6689 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
6690 * vax-tdep.c (vax_push_dummy_call): Likewise.
6691
6692 2004-06-04 Jim Blandy <jimb@redhat.com>
6693
6694 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
6695 gdbarch argument to register_size.
6696
6697 * rs6000-tdep.c (rs6000_store_return_value): Use
6698 regcache_cooked_write_part instead of
6699 deprecated_write_register_bytes.
6700 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
6701 not gdbarch_deprecated_store_return_value.
6702
6703 * ppc-linux-nat.c (store_register, fetch_register): Remove
6704 incorrect assertions. Simplify and generalize handling of
6705 transfers whose sizes are not multiples of, or less than, sizeof
6706 (PTRACE_XFER_TYPE).
6707
6708 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
6709
6710 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
6711 as a new thread event.
6712 * thread-db.c (thread_get_info_callback): If the thread is a
6713 zombie, return TD_THR_ZOMBIE.
6714 (thread_from_lwp): If thread_get_info_callback returns
6715 TD_THR_ZOMBIE, check if the thread is still on the thread list
6716 and return a -1 ptid if not found.
6717 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
6718 change the status to TARGET_WAITKIND_SPURIOUS.
6719
6720 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
6721
6722 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
6723 double values in little endian mode.
6724
6725 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
6726
6727 Committed by Andrew Cagney.
6728 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
6729 after last enum constant to avoid error from IBM C
6730 compiler.
6731
6732 2004-06-02 Jim Blandy <jimb@redhat.com>
6733
6734 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
6735 to 'message', and make it local to the lone block that uses it.
6736
6737 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
6738
6739 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
6740
6741 * ada-exp.y: Update copyright notice.
6742 Include block.h.
6743
6744 Replace REGNAME, LAST, INTERNAL_VARIABLE with
6745 SPECIAL_VARIABLE and unify the treatment of these cases.
6746
6747 (write_attribute_call0): Remove.
6748 (write_attribute_call1): Remove.
6749 (write_attribute_calln): Remove.
6750 (save_qualifier): Add missing semicolon.
6751
6752 (simple_exp,exp): Decomment (i.e., reactivate) code that was
6753 temporarily disabled to allow compilation with FSF head version.
6754
6755 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
6756 use individual operators (OP_*) for all attributes.
6757 (exp syntax): Use write_int.
6758 Handle STRING literals with OP_STRING.
6759 (variable syntax): Add limit parameter to calls to
6760 write_object_renaming.
6761
6762 (temp_parse_space): New definition to hold entities that need
6763 only live until the next call to ada_parse.
6764 (string_to_operator): Rename fields of ada_opname_table entries.
6765
6766 (write_var_from_sym): Record block.
6767 (write_var_from_name): Minor reformatting.
6768 Make sure saved name is properly encoded in the case of multiple
6769 matches, and set its language to Ada.
6770 Update comment.
6771 Modify to indicate unresolved name as symbol in the UNRESOLVED
6772 namespace, allocated in temp_parse_space.
6773 (write_int): New function.
6774
6775 (write_object_renaming): Add max_depth parameter to limit
6776 chains of object renamings.
6777 Handle case where root of renaming expression is itself a renaming.
6778 Use temp_parse_space for temporary name buffer.
6779 Handle renamings to dereferenced pointers (___XEXA suffices).
6780
6781 (ada_parse, yyerror, string_to_operator,
6782 write_var_from_sym, write_var_from_name, write_attribute_call0,
6783 write_attribute_call1, write_attribute_calln,
6784 write_object_renaming): Protoize.
6785
6786 (_initialize_ada_exp): New function.
6787
6788 * ada-lang.c: Update copyright notice.
6789 General terminology change to conform to GNAT compiler usage:
6790 mangle => encode, demangle => decode
6791 Include gdb_obstack.h.
6792 Include gdb_regex.h
6793 Include frame.h
6794 Include hashtab.h
6795 Include completer.h
6796 Include gdb_stat.h
6797 Include block.h
6798 Include infcall.h
6799
6800 (ADA_RETAIN_DOTS): Make sure this is defined.
6801 (TRUNCATION_TOWARDS_ZERO): Define.
6802 (struct string_vector): Define.
6803 (unresolved_names): Remove definition.
6804 (xnew_string_vector): New function.
6805 (string_vector_append): New function.
6806 (extract_string): Make static.
6807 (ada_unqualified_name): New function.
6808 (add_angle_brackets): New function.
6809 (function_name_from_pc): New function.
6810 (place_on_stack): Rename to ensure_lval.
6811
6812 (ensure_lval): Renamed from place_on_stack.
6813 Make identity on lvals.
6814 Update comment.
6815 (is_nonfunction): New interface.
6816 Only symbols in LOC_CONST class can be enumerals.
6817 (fill_in_ada_prototype): Remove; now independent of language.
6818 (add_defn_to_vec): Add obstack and symtab arguments.
6819 Use obstack to hold collected definitions.
6820 (num_defns_collected): New function.
6821 (defns_collected): New function.
6822 (ada_resolve_subexp): Rename to resolve_subexp.
6823 (resolve_subexp): Renamed from ada_resolve_subexp.
6824 (ada_op_name): Return non-const result.
6825 (ada_decoded_op_name): Renamed from ada_op_name, now used for
6826 other purposes.
6827
6828 (to_fixed_array_type): Add declaration.
6829 (coerce_unspec_val_to_type): Remove offset parameter.
6830 (find_sal_from_funcs_and_line): New interface.
6831 (find_line_in_linetable): Ditto.
6832
6833 (all_sals_for_line): Rename to ada_sals_for_line and make
6834 global.
6835 Add new parameter. When set, do not ask the user to choose the
6836 instance, but use the first one found instead.
6837 Use given line number in returned sals.
6838 Fix comment.
6839 Skip the prologue if funfirstline is set.
6840 Correct for memory leak when 0 lines found.
6841
6842 (value_pos_atr): Use pos_atr.
6843 (pos_atr): New function.
6844 (standard_lookup): Add block parameter.
6845
6846 (makeTimeStart): Remove declaration and uses.
6847 (makeTimeStop): Remove declaration and uses.
6848
6849 (ada_completer_word_break_characters): Allow for VMS.
6850 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
6851 (raise_sym_name): New constant.
6852 (raise_unhandled_sym_name): New constant.
6853 (raise_assert_sym_name): New constant.
6854 (process_raise_exception_name): New constant.
6855 (longest_exception_template): New constant.
6856 (warning_limit): New variable to limit warnings during expression
6857 evaluation.
6858 (warnings_issued): New variable to keep track of warnings issued.
6859 (known_runtime_file_name_patterns): New constant.
6860 (known_auxiliary_function_name_patterns): New constant.
6861 (symbol_list_obstack): New variable.
6862
6863 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
6864 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
6865 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
6866 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
6867 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
6868 ada_variant_discrim_name, field_alignment, dynamic_template_type,
6869 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
6870 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
6871 and strcmp.
6872
6873 (ada_get_field_index): New function.
6874 (lim_warning): New function.
6875 (ada_translate_error_message): New function.
6876 (MAX_OF_SIZE): New function.
6877 (MIN_OF_SIZE): New function.
6878 (UMAX_OF_SIZE): New function.
6879 (UMIN_OF_SIZE): New function.
6880 (discrete_type_high_bound): New function.
6881 (discrete_type_low_bound): New function.
6882 (base_type): New function.
6883 (do_command): Remove.
6884
6885 (ada_update_initial_language): Use language_ada, not language_unknown.
6886 (ada_encode): Renamed from ada_mangle.
6887 Obey ADA_RETAIN_DOTS.
6888 (ada_decode): Renamed from ada_demangle.
6889 Update coding conventions.
6890 (decoded_names_store): New hash table.
6891 (ada_decode_symbol): New function.
6892 (ada_la_decode): New function.
6893
6894 (modify_general_field): Correct computations of offset and bit
6895 position.
6896 (desc_base_type): Handle ref types, too.
6897 (ada_is_direct_array_type): New function.
6898
6899 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6900 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6901 (ada_is_bogus_array_descriptor,ada_type_of_array,
6902 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
6903 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
6904 ada_is_array_descriptor_type.
6905
6906 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
6907 (ada_is_packed_array_type): Handle pointers or
6908 references to packed arrays as well.
6909 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
6910 (decode_packed_array_type): Search for the packed array type
6911 symbol in the currently selected block and associated
6912 superblocks too.
6913 Use lookup_symbol again.
6914
6915 (decode_packed_array): Handle pointers and references.
6916 Update call to coerce_unspec_val_to_type.
6917 (decode_packed_array_type,value_subscript_packed): Limit warnings.
6918 (ada_value_primitive_packed_val): Improve comment.
6919
6920 (ada_index_type): Substitute int type for "undefined".
6921 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
6922 ada_array_langth, ada_is_string_type): Use renamed
6923 ada_is_simple_array_type.
6924 (empty_array): New function.
6925
6926 (ada_resolve): Rename to resolve.
6927 (resolve): Make static.
6928 Call renamed resolve_subexp.
6929 Update comment.
6930 (ada_resolve_subexp): Rename to resolve_subexp.
6931 (resolve_subexp): Update comment.
6932 Decomment disabled code.
6933 Add LOC_COMPUTED* cases.
6934 Modify to use temporary struct symbols (marked as being in
6935 UNDEF_NAMESPACE) to indicate unresolved names, instead of
6936 OP_UNRESOLVED_VALUE.
6937 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
6938 Add OP_STRING case.
6939 Remove OP_ARRAY.
6940 Use SYMBOL_PRINT_NAME instead of ada_demangle.
6941 Use new ada_lookup_symbol_list interface.
6942 Use new ada_resolve_function interface.
6943 Remove OP_TYPE case.
6944
6945 (ada_args_match): Idiot proof against null actuals.
6946 Use intermediate variables to clarify.
6947 (ada_resolve_function): Update comment and interface.
6948 (mangled_ordered_before): Rename to encoded_ordered_before and
6949 update comment.
6950 (sort_choices): Update comment and interface.
6951 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
6952 (user_select_syms): New interface.
6953 Use new sort_choices interface.
6954 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
6955 (possible_user_operator_p): Idiot-proof against null values.
6956 (ada_simple_renamed_entity): Don't make cleanup; rely on
6957 caller to free result string.
6958 Remove const from return type.
6959 (make_array_descriptor): Rename uses of place_on_stack to
6960 ensure_lval.
6961 Make sure that arrays are on stack.
6962
6963 (HASH_SIZE): Define.
6964 (struct cache_entry): Define.
6965 (cache_space): Define.
6966 (cache): Define.
6967 (clear_ada_sym_cache): New function.
6968 (find_entry): New function.
6969 (lookup_cached_symbol): New function.
6970 (defn_vector_size): Define.
6971 (cache_symbol): New function.
6972 (defn_symbols): Remove.
6973
6974 (standard_lookup): Use lookup_symbol_in_language to get effect of
6975 C lookup.
6976 Cache results.
6977
6978 (symbol_completion_match): New function.
6979 (symbol_completion_add): New function.
6980 (ada_make_symbol_completion_list): New function.
6981
6982 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
6983 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
6984 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
6985 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
6986
6987 (ada_lookup_simple_minsym): New function.
6988 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
6989
6990 (add_symbols_from_enclosing_procs): New interface.
6991 Conditionalize more helpfully.
6992 Don't bother if program isn't running.
6993 Use new interface to get_frame_block.
6994 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
6995
6996 (remove_extra_symbols): New interface.
6997 (xget_renaming_scope): New function.
6998 (is_package_name): New function.
6999 (renaming_is_visible): New function.
7000 (remove_out_of_scope_renamings): New function.
7001
7002 (ada_lookup_symbol_list): New interface.
7003 Properly reinitialize the symbol list obstack.
7004 Don't call add_symbols_from_enclosing_procs if we start from a
7005 static or global block.
7006 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
7007 add_symbols_from_enclosing_procs.
7008 Add symtab data to cached entries.
7009 Handle symbols prefixed with
7010 "standard__" specially; strip prefix and don't look in local symbols.
7011 Do not include out of scope renaming symbols in list of
7012 symbols returned.
7013 Add const to block parameter.
7014 Move check for non-local, non-global symbols earlier.
7015 Remove timing stuff.
7016 (ada_lookup_symbol): New interface.
7017 Find symtab as well.
7018 (ada_lookup_symbol_nonlocal): New function.
7019
7020 (is_name_suffix): Enhance suffix detection to recognize
7021 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
7022 (is_dot_digits_suffix): New function.
7023 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
7024
7025 (ada_add_block_symbols): New interface. Use obstack to return results
7026 in a vector of struct ada_symbol_infos. Add symtab argument.
7027 Use new interface to add_defn_to_vec.
7028 Remove calls to fill_in_ada_prototype.
7029 Use BLOCK_BUCKETS, BLOCK_BUCKET.
7030
7031 (ada_finish_decode_line_1): Add const qualification to local to fix
7032 warning.
7033 Start looking in static block for functions to avoid attempts
7034 to search frame chain for up-level variables.
7035 Adapt to new ada_sals_for_line interface.
7036 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
7037 Handle quoting of the function name inside the spec string.
7038 Skip prologue when funfirstline is set and update the
7039 function documentation to that effect.
7040
7041 (debug_print_lines, debug_print_block, debug_print_blocks,
7042 debug_print_symtab): Remove.
7043
7044 (ada_main_name): New function.
7045 (ada_exception_breakpoint_type): New function.
7046 (is_known_support_routine): New function.
7047 (ada_find_printable_frame): Renamed from find_printable_frame and made
7048 global.
7049 Remove level parameter.
7050 Use new interface to select_frame.
7051
7052 (begin_command): Remove.
7053 (ada_adjust_exception_stop): New function.
7054 (ada_print_exception_stop): New function.
7055 (exception_name_from_cond): New function.
7056 (ada_report_exception_break): Replace disabled code with
7057 conditionalization on GNAT_GDB.
7058 Get the exception name from the condition string.
7059 Remove and move functionality into new functions
7060 ada_print_exception_breakpoint_task and
7061 ada_print_exception_breakpoint_nontask.
7062 (error_breakpoint_runtime_sym_not_found): New function.
7063 (is_runtime_sym_defined): New function.
7064 (ada_breakpoint_rewrite): Uncomment suppressed code.
7065 Use symbolic error-message and runtime-symbol names.
7066 Surround runtime symbol names in quotes.
7067 Allow non-specific breakpoints on exceptions and assertions before
7068 program starts.
7069
7070 (ada_is_tagged_type): Add parameter.
7071 (ada_is_tag_type): New function.
7072 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
7073 (ada_variant_discrim_type): Ditto.
7074 (value_tag_from_contents_and_address): New function.
7075 (type_from_tag): New function.
7076 (struct tag_args): New structure used to communicate with
7077 ada_tag_name_1.
7078 (ada_tag_name_1): New function.
7079 (ada_tag_name): New function.
7080
7081 (ada_scan_number): Update comment.
7082 (find_struct_field): New function.
7083 (ada_search_struct_field): Make static.
7084 (ada_value_struct_elt): New version that returns references when
7085 given pointers or references to structs.
7086 (ada_lookup_struct_elt_type): Add 'refok' parameter.
7087 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
7088 interface.
7089 (ada_value_ind): Use new ada_to_fixed_value interface.
7090 (ada_coerce_ref): Ditto.
7091 (field_offset): Remove.
7092
7093 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
7094 (ada_find_renaming_symbol): New function.
7095 (ada_prefer_type): Prefer named types over unnamed ones.
7096 (variant_field_index): New function.
7097 (contains_variant_part): Removed: subsumed by variant_field_index.
7098 (ada_template_to_fixed_record_type): New function, mostly from
7099 template_to_fixed_record_type.
7100 (template_to_fixed_record_type):
7101 Do not scan the type fields beyond the last one; prevents a
7102 potential SEGV.
7103 Handle case where variant field is listed BEFORE discriminant it
7104 depends on.
7105 Fix calculation of record length when bit length is
7106 not evenly divisible by char length.
7107 Move code to ada_template_to_fixed_record_type and call it.
7108
7109 (template_to_static_fixed_type): Revise comment.
7110 Modify to work on ordinary record types as well as templates,
7111 so as to handle fields that use ___XVE or ___XVU encodings.
7112 (to_record_with_fixed_variant_part): Fill out comment.
7113 Initialize C++ stuff in right type.
7114 Allow case where DVAL is null.
7115 Handle case where variant field is not last.
7116 Fix typo concerning record length.
7117 (to_fixed_record_type): Decomment disabled code.
7118 (to_fixed_record_type): Use variant_field_index instead of
7119 contains_variant_part.
7120 (to_fixed_variant_branch_type): Ditto.
7121 (to_fixed_array_type): Decomment disabled code.
7122 (ada_to_fixed_type): Convert tagged types to the specific type.
7123 Deactivate the size-check for array types in order to avoid
7124 some false size alarms.
7125 (to_static_fixed_type): Decomment disabled code.
7126 Modify to call template_to_static_fixed_type
7127 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
7128 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
7129 Remove valaddr argument, as it is never really used.
7130 (ada_to_fixed_value): Change interface to act on single struct value*
7131 operand.
7132 (adjust_pc_past_prologue): New function.
7133 (ada_attribute_name): Modify to take enum exp_opcode argument.
7134
7135 (ada_enum_name): Recognize new homonym-distinguishing convention.
7136 Adjust local variable's type to remove compiler warning.
7137 Fix a small problem in the part that unqualifies the enumeration name.
7138 (ada_value_binop): New function.
7139 (ada_value_equal): New function.
7140
7141 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
7142 Don't give error message when not doing normal evaluation
7143 and a tagged type doesn't seem to contain a structure member.
7144 Give error message for packed arrays.
7145 For indexing arrays, handle pointers to packed arrays correctly.
7146 Handle case of 'first and 'last attributes of bare integral type
7147 without encoded subtype info.
7148 Remove some unnecessary casts.
7149 Fix uninitialized value of type in computing 'first, 'last, or 'length
7150 of array object.
7151 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
7152 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
7153 calls.
7154 Attributes are now exp_opcode values.
7155 Correct treatment of 'modulus.
7156 Better error message for taking 'length of wrong kind of type;
7157 improve comment.
7158 Change EVAL_NORMAL to noside for consistency.
7159 Use ada_value_binop for DIV, MOD, REM.
7160 Make special case out of array of length 0, since an argument
7161 of 0 upsets some platforms' malloc.
7162 Use OP_STRING instead of OP_ARRAY.
7163 For slice, add check that we have an array type before extracting
7164 a slice out of it. Avoids a SEGV.
7165 When evaluating an array slice, if the array type is a reference to
7166 an aligner type, then replace the aligner type by the actual type.
7167 Decomment disabled code.
7168 Remove some dead code.
7169 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
7170 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
7171 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
7172 and UNOP_MBR to UNOP_IN_RANGE.
7173 If an array type has a parallel ___XVE type, then use it.
7174 Turn arrays into pointers for lvalue arrays.
7175 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
7176 bounds error and handle 0-length slices.
7177 Use lim_warning.
7178 When selecting fields, apply ada_to_fixed_value (because the fields
7179 might have ___XVU or ___XVE encodings even if not dynamic.)
7180 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
7181 (ada_is_system_address_type): New function.
7182
7183 (get_var_value): Use new interface to ada_lookup_symbol_list.
7184 (get_int_var_value): New interface.
7185 (to_fixed_range_type): Allow unknown bound, with warning.
7186 (ada_is_modular_type): Decomment disabled code.
7187 (ADA_OPERATORS): New definition.
7188 (ada_operator_length): New function.
7189 (ada_expr_op_name): New function.
7190 (ada_forward_operator_length): New function.
7191 (ada_dump_subexp_body): New function.
7192 (ada_print_subexp): New function.
7193 (ada_exp_descriptor): New constant.
7194 (ada_op_print_tab): Add 'size. Remove FIXMEs.
7195 (ada_language_defn): Add ada_exp_descriptor entry.
7196 Change ada_parse => parse.
7197 Add post-parser entry.
7198 Use ada-specific non-local symbol lookup.
7199 Don't use C-style arrays.
7200 String lower-bound is 1.
7201 Decomment disabled code.
7202 (parse): New function.
7203 New fields ada_translate_error_message, ada_lookup_symbol,
7204 ada_lookup_minimal_symbol.
7205
7206 * ada-lang.h: Update copyright dates.
7207 Replace the mangle/demangle terminology throughout by the
7208 more appropriate encode/decode one.
7209 Include breakpoint.h.
7210 Forward declare struct partial_symbol, struct block.
7211 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
7212 (EXTRACT_ADDRESS): Remove.
7213 (EXTRACT_INT): Remove.
7214 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
7215 (MAX_ENCLOSING_FRAME_LEVELS): Define.
7216 (MAX_RENAMING_CHAIN_LENGTH): Define.
7217 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
7218
7219 (enum task_states): Remove.
7220 ada_task_states: Remove.
7221 (fat_string): Remove.
7222 (struct entry_call): Remove.
7223 (struct task_fields): Remove.
7224 (struct task_entry): Remove.
7225
7226 (struct ada_symbol_info): Define.
7227 (enum ada_attribute): Remove.
7228 (enum ada_operator): Define.
7229
7230 (ada_get_field_index): Declare.
7231 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
7232 (ada_is_simple_array): Rename to ada_is_simple_array_type.
7233 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
7234 (ada_lookup_symbol_list): New interface.
7235 (ada_decode_symbol): Declare.
7236 (ada_decode): Declare.
7237 (ada_lookup_symbol): New interface.
7238 (ada_update_initial_language): Declare.
7239 (ada_lookup_simple_minsym): Declare.
7240 (user_select_syms): New interface.
7241 (ada_sals_for_line): Declare.
7242 (ada_is_tagged_type): New interface.
7243 (ada_tag_name): Declare.
7244 (ada_lookup_struct_elt_type): Remove declaration.
7245 (ada_search_struct_field): Remove declaration.
7246 (ada_attribute_name): New interface.
7247 (ada_is_system_address_type): Declare.
7248 (ada_to_fixed_value): Remove declaration.
7249 (ada_template_to_fixed_record_type_1): Declare.
7250 (get_int_var_value): New interface.
7251 (ada_find_any_symbol): Declare.
7252 (ada_find_renaming_symbol): Declare.
7253 (ada_mangle): Rename to ada_encode.
7254 (ada_simple_renamed_entity): Remove const.
7255 (ada_main_name): Declare.
7256 (get_current_task): Rename to ada_get_current_task.
7257 (get_entry_number): Remove declaration.
7258 (ada_report_exception_break): Remove declaration.
7259 (ada_print_exception_breakpoint_nontask): Declare.
7260 (ada_print_exception_breakpoint_task): Declare.
7261 (ada_find_printable_frame): Declare.
7262
7263 * ada-lex.l: Update copyright notices.
7264 Use xmalloc and xfree instead of malloc and free.
7265 Use new interface to name_lookup.
7266 Use new interface to
7267 ada_mangle=>ada_encode.
7268 Redo handling of '$...' variable to parallel current treatment
7269 in c-exp.y.
7270 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
7271 digit_to_int, strtoulst, processInt, processReal, processId,
7272 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
7273 yywrap): Protoize.
7274
7275 (processInt): Use cast to remove harmless warning.
7276 (processReal): Modify to get rid of compiler warning on scan formats.
7277
7278 (processId): Replace xmalloc with obstack_alloc for name and remove
7279 call to ada_name_string_cleanup.
7280 Remove obsolete disabled code.
7281 (name_lookup): Ditto.
7282 New interface.
7283 Use obsavestring on temp_parse_space instead of savestring
7284 on name, and remove call to ada_name_string_cleanup.
7285 Free string returned from ada_simple_renamed_entity.
7286 Use new interface to ada_lookup_symbol_list.
7287 Decomment disabled code.
7288 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
7289 not types.
7290 When a type name lookup succeeds as a result of
7291 lookup_primitive_typename, check for regular type entry that has not
7292 yet been read in.
7293 Limit length of chain of renamed symbols we are willing to follow.
7294 Do not break names beginning with "standard__" into segments.
7295 (block_lookup): Use new interface to ada_lookup_symbol_list.
7296
7297 * ada-typeprint.c: Update copyright notice.
7298 (demangled_type_name): Rename to decoded_type_name.
7299 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
7300 (print_range_bound): Correct handling of negative
7301 bounds that make the index type looked unsigned under STABS.
7302 (print_dynamic_range_bound): Use new interface to get_int_var_value.
7303 (print_range_type_named): Use the builtin int type if no type
7304 corresponding to the given type name could be found.
7305 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
7306 Add some bullet-proofing.
7307 (print_variant_clauses): Allow for variant branches with ___XVU
7308 encodings that are not dynamic fields.
7309 Use new interface to ada_is_tagged_type.
7310 (print_record_type): Allow for fields with ___XVE encodings that
7311 are not dynamic fields.
7312 Use new interface to ada_is_tagged_type.
7313 (ada_print_type): ada_is_array_descriptor =>
7314 ada_is_array_descriptor_type.
7315
7316 * ada-valprint.c: Update copyright notice.
7317 Include gdb_string.h
7318 Include infcall.h
7319 (ui_memcpy): New function.
7320 (ada_print_floating): New function.
7321 (ada_print_str): Order arguments correctly.
7322 Correct handling of empty arrays and arrays of 0-length items.
7323 ada_is_array_descriptor => ada_is_array_descriptor_type
7324 Print values of type System.Address in hexadecimal format.
7325 Use ada_print_floating to print floating-point numbers in Ada format.
7326 Print class tag values with type names.
7327 No longer print the address of reference values. Avoids
7328 a potential confusion.
7329 (ada_value_print): Stop printing the object type for reference
7330 values, but preserve that behavior for access types. Avoids
7331 a potential confusion.
7332 Simplify one conditional expression, as the first part is now
7333 necessarily true.
7334 ada_is_array_descriptor => ada_is_array_descriptor_type
7335 Add check for arrays for null records, and print them by hand.
7336
7337 2004-06-01 Jim Blandy <jimb@redhat.com>
7338
7339 * ppc-tdep.h: Delete unused 'regoff' member.
7340 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
7341
7342 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
7343
7344 Fix PR symtab/1661.
7345 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
7346 (hpread_read_struct_type): Likewise.
7347
7348 2004-06-01 Andrew Cagney <cagney@gnu.org>
7349
7350 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
7351 instead of xasprintf.
7352 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
7353 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
7354 (mi_cmd_data_list_register_names)
7355 (mi_cmd_data_list_changed_registers)
7356 (mi_cmd_data_list_register_values)
7357 (get_register, mi_cmd_data_write_register_values)
7358 (mi_cmd_data_write_register_values)
7359 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
7360 (mi_cmd_target_download, mi_cmd_target_select)
7361 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
7362 (mi_execute_cli_command, mi_execute_async_cli_command)
7363 (mi_execute_async_cli_command): Ditto.
7364 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
7365 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
7366
7367 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
7368 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
7369 error_last_message instead of mi_error_last_message.
7370 * mi/mi-main.c (mi_error_last_message): Delete function.
7371
7372 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
7373 "invalid number of columns" error. Delete redundant "out of
7374 memory" check.
7375
7376 2004-05-31 Mark Kettenis <kettenis@gnu.org>
7377
7378 * i386bsd-nat.c: Don't include <sys/procfs.h>.
7379 (gregset_t, fpregset_t): Remove typedefs.
7380 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
7381 (REG_OFFSET): Rename argument.
7382 (i386bsd_r_reg_offset): Rename from reg_offset.
7383 (REG_ADDR): Remove macro.
7384 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
7385 functions.
7386 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
7387 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
7388 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
7389 instead of supply_gregset.
7390 (store_inferior_registers): Use `struct reg' and `struct fpreg'
7391 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
7392 instead of fill_gregset.
7393 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
7394
7395 * i386bsd-nat.c: Don't include "gregset.h".
7396 (supply_gregset, fill_gregset): Make static.
7397 (supply_fpregset, fill_fpregset): Remove.
7398 * Makefile.in (i386bsd-nat.o): Update dependencies.
7399
7400 2004-05-30 Mark Kettenis <kettenis@gnu.org>
7401
7402 * fbsd-proc.c: Include "regcache.h", "regset.h" and
7403 "gdb_assert.h". Con't include "gregset.h".
7404 (fbsd_make_corefile_notes): Use regset-based core file support
7405 instead off fill_gregset and fill_fpregset.
7406 * Makefile.in (fbsd-proc.o): Update dependencies.
7407
7408 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
7409 instructions.
7410 (m88k_frame_prev_register): Simplify code a bit.
7411
7412 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
7413 (amd64_collect_fpregset): New function.
7414 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
7415
7416 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
7417
7418 * i386-tdep.c (i386_supply_gregset): Adjust comment.
7419 (i386_collect_gregset): New function.
7420 (i386_supply_fpregset): Adjust comment.
7421 (i386_collect_fpregset): New function.
7422 (i386_regset_from_core_section): Use i386_collect_gregset and
7423 i386_collect_fpregset.
7424
7425 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
7426 handle VALUEP being null.
7427
7428 * regset.h (collect_regset_ftype): Unconstify fourth argument.
7429
7430 2004-05-29 Mark Kettenis <kettenis@gnu.org>
7431
7432 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
7433
7434 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
7435 assembler in OpenBSD 3.5-current.
7436 (amd64obsd_sigcontext_addr): Likewise.
7437
7438 2004-05-28 Jim Blandy <jimb@redhat.com>
7439
7440 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
7441 register set, so our regcache isn't declared "legacy" and our E500
7442 pseudoregister read and write functions aren't ignored.
7443 (rs6000_register_byte, rs6000_register_raw_size,
7444 rs6000_register_virtual_type, rs6000_register_convertible,
7445 rs6000_register_convert_to_virtual,
7446 rs6000_register_convert_to_raw): Deleted.
7447 (rs6000_register_type, rs6000_convert_register_p,
7448 rs6000_register_to_value, rs6000_value_to_register): New
7449 functions.
7450 (rs6000_gdbarch_init): Don't register
7451 gdbarch_deprecated_register_size,
7452 gdbarch_deprecated_register_bytes,
7453 gdbarch_deprecated_register_byte,
7454 gdbarch_deprecated_register_raw_size,
7455 gdbarch_deprecated_register_virtual_type,
7456 gdbarch_deprecated_register_convertible,
7457 gdbarch_deprecated_register_convert_to_virtual, or
7458 gdbarch_deprecated_register_convert_to_raw methods. Instead,
7459 register gdbarch_register_type, gdbarch_convert_register_p,
7460 gdbarch_register_to_value, and gdbarch_value_to_register methods.
7461
7462 2004-05-26 Jim Blandy <jimb@redhat.com>
7463
7464 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
7465 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
7466 functions, updated to match the register numberings used in GCC.
7467 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
7468 rs6000_dwarf2_reg_to_regnum as register number conversions
7469 functions for STABS and Dwarf2.
7470
7471 2004-05-26 Randolph Chung <tausq@debian.org>
7472
7473 * infttrace.h (target_waitkind): Forward declare type instead of pulling
7474 in header file.
7475
7476 2004-05-25 Joel Brobecker <brobecker@gnat.com>
7477
7478 * NEWS: Document new "start" command.
7479
7480 2004-05-25 Randolph Chung <tausq@debian.org>
7481
7482 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
7483 hppa-linux.
7484
7485 2004-05-25 Randolph Chung <tausq@debian.org>
7486
7487 * hppa-hpux-tdep.c (offsetof): Define.
7488 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
7489 (hppa32_hpux_frame_base_before_sigtramp)
7490 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7491 (hppa64_hpux_frame_saved_pc_in_sigtramp)
7492 (hppa64_hpux_frame_base_before_sigtramp)
7493 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
7494 functions.
7495 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
7496 (hppa_hpux_sigtramp_frame_unwind_cache)
7497 (hppa_hpux_sigtramp_frame_this_id)
7498 (hppa_hpux_sigtramp_frame_prev_register)
7499 (hppa_hpux_sigtramp_frame_unwind)
7500 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
7501 (hppa_hpux_init_abi): Register sigtramp unwinder.
7502 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
7503
7504 2004-05-25 Randolph Chung <tausq@debian.org>
7505
7506 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
7507 and multiple stack unwinds.
7508 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
7509
7510 2004-05-25 Andrew Cagney <cagney@gnu.org>
7511
7512 * symfile.h (symbol_file_add_from_memory): Delete declaration.
7513 * symfile-mem.h: Delete file.
7514 * symfile-mem.c: Do not include "symfile-mem.h".
7515 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
7516 "struct bfd_section". When an error do not bother returning NULL.
7517 (add_symbol_file_from_memory_command): Use "struct bfd" and
7518 "struct bfd_section".
7519 * Makefile.in (symfile_mem_h): Delete.
7520 (symfile-mem.o): Update dependencies.
7521
7522 2004-05-25 Nick Roberts <nickrob@gnu.org>
7523
7524 * gdb-mi.el: New file.
7525
7526 2004-05-25 Andrew Cagney <cagney@gnu.org>
7527
7528 * inftarg.c: Include "observer.h".
7529 (child_attach, child_create_inferior): Notify inferior_created.
7530 * corelow.c: Include "observer.h".
7531 (core_open): Notify inferior_created.
7532 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
7533
7534 2004-05-25 Andrew Cagney <cagney@gnu.org>
7535
7536 * target.h (struct target_ops): Add from_tty to
7537 to_create_inferior.
7538 (target_create_inferior, find_default_create_inferior): Update.
7539 * infcmd.c (run_command): Update.
7540 * wince.c (child_create_inferior): Update.
7541 * win32-nat.c (child_create_inferior): Update.
7542 * uw-thread.c (uw_thread_create_inferior): Update.
7543 * thread-db.c (thread_db_create_inferior): Update.
7544 * target.c (debug_to_create_inferior)
7545 (find_default_create_inferior): Update.
7546 (maybe_kill_then_create_inferior): Update.
7547 * sol-thread.c (sol_thread_create_inferior): Update.
7548 * remote.c (extended_remote_async_create_inferior)
7549 (extended_remote_create_inferior): Update.
7550 * remote-vx.c (vx_create_inferior): Update.
7551 * remote-st.c (st2000_create_inferior): Update.
7552 * remote-sim.c (gdbsim_create_inferior): Update.
7553 * remote-sds.c (sds_create_inferior): Update.
7554 * remote-rdp.c (remote_rdp_create_inferior): Update.
7555 * remote-rdi.c (arm_rdi_create_inferior): Update.
7556 * remote-m32r-sdi.c (m32r_create_inferior): Update.
7557 * remote-e7000.c (e7000_create_inferior): Update.
7558 * procfs.c (procfs_create_inferior): Update.
7559 * ocd.c (ocd_create_inferior): Update.
7560 * ocd.h (ocd_create_inferior): Update.
7561 * nto-procfs.c (procfs_create_inferior): Update.
7562 * monitor.c (monitor_create_inferior): Update.
7563 * lin-lwp.c (lin_lwp_create_inferior): Update.
7564 * inftarg.c (child_create_inferior): Update.
7565 * hpux-thread.c (hpux_thread_create_inferior): Update.
7566 * gnu-nat.c (gnu_create_inferior): Update.
7567
7568 2004-05-25 Andrew Cagney <cagney@gnu.com>
7569
7570 * MAINTAINERS: Update e-mail address.
7571
7572 2004-05-24 Randolph Chung <tausq@debian.org>
7573
7574 * thread.c (info_threads_command, thread_apply_all_command)
7575 (thread_apply_command, thread_command, do_captured_thread_select):
7576 Remove HPUXHPPA-specific code.
7577
7578 2004-05-24 Randolph Chung <tausq@debian.org>
7579
7580 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
7581 unused symbols.
7582 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
7583 references.
7584
7585 2004-05-24 Joel Brobecker <brobecker@gnat.com>
7586
7587 * infcmd.c (kill_if_already_running): New function, extracted
7588 from run_command().
7589 (run_command): Replace extracted code by call to
7590 kill_if_already_running().
7591 (start_command): New function.
7592 (_initialize_infcmd): Add "start" command.
7593
7594 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7595
7596 Add OpenBSD/m88k support.
7597 * NEWS (New native configurations): Mention OpenBSD/m88k.
7598 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
7599 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
7600 * Makefile.in (m88k_tdep_h): New variable.
7601 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
7602 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
7603 * configure.host: Add m88*-*-openbsd*.
7604 * configure.tgt: Add m88*-*-openbsd*.
7605
7606 2004-05-24 Jim Blandy <jimb@redhat.com>
7607
7608 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
7609 to approve changes.
7610
7611 2004-05-24 Kevin Buettner <kevinb@redhat.com>
7612
7613 * symtab.c (fixup_section): Search section table when lookup by
7614 name fails.
7615
7616 2004-05-24 Randolph Chung <tausq@debian.org>
7617
7618 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
7619 be "small_struct".
7620
7621 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7622
7623 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
7624 register number in regcache_raw_collect call.
7625 (m68kbsd_collect_fpregset): Likewise.
7626 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
7627
7628 * regset.h (struct regset): Add back `regset' member.
7629
7630 2004-05-23 Mark Kettenis <kettenis@gnu.org>
7631
7632 * configure.in: Check for td_pcb in `struct thread'.
7633 * configure, config.in: Regenerated.
7634
7635 * dpx2-nat.c: Remove file.
7636 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
7637 (dpx2-nat.o): Remove dependencies.
7638
7639 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
7640 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
7641 (amd64obsd_supply_pcb): New function.
7642 (_initialize_amd64obsd_nat): Enable libkvm interface.
7643 * Makefile.in (amd64obsd-nat.o): Update dependencies.
7644 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
7645 (LOADLIBES): New variable.
7646
7647 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
7648 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
7649 (sparc32nbsd_supply_pcb): New function.
7650 (_initialize_sparcnbsd_nat): Enable libkvm interface.
7651 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
7652 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
7653 (LOADLIBES): New variable.
7654
7655 2004-05-22 Mark Kettenis <kettenis@gnu.org>
7656
7657 * bsd-kvm.c, bsd-kvm.h: New files.
7658 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
7659 "bsd-kvm.h".
7660 (i386fbsd_supply_pcb): New function.
7661 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
7662 (i386fbsd-nat.o): Update dependencies.
7663 (bsd_kvm_h): New variable.
7664 (bsd-kvm.o): New dependency.
7665 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
7666 (LOADLIBES): New variable.
7667
7668 * regset.c: Tweak comment.
7669 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
7670 macro.
7671 * regset.h: Update copyright year.
7672 (struct regset): Remove `descr' member, add `gdbarch' member.
7673 (regset_alloc): Adjust prototype and comment.
7674 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
7675 (i386_supply_fpregset): Likewise.
7676 (i386_regset_from_core_section): Update call to regset_alloc.
7677 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
7678 REGSET->arch.
7679 (i386obsd_aout_regset_from_core_section): Update call to
7680 regset_alloc.
7681 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
7682 REGSET->arch.
7683 (i386nbsd_aout_regset_from_core_section): Update call to
7684 regset_alloc.
7685 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
7686 REGSET->arch.
7687 (amd64_regset_from_core_section): Update call to regset_alloc.
7688 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
7689 REGSET->arch.
7690 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
7691 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
7692 &sparc32nbsd_gregset in sparc32_supply_gregset call.
7693 (sparc32nbsd_init_abi): Update call to regset_alloc.
7694 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
7695 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
7696 (sparc64obsd_init_abi): Update call to regset_alloc.
7697 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
7698 &sparc64nbsd_gregset in sparc64_supply_gregset call.
7699 (sparc64nbsd_init_abi): Update call to regset_alloc.
7700 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
7701 &sparc64fbsd_gregset in sparc64_supply_gregset call.
7702 (sparc64fbsd_init_abi): Update call to regset_alloc.
7703
7704 2004-05-22 Jim Blandy <jimb@redhat.com>
7705
7706 * ppc-tdep.h (spe_register_p): New declaration.
7707 (struct gdbarch_tdep): New members: ppc_acc_regnum and
7708 ppc_spefscr_regnum.
7709 * rs6000-tdep.c (spe_register_p): New function.
7710 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
7711 spefscr.
7712 (rs6000_gdbarch_init): Initialize the new members of the tdep
7713 structure.
7714
7715 2004-05-21 Jim Blandy <jimb@redhat.com>
7716
7717 * ppc-linux-nat.c (fetch_register): Move code back to be next
7718 to the comment that describes it. (Moved code, instead of
7719 comment, for symmetry with store_register.)
7720
7721 Allocate regset structures in the gdbarch's obstack, not using
7722 xmalloc.
7723 * regset.c (regset_alloc): Renamed from regset_xmalloc.
7724 Add 'arch' argument. Allocate the regset on arch's obstack, not
7725 using xmalloc.
7726 * regset.h (regset_alloc): Update declaration.
7727 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
7728 gdbarch argument.
7729 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7730 * i386-tdep.c (i386_regset_from_core_section): Same.
7731 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7732 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7733 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7734 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7735 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7736 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7737
7738 2004-05-21 Joel Brobecker <brobecker@gnat.com>
7739
7740 * config/djgpp/fnchange.lst: Undo previous change, was useless.
7741
7742 2004-05-21 Jim Blandy <jimb@redhat.com>
7743
7744 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
7745 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
7746
7747 2004-05-20 Jim Blandy <jimb@redhat.com>
7748
7749 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
7750
7751 2004-05-20 Mark Kettenis <kettenis@gnu.org>
7752
7753 * regset.h: Make prototype const-correct.
7754 * regset.c (regset_xmalloc): Make const-correct.
7755
7756 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
7757
7758 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
7759 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
7760 (symbol_search_name): Declare.
7761
7762 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
7763 (iter_name_next_hashed): Ditto.
7764 (iter_name_next_linear): Ditto.
7765 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
7766
7767 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
7768 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
7769 (symbol_search_name): New function.
7770
7771 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
7772
7773 * minsyms.c (build_minimal_symbol_hash_tables): Change
7774 test for adding to demangled hash table to check for difference
7775 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
7776
7777 2004-05-19 Jim Blandy <jimb@redhat.com>
7778
7779 Use a constructor function to create regset structures.
7780 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
7781 (struct regset): Use supply_regset_ftype. Add new
7782 'collect_regset' member.
7783 (regset_xmalloc): New declaration.
7784 * regset.c: New file.
7785 * am64-tdep.c (amd64_regset_from_core_section): Use
7786 regset_xmalloc to construct regset structures.
7787 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7788 * i386-tdep.c (i386_regset_from_core_section): Same.
7789 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7790 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7791 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7792 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7793 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7794 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7795 * Makefile.in (COMMON_OBS): Add regset.o.
7796 (regset.o): New rule.
7797
7798 2004-05-19 Joel Brobecker <brobecker@gnat.com>
7799
7800 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
7801 and pthread_cond_wait.c.
7802
7803 2004-05-18 Jim Blandy <jimb@redhat.com>
7804
7805 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
7806 before the mach-specific switch, and then let the individual cases
7807 override the defaults, rather than leaving them uninitialized
7808 until the switch and then setting them in each case.
7809
7810 2004-05-18 Randolph Chung <tausq@debian.org>
7811
7812 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
7813 millicode functions.
7814
7815 2004-05-18 Randolph Chung <tausq@debian.org>
7816
7817 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
7818 references to dld_flags_buffer consistent.
7819
7820 2004-05-18 Randolph Chung <tausq@debian.org>
7821
7822 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
7823 it for unwinding the stack.
7824
7825 2004-05-18 Randolph Chung <tausq@debian.org>
7826
7827 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
7828 Undefine these so we can overide them using gdbarch.
7829
7830 2004-05-18 Randolph Chung <tausq@debian.org>
7831
7832 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
7833 handling for 64-bit HPUX (elf).
7834
7835 2004-05-18 Daniel Jacobowitz <dan@debian.org>
7836
7837 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
7838 constants.
7839 * amd64-tdep.c (amd64_skip_prologue): Likewise.
7840 * ia64-tdep.c (examine_prologue): Likewise.
7841 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
7842 * v850-tdep.c (v850_fix_call_dummy): Likewise.
7843
7844 2004-05-18 Mark Kettenis <kettenis@gnu.org>
7845
7846 * vax-tdep.c (vax_return_value): Implement
7847 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7848
7849 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7850
7851 * vax-tdep.c (vax_return_value): Fix typo.
7852
7853 2004-05-17 Andrew Cagney <cagney@redhat.com>
7854
7855 * MAINTAINERS: Mark Salter was also responsible for
7856 testsuite/config/
7857
7858 * NEWS: Mention signal fixes.
7859
7860 2004-05-17 Randolph Chung <tausq@debian.org>
7861
7862 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
7863 check to see if we are unwinding an export stub. Export stubs clobber
7864 the %rp in the call path and stores the original rp in a stack slot.
7865
7866 2004-05-17 Jim Blandy <jimb@redhat.com>
7867
7868 * MAINTAINERS: Update address for J.T. Conklin.
7869
7870 2004-05-17 Randolph Chung <tausq@debian.org>
7871
7872 * hppa-tdep.c: Remove superfluous #include's.
7873 * Makefile.in (hppa-tdep.o): Update dependencies.
7874
7875 2004-05-17 Randolph Chung <tausq@debian.org>
7876
7877 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
7878 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
7879 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
7880 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
7881 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
7882 Remove static function declarations.
7883
7884 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7885
7886 * alphabsd-nat.c: Update copyright year.
7887 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
7888
7889 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
7890 and M68K_A2_REGNUM.
7891
7892 * m68k-tdep.c (m68k_svr4_return_value): Implement
7893 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7894
7895 2004-05-16 Mark Kettenis <kettenis@gnu.org>
7896
7897 * sol-thread.c Update copyright year. Fix various coding
7898 standards violations. Tweak a few comments.
7899 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
7900 Delete prototypes.
7901
7902 2004-05-15 Randolph Chung <tausq@debian.org>
7903
7904 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
7905 as pointer instead of array reference since HPUX compiler does
7906 not accept unsized array arguments.
7907 * somsolib.c (dld_flags_buffer): Use constant array size.
7908
7909 2004-05-15 Mark Kettenis <kettenis@gnu.org>
7910
7911 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
7912 offset with decimal offset.
7913 (amd64obsd_sigcontext_addr): Return correct address for entire
7914 signal trampoline.
7915
7916 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
7917 instead of get_frame_base.
7918
7919 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
7920 (fill_gregset): Use regcache_raw_collect.
7921
7922 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
7923 ppcobsd-tdep.c.
7924
7925 * config/sparc/tm-nbsd64.h: Remove file.
7926 * config/tm-sunos.h: Remove file.
7927
7928 2004-05-15 Joel Brobecker <brobecker@gnat.com>
7929
7930 * rs6000-tdep.c (store_param_on_stack_p): New function,
7931 an improved version of some code extracted from skip_prologue().
7932 (skip_prologue): Use store_param_on_stack_p() to detect
7933 instructions saving a parameter on the stack. Detect when r0
7934 is used to save a parameter.
7935 Do not mark "li rx, SIMM" instructions as part of the prologue,
7936 unless the following instruction is also part of the prologue.
7937
7938 2004-05-14 Andrew Cagney <cagney@redhat.com>
7939
7940 * infrun.c (handle_inferior_event): Simplify
7941 STEP_OVER_UNDEBUGGABLE.
7942
7943 * infrun.c (handle_step_into_function): Delete function.
7944 (handle_inferior_event): Inline calls to
7945 handle_step_into_function.
7946
7947 2004-05-14 Jerome Guitton <guitton@gnat.com>
7948
7949 * rs6000-nat.c: Fix a comment.
7950
7951 2004-05-12 David Anderson <davea@sgi.com>
7952
7953 Committed by Jim Blandy <jimb@redhat.com>:
7954 * regcache.c (struct regcache_descr): fix comment spelling.
7955
7956 2004-05-13 J. Brobecker <brobecker@gnat.com>
7957
7958 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
7959 Fixes a link link failure.
7960
7961 2004-05-13 J. Brobecker <brobecker@gnat.com>
7962
7963 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
7964 error that was causing the build to fail.
7965
7966 2004-05-13 J. Brobecker <brobecker@gnat.com>
7967
7968 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
7969 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
7970
7971 2004-05-13 Andrew Cagney <cagney@redhat.com>
7972
7973 * infrun.c (handle_inferior_event): Check for
7974 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
7975 calls. Update comments.
7976
7977 2004-05-13 Jim Blandy <jimb@redhat.com>
7978
7979 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
7980 (fetch_regs_user_thread, fetch_regs_kernel_thread)
7981 (store_regs_user_thread, store_regs_kernel_thread): Use
7982 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
7983 * ppc-linux-nat.c (fill_gregset): Same.
7984 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
7985 (ppc_linux_sigtramp_cache): Same.
7986 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
7987 (ppcnbsd_sigtramp_cache_init): Same.
7988 * rs6000-nat.c (fetch_core_registers): Same.
7989 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
7990 (rs6000_frame_cache): Same.
7991
7992 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
7993 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
7994 of assuming that the gprs are numbered starting with zero.
7995 * ppc-linux-nat.c (fill_gregset): Same.
7996 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
7997 * ppcnbsd-nat.c (getregs_supplies): Same.
7998 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
7999 * rs6000-nat.c (fetch_core_registers): Same.
8000 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
8001
8002 2004-05-07 Michael Snyder <msnyder@redhat.com>
8003
8004 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
8005 LOC_COMPUTED_ARG, and LOC_INDIRECT.
8006
8007 2004-05-13 Andrew Cagney <cagney@redhat.com>
8008
8009 * infrun.c (handle_inferior_event): Use frame_unwind_id.
8010
8011 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
8012
8013 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
8014 base_address for shared libraries.
8015
8016 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
8017
8018 * MAINTAINERS (write after approval): Add myself.
8019
8020 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
8021
8022 * breakpoint.c (bpstat_stop_status): Add new argument
8023 STOPPED_BY_WATCHPOINT. Use it instead of testing
8024 target_stopped_data_address agaist 0 to check whether
8025 or not we stopped due to a hardware watchpoint.
8026 * breakpoint.h (bpstat_stop_status): Adapt prototype.
8027 * infrun.c (handle_inferior_event): Call bpstat_stop_status
8028 with new argument.
8029
8030 2004-05-12 Jim Blandy <jimb@redhat.com>
8031
8032 * configure.in: When checking whether we should use the -bbigtoc
8033 option, don't forget to restore the original value of LDFLAGS.
8034 * configure: Regenerated.
8035
8036 2004-05-12 Andrew Cagney <cagney@redhat.com>
8037
8038 * thread.c (load_infrun_state): Delete step_sp.
8039 * infrun.c (context_switch): Ditto.
8040 * inferior.h (step_sp): Ditto.
8041 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
8042 * gdbthread.h (struct thread_info, save_infrun_state)
8043 (restore_infrun_state): Ditto.
8044
8045 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
8046
8047 * MAINTAINERS (write after approval): Add myself.
8048
8049 2004-05-12 Andrew Cagney <cagney@redhat.com>
8050
8051 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
8052 eliminate reference to step_sp.
8053 (struct execution_control_state, init_execution_control_state)
8054 (handle_inferior_event, keep_going): Delete update_step_sp and
8055 step_sp.
8056 * infcmd.c (step_sp): Note that variable is unused.
8057
8058 2004-05-11 Andrew Cagney <cagney@redhat.com>
8059
8060 * infrun.c (step_over_function): Delete function.
8061 (handle_step_into_function): Use insert_step_resume_breakpoint.
8062 (insert_step_resume_breakpoint): Fix assertion.
8063
8064 2004-05-11 Nick Roberts <nickrob@gnu.org>
8065
8066 * utils.c (defaulted_query): Just use the normal query input type
8067 when printing the annotations.
8068
8069 2004-05-11 Andrew Cagney <cagney@redhat.com>
8070
8071 * infrun.c (handle_inferior_event): Simplify code handling
8072 step-into or return-from a signal trampoline.
8073
8074 2004-05-11 Andrew Cagney <cagney@redhat.com>
8075
8076 * ppcnbsd-tdep.c: Include "gdb_assert.h".
8077 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
8078
8079 2004-05-10 Jim Blandy <jimb@redhat.com>
8080
8081 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
8082 with a call to internal_error.
8083
8084 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
8085 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
8086 processor variant lacks those registers.
8087 (ppc_floating_point_unit_p): Change description to make it clear
8088 that this returns info about the ISA, not the ABI.
8089 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
8090 return true or false by checking tdep->ppc_fp0_regnum and
8091 tdep->ppc_fpscr_regnum. The original code replicated the BFD
8092 arch/mach switching done in rs6000_gdbarch_init; it's better to
8093 keep that logic there, and just check the results here.
8094 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
8095 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
8096 floating-point registers.
8097 (ppc_supply_fpregset, ppc_collect_fpregset)
8098 (rs6000_push_dummy_call, rs6000_extract_return_value)
8099 (rs6000_store_return_value): Assert that we have floating-point
8100 registers.
8101 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
8102 (rs6000_frame_cache): Don't note the locations at which
8103 floating-point registers were saved if we have no fprs.
8104 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
8105 registers.
8106 (fetch_regs_user_thread, fetch_regs_kernel_thread)
8107 (store_regs_user_thread, store_regs_kernel_thread): Only call
8108 supply_fprs / fill_fprs if we actually have floating-point
8109 registers.
8110 (special_register_p): Check ppc_fpscr_regnum before matching
8111 against it.
8112 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
8113 supply / collect fpscr if we don't have it.
8114 * ppc-bdm.c: #include "gdb_assert.h".
8115 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
8116 have floating-point registers, since I can't test this code on
8117 FP-free systems to adapt it.
8118 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
8119 fpscr and floating point register numbers if they don't exist.
8120 (fetch_register): Assert that we have floating-point registers
8121 before we reach the code that handles them.
8122 (store_register): Same. And use tdep instead of calling
8123 gdbarch_tdep again.
8124 (fill_fpregset): Don't try to collect FP registers and fpscr if we
8125 don't have them.
8126 (ppc_linux_sigtramp_cache): Don't record the saved locations of
8127 fprs and fpscr if we don't have them.
8128 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
8129 don't have them.
8130 * ppcnbsd-nat.c: #include "gdb_assert.h".
8131 (getfpregs_supplies): Assert that we have floating-point registers.
8132 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
8133 * ppcobsd-tdep.c: #include "gdb_assert.h".
8134 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
8135 have floating-point registers.
8136 * rs6000-nat.c (regmap): Don't match against the fpscr and
8137 floating point register numbers if they don't exist.
8138 (fetch_inferior_registers, store_inferior_registers,
8139 fetch_core_registers): Only fetch / store / supply the
8140 floating-point registers and the fpscr if we have them.
8141 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
8142 (ppcobsd-tdep.o): Update dependencies.
8143
8144 2004-05-10 Andrew Cagney <cagney@redhat.com>
8145
8146 * infrun.c (through_sigtramp_breakpoint): Delete variable.
8147 (context_switch): Do not switch through_sigtramp_breakpoint.
8148 * gdbthread.h (save_infrun_state, load_infrun_state)
8149 (struct thread_info): Delete through_sigtramp_breakpoint parameter
8150 and structure member.
8151 * thread.c (load_infrun_state, save_infrun_state): Update.
8152
8153 2004-05-10 Mark Kettenis <kettenis@gnu.org>
8154
8155 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
8156
8157 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
8158
8159 * acinclude.m4: Quote macro names being defined by AC_DEFUN
8160 throughout.
8161 * aclocal.m4: Regenerate.
8162
8163 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
8164
8165 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
8166
8167 2004-05-10 Andrew Cagney <cagney@redhat.com>
8168
8169 * infrun.c (check_sigtramp2): Delete function.
8170 (handle_inferior_event): When single stepping, and taking a
8171 signal, set a breakpoint at the signal return address. Delete
8172 redundant calls to check_sigtramp2.
8173 (insert_step_resume_breakpoint): New function.
8174 (through_sigtramp_breakpoint, handle_inferior_event)
8175 (follow_exec, wait_for_inferior, fetch_inferior_event)
8176 (currently_stepping, keep_going): Delete most uses of
8177 through_sigtramp_breakpoint, not that it should be deleted.
8178 (delete_breakpoint_current_contents): Delete function.
8179
8180 2004-05-10 Randolph Chung <tausq@debian.org>
8181
8182 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
8183 target.
8184 * config/pa/tm-linux.h: New file.
8185
8186 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
8187
8188 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
8189 of prefixes. Don't print the prefix twice in the CLI.
8190
8191 2004-05-10 Jim Blandy <jimb@redhat.com>
8192
8193 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
8194 collect all the gprs.
8195
8196 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
8197 loop collecting gprs.
8198
8199 2004-05-09 Andrew Cagney <cagney@redhat.com>
8200
8201 * remote-vx.c (net_step): Delete step-range code.
8202 * remote.c (remote_resume, init_all_packet_configs)
8203 (set_remote_protocol_E_packet_cmd)
8204 (show_remote_protocol_E_packet_cmd)
8205 (remote_protocol_E, show_remote_cmd, _initialize_remote)
8206 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
8207 (show_remote_protocol_e_packet_cmd): Ditto.
8208
8209 2004-05-09 Mark Kettenis <kettenis@gnu.org>
8210
8211 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
8212
8213 * hppa-tdep.h: Update copyright year.
8214 (struct trad_frame_saved_reg): Add opaque declaration.
8215
8216 * amd64-tdep.c (amd64_return_value): Implement
8217 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8218
8219 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
8220 (m68k_value_to_register): New functions.
8221 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
8222 value_to_register.
8223
8224 * defs.h (enum return_value_convention): Add
8225 RETURN_VALUE_ABI_RETURNS_ADDRESS and
8226 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
8227 * infcmd.c (legacy_return_value): New function.
8228 (print_return_value): Rwerite to implement
8229 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8230 * values.c (using_struct_return): Check for inequality to
8231 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
8232 RETURN_VALUE_STRUCT_CONVENTION.
8233 * i386-tdep.c (i386_return_value): Implement
8234 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8235
8236 * vax-tdep.c: Tweak comments. Reorder include files. Don't
8237 include "symtab.h", "opcode/vax.h" and "inferior.h".
8238 (vax_skip_prologue): Replace calls to read_memory_integer by calls
8239 to read_memory_unsigned_integer.
8240 (vax_gdbarch_init): Reorder.
8241 (_initialize_vax_tdep): Spell out prototype.
8242 * Makefile.in (vax-tdep.o): Update dependencies.
8243
8244 2004-05-08 Andrew Cagney <cagney@redhat.com>
8245
8246 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
8247 * target.c (target_detach, target_disconnect): Ditto.
8248
8249 * infcall.c (call_function_by_hand): When no
8250 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
8251 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
8252 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
8253 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8254 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8255
8256 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
8257 * gdbarch.h, gdbarch.c: Re-generate.
8258 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8259 deprecated_fix_call_dummy.
8260 * v850-tdep.c (v850_gdbarch_init): Ditto.
8261 * infcall.c (call_function_by_hand): Do not call
8262 DEPRECATED_FIX_CALL_DUMMY.
8263
8264 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
8265 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
8266 * gdbarch.h, gdbarch.c: Re-generate.
8267 * arm-linux-tdep.c (arm_linux_call_dummy_words)
8268 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
8269 deprecated_sizeof_call_dummy_words.
8270 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
8271 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8272 * v850-tdep.c (v850_gdbarch_init): Ditto.
8273 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
8274 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
8275 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8276 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8277 * arch-utils.h (legacy_call_dummy_words)
8278 (legacy_sizeof_call_dummy_words): Delete declarations.
8279 * arch-utils.c (legacy_call_dummy_words)
8280 (legacy_sizeof_call_dummy_words): Delete variables.
8281
8282 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
8283 * gdbarch.h, gdbarch.c: Re-generate.
8284 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
8285 * infcall.c (call_function_by_hand): Eliminate call to
8286 DEPRECATED_PUSH_DUMMY_FRAME.
8287 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
8288 push_dummy_frame.
8289 (ns32k_push_dummy_frame): Delete function.
8290
8291 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8292 deprecated_call_dummy_breakpoint_offset or
8293 deprecated_call_dummy_start_offset.
8294 * dummy-frame.c, arm-tdep.c: Update comments.
8295 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
8296 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
8297 * gdbarch.h, gdbarch.c: Re-generate.
8298
8299 * infcall.c (legacy_push_dummy_code): Delete function.
8300 (push_dummy_code): Delete call.
8301
8302 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
8303 * gdbarch.h, gdbarch.c: Re-generate.
8304 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
8305 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
8306 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
8307 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
8308
8309 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
8310 (struct frame_info): Delete opaque declaration.
8311 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
8312 * frame.c (get_frame_type): Delete call.
8313
8314 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
8315 pc_in_call_dummy.
8316 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
8317 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
8318
8319 2004-05-08 Mark Kettenis <kettenis@gnu.org>
8320
8321 * alphanbsd-tdep.c: Include "gdb_string.h".
8322 * armnbsd-tdep.c: Update copyright year.
8323 Include "gdb_string.h".
8324 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
8325 dependencies.
8326
8327 * delta68-nat.c: Remove file.
8328 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
8329 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
8330 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
8331 (delta68-nat.o): Remove dependency.
8332
8333 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
8334 function.
8335 (m68k_gdbarch_init): Don't set
8336 deprecated_frameless_function_invocation.
8337
8338 2004-05-07 Randolph Chung <tausq@debian.org>
8339
8340 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
8341 read_memory_nobpt for code reading when doing frame unwinding.
8342 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
8343
8344 2004-05-07 Randolph Chung <tausq@debian.org>
8345
8346 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
8347 instead of sp, handle sigaltstack case.
8348 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
8349 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
8350 signal handler and not that of the caller.
8351 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
8352 hppa_linux_sigtramp_find_sigcontext.
8353
8354 2004-05-07 Randolph Chung <tausq@debian.org>
8355
8356 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
8357 hppa-linux-nat.c.
8358 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
8359 * hppa-linux-nat.c (fetch_register, store_register): Define.
8360 (fetch_inferior_registers, store_inferior_registers): Define.
8361 (supply_gregset): Add comment and clean up some unneeded code.
8362 (fill_gregset): Add comment and fix so that it saves registers in
8363 the right place in the gregset.
8364 (fill_fpregset): Fix buffer overrun problem.
8365 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
8366
8367 2004-05-07 Randolph Chung <tausq@debian.org>
8368
8369 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
8370 do common handling of the pcoqt register.
8371 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
8372 to use helper function.
8373 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
8374 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
8375 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
8376 generic fallback unwinder when all else fails.
8377 (hppa_gdbarch_init): Add fallback sniffer.
8378 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
8379 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
8380 to use helper function.
8381
8382 2004-05-08 Joel Brobecker <brobecker@gnat.com>
8383
8384 * config/djgpp/fnchange.lst: Add translation rules for
8385 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
8386
8387 2004-05-08 Mark Kettenis <kettenis@gnu.org>
8388
8389 * frame.c (get_prev_frame_1): Work around GCC bug.
8390 * frame.h: Add comment about GCC bug.
8391
8392 2004-05-07 Andrew Cagney <cagney@redhat.com>
8393
8394 * observer.c: Include "commands.h" and "gdbcmd.h".
8395 (observer_debug, _initialize_observer): Add the
8396 command "set/show debug observer".
8397 * observer.sh: When observer debugging, log notify calls.
8398 * Makefile.in (observer.o): Update dependencies.
8399
8400 2004-05-07 Jason Molenda (jmolenda@apple.com)
8401
8402 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
8403
8404 2004-05-07 Jim Blandy <jimb@redhat.com>
8405
8406 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
8407 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
8408 to recognize gpr regnums, instead of assuming that
8409 tdep->ppc_fp0_regnum marks the end of the general-purpose
8410 registers.
8411
8412 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
8413 the given architecture has floating-point registers.
8414
8415 2004-05-07 Andrew Cagney <cagney@redhat.com>
8416
8417 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
8418 macro defined to 1.
8419 * gdbarch.h, gdbarch.c: Re-generate.
8420 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8421 deprecated_use_generic_dummy_frames.
8422
8423 2004-05-07 Brian Ford <ford@vss.fsi.com>
8424
8425 * NEWS: Mention Cygwin DWARF 2 support.
8426
8427 2004-05-07 Andrew Cagney <cagney@redhat.com>
8428
8429 * objfiles.h (struct entry_info): Delete unused fields
8430 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
8431 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
8432 * mipsread.c (mipscoff_symfile_read): Update.
8433 * mdebugread.c (parse_partial_symbols): Update.
8434 * dwarfread.c (read_file_scope): Update.
8435 * dwarf2read.c (read_file_scope): Update.
8436 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
8437 * coffread.c (complete_symtab): Update.
8438
8439 2004-05-07 Mark Kettenis <kettenis@gnu.org>
8440
8441 * infcall.c (_initialize_infcall): Fix typo.
8442
8443 2004-05-07 Andrew Cagney <cagney@redhat.com>
8444
8445 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
8446 * command.h (add_setshow_zinteger_cmd): Declare.
8447
8448 2004-05-06 Randolph Chung <tausq@debian.org>
8449
8450 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
8451 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
8452 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
8453 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
8454 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
8455 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
8456 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
8457 definitions ...
8458 * hppa-tdep.h: ... to here, with HPPA_ prefix.
8459 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
8460 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
8461 (hppa64_hpux_frame_find_saved_regs_in_sig)
8462 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
8463 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
8464 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
8465 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
8466 (hppa_linux_sigtramp_frame_prev_register): Likewise.
8467 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
8468 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
8469 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
8470 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
8471 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
8472 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
8473 (hppa32_register_type, hppa_cannot_store_register)
8474 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
8475 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
8476 * hpread.c (hpread_process_one_debug_symbol): Likewise.
8477 * pa64solib.c (pa64_solib_have_load_event)
8478 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
8479 (pa64_solib_unloaded_library_pathname): Likewise.
8480 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
8481 (som_solib_library_pathname): Likewise.
8482
8483 2004-05-05 Jim Ingham <jingham@apple.com>
8484
8485 * breakpoint.c (create_breakpoints): Copy the ignore count and
8486 thread id over from the pended breakpoint to the actual
8487 breakpoint.
8488
8489 2004-05-05 Andrew Cagney <cagney@redhat.com>
8490
8491 * gdbarch.sh (PARM_BOUNDARY): Delete.
8492 gdbarch.h, gdbarch.c: Re-generate.
8493 * valops.c (PARM_BOUNDARY): Delete macro.
8494 (value_push): Delete PARM_BOUNDARY code.
8495 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
8496
8497 2004-05-04 Jim Blandy <jimb@redhat.com>
8498
8499 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
8500 Don't assume that the gprs, fprs, and UISA sprs are
8501 contiguous, start at register number zero, and end with fpscr.
8502 Instead, use the numbers from the tdep structure.
8503
8504 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
8505 should no longer be used in code specific to the RS6000 and its
8506 derivatives.
8507 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
8508 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
8509 tdep->ppc_fp0_regnum.
8510 (ppc_supply_fpregset, ppc_collect_fpregset)
8511 (rs6000_push_dummy_call, rs6000_extract_return_value)
8512 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
8513 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
8514 FP0_REGNUM.
8515 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
8516 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
8517 Same.
8518 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
8519 bdm_ppc_store_registers): Same.
8520 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
8521 (store_register, fill_fpregset): Same.
8522 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
8523 (ppc_linux_supply_fpregset): Same.
8524 * ppcnbsd-nat.c (getfpregs_supplies): Same.
8525 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
8526 Same.
8527 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
8528 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
8529 ppc64_sysv_abi_return_value): Same.
8530 * rs6000-nat.c (regmap, fetch_inferior_registers)
8531 (store_inferior_registers, fetch_core_registers): Same.
8532
8533 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8534
8535 * m68knbsd-nat.c: Remove file.
8536 * m68knbsd-tdep.c: Remove file.
8537 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
8538 dependencies.
8539 * configure.host: Add m68k-*-netbsdelf*.
8540 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
8541 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
8542 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
8543 (XM_FILE): Remove.
8544 * config/m68k/nbsdelf.mh: New file.
8545 * config/m68k/nbsd.mt: New file.
8546 * config/m68k/nbsdaout.mt: Remove file.
8547 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
8548 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
8549 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
8550 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
8551 (use_struct_convention): Remove prototype.
8552 (USE_STRUCT_CONVENTION): Remove define.
8553 * config/m68k/xm-nbsd.h: Remove file.
8554
8555 2004-05-04 Michael Snyder <msnyder@redhat.com>
8556
8557 * m68k-tdep.c (m68k_gdbarch_init): Default to using
8558 reg_struct_return method (as gcc usually does for cross targets).
8559
8560 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8561
8562 Committed by Andrew Cagney.
8563 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
8564 alignment padding when accessing ucontext struct members.
8565
8566 2004-05-04 Jim Blandy <jimb@redhat.com>
8567
8568 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
8569 'ppc_gplast_regnum' member.
8570 (ppc_num_gprs): New enum constant.
8571 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
8572 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
8573 * rs6000-nat.c (regmap, fetch_inferior_registers,
8574 store_inferior_registers): Same.
8575 * rs6000-tdep.c (e500_pseudo_register_read)
8576 (e500_pseudo_register_write): Same.
8577 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
8578
8579 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
8580 * ppc-tdep.h (ppc_num_fprs): New enum constant.
8581 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
8582 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
8583 FPLAST_REGNUM.
8584 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8585 Same.
8586 * ppc-linux-nat.c (ppc_register_u_addr): Same.
8587 * rs6000-nat.c (regmap, fetch_inferior_registers)
8588 (store_inferior_registers): Same.
8589
8590 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
8591 with FPLAST_REGNUM.
8592
8593 2004-05-03 Joel Brobecker <brobecker@gnat.com>
8594
8595 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
8596 failure detected by recent versions of GCC.
8597 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
8598 to be consistent with the usage in dwarf2_create_include_psymtab.
8599
8600 2004-05-03 Michael Snyder <msnyder@redhat.com>
8601
8602 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
8603 (heuristic_proc_start): Whitespace cleanup.
8604
8605 2004-05-04 Mark Kettenis <kettenis@gnu.org>
8606
8607 * sun3-nat.c: Remove file.
8608 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
8609 dependencies.
8610 (ALLDEPFILES): Remove sun3-nat.c.
8611 (sun3-nat.o): Remove dependencies.
8612
8613 * i386-interix-nat.c, i386-interix-tdep.c,
8614 config/i386/nm-interix.h, config/i386/interix.mh,
8615 config/i386/interix.mt: Remove files.
8616 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
8617 dependencies.
8618
8619 2004-05-03 Mark Kettenis <kettenis@gnu.org>
8620
8621 * m68k-tdep.h (struct gdbarch_tdep): Add member
8622 struct_value_regnum.
8623 (m68k_svr4_init_abi): New prototype.
8624 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
8625 different calling conventions.
8626 (m68k_extract_return_value): Remove code dealing with single-field
8627 structs.
8628 (m68k_store_return_value): Remove code dealing with single-field
8629 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
8630 (m68k_extract_struct_value_address): Remove function.
8631 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
8632 (m68k_reg_struct_return_p, m68k_return_value)
8633 (m68k_svr4_return_value): New functions.
8634 (m68k_use_struct_convention): Remove function.
8635 (m68k_push_dummy_call): Use new struct_value_regnum member of
8636 `struct gdbarch_tdep' instead of hardcoded register number to
8637 store STRUCT_ADDR.
8638 (m68k_svr4_init_abi): New function.
8639 (m68k_gdbarch_init): Don't set extract_return_value,
8640 store_return_values, deprecated_extract_struct_value_address and
8641 use_struct_convention. Set return_value instead. Initialize new
8642 struct_value_regnum member of `struct gdbarch_tdep'.
8643 * m68klinux-tdep.c: Update copyright year.
8644 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
8645 (m68k_linux_extract_struct_value_address): Remove function.
8646 (m68k_linux_init_abi): Don't set extract_return_value,
8647 store_return_values, deprecated_extract_struct_value_address and
8648 use_struct_convention. Call m68k_svr4_init_abi but override the
8649 new struct_value_regnum member of `struct gdbarch_tdep'.
8650 * Makefile.in (m68k-tdep.o): Update dependencies.
8651
8652 2004-05-03 J. Brobecker <brobecker@gnat.com>
8653
8654 * dwarf2read.c (line_header): Add new included_p field in
8655 field file_names.
8656 (partial_die_info): New field has_stmt_list. New field line_offset.
8657 (dwarf2_create_include_psymtab): New function.
8658 (dwarf2_build_include_psymtabs): New function.
8659 (add_file_name): Add forward declaration. Initialize new field.
8660 (dwarf_decode_lines): Add new parameter. Enhance this procedure
8661 to be able to determine the list of files included by the
8662 given unit, and build their associated psymtabs.
8663 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
8664 files as well.
8665 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
8666 (read_file_scope): Update call to dwarf_decode_lines.
8667 (read_partial_die): Handle DW_AT_stmt_list attributes.
8668
8669 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
8670
8671 Unfix PR gdb/1626.
8672 * configure.in: Revert special case for osf5.*.
8673 * configure: Regenerate.
8674
8675 2004-05-02 Jim Blandy <jimb@redhat.com>
8676
8677 Move the symbol-file-from-memory functions into their own file.
8678 * symfile-mem.c, symfile-mem.h: New files.
8679 * symfile.c (symbol_file_add_from_bfd): New function.
8680 (symbol_file_add): Call symbol_file_add_from_bfd.
8681 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
8682 Moved to symfile-mem.c.
8683 (_initialize_symfile): Move definition of
8684 add-symbol-file-from-memory command to symfile-mem.c.
8685 * symfile.h (symbol_file_add_from_bfd): New declaration.
8686 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
8687 * config/powerpc/linux.mt (TDEPFILES): Same.
8688 * Makefile.in (SFILES): Add symfile-mem.c.
8689 (symfile_mem_h): New variable.
8690 (HFILES_NO_SRCDIR): Add symfile-mem.h.
8691 (symfile-mem.o): New rule.
8692
8693 2004-05-01 Andrew Cagney <cagney@redhat.com>
8694
8695 * breakpoint.c (insert_bp_location): Use get_frame_id, and
8696 frame_find_by_id instead of frame_relative_level.
8697 (do_enable_breakpoint): Ditto.
8698 * thread.c: Update copyright.
8699 (info_threads_command): Ditto, simplify.
8700
8701 * frame.c (deprecated_generic_get_saved_register): Delete
8702 function, moved to "xstormy16-tdep.c".
8703 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
8704 deprecated_generic_get_saved_register from "frame.c".
8705 (xstormy16_frame_saved_register): Call
8706 xstormy16_get_saved_register.
8707 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
8708 static.
8709 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
8710 * frame.h (deprecated_generic_get_saved_register): Delete.
8711
8712 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
8713
8714 * dwarfread.c: Update documentation on the state of dwarf-1.
8715
8716 2004-05-01 Andrew Cagney <cagney@redhat.com>
8717
8718 * stack.c (select_frame_command): Delete call to
8719 frame_relative_level.
8720 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
8721 Delete #if0 code.
8722 (frame_info): Do not print FRAMELESS.
8723 (print_block_frame_labels): Replace DEPRECATED_STREQ.
8724 (catch_info): Delete #if0 code.
8725
8726 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
8727 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
8728 of frame_relative_level.
8729 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
8730 to SENTINEL_FRAME.
8731 * frame.h (enum frame_type): Add SENTINEL_FRAME.
8732 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
8733 frame_relative_level.
8734
8735 * frame.h (deprecated_set_frame_type): Delete declaration.
8736 * frame.c (deprecated_set_frame_type): Delete function, update
8737 comments.
8738
8739 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
8740 * gdbarch.h, gdbarch.c: Re-generate.
8741 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
8742 (shnbsd_pc_in_sigtramp): Delete.
8743 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
8744 pc_in_sigtramp.
8745 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
8746 pc_in_sigtramp.
8747 * frame.h: Update comments.
8748 * ppc-linux-tdep.c: Update comments.
8749 * breakpoint.c (bpstat_what): Update comments.
8750
8751 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
8752 m68klinux-tdep.o's dependencies, were previously added to
8753 m68klinux-nat.o.
8754
8755 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
8756 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
8757 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8758 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8759 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8760
8761 * Makefile.in (m68klinux-nat.o): Update dependencies.
8762 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8763 (m68k_linux_sigtramp_frame_cache)
8764 (m68k_linux_sigtramp_frame_this_id)
8765 (m68k_linux_sigtramp_frame_prev_register)
8766 (m68k_linux_sigtramp_frame_unwind)
8767 (m68k_linux_sigtramp_frame_sniffer)
8768 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
8769 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
8770 names, use trad-frame.h.
8771 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
8772 (struct m68k_sigtramp_info): Delete.
8773 * m68k-tdep.c (m68k_sigtramp_frame_cache)
8774 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
8775 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
8776 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
8777 "m68klinux-tdep.c".
8778
8779 * infrun.c (check_sigtramp2): Delete check for
8780 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
8781
8782 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8783
8784 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
8785
8786 2004-05-01 Andrew Cagney <cagney@redhat.com>
8787
8788 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8789 (frv_linux_sigtramp_frame_cache)
8790 (frv_linux_sigtramp_frame_this_id)
8791 (frv_linux_sigtramp_frame_prev_register)
8792 (frv_linux_sigtramp_frame_unwind)
8793 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
8794 include "linux" in function and variable names, directly call
8795 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
8796 the latest trad-frame code.
8797 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
8798 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
8799 * Makefile.in (frv-linux-tdep.o): Update dependencies.
8800 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
8801 * frv-tdep.c (frv_sigtramp_frame_cache)
8802 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8803 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
8804 frv-linux-tdep.c.
8805 (frv_gdbarch_init): Do not append a sigtramp sniffer.
8806 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
8807 (frv_set_sigcontext_reg_addr): Delete function.
8808
8809 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
8810 (DEPRECATED_SIGTRAMP_END): Delete.
8811 * gdbarch.h, gdbarch.c: Re-generate.
8812 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
8813 * config/vax/tm-vaxbsd.h: Update copyright.
8814 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8815 (DEPRECATED_IN_SIGTRAMP): Define.
8816 * config/m68k/tm-nbsd.h: Update copyright.
8817 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8818 (DEPRECATED_IN_SIGTRAMP): Define.
8819
8820 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8821
8822 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
8823 encondings. Fixes PR gdb/1628.
8824
8825 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
8826 DW_CFA_restore state without a matching DW_CFA_remember_state
8827 instead of aborting. Fixes PR backtrace/1589.
8828
8829 2004-04-30 Joel Brobecker <brobecker@gnat.com>
8830
8831 * MAINTAINERS: Add self as AIX maintainer.
8832 Update my e-mail address in write-after-approval section.
8833
8834 2004-04-30 Andrew Cagney <cagney@redhat.com>
8835
8836 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
8837 (legacy_get_prev_frame): Ditto.
8838
8839 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
8840 (mips_gdbarch_init): Do not set pc_in_sigtramp.
8841 * mipsread.c (sigtramp_address): Delete extern variable.
8842 (mipscoff_new_init): Delete reference.
8843 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
8844 (fixup_sigtramp): Delete function.
8845 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
8846 (fixup_sigtramp): Delete declarations.
8847
8848 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
8849 deprecated_pc_in_sigtramp.
8850 (ppcnbsd_pc_in_sigtramp): Delete function.
8851
8852 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8853
8854 * config/m68k/nm-nbsd.h: Tweak comments.
8855 * config/m68k/nm-nbsdaout.h: Likewise.
8856
8857 2004-04-30 Andrew Cagney <cagney@redhat.com>
8858
8859 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
8860 legacy_pc_in_sigtramp.
8861 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
8862
8863 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8864
8865 Add OpenBSD/m68k support.
8866 * NEWS (New native configurations): Mention OpenBSD/m68k.
8867 * m68kbsd-tdep.c: New file.
8868 * m68kbsd-nat.c: New file.
8869 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
8870 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
8871 * configure.host: Add m68k-*-openbsd.
8872 * configure.tgt: Add m68k-*-openbsd.
8873 * config/m68k/tm-obsd.h: New file.
8874 * config/m68k/obsd.mt: New file.
8875 * config/m68k/obsd.mh: New file.
8876 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
8877 m68kbsd-tdep.c.
8878
8879 2004-04-30 Andrew Cagney <cagney@redhat.com>
8880
8881 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
8882 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
8883
8884 2004-04-30 Mark Kettenis <kettenis@gnu.org>
8885
8886 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
8887 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
8888
8889 2004-04-30 Brian Ford <ford@vss.fsi.com>
8890
8891 Revert 2004-04-16 change.
8892 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
8893 (i386_coff_init_abi): Remove.
8894 * i386-tdep.h (i386_coff_init_abi): Remove.
8895 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
8896
8897 2004-04-30 Andrew Cagney <cagney@redhat.com>
8898
8899 * blockframe.c (find_pc_partial_function): Delete use of
8900 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
8901 DEPRECATED_SIGTRAMP_END.
8902
8903 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
8904 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
8905 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
8906 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
8907 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
8908
8909 * defs.h (deprecated_inside_entry_file): Delete declaration.
8910 * blockframe.c (deprecated_inside_entry_file): Delete function.
8911 (legacy_frame_chain_valid): Delete call.
8912 * sh64-tdep.c (sh64_frame_chain): Delete call.
8913 * objfiles.h: Update comments.
8914 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
8915 call.
8916 * frame.c (get_prev_frame): Delete call, update comments.
8917
8918 2004-04-30 Brian Ford <ford@vss.fsi.com>
8919
8920 * MAINTAINERS (Write After Approval): Add myself.
8921
8922 2004-04-30 Andrew Cagney <cagney@redhat.com>
8923
8924 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
8925 * gdbarch.h, gdbarch.c: Re-generate.
8926 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
8927 code.
8928
8929 2004-04-30 Andrew Cagney <cagney@redhat.com>
8930
8931 * gdb-events.sh (selected_thread_changed)
8932 (selected_frame_level_changed, target_changed): Delete.
8933 * gdb-events.h, gdb-events.c: Re-generate.
8934 * valops.c (value_assign): Update.
8935 * stack.c (select_frame_command, up_silently_base)
8936 (down_silently_base): Update.
8937
8938 2004-04-29 Andrew Cagney <cagney@redhat.com>
8939
8940 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
8941 registers correctly.
8942 (print_gp_register_row, mips32_heuristic_proc_desc)
8943 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
8944 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
8945 references to mips_isa_regsize.
8946
8947 2004-04-29 Andrew Cagney <cagney@redhat.com>
8948
8949 * mips-tdep.c (struct gdbarch_tdep): Delete
8950 mips_fp_register_double.
8951 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
8952 mips_abi_regsize.
8953 (mips_gdbarch_init): Do not set mips_fp_register_double.
8954 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
8955
8956 2004-04-29 Joel Brobecker <brobecker@gnat.com>
8957
8958 Committed by Andrew Cagney.
8959 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
8960 function calls.
8961
8962 2004-04-29 Andrew Cagney <cagney@redhat.com>
8963
8964 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
8965 gdbarch, use mips_abi, update callers.
8966 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
8967 mips_abi_regsize, update callers.
8968 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
8969 mips_default_abi_regsize.
8970 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
8971 mips_default_abi_regsize.
8972
8973 2004-04-29 Andrew Cagney <cagney@redhat.com>
8974
8975 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
8976 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
8977 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
8978 mips_default_abi_regsize.
8979 (mips_isa_regsize): Rename mips_regisze.
8980 * mipsnbsd-tdep.c: Update.
8981 * mips-linux-tdep.c: Update.
8982 * irix5-nat.c: Update.
8983 * mips-tdep.h (mips_isa_regsize): Update.
8984
8985 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
8986 Delete all disabled code.
8987 * gdb-events.h, gdb-events.c: Re-generate.
8988
8989 2004-04-19 Jerome Guitton <guitton@gnat.com>
8990 Mark Kettenis <kettenis@gnu.org>
8991
8992 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
8993 the function begins with a branch instruction.
8994
8995 2004-04-29 Mark Kettenis <kettenis@gnu.org>
8996
8997 * i386-tdep.c: Fix spelling mistakes.
8998
8999 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9000 Andrew Cagney <cagney@redhat.com>
9001
9002 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
9003 <sys/proc.h>.
9004 * acconfig.h: Provide default _KMEMUSER value.
9005 * config.in, configure: Re-generate.
9006 * NEWS: Mention fix.
9007
9008 2004-04-24 Randolph Chung <tausq@debian.org>
9009
9010 * configure.host (hppa*-*-linux*): New target.
9011 * configure.tgt (hppa*-*-linux*): Likewise.
9012 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
9013 gdbarch_init_osabi() call earlier so that osabi-specific frame
9014 unwinders can be registered first.
9015 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
9016 hppa-linux-nat.c.
9017 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
9018 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
9019 * config/pa/linux.mh: New file.
9020 * config/pa/linux.mt: New file.
9021 * config/pa/nm-linux.h: New file.
9022 * config/pa/xm-linux.h: New file.
9023 * hppa-linux-nat.c: New file.
9024 * hppa-linux-tdep.c: New file.
9025
9026 2004-04-28 Randolph Chung <tausq@debian.org>
9027
9028 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
9029 return values.
9030 (hppa32_push_dummy_call): Fix small struct and floating point argument
9031 passing, and make sure the stack frame is properly aligned.
9032
9033 2004-04-28 Andrew Cagney <cagney@redhat.com>
9034
9035 * stack.c (print_stack_frame): Fix description.
9036
9037 * NEWS: Mention gdb/gdbserver/configure execute permission
9038 changed. PR server/519.
9039
9040 2004-04-28 Andrew Cagney <cagney@redhat.com>
9041
9042 * stack.c (print_stack_frame_stub): Delete declaration.
9043 (struct print_stack_frame_args, print_stack_frame)
9044 (print_frame_info, print_frame): Replace "source" with print what.
9045 Replace "print" with "print_level". Replace "args" with
9046 "print_args".
9047 * frame.h (show_and_print_stack_frame, print_stack_frame)
9048 (print_frame_info): Update declarations.
9049 * stack.c (select_and_print_frame, frame_command)
9050 (current_frame_command, up_command, down_command): Update calls -
9051 use get_selected_frame, pass "enum print_what" for source, do not
9052 call frame_relative_level.
9053 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
9054 * remote-rdp.c (remote_rdp_open): Ditto.
9055 * remote-mips.c (common_open): Ditto.
9056 * remote-e7000.c (e7000_start_remote): Ditto.
9057 * ocd.c (ocd_start_remote): Ditto.
9058 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
9059 * infrun.c (normal_stop): Ditto.
9060 * inflow.c (kill_command): Ditto.
9061 * infcmd.c (finish_command): Ditto.
9062 * corelow.c (core_open): Ditto.
9063 * tracepoint.c (finish_tfind_command): Ditto.
9064 * thread.c (info_threads_command, info_threads_command)
9065 (restore_current_thread, do_captured_thread_select): Ditto.
9066 * ada-tasks.c (task_command): Ditto.
9067
9068 2004-04-26 Orjan Friberg <orjanf@axis.com>
9069
9070 * frame.c: Include "observer.h".
9071 (frame_observer_target_changed): New function.
9072 (_initialize_frame): Attach target_changed observer.
9073 * regcache.c: Include "observer.h".
9074 (regcache_observer_target_changed): New function.
9075 (_initialize_regcache): Attach target_changed observer.
9076 * valops.c: Include "observer.h".
9077 (value_assign): Notify target_changed event when modifying register.
9078 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
9079
9080 2004-04-26 Orjan Friberg <orjanf@axis.com>
9081
9082 From Paul Koning <pkoning@equallogic.com>:
9083 * breakpoint.c (free_valchain): New function.
9084 (insert_bp_location, delete_breakpoint): Use free_valchain.
9085 (remove_breakpoint): Do not remove the valchain.
9086 (bpstat_stop_status): If not stopped by watchpoint, skip
9087 watchpoints when generating stop status list.
9088 * infrun.c (handle_inferior_event): Make
9089 stepped_after_stopped_by_watchpoint a global variable.
9090 * remote.c (remote_stopped_data_address): Return watch data
9091 address rather than zero if stepped_after_stopped_by_watchpoint is
9092 set.
9093
9094 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
9095
9096 Fix PR gdb/1626.
9097 * configure.in: Check for curses after termcap.
9098 On osf5.*, do not check for ncurses.
9099 * configure: Regenerate.
9100
9101 2004-04-25 Mark Kettenis <kettenis@gnu.org>
9102
9103 * ppcobsd-nat.c: Include "ppc-tdep.h".
9104 * Makefile.in (ppcobsd-nat.o): Update dependencies.
9105
9106 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
9107 Fixes PR tdep/1623 and PR tdep/1624.
9108
9109 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
9110
9111 * xmodem.h, xmodem.c: Remove files.
9112 * Makefile.in: Remove references to xmodem.h, xmodem.c.
9113
9114 2004-04-23 Randolph Chung <tausq@debian.org>
9115
9116 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
9117 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
9118 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
9119 for handling stackless frames.
9120 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
9121
9122 2004-04-23 Randolph Chung <tausq@debian.org>
9123
9124 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
9125 starts at a pc before the frame is created.
9126
9127 2004-04-23 Joel Brobecker <brobecker@gnat.com>
9128
9129 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
9130
9131 2004-04-23 Jerome Guitton <guitton@gnat.com>
9132
9133 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
9134 use convert_typed_floating to get the appropriate format.
9135
9136 2004-04-22 Randolph Chung <tausq@debian.org>
9137
9138 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
9139 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
9140 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
9141 (hppa_sign_extend): Add prototype.
9142 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
9143 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
9144 (sign_extend): Rename with hppa_ prefix and make non-static. Other
9145 hppa targets will also use these functions.
9146 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
9147 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
9148 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
9149 (hppa_gdbarch_init): Remove gdbarch setting of
9150 skip_trampoline_code, in_solib_call_trampoline and
9151 in_solib_return_trampoline.
9152 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
9153 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
9154 hppa_in_solib_call_trampoline.
9155 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
9156 Moved from hppa-tdep.c.
9157 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
9158 in_solib_call_trampoline and in_solib_return_trampoline.
9159
9160 2004-04-22 Randolph Chung <tausq@debian.org>
9161
9162 * hppa-tdep.c (hppa_debug): New variable.
9163 (find_unwind_entry, hppa_frame_cache): Add debug output.
9164 (_initialize_hppa_tdep): Add command to set debug flag.
9165
9166 2004-04-22 Andrew Cagney <cagney@redhat.com>
9167
9168 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
9169 "trad-frame.h".
9170 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
9171 signal trampoline unwinder.
9172 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
9173
9174 2004-04-22 Mark Kettenis <kettenis@gnu.org>
9175
9176 Add OpenBSD/powerpc support.
9177 * NEWS (New native configurations): Mention OpenBSD/powerpc.
9178 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
9179 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
9180 (ppc_collect_fpregset): New prototypes.
9181 * ppcobsd-nat.c: New file.
9182 * ppcobsd-tdep.c: New file.
9183 * ppcobsd-tdep.h: New file.
9184 * rs6000-tdep.c: Include "regset.h".
9185 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
9186 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
9187 New functions.
9188 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
9189 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
9190 (rs6000-tdep.o): Update dependencies.
9191 * configure.host: Add powerpc-*-openbsd.
9192 * configure.tgt: Add powerpc-*-openbsd.
9193 * config/powerpc/obsd.mh: New file.
9194 * config/powerpc/nm-obsd.h: New file.
9195 * config/powerpc/obsd.mt: New file.
9196
9197 2004-04-22 Andrew Cagney <cagney@redhat.com>
9198
9199 * frame.h (show_frame_info): Delete declaration.
9200
9201 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
9202 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
9203 * m32r-tdep.c (m32r_frame_this_id): Ditto.
9204 * frv-tdep.c (frv_frame_this_id): Ditto.
9205 * avr-tdep.c (avr_frame_this_id): Ditto.
9206
9207 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
9208
9209 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
9210
9211 2004-04-22 Jim Blandy <jimb@redhat.com>
9212
9213 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
9214 register number zero.
9215
9216 2004-04-21 Michael Snyder <msnyder@redhat.com>
9217
9218 * mips-tdep.c (heuristic_proc_start):
9219 Warning() already prefixes "Warning: ".
9220
9221 2004-04-21 Andrew Cagney <cagney@redhat.com>
9222
9223 * annotate.h (deprecated_annotate_starting_hook)
9224 (deprecated_annotate_stopped_hook)
9225 (deprecated_annotate_exited_hook)
9226 (deprecated_annotate_signal_hook)
9227 (deprecated_annotate_signalled_hook): Deprecate.
9228 * tracepoint.h (deprecated_create_tracepoint_hook)
9229 (deprecated_delete_tracepoint_hook)
9230 (deprecated_modify_tracepoint_hook)
9231 (deprecated_trace_find_hook)
9232 (deprecated_trace_start_stop_hook): Deprecate.
9233 * target.h (deprecated_target_new_objfile_hook): Deprecate.
9234 * remote.h (deprecated_target_resume_hook)
9235 (deprecated_target_wait_loop_hook): Deprecate.
9236 * gdbcore.h (deprecated_exec_file_display_hook)
9237 (deprecated_file_changed_hook): Deprecate.
9238 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
9239 * defs.h (deprecated_modify_breakpoint_hook)
9240 (deprecated_command_loop_hook, deprecated_show_load_progress)
9241 (deprecated_print_frame_info_listing_hook)
9242 (deprecated_query_hook, deprecated_warning_hook)
9243 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
9244 (deprecated_delete_breakpoint_hook)
9245 (deprecated_interactive_hook, deprecated_registers_changed_hook)
9246 (deprecated_readline_begin_hook, deprecated_readline_hook)
9247 (deprecated_readline_end_hook, deprecated_register_changed_hook)
9248 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
9249 (deprecated_context_hook, deprecated_target_wait_hook)
9250 (deprecated_attach_hook, deprecated_detach_hook)
9251 (deprecated_call_command_hook, deprecated_set_hook)
9252 (deprecated_error_hook, deprecated_error_begin_hook)
9253 (deprecated_ui_load_progress_hook): Deprecate.
9254 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
9255 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
9256 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
9257 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
9258 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
9259 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
9260 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
9261 * annotate.c, aix-thread.c: Update.
9262
9263 2004-04-21 Andrew Cagney <cagney@redhat.com>
9264
9265 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
9266 * vaxnbsd-tdep.c: Include "gdb_string.h".
9267
9268 * symfile.c (symbol_file_add_from_memory): #if 0 function.
9269 (add_symbol_file_from_memory_command): #if 0 function body, call
9270 error instead.
9271
9272 2004-04-21 Andrew Cagney <cagney@redhat.com>
9273
9274 * gdbcore.h: Update copyright.
9275 (deprecated_add_core_fns): Rename add_core_fns.
9276 * win32-nat.c (_initialize_core_win32): Update.
9277 * sun3-nat.c (_initialize_core_sun3): Update.
9278 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
9279 * rs6000-nat.c (_initialize_core_rs6000): Update.
9280 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
9281 * nto-tdep.c (_initialize_nto_tdep): Update.
9282 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
9283 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
9284 * mips-nat.c (_initialize_core_mips): Update.
9285 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
9286 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
9287 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
9288 * lynx-nat.c (_initialize_core_lynx): Update.
9289 * irix5-nat.c (_initialize_core_irix5): Update.
9290 * i386-interix-nat.c (_initialize_core_interix): Update.
9291 * cris-tdep.c (_initialize_cris_tdep): Update.
9292 * corelow.c (deprecated_add_core_fns): Update.
9293 * core-regset.c (_initialize_core_regset): Update.
9294 * core-aout.c (_initialize_core_aout): Update.
9295 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
9296 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
9297 * alpha-nat.c (_initialize_core_alpha): Update.
9298
9299 2004-04-21 Jim Blandy <jimb@redhat.com>
9300
9301 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
9302
9303 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
9304
9305 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
9306 Delete.
9307 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
9308 (read_attribute_value): Update calls to dwarf_alloc_block.
9309 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
9310 dwarf2_tmp_obstack.
9311 (psymtab_to_symtab_1): Likewise. Clean up using
9312 free_stack_comp_unit.
9313 (add_to_cu_func_list): Use the comp_unit_obstack.
9314
9315 2004-04-19 Joel Brobecker <brobecker@gnat.com>
9316
9317 * dwarf2read.c (dwarf2_flag_true_p): New function.
9318 (die_is_declaration): Use the function above. Add some comments.
9319
9320 2004-04-19 Mark Kettenis <kettenis@gnu.org>
9321
9322 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
9323 architecture when registering sparcnbsd_core_osabi_sniffer.
9324 Adjust comment.
9325
9326 2004-04-18 Mark Kettenis <kettenis@gnu.org>
9327
9328 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
9329 return value.
9330
9331 Based on a patch from Brian Ford <ford@vss.fsi.com>:
9332 * i386-tdep.c: Correct register numbering scheme comments
9333 throughout.
9334 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
9335 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
9336 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
9337 (i386_gdb_arch_init): Likewise.
9338
9339 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
9340 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
9341 ppcnbsd-tdep.o.
9342
9343 * m68k-tdep.h: Tweak comments.
9344 * m68k-tdep.c: Tweak comment.
9345
9346 2004-04-17 Randolph Chung <tausq@debian.org>
9347
9348 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
9349 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
9350 (hppa_hpux_som_init_abi): Set is_elf to 0.
9351 (hppa_hpux_elf_init_abi): Set is_elf to 1.
9352 * hppa-tdep.c (low_text_segment_address): Remove global.
9353 (record_text_segment_lowaddr): Pass in low address as parameter. Use
9354 section offset to calculate segment address.
9355 (internalize_unwinds): Define low_text_segment_address as local and
9356 pass to record_text_segment_lowaddr for ELF targets.
9357 (hppa_gdbarch_init): Zero fill tdep structure.
9358 (hppa_dump_tdep): Print tdep structure.
9359 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
9360
9361 2004-04-17 Randolph Chung <tausq@debian.org>
9362
9363 * hppa-tdep.c (hppa_pseudo_register_read): Define.
9364 (hppa_gdbarch_init): Set pseudo_register_read.
9365 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
9366 * regcache.c (supply_register): Remove check for
9367 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
9368
9369 2004-04-17 Randolph Chung <tausq@debian.org>
9370
9371 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
9372 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
9373 (hpread_adjust_stack_address): Move to hpread.c.
9374 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
9375 obj_private_struct): Move from tm-hppa.h.
9376 * hpread.c (hppa-tdep.h): Include.
9377 (hpread_adjust_stack_address): Move from hppa-tdep.c.
9378 (hpread_read_function_type, hpread_read_doc_function_type)
9379 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
9380 directly.
9381 * pa64solib.c (hppa-tdep.h): Include.
9382 * somsolib.c (hppa-tdep.h): Include.
9383 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
9384 inferior_status): Remove unused forward declarations.
9385 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
9386 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
9387 obj_private_struct): Move to hppa-tdep.h.
9388 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
9389
9390 2004-04-17 Randolph Chung <tausq@debian.org>
9391
9392 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
9393 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
9394 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
9395 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
9396 Remove forward declaration and make static.
9397 (hppa_reg_struct_has_addr): Remove.
9398
9399 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9400
9401 * observer.sh: Move comments in sed command to first column.
9402
9403 2004-04-16 Jason Molenda (jmolenda@apple.com)
9404
9405 * frame.c: Minor typeo corrections in comments.
9406
9407 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9408
9409 * observer.c (observer_test_first_notification_function): Update
9410 function profile.
9411 (observer_test_second_notification_function): Likewise.
9412 (observer_test_third_notification_function): Likewise.
9413
9414 2004-04-16 Mark Kettenis <kettenis@gnu.org>
9415
9416 From Brian Ford <ford@vss.fsi.com>:
9417 * i386-tdep.c (i386_coff_init_abi): New function.
9418 * i386-tdep.h (i386_coff_init_abi): New prototype.
9419 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
9420 register number translation functions for DWARF and DWARF 2.
9421
9422 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9423
9424 * dwarf2read.c: Back out my previous change, it was incorrect.
9425
9426 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
9427
9428 * dwarf2read.c: Include "hashtab.h".
9429 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
9430 has_namespace_info.
9431 (struct partial_die_info): Add comments. Use bitfields to reduce
9432 memory footprint. Add scope, scope_set, has_specification,
9433 spec_offset, die_parent, die_child, and die_sibling.
9434 (peek_die_abbrev): Add prototype.
9435 (partial_read_comp_unit_head): New function, broken out from
9436 dwarf2_build_psymtabs_hard.
9437 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
9438 Use partial_read_comp_unit_head. Initialize the CU and
9439 comp_unit_obstack. Update calls to read_partial_die and
9440 scan_partial_symbols. Use free_stack_comp_unit and
9441 load_partial_dies.
9442 (scan_partial_symbols): Change PDI to a pointer. Use the child and
9443 sibling pointers to walk partial DIEs. Call fixup_partial_die.
9444 Update calls to helper functions. Remove NAMESPACE argument.
9445 Update comments.
9446 (partial_die_parent_scope, partial_die_full_name): New functions.
9447 (add_partial_symbol): Remove namespace argument. Update call to
9448 pdi_needs_namespace. Use partial_die_full_name. Handle
9449 DW_TAG_namespace. Check has_namespace_info flag.
9450 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
9451 tag. Handle namespaces.
9452 (add_partial_namespace, add_partial_enumeration): Simplify.
9453 (guess_structure_name): New function, derived from
9454 add_partial_structure.
9455 (add_partial_structure): Remove.
9456 (determine_class_name): Update comment.
9457 (dwarf2_read_abbrevs): Set has_namespace_info flag.
9458 (is_type_tag_for_partial, load_partial_dies): New functions.
9459 (read_partial_die): Pass abbrev and abbrev_len as arguments.
9460 Record specifications instead of following them immediately.
9461 (find_partial_die_in_comp_unit, find_partial_die)
9462 (fixup_partial_die, free_stack_comp_unit)
9463 (hashtab_obstack_allocate, dummy_obstack_deallocate)
9464 (partial_die_hash, partial_die_eq): New functions.
9465 * Makefile.in (hashtab_h): Define.
9466 (dwarf2read.o): Update dependencies.
9467 (observer_inc, observer_h): Move to the correct section.
9468
9469 2004-04-15 Joel Brobecker <brobecker@gnat.com>
9470
9471 * dwarf2read.c (dwarf2_attribute_true_p): New function.
9472 (die_is_declaration): Use the function above. Add comment.
9473
9474 2004-04-15 Joel Brobecker <brobecker@gnat.com>
9475
9476 * dwarf2read.c (read_structure_scope): Identify stub types
9477 using die_is_declaration() only.
9478
9479 2004-04-15 Roland McGrath <roland@redhat.com>
9480
9481 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
9482 argument instead of NAME.
9483 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
9484 in call to symbol_file_add_with_addrs_or_offsets.
9485 (build_addr_info): New function, helper for ...
9486 (symbol_file_add_from_memory): New function.
9487 (add_symbol_file_from_memory_command): New function using that.
9488 (_initialize_symfile): Register it for add-symbol-file-from-memory.
9489 (pre_add_symbol_hook): Add const to argument type.
9490 * symfile.h (symbol_file_add_from_memory): Declare it.
9491
9492 2004-04-15 Mark Kettenis <kettenis@gnu.org>
9493
9494 * NEWS (New native configurations): Mention OpenBSD/vax.
9495 * configure.host: Add vax-*-openbsd*.
9496 * config/vax/obsd.mh: New file.
9497 * config/vax/nm-obsd.h: New file.
9498
9499 * vax-tdep.c: Include "regset.h".
9500 (vax_supply_gregset): New function.
9501 (vax_gregset): New variable.
9502 (vax_regset_from_core_section): New function.
9503 (vax_gdbarch_init): Set regset_from_core_section.
9504 * Makefile.in (vax-tdep.o): Update dependencies.
9505
9506 2004-04-15 Andrew Cagney <cagney@redhat.com>
9507
9508 * observer.c (normal_stop_subject, observer_notify_normal_stop)
9509 (observer_normal_stop_notification_stub)
9510 (observer_attach_normal_stop, observer_detach_normal_stop):
9511 Delete, replaced by #include "observer.inc".
9512 * infrun.c (normal_stop): Pass "stop_bpstat" to
9513 observer_notify_normal_stop.
9514 * Makefile.in (observer_inc): Define.
9515 (observer.o): Update dependencies.
9516 (observer.h, observer.inc): New rules.
9517 * observer.h: Delete file.
9518 * observer.sh: New file.
9519
9520 2004-04-15 Mark Kettenis <kettenis@gnu.org>
9521
9522 * vax-tdep.c (vax_frame_cache): Fix typo.
9523
9524 2004-04-14 Mark Kettenis <kettenis@gnu.org>
9525
9526 * NEWS (New native configurations): Mention NetBSD/vax.
9527 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
9528 * config/vax/nbsdelf.mh: New file.
9529 * config/vax/nbsdaout.mh: New file.
9530 * config/vax/nm-nbsd.h: New file.
9531 * config/vax/nm-nbsdaout.h: New file.
9532
9533 * vaxnbsd-tdep.c: New file.
9534 * Makefile.in (vaxnbsd-tdep.o): New dependency.
9535 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
9536 * config/vax/nbsd.mt: New file.
9537 * config/vax/tm-nbsd.h: New file.
9538
9539 * Makefile.in (vaxbsd-nat.o): New dependency.
9540
9541 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
9542 * vax-tdep.c (vax_store_arguments): Remove struct_return and
9543 struct_addr arguments. Don't push return value address.
9544 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
9545 arguments to vax_store_arguments. Store return value address in
9546 R1.
9547 (vax_store_struct_return, vax_extract_return_value)
9548 (vax_store_return_value): Remove functions.
9549 (vax_return_value): New function.
9550 (vax_gdbarch_init): Set return value. Don't set
9551 deprecated_store_struct_return, deprecated_extract_struct_return
9552 and deprecated_store_return_value.
9553
9554 2004-04-14 Andreas Schwab <schwab@suse.de>
9555
9556 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
9557 value buffer.
9558 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
9559
9560 2004-04-14 Mark Kettenis <kettenis@gnu.org>
9561
9562 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
9563 (vax_unwind_dummy_id): New functions.
9564 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
9565 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
9566 variables.
9567 (vax_fix_call_dummy): Remove function.
9568 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
9569 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
9570 call_dummy_location, deprecated_call_dummy_words,
9571 deprecated_sizeof_call_dummy_words,
9572 deprecated_call_dummy_breakpoint_offset,
9573 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
9574 and deprecated_dummy_write_sp.
9575
9576 2004-04-13 David Carlton <carlton@kealia.com>
9577
9578 * MAINTAINERS: Move myself to "paper trail" section.
9579
9580 2004-04-12 Mark Kettenis <kettenis@gnu.org>
9581
9582 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
9583 "trad-frame.h".
9584 (vax_frame_init_saved_regs): Remove function.
9585 (vax_sigtramp_saved_pc): Remove function.
9586 (vax_frame_saved_pc): Remove function.
9587 (vax_frame_args_address): Remove function.
9588 (vax_frame_num_args): Rewrite.
9589 (vax_frame_chain): Remove function.
9590 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
9591 VAX_FP_REGNUM.
9592 (vax_pop_frame): Likewise.
9593 (vax_saved_pc_after_call): Remove function.
9594 (struct vax_frame_cache): New structure.
9595 (vax_frame_cache): New function.
9596 (vax_frame_this_id): New function.
9597 (vax_frame_prev_register): New function.
9598 (vax_frame_unwind): New variable.
9599 (vax_frame_sniffer): New function.
9600 (vax_frame_base_address): New function.
9601 (vax_frame_args_address): New function.
9602 (vax_frame_base): New variable.
9603 (vax_unwind_pc): New function.
9604 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
9605 deprecated_fp_regnum, deprecated_saved_pc_after_call,
9606 deprecated_frame_chain, deprecated_frame_saved_pc,
9607 deprecated_frame_args_address and
9608 deprecated_frame_init_saved_regs.
9609 * Makefile.in (vax-tdep.o): Update dependencies.
9610
9611 * vaxbsd-nat.c: New file.
9612
9613 * vax-tdep.h: Update copyright year. Adjust comments.
9614 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
9615 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
9616 (vax_regnum): New enum. Replacing...
9617 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
9618 (VAX_PS_REGNUM): ... these removed macros.
9619 * vax-tdep.c (vax_register_name): Remove prototype.
9620 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
9621 (vax_register_byte, vax_register_raw_size,
9622 vax_register_virtual_size, vax_register_virtual_type): Remove
9623 functions.
9624 (vax_register_type): New function.
9625 (vax_breakpoint_from_pc): Reorganize.
9626 (vax_gdbarch_init): Set register_type. Don't set
9627 deprecated_register_size, deprecated_register_bytes,
9628 deprecated_register_byte, deprecated_register_raw_size,
9629 deprecated_max_register_raw_size,
9630 deprecated_register_virtual_size,
9631 deprecated_max_register_virtual_size and
9632 deprecated_register_virtual_type. Add comment on stack direction.
9633
9634 2004-04-11 Mark Kettenis <kettenis@gnu.org>
9635
9636 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
9637 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
9638 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
9639
9640 2004-04-10 Randolph Chung <tausq@debian.org>
9641
9642 * MAINTAINERS (write after approval): Add myself.
9643
9644 2004-04-07 Randolph Chung <tausq@debian.org>
9645
9646 * hppa-tdep.c (hppa_inner_than): Remove.
9647 (is_pa_2): Remove unused static variable.
9648 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
9649
9650 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
9651
9652 * language.h (language_defn): Add new la_post_parser field.
9653 * parser-defs.h (null_post_parser): New declaration (default for
9654 la_post_parser).
9655
9656 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
9657 insert call to that function.
9658 (parse_exp_in_context): New function, including code formerly in
9659 parse_exp_1. Calls language-dependent post-parser after
9660 prefixification.
9661 (parse_expression_in_context): New exported function.
9662 (null_post_parser): New definition.
9663 * expression.h (parse_expression_in_context): Add declaration.
9664
9665 * p-lang.c (pascal_language_defn): Add trivial post-parser.
9666 * c-lang.c (c_language_defn): Ditto.
9667 (cplus_language_defn): Ditto.
9668 (asm_language_defn): Ditto.
9669 (minimal_language_defn): Ditto.
9670 * f-lang.c (f_language_defn): Ditto.
9671 * jv-lang.c (java_language_defn): Ditto.
9672 * language.c (unknown_language_defn): Ditto.
9673 (auto_language_defn): Ditto.
9674 (local_language_defn): Ditto.
9675 * m2-lang.c (m2_language_defn): Ditto.
9676 * scm-lang.c (scm_language_defn): Ditto.
9677 * obj-lang.c (objc_language_defn): Ditto.
9678
9679 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9680
9681 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
9682 (amd64nbsd_mcontext_addr): New function.
9683 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
9684 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
9685 with amd64nbsd_r_reg_offset, instead of building it on the fly.
9686
9687 * corelow.c (core_xfer_partial): Fix coding standards violation.
9688 Add support for TARGET_OBJECT_WCOOKIE.
9689
9690 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
9691 deprecated_pc_in_sigtramp.
9692 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
9693 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
9694 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
9695 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9696 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
9697 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9698 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
9699
9700 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
9701 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
9702 Fix typo.
9703
9704 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
9705 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
9706 (amd64_collect_fxsave): Likewise.
9707
9708 * i386-sol2-tdep.c: Include "gdb_string.h".
9709 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
9710 name.
9711 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9712
9713 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9714
9715 * i386-sol2-tdep.c: Include "solib-svr4.h".
9716 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9717 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9718 * config/i386/tm-i386sol2.h: Include :solib.h".
9719 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
9720 solib-svr4.o and solib-legacy.o.
9721 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
9722 solib-svr4.o.
9723
9724 2004-04-09 Mark Kettenis <kettenis@gnu.org>
9725
9726 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
9727 whether a register is supplied by PTRACE_GETFPREGS.
9728 (store_inferior_registers): Likewise.
9729 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
9730 whether a register is supplied by PT_GETFPREGS.
9731 (store_inferior_registers): Likewise.
9732
9733 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
9734 * config/i386/linux64.mt (TDEPFILES): Likewise.
9735
9736 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
9737
9738 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
9739 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9740 the program counter is in the range specified by `struct
9741 gdbarch_tdep'.
9742 * amd64-linux-tdep.c: Include "symtab.h".
9743 (amd64_linux_pc_in_sigtramp): Remove function.
9744 (amd64_linux_sigtramp_p): New function.
9745 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9746 deprecated_pc_in_sigtramp.
9747 * amd64nbsd-tdep.c: Include "symtab.h".
9748 (amd64nbsd_sigtramp_p): New function.
9749 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9750 deprecated_pc_in_sigtramp.
9751 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
9752 few comments.
9753 (amd64obsd_pc_in_sigtramp): Remove function.
9754 (amd64obsd_sigtramp_p): New function.
9755 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9756 deprecated_pc_in_sigtramp.
9757 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
9758 (i386bsd_pc_ins_sigtramp): Remove prototype.
9759 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
9760 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
9761 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9762 the program counter is in the range specified by `struct
9763 gdbarch_tdep'.
9764 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
9765 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
9766 (i386_go32_pc_in_sigtramp): Remove function.
9767 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
9768 Initialize TDEP->sigtramp_p.
9769 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
9770 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
9771 deprecated_pc_in_sigtramp.
9772 * i386-linux-tdep.c: Adjust comments.
9773 (i386_linux_pc_in_sigtramp): Remove function.
9774 (i386_linux_sigtramp_p): New function.
9775 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9776 deprecated_pc_in_sigtramp.
9777 * i386-nto-tdep.c: Update copyright year.
9778 (i386nto_pc_in_sigtramp): Remove function.
9779 (i386nto_sigtramp_p): New function.
9780 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
9781 SP_REGNUM.
9782 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
9783 deprecated_pc_in_sigtramp.
9784 * i386-sol2-tdep.c: Update copyright year.
9785 (i386_sol2_pc_in_sigtramp): Remove function.
9786 (i386_sol2_sigtramp_p): New function.
9787 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
9788 deprecated_pc_in_sigtramp.
9789 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
9790 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
9791 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9792 deprecated_sigtramp_start and deprecated_sigtramp_end.
9793 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
9794 (i386nbsd_pc_in_sigtramp): Remove function.
9795 (i386nbsd_sigtramp_p): New function.
9796 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9797 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9798 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
9799 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
9800 (i386obsd_pc_in_sigtramp): Remove function.
9801 (i386obsd_sigtramp_p): New function.
9802 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
9803 functions.
9804 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9805 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9806 TDEP->sigtramp_p.
9807 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
9808 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
9809 dependencies.
9810
9811 * config/i386/i386aout.mt: Remove file.
9812
9813 * configure.tgt: Remove i[34567]86-*-go32*,
9814 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
9815 and i[34567]86-*-isc*. Set gdb_target to i386 for
9816 i[34567]86-*-netware* and i[34567]86-*-*.
9817 * config/i386/i386.mt: New file.
9818 * config/i386/embed.mt: Remove file.
9819 * config/i386/go32.mt: Remove file.
9820 * config/i386/i386nw.mt: Remove file.
9821 * config/i386/i386v.mt: Remove file.
9822 * config/i386/tm-go32.h: Remove file.
9823
9824 * tui/tui-hooks.c: Include "readline/readline.h" after
9825 "gdb_curses.h" instead of before.
9826 * tui/tui-io.c: Likewise.
9827
9828 * tui/tui.c: Fix typo in comment.
9829
9830 * sparc64-tdep.c (sparc_address_from_register): Remove function.
9831
9832 2004-04-08 Andrew Cagney <cagney@redhat.com>
9833
9834 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
9835 (deprecated_exception_support_initialized): Declare.
9836 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
9837 (initialize_hp_cxx_exception_support)
9838 (child_enable_exception_callback): Update.
9839 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
9840 (deprecated_exception_support_initialized): Rename
9841 deprecated_exception_catchpoints_are_fragile and
9842 deprecated_exception_support_initialized.
9843 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
9844
9845 * symtab.c (deprecated_hp_som_som_object_present): Rename
9846 hp_som_som_object_present.
9847 * symtab.h (deprecated_hp_som_som_object_present): Declare.
9848 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
9849 Update. Delete extern declaration.
9850 * valops.c (hp_som_som_object_present): Ditto.
9851 * parse.c (deprecated_hp_som_som_object_present)
9852 (parse_nested_classes_for_hpacc): Ditto.
9853 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
9854 * hppa-hpux-tdep.c (hp_som_som_object_present)
9855 (initialize_hp_cxx_exception_support): Ditto.
9856 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
9857 * cp-valprint.c (hp_som_som_object_present)
9858 (cp_print_class_method): Ditto.
9859 * c-typeprint.c (hp_som_som_object_present):
9860 (c_type_print_base): Ditto.
9861 * c-exp.y (hp_som_som_object_present): Ditto.
9862
9863 2004-04-08 Andrew Cagney <cagney@redhat.com>
9864
9865 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
9866 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
9867 (frame_unwind_find_by_frame): Re-implement the unwind code so
9868 that it can both prepend and append sniffers. Replace
9869 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
9870 * tramp-frame.c (tramp_frame_append): Use
9871 frame_unwind_prepend_unwinder.
9872 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
9873 frame_unwind_register_unwinder.
9874 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
9875 tramp_frame_append.
9876 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
9877 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
9878 (mips_linux_init_abi): Update.
9879
9880 2004-04-08 Kevin Buettner <kevinb@redhat.com>
9881
9882 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
9883 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
9884 file support.
9885
9886 2004-04-07 Kevin Buettner <kevinb@redhat.com>
9887
9888 * ia64-tdep.c (elf.h): Don't include.
9889 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
9890
9891 2004-04-07 Jason Molenda (jmolenda@apple.com)
9892
9893 * frame.h: Typeo corrections in comments.
9894
9895 2004-04-07 Jim Blandy <jimb@redhat.com>
9896
9897 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
9898 %esp and %ebp
9899
9900 2004-04-07 Mark Kettenis <kettenis@gnu.org>
9901
9902 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
9903 * config/sparc/linux64.mt (TDEPFILES): Likewise.
9904 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9905 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
9906 and solib-legacy.o.
9907 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
9908 solib-svr4.o.
9909 * config/sparc/tm-sol2.h: Update copyright year. Include
9910 "solib.h".
9911
9912 * sparc-sol2-tdep.c: Update copyright year. Include
9913 "solib-svr4.h".
9914 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9915 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
9916 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9917 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
9918 dependencies.
9919
9920 2004-04-06 Andrew Cagney <cagney@redhat.com>
9921
9922 * infttrace.c: Include "infttrace.h".
9923 * infttrace.h: Include "target.h".
9924 * Makefile.in (infttrace_h): Update.
9925 (infttrace.o): Update.
9926
9927 2004-04-06 Andrew Cagney <cagney@redhat.com>
9928
9929 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
9930 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
9931 move extern declarations from here ...
9932 * infttrace.h: ... to here.
9933 * Makefile.in (hppah-nat.o): Update dependencies.
9934
9935 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
9936 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
9937 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
9938 (hppa_breakpoint_from_pc): Delete.
9939
9940 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
9941
9942 2004-04-05 Andrew Cagney <cagney@redhat.com>
9943
9944 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
9945 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
9946 <sys/file.h>.
9947
9948 2004-04-06 Randolph Chung <tausq@debian.org>
9949
9950 Committed by Andrew Cagney (mechanical change).
9951 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
9952 exception_catchpoints_are_fragile, find_stub_with_shl_get,
9953 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
9954 child_enable_exception_callback, current_ex_event,
9955 null_symtab_and_line, child_get_current_exception_event,
9956 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
9957 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
9958 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
9959 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
9960 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
9961 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
9962 Move hpux-specific definitions ...
9963 * hppa-hpux-tdep.c: ... to here.
9964
9965 2004-04-05 Andrew Cagney <cagney@redhat.com>
9966
9967 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
9968 skip_prologue_using_sal.
9969
9970 2004-04-05 Andrew Cagney <cagney@redhat.com>
9971
9972 * config/i386/tm-i386.h: Delete file.
9973 * config/i386/tm-vxworks.h: Update copyright, do not include
9974 "tm-i386.h".
9975 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
9976 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
9977 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
9978 * config/i386/ncr3000.mt (TM_FILE): Delete.
9979 * config/i386/interix.mt (TM_FILE): Delete.
9980 * config/i386/i386v.mt (TM_FILE): Delete.
9981 * config/i386/i386nw.mt (TM_FILE): Delete.
9982 * config/i386/i386gnu.mt (TM_FILE): Delete.
9983 * config/i386/i386aout.mt (TM_FILE): Delete.
9984 * config/i386/embed.mt (TM_FILE): Delete.
9985
9986 2004-04-05 Kevin Buettner <kevinb@redhat.com>
9987
9988 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
9989 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
9990 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
9991 (accg7_regnum): New constants.
9992 (last_spr_regnum, last_pseudo_regnum): Update.
9993 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
9994 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
9995 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
9996 for accg registers.
9997 (frv_register_sim_regno): Update spr_map[].
9998
9999 2004-04-04 Andrew Cagney <cagney@redhat.com>
10000
10001 * config/mips/xm-riscos.h: Delete.
10002 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
10003 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
10004 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
10005 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
10006 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
10007 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
10008 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
10009 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
10010 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
10011 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
10012 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
10013 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
10014 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
10015 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
10016 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
10017 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
10018 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
10019 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
10020 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
10021 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
10022 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
10023 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
10024 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
10025 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
10026 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
10027 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
10028
10029 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
10030 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
10031 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
10032 * configure.host: Remove m680[01]0-sun-sunos3*,
10033 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
10034 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
10035 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
10036 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
10037 mips-*-riscos*.
10038 * NEWS: Mention removed systems.
10039
10040 2004-04-04 Andrew Cagney <cagney@redhat.com>
10041
10042 GDB 6.1 release created from 6.1 branch.
10043
10044 2004-04-04 Andrew Cagney <cagney@redhat.com>
10045
10046 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
10047 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
10048 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
10049
10050 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
10051 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
10052 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
10053
10054 2004-04-03 Jim Blandy <jimb@redhat.com>
10055
10056 * MAINTAINERS: Chris Faylor has changed employers; add him to
10057 "paper trail" section, and update his E-mail address.
10058
10059 2004-04-03 Andrew Cagney <cagney@redhat.com>
10060
10061 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
10062 generic dummy frames.
10063 * dummy-frame.c: Update copyright.
10064 (dummy_frame_sniffer): Delete check for generic dummy frames.
10065
10066 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
10067 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
10068 (REG_PARM_STACK_SPACE): Delete.
10069 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
10070 Inline reference to REG_PARM_STACK_SPACE.
10071
10072 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
10073 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
10074 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
10075 (FRAME_BASE_BEFORE_SIGTRAMP)
10076 (hppa32_hpux_frame_base_before_sigtramp)
10077 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
10078 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
10079 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
10080 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
10081 (FRAME_BASE_BEFORE_SIGTRAMP)
10082 (hppa64_hpux_frame_base_before_sigtramp)
10083 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
10084
10085 2004-04-03 Andrew Cagney <cagney@redhat.com>
10086
10087 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
10088
10089 2004-04-02 Andrew Cagney <cagney@redhat.com>
10090
10091 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
10092 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
10093 * dummy-frame.h: Delete out-of-date comments.
10094 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
10095 * gdbarch.h, gdbarch.c: Re-generate.
10096
10097 2004-04-02 Joel Brobecker <brobecker@gnat.com>
10098
10099 Committed by Andrew Cagney <cagney@redhat.com>.
10100 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
10101 into account an instruction saving a register if we have already
10102 seen an earlier instruction saving that same register.
10103
10104 2004-04-02 Andrew Cagney <cagney@redhat.com>
10105
10106 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
10107 * gdbarch.h, gdbarch.c: Re-generate.
10108 * frame.c (legacy_get_prev_frame): Delete references to
10109 DEPRECATED_INIT_FRAME_PC_FIRST.
10110
10111 * infrun.c (pc_in_sigtramp): Delete function.
10112 (check_sigtramp2): Inline call to pc_in_sigtramp, use
10113 get_frame_type.
10114
10115 2004-04-02 Andrew Cagney <cagney@redhat.com>
10116
10117 * infrun.c (handle_step_into_function): Delete code conditional on
10118 legacy_frame_p.
10119 (handle_inferior_event, step_over_function): Ditto.
10120
10121 2004-04-02 Andrew Cagney <cagney@redhat.com>
10122
10123 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
10124 "previous frame inner to this frame" test.
10125
10126 2004-04-02 Andrew Cagney <cagney@redhat.com>
10127
10128 * frame.c (safe_frame_unwind_memory): New function.
10129 * frame.h (safe_frame_unwind_memory): Declare. Update description
10130 of /safe_/ methods.
10131 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
10132 "next_frame". Use safe_frame_unwind_memory.
10133 (tramp_frame_sniffer): Update call to tramp_frame_start.
10134
10135 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
10136
10137 * dwarf2read.c (dwarf2_objfile_data_key): New.
10138 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
10139 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
10140 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
10141 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
10142 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
10143 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
10144 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
10145 Remove variables.
10146 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
10147 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
10148 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
10149 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
10150 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
10151 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
10152 Remove macros.
10153 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
10154 data.
10155 (dwarf2_locate_sections, dwarf2_build_psymtabs)
10156 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
10157 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
10158 (read_partial_die, read_full_die, read_indirect_string)
10159 (dwarf_decode_line_header, dwarf_decode_macros)
10160 (dwarf2_symbol_mark_computed): Remove use of removed macros.
10161 Update uses of removed variables.
10162 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
10163 of removed macros.
10164 (_initialize_dwarf2_read): New function.
10165 * symfile.h (dwarf2_has_info): Update prototype.
10166 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
10167 * elfread.c (elf_symfile_read): Likewise.
10168
10169 2004-04-01 Jim Blandy <jimb@redhat.com>
10170
10171 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
10172 function for register numbers on all the rs6000-derived targets.
10173 (rs6000_gdbarch_init): Don't register a separate
10174 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
10175 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
10176 variants.
10177
10178 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
10179 numbering.
10180
10181 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
10182
10183 * valarith.c: Update copyright notice.
10184 (value_add): Handle range types.
10185 (value_sub): Ditto.
10186 (value_equal): Ditto.
10187 (value_less): Ditto.
10188 (value_neg): Ditto.
10189 (value_complement): Ditto.
10190 (value_binop): Simplify slightly by using is_integral_type and
10191 eliminiating unnecessary COERCE_ENUMs.
10192
10193 2004-03-31 Andrew Cagney <cagney@redhat.com>
10194
10195 * frame.h (frame_unwind_id): Declare.
10196 * frame.c (frame_unwind_id): New function.
10197 (get_prev_frame_1): New function.
10198 (frame_debug_got_null_frame): New function.
10199 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
10200 code proper to prev_frame, update description.
10201 * infrun.c (step_over_function): Use frame_unwind_id.
10202
10203 2004-04-31 J. Brobecker <brobecker@gnat.com>
10204
10205 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
10206 (hppa64_push_dummy_call): Likewise.
10207
10208 2004-03-30 Jim Blandy <jimb@redhat.com>
10209
10210 From Ulrich Weigand:
10211 * utils.c (query): Do not use a va_list variable multiple times.
10212
10213 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
10214
10215 * Makefile.in (linux_nat_h): Update dependencies.
10216 * configure.in: Check for <gnu/libc-version.h>.
10217 * configure: Regenerate.
10218 * config.in: Regenerate.
10219 * linux-nat.h: Include "target.h". Add waitstatus field to
10220 struct lwp_info.
10221 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
10222 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
10223 to.
10224 (lin_lwp_handle_extended): New function. Handle clone events.
10225 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
10226 thread exit events.
10227 (child_wait): Handle clone events.
10228 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
10229 * linux-nat.c (linux_enable_event_reporting): Turn on
10230 PTRACE_O_TRACECLONE.
10231 (linux_handle_extended_wait): Handle clone events.
10232 * thread-db.c: Include <gnu/libc-version.h>.
10233 (struct private_thread_info): Add dying flag.
10234 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
10235 higher.
10236 (attach_thread): Update comments. Handle dying threads.
10237 (detach_thread): Set the dying flag.
10238 (check_event): Always call attach_thread.
10239
10240 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
10241
10242 * mips-tdep.c (mips_pdr_data): New.
10243 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
10244 (_initialize_mips_tdep): Initialize mips_pdr_data.
10245
10246 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
10247
10248 * minsyms.c (install_minimal_symbols): Move dropping leading
10249 char from linkage name from here...
10250 (prim_record_minimal_symbol_and_info): ...to here. Simplify
10251 test for "__gnu_compiled*" symbols.
10252
10253 2004-03-28 Jim Blandy <jimb@redhat.com>
10254
10255 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
10256 registers to temp register r0 and byte stores as prologue
10257 instructions.
10258
10259 2004-03-28 Andrew Cagney <cagney@redhat.com>
10260
10261 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
10262 arm*-*-*.
10263
10264 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
10265
10266 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
10267 and switch the layout to force a display of register window.
10268
10269 2004-02-26 J. Brobecker <brobecker@gnat.com>
10270
10271 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
10272 of the INTEGER class.
10273
10274 2004-03-26 Jim Blandy <jimb@redhat.com>
10275
10276 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
10277 bytes long on PPC GNU/Linux.
10278
10279 2004-03-26 David Carlton <carlton@kealia.com>
10280
10281 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
10282
10283 2004-03-25 Andrew Cagney <cagney@redhat.com>
10284
10285 * PROBLEMS: Add general section titles, remove references to
10286 specific releases.
10287
10288 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
10289
10290 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
10291 INT_REGISTER_SIZE.
10292 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
10293 FP_REGISTER_VIRTUAL_SIZE.
10294 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
10295 of DEPRECATED_REGISTER_RAW_SIZE.
10296 (arm_register_type): Add gdbarch argument.
10297 (arm_register_raw_size, arm_register_virtual_size): Delete.
10298 (arm_register_byte, arm_extract_return_value)
10299 (arm_store_return_value, arm_get_longjmp_target): Update references
10300 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
10301 (arm_gdbarch_init): Likewise. Don't set
10302 deprecated_register_raw_size, deprecated_register_virtual_size,
10303 deprecated_max_register_raw_size,
10304 deprecated_max_register_virtual_size, or
10305 deprecated_max_register_virtual_type. Do set register_type.
10306 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
10307 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
10308 (FP_REGISTER_VIRTUAL_SIZE): Delete.
10309 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
10310 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
10311 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
10312 INT_REGISTER_SIZE.
10313 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
10314 (remote_rdp_store_register): Likewise.
10315
10316 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
10317
10318 * Makefile.in (mips-linux-tdep.o): Update dependencies.
10319 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
10320 to after osabi initialization.
10321 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
10322 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
10323 functions.
10324 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
10325 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
10326 variables.
10327 (mips_linux_init_abi): Append signal trampoline unwinders.
10328
10329 2004-03-24 Andrew Cagney <cagney@redhat.com>
10330
10331 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
10332 * tramp-frame.c: Include "gdb_assert.h".
10333 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
10334 correct sizeof.
10335 (tramp_frame_append): Validate the tramp frame's instructions.
10336 * Makefile.in (tramp-frame.o): Update dependencies.
10337
10338 2004-03-23 Andrew Cagney <cagney@redhat.com>
10339
10340 * trad-frame.h (trad_frame_set_reg_addr): Declare.
10341
10342 2004-03-23 Andrew Cagney <cagney@redhat.com>
10343
10344 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
10345 Nasser as past testsuite/lib/ (and other) maintainers.
10346
10347 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
10348
10349 * infcmd.c (attach_command): Reread symbols if we already have
10350 an exec file.
10351
10352 2004-03-23 Andrew Cagney <cagney@redhat.com>
10353
10354 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
10355
10356 2004-03-23 Andrew Cagney <cagney@redhat.com>
10357
10358 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
10359 * gdbarch.h, gdbarch.c: Re-generate.
10360 * i386obsd-tdep.c (i386obsd_init_abi): Update.
10361 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10362 * i386bsd-tdep.c (i386bsd_init_abi): Update.
10363 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
10364 (DEPRECATED_SIGTRAMP_START): Update.
10365 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
10366 (DEPRECATED_SIGTRAMP_START): Update.
10367 * blockframe.c (find_pc_sect_partial_function): Update.
10368 * arch-utils.c (legacy_pc_in_sigtramp): Update.
10369
10370 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
10371
10372 * remote.c (remote_open_1): Reopen the exec file and reread symbols
10373 if necessary.
10374
10375 2004-03-23 Andrew Cagney <cagney@redhat.com>
10376
10377 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
10378 predicate, deprecate.
10379 * gdbarch.h, gdbarch.c: Re-generate.
10380 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
10381 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
10382 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
10383 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
10384 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
10385 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
10386 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
10387 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
10388 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
10389 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
10390 * blockframe.c (find_pc_partial_function): Update.
10391 * breakpoint.c (bpstat_what): Update.
10392 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
10393 * frv-linux-tdep.c (frv_linux_init_abi): Update.
10394 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
10395 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
10396 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10397 * i386-linux-tdep.c (i386_linux_init_abi): Update.
10398 * i386-nto-tdep.c (i386nto_init_abi): Update.
10399 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
10400 * i386-tdep.c (i386_sigtramp_frame_sniffer)
10401 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
10402 * i386bsd-tdep.c (i386bsd_init_abi): Update.
10403 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10404 * i386obsd-tdep.c (i386obsd_init_abi): Update.
10405 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
10406 * infrun.c (pc_in_sigtramp): Update.
10407 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
10408 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10409 * mips-tdep.c (mips_gdbarch_init): Update.
10410 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
10411 * ppc-linux-tdep.c: Update comment.
10412 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
10413 * shnbsd-tdep.c (shnbsd_init_abi): Update.
10414 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
10415 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
10416 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
10417 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
10418 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
10419 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
10420 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
10421 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
10422
10423 2004-03-23 Andrew Cagney <cagney@redhat.com>
10424
10425 * tramp-frame.h, tramp-frame.h: New files.
10426 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
10427 Update rules to include "tramp-frame.h" and "tramp-frame.c".
10428
10429 * Makefile.in: Update all dependencies.
10430
10431 2004-03-23 Andrew Cagney <cagney@redhat.com>
10432
10433 * Makefile.in (trad_frame_h): Add $(frame_h).
10434 * trad-frame.h: Update copyright. Include "frame.h".
10435 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
10436 (trad_frame_set_id, trad_frame_get_id): Declare.
10437 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
10438 * trad-frame.c: Update copyright.
10439 (struct trad_frame_cache): Define.
10440 (trad_frame_cache_zalloc): New function.
10441 (trad_frame_set_id, trad_frame_get_id): New functions.
10442 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
10443
10444 2004-03-22 Andrew Cagney <cagney@redhat.com>
10445
10446 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
10447 s390_pltstub_unwind_cache.
10448 (s390_stub_frame_unwind_cache): Rename
10449 s390_pltstub_frame_unwind_cache.
10450 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
10451 (s390_stub_frame_prev_register): Rename
10452 s390_pltstub_frame_prev_register.
10453 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
10454 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
10455
10456 From Ulrich Weigand:
10457 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
10458 pointer calls like PLT calls.
10459
10460 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
10461
10462 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
10463 PC rather than the partial function start address. Use the start
10464 address to sanity check the found PDR.
10465
10466 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
10467
10468 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
10469 linux_handle_extended_wait.
10470
10471 2004-03-22 Andrew Cagney <cagney@redhat.com>
10472
10473 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
10474 function.
10475
10476 * frame.h (generic_pop_current_frame): Delete declaration.
10477 (deprecate_pop_dummy_frame): Deprecate
10478 generic_pop_dummy_frame.
10479 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
10480 (generic_pop_current_frame): Delete function.
10481 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
10482 generic_pop_current_frame.
10483 * v850-tdep.c (v850_pop_frame): Update.
10484 * mcore-tdep.c (mcore_pop_frame): Update.
10485 * sh64-tdep.c (sh64_pop_frame): Update.
10486 * h8300-tdep.c (h8300_pop_frame): Update.
10487
10488 2004-03-22 Andrew Cagney <cagney@redhat.com>
10489
10490 * frame.h (deprecated_pc_in_call_dummy): Rename
10491 generic_pc_in_call_dummy.
10492 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
10493 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
10494 generic_pc_in_call_dummy.
10495 (pc_in_dummy_frame): Make static.
10496 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
10497 * gdbarch.h, gdbarch.c: Re-generate.
10498 * dummy-frame.c (dummy_frame_sniffer): Simplify.
10499 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
10500 (legacy_get_prev_frame): Ditto.
10501 * inferior.h: Delete reference to generic_pc_in_call_dummy in
10502 comment.
10503
10504 2004-03-21 Andrew Cagney <cagney@redhat.com>
10505
10506 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
10507 declaration and out-of-date comment.
10508 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10509 Delete function.
10510 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
10511 deprecated_pc_in_call_dummy.
10512
10513 * infrun.c (handle_inferior_event): For non legacy frames, use the
10514 frame ID and frame type to identify a signal trampoline. Update
10515 comments.
10516
10517 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
10518
10519 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
10520 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
10521
10522 2004-03-21 Andrew Cagney <cagney@redhat.com>
10523
10524 * frame-unwind.h: Update copyright.
10525 (struct frame_data): Add opaque declaration.
10526 (frame_sniffer_ftype): Declare.
10527 (struct frame_unwind): Add "unwind_data" and "sniffer".
10528 (frame_unwind_register_unwinder): Declare.
10529 (frame_unwind_find_by_frame): Add parameter "this_cache".
10530 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
10531 (legacy_get_prev_frame, legacy_get_prev_frame)
10532 (get_frame_type): Pass the prologue_cache to
10533 frame_unwind_find_by_frame.
10534 * frame-unwind.c (struct frame_unwind_table_entry): Add field
10535 "unwinder".
10536 (frame_unwind_register_unwinder): New function.
10537 (frame_unwind_find_by_frame): Handle an unwind sniffer.
10538
10539 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
10540
10541 * bcache.c (print_percentage): Use floating point to avoid
10542 incorrect results when portion*100 overflows.
10543
10544 2004-03-19 Kevin Buettner <kevinb@redhat.com>
10545
10546 * ppc_tdep.h (ppc_linux_frame_saved_pc)
10547 (ppc_linux_init_extra_frame_info)
10548 (ppc_linux_frameless_function_invocation)
10549 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
10550 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
10551 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
10552 (rs6000_frame_chain): Delete declarations.
10553 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
10554 (ppc_linux_init_extra_frame_info)
10555 (ppc_linux_frameless_function_invocation)
10556 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
10557 (ppc_linux_init_abi): Remove registration of above deleted functions.
10558 * rs6000-tdep.c (rs6000_init_extra_frame_info)
10559 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
10560 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
10561 (rs6000_pop_frame, rs6000_frameless_function_invocation)
10562 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
10563 (rs6000_gdbarch_init): Remove registration of above deleted functions.
10564 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
10565 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
10566 frame management for all OSABIs.
10567
10568 2004-03-19 Andrew Cagney <cagney@redhat.com>
10569
10570 Committed by Kevin Buettner <kevinb@redhat.com>.
10571
10572 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
10573 Update copyright.
10574 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
10575 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
10576 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
10577 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
10578 unwinders. #ifdef legacy frame code.
10579 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10580 "frame-base.h".
10581 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
10582 (struct rs6000_frame_cache, rs6000_frame_cache)
10583 (rs6000_frame_this_id, rs6000_frame_prev_register)
10584 (rs6000_frame_sniffer, rs6000_frame_unwind)
10585 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
10586 (rs6000_frame_base): Implement a traditional frame unwinder.
10587 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
10588 frame unwinder.
10589
10590 2004-03-19 Kevin Buettner <kevinb@redhat.com>
10591
10592 * breakpoint.c (adjust_breakpoint_address): Don't adjust
10593 breakpoint address for watchpoints or the catch eventpoints.
10594 Add new paramter ``bptype''. Adjust all callers.
10595
10596 2004-03-19 Andrew Cagney <cagney@redhat.com>
10597
10598 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
10599
10600 * PROBLEMS: Delete note that ARM does not use frame code, problem
10601 fixed.
10602
10603 2004-03-18 Andrew Cagney <cagney@redhat.com>
10604
10605 * stack.c (return_command): Delete code wrapped in #ifdef
10606 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
10607
10608 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
10609
10610 2004-03-18 Andrew Cagney <cagney@redhat.com>
10611
10612 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
10613 DEPRECATED_IN_SIGTRAMP.
10614 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10615 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
10616 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10617 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10618 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10619 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10620 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10621 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10622 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
10623 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
10624
10625 2004-03-18 Andrew Cagney <cagney@redhat.com>
10626
10627 * frame-base.c: Update copyright. Include "gdb_obstack.h".
10628 (struct frame_base_table_entry): Define.
10629 (struct frame_base_table): Re-implement as a linked list.
10630 (frame_base_init): Re-implement.
10631 (frame_base_table): Delete function.
10632 (append_predicate): Delete function.
10633 (frame_base_append_sniffer): Update.
10634 (frame_base_set_default): Update.
10635 (frame_base_find_by_frame): Update.
10636 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
10637 * Makefile.in (frame-base.o): Update dependencies.
10638
10639 2004-03-17 Andrew Cagney <cagney@redhat.com>
10640
10641 * frame.c (legacy_get_prev_frame): Pass correct frame to
10642 frame_unwind_find_by_frame.
10643
10644 2004-03-17 David Carlton <carlton@kealia.com>
10645
10646 * NEWS: Mention C++ nested types and namespaces
10647
10648 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
10649
10650 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
10651 and "Regressions since gdb 5.3.". Add known regressions since
10652 gdb 6.0.
10653
10654 2004-03-16 David Carlton <carlton@kealia.com>
10655
10656 * dwarf2read.c (process_structure_scope): Process children even
10657 when we're a declaration.
10658
10659 2004-03-16 Andrew Cagney <cagney@redhat.com>
10660
10661 * symtab.h (find_pc_sect_partial_function): Delete declaration.
10662 * blockframe.c (find_pc_partial_function)
10663 (find_pc_sect_partial_function): Merge into a single
10664 find_pc_partial_function.
10665
10666 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10667
10668 * i386bsd-nat.c: s/regno/regnum/g.
10669 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
10670 FP0_REGNUM.
10671 (store_inferior_registers): Likewise.
10672
10673 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10674
10675 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
10676 of i387_fill_fsave.
10677 (store_inferior_registers): Call i387_collect_fsave and
10678 i387_collect_fxsave instead of i387_fill_fsave and
10679 i387_fill_fxsave.
10680
10681 2004-03-15 Andrew Cagney <cagney@redhat.com>
10682
10683 * Makefile.in (frame-unwind.o): Update dependencies.
10684 * frame-unwind.c: Include "gdb_obstack.h".
10685 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
10686 parameter.
10687 (append_predicate): Delete function.
10688 (struct frame_unwind_table_entry): New structure.
10689 (struct frame_unwind_table): Replace "sniffer" with "head" and
10690 "tail".
10691 (frame_unwind_append_sniffer): Update.
10692 (frame_unwind_find_by_frame): Update.
10693 (_initialize_frame_unwind): Registe frame_unwind_init using
10694 gdbarch_data_register_pre_init.
10695
10696 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10697
10698 * i386bsd-nat.c: Update copyright year.
10699 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
10700 define unconditionally.
10701
10702 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10703
10704 * i387-tdep.h (i387_collect_fsave): New prototype.
10705 * i387-tdep.c (i387_collect_fsave): New function containing most
10706 of the code from i387_fill_fsave.
10707 (i387_fill_fsave): Call i387_collect_fsave.
10708
10709 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10710
10711 * i386-linux-tdep.c: Update copyright year.
10712 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
10713 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
10714 svr4_ilp32_link_map_offsets instead of
10715 i386_linux_svr4_fetch_link_map_offsets.
10716
10717 2004-03-15 David Carlton <carlton@kealia.com>
10718
10719 Fix for PR c++/1553:
10720 * dwarf2read.c (read_structure_type): Determine type name by
10721 calling determine_class_name.
10722 (determine_class_name): New.
10723 (determine_prefix): Look at TYPE_TAG_NAME and call
10724 determine_class_name when appropriate.
10725 (determine_prefix_aux, class_name): Delete.
10726 (read_namespace): Set die->type.
10727
10728 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10729
10730 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
10731 unused macro definition. The definition in target.h (or perhaps
10732 elsewhere) takes precedence.
10733
10734 2004-03-15 Andrew Cagney <cagney@redhat.com>
10735
10736 * ppc-tdep.h: Update copyright.
10737 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
10738 function signatures to match "regsets.h".
10739 * ppc-linux-tdep.c: Include "regset.h".
10740 (ELF_GREGSET_SIZE): Delete.
10741 (right_supply_register): New function.
10742 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
10743 using right_supply_register.
10744 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
10745 functions.
10746 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
10747 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
10748 (_initialize_ppc_linux_tdep): Do not register
10749 ppc_linux_regset_core_fns.
10750 (ppc_linux_regset_from_core_section): Replace
10751 fetch_core_registers.
10752 (ppc_linux_regset_core_fns): Delete.
10753 * ppc-linux-nat.c: (right_fill_reg): New function.
10754 (supply_gregset): Update call to ppc_linux_supply_gregset.
10755 (fill_gregset): Clear the register set, use right_fill_reg.
10756 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
10757 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
10758
10759 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
10760 unsigned.
10761
10762 2004-03-15 Andrew Cagney <cagney@redhat.com>
10763
10764 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
10765 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
10766 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
10767 and register_gdbarch_data.
10768 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
10769 (struct gdbarch_data): Replace "init" by "pre_init" and
10770 "post_init".
10771 * gdbarch.h, gdbarch.c: Re-generate.
10772 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
10773 with"obstack", use OBSTACK_ZALLOC.
10774 (dwarf2_frame_ops): Delete.
10775 (dwarf2_frame_set_init_reg): Use gdbarch_data.
10776 (dwarf2_frame_init_reg): Use gdbarch_data.
10777 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
10778 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
10779 (_initialize_svr4_solib): Update.
10780 * user-regs.c (_initialize_user_regs): Update.
10781 * reggroups.c (_initialize_reggroup): Update.
10782 * regcache.c (_initialize_regcache): Update.
10783 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
10784 * libunwind-frame.c (_initialize_libunwind_frame): Update.
10785 * gnu-v3-abi.c (init_gnuv3_ops): Update.
10786 * frame-unwind.c (_initialize_frame_unwind): Update.
10787 * frame-base.c (_initialize_frame_base): Update.
10788 * user-regs.c (user_reg_add): Update.
10789 * reggroups.c (reggroup_add): Update.
10790 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
10791 * libunwind-frame.c (libunwind_frame_set_descr): Update.
10792 * frame-unwind.c (frame_unwind_append_sniffer): Update.
10793 * frame-base.c (frame_base_table): Update.
10794 * remote.c (_initialize_remote): Update.
10795 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
10796
10797 2004-03-15 Andrew Cagney <cagney@redhat.com>
10798
10799 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
10800
10801 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10802
10803 * Makefile.in (frv-linux-tdep.o): Add dependencies.
10804 * frv-linux-tdep.c: New file.
10805 * frv-tdep.c (struct gdbarch_tdep): Add new field
10806 ``sigcontext_reg_addr''.
10807 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
10808 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
10809 (frv_sigramp_frame_sniffer): New functions.
10810 (frv_sigtramp_frame_unwind): New static global.
10811 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
10812 sniffers.
10813 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
10814 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
10815
10816 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10817
10818 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
10819 but not via a call to error(), when unable to read memory.
10820
10821 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10822
10823 * frv-tdep.c (frv_call_dummy_words): Delete.
10824 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
10825
10826 2004-03-15 Andrew Cagney <cagney@redhat.com>
10827
10828 * infrun.c (handle_step_into_function, step_over_function): Only
10829 update and use STEP_FRAME_ID when the system is using legacy
10830 frames. Update comments.
10831
10832 2004-03-14 Mark Kettenis <kettenis@gnu.org>
10833
10834 * amd64-linux-tdep.h: Remove file.
10835 * amd64-linux-tdep.c: Don't include "inferior.h" and
10836 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
10837 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
10838 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
10839 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
10840 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
10841 macros.
10842 (user_to_gdb_regmap): Remove variable.
10843 (amd64_linux_gregset_reg_offset): New variable.
10844 (amd64_core_fns): Remove variable.
10845 (fetch_core_registers): Remove function.
10846 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
10847 functions.
10848 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
10849 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
10850 * Makefile.in (amd64_linux_tdep_h): Remove.
10851 (amd64-linux-nat.o): Update dependencies.
10852 (amd64-linux-tdep.o): Update dependencies.
10853
10854 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
10855 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
10856 functions.
10857 (fetch_inferior_registers, store_inferior_registers): Rewrite.
10858
10859 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
10860 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
10861
10862 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
10863
10864 * dwarf2read.c (read_structure_type): Rename from
10865 read_structure_scope. Don't create a symbol or call process_die.
10866 Return immediately if die->type is set. Call read_type_die before
10867 dwarf2_add_member_fn.
10868 (process_structure_scope): New function.
10869 (read_enumeration_type, process_enumeration_scope): New functions,
10870 broken out from read_enumeration. Don't create the enumeration
10871 type if it has already been created.
10872 (read_enumeration): Removed.
10873 (process_die): Call read_structure_type, process_structure_scope,
10874 read_enumeration_type, and process_enumeration_scope. Just call
10875 new_symbol for base and subrange types. Add a comment about other
10876 type dies.
10877 (read_type_die): Call read_enumeration_type.
10878 (add_partial_structure, new_symbol): Update comments.
10879
10880 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10881
10882 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
10883
10884 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10885
10886 * tui/tui-win.h (tui_get_cmd_list): Declare.
10887 * tui/tui-win.c (tui_command): New function.
10888 (tui_get_cmd_list): New function.
10889 (_initialize_tui_win): Moved initialization of tui command in
10890 tui_get_cmd_list.
10891
10892 * tui/tui-data.c (init_content_element): Setup new data members.
10893 (init_win_info): Likewise.
10894 (free_content_elements): Free it.
10895 * tui/tui-data.h (struct tui_data_element): Store the register
10896 content to print.
10897 (struct tui_data_info): Keep the current register group.
10898
10899 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
10900
10901 * tui/tui-regs.h (tui_show_registers): Update prototype.
10902 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
10903 (tui_resize_all): No need to calculate anything for register window.
10904 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
10905 (tui_set_register_element, tui_set_general_regs_content): Remove.
10906 (tui_set_special_regs_content): Remove.
10907 (tui_set_general_and_special_regs_content): Remove.
10908 (tui_set_float_regs_content): Remove.
10909 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
10910 (tui_set_regs_content): Remove.
10911 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
10912 (tui_v_show_registers_command_support): Remove.
10913 (tui_show_registers): Use a reggroup to specify the registers to show.
10914 (tui_show_register_group): New function.
10915 (tui_display_registers_from): Compute the layout of register window
10916 and refresh with new API; be sure to delete old register windows.
10917 (tui_check_register_values): Update to use tui_get_register and
10918 tui_display_data.
10919 (tui_display_register): Just refresh the register window part.
10920 (tui_register_format): Format registers and save in tui_data_element.
10921 (tui_get_register): New to combine tui_reg_value_has_changed and
10922 tui_get_register_raw_value; fix to use the new gdb API.
10923 (tui_show_float_command): Renamed tui_reg_float_command.
10924 (tui_show_general_command): Renamed tui_reg_general_command.
10925 (tui_show_special_command): Renamed tui_reg_system_command.
10926 (_initialize_tui_regs): Remove unused commands.
10927
10928 2004-03-13 Mark Kettenis <kettenis@gnu.org>
10929
10930 * NEWS (New native configurations): Mention OpenBSD/amd64.
10931
10932 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
10933 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
10934 Remove defines.
10935 * config/i386/nm-fbsd64.h: Likewise.
10936 * config/i386/nm-obsd.h: Likewise.
10937 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
10938 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
10939
10940 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10941
10942 * frv-tdep.c (set_variant_scratch_registers): New function.
10943 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
10944 New constants.
10945
10946 From Richard Sandiford <rsandifo@redhat.com>:
10947 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
10948
10949 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10950
10951 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
10952 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
10953 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
10954 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
10955 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
10956 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
10957 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
10958 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
10959 definitions from frv-tdep.c to frv-tdep.h.
10960
10961 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10962
10963 Add shared library support for FR-V FDPIC ABI:
10964 * Makefile.in (solib-frv.o): Add dependencies.
10965 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
10966 New functions.
10967 (frv_push_dummy_call): Add support for FDPIC ABI.
10968 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
10969 for FDPIC ABI.
10970 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
10971 (frv_fdpic_find_canonical_descriptor): Declare.
10972 * solib-frv.c: New file.
10973 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
10974 * config/frv/tm-frv.h (solib.h): Include.
10975
10976 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10977
10978 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
10979 (frv-tdep.o): Update dependencies.
10980 * frv-tdep.h: New file.
10981 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
10982 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
10983 constants.
10984 (struct gdbarch_tdep): Add new member ``frv_abi''.
10985 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
10986 functions.
10987 (new_variant): Set ``frv_abi'' field.
10988 (gdb_arch_init): Detect FDPIC executables.
10989
10990 2004-03-12 Mark Kettenis <kettenis@gnu.org>
10991
10992 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
10993 wrapper.
10994
10995 2004-03-11 Andrew Cagney <cagney@redhat.com>
10996
10997 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
10998
10999 2004-03-11 Kevin Buettner <kevinb@redhat.com>
11000
11001 * solist.h (master_so_list): New function.
11002 * solib.c (master_so_list): Likewise.
11003 * solib-svr4.c (enable_break): Iterate over so_list entries
11004 obtained from master list instead of entries obtained directly
11005 via svr4_current_sos().
11006
11007 2004-03-10 Ben Elliston <bje@gnu.org>
11008
11009 * MAINTAINERS: Update my mail address.
11010
11011 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
11012
11013 * remote-m32r-sdi.c: Support hardware watchpoint.
11014
11015 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11016
11017 * user-regs.c: Update copyright years.
11018 (struct user_regs): Rename to gdb_user_regs.
11019 (append_user_reg, builtin_user_regs, user_regs_init)
11020 (user_reg_add, user_reg_map_name_to_regnum)
11021 (usernum_to_user_reg): Update.
11022
11023 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11024
11025 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
11026 (skip_children): New functions.
11027 (locate_pdi_sibling): Call skip_children.
11028
11029 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11030
11031 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
11032 * gdbtypes.c (check_typedef): Update comments.
11033
11034 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11035
11036 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
11037 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
11038 pointer. Update comment about comp_unit_head.
11039 (struct abbrev_info): Shorten two int flags.
11040 (dwarf_alloc_abbrev): Take a CU argument.
11041 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
11042 each time through the loop. Update cleanup argument.
11043 (psymtab_to_symtab_1): Update cleanup call.
11044 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
11045 abbrev_obstack.
11046 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
11047 Just call obstack_free and clear the pointer.
11048
11049 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11050
11051 * infrun.c (handle_inferior_event): Remove short-circuit code for
11052 events in a different thread.
11053
11054 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11055
11056 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
11057 print the whole transfer.
11058 (initialize_targets): Update description of "set debug target".
11059
11060 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11061
11062 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
11063
11064 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
11065
11066 * MAINTAINERS (write after approval): Add myself.
11067
11068 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
11069
11070 * sh-tdep.c (sh_print_registers_info): Use for loop.
11071 Don't skip multiple registers when a float register is encountered.
11072
11073 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
11074
11075 Fix PR tdep/1291.
11076 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
11077 to official SH documentation.
11078
11079 2004-03-07 Andrew Cagney <cagney@redhat.com>
11080
11081 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
11082 unused function.
11083
11084 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
11085
11086 * arm-tdep.c (thumb_get_next_pc): Handle BX.
11087 (arm_get_next_pc): Handle BX and BLX.
11088
11089 2004-03-07 Andrew Cagney <cagney@redhat.com>
11090
11091 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
11092 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
11093 HPPA_SP_REGNUM.
11094 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
11095 (hppa_target_read_fp): Delete.
11096 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
11097 register_virtual_size, max_register_raw_size,
11098 max_register_virtual_size, register_byte, register_size,
11099 target_read_fp, fp_regnum, and register_bytes. Set register_type
11100 instead of register_virtual_type.
11101 (hppa32_register_type, hppa64_register_type): Replace
11102 hppa32_register_virtual_type and hppa64_register_virtual_type.
11103 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
11104 (HPPA_FP_REGNUM): Define.
11105
11106 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
11107
11108 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
11109 (pa_do_registers_info): Delete.
11110 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
11111 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
11112 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
11113
11114 * infcall.c (legacy_push_dummy_code): Delete #ifdef
11115 GDB_TARGET_IS_HPPA code.
11116 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
11117 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
11118 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
11119 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
11120 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
11121 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
11122 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
11123 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
11124 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
11125 (hppa_frameless_function_invocation, hppa64_store_return_value)
11126 (hppa_store_struct_return, hppa64_extract_return_value)
11127 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
11128 (hppa32_call_dummy_length, hppa64_call_dummy_length)
11129 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
11130 (find_proc_framesize, deposit_21, restore_pc_queue)
11131 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
11132 (rp_saved, pc_in_linker_stub): Delete.
11133
11134 Unconditionally enable 64-bit frame and ABI code.
11135 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
11136 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
11137 push_dummy_frame, fix_call_dummy, push_arguments,
11138 call_dummy_location, extract_return_value, use_struct_convention,
11139 store_return_value, store_struct_return, saved_pc_after_call,
11140 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
11141 frame_chain, frame_chain_valid, frameless_function_invocation,
11142 frame_saved_pc, and pop_frame.
11143
11144 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
11145 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
11146 (hppa_gdbarch_init): Do not set PC_REGNUM.
11147
11148 2004-03-06 Mark Kettenis <kettenis@gnu.org>
11149
11150 * config/alpha/tm-fbsd.h: Remove file.
11151 * config/alpha/fbsd.mt: Tweak comment.
11152 (TM_FILE): Set to tm-alpha.h.
11153
11154 2004-03-05 Andrew Cagney <cagney@redhat.com>
11155
11156 * infrun.c (step_over_function): When non-legacy code, and no
11157 step_frame_id, use the unwinder to get the caller's frame ID.
11158
11159 2004-03-05 Mark Kettenis <kettenis@gnu.org>
11160
11161 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
11162 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
11163 bfd_arch_unknown. Adjust comment.
11164
11165 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
11166 * i386obsd-tdep.c: Correct spelling in comment.
11167 * i386nbsd-tdep.c: Correct spelling in comment.
11168 * sparc-tdep.c: Correct spelling in comments.
11169
11170 2004-03-05 David Carlton <carlton@kealia.com>
11171
11172 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
11173 bug.
11174
11175 2004-03-05 Mark Kettenis <kettenis@gnu.org>
11176
11177 * sparc-tdep.c: Fix typo in comment.
11178
11179 2004-03-04 J. Brobecker <brobecker@gnat.com>
11180
11181 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
11182
11183 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
11184
11185 * dwarf2read.c: Add comment describing memory lifetimes.
11186 (struct dwarf2_pinfo): Update comment.
11187 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
11188 (read_enumeration, new_symbol): Don't use obsavestring.
11189
11190 2004-03-04 Mark Kettenis <kettenis@gnu.org>
11191
11192 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
11193 instead of amd64_fill_fxsave.
11194 * amd64bsd-nat.c (store_inferior_registers): Likewise.
11195 * amd64fbsd-nat.c (fill_fpregset): Likewise.
11196
11197 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
11198 Reorganize code a bit.
11199
11200 2004-03-04 Orjan Friberg <orjanf@axis.com>
11201
11202 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
11203 when the frame pointer is pushed. Don't set the frame pointer's
11204 address on the stack unless it's actually located there.
11205 Set the SRP's address on the stack correctly when the PC is still in
11206 the prologue.
11207 (cris_return_value): New function.
11208 (cris_gdbarch_init): Clear deprecated store_return_value,
11209 extract_return_value.
11210
11211 2004-03-02 Jim Blandy <jimb@redhat.com>
11212
11213 * stabsread.c (reg_value_complaint): The maximum register number
11214 is one less than the number of registers.
11215
11216 2004-03-02 Andrew Cagney <cagney@redhat.com>
11217
11218 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
11219 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
11220 trailing comma and redundant assignment of I386_ST0_REGNUM.
11221 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
11222 32-bit segment registers.
11223
11224 2004-03-01 Andrew Cagney <cagney@redhat.com>
11225
11226 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
11227 use frame_relative_level and get_next_frame.
11228
11229 2004-02-29 Andrew Cagney <cagney@redhat.com>
11230
11231 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
11232 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
11233 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
11234 Delete macro.
11235
11236 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
11237
11238 * inflow.c (terminal_inferior): Don't give up the terminal if we
11239 previously couldn't get the inferior's terminal state.
11240
11241 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
11242
11243 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
11244 PC_REGNUM.
11245
11246 2004-02-28 Andrew Cagney <cagney@redhat.com>
11247
11248 * NEWS: Refer to GDB 6.1.
11249 * README: Refer to GDB 6.1.
11250 * PROBLEMS: Refer to GDB 6.1.
11251
11252 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
11253
11254 * thread-db.c (disable_thread_signals): Remove unused function.
11255
11256 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11257
11258 * amd64-nat.c: Include "gdb_string.h".
11259 (amd64_collect_native_gregset): Zero-extend the 32-bit
11260 general-purpose registers and %eip.
11261
11262 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
11263 * amd64-tdep.c (amd64_collect_fxsave): New function.
11264 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
11265
11266 * i387-tdep.h: Update copyright year.
11267 (i387_collect_fxsave): New prototype.
11268 * i387-tdep.c: Update copyright year.
11269 (i387_collect_fxsave): New function containing most of the code
11270 from i387_fill_fxsave.
11271 (i387_fill_fxsave): Call i387_collect_fxsave.
11272
11273 2004-02-28 Andrew Cagney <cagney@redhat.com>
11274
11275 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
11276 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
11277
11278 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11279
11280 * amd64-tdep.c (amd64_frame_cache): Fix comment.
11281
11282 2004-02-28 Andrew Cagney <cagney@redhat.com>
11283
11284 * utils.c: Use "", instead of <>, to include readline.
11285 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
11286 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
11287 * source.c, solib.c, exec.c, event-top.c: Ditto.
11288 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
11289 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
11290 * Makefile.in: Update all dependencies.
11291 (readline_tilde_h, readline_history_h): Define.
11292 (readline_headers): Delete.
11293
11294 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11295
11296 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
11297 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
11298 "config/i386/tm-lx64.h".
11299
11300 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
11301 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
11302 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
11303
11304 2004-02-28 Andrew Cagney <cagney@redhat.com>
11305
11306 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
11307
11308 * breakpoint.c (_initialize_breakpoint): Use
11309 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
11310 Add help to show command.
11311
11312 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11313
11314 * i386-nat.c: Reformat to be closer to coding standards.
11315 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
11316 `retval'. Make variables `align' and `size' local to while-loop.
11317 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
11318 (_initialize_i386_nat): New prototype.
11319
11320 * tui/tui.c: Include <readline/readline.h> instead of
11321 "readline/readline.h". Include it after <term.h> and
11322 "gdb_curses.h".
11323
11324 2004-02-27 Andrew Cagney <cagney@redhat.com>
11325
11326 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
11327 the new frame unwind code.
11328 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
11329 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
11330 PCOQ_HEAD_REGNUM.
11331
11332 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
11333 "return_value" and "push_dummy_call".
11334 (hppa32_use_struct_convention): Delete unused function.
11335 (hppa32_store_return_value): Delete unused function.
11336 (hppa32_extract_return_value): Delete unused function.
11337 (hppa32_stack_align): Delete function.
11338
11339 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
11340
11341 * coffread.c (enter_linenos): Don't let rawptr reference memory
11342 outside linetab[]'s limits.
11343
11344 2004-02-27 Andrew Cagney <cagney@redhat.com>
11345
11346 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
11347 inferior stack space - the stack needs to grow upwards.
11348 (hppa32_frame_align): New function.
11349 (hppa64_frame_align): Replace hppa_frame_align.
11350 (hppa_gdbarch_init): Update.
11351
11352 2004-02-26 Orjan Friberg <orjanf@axis.com>
11353
11354 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
11355 (dwarf2-frame.h): Include.
11356 (enum cris_regnums): New enum CRIS_FP_REGNUM.
11357 Remove static variables related to ABI setting.
11358 (struct gdbarch_tdep): Remove cris_abi member.
11359 (struct frame_extra_info): Remove.
11360 (cris_unwind_cache, stack_item): New structs.
11361 (cris_frame_unwind, cris_frame_base): New variables.
11362 (push_stack_item, pop_stack_item)
11363 (cris_frame_unwind_cache, cris_frame_this_id)
11364 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
11365 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
11366 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
11367 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
11368 (cris_reg_struct_has_addr): New functions.
11369 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
11370 (cris_frame_saved_pc, cris_saved_pc_after_call,
11371 (cris_store_struct_return, cris_frameless_function_invocation)
11372 (cris_pop_frame, cris_skip_prologue_main)
11373 (cris_abi_original_store_return_value)
11374 (cris_abi_v2_store_return_value)
11375 (cris_abi_original_extract_return_value)
11376 (cris_abi_v2_extract_return_value)
11377 (cris_abi_original_reg_struct_has_addr)
11378 (cris_abi_v2_reg_struct_has_addr)
11379 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
11380 (cris_push_return_address, cris_abi_update): Remove.
11381 (_initialize_cris_tdep): Remove ABI command.
11382 (cris_dump_tdep): Ditto.
11383 (cris_gdbarch_init): Remove ABI command.
11384 Set store_return_value, extract_return_value, push_dummy_code,
11385 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
11386 frame_unwind_append_sniffer, frame_base_set_default.
11387 Clear deprecated init_frame_pc, push_arguments, store_return_value,
11388 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
11389 sizeof_call_dummy_words, get_saved_register, push_return_address,
11390 pop_frame, store_struct_return, frame_init_saved_regs,
11391 init_extra_frame_info, frameless_function_invocation, frame_chain,
11392 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
11393 dummy_write_sp.
11394
11395 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
11396
11397 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
11398 * valprint.c (print_hex_chars): Change from static to external.
11399 (print_char_chars): New function.
11400 * printcmd.c (print_scalar_formatted): For integer and enum types
11401 that are longer than LONGEST, perform processing via appropriate
11402 print_*_chars routines.
11403
11404 2004-02-26 Andrew Cagney <cagney@redhat.com>
11405
11406 * Makefile.in: Update dependencies.
11407 Changes from Ulrich Weigand,
11408 * s390-tdep.c: Include "dwarf2-frame.h".
11409 (s390_dwarf2_frame_init_reg): New function.
11410 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
11411 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
11412
11413 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
11414
11415 * breakpoint.c (pending_break_support): New setting variable.
11416 (break_command_1): Account for pending_break_support setting
11417 when creating pending breakpoints.
11418 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
11419 (_initialize_breakpoint): Add "set breakpoint pending" and
11420 "show breakpoint pending" commands.
11421
11422 2004-02-26 Andrew Cagney <cagney@redhat.com>
11423
11424 Fix PR i18n/1570.
11425 * charset.c (backslashable, backslashed, represented): Remove 'e'
11426 from list of escaped characters, not part of ISO-C.
11427
11428 2004-02-25 J. Brobecker <brobecker@gnat.com>
11429
11430 From Peter Schauer <schauer@pdf.de>:
11431 * tui/tui.c: Move system header includes after local includes.
11432 Fixes a build failure on solaris systems.
11433
11434 2004-02-25 J. Brobecker <brobecker@gnat.com>
11435
11436 * configure.in: Refine the previous change.
11437 * configure: Regenerate.
11438
11439 2004-02-25 Mark Kettenis <kettenis@gnu.org>
11440
11441 * amd64-tdep.h: Renamed from x86-64-tdep.h.
11442 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
11443 "amd64-tdep.h" instead of "x86-64-tdep.h".
11444 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11445 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
11446 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
11447 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11448 and "x86-64-tdep.c".
11449 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
11450 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11451 and "x86-64-tdep.c".
11452 * amd64bsd-nat.c: Update copyright year.
11453 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11454 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
11455 "x86-64-tdep.h".
11456 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
11457 "x86-64-tdep.h".
11458 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
11459 "x86-64-tdep.h".
11460 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
11461 "x86-64-tdep.h".
11462 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
11463 "x86-64-tdep.h".
11464 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
11465 "x86-64-tdep.h".
11466 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
11467 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
11468 * Makefile.in (amd64_linux_tdep_h): Renamed from
11469 x86_64_linux_tdep_h.
11470 (amd64_tdep_h): Renamed from x86_64_tdep_h.
11471 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
11472 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
11473 (amd64obsd-tdep.o): Update dependencies.
11474 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
11475 dependencies.
11476 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
11477 dependencies.
11478 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
11479 amd64-linux-nat.c amd64-linux-tdep.c.
11480 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
11481 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
11482 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
11483 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
11484 amd64-tdep.o and amd64-linux-tdep.o.
11485 (TM_FILE): Set to tm-linux64.h.
11486 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
11487 (NAT_FILE): Set to nm-linux64.h.
11488 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
11489 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11490 amd64-tdep.o.
11491 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11492 amd64-tdep.o.
11493 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11494 amd64-tdep.o.
11495
11496 2004-02-25 Roland McGrath <roland@redhat.com>
11497
11498 * remote.c (remote_protocol_qPart_auxv): New variable.
11499 (init_all_packet_configs): Initialize it.
11500 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
11501 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
11502 (show_remote_cmd): Call it.
11503 (_initialize_remote): Initialize commands.
11504 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
11505 service TARGET_OBJECT_AUXV requests.
11506
11507 2004-02-25 J. Brobecker <brobecker@gnat.com>
11508
11509 * configure.in: Make sure that the wborder function is available.
11510 Otherwise, search for it in the cur_colr library.
11511 * configure: Regenerate.
11512
11513 2004-02-25 Andrew Cagney <cagney@redhat.com>
11514
11515 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
11516
11517 2004-02-25 Mark Kettenis <kettenis@gnu.org>
11518
11519 * config/i386/tm-x86-64linux.h: Tweak comments.
11520
11521 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
11522
11523 * MAINTAINERS: Add self to write-after-approval list.
11524
11525 2004-02-25 Andrew Cagney <cagney@redhat.com>
11526
11527 PR cli/1566. Problem found, and fix suggested by David Allan.
11528 * cli/cli-script.c (execute_control_command): Unconditionally
11529 install a cleanup. Default "ret" to "invalid_control". Use
11530 "break" instead of "return" to escape from the switch.
11531
11532 2004-02-24 J. Brobecker <brobecker@gnat.com>
11533
11534 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
11535 with the lines macro defined in term.h on AiX.
11536 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
11537 a collision with the label_width macro defined in term.h on AiX.
11538
11539 2004-02-23 David Mosberger <davidm@hpl.hp.com>
11540
11541 Committed by Kevin Buettner <kevinb@redhat.com>.
11542
11543 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
11544 * ia64-tdep.c (ia64_write_pc): Make it a global function.
11545 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
11546 instead of ia64_write_pc().
11547 * ia64-linux-tdep.c (regcache.h): Include.
11548 (ia64_linux_write_pc): New function.
11549
11550 2004-02-23 Roland McGrath <roland@redhat.com>
11551
11552 * auxv.c (info_auxv_command): Fix typos in error messages.
11553
11554 2004-02-23 Mark Kettenis <kettenis@gnu.org>
11555
11556 * x86-64-tdep.h: Tweak comment.
11557 (enum amd64_regnum): New.
11558 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
11559 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
11560 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
11561 (X86_64_XMM1_REGNUM): Removed.
11562 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
11563 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
11564 prototypes for renamed functions.
11565 * x86-64-tdep.c: Fix typo.
11566 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
11567 register numbers.
11568 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
11569 Use constants from `enum amd64_regnum' for register numbers.
11570 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
11571 (amd64_analyze_prologue, amd64_frame_cache,
11572 amd64_sigtramp_frame_cache): Use constants from `enum
11573 amd64_regnum' for register numbers.
11574 (amd64_supply_fpregset): Adjust for renamed functions.
11575 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
11576 `enum amd64_regnum' for register numbers.
11577 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
11578 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
11579 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
11580 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
11581 (amd64_linux_fill_gregset): Adjust for renamed macros.
11582 (fetch_core_registers): Adjust for renamed functions.
11583 (amd64_linux_init_abi): Adjust for renamed functions.
11584 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
11585 renamed functions.
11586 * amd64-nat.c: Adjust for renamed macros.
11587 * amd64bsd-nat.c (fetch_inferior_registers)
11588 (store_inferior_registers): Use constants from `enum amd64_regnum'
11589 for register numbers. Adjust for renamed variables.
11590 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
11591 renamed variables.
11592 (_initialize_amd64fbsd_nat): Use constants from `enum
11593 amd64_regnum' for register numbers.
11594 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
11595 `enum amd64_regnum' for register numbers.
11596 (amd64fbsd_init_abi): Adjust for renamed functions.
11597 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
11598 `enum amd64_regnum' for register numbers.
11599 (amd64nbsd_init_abi): Adjust for renamed functions.
11600 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
11601 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
11602 `enum amd64_regnum' for register numbers.
11603 (amd64obsd_init_abi): Adjust for renamed functions.
11604 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
11605
11606 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11607
11608 * breakpoint.c (print_one_breakpoint): Do not output spaces
11609 after printing <PENDING> for a pending breakpoint.
11610
11611 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11612
11613 * printcmd.c (print_scalar_formatted): Initialize val_long
11614 to remove compiler warning message.
11615
11616 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11617
11618 * defs.h (nquery, yquery): New prototypes.
11619 * breakpoint.c (break_command_1): Use new nquery interface.
11620 * utils.c (defaulted_query, nquery, yquery): New functions.
11621
11622 2004-02-23 Andrew Cagney <cagney@redhat.com>
11623
11624 * hppa-tdep.c (hppa_frame_align): New function.
11625 (hppa32_push_dummy_call): New function.
11626 (hppa64_push_dummy_call): New function.
11627 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
11628 disabled.
11629
11630 * infcall.c (legacy_push_dummy_code): Don't call deprecated
11631 FIX_CALL_DUMMY when push_dummy_call is available.
11632 (call_function_by_hand, push_dummy_code): Ditto.
11633
11634 2004-02-22 Andrew Cagney <cagney@redhat.com>
11635
11636 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
11637 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
11638 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
11639 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
11640 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
11641 call_dummy_location to ON_STACK.
11642
11643 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11644
11645 * x86-64-linux-tdep.c: Tweak comment.
11646 (amd64_linux_supply_gregset): Renamed from
11647 x86_64_linux_supply_gresget.
11648 (amd64_linux_fill_gregset): Renamed from
11649 x86_64_linux_fill_gregset.
11650 (fetch_core_registers): Adjust for renamed functions.
11651 (amd64_core_fns): Renamed from x86_64_core_fns.
11652 (amd64_linux_sigtramp_start): Renamed from
11653 x86_64_linux_sigtramp_start.
11654 (amd64_linux_pc_in_sigtramp): Renamed from
11655 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
11656 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
11657 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
11658 (amd64_linux_sigcontext_addr): Renamed from
11659 x86_64_linux_sigcontext_addr.
11660 (amd64_linux_sc_reg_offset): Renamed from
11661 x86_64_linux_sc_reg_offset.
11662 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
11663 Adjust for renamed functions and variables.
11664 (_initialize_amd64_linux_tdep): Renamed from
11665 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
11666 variables.
11667 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
11668 Adjust for renamed functions.
11669
11670 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
11671 from x86_64_linux_gregset64_reg_offset.
11672 (amd64_linux_gregset32_reg_offset): Rename from
11673 x86_64_linux_gregset64_reg_offset.
11674 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
11675 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
11676 (amd64_linux_dr_set_control): Renamed from
11677 x86_64_linux_dr_set_control. Adjust for renamed functions.
11678 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
11679 Adjust for renamed functions.
11680 (amd64_linux_dr_reset_addr): Renamed from
11681 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
11682 (amd64_linux_dr_get_status): Renamed from
11683 x86_64_linux_dr_get_status. Adjust for renamed functions.
11684 (_initialize_amd64_linux_nat): Renamed from
11685 _initialize_x86_64_linux_nat. Adjust for renamed variables and
11686 functions.
11687 * config/i386/nm-x86-64linux.h: Update copyright year.
11688 Adjust for renamed functions.
11689
11690 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
11691 amd64fbsd_sigtramp_start.
11692 (amd64fbsd_sigtramp_end_addr): Renamed from
11693 amd64fbsd_sigtramp_end.
11694 (amd64fbsd_init_abi): Adjust for renamed variables.
11695 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
11696 variables.
11697 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
11698 amd64fbsd_sigtramp_start.
11699 (amd64fbsd_sigtramp_end_addr): Renamed from
11700 amd64fbsd_sigtramp_end.
11701
11702 2004-02-22 Andrew Cagney <cagney@redhat.com>
11703
11704 * hppa-tdep.c (hppa32_return_value): New function.
11705 (hppa64_return_value): New function.
11706 (hppa_gdbarch_init): Set return_value; keep disabled.
11707
11708 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
11709 struct-return and inferior function call methods.
11710
11711 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
11712 "frame-base.h".
11713 (struct hppa_frame_cache): Define.
11714 (hppa_frame_cache, hppa_frame_this_id): New functions.
11715 (hppa_frame_prev_register): New function.
11716 (hppa_frame_unwind, hppa_frame_base): New variables.
11717 (hppa_frame_unwind_sniffer): New function.
11718 (hppa_frame_base_address, hppa_unwind_pc): New function.
11719 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
11720 sniffer, and frame base sniffer; keep disabled.
11721 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
11722 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
11723
11724 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
11725 to predicates for "seriously old code".
11726
11727 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
11728 runtime if(0).
11729
11730 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
11731 unsigned.
11732 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
11733
11734 * config/pa/tm-hppa.h: Update copyright.
11735 (DEPRECATED_INIT_FRAME_PC): Delete macro.
11736 (deprecated_init_frame_pc_default): Delete declaration.
11737 (hppa_frame_init_saved_regs): Delete declaration.
11738 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11739 * hppa-tdep.c: Include "arch-utils.h".
11740 (hppa_gdbarch_init): Set deprecated init_frame_pc
11741 and deprecated frame_init_saved_regs.
11742 (hppa_frame_init_saved_regs): Make static.
11743
11744 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11745
11746 Remove old 386BSD support.
11747 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
11748 * configure.host: Remove i[34567]86-*-bsd*.
11749 * configure.tgt: Remove i[34567]86-*-bsd*.
11750 * i386b-nat.c: Removed.
11751 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
11752 (i386b-nat.o): Remove dependencies.
11753
11754 * config/i386/i386bsd.mh: Removed.
11755 * config/i386/i386bsd.mt: Removed.
11756 * config/i386/nm-i386bsd.h: Removed.
11757 * config/i386/tm-i386bsd.h: Removed.
11758 * config/i386/xm-i386bsd.h: Removed.
11759
11760 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
11761
11762 * amd64fbsd-tdep.c: Include "solib-svr4.h".
11763 (amd64fbsd_init_abi): Set link map offsets.
11764 * amd64nbsd-tdep.c: Include "slib-svr4.h".
11765 (amd64nbsd_init_abi): Set link map offsets.
11766 * amd64obsd-tdep.c: Include "solib-svr4.h".
11767 (amd64obsd_init_abi): Set link map offsets.
11768 * i386fbsd-tdep.c: Include "solib-svr4.h".
11769 (i386fbsd_init_abi): Set link map offsets.
11770 * i386nbsd-tdep.c: Include "solib-svr4.h".
11771 (i386nbsdelf_init_abi): Set link map offsets.
11772 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
11773 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
11774 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
11775 solib-legacy.o and core-aout.o. Reformat.
11776 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
11777 solib-svr4.o, solib-legacy.o. Reformat.
11778 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
11779 * config/i386/nbsdelf.mh: Reformat.
11780 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
11781 solib-svr4.o, solib-legacy.o and corelow.o.
11782 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
11783 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
11784 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
11785 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11786 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11787 (TM_FILE): Set to tm-fbsd.h.
11788 * config/i386/nbsd.mt (TDEPFILES): Reformat.
11789 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
11790 solib-svr4.o.
11791 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
11792 solib-svr4.o.
11793 (TM_FILE): Set to nm-nbsd.h.
11794 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
11795 Simplify shared library support. Don't include "elf/common.h".
11796 (SVR4_SHARED_LIBS): Don't define.
11797 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
11798 "solib.h".
11799 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
11800 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
11801 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
11802 Don't include "i386/tm-i386.h". Include "solib.h".
11803 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
11804 Don't include "i386/tm-i386.h".
11805 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
11806 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
11807 Include "i386/xm-i386.h".
11808 (HOST_LONG_DOUBLE_FORMAT): Remove.
11809
11810 Fix OpenBSD/i386 sigtramp recognition.
11811 * i386-tdep.h: Update copyright year.
11812 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
11813 (i386bsd_sigtramp_end): New prototypes.
11814 (i386fbsd_sigtramp_start_addr): Renamed from
11815 i386fbsd_sigtramp_start.
11816 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11817 (i386obsd_sigtramp_start_addr): Renamed from
11818 i386obsd_sigtramp_start.
11819 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11820 * i386bsd-tdep.c: Update copyright year.
11821 (i386bsd_pc_in_sigtramp): Make public.
11822 * i386fbsd-nat.c: Update copyright year.
11823 (_initialize_i386fbsd_nat): Adjust for renamed variables.
11824 * i386fbsd-tdep.c: Update copyright year.
11825 (i386fbsd_sigtramp_start_addr): Renamed from
11826 i386fbsd_sigtramp_start.
11827 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11828 (i386fbsdaout_init_abi): Adjust for renamed variables.
11829 * i386obsd-nat.c: Update copyright year.
11830 (_initialize_i386obsd_nat): Adjust for renamed variables.
11831 * i386obsd-tdep.c: Include "target.h".
11832 (i386obsd_page_size): New variable.
11833 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
11834 (i386obsd_sigtramp_end): New functions.
11835 (i386obsd_sigtramp_start_addr): Renamed from
11836 i386obsd_sigtramp_start.
11837 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11838 (i386obsd_init_abi): Adjust for renamed variables. Set
11839 pc_in_sigtramp, sigtramp_start and sigtramp_end.
11840 * Makefile.in (i386obsd-tdep.o): Update dependencies.
11841
11842 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
11843 trampoline change in OpenBSD kernel.
11844
11845 * amd64-nat.c: Update copyright year.
11846 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
11847 architecture from REGCACHE.
11848
11849 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
11850 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
11851
11852 2004-02-21 Mark Kettenis <kettenis@gnu.org>
11853
11854 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
11855 i[34567]86-*-openbsd3.[0-3].
11856 * config/i386/obsdaout.mh: New file.
11857
11858 * config/i386/obsd.mh (MH_FLAGS): Remove.
11859
11860 Fix PR build/1549.
11861 * i386obsd-tdep.c: Update copyright years. Include
11862 "solib-svr4.h".
11863 (i386obsd_init_abi): Don't set regset_from_core_section here.
11864 (i386obsd_aout_init_abi): New function. Set
11865 regset_from_core_section here.
11866 (i386obsd_elf_init_abi): New function.
11867 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
11868 * Makefile.in (i386obsd-tdep.o): Update dependecies.
11869 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
11870 (TM_FILE): Set to tm-nbsd.h.
11871
11872 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
11873 solib-sunos.o.
11874
11875 * solib-svr4.h: Update copyright year.
11876 (svr4_ilp32_fetch_link_map_offsets)
11877 (svr4_lp64_fetch_link_map_offsets): New prototype.
11878 * solib-svr4.c: Update copyright year.
11879 (svr4_ilp32_fetch_link_map_offsets)
11880 (svr4_lp64_fetch_link_map_offsets): New function.
11881
11882 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
11883
11884 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
11885 to the partial symbol table.
11886
11887 2004-02-20 J. brobecker <brobecker@gnat.com>
11888
11889 * PROBLEMS: Add description of problem documented under gdb/1560.
11890
11891 2004-02-20 Mark Kettenis <kettenis@gnu.org>
11892
11893 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
11894 comments.
11895 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
11896 functions.
11897 (amd64obsd_init_abi): Reorder initializations. Use
11898 amd64obsd_r_reg_offset to initialize the general-purpose register
11899 set details. Set regset_from_core_section.
11900 (_initialize_amd64obsd_tdep): Rename from
11901 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
11902 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
11903 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
11904
11905 * NEWS (New native configurations): Mention OpenBSD/alpha.
11906 * configure.tgt: Add alpha*-*-openbsd*.
11907 * configure.host: Add alpha*-*-openbsd*.
11908 * alphanbsd-tdep.c: Update copyright year.
11909 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
11910
11911 2004-02-20 Andrew Cagney <cagney@redhat.com>
11912
11913 Fix PR tdep/1372.
11914 * configure.tgt: Delete target "none-*-*".
11915 * configure.host: Delete host "none-*-*".
11916 * config/none/none.mh: Delete file.
11917 * config/none/none.mt: Delete file.
11918 * config/none/xm-none.h: Delete file.
11919 * config/none/tm-none.h: Delete file.
11920 * config/none/nm-none.h: Delete file.
11921
11922 2004-02-19 Fred Fish <fnf@redhat.com>
11923
11924 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
11925 cache->uses_fp prior to setting it.
11926
11927 2004-02-19 Fred Fish <fnf@redhat.com>
11928
11929 Fix for PR breakpoint/1558.
11930 * sh-tdep.c (IS_JSR): New macro.
11931 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
11932
11933 2004-02-19 Jim Blandy <jimb@redhat.com>
11934
11935 * findvar.c (value_from_register): Doc fix.
11936
11937 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
11938
11939 * printcmd.c (print_scalar_formatted): Do not check for sizeof
11940 type being greater than sizeof of host's LONGEST. Always use
11941 unpack_long() unless format 'f' chosen.
11942
11943 2004-02-19 Joel Brobecker <brobecker@gnat.com>
11944
11945 Committed by Elena Zannoni <ezannoni@redhat.com>
11946
11947 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
11948 contains a symbol wich is the best, non-exact match for the given
11949 pc. Update comments.
11950
11951 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
11952
11953 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
11954 macro, which was part of the now removed Mach 3 port.
11955 * utils.c (request_quit): Ditto.
11956
11957 2004-02-18 Mark Kettenis <kettenis@gnu.org>
11958
11959 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
11960 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
11961
11962 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11963
11964 Committed by Mark Kettenis <kettenis@gnu.org>.
11965
11966 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
11967 Define.
11968
11969 2004-02-18 Andrew Cagney <cagney@redhat.com>
11970
11971 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
11972 CONFIG_INSTALL and CONFIG_UNINSTALL.
11973 * configure: Re-generate.
11974 * interps.h (INTERP_TUI): Define.
11975 * Makefile.in: Update dependencies.
11976 (TUI): New macro.
11977 (tui-main.o): Specify dependencies.
11978 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
11979 * tui/tui-main.c: New file.
11980
11981 2004-02-18 Mark Kettenis <kettenis@gnu.org>
11982
11983 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
11984 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
11985 dependencies.
11986 * configure.host: Add x86_64-*-openbsd*.
11987 * configure.tgt: Add x86_64-*-openbsd*.
11988 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
11989
11990 * tui/tui.c: Don't include <malloc.h>.
11991
11992 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
11993 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
11994 amd64nbsd-tdep.c.
11995
11996 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
11997 static. Remove extraneous whitespace.
11998 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
11999 static.
12000
12001 2004-02-17 Jim Blandy <jimb@redhat.com>
12002
12003 * findvar.c (value_from_register): Doc fix.
12004
12005 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12006
12007 Committed by Jim Blandy <jimb@redhat.com>.
12008
12009 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
12010 CORE_ADDR as type for selectors. Correct types for GNU run time
12011 message lookup function to use double indirection.
12012 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
12013 * objc-lang.h (lookup_child_selector): Adapt prototype.
12014
12015 * s390-nat.c (SUBOFF): New macro.
12016 (supply_gregset, fill_gregset): Use it to handle debugging
12017 of 32-bit exectuables running under a 64-bit kernel.
12018 * s390-tdep.c: Include "solib-svr4.h".
12019 (s390_svr4_fetch_link_map_offset): New function.
12020 (s390x_svr_fetch_link_map_offset): Likewise.
12021 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
12022 * Makefile.in (s390-tdep.o): Update dependencies.
12023
12024 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
12025 "frame-unwind.h".
12026 (s390_readinstruction): Reformat. Use read_memory_nobpt.
12027 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
12028 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
12029 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
12030 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
12031 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
12032 S390_SIGNAL_FRAMESIZE,
12033 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
12034 (struct frame_extra_info): Remove.
12035 (s390_memset_extra_info): Remove.
12036 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
12037 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
12038 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
12039 (is_rse): Renamed to ...
12040 (is_rsy): ... this. Support long displacements.
12041 (is_rxe): Renamed to ...
12042 (is_rxy): ... this. Support long displacements.
12043 (compute_x_addr): Support long displacements.
12044 (struct s390_prologue_data): New data type.
12045 (s390_on_stack): Change API to use struct s390_prologue_data.
12046 (s390_store): Reimplement.
12047 (s390_load): New function.
12048 (s390_get_signal_frame_info): Remove.
12049 (s390_get_frame_info): Remove, replace by ...
12050 (s390_analyze_prolog): ... this new function.
12051 (s390_check_function_end): Remove.
12052 (s390_function_start): Remove.
12053 (s390_frameless_function_invokation): Remove.
12054 (s390_is_sigreturn): Remove.
12055 (s390_init_frame_pc_first): Remove.
12056 (s390_init_frame_extra_info): Remove.
12057 (s390_frame_init_saved_regs): Remove.
12058 (s390_frame_saved_pc_nofix): Remove.
12059 (s390_frame_saved_pc): Remove.
12060 (s390_frame_chain): Remove.
12061 (s390_fp_regnum, s390_read_fp): Remove.
12062 (s390_pop_frame_regular, s390_pop_frame): Remove.
12063 (s390_saved_pc_after_call): Remove.
12064 (s390_skip_prologue): Reimplement.
12065 (s390_in_function_epilogue_p): Support long displacements.
12066 (struct s390_unwind_cache): New data structure.
12067 (s390_frame_unwind_cache): New function.
12068 (s390_prologue_frame_unwind_cache): Likewise.
12069 (s390_backchain_frame_unwind_cache): Likewise.
12070 (s390_frame_this_id, s390_frame_prev_register): Likewise.
12071 (s390_frame_unwind): Define.
12072 (s390_frame_sniffer): New function.
12073 (struct s390_pltstub_unwind_cache): New data structure.
12074 (s390_pltstub_frame_unwind_cache): New function.
12075 (s390_pltstub_frame_this_id): Likewise.
12076 (s390_pltstub_frame_prev_register): Likewise.
12077 (s390_pltstub_frame_unwind): Define.
12078 (s390_pltstub_frame_sniffer): New function.
12079 (struct s390_sigtramp_unwind_cache): New data structure.
12080 (s390_sigtramp_frame_unwind_cache): New function.
12081 (s390_sigtramp_frame_this_id): Likewise.
12082 (s390_sigtramp_frame_prev_register): Likewise.
12083 (s390_sigtramp_frame_unwind): Define.
12084 (s390_sigtramp_frame_sniffer): New function.
12085 (s390_frame_base_address, s390_local_base_address): New functions.
12086 (s390_frame_base): Define.
12087 (s390_unwind_pc, s390_unwind_sp): New function.
12088 (s390_push_dummy_call): Use new frame base location.
12089 (s390_unwind_dummy_id): Likewise.
12090 (s390_gdbarch_init): Remove calls to:
12091 set_gdbarch_frameless_function_invocation,
12092 set_gdbarch_deprecated_init_frame_pc,
12093 set_gdbarch_deprecated_frame_chain,
12094 set_gdbarch_deprecated_frame_init_saved_regs,
12095 set_gdbarch_deprecated_pop_frame,
12096 set_gdbarch_deprecated_init_extra_frame_info,
12097 set_gdbarch_deprecated_init_frame_pc_first,
12098 set_gdbarch_deprecated_target_read_fp,
12099 set_gdbarch_deprecated_frame_saved_pc,
12100 set_gdbarch_deprecated_saved_pc_after_call,
12101 set_gdbarch_deprecated_fp_regnum.
12102 Add calls to:
12103 set_gdbarch_in_solib_call_trampoline,
12104 frame_unwind_append_sniffer,
12105 frame_base_set_default,
12106 set_gdbarch_unwind_pc,
12107 set_gdbarch_unwind_sp.
12108 * Makefile.in (s390-tdep.o): Update dependencies.
12109
12110 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
12111 (S390_STACK_FRAME_OVERHEAD): Remove.
12112 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
12113 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
12114 (s390_promote_integer_argument): Remove.
12115 (s390_cannot_extract_struct_value_address): Remove.
12116 (s390_use_struct_convention, s390_store_struct_return): Remove.
12117 (s390_extract_return_value, s390_store_return_value): Remove.
12118 (s390_return_value_convention, s390_return_value): New functions.
12119 (is_float_singleton): Handle typedefs.
12120 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
12121 Remove, replace by ...
12122 (s390_function_arg_pass_by_reference, s390_function_arg_float,
12123 s390_function_arg_integer): ... these new functions.
12124 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
12125 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
12126 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
12127 Fill in tdep->abi.
12128 Remove calls to:
12129 set_gdbarch_deprecated_store_struct_return,
12130 set_gdbarch_deprecated_extract_return_value,
12131 set_gdbarch_deprecated_store_return_value,
12132 set_gdbarch_use_struct_convention,
12133 set_gdbarch_extract_struct_value_address,
12134 set_gdbarch_deprecated_pc_in_call_dummy,
12135 set_gdbarch_deprecated_push_arguments,
12136 set_gdbarch_deprecated_save_dummy_frame_tos,
12137 set_gdbarch_deprecated_push_return_address,
12138 set_gdbarch_deprecated_sizeof_call_dummy_words,
12139 set_gdbarch_deprecated_call_dummy_words,
12140 set_gdbarch_deprecated_dummy_write_sp.
12141 Add calls to:
12142 set_gdbarch_push_dummy_call,
12143 set_gdbarch_unwind_dummy_id,
12144 set_gdbarch_return_value.
12145
12146 * config/s390/nm-linux.h: Update comments.
12147 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
12148 (STOPPED_BY_WATCHPOINT): Redefine.
12149 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
12150 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
12151 (s390_stopped_by_watchpoint): Likewise.
12152 (watch_area_cnt): Remove.
12153 * s390-nat.c: Update comments.
12154 (watch_area): Remove typedef.
12155 Global replace watch_area by struct watch_area.
12156 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
12157 (s390_stopped_by_watchpoint): Remove pid argument,
12158 use s390_inferior_tid. Add short-cut for the no watchpoint case.
12159 (s390_fix_watch_points): Remove pid argument,
12160 use s390_inferior_tid. Recompute area spanned by watchpoints.
12161 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
12162 argument. Reimplement.
12163
12164 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
12165 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
12166 (FETCH_INFERIOR_REGISTERS): Define.
12167 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
12168 core-regset.o.
12169 * config/s390/s390x.mt: Remove.
12170 * config/s390/tm-s390.h: Remove.
12171 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
12172 (TARGET_ELF64): Remove.
12173 (SKIP_TRAMPOLINE_CODE): Do not undefine.
12174 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
12175 s390*-*-* case; always set gdb_target to s390.
12176 * regformats/reg-s390.dat: Remove control registers.
12177 * regformats/reg-s390x.dat: Likewise.
12178 * s390-tdep.h: New file.
12179 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
12180 Include "inferior.h" and "s390-tdep.h".
12181 Remove private definition of offsetof.
12182 (s390_register_u_addr): Remove.
12183 (regmap_gregset, regmap_fpregset): Define.
12184 (supply_gregset, fill_gregset): Reimplement.
12185 (supply_fpregset, fill_fpregset): Likewise.
12186 (s390_inferior_tid): New function.
12187 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
12188 (fetch_inferior_registers, store_inferior_registers): Likewise.
12189 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
12190 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
12191 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
12192 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
12193 (struct gdbarch_tdep): Define.
12194 (struct s390_register_info): Define.
12195 (s390_register_info): New variable.
12196 (s390_register_name): Reimplement.
12197 (s390_register_type): New function.
12198 (s390_register_raw_size, s390x_register_raw_size): Remove.
12199 (s390_cannot_fetch_register): Remove.
12200 (s390_register_byte): Remove.
12201 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
12202 (s390_dwarf_regmap): New variable.
12203 (s390_dwarf_reg_to_regnum): New function.
12204 (s390_stab_reg_to_regnum): Remove.
12205 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
12206 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
12207 (s390_convert_register_p): Likewise.
12208 (s390_register_to_value, s390_value_to_register): Likewise.
12209 (s390_register_reggroup_p): Likewise.
12210 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
12211 s390_gregset, s390x_gregset, s390_fpregset): New variables.
12212 (s390_supply_regset, s390_regset_from_core_section): New functions.
12213 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
12214 (S390_FPR_SIZE): Likewise.
12215 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
12216 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
12217 (S390_NUM_GPRS): Move here from tm-s390.h.
12218 (S390_NUM_FPRS): Likewise.
12219 (s390_in_function_epilogue_p): New function.
12220 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
12221 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
12222 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
12223 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
12224 Replace S390_FP_REGNUM by S390_SP_REGNUM.
12225 Remove calls to:
12226 set_gdbarch_deprecated_max_register_raw_size,
12227 set_gdbarch_deprecated_max_register_virtual_size,
12228 set_gdbarch_deprecated_register_byte,
12229 set_gdbarch_cannot_fetch_register,
12230 set_gdbarch_cannot_store_register,
12231 set_gdbarch_deprecated_register_size,
12232 set_gdbarch_deprecated_register_raw_size,
12233 set_gdbarch_deprecated_register_virtual_size,
12234 set_gdbarch_deprecated_register_virtual_type,
12235 set_gdbarch_deprecated_register_bytes.
12236 Add calls to:
12237 set_gdbarch_num_pseudo_regs,
12238 set_gdbarch_register_type,
12239 set_gdbarch_convert_register_p,
12240 set_gdbarch_register_to_value,
12241 set_gdbarch_value_to_register,
12242 set_gdbarch_register_reggroup_p,
12243 set_gdbarch_regset_from_core_section,
12244 set_gdbarch_pseudo_register_read,
12245 set_gdbarch_pseudo_register_write,
12246 set_gdbarch_in_function_epilogue_p.
12247 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
12248 (s390_tdep_h): New variable.
12249
12250 2004-02-17 Jim Blandy <jimb@redhat.com>
12251
12252 * findvar.c (value_from_register): If the type has no length, just
12253 return an acceptable value --- don't report an internal error.
12254
12255 * stabsread.c (read_type): If we find any type numbers that are
12256 forward references, complain if the references aren't resolved by
12257 the time we're finished reading.
12258 (cleanup_undefined_types): Make error message more appropriate for
12259 a complaint.
12260
12261 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
12262
12263 * Makefile.in (defs_h): Remove dependency on progress_h.
12264 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
12265 progress.h.
12266 * main.c (captured_main): Delete use of START_PROGRESS and
12267 END_PROGRESS.
12268
12269 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
12270
12271 * objfiles.c (terminate_minimal_symbol_table): Add back
12272 initialization of MSYMBOL_TYPE.
12273
12274 2004-02-17 David Mosberger <davidm@hpl.hp.com>
12275
12276 Committed by Andrew Cagney.
12277 * Makefile.in (ia64_tdep_h): New macro.
12278 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
12279 (ia64-tdep.o): Likewise.
12280 * ia64-tdep.h: New file.
12281 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
12282 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
12283 (ia64_aix_sigcontext_register_address): Likewise.
12284 (ia64_linux_getunwind_table): Delete declaration.
12285 * ia64-linux-tdep.c: Likewise.
12286
12287 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
12288
12289 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
12290 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
12291 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
12292
12293 2004-02-17 Andrew Cagney <cagney@redhat.com>
12294
12295 * symtab.c (skip_prologue_using_sal): New function.
12296 * symtab.h (skip_prologue_using_sal): Declare.
12297 * frv-tdep.c: Include "symtab.h".
12298 (skip_prologue_using_sal): Delete function.
12299 * mips-tdep.c (skip_prologue_using_sal): Delete function.
12300 * rs6000-tdep.c (refine_prologue_limit): Mention
12301 skip_prologue_using_sal.
12302 * ia64-tdep.c (refine_prologue_limit): Ditto.
12303 * Makefile.in: Update dependencies.
12304
12305 2004-02-16 Andrew Cagney <cagney@redhat.com>
12306
12307 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
12308 START_INFERIOR_TRAPS_EXPECTED.
12309 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
12310 START_INFERIOR_TRAPS_EXPECTED.
12311 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
12312 Delete macro.
12313 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
12314 macro, moved to "nm-osf.h". Update copyright.
12315 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
12316 update copyright.
12317
12318 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
12319 and function replacing FRAMELESS_FUNCTION_INVOCATION.
12320 * blockframe.c (legacy_frameless_look_for_prologue): Rename
12321 frameless_look_for_prologue.
12322 * frame.h (legacy_frameless_look_for_prologue): Rename
12323 frameless_look_for_prologue.
12324 * gdbarch.h, gdbarch.c: Re-generate.
12325 * sh64-tdep.c (sh64_gdbarch_init): Update.
12326 * sh-tdep.c (sh_gdbarch_init): Update.
12327 * s390-tdep.c (s390_gdbarch_init): Update.
12328 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12329 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12330 * m68k-tdep.c (m68k_gdbarch_init): Update.
12331 (delta68_frame_args_address): Update.
12332 * m32r-tdep.c (m32r_gdbarch_init): Update.
12333 * hppa-tdep.c (hppa_gdbarch_init): Update.
12334 * h8300-tdep.c (h8300_gdbarch_init): Update.
12335 * frv-tdep.c (frv_gdbarch_init): Update.
12336 (frv_frameless_function_invocation): Update.
12337 * cris-tdep.c (cris_gdbarch_init): Update.
12338 (cris_frameless_function_invocation): Update.
12339 * avr-tdep.c (avr_gdbarch_init): Update.
12340 * arm-tdep.c (arm_gdbarch_init): Update.
12341 * stack.c (frame_info): Update, call predicate.
12342 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
12343 * frame.c (legacy_get_prev_frame): Update, call predicate..
12344 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
12345 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
12346 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
12347 invocation.
12348 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12349 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12350 * vax-tdep.c (vax_gdbarch_init): Ditto.
12351
12352 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
12353 function.
12354
12355 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
12356
12357 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
12358 initializations.
12359
12360 2004-02-16 Andrew Cagney <cagney@redhat.com>
12361
12362 * tui/tui-windata.c: Include "gdb_string.h".
12363 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
12364 * tui/tui-layout.c, tui/tui-command.c: Ditto.
12365 * Makefile.in: Update dependencies.
12366
12367 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
12368
12369 * Makefile.in (infrun.o): Add $(gdb_assert_h).
12370 * infrun.c: Include "gdb_assert.h".
12371 (singlestep_ptid, saved_singlestep_ptid)
12372 (stepping_past_singlestep_breakpoint): New variables.
12373 (resume): Set singlestep_ptid. Check for singlestep thread
12374 hop.
12375 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
12376 (handle_inferior_event): Handle singlestep thread hop.
12377
12378 2004-02-16 Andrew Cagney <cagney@redhat.com>
12379
12380 * dwarf2-frame.c (dwarf2_frame_ops): New function.
12381 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
12382 (dwarf2_frame_init_reg): Ditto.
12383
12384 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
12385 suggested by Joshua Neuheisel
12386
12387 * configure.in: Always check for curses, including pdcurses.
12388 Warn, instead of error, when no curses are found. Enable TUI when
12389 curses is available.
12390 * configure: Re-generate.
12391
12392 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
12393
12394 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
12395 sh_sh4_register_convert_to_virtual.
12396 (sh_register_convert_to_raw): Rename from
12397 sh_sh4_register_convert_to_raw.
12398 (sh_pseudo_register_read): Accomodate above name change.
12399 (sh_pseudo_register_write): Ditto.
12400
12401 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
12402
12403 * sh-tdep.c (sh_generic_register_name): Remove.
12404 (sh_gdbarch_init): Use sh_sh_register_name in default case.
12405
12406 2004-02-15 Andrew Cagney <cagney@redhat.com>
12407
12408 * configure.in (build_warnings): Add -Wunused-function.
12409 * configure: Re-generate.
12410
12411 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
12412 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
12413
12414 * procfs.c (procfs_init_inferior): Assume that
12415 START_INFERIOR_TRAPS_EXPECTED is defined.
12416 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
12417 * config/ns32k/tm-nbsd.h: Delete file,
12418 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
12419
12420 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
12421 * config/vax/tm-vax.h: Delete file.
12422
12423 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12424 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12425 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12426 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12427 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
12428 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12429 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
12430
12431 2004-02-15 Mark Kettenis <kettenis@gnu.org>
12432
12433 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
12434 * dwarf2-frame.c (dwarf2_frame_data): New variable.
12435 (struct dwarf2_frame_ops): New.
12436 (dwarf2_frame_default_init_reg): New function, based on
12437 dwarf2_frame_init_reg.
12438 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
12439 (dwarf2_frame_init_reg): Call architecture-specific function.
12440 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
12441 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
12442 instead of dwarf2_frame_data.
12443 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
12444 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
12445
12446 2004-02-15 Andrew Cagney <cagney@redhat.com>
12447
12448 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
12449 register_gdbarch_swap.
12450 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
12451 * f-lang.c (_initialize_f_language): Update, use
12452 DEPRECATED_REGISTER_GDBARCH_SWAP.
12453 * remote.c (_initialize_remote): Ditto.
12454 * regcache.c (_initialize_regcache): Ditto.
12455 * parse.c (_initialize_parse): Ditto.
12456 * infrun.c (_initialize_infrun): Ditto.
12457 * mi/mi-main.c (_initialize_mi_main): Ditto.
12458 * gdbtypes.c (_initialize_gdbtypes): Ditto.
12459
12460 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
12461 poking .cacheable directly.
12462 * symfile.c (symfile_bfd_open): Ditto.
12463
12464 * Makefile.in: Update all dependencies.
12465
12466 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
12467 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
12468 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
12469 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
12470 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
12471
12472 2004-02-14 Andrew Cagney <cagney@redhat.com>
12473
12474 * arch-utils.c (legacy_convert_register_p): Check
12475 DEPRECATED_REGISTER_CONVERTIBLE_P.
12476 * findvar.c (value_of_register): Ditto.
12477
12478 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
12479 * gdbarch.h, gdbarch.c: Re-generate.
12480 * arch-utils.c (deprecated_register_convertible_not): Delete.
12481 * arch-utils.h (deprecated_register_convertible_not): Delete.
12482 * mi/mi-main.c (get_register): Update. Update copyright.
12483 * infcmd.c (default_print_registers_info): Update.
12484
12485 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
12486 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
12487 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
12488 * gdbarch.h, gdbarch.c: Re-generate.
12489 * frame.c (deprecated_get_next_frame_hack): Delete function.
12490 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
12491 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
12492 Update.
12493 * infcall.c (call_function_by_hand): Update.
12494
12495 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
12496
12497 * symfile.c (init_entry_point_info, entry_point_address): Move
12498 from here...
12499 * objfiles.c (init_entry_point_info, entry_point_address):..to
12500 here.
12501 * symfile.h (init_entry_point_info, entry_point_address): Remove
12502 prototypes.
12503 * objfiles.h (init_entry_point_info, entry_point_address):Add
12504 prototypes.
12505 * cris-tdep.c: Remove include of symfile.h. Add include of
12506 objfiles.h.
12507 * infcall.c: Ditto.
12508 * mcore-tdep.c: Ditto.
12509 * mn10300-tdep.c: Ditto.
12510 * sh64-tdep.c: Ditto.
12511 * v850-tdep.c: Ditto.
12512 * arm-tdep.c: Remove include of symfile.h.
12513 * blockframe.c: Ditto.
12514 * coffread.c: Ditto.
12515 * dbxread.c: Ditto.
12516 * dwarf2read.c: Ditto.
12517 * dwarfread.c: Ditto.
12518 * frv-tdep.c: Ditto.
12519 * ia64-tdep.c: Ditto.
12520 * mdebugread.c: Ditto.
12521 * mipsread.c: Ditto.
12522 * rs6000-tdep.c: Ditto.
12523 * s390-tdep.c: Ditto.
12524 * sh-tdep.c: Ditto.
12525 * xstormy16-tdep.c: Ditto.
12526 * gdbarch.sh: Remove include of symfile.h.
12527 * gdbarch.c: Regenerate.
12528 * solib-irix.c (enable_break): Use entry_point_address().
12529 Add comment about include file.
12530 * xcoffread.c: Add comment about include file.
12531 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
12532 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
12533 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
12534 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
12535 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
12536
12537 2004-02-13 Andrew Cagney <cagney@redhat.com>
12538
12539 * corelow.c (core_xfer_partial): Use "struct bfd_section".
12540 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
12541 copyright.
12542 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
12543
12544 2004-02-12 Fred Fish <fnf@redhat.com>
12545
12546 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
12547 set_gdbarch_store_return_value.
12548
12549 2004-02-12 Andrew Cagney <cagney@redhat.com>
12550
12551 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
12552 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
12553 (interrupt_query): Ditto.
12554 (ofunc): Delete unused variable.
12555 * cris-tdep.c (cris_abi): Delete unused function.
12556 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
12557 (cris_get_wide_opcode, cris_get_short_size): Ditto.
12558 (cris_get_asr_quick_shift_steps): Ditto.
12559 (cris_skip_prologue_frameless_p): Ditto.
12560 * arm-tdep.c (arm_push_return_address): Delete unused function.
12561 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
12562 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
12563 * s390-tdep.c (s390_function_start): Delete unused function.
12564
12565 2004-02-12 Andrew Cagney <cagney@redhat.com>
12566
12567 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
12568 gdbarch.h, gdbarch.c: Re-generate.
12569 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
12570 to generic_prologue_frameless_p.
12571 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
12572 * arch-utils.c (generic_prologue_frameless_p): Delete function.
12573
12574 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
12575
12576 * mips-linux-tdep.c: Include "frame.h".
12577 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
12578 (mips_linux_skip_resolver): New functions.
12579 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
12580 and set_gdbarch_in_solib_call_trampoline.
12581 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
12582 to after set_gdbarch_in_solib_return_trampoline. Only set the
12583 solib hooks to mips16 functions if the OS ABI is unknown.
12584 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
12585 including "config/tm-linux.h".
12586 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
12587 * Makefile.in (mips-linux-tdep.o): Update.
12588
12589 2004-02-11 David Carlton <carlton@kealia.com>
12590
12591 * linespec.c (decode_compound): Only look for a class symbol when
12592 considering all but the rightmost component.
12593
12594 2004-02-11 Andrew Cagney <cagney@redhat.com>
12595
12596 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
12597 abi code are are separatly grouped.
12598
12599 2004-02-11 Andrew Cagney <cagney@redhat.com>
12600
12601 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
12602 * gdbarch.h, gdbarch.c: Re-generate.
12603 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12604 * v850-tdep.c (v850_gdbarch_init): Update.
12605 * sh64-tdep.c (sh64_gdbarch_init): Update.
12606 * sh-tdep.c (sh_gdbarch_init): Update.
12607 * s390-tdep.c (s390_gdbarch_init): Update.
12608 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12609 * mips-tdep.c (mips_gdbarch_init): Update.
12610 * mcore-tdep.c (mcore_gdbarch_init): Update.
12611 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12612 * m32r-tdep.c (m32r_gdbarch_init): Update.
12613 * ia64-tdep.c (ia64_gdbarch_init): Update.
12614 * hppa-tdep.c (hppa_gdbarch_init): Update.
12615 * h8300-tdep.c (h8300_gdbarch_init): Update.
12616 * frv-tdep.c (frv_gdbarch_init): Update.
12617 * d10v-tdep.c (d10v_gdbarch_init): Update.
12618 * cris-tdep.c (cris_gdbarch_init): Update.
12619 * avr-tdep.c (avr_gdbarch_init): Update.
12620 * arm-tdep.c (arm_gdbarch_init): Update.
12621 * alpha-tdep.c (alpha_gdbarch_init): Update.
12622
12623 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
12624
12625 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
12626 comma.
12627 (sh_sh4al_dsp_register_name): Ditto.
12628
12629 2004-02-10 Andrew Cagney <cagney@redhat.com>
12630
12631 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
12632 (mips_init_frame_pc_first): Delete function.
12633 (mips_frame_saved_pc): Delete function.
12634 (mips_frame_chain): Delete function.
12635 (mips_init_extra_frame_info): Delete function.
12636 (mips_xfer_register): Delete unused variable "reg".
12637 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
12638 (mips_n32n64_return_value): Delete unused variable "reg".
12639 (mips_n32n64_return_value): Delete unused variable "pos".
12640 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
12641 (mips_o32_return_value): Delete unused variable "pos".
12642 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
12643 (mips_print_fp_register): Delete unused variable "namelen"
12644 (mips_print_fp_register): Delete unused variable "flt2"
12645 (get_frame_pointer): Delete function.
12646 (cached_proc_desc): Delete static variable.
12647 (mips_pop_frame): Delete function.
12648 (mips_find_saved_regs): Delete function.
12649 (mips_get_saved_register): Delete function.
12650 (mips_saved_pc_after_call): Delete function.
12651 (SIGFRAME_BASE): Delete macro.
12652 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
12653 (SIGFRAME_PC_OFF): Delete macro.
12654 (SIGFRAME_REGSAVE_OFF): Delete macro.
12655 (mips_dump_tdep): Do not print deleted macro definitions.
12656
12657 2004-02-10 Andrew Cagney <cagney@redhat.com>
12658
12659 * Makefile.in (SFILES): Remove explictly listed tui files.
12660 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
12661
12662 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
12663
12664 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
12665 to use paddr functions to format ia64 addresses and long values.
12666 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
12667 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
12668 (get_kernel_table, ia64_find_proc_info_x): Ditto.
12669 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
12670 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
12671
12672 2004-02-10 Andrew Cagney <cagney@redhat.com>
12673
12674 * defs.h: Do not include "tui.h".
12675 * gdb_curses.h: New file.
12676 * tui/tui-hooks.h: New file.
12677 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
12678 (tui_install_hooks, tui_remove_hooks): Delete declarations.
12679 (tui_initialize_io): Delete declaration.
12680 (tui_initialize_readline: Delete redundant declaration.
12681 (struct tui_point): Delete definition.
12682 * tui/tui-data.h (struct tui_point): Define.
12683 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
12684 * utils.c: Include "tui/tui.h".
12685 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
12686 * printcmd.c [TUI]: Include "tui/tui.h".
12687 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
12688 * tui/tui-command.c: Include "gdb_curses.h".
12689 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
12690 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
12691 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
12692 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
12693 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
12694 * Makefile.in: Update all dependencies.
12695 (tui_hooks_h, gdb_curses_h): Define.
12696 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
12697
12698 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
12699
12700 * objfiles.h (struct objfile): Remove unused fields auxf1 and
12701 auxf2. Add comments about some other rarely used fields.
12702
12703 2004-02-10 Andrew Cagney <cagney@redhat.com>
12704
12705 * Makefile.in (init.c): Fix script removing duplicates. Problem
12706 reported by Peter Schauer.
12707
12708 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12709
12710 * bcache.c (bcache_xmalloc): Use obstack_init instead of
12711 obstack_specify_allocation.
12712 * objfiles.c (allocate_objfile): Ditto.
12713 * solib-sunos.c (solib_add_common_symbols)
12714 (allocate_rt_common_objfile): Ditto.
12715 * symfile.c (reread_symbols): Ditto.
12716 * gdb_obstack.h: Add comment.
12717
12718 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12719
12720 * linespec.c (decode_line_1, locate_first_half)
12721 (decode_compound, lookup_prefix_sym): Update comments. Delete old
12722 commented out code.
12723
12724 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
12725
12726 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
12727 obstack_free.
12728
12729 2004-02-09 Andrew Cagney <cagney@redhat.com>
12730
12731 * blockframe.c (find_pc_partial_function): If find_pc_overlay
12732 fails, try find_pc_section. Fix PR c++/1267.
12733 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
12734 instead of find_pc_mapped_section.
12735 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
12736 not default to the section containing PC. Fix PR symtab/1519.
12737
12738 2004-02-09 Andrew Cagney <cagney@redhat.com>
12739
12740 * Makefile.in (mips-tdep.o): Update dependencies.
12741 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
12742 "trad-frame.h".
12743 (mips_unwind_pc): Return the pseudo PC register.
12744 (mips_unwind_dummy_id): New function.
12745 (mips16_fetch_instruction): New function.
12746 (mips32_fetch_instruction): New function.
12747 (struct mips_frame_cache): Define.
12748 (mips_mdebug_frame_cache): New function.
12749 (mips_mdebug_frame_this_id): New function.
12750 (mips_mdebug_frame_prev_register): New function.
12751 (mips_mdebug_frame_unwind): Define.
12752 (mips_mdebug_frame_sniffer): New function.
12753 (mips_mdebug_frame_base_address): New function.
12754 (mips_mdebug_frame_base): Define.
12755 (mips_mdebug_frame_base_sniffer): New function.
12756 (mips_gdbarch_init): Append unwind and base sniffers. Set
12757 unwind_dummy_id.
12758
12759 2004-02-08 Andrew Cagney <cagney@redhat.com>
12760
12761 * frame.c: Print both the register number and name.
12762
12763 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
12764 and a sed into a single sed. Make .c and .o patterns more robust.
12765 (OBS): Delete.
12766 (INIT_FILES): Replace OBS with COMMON_OBS.
12767 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
12768
12769 2004-02-08 Mark Kettenis <kettenis@gnu.org>
12770
12771 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
12772 the PT_WCOOKIE request.
12773
12774 2004-02-08 Andrew Cagney <cagney@redhat.com>
12775
12776 * mips-tdep.c (mips_unwind_pc): New function.
12777 (mips_gdbarch_init): Set mips_unwind_pc.
12778
12779 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
12780 (get_frame_id): Allow the UNKNOWN_FRAME.
12781 (frame_register_unwind, get_frame_type): Ditto.
12782
12783 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
12784 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
12785 unwind_dummy_id indicates a legacy frame.
12786
12787 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
12788 * configure: Re-generate.
12789
12790 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
12791 methods.
12792
12793 2004-02-08 Andrew Cagney <cagney@redhat.com>
12794
12795 * configure.in (CONFIG_ALL): Set to Makefile target, and not
12796 makefile macro.
12797 * configure: Re-generate.
12798 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
12799 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
12800 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
12801 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
12802 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
12803 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
12804 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
12805 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
12806 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
12807 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
12808
12809 2004-02-07 Andrew Cagney <cagney@redhat.com>
12810
12811 * Makefile.in: Update all dependencies.
12812
12813 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
12814 * configure: Re-generate.
12815 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
12816 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
12817 (COMMON_OBS): Add "main.o" and "annotate.o".
12818 (ANNOTATE_OBS): Delete.
12819 (OBS): Remove ANNOTATE_OBS.
12820 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
12821 CONFIG_INITS.
12822 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
12823 against CONFIG_OBS and "main.o".
12824 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
12825 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
12826
12827 * tui/tui-command.c: Include "gdb_string.h", delete register
12828 attribute, use ISO-C function signatures.
12829 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
12830 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12831 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
12832 * tui/tui.c: Ditto.
12833
12834 * tui/tui-command.c: Change variable and function names to lower
12835 case.
12836 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
12837 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
12838 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12839 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12840 * tui/tui-winsource.c, tui/tui.c: Ditto.
12841
12842 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12843
12844 * buildsym.c (free_pending_blocks, finish_block)
12845 (record_pending_block, make_blockvector, end_symtab): Replace
12846 symbol_obstack with objfile_obstack.
12847 * coffread.c (process_coff_symbol, coff_read_struct_type)
12848 (coff_read_enum_type): Ditto.
12849 * cp-namespace.c (initialize_namespace_symtab)
12850 (check_one_possible_namespace_symbol): Ditto.
12851 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
12852 (dwarf2_symbol_mark_computed): Ditto.
12853 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
12854 * elfread.c (elf_symtab_read): Ditto.
12855 * hpread.c (hpread_symfile_init, hpread_symfile_init)
12856 (hpread_read_enum_type, hpread_read_function_type)
12857 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
12858 Ditto.
12859 * jv-lang.c (get_java_class_symtab, add_class_symbol)
12860 (java_link_class_type): Ditto.
12861 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
12862 (new_symbol): Ditto.
12863 * minsyms.c (install_minimal_symbols): Ditto.
12864 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
12865 (terminate_minimal_symbol_table): Replace symbol_obstack with
12866 objfile_obstack.
12867 (free_objfile): Remove freeing of symbol_obstack.
12868 * objfiles.h: Remove symbol_obstack field.
12869 * pa64solib.c (add_to_solist): Replace symbol_obstack with
12870 objfile_obstack.
12871 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12872 symbol_obstack.
12873 (solib_add_common_symbols): Replace symbol_obstack with
12874 objfile_obstack.
12875 * somsolib.c (som_solib_add): Ditto.
12876 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
12877 (common_block_start, common_block_end): Ditto.
12878 * symfile.c (reread_symbols): Remove freeing and init of
12879 symbol_obstack.
12880 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
12881 * symfile.h: Update comment.
12882 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
12883 stats printing.
12884 * symtab.c (symbol_set_names): Replace symbol_obstack with
12885 objfile_obstack.
12886 * symtab.h (struct general_symbol_info, struct minimal_symbol):
12887 Update comments.
12888 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
12889 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
12890 objfile_obstack.
12891
12892 2004-02-07 Andrew Cagney <cagney@redhat.com>
12893
12894 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
12895 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
12896 fields and variables.
12897 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
12898 (m_beInvisible): Delete macro.
12899 * tui/tui-data.h: Fix case case fields and variables.
12900 (m_genWinPtrIsNull): Delete macro.
12901 (tui_win_list): Rename winList.
12902 (TUI_SRC_WIN): Rename srcWin.
12903 (TUI_DISASM_WIN): Rename disassemWin.
12904 (TUI_DATA_WIN): Rename dataWin.
12905 (TUI_CMD_WIN): Rename cmdWin.
12906 (m_genWinPtrNotNull): Delete macro.
12907 (m_winPtrIsNull): Delete macro.
12908 (m_winPtrNotNull): Delete macro.
12909 (tui_win_is_source_type): Replace m_winIsSourceType
12910 (tui_win_is_auxillary): Replace m_winIsAuzillary.
12911 (tui_win_has_locator): Replace m_hasLocator.
12912 (tui_set_win_highlight): Replace m_setWinHighlightOn and
12913 m_setWinHighlightOff.
12914 * tui/tui-data.c: Update references.
12915 (tui_win_is_source_type, tui_set_win_highlight): New functions.
12916 (tui_win_has_locator, tui_win_is_auxillary): New functions.
12917 * tui/tui-command.c, tui/tui-disasm.c: Update references.
12918 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
12919 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
12920 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12921 * tui/tui-winsource.c, tui/tui.c: Ditto.
12922
12923 2004-02-07 Mark Kettenis <kettenis@gnu.org>
12924
12925 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
12926 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
12927 StackGhost.
12928
12929 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
12930 variable `i6' to `i7'.
12931 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12932
12933 2004-02-07 Andrew Cagney <cagney@redhat.com>
12934
12935 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
12936 (TuiPoint, TuiPointPtr): Ditto.
12937 (TuiStatus, TuiStatusPtr): Ditto.
12938 (TuiWinType, TuiWinTypePtr): Ditto.
12939 (struct tui_point): Rename _TuiPoint.
12940 (tui_get_low_disassembly_address): Rename
12941 tuiGetLowDisassemblyAddress.
12942 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
12943 (tuiFree): Delete declaration.
12944 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
12945 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
12946 * tui/tui.c (tuiFree): Delete function.
12947 * cli/cli-cmds.c (disassemble_command): Update references.
12948 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
12949 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12950 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
12951 * tui/tui-winsource.c: Ditto.
12952
12953 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12954
12955 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
12956 coffstab_build_psymtabs, elfstab_build_psymtabs)
12957 (stabsect_build_psymtabs): Replace psymbol_obstack with
12958 objfile_obstack.
12959 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
12960 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
12961 Ditto.
12962 * dwarfread.c (scan_compilation_units): Ditto.
12963 * elfread.c (elfstab_offset_sections): Ditto.
12964 * hppa-tdep.c (read_unwind_info): Ditto.
12965 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
12966 (hpread_end_psymtab): Ditto.
12967 * mdebugread.c (mdebug_build_psymtabs, add_pending)
12968 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
12969 Ditto.
12970 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
12971 * objfiles.c (add_to_objfile_sections)
12972 (build_objfile_section_table): Ditto.
12973 (allocate_objfile): Remove init of psymbol_obstack.
12974 (free_objfile): Remove freeing of psymbol_obstack.
12975 * objfiles.h (struct objfile): Remove field
12976 psymbol_obstack. Update comments.
12977 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
12978 psymbol_obstack with objfile_obstack.
12979 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12980 psymbol_obstack.
12981 * somread.c (som_symfile_offsets, init_import_symbols)
12982 (init_export_symbols): Replace psymbol_obstack with
12983 objfile_obstack.
12984 * somsolib.c (som_solib_add_solib_objfile): Ditto.
12985 * symfile.c (default_symfile_offsets, syms_from_objfile)
12986 (reread_symbols): Remove freeing and init of psymbol_obstack.
12987 (cashier_psymtab): Update comment.
12988 * symmisc.c (print_objfile_statistics): Don't report stats for
12989 psymbol obstack.
12990 * symtab.h (struct general_symbol_info, struct partial_symtab):
12991 Update comments.
12992 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
12993 (xcoff_symfile_offsets): Replace psymbol_obstack with
12994 objfile_obstack.
12995
12996 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12997
12998 * objfiles.h (struct objfile): Add objfile_obstack field.
12999 Remove type_obstack field.
13000
13001 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
13002 read_structure_scope read_enumeration, new_symbol): Replace
13003 type_obstack with objfile_obstack.
13004 * dwarfread.c (struct_type, enum_type): Ditto.
13005 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
13006 (lookup_fundamental_type): Ditto.
13007 * gdbtypes.h (TYPE_ALLOC): Ditto.
13008 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
13009 (hpread_read_doc_function_type, hpread_read_struct_type)
13010 (fix_static_member_physnames, hpread_read_array_type)
13011 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
13012 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
13013 (java_link_class_type): Ditto.
13014 * mdebugread.c (parse_type): Ditto.
13015 * objfiles.c (allocate_objfile, free_objfile): Ditto.
13016 * solib-sunos.c (solib_add_common_symbols): Ditto.
13017 * stabsread.c (define_symbol, read_type, read_member_functions,
13018 read_cpp_abbrev, read_one_struct_field): Ditto.
13019 * symfile.c (reread_symbols): Ditto.
13020 * symmisc.c (print_objfile_statistics): Ditto.
13021
13022 2004-02-07 Andrew Cagney <cagney@redhat.com>
13023
13024 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
13025 (tui_exec_info_content): Rename TuiExecInfoContent.
13026 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
13027 (TuiWinInfo, TuiWinInfoPtr): Ditto.
13028 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
13029 (TuiList, TuiListPtr): Ditto.
13030 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
13031 (TuiDataType, TuiDataTypePtr): Ditto.
13032 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
13033 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
13034 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
13035 (TuiSourceElement, TuiSourceElementPtr): Ditto.
13036 (TuiDataElement, TuiDataElementPtr): Ditto.
13037 (TuiWinElement, TuiWinElementPtr): Ditto.
13038 (TuiDataInfo, TuiDataInfoPtr): Ditto.
13039 (TuiCommandElement, TuiCommandElementPtr): Ditto.
13040 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
13041 (TuiWhichElement, TuiWhichElementPtr): Ditto.
13042 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
13043 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
13044 * tui/tui-command.c, tui/tui-data.c: Update references.
13045 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
13046 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
13047 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
13048 * tui/tui-winsource.c, tui/tui.c: Ditto.
13049
13050 2004-02-07 Mark Kettenis <kettenis@gnu.org>
13051
13052 * dwarf2-frame.h: Update copyright.
13053 (enum dwarf2_frame_reg_rule): New.
13054 (struct dwarf2_frame_state_reg): New.
13055 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
13056 * dwarf2-frame.c: Update copyright.
13057 (enum dwarf2_reg_rule): Remove.
13058 (struct dwarf2_frame_state): Remove defenition of `struct
13059 dwarf2_frame_state_reg'.
13060 (read_reg): Call get_frame_arch to get the architecture instead of
13061 using CURRENT_GDBARCH.
13062 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
13063 DWARF2_FRAME_.
13064 (dwarf2_frame_init_reg): New function.
13065 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
13066 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
13067 initialize the register state. Prefix old `enum dwarf2_reg_rule'
13068 tags with DWARF2_FRAME_.
13069 (dwarf2_frame_prev_register): Call get_frame_arch to get the
13070 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
13071 dwarf2_reg_rule' tags with DWARF2_FRAME_.
13072
13073 2004-02-06 Andrew Cagney <cagney@redhat.com>
13074
13075 * tui/tui-data.h (struct tui_list): Rename _TuiList.
13076 (enum tui_data_type): Rename _TuiDataType.
13077 (struct tui_layout_def): Rename _TuiLayoutDef.
13078 (struct tui_source_element): Rename _TuiSourceElement.
13079 (struct tui_data_element): Rename _TuiDataElement.
13080 (struct tui_command_element): Rename _TuiCommandElement.
13081 (struct tui_locator_element): Rename _TuiLocatorElement.
13082 (union tui_which_element): Define.
13083 (struct tui_win_element): Rename _TuiWinElement.
13084 (struct tui_data_info): Rename _TuiDataInfo.
13085 (struct tui_source_info): Rename _TuiSourceInfo.
13086 (struct tui_command_info): Rename _TuiCommandInfo.
13087 (tui_initialize_static_data): Rename initializeStaticData.
13088 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
13089 (tui_alloc_win_info): Rename allocWinInfo.
13090 (tui_init_generic_part): Rename initGenericPart.
13091 (tui_init_win_info): Rename initWinInfo.
13092 (tui_alloc_content): Rename allocContent.
13093 (tui_add_content_elements): Rename addContentElements.
13094 (tui_init_content_element): Rename initContentElement.
13095 (tui_free_window): Rename freeWindow.
13096 (tui_free_win_content): Rename freeWinContent.
13097 (tui_free_data_content): Rename freeDataContent.
13098 (tui_free_all_source_wins_content): Rename
13099 freeAllSourceWinsContent.
13100 (tui_del_window): Rename tuiDelWindow.
13101 (tui_del_data_windows): Rename tuiDelDataWindows.
13102 (tui_partial_win_by_name): Rename partialWinByName.
13103 (tui_win_name): Rename winName.
13104 (tui_current_layout): Rename currentLayout.
13105 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
13106 (tui_term_height): Rename termHeight.
13107 (tui_set_term_height_to): Rename setTermHeightTo.
13108 (tui_term_width): Rename termWidth.
13109 (tui_set_term_width_to): Rename setTermWidthTo.
13110 (tui_set_gen_win_origin): Rename setGenWinOrigin.
13111 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
13112 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
13113 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
13114 (tui_source_windows): Rename sourceWindows.
13115 (tui_clear_source_windows): Rename clearSourceWindows.
13116 (tui_clear_source_windows_detail): Rename
13117 clearSourceWindowsDetail.
13118 (tui_clear_win_detail): Rename clearWinDetail.
13119 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
13120 (tui_default_tab_len): Rename tuiDefaultTabLen.
13121 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
13122 (tui_win_with_focus): Rename tuiWinWithFocus.
13123 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
13124 (tui_layout_def): Rename tuiLayoutDef.
13125 (tui_win_resized): Rename tuiWinResized.
13126 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
13127 (tui_next_win): Rename tuiNextWin.
13128 (tui_prev_win): Rename tuiPrevWin.
13129 (tui_add_to_source_windows): Rename addToSourceWindows.
13130 * tui/tui-winsource.c, tui/tui-win.c: Update references.
13131 * tui/tui-layout.c, tui/tui-source.c: Ditto.
13132 * tui/tui-stack.c, tui/tui-io.c: Ditto.
13133 * tui/tui.c, tui/tui-data.c: Ditto.
13134 * tui/tui-interp.c, tui/tui-data.c: Ditto.
13135 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
13136
13137 * tui/tui-source.h: Update copyright. Include "tui-data.h".
13138 (struct symtab): Declare.
13139 (tui_set_source_content): Rename tuiSetSourceContent.
13140 (tui_show_symtab_source): Rename tuiShowSource.
13141 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
13142 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
13143 * tui/tui-source.c: Update copyright. Update references.
13144 * tui/tui-win.c, tui/tui-winsource.c: Update references.
13145 * tui/tui-stack.c: Update references.
13146
13147 * tui/tui-win.h: Update copyright. Include "tui-data.h".
13148 (struct tui_win_info): Declare.
13149 (tui_scroll_forward): Rename tuiScrollForward.
13150 (tui_scroll_backward): Rename tuiScrollBackward.
13151 (tui_scroll_left): Rename tuiScrollLeft.
13152 (tui_scroll_right): Rename tuiScrollRight.
13153 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
13154 (tui_resize_all): Rename tuiResizeAll.
13155 (tui_refresh_all_win): Rename tuiRefreshAll.
13156 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
13157 * tui/tui-layout.c, * tui/tui-io.c: Update references.
13158 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
13159 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
13160
13161 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
13162 (tui_erase_data_content): Rename tuiEraseDataContent.
13163 (tui_display_all_data): Rename tuiDisplayAllData.
13164 (tui_check_data_values): Rename tuiCheckDataValues.
13165 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
13166 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
13167 (tui_first_data_element_no_in_line): Rename
13168 tuiFirstDataElementNoInLine.
13169 (tui_delete_data_content_windows): Rename
13170 tuiDeleteDataContentWindows.
13171 (tui_refresh_data_win): Rename tuiRefreshDataWin.
13172 (tui_display_data_from): Rename tuiDisplayDataFrom.
13173 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
13174 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
13175 * tui/tui-win.c, tui/tui-regs.c: Update references.
13176 * tui/tui-layout.c, tui/tui.c: Update references.
13177
13178 * tui/tui-wingeneral.h: Update copyright.
13179 (m_allBeVisible): Delete macro.
13180 (m_allBeInvisible): Delete macro.
13181 (struct tui_gen_win_info): Declare.
13182 (struct tui_win_info): Declare.
13183 (tui_unhighlight_win): Rename unhighlightWin.
13184 (tui_make_visible, tui_make_invisible): Replace makeVisible.
13185 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
13186 (tui_make_window): Rename makeWindow.
13187 (tui_copy_win): Rename copyWin.
13188 (tui_box_win): Rename boxWin.
13189 (tui_highlight_win): Rename highlightWin.
13190 (tui_check_and_display_highlight_if_needed): Rename
13191 checkAndDisplayHighlightIfNeeded.
13192 (tui_refresh_all): Rename refreshAll.
13193 (tui_delete_win): Rename tuiDelwin.
13194 (tui_refresh_win): Rename tuiRefreshWin.
13195 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
13196 (tui_make_visible, tui_make_invisible): New functions.
13197 (tui_make_all_visible, tui_make_all_invisible): New functions.
13198 (make_all_visible): Rename makeAllVisible.
13199 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
13200 * tui/tui-data.c, tui/tui-winsource.c: Update references.
13201 * tui/tui-windata.c, tui/tui-win.c: Update references.
13202 * tui/tui-regs.c, tui/tui-layout.c: Update references.
13203 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
13204
13205 2004-02-06 Mark Kettenis <kettenis@gnu.org>
13206
13207 * proc-api.c (write_with_trace): Initialize local variable to
13208 silence compiler warning.
13209
13210 2004-02-06 Andrew Cagney <cagney@redhat.com>
13211
13212 * tui/tui-source.h: Do not include "defs.h".
13213 (struct tui_win_info): Declare.
13214 (tui_set_source_content_nil): Declare.
13215 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
13216 (union tui_line_or_address): Rename _TuiLineOrAddress.
13217 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
13218 (tui_update_source_window): Rename tuiUpdateSourceWindow.
13219 (tui_update_source_window_as_is): Rename
13220 tuiUpdateSourceWindowAsIs.
13221 (tui_update_source_windows_with_addr): Rename
13222 tuiUpdateSourceWindowsWithAddr.
13223 (tui_update_source_windows_with_line): Rename
13224 tuiUpdateSourceWindowsWithLine.
13225 (tui_clear_source_content): Rename tuiClearSourceContent.
13226 (tui_erase_source_content): Rename tuiEraseSourceContent.
13227 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
13228 (tui_show_source_content): Rename tuiShowSourceContent.
13229 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
13230 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
13231 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
13232 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
13233 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
13234 (tui_update_exec_info): Rename tuiUpdateExecInfo.
13235 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
13236 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
13237 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
13238 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
13239 (struct tui_win_info): Declare.
13240 * tui/tui-stack.c: Update references.
13241 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
13242 * tui/tui-win.c, tui/tui-source.c: Ditto.
13243 * tui/tui.c, tui/tui-disasm.c: Ditto.
13244
13245 2004-02-06 Mark Kettenis <kettenis@gnu.org>
13246
13247 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
13248 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
13249
13250 2004-02-05 Mark Kettenis <kettenis@gnu.org>
13251
13252 * infrun.c (handle_inferior_event): Allow for breakpoint
13253 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
13254 and SIGEMT. Update comments.
13255 * NEWS (Revised SPARC target): Mention support for non-executable
13256 stack.
13257
13258 2004-02-04 Mark Kettenis <kettenis@gnu.org>
13259
13260 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
13261 * inftarg.c: Update copyright year.
13262 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
13263 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
13264 (sparc_xfer_wcookie): New function.
13265 * sparc-tdep.c (sparc_fetch_wcookie): New function.
13266 * Makefile.in (sparc-nat.o): Update dependencies.
13267 * config/sparc/nm-nbsd.h: Include "target.h".
13268 (NATIVE_XFER_WCOOKIE): New define.
13269 (sparc_xfer_wcookie): New prototype.
13270
13271 2004-02-04 Andrew Cagney <cagney@redhat.com>
13272
13273 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
13274 SYSCALL_TRAP function.
13275 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
13276
13277 2004-02-04 Andrew Cagney <cagney@redhat.com>
13278 Daniel Jacobowitz <drow@mvista.com>
13279
13280 * objfiles.h: Delete comments refering to inside_entry_func and
13281 DEPRECATED_FRAME_CHAIN_VALID.
13282 * defs.h (inside_entry_func): Update prototype..
13283 * blockframe.c (inside_entry_func): Rename to
13284 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
13285 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
13286
13287 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
13288
13289 * breakpoint.c (struct captured_parse_breakpoint_args): Move
13290 outside of #ifdef SOLIB_ADD region.
13291 (do_restore_lang_radix_cleanup): Ditto.
13292 (resolve_pending_breakpoint): Ditto.
13293
13294 2004-02-03 Andrew Cagney <cagney@redhat.com>
13295
13296 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
13297 (process_note_abi_tag_sections): Delete unused function.
13298 (ia64_read_fp): Delete unused function.
13299 (gdbarch_extract_struct_value_address): Delete declaration.
13300
13301 2004-02-02 Andrew Cagney <cagney@redhat.com>
13302
13303 * vax-tdep.c (vax_frame_chain): Delete call to
13304 deprecated_inside_entry_file.
13305 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
13306
13307 2004-02-02 Mark Kettenis <kettenis@gnu.org>
13308
13309 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
13310 column that's "empty" or "same value" when eliminating REG_RA
13311 rules.
13312
13313 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
13314
13315 * NEWS: Add information about new pending breakpoint support.
13316
13317 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
13318
13319 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
13320 and pending fields for pending breakpoint support.
13321 * breakpoint.c (breakpoint_enabled): Add check for not pending.
13322 (condition_command): Only parse condition if not a pending
13323 breakpoint.
13324 (print_one_breakpoint): Add support for pending breakpoints.
13325 (describe_other_breakpoints): Add checks to verify we are not
13326 dealing with pending breakpoints.
13327 (check_duplicates): Don't check pending breakpoints.
13328 (set_raw_breakpoint): Initialize pending flag.
13329 (do_restore_lang_radix_cleanup): New cleanup routine.
13330 (resolve_pending_breakpoint): New function.
13331 (re_enable_breakpoints_in_shlibs): Try and resolve any
13332 pending breakpoints via resolve_pending_breakpoint.
13333 (mention): Add pending breakpoint support.
13334 (parse_breakpoint_sals): Add new parameter to pass to
13335 decode_line_1 to indicate silent errors when files or functions
13336 are not found. Change all callers.
13337 (do_captured_parse_breakpoint): New function.
13338 (break_command_1): Change prototype to return an rc value and to
13339 take an optional pending breakpoint pointer. Support creating
13340 a pending breakpoint if a "not found" form of error occurs when
13341 parsing the breakpoint. Also support resolving an existing pending
13342 breakpoint and be silent if the resolution fails.
13343 (create_breakpoints): Change prototype to take pending breakpoint
13344 pointer. When resolving a pending breakpoint, use the new pointer
13345 to provide a conditional or commands added by the end-user.
13346 (delete_breakpoint): Add appropriate check for pending.
13347 (breakpoint_re_set_one): Ditto.
13348 (do_enable_breakpoint): Ditto.
13349
13350 2004-02-02 David Carlton <carlton@kealia.com>
13351
13352 * valops.c (enum oload_classification): New.
13353 (find_overload_match): Break implementation into separate
13354 functions; delete #if 0'd code; look for symbols within
13355 namespaces.
13356 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
13357 (find_oload_champ,oload_method_static,classify_oload_match): New.
13358 * cp-support.h: Add declaration for cp_func_name; update
13359 declaration for make_symbol_overload_list.
13360 * cp-support.c (cp_func_name): New.
13361 (overload_list_add_symbol): Fix comment, use
13362 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
13363 (make_symbol_overload_list): Take a function name and a namespace
13364 instead of a symbol; change implementation.
13365 (make_symbol_overload_list_using): New.
13366 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
13367
13368 2004-02-02 Fred Fish <fnf@redhat.com>
13369
13370 * main.c (gdb_stdtarg): Move definition to group with other
13371 gdb_stdtarg definitions and update copyright years.
13372 * remote-sim.c (gdb_os_write_stderr): Write output to
13373 gdb_stdtargerr stream instead of gdb_stdtarg stream.
13374 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
13375 gdb_stderr stream and update copyright years.
13376
13377 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13378
13379 * Makefile.in (mips-linux-nat.o): Update dependencies.
13380 * mips-linux-nat.c: Include mips-tdep.h.
13381
13382 2004-02-01 Roland McGrath <roland@redhat.com>
13383
13384 * sol-thread.c (sol_thread_xfer_partial): New function.
13385 (init_sol_thread_ops): Use that for to_xfer_partial hook.
13386 (init_sol_core_ops): Likewise.
13387
13388 * procfs.c (procfs_xfer_partial): New function.
13389 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
13390 * Makefile.in (procfs.o): Add $(auxv_h) dep.
13391
13392 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
13393 procfs_xfer_auxv function.
13394
13395 * procfs.c (procfs_make_note_section): If we can read
13396 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
13397 * linux-proc.c (linux_make_note_section): Likewise.
13398
13399 * auxv.h: New file.
13400 * auxv.c: New file.
13401 * Makefile.in (auxv_h): New variable.
13402 (COMMON_OBS): Add auxv.o here.
13403 (auxv.o): New target.
13404
13405 * corelow.c (core_xfer_partial): New function.
13406 (init_core_ops): Use it for core_ops.to_xfer_partial.
13407
13408 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
13409 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
13410 macro if that is defined.
13411
13412 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13413
13414 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
13415 and check the specified thread for each breakpoint.
13416 * breakpoint.h (bpstat_stop_status): Update prototype.
13417 * infrun.c (handle_inferior_event): Update calls to
13418 bpstat_stop_status.
13419
13420 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13421
13422 * Makefile.in (cli-cmds.o): Add $(readline_h).
13423
13424 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13425
13426 * cli/cli-cmds.c: Include readline.h.
13427 (complete_command): Pass the start of the last word to
13428 complete_line.
13429
13430 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13431
13432 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
13433 argument, and change first argument to a CORE_ADDR.
13434 * breakpoint.h (bpstat_stop_status): Update prototype.
13435 * infrun.c (adjust_pc_after_break): Add a new comment.
13436 (handle_inferior_event): Update calls to bpstat_stop_status.
13437
13438 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13439
13440 * breakpoint.h: Update copyright years.
13441
13442 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13443
13444 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
13445 (bpstat_stop_status): Don't decrement PC.
13446 * breakpoint.h (software_breakpoint_inserted_here_p): Add
13447 prototype.
13448 * infrun.c (adjust_pc_after_break): New function.
13449 (handle_inferior_event): Call it, early. Remove later references
13450 to DECR_PC_AFTER_BREAK.
13451 (normal_stop): Add commentary.
13452
13453 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13454
13455 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
13456 2004-01-27 double-free fix.
13457
13458 2004-01-31 Mark Kettenis <kettenis@gnu.org>
13459
13460 * sparc-tdep.c (sparc_fetch_wcookie): New function.
13461 (sparc32_frame_prev_register): Handle StackGhost.
13462 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
13463
13464 2004-01-29 Roland McGrath <roland@redhat.com>
13465
13466 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
13467 * configure: Regenerated.
13468
13469 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
13470 * Makefile.in (procfs.o): Add dep.
13471
13472 2004-01-28 Andrew Cagney <cagney@redhat.com>
13473
13474 * tui/tui-stack.h: Update copyright.
13475 (struct frame_info): Add opaque declaration.
13476 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
13477 (tui_show_locator_content): Rename tuiShowLocatorContent.
13478 (tui_show_frame_info): Rename tuiShowFrameInfo.
13479 * tui/tui-stack.c: Update copyright. Update references.
13480 * tui/tui-winsource.c: Update references.
13481 * tui/tui-win.c: Update references.
13482 * tui/tui-layout.c: Update references.
13483 * tui/tui-hooks.c: Update copyright, update references.
13484 * tui/tui.c: Update copyright, update references.
13485 * tui/tui-disasm.c: Update references.
13486
13487 2004-01-28 David Carlton <carlton@kealia.com>
13488
13489 * dwarf2read.c (add_partial_structure): Use demangled name if
13490 namespace equals "".
13491
13492 2004-01-27 Jim Blandy <jimb@redhat.com>
13493
13494 Clean up misapplied patch:
13495 * dwarf2read.c (determine_prefix): Change one of the two forward
13496 declarations for 'determine_prefix_aux' to a declaration for this.
13497 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
13498 argument to 'die_specification'.
13499
13500 * dwarf2read.c (read_func_scope): Re-indent comment.
13501
13502 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
13503
13504 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
13505 b->exp to NULL after freeing so that error during re-parsing or
13506 evaluation of expressions associated with breakpoint don't
13507 eventually lead to re-freeing of storage.
13508 Committed by Andrew Cagney.
13509
13510 2004-01-27 Andrew Cagney <cagney@redhat.com>
13511
13512 * source.c (ambiguous_line_spec): Delete undefined declaration.
13513 * m32r-rom.c (m32r_set_board_address): Delete unused function.
13514 (m32r_set_server_address, m32r_set_download_path): Ditto.
13515 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
13516
13517 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
13518
13519 * dwarf2read.c: Update calls to changed and renamed functions, and
13520 references to moved variables.
13521
13522 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
13523 language, language_defn, list_in_scope, and ftypes members.
13524 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
13525 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
13526 (baseaddr): Remove globals.
13527
13528 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
13529 (set_cu_language, die_is_declaration, die_specification)
13530 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
13531 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
13532 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
13533 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
13534
13535 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
13536 cu.list_in_scope. Don't initialize cu_header_offset.
13537 (add_partial_symbol): Add local baseaddr.
13538 (psymtab_to_symtab_1): Add local baseaddr. Use
13539 objfile->section_offsets for consistency. Don't initialize
13540 cu_header_offset; do initialize cu.header.offset and
13541 cu.list_in_scope.
13542 (read_file_scope, read_func_scope, read_lexical_block_scope)
13543 (dwarf_decode_lines, new_symbol): Add local baseaddr.
13544
13545 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
13546
13547 * PROBLEMS: Add gdb/1516.
13548
13549 2003-12-29 Robert Millan <robertmh@gnu.org>
13550
13551 Patch committed by Andrw Cagney.
13552 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
13553 * configure.tgt: Match knetbsd*-gnu.
13554
13555 2004-01-26 Andrew Cagney <cagney@redhat.com>
13556
13557 * breakpoint.c (catch_command_1): Delete #ifdef code.
13558 (catch_fork_command_1): Delete #ifdef wrapper.
13559 (catch_exec_command_1): Ditto.
13560 (catch_load_command_1): Ditto.
13561 (catch_unload_command_1): Ditto.
13562
13563 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
13564 (catch_breakpoint): Delete #if0ed function.
13565 (disable_catch_breakpoint): Ditto.
13566 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
13567 (disable_catch, enable_catch, delete_catch): Ditto.
13568
13569 2004-01-26 Andrew Cagney <cagney@redhat.com>
13570
13571 * remote.c (echo_check, quit_flag): Delete variables.
13572 (cisco_kernel_mode): Delete variable.
13573 (minitelnet_return, tty_input, escape_count): Delete variables.
13574 (remote_cisco_mode): Delete variable.
13575 (remote_cisco_open, remote_cisco_close): Delete function.
13576 (remote_cisco_mourn, remote_cisco_wait): Delete function.
13577 (init_remote_cisco_ops): Delete function.
13578 (_initialize_remote): Do not install "remote cisco" code.
13579 (read_frame): Delete cisco specific code.
13580 (remote_info_process): Delete function.
13581 (remote_wait): Delete cisco specific code.
13582 (remote_cisco_section_offsets): Delete function.
13583 (remote_cisco_objfile_relocate): Delete function.
13584 (remote_async_wait): Delete cisco specific code.
13585 (minitelnet, readtty, readsocket): Delete function.
13586
13587 2004-01-26 Andrew Cagney <cagney@redhat.com>
13588
13589 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
13590 comments mentioning extract_returned_value_address.
13591 * infcmd.c (print_return_value): Update. Add comments on
13592 extract_returned_value_address.
13593 * stack.c (return_command): Add comments on
13594 extract_returned_value_address.
13595 * values.c: Update comment.
13596 * m32r-tdep.c: Update comment.
13597 * sparc-tdep.c: Update comment.
13598 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
13599 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
13600 * sh64-tdep.c (sh64_gdbarch_init): Update.
13601 * sh-tdep.c (sh_gdbarch_init): Update.
13602 * s390-tdep.c (s390_gdbarch_init): Update.
13603 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
13604 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
13605 * m68k-tdep.c (m68k_gdbarch_init): Update.
13606 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
13607 * m32r-tdep.c (m32r_gdbarch_init): Update.
13608 * ia64-tdep.c (ia64_gdbarch_init): Update.
13609 * h8300-tdep.c (h8300_gdbarch_init): Update.
13610 * frv-tdep.c (frv_gdbarch_init): Update.
13611 * arm-tdep.c (arm_gdbarch_init): Update.
13612 * alpha-tdep.c (alpha_gdbarch_init): Update.
13613
13614 2004-01-26 Andrew Cagney <cagney@redhat.com>
13615
13616 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
13617 SYMBOL_LOCATION_FUNCS
13618 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
13619 "struct symbol_ops".
13620 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
13621 type to "struct symbol_ops".
13622 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
13623 (struct symbol): Replace ".aux_value.loc.funcs" and
13624 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
13625 (SYMBOL_OBJFILE): Delete macro.
13626 (SYMBOL_LOCATION_FUNCS): Delete macro.
13627 (SYMBOL_LOCATION_BATON): Update.
13628 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
13629 intead of SYMBOL_LOCATION_FUNCS.
13630 * ax-gdb.c (gen_var_ref): Ditto.
13631 * printcmd.c (address_info): Ditto.
13632 * findvar.c (read_var_value): Ditto.
13633 (symbol_read_needs_frame): Ditto.
13634
13635 2004-01-26 Andrew Cagney <cagney@redhat.com>
13636
13637 * dwarf2read.c (read_func_scope): Document frame-base hack.
13638
13639 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13640
13641 * infcmd.c (print_return_value): Plug memory leak; delete
13642 ui_stream object. Rename argument `structure_return' to
13643 `struct_return'.
13644
13645 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13646
13647 * infcmd.c (print_return_value): Wrap long lines.
13648 (finish_command_continuation, finish_command): Remove unused
13649 variable `funcaddr'. Fix some coding-standards problems.
13650
13651 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
13652 SECT_SIZE is large enough, not whether it's exactly the right size.
13653 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
13654 TDEP->fpregset to zero.
13655
13656 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
13657 floating-point registers for traditional NetBSD core files.
13658 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
13659 TDEP->sizeof_fpregset here.
13660
13661 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13662
13663 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
13664 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
13665 function with code split out from
13666 sparc32nbsd_sigcontext_frame_cache.
13667 (sparc32nbsd_sigcontext_frame_cache): Use
13668 sparc32nbsd_sigcontext_saved_regs.
13669 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
13670 OpenBSD.
13671 * sparcobsd-tdep.c: New file.
13672 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
13673 (sparcobsd-tdep.o): New dependency.
13674 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
13675 * config/sparc/obsd.mt: New file.
13676
13677 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
13678 TDEP->fpregset to be initialized to enable core file register
13679 sets.
13680
13681 2004-01-24 Mark Kettenis <kettenis@gnu.org>
13682
13683 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
13684 Add opaque declarations.
13685 (sparc64nbsd_sigcontext_saved_regs): New prototype.
13686 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
13687 function with code split out from
13688 sparc64nbsd_sigcontext_frame_cache.
13689 (sparc64nbsd_sigcontext_frame_cache): Use
13690 sparc64nbsd_sigcontext_saved_regs.
13691 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
13692 OpenBSD.
13693 * sparc64obsd-tdep.c: New file.
13694 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
13695 (sparc64obsd-tdep.o): New dependency.
13696 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
13697 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
13698 * config/sparc/obsd64.mt: New file.
13699
13700 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
13701 read the instruction at PC.
13702
13703 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
13704 value of GDB_OSABI_DEFAULT.
13705 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
13706 instead of GDB_OSABI_NETBSD_AOUT.
13707
13708 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
13709
13710 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
13711 copyright.
13712
13713 2004-01-23 Andrew Cagney <cagney@redhat.com>
13714
13715 * printcmd.c (display_command): Replace tui_set_display call with
13716 tui_set_layout_for_display_command.
13717 * tui/tui.h (enum tui_win_type): Define.
13718 (tui_set_layout): Delete declaration.
13719 (tui_set_layout_for_display_command): Rename set_tui_layout.
13720 * tui/tui-data.h (enum tui_layout_type): Define.
13721 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
13722 "tui.h".
13723 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
13724 (tui_default_win_height): Rename tuiDefaultWinHeight.
13725 (tui_default_win_viewport_height): Rename
13726 tuiDefaultWinViewportHeight.
13727 (tui_set_layout): RenametuiSetLayout.
13728 * tui/tui-layout.c: Update references.
13729 * tui/tui.c: Update references.
13730 * tui/tui-disasm.c: Update references.
13731
13732 2004-01-23 David Carlton <carlton@kealia.com>
13733
13734 Partial workaround for PR c++/1511:
13735 * cp-namespace.c: Include frame.h.
13736 (cp_lookup_transparent_type): New
13737 (cp_lookup_transparent_type_loop): New.
13738 * cp-support.h: Declare cp_lookup_transparent_type.
13739 * symtab.c (basic_lookup_transparent_type): Renamed from
13740 lookup_transparent_type.
13741 (lookup_transparent_type): Replace old body by a call to
13742 current_language->la_lookup_transparent_type.
13743 * symtab.h: Update copyright. Declare
13744 basic_lookup_transparent_type.
13745 * language.h: Update copyright.
13746 (struct language_defn): Add la_lookup_transparent_type.
13747 * language.c: Update copyright.
13748 (unknown_language_defn): Add basic_lookup_transparent_type.
13749 (auto_language_defn): Add basic_lookup_transparent_type.
13750 (local_language_defn): Add basic_lookup_transparent_type.
13751 * ada-lang.c: Update copyright.
13752 (ada_language_defn): Add basic_lookup_transparent_type.
13753 * c-lang.c: Update copyright.
13754 (c_language_defn): Add basic_lookup_transparent_type.
13755 (cplus_language_defn): Add basic_lookup_transparent_type.
13756 (asm_language_defn): Add basic_lookup_transparent_type.
13757 (minimal_language_defn): Add basic_lookup_transparent_type.
13758 * f-lang.c: Update copyright.
13759 (f_language_defn): Add basic_lookup_transparent_type.
13760 * jv-lang.c: Update copyright.
13761 (java_language_defn): Add basic_lookup_transparent_type.
13762 * m2-lang.c: Update copyright.
13763 (m2_language_defn): Add basic_lookup_transparent_type.
13764 * objc-lang.c: Update copyright.
13765 (objc_language_defn): Add basic_lookup_transparent_type.
13766 * p-lang.c: Update copyright.
13767 (p_language_defn): Add basic_lookup_transparent_type.
13768 * scm-lang.c: Update copyright.
13769 (scm_language_defn): Add basic_lookup_transparent_type.
13770 * Makefile.in (cp-namespace.o): Depend on frame.h.
13771
13772 2004-01-23 David Carlton <carlton@kealia.com>
13773
13774 Patch for PR c++/1520:
13775 * dwarf2read.c (read_func_scope): Set processing_current_prefix
13776 properly if we have a specification die.
13777 (determine_prefix_aux): Rename from determine_prefix.
13778 (determine_prefix): Like the old determine_prefix, but never
13779 returns NULL.
13780
13781 2004-01-23 Theodore A. Roth <troth@openavr.org>
13782
13783 * avr-tdep.c: Update copyright.
13784 (avr_iaddr_p): Delete unused function.
13785 (avr_saddr_p): Delete unused function.
13786
13787 2004-01-23 David Carlton <carlton@kealia.com>
13788
13789 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
13790 Fix for PR symtab/1534.
13791
13792 2004-01-23 Mark Kettenis <kettenis@gnu.org>
13793
13794 * NEWS (New native configurations): Mention OpenBSD/sparc and
13795 OpenBSD/sparc64.
13796 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
13797 * configure.host: Likewise.
13798 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
13799 handler for OpenBSD.
13800 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
13801
13802 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13803
13804 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
13805 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
13806
13807 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
13808 * cli/cli-cmds.c (shell_escape): Likewise.
13809
13810 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
13811 OpenBSD .note.openbsd.ident sections.
13812
13813 2004-01-22 David Carlton <carlton@kealia.com>
13814
13815 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
13816 get_scope_pc_bounds.
13817 (read_file_scope): Ditto.
13818 (get_scope_pc_bounds): New function, produced by extracting code
13819 from the above two functions, consolidating it, and adding support
13820 for DW_TAG_namespace.
13821
13822 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13823
13824 * osabi.c (MAX_NOTESZ): New define.
13825 (check_note): New function.
13826 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
13827 check_note.
13828
13829 2004-01-21 Roland McGrath <roland@redhat.com>
13830
13831 * MAINTAINERS (write after approval): Add myself.
13832
13833 2004-01-21 Eli Zaretskii <eliz@gnu.org>
13834
13835 * utils.c (init_page_info): Move declarations of `rows' and
13836 `cols' before the __GO32__-specific code. Move the closing brace
13837 outside the #ifdef __GO32__..#endif block.
13838 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
13839
13840 2004-01-21 Paul Brook <paul@codesourcery.com>
13841
13842 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
13843 BPSTAT_WHAT_CHECK_SHLIBS.
13844
13845 2004-01-21 Paul Brook <paul@codesourcery.com>
13846
13847 * MAINTAINERS: Add myself to write-after-approval.
13848
13849 2004-01-20 Andrew Cagney <cagney@redhat.com>
13850
13851 * ax-gdb.c (print_axs_value): Delete unused function.
13852 * jv-lang.c (java_lookup_type): Delete unused function.
13853 * cli/cli-dump.c (dump_filetype): Delete unused function.
13854 * remote-mips.c (remote_mips_insert_hw_breakpoint)
13855 (remote_mips_remove_hw_breakpoint): Delete unused functions.
13856 (mips_getstring): Delete unused function.
13857 (pmon_insert_breakpoint): Delete #if0ed function.
13858 (PMON_MAX_BP): Delete #if0ed MACRO.
13859 (mips_pmon_bp_info): Delete #if0ed variable.
13860 (pmon_remove_breakpoint): Delete #if0ed function.
13861 * monitor.c (monitor_write_even_block): Delete unused function.
13862 (monitor_write_memory_block): Delete #if0ed code.
13863 * dink32-rom.c (dink32_load): Delete unused function.
13864 (_initialize_dink32_rom): Delete #if0ed code.
13865 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
13866
13867 * tui/tui-command.c: Update references.
13868 * tui/tui-io.c: Update references.
13869 * tui/tui-command.h: Update copyright.
13870 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
13871
13872 * source.c (ambiguous_line_spec): Delete never-defined function.
13873 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
13874 * gdbtypes.c (add_name, add_mangled_type): Ditto.
13875 * cli/cli-cmds.c (validate_comname): Ditto.
13876
13877 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
13878 "tui-data.h".
13879 (tui_set_disassem_content): Rename tuiSetDisassemContent.
13880 (tui_show_disassem): Rename tuiShowDisassem.
13881 (tui_show_disassem_and_update_source): Rename
13882 tuiVerticalDisassemScroll.
13883 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
13884 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
13885 * tui/tui.h: Update copyright.
13886 (enum tui_status): Define.
13887 * tui/tui-data.h (enum tui_scroll_direction): Define.
13888 * tui/tui-disasm.c: Update copyright. Update references.
13889 * tui/tui-winsource.c: Update copyright. Update references.
13890 * tui/tui-win.c: Update references.
13891 * tui/tui-layout.c: Update references.
13892
13893 2004-01-20 Andrew Cagney <cagney@redhat.com>
13894
13895 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
13896 sym2 to start of block.
13897
13898 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
13899
13900 * MAINTAINERS: Delete mmalloc.
13901 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
13902 * NEWS: Mention removal of --with-malloc.
13903 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
13904 * config.in: Regenerate.
13905 * configure: Regenerate.
13906 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
13907 USE_MMALLOC, MMCHECK_FORCE.
13908 * gdbinit.in: Remove mmalloc.
13909 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
13910 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
13911 * config/i386/go32.mh: Likewise.
13912 * config/i386/interix.mh: Likewise.
13913 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
13914
13915 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
13916
13917 * linespec.c (decode_variable, symtab_from_filename): Call
13918 error_silent with error message instead of throwing an exception
13919 directly.
13920 * defs.h (error_silent, error_output_message): Add prototypes.
13921 (catch_exceptions_with_msg): Ditto.
13922 * utils.c (error_silent, error_output_message): New functions.
13923 * top.c (catch_exceptions_with_msg): New function.
13924
13925 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
13926
13927 * mi/mi-cmds.h (enum print_values): Add definition.
13928
13929 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
13930 type and value for simple data types and just the name and type
13931 for complex ones, if required.
13932
13933 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
13934 children, if required.
13935
13936 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13937
13938 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
13939 unused declarations.
13940
13941 2004-01-19 Andrew Cagney <cagney@redhat.com>
13942
13943 * top.h (mapped_symbol_files): Delete declaration.
13944 * main.c (captured_main): Delete option "m" and "mapped".
13945 * objfiles.c (mapped_symbol_files): Delete variable.
13946 * symfile.c (symbol_file_command): Delete mmap code.
13947 (symbol_file_add_with_addrs_or_offsets): Ditto.
13948 (add_symbol_file_command, reread_separate_symbols): Ditto.
13949 * objfiles.h (OBJF_MAPPED): Delete.
13950 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
13951 (free_objfile) [USE_MMALLOC]: Ditto.
13952 (open_existing_mapped_file): Delete function.
13953 (open_mapped_file): Delete function.
13954 (map_to_file): Delete function.
13955
13956 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13957
13958 * infrun.c (step_into_function): Account for possible breakpoint
13959 adjustment when computing ``stop_func_start''.
13960
13961 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13962
13963 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
13964 the region size against the size of a pointer, not the size of
13965 a register as given by DEPRECATED_REGISTER_SIZE.
13966
13967 2004-01-19 Andrew Cagney <cagney@redhat.com>
13968
13969 * tui/tui-regs.h: Include "tui-data.h".
13970 (tuiFirstRegElementNoInLine): Delete declaration.
13971 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
13972 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
13973 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
13974 (tui_calculate_regs_column_count): Rename
13975 tuiCalculateRegsColumnCount.
13976 (tui_check_register_values): Rename tuiCheckRegisterValues.
13977 (tui_show_registers): Rename tuiShowRegisters.
13978 (tui_display_registers_from_line): Rename
13979 tuiDisplayRegistersFromLine.
13980 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
13981 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
13982 (tui_first_reg_element_no_inline): Rename
13983 tuiFirstRegElementNoInLine.
13984 * tui/tui-data.h: Update copyright.
13985 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
13986 * tui/tui-windata.c: Update copyright, update references.
13987 * tui/tui-regs.c: Update copyright, update references.
13988 * tui/tui-win.c: Update copyright, update references.
13989 * tui/tui-layout.c: Update copyright, update references.
13990
13991 2004-01-18 Andrew Cagney <cagney@redhat.com>
13992
13993 * tui/tui-io.c: Update copyright.
13994 (key_is_end_sequence, key_is_backspace): New functions.
13995 (key_is_command_char, key_is_start_sequence): New function.
13996 (tui_getc): Update references.
13997 * tui/tui-io.h: Update copyright.
13998 (m_tuiStartNewLine): Delete macro.
13999 (m_isBackspace, m_isDeleteChar): Delete macros.
14000 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
14001 (m_isNextPage, m_isPrevPage): Delete macros.
14002 (m_isLeftArrow, m_isRightArrow): Delete macros.
14003 (m_isXdbStyleCommandChar): Delete macro.
14004 (key_is_start_sequence): Declare, replace m_isStartSequence.
14005 (key_is_end_sequence): Declare, replace m_isEndSequence.
14006 (key_is_backspace): Declare ,replace m_isBackspace.
14007 (key_is_command_char): Declare, replace m_isCommandChar.
14008 * tui/tui-command.c: Update copyright.
14009 (tuiDispatchCtrlChar): Update references.
14010
14011 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
14012 tuiSourceWin.h.
14013
14014 * tui/tui-command.c: Rename tui/tuiCommand.c.
14015 * tui/tui-command.h: Rename tui/tuiCommand.h.
14016 * tui/tui-data.c: Rename tui/tuiData.c.
14017 * tui/tui-data.h: Rename tui/tuiData.h.
14018 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
14019 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
14020 * tui/tui-io.c: Rename tui/tuiIO.c.
14021 * tui/tui-io.h: Rename tui/tuiIO.h.
14022 * tui/tui-layout.c: Rename tui/tuiLayout.c.
14023 * tui/tui-layout.h: Rename tui/tuiLayout.h.
14024 * tui/tui-regs.c: Rename tui/tuiRegs.c.
14025 * tui/tui-regs.h: Rename tui/tuiRegs.h.
14026 * tui/tui-source.c: Rename tui/tuiSource.c.
14027 * tui/tui-source.h: Rename tui/tuiSource.h.
14028 * tui/tui-stack.c: Rename tui/tuiStack.c.
14029 * tui/tui-stack.h: Rename tui/tuiStack.h.
14030 * tui/tui-win.c: Rename tui/tuiWin.c.
14031 * tui/tui-win.h: Rename tui/tuiWin.h.
14032 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
14033 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
14034 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
14035 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
14036 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
14037 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
14038 * tui/tui-file.c: Update includes.
14039 * tui/tui-hooks.c: Update includes.
14040 * tui/tui-interp.c: Update includes.
14041 * tui/tui.c: Update includes.
14042 * Makefile.in: Update all tui/ dependencies.
14043 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
14044
14045 * Makefile.in: Update copyright. Update dependencies.
14046
14047 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
14048 problem.
14049
14050 2004-01-18 Andrew Cagney <cagney@redhat.com>
14051
14052 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
14053 instead of register_gdbarch_init.
14054
14055 * remote-sds.c (tohex): Delete unused function. Update copyright.
14056 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
14057 * v850-tdep.c (v850_register_virtual_size): Ditto.
14058 * target.c (normal_target_post_startup_inferior): Ditto.
14059 * source.c (ambiguous_line_spec): Ditto.
14060 * remote.c (adapt_remote_get_threadinfo): Ditto.
14061 * mi/mi-out.c (out_field_fmt): Ditto.
14062 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
14063 (output_control_change_notification): Ditto.
14064 * m68k-tdep.c (m68k_register_byte): Ditto.
14065 (m68k_remote_breakpoint_from_pc): Ditto.
14066 * ui-out.c (init_ui_out_state): Delete unused declaration.
14067 * stabsread.c (search_value): Ditto.
14068 * mi/mi-cmd-env.c (env_cli_command): Ditto.
14069 * maint.c (print_section_table): Ditto.
14070 * infrun.c (set_follow_fork_mode_command): Ditto.
14071
14072 2004-01-18 Mark Kettenis <kettenis@gnu.org>
14073
14074 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
14075 DW_CFA_def_cfa_exporession. Add support for
14076 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
14077 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
14078
14079 2004-01-18 Andrew Cagney <cagney@redhat.com>
14080
14081 * ocd.c: Update copyright.
14082 (bdm_read_register_command): Delete unused function.
14083 (_initialize_remote_ocd): Delete commented out reference.
14084 (get_quoted_char, reset_packet): Delete #if0ed function.
14085 (output_packet, put_quoted_char): Delete #if0ed function.
14086 (stu_put_packet, stu_get_packet): Delete #if0ed function.
14087 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
14088 (BDM_BREAKPOINT): Delete #if0ed macro.
14089 (remote_timeout): Delete #if0ed variable.
14090
14091 2004-01-18 Mark Kettenis <kettenis@gnu.org>
14092
14093 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
14094 (core-sol2.o): Remove dependency.
14095 * core-sol2.c: Remove file.
14096
14097 2004-01-17 Andrew Cagney <cagney@redhat.com>
14098
14099 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
14100 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
14101 enums.
14102
14103 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14104
14105 * remote.c: Update copyright years.
14106
14107 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14108
14109 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
14110
14111 2004-01-17 Andrew Cagney <cagney@redhat.com>
14112
14113 * mdebugread.c: Update copyright.
14114 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
14115 (parse_type, parse_procedure): Ditto.
14116 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
14117
14118 * cris-tdep.c (cris_store_struct_return): Put back accidently
14119 deleted function.
14120
14121 * gdbarch.sh: Update copyright year.
14122 * gdbarch.h, gdbarch.c: Re-generate.
14123
14124 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14125
14126 Suggested by George Anzinger.
14127 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
14128 correct stack offset. Include unknown opcode numbers in the error
14129 message.
14130
14131 2004-01-17 Andrew Cagney <cagney@redhat.com>
14132
14133 * x86-64-tdep.c (x86_64_init_abi): No need to clear
14134 extract_struct_value_address, i386 does not set it.
14135 * sparc64-tdep.c (sparc64_init_abi): Do not set
14136 extract_struct_value_address, never called.
14137 (sparc64_extract_struct_value_address): Delete function.
14138 * m68hc11-tdep.c: Update copyright.
14139 (m68hc11_gdbarch_init): Delete redundant assignment of
14140 extract_struct_value_address.
14141 * i386-tdep.c: Update copyright.
14142 (i386_gdbarch_init): Do not set extract_struct_value_address,
14143 never called.
14144 (i386_extract_struct_value_address): Delete function.
14145 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
14146 extract_struct_value_address, never called.
14147 (sparc32_extract_struct_value_address): #if 0 function. Add
14148 comments explaining its future.
14149
14150 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14151
14152 * arm-tdep.c (arm_write_pc): New function.
14153 (arm_gdbarch_init): Call set_gdbarch_write_pc.
14154
14155 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14156
14157 * breakpoint.c (must_shift_inst_regs): Delete.
14158 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
14159 and SHIFT_INST_REGS.
14160 * infcmd.c (step_1, step_1_continuation): Delete references to
14161 SHIFT_INST_REGS.
14162 * infrun.c (keep_going): Likewise.
14163 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
14164 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
14165
14166 2004-01-17 Andrew Cagney <cagney@redhat.com>
14167
14168 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
14169 * gdbarch.h, gdbarch.c: Re-generate.
14170 * infcmd.c (print_return_value): Delete reference to
14171 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
14172
14173 * cris-tdep.c (cris_gdbarch_init): Do not set
14174 deprecated_extract_struct_value_address.
14175
14176 * xstormy16-tdep.c: Update copyright.
14177 (xstormy16_extract_struct_value_address): Update to current
14178 extract struct value address interface.
14179 (xstormy16_gdbarch_init): Set extract_struct_value_address.
14180 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
14181 current extract struct value address interface.
14182 (sh64_gdbarch_init): Set extract_struct_value_address.
14183
14184 * cris-tdep.c: Update copyright.
14185 (cris_extract_struct_value_address): Delete function.
14186 (struct_return_address): Delete variable.
14187 (cris_store_struct_return): Do not set struct_return_address.
14188
14189 * mcore-tdep.c: Update copyright.
14190 (mcore_extract_struct_value_address): Delete function. Update
14191 comments.
14192 (mcore_gdbarch_init): Update.
14193 * mn10300-tdep.c: Update copyright.
14194 (mn10300_extract_struct_value_address): Delete function.
14195 (mn10300_gdbarch_init): Update.
14196 * v850-tdep.c: Update copyright.
14197 (v850_extract_struct_value_address): Delete.
14198 (v850_gdbarch_init): Update.
14199 * ns32k-tdep.c: Update copyright.
14200 (ns32k_extract_struct_value_address): Delete.
14201 (ns32k_gdbarch_init): Update.
14202 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
14203 (hppa_gdbarch_init): Update.
14204 * vax-tdep.c: Update copyright.
14205 (vax_extract_struct_value_address): Delete.
14206 (vax_gdbarch_init): Update.
14207
14208 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
14209 * gdbarch.h, gdbarch.c: Re-generate.
14210 * procfs.c (procfs_fetch_registers): Delete reference to
14211 DEPRECATED_NPC_REGNUM.
14212 (procfs_store_registers): Ditto.
14213 * regcache.c (generic_target_write_pc): Simplify.
14214 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
14215
14216 * core-sol2.c (fetch_core_registers): Replace
14217 DEPRECATED_NPC_REGNUM with equivalent tdep value.
14218
14219 * hppa-tdep.c: Update copyright year.
14220 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
14221 NPC_REGNUM.
14222 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
14223
14224 * mips-tdep.c (mips_write_pc): New function.
14225 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
14226 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
14227 (mips_find_saved_regs, mips_software_single_step: Ditto.
14228 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
14229 mips_init_extra_frame_info, mips_pop_frame): Ditto.
14230
14231 2004-01-17 Andrew Cagney <cagney@redhat.com>
14232
14233 * mips-tdep.c: Re-indent. Group functions by ABI.
14234
14235 2004-01-17 Andrew Cagney <cagney@redhat.com>
14236
14237 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
14238 * gdbarch.c: Re-generate.
14239 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
14240 DECR_PC_AFTER_BREAK to zero.
14241 * vax-tdep.c (vax_gdbarch_init): Ditto.
14242 * v850-tdep.c (v850_gdbarch_init): Ditto.
14243 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
14244 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
14245 * sh-tdep.c (sh_gdbarch_init): Ditto.
14246 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
14247 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
14248 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
14249 * mips-tdep.c (mips_gdbarch_init): Ditto.
14250 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
14251 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14252 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
14253 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
14254 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
14255 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
14256 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
14257 * frv-tdep.c (frv_gdbarch_init): Ditto.
14258 * cris-tdep.c (cris_gdbarch_init): Ditto.
14259 * avr-tdep.c (avr_gdbarch_init): Ditto.
14260 * arm-tdep.c (arm_gdbarch_init): Ditto.
14261 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
14262
14263 2004-01-17 J. Brobecker <brobecker@gnat.com>
14264
14265 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
14266 Delete, no longer used.
14267 (read_subrange_type): New function, mostly extracted from
14268 read_array_type().
14269 (read_array_type): Replace extracted code by call to
14270 read_subrange_type().
14271 (dwarf2_get_attr_constant_value): New function.
14272 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
14273 (add_partial_symbol): Likewise.
14274 (process_die): Likewise.
14275 (new_symbol): Likewise.
14276 (read_type_die): Likewise.
14277
14278 2004-01-16 Andrew Cagney <cagney@redhat.com>
14279
14280 * symfile.c: Update copyright year.
14281 (compare_symbols): Delete unused function.
14282 * stabsread.c: Update copyright year.
14283 (lrs_general_complaint): Delete unused function.
14284 (ref_search_value): Ditto.
14285 (get_substring): Delete declaration.
14286 * sh64-tdep.c: Update copyright year.
14287 (sh64_get_gdb_regnum): Delete unused function.
14288 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
14289 Delete unused function.
14290
14291 2004-01-17 Mark Kettenis <kettenis@gnu.org>
14292
14293 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
14294 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
14295
14296 2004-01-16 Andrew Cagney <cagney@redhat.com>
14297
14298 Changes from Peter Schauer.
14299 * rs6000-tdep.c: Update copyright year.
14300 (rs6000_push_dummy_call): Update the stack pointer before
14301 accessing the corresponding stack region.
14302 * rs6000-nat.c: Update copyright year.
14303 (set_host_arch): Set "info.abfd" to "exec_bfd".
14304
14305 2004-01-15 Mark Kettenis <kettenis@gnu.org>
14306
14307 * blockframe.c: Update copyright year.
14308 (inside_entry_func): Don't treat a zero PC specially.
14309
14310 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
14311
14312 * gcore.c (gcore_copy_callback): Use paddr_d to print size
14313 variable.
14314 (gcore_create_callback): Ditto. Skip any memory segment that has
14315 no permissions set.
14316
14317 2004-01-14 David Carlton <carlton@kealia.com>
14318
14319 Change symbols for C++ nested types to contain the fully qualified
14320 name, if possible. (At least in the DWARF-2 case.) Partial fix
14321 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
14322 c++/895.
14323 * c-exp.y (qualified_type): Handle types nested within classes.
14324 * cp-namespace.c: Update comments.
14325 (cp_set_block_scope): Delete #if 0.
14326 (cp_lookup_nested_type): Handle types nested within classes.
14327 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
14328 when appropriate.
14329 (add_partial_symbol): Add the name of the enclosing namespace to
14330 types.
14331 (pdi_needs_namespace): New.
14332 (add_partial_namespace): Tweak comment.
14333 (add_partial_structure): New.
14334 (psymtab_to_symtab_1): Initialize processing_current_prefix
14335 here...
14336 (process_die): instead of here.
14337 (read_structure_scope): Try to figure out the name of the class or
14338 namespace that the structure might be defined within.
14339 (read_enumeration): Generate fully-qualified names, if possible.
14340 (read_namespace): Don't set name to NULL.
14341 (die_specification): New.
14342 (new_symbol): Generate fully-qualified names for types.
14343 (read_type_die): Determine appropriate prefix.
14344 (determine_prefix): New.
14345 (typename_concat): New.
14346 (class_name): New.
14347 * valops.c (value_aggregate_elt): Pass NOSIDE to
14348 value_struct_elt_for_reference.
14349 (value_struct_elt_for_reference): Make static, add NOSIDE
14350 parameter, call value_maybe_namespace_elt as a last resort.
14351 (value_namespace_elt): Break out code into
14352 value_maybe_namespace_elt.
14353 (value_maybe_namespace_elt): New.
14354
14355 2004-01-12 Andrew Cagney <cagney@redhat.com>
14356
14357 * mips-tdep.c (mips_convert_register_p): Handle both raw and
14358 cooked floating-point registers.
14359 (mips_gdbarch_init): Set convert_register_p, register_to_value,
14360 and value_to_register.
14361
14362 2004-01-13 Andrew Cagney <cagney@redhat.com>
14363
14364 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
14365 * gdbarch.c: Re-generate.
14366 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
14367 FUNCTION_START_OFFSET.
14368 * v850-tdep.c (v850_gdbarch_init): Ditto.
14369 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
14370 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
14371 * sh-tdep.c (sh_gdbarch_init): Ditto.
14372 * s390-tdep.c (s390_gdbarch_init): Ditto.
14373 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
14374 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
14375 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
14376 * mips-tdep.c (mips_gdbarch_init): Ditto.
14377 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
14378 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
14379 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14380 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
14381 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
14382 * i386-tdep.c (i386_gdbarch_init): Ditto.
14383 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
14384 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
14385 * frv-tdep.c (frv_gdbarch_init): Ditto.
14386 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
14387 * cris-tdep.c (cris_gdbarch_init): Ditto.
14388 * avr-tdep.c (avr_gdbarch_init): Ditto.
14389 * arm-tdep.c (arm_gdbarch_init): Ditto.
14390 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
14391
14392 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
14393
14394 * infrun.c (follow_fork_mode_ask): Remove.
14395 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
14396 (follow_fork): Simplify and remove internal error for
14397 follow_fork_mode_ask.
14398 (_initialize_infrun): Update "set follow-fork-mode" help text.
14399
14400 2004-01-13 Andrew Cagney <cagney@redhat.com>
14401
14402 * configure.in: Update copyright year.
14403 (build_warnings): Add -Wunused-label.
14404 * configure: Re-generate.
14405
14406 2004-01-12 Andrew Cagney <cagney@redhat.com>
14407
14408 * exec.h (exec_ops): Make "extern".
14409
14410 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
14411 the function is void.
14412 (mips_pseudo_register_write): Ditto.
14413
14414 2004-01-12 Andrew Cagney <cagney@redhat.com>
14415
14416 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
14417 call. Never defined.
14418 * sparc-tdep.h (struct frame_info): Add opaque declaration.
14419 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
14420 (struct sparc_gregset, struct regcache): Ditto.
14421 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
14422
14423 2004-01-12 Andrew Cagney <cagney@redhat.com>
14424
14425 * mi/ChangeLog: Delete file. Renamed to ...
14426 * mi/ChangeLog-1999-2003: New file.
14427 * tui/ChangeLog: Delete file. Renamed to ...
14428 * tui/ChangeLog-1998-2003: New file.
14429
14430 2004-01-11 Mark Kettenis <kettenis@gnu.org>
14431
14432 * sparc64nbsd-tdep.c: Include "regset.h".
14433 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
14434 Remove variables.
14435 (fetch_core_registers): Remove function.
14436 (sparc64nbsd_core_fns): Remove variable.
14437 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
14438 functions.
14439 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
14440 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14441 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
14442
14443 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
14444 sparc_extract_struct_value_address.
14445 (sparc32_gdbarch_init): Set extract_struct_value_address.
14446 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
14447 function.
14448 (sparc64_init_abi): Set extract_struct_value_address. Don't set
14449 return_value_on_stack.
14450
14451 * NEWS: Mention that %cs and %ss have been added to the AMD64
14452 configurations
14453
14454 * frame.c: Update copyright year.
14455 (get_prev_frame): Improve comment.
14456
14457 * sparc64fbsd-tdep.c: Include "regset.h".
14458 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14459 Remove variables.
14460 (fetch_core_registers): Remove function.
14461 (sparc64fbsd_core_fns): Remove variable.
14462 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
14463 functions.
14464 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
14465 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14466 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
14467
14468 * sparcnbsd-tdep.c: Include "regset.h".
14469 (fetch_core_registers): Remove function.
14470 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
14471 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
14472 functions.
14473 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
14474 TDEP->fpregset.
14475 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
14476
14477 * sparc-tdep.h (struct regset): Provide opaque declaration.
14478 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
14479 fpregset and sizeof_fpregset members.
14480 * sparc-tdep.c (struct regset): Provide opaque declaration.
14481 (sparc_regset_from_core_section): New function.
14482 (sparc32_gdbarch_init): Initialize TDEP->gregset,
14483 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
14484 Set regset_from_core_section when appropriate.
14485
14486 2004-01-10 Mark Kettenis <kettenis@gnu.org>
14487
14488 * x86-64-tdep.c (amd64_non_pod_p): New function.
14489 (amd64_classify_aggregate): Return class memory for non-POD
14490 C++ structure types.
14491
14492 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
14493 argument. Use it to reserve a register if necessary.
14494 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
14495 amd64_push_arguments.
14496
14497 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
14498
14499 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
14500 register numbers in comments.
14501 * x86-64-tdep.h: Update copyright year.
14502 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
14503 Adjust for addition of %cs and %ss.
14504 * amd64fbsd-nat.c: Update copyright year.
14505 (reg_offset): Add register offsets for %cs and %ss.
14506 * amd64fbsd-tdep.c: Update copyright year.
14507 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
14508 (amd64fbsd_sc_reg_offset): Likewise.
14509 * x86-64-linux-nat.c: Update copyright year.
14510 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
14511 and %ss.
14512 * amd64nbsd-nat.c: Update copyright year.
14513 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
14514 * amd64nbsd-tdep.c: Update copyright year.
14515 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
14516 * x86-64-linux-tdep.c: Update copyright year.
14517 (user_to_gdb_regmap): Add mapping for %cs and %ss.
14518 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
14519 * regformats/reg-x86-64.dat: Add %cs and %ss.
14520
14521 * blockframe.c (inside_entry_func): Reformat. Introduce new local
14522 variables to prevent long lines. Update comments to reflect
14523 reality.
14524
14525 2004-01-09 David Carlton <carlton@kealia.com>
14526
14527 Checked in by Elena Zannoni <ezannoni@redhat.com>.
14528 * dwarf2read.c (read_namespace): Pull out name-generating code
14529 into namespace_name. Rename previous_namespace to previous_prefix
14530 and processing_current_namespace to processing_current_prefix..
14531 (namespace_name): New function.
14532 (add_partial_symbol): Substitute uses of pdi->name with
14533 actual_name.
14534 * cp-support.h: Rename processing_current_namespace to
14535 processing_current_prefix.
14536 Update copyright year.
14537 * cp-namespace.c: Rename processing_current_namespace to
14538 processing_current_prefix.
14539 Update copyright year.
14540
14541 2004-01-09 Andrew Cagney <cagney@redhat.com>
14542
14543 * jv-valprint.c, ser-unix.c: Add missing copyright years.
14544
14545 2004-01-09 Mark Kettenis <kettenis@gnu.org>
14546
14547 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
14548 complaining.
14549 (process_one_symbol): Deal with N_PATCH stabs.
14550
14551 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
14552
14553 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
14554 ifdeffed code.
14555 Update copyright year.
14556
14557 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14558
14559 * config/pa/tm-hppa.h: Update extern declarations for
14560 hppa32_hpux_frame_saved_pc_in_sigtramp,
14561 hppa32_hpux_frame_base_before_sigtramp, and
14562 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
14563
14564 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14565
14566 * config/pa/tm-hppah.h: Update copyright years.
14567
14568 2004-01-08 Andrew Cagney <cagney@redhat.com>
14569
14570 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
14571 (mips_o32_reg_struct_has_addr): Delete function.
14572 (mips_gdbarch_init): Update.
14573 (mips_extract_struct_value_address): Delete function.
14574
14575 2004-01-08 David Mosberger <davidm@hpl.hp.com>
14576
14577 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
14578 reality.
14579
14580 2004-01-07 Andrew Cagney <cagney@redhat.com>
14581
14582 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
14583 architecture's elf flags (when available).
14584
14585 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
14586 FPU to the start, check the MIPS FPU when looking for an old
14587 architecture.
14588 (set_mipsfpu_single_command): Update the architecture.
14589 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
14590
14591 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
14592 (mips_mask_address_p): Add "tdep" parameter.
14593 (show_mask_address, mips_addr_bits_remove): Update.
14594 (mips_dump_tdep): Update.
14595 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
14596 (MIPS_STACK_ARGSIZE): Delete macro.
14597 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
14598 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
14599 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
14600 (mips_dump_tdep): Update.
14601 (MIPS_SAVED_REGSIZE): Delete macro.
14602 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
14603 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
14604 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
14605 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
14606 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
14607 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
14608 (mips_pop_frame, return_value_location): Update.
14609 (mips_n32n64_return_value, mips_dump_tdep): Update.
14610
14611 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
14612 MIPS ABI.
14613
14614 * mips-tdep.c: Update copyright.
14615 (mips_gdbarch_init): Merge two code blocks handling the register
14616 name and number layout.
14617
14618 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
14619
14620 * tracepoint.c (validate_actionline): Fix segv at EOF
14621
14622 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
14623
14624 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
14625 properly for static fields.
14626
14627 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
14628 Jason Molenda <jmolenda@apple.com>
14629
14630 * disasm.c: Update copyright to include 2004.
14631 (do_mixed_source_and_assembly): For uiout asm list
14632 and tuple cleanups, initialize to null_cleanup instead of
14633 NULL and do so prior to loop. Only reset when we close off
14634 the tuple/list. Move check for whether to close off the
14635 asm tuple/list to after dump_insns call where it will be run
14636 on each loop iteration.
14637
14638 2004-01-05 Andrew Cagney <cagney@redhat.com>
14639
14640 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
14641 should be a switch case and not a label.
14642 * mips-tdep.c (mips32_next_pc): Delete unused labels
14643 "greater_equal_branch" and "less_zero_branch".
14644 * jv-valprint.c (java_print_value_fields): Delete unused label
14645 "flush_it".
14646
14647 * target.c (unpush_target): Only close a target that is in the
14648 target stack.
14649
14650 2004-01-05 Mark Kettenis <kettenis@gnu.org>
14651
14652 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
14653 address from [sp + 64] instead of %o2.
14654
14655 * frame.c (get_prev_frame): Don't try to unwind the PC. This
14656 fixes PR backtrace/1476.
14657
14658 2004-01-05 Andrew Cagney <cagney@redhat.com>
14659
14660 * libunwind-frame.h (struct frame_id): Add opaque declaration,
14661 move to start of file.
14662 * i386-tdep.h (struct regcache): Add opaque declaration.
14663 * config/ia64/nm-linux.h (struct target_ops): Add opaque
14664 declaration.
14665 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
14666 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
14667 * win32-nat.c (fake_create_process): Use ISO C style definition.
14668 * stabsread.c (define_symbol): Delete #ifndef
14669 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
14670 stabs_argument_has_addr call, macro never defined.
14671
14672 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
14673
14674 * op50-rom.c: Delete.
14675 * w89k-rom.c: Delete.
14676 * Makefile.in: Remove references.
14677
14678 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14679
14680 * x86-64-tdep.c: Update copyright year.
14681 (struct amd64_register_info): Rename from x86_64_register_info.
14682 (amd64_register_info): Rename from x86_64_register_info.
14683 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
14684 (amd64_register_name): Rename from x86_64_register_name.
14685 (amd64_register_type): Rename from x86_64_register_type.
14686 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
14687 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
14688 (amd64_dwarf_reg_to_regnum): Rename from
14689 x86_64_dwarf_reg_to_regnum.
14690 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
14691 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
14692 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
14693 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
14694 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
14695 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
14696 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
14697 (amd64_frame_cache): Rename from x86_64_frame_cache.
14698 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
14699 (amd64_frame_prev_register): Rename from
14700 x86_64_frame_prev_register.
14701 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
14702 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
14703 (amd64_sigtramp_frame_cache): Rename from
14704 x86_64_sigtramp_frame_cache.
14705 (amd64_sigtramp_frame_prev_register): Rename from
14706 x86_64_sigtramp_frame_prev_register.
14707 (amd64_sigtramp_frame_unwind): Rename from
14708 x86_64_sigtramp_frame_unwind.
14709 (amd64_sigtramp_frame_sniffer): Rename from
14710 x86_64_sigtramp_frame_sniffer.
14711 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
14712 (amd64_frame_base): Rename from x86_64_frame_base.
14713 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
14714 (amd64_frame_align): Rename from x86_64_frame_align.
14715 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
14716 (amd64_regset_from_core_section): Rename from
14717 x86_64_regset_from_core_section.
14718 (x86_64_init_abi): Update comments.
14719
14720 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
14721
14722 * MAINTAINERS (write after approval): Add myself.
14723
14724 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14725
14726 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
14727 `float' arguments.
14728
14729 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14730
14731 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
14732 such that it mentions a specific version of GCC that exhibits this
14733 bug.
14734
14735 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14736
14737 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
14738 structure that has a single `float' member, store it in %f1 in
14739 addition to %f0.
14740
14741 * sparc-sol2-nat.c: Add missing '\'.
14742
14743 * sparc-tdep.c (sparc32_return_value): New function.
14744 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
14745 Remove functions.
14746 (sparc32_gdbarch_init): Set return_value, don't set
14747 extract_return_value, store_return_value, use_struct_convention
14748 and return_value_on_stack.
14749
14750 * sparc-sol2-nat.c: Add missing ')'.
14751
14752 2004-01-03 J. Brobecker <brobecker@gnat.com>
14753
14754 * infrun.c (handle_step_into_function): New function.
14755 (handle_inferior_event): Extract out some code into the new
14756 function above.
14757
14758 2004-01-03 J. Brobecker <brobecker@gnat.com>
14759
14760 * infrun.c (handle_inferior_event): Move the declaration of
14761 real_stop_pc inside the if blocks where it is used.
14762
14763 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14764
14765 * sparc64-tdep.c (sparc64_16_byte_align_p)
14766 (sparc64_store_floating_fields, sparc64_store_floating_fields):
14767 Use check_typedef to get subtypes of structures and unions.
14768 (sparc64_store_return_value): Fix calculation of the appropriate
14769 offset into VALBUF when storing a structure or union.
14770 (sparc64_return_value): New function.
14771 (sparc64_use_struct_convention): Remove function.
14772 (sparc64_init_abi): Set return_value, don't set
14773 extract_return_value, store_return_value and
14774 use_struct_convention.
14775
14776 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
14777
14778 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
14779 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
14780 gdb/config/alpha/xm-alphaosf.h,
14781 gdb/config/powerpc/tm-ppcle-eabi.h,
14782 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
14783 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
14784 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
14785 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
14786 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
14787 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
14788 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
14789 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
14790 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
14791 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
14792 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
14793 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
14794 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
14795 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
14796 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
14797 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
14798 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
14799 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
14800 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
14801 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
14802 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
14803 Remove lines for .cvsignore files.
14804
14805 2004-01-03 J. Brobecker <brobecker@gnat.com>
14806
14807 * infrun.c: Back out the previous change.
14808
14809 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14810
14811 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
14812 sparc-*-sunos4* to the list of REMOVED configurations.
14813
14814 * configure.tgt: Add back sparc-*-vxworks*.
14815 * remote-vxsparc.c: Remove all includes except for "defs.h",
14816 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
14817 Include "sparc-tdep.h".
14818 (SPARC_R_G1): New define.
14819 (vxsparc_gregset): New variable.
14820 (ext_format_sparc): Remove extern declaration.
14821 (vx_read_register): Rewrite to use sparc32_supply_gregset and
14822 sparc32_supply_fpregset.
14823 (vx_write_register): Rewrite to use sparc32_collect_gregset,
14824 sparc_collect_rwindow and sparc32_collect_fpregset.
14825 * config/sparc/tm-vxworks.h: New file, based on recently removed
14826 tm-vxsparc.h.
14827 * config/sparc/vxworks.mt: New file, based on recently removed
14828 vxworks.mt.
14829
14830 2004-01-03 J. Brobecker <brobecker@gnat.com>
14831
14832 * infrun.c (handle_step_into_function): New function.
14833 (handle_inferior_event): Extract out some code into the new
14834 function above.
14835
14836 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14837
14838 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
14839 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
14840 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
14841 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
14842 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
14843 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
14844 (sparc_nat_h): New variable.
14845 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
14846 (tm-sun4os4.h): Remove dependency.
14847 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
14848 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
14849 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
14850 sparc-tdep.o): Update dependencies.
14851 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
14852 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
14853 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
14854 dependencies.
14855 * configure.host: Remove existing sparc-*-lynxos*,
14856 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
14857 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
14858 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
14859 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
14860 triplets.
14861 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
14862 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
14863 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
14864 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
14865 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
14866 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
14867 sparc64-*-solaris2* and sparc64-*-* triplets.
14868 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
14869 "symtab.h" and "objfiles.h".
14870 (BIAS): Remove define.
14871 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
14872 (X_DISP19): Remove macros.
14873 (sparc_fetch_instruction): Remove function.
14874 (struct gdbarch_tdep): Remove definition.
14875 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
14876 (sparc_breakpoint_from_pc): Remove function.
14877 (struct sparc64_frame_cache): Remove definition.
14878 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
14879 sparc64_unwind_pc): Remove functions.
14880 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
14881 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
14882 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
14883 (sparc64_frame_cache): Change return type to `struct
14884 sparc_frame_cache *'. Simply call sparc_frame_cache.
14885 (sparc64_frame_this_id, sparc64_frame_prev_register,
14886 sparc64_frame_base_address): Use `struct sparc_frame_cache'
14887 instead of `struct sparc64_frame_cache.
14888 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
14889 sparc_analyze_control_transfer, sparc_software_single_step,
14890 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
14891 _initialize_sparc64_tdep): Remove functions.
14892 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
14893 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
14894 macros.
14895 (sparc64_supply_gregset, sparc64_collect_gregset,
14896 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
14897 (sparc64_init_abi): New function.
14898 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
14899 inclusion guard. Include "sparc-tdep.h".
14900 (BIAS): Define.
14901 (r_tstate_offset, r_fprs_offset): New defines.
14902 (enum sparc_regnum): Remove defenition.
14903 (enum sparc64_regnum): Reformat.
14904 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
14905 (sparc64_init_abi, sparc64_supply_gregset,
14906 sparc64_collect_gregset, sparc64_supply_fpregset,
14907 sparc64_collect_fpregset): New prototypes.
14908 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
14909 Add extern declarations.
14910 (sparc64_sol2_init_abi): New prototype.
14911 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14912 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14913 prototypes.
14914 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
14915 "sparnbsd-nat.h".
14916 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
14917 functions.
14918 (_initialize_sparc64fbsd_nat): Remove initialization of
14919 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
14920 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
14921 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
14922 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
14923 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
14924 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
14925 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
14926 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
14927 (sparc64fbsd_r_y_offset): Remove variables.
14928 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14929 Make static and const.
14930 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14931 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14932 functions.
14933 (sparc64fbsd_gregset): New variable.
14934 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
14935 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
14936 and sparc64_supply_fpregset.
14937 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
14938 (sparc64fbsd_sigtramp_frame_this_id)
14939 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
14940 (sparc64fbsd_sigtramp_frame_unwind): New variable.
14941 (sparc64fbsd_sigtramp_frame_sniffer): New function.
14942 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
14943 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
14944 * sparcnbsd-tdep.c: Update copyright year. Include
14945 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
14946 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
14947 "value.h" and "sparcnbsd-tdep.h".
14948 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
14949 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
14950 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
14951 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
14952 defines.
14953 (sparcnbsd_gregset): New variable.
14954 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
14955 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
14956 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
14957 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
14958 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
14959 variables.
14960 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
14961 (sparc32nbsd_sigcontext_frame_this_id)
14962 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
14963 (sparc32nbsd_sigcontext_frame_unwind): New variable.
14964 (sparc32nbsd_sigtramp_frame_sniffer): New function.
14965 (sparcnbsd_get_longjmp_target_32,
14966 sparcnbsd_get_longjmp_target_64): Remove functions.
14967 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
14968 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
14969 sparcnbsd_init_elf): Remove.
14970 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
14971 (sparcnbsd_elf_init_abi): New functions.
14972 (_initialize_sparcnbsd_tdep): New prototype.
14973 (_initialize_sparnbsd_tdep): Update.
14974 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
14975 corelow.o. Add sparc64-nat.o and sparc-nat.o.
14976 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
14977 * config/sparc/linux.mh: Update comment.
14978 (XM_FILE, HOST_IPC): Remove variables.
14979 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
14980 sparc-linux-nat.o.
14981 * config/sparc/linux.mt: Update comment.
14982 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
14983 * config/sparc/nbsd.mt: Reformat.
14984 * config/sparc/nbsd64.mh: Update comment.
14985 (NATDEPFILES): Add sparc-nat.o.
14986 * config/sparc/nbsd64.mt: Update comment.
14987 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
14988 (TM_FILE): Set to tm-nbsd.h.
14989 * config/sparc/nbsdelf.mh: Update comment.
14990 (NATDEPFILES): Add sparc-nat.o.
14991 (XM_FILE): Delete.
14992 * config/sparc/nbsdaout.mh: Update comment.
14993 (NATDEPFILES): Add sparc-nat.o
14994 (XM_FILE): Delete.
14995 * config/sparc/nm-linux.h: Update copyright year. Don't include
14996 "config/nm-svr4.h" and "solib.h". Add protection against multiple
14997 inclusion.
14998 (KERNEL_U_SIZE): Remove define.
14999 (kernel_u_size): Remove prototype.
15000 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
15001 * config/sparc/nm-nbsd.h: Update copyright. Don't include
15002 "regcache.h".
15003 (CHILD_PREPARE_TO_STORE): Remove define.
15004 * config/sparc/nm-nbsdaout.h: Tweak some comments.
15005 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
15006 sparcnbsd-nat.c: Rewrite files.
15007 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
15008 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
15009 sparcnbsd-tdep.h: Remove files.
15010 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
15011 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
15012 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
15013 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
15014 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
15015 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
15016 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
15017 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
15018 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
15019 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
15020 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
15021 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
15022 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
15023 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
15024 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
15025 * config/sparc/linux64.mh, config/sparc/linux64.mt,
15026 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
15027 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
15028 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
15029
15030 2004-01-02 Andrew Cagney <cagney@redhat.com>
15031
15032 From 2003-12-18 Kazuhiro Inaoka:
15033 * configure.host: Add m32r-linux target.
15034
15035 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
15036
15037 * top.c (print_gdb_version): Update year to 2004.
15038
15039 2004-01-02 Mark Mitchell <mark@codesourcery.com>
15040
15041 * MAINTAINERS: Add myself to the write-after-approval category.
15042
15043 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
15044
15045 From Bernardo Innocenti <bernie@develer.com>:
15046 * configure.tgt: Add uClinux target.
15047
15048 2004-01-02 Andrew Cagney <cagney@redhat.com>
15049
15050 * utils.c (do_my_cleanups): Make static, add forward declaration.
15051 * defs.h (do_my_cleanups): Delete declaration.
15052
15053 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
15054
15055 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
15056 bfd/ChangeLog-0203.
15057
15058 2004-01-02 Mark Kettenis <kettenis@gnu.org>
15059
15060 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
15061 in <machine/reg.h>.
15062 * configure, config.in: Regenerate.
15063
15064 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
15065 tui/ChangeLog-1998-2003.
15066 \f
15067 Local Variables:
15068 mode: change-log
15069 left-margin: 8
15070 fill-column: 74
15071 version-control: never
15072 End: