2004-12-17 Randolph Chung <tausq@debian.org>
[binutils-gdb.git] / gdb / ChangeLog
1 2004-12-17 Randolph Chung <tausq@debian.org>
2
3 * hppa-hpux-tdep.c (setup_d_pid_in_inferior): Make static.
4 (find_stub_with_shl_get): Make static.
5
6 2004-12-17 Randolph Chung <tausq@debian.org>
7
8 * hppa-hpux-tdep.c (IS_32BIT_TARGET): New.
9 (in_opd_section): New.
10 (hppa32_hpux_find_global_pointer): Rename from
11 hppa_hpux_som_find_global_pointer.
12 (hppa64_hpux_find_global_pointer): New.
13 (ldsid_pattern): New.
14 (hppa_hpux_search_pattern): New.
15 (hppa32_hpux_search_dummy_call_sequence): New.
16 (hppa64_hpux_search_dummy_call_sequence): New.
17 (hppa_hpux_find_import_stub_for_addr): New.
18 (hppa_hpux_sr_for_addr): New.
19 (hppa_hpux_find_dummy_bpaddr): New.
20 (hppa_hpux_init_abi): Use IS_32BIT_TARGET predicate.
21 (hppa_hpux_som_init_abi): Set find_global_pointer method to
22 hppa32_hpux_find_global_pointer instead of
23 hppa_hpux_som_find_global_pointer.
24 (hppa_hpux_elf_init_abi): Set find_global_pointer method.
25 * hppa-tdep.c (hppa_init_objfile_priv_data): New.
26 (read_unwind_info): Use function to initialize objfile-private data.
27 (hppa32_push_dummy_call): Don't automatically set the RP if there is
28 a push_dummy_code method.
29 (hppa64_push_dummy_call): Retrieve and set the global pointer.
30 Don't automatically set the RP if there is a push_dummy_code method.
31 * hppa-tdep.h (hppa_objfile_private): Add dummy_call_sequence_reg and
32 dummy_call_sequence_addr members.
33 (hppa_init_objfile_priv_data): New prototype.
34
35 2004-12-17 Joel Brobecker <brobecker@gnat.com>
36
37 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): New function.
38 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Add declaration.
39 * solib-som.c (som_solib_create_inferior_hook): Replace stub
40 msymbol search by call to hppa_lookup_stub_minimal_symbol. This
41 extends the search to all objfiles, not just shared libraries.
42 Remove unused variable.
43
44 2004-12-16 Michael Snyder <msnyder@redhat.com>
45
46 * MAINTAINERS: Add myself as maintainer for mn10300.
47 * NEWS: Mention mn10300.
48
49 2004-12-15 Kevin Buettner <kevinb@redhat.com>
50
51 * xstormy16-tdep.c (xstormy16_skip_prologue): Clear/initialize the
52 frame cache.
53
54 2004-12-14 Randolph Chung <tausq@debian.org>
55
56 * hppa-tdep.c (hppa_in_function_epilogue_p): New function.
57 (hppa_gdbarch_init): Set in_epilogue_p method.
58
59 2004-12-14 Corinna Vinschen <vinschen@redhat.com>
60
61 * sh-tdep.c (sh_extract_return_value_nofpu): Rename from
62 sh_default_extract_return_value.
63 (sh_extract_return_value_fpu): Rename from
64 sh3e_sh4_extract_return_value.
65 (sh_store_return_value_nofpu): Rename from
66 sh_default_store_return_value.
67 (sh_store_return_value_fpu): Rename from sh3e_sh4_store_return_value.
68 (sh_return_value_nofpu): Accomodate above changes.
69 (sh_return_value_fpu): Ditto.
70
71 2004-12-13 Jerome Guitton <guitton@gnat.com>
72
73 * stabsread.c (read_huge_number): Add support for reading octal
74 signed number in twos complement, based on the size of this
75 number.
76 (read_range_type): Add support for reading octal signed bounds
77 in twos complements, based on the size of the type.
78 (read_type_number, read_cpp_abbrev, read_member_functions,
79 read_cpp_abbrev, read_one_struct_field, read_baseclasses,
80 read_struct_type, read_array_type, read_enum_type,
81 read_sun_builtin_type, read_sun_floating_type): Update calls to
82 read_huge_number.
83 (read_type): Update call to read_range_type.
84
85 2004-12-13 Randolph Chung <tausq@debian.org>
86
87 * hppa-hpux-tdep.c (internalize_hp_cxx_exception_support): Call
88 solib_get_solib_by_pc method through target vector.
89 (hppa_hpux_som_find_global_pointer): Call solib_get_got_by_pc
90 method through target vector.
91
92 2004-12-13 Joel Brobecker <brobecker@gnat.com>
93
94 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Change
95 parameter name to make it clear that we already have a next
96 frame. Return the sigcontext from that next frame instead
97 of the frame following it.
98
99 2004-12-13 Randolph Chung <tausq@debian.org>
100
101 * Makefile.in (pa64solib_h, somsolib_h): Delete.
102 (solib_pa64_h, solib_som_h): New.
103 (HFILES_NO_SRCDIR, ALLDEPFILES): Replace somsolib.h with solib-som.h.
104 (hppa-hpux-tdep.o, hpread.o): Update dependencies.
105 (pa64solib.o, somsolib.o): Delete.
106 (solib-pa64.o, solib-som.o): New.
107 * hppa-hpux-tdep.c: Include new solib interfaces.
108 (hppa_hpux_som_init_abi): Attach to SOM solib interface.
109 (hppa_hpux_elf_init_abi): Attach to PA64 ELF solib interface.
110 * hppa-tdep.c (internalize_unwinds): If solib_get_text_base method
111 is available, use it to determine the base of unwind records.
112 * hppa-tdep.h (gdbarch_tdep): Add new solib methods.
113 * hpread.c: Replace somsolib.h with solib-som.h.
114 (hpread_process_one_debug_symbol): Use target vector to get thread
115 start address.
116 * config/pa/hppa64.mt (TDEPFILES): Use new solib interface.
117 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
118 * config/pa/hpux.mh (NATDEPFILES): Delete references to target objects.
119 * config/pa/tm-hppah.h: Use new solib interface.
120
121 2004-12-13 Randolph Chung <tausq@debian.org>
122
123 * tramp-frame.c (tramp_frame_sniffer): Allow frames with names or
124 sections to be trampolines too.
125
126 2004-12-13 Ben Elliston <bje@au.ibm.com>
127
128 * f-exp.y (typename): Remove unused nonterminal.
129 (name): Likewise.
130
131 2004-12-12 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
132
133 Committed by Andrew Cagney.
134 * abug-rom.c, ada-lang.c, ada-typeprint.c, alpha-tdep.c: i18n
135 markup.
136
137 2004-12-12 Andrew Cagney <cagney@gnu.org>
138
139 * frame.c (get_prev_frame): When unwinding normal frames, check
140 that the PC isn't zero.
141 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Delete check for a
142 zero PC.
143
144 * MAINTAINERS: Reword description of what "Target Instruction Set
145 Architectures" covers.
146
147 2004-12-12 Mark Kettenis <kettenis@gnu.org>
148
149 * hppa-hpux-nat.c (hppa_hpux_child_can_run): Tweak comment.
150
151 2004-12-11 Mark Kettenis <kettenis@gnu.org>
152
153 * hppa-hpux-nat.c (ss_mpsfu_high): Remove define.
154 (hppa_hpux_save_state_offset): New function, replacing variable
155 with the same name.
156 (hppa_cannot_fetch_register, hppa_cannot_store_register): Remove
157 functions.
158 (hppa_hpux_fetch_register): Don't call hppa_cannot_fetch_register.
159 Use new hppa_hpux_save_state_offset function. Add special
160 handling for handling 64-bit "flags" register.
161 (hppa_hpux_store_register): Likewise.
162 (hppa_hpux_child_can_run): Tweak comment.
163
164 * inf-ttrace.c (inf_ttrace_him): Set TTEVT_BPT_SSTEP if available.
165 (inf_ttrace_attach): Likewise.
166 (inf_ttrace_resume_callback): New function.
167 (inf_ttrace_resume): Don't use TT_PROC_CONTINUE. Iterate over all
168 lwps and call inf_ttrace_resume_callback instead.
169 (inf_ttrace_wait): Handle TTEVT_BPT_SSTEP.
170
171 * inf-ttrace.c (_initialize_inf_ttrace): Unconditionially compile.
172
173 2004-12-10 Michael Snyder <msnyder@redhat.com>
174
175 * mn10300-tdep.c: New file. This is a re-implementation of
176 the mn10300 target back-end using the new frame api etc.
177 * mn10300-tdep.h: New file.
178 * config/mn10300/mn10300.mt: New file (or replace old file).
179 * configure.tgt: Add mn10300 target.
180
181 2004-12-10 Mark Kettenis <kettenis@gnu.org>
182
183 * configure.host (hppa*-*-hpux11*): Remove.
184 * config/pa/hpux11.mh: Remove file.
185
186 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind_cache): Fix
187 typo.
188
189 2004-12-10 Kris Warkentin <kewarken@qnx.com>
190
191 * nto-tdep.h: Include osabi.h. Prototypes for generic Neutrino
192 osabi sniffer, signal handling initializer, 'in_dynsym_resolve_code'
193 function and nto_set_target function.
194 (struct nto_target_ops): Put comments inline with struct. Add osabi
195 sniffer hook. Redefine macros to permit testing/assignment. Remove
196 nto_ prefix from members.
197 * nto-tdep.c (nto_find_and_open_solib): Allocate all buffers
198 dynamically to support arbitrary root paths. Check for basename of
199 lib in search path and then check for absolute.
200 (nto_in_dynsym_resolve_code): New function.
201 (nto_core_sniffer): New function.
202 (regset_core_fns): Register core sniffer.
203 (nto_initialize_signals): New function.
204 (_initialize_nto_tdep): Move signal initialization code to above to
205 avoid initialization race conditions.
206 (nto_set_target): New function.
207 * nto-procfs.c: Minor formatting/indenting changes.
208 (procfs_is_nto_target): New function.
209 (procfs_open): Set nto_is_nto_target.
210 (_initialize_procfs): Ditto. Remove notice_signals() call to avoid
211 initialization race conditions.
212 (procfs_create_inferior): Resume inferior after creation.
213 * i386-nto-tdep.c: Declare i386_nto_target.
214 (init_i386nto_ops): Initialize i386_nto_target instead of
215 current_nto_target.
216 (i386nto_init_abi): Initialize signals. Call nto_set_target. Set
217 TARGET_SO_IN_DYNSYM_RESOLVE_CODE.
218 (_initialize_i386nto_tdep): Call init_i386nto_ops. Register osabi
219 sniffer.
220
221 2004-12-10 Mark Kettenis <kettenis@gnu.org>
222
223 * hppa-hpux-tdep.c (child_enable_exception_callback): Use XMALLOC.
224 (hppa_hpux_sigtramp_frame_unwind_cache): Use ARRAY_SIZE.
225 (hppa_hpux_init_abi): Reformat long line.
226
227 2004-12-09 Mark Kettenis <kettenis@gnu.org>
228
229 * hppa-hpux-tdep.c: Include "regset.h".
230 (HPPA_HPUX_SS_WIDEREGS, HPPA_HPUX_SS_FLAGS_OFFSET)
231 (HPPA_HPUX_SS_NARROW_OFFSET, HPPA_HPUX_SS_FPBLOCK_OFFSET)
232 (HPPA_HPUX_SS_WIDE_OFFSET, HPPA_HPUX_SAVE_STATE_SIZE)
233 (HPPA_HPUX_PA89_SAVE_STATE_SIZE): New defines.
234 (hppa_hpux_supply_ss_narrow, hppa_hpux_supply_ss_fpblock)
235 (hppa_hpux_supply_ss_wide, hppa_hpux_supply_save_state): New
236 functions.
237 (hppa_hpux_regset): New variable.
238 (hppa_hpux_regset_from_core_section): New function.
239 (hppa_hpux_init_abi): Set regset_from_core_section.
240 (hppa_hpux_core_osabi_sniffer): New function.
241 (_initialize_hppa_hpux_tdep): Register
242 hppa_hpux_core_osabi_sniffer.
243 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
244 * config/pa/hppahpux.mt (TDEPFILES): Add corelow.o.
245
246 2004-12-09 Randolph Chung <tausq@debian.org>
247
248 * solib-pa64.c (pa64_relocate_section_addresses): Properly relocate
249 text and data sections.
250 (pa64_current_sos): Also include the dld in the list of current shared
251 objects.
252 (pa64_solib_get_solib_by_pc): Update comments.
253 (pa64_solib_get_text_base): New function.
254 (pa64_solib_select): Set solib_get_text_base method.
255
256 2004-12-08 Daniel Jacobowitz <dan@debian.org>
257
258 * linux-thread-db.c (BUILD_THREAD): Delete.
259 (thread_get_info_callback): Include LWP ID in thread ID.
260 (thread_from_lwp, check_event, find_new_threads_callback): Likewise.
261 (lwp_from_thread): Use the LWP ID from the thread ID.
262
263 2004-12-07 Randolph Chung <tausq@debian.org>
264
265 * hppa-tdep.c (hppa_frame_prev_register_helper): Zero out the entire
266 register for both 32- and 64-bit targets.
267
268 2004-12-07 Randolph Chung <tausq@debian.org>
269
270 * frame.c (get_prev_frame): Don't terminate unwinding at main if we
271 are unwinding through a dummy frame.
272
273 2004-12-07 Randolph Chung <tausq@debian.org>
274
275 * hppa-tdep.h (gdbarch_tdep): Add unwind_adjust_stub method.
276 * hppa-hpux-tdep.c (hppa_hpux_unwind_adjust_stub): New function.
277 (hppa_hpux_init_abi) Set unwind_adjust_stub method.
278 * hppa-tdep.c (hppa_frame_cache): Call unwind_adjust_stub method
279 if defined.
280
281 2004-12-07 Randolph Chung <tausq@debian.org>
282
283 * hppa-tdep.c (hppa_stub_Frame_unwind_cache): Stop unwinding if
284 unwinding from a frame with pc == 0.
285 (hppa_stub_frame_this_id): Likewise.
286 (hppa_stub_frame_prev_register): Only provide real values if the frame
287 cache is not NULL.
288
289 2004-12-07 Randolph Chung <tausq@debian.org>
290
291 * solib-som.c: New file.
292 * solib-som.h: New file.
293 * solib-pa64.c: New file.
294 * solib-pa64.h: New file.
295
296 2004-12-07 Mark Kettenis <kettenis@gnu.org>
297
298 * Makefile.in (inf-ttrace.o): Fix typo.
299
300 2004-12-07 Jim Blandy <jimb@redhat.com>
301
302 * remote.c (remote_threads_info, remote_current_thread): Use
303 strtoul to parse thread ID numbers.
304
305 2004-12-07 Mark Kettenis <kettenis@gnu.org>
306
307 * inf-ttrace.c: Include "gdbthread.h".
308 (inf_ttrace_num_lwps): New variable.
309 (inf_ttrace_num_lwps_in_syscall): Renamed from
310 inf_ttrace_num_threads_in_syscall.
311 (inf_ttrace_him): Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
312 TTEVT_LWP_TERMINATE events.
313 (inf_ttrace_create_inferior): Assert that INF_TTRACE_NUM_LWPS is
314 zero.
315 (inf_ttrace_mourn_inferior): Set INF_TTRACE_NUM_LWPS to zero.
316 (inf_ttrace_attach): Assert that INF_TTRACE_NUM_LWPS is zero.
317 Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE
318 events.
319 (inf_ttrace_wait): Report status as TARGET_WAITKIND_SPURIOUS by
320 default. Handle TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
321 TTEVT_LWP_TERMINATE events.
322 (inf_ttrace_thread_alive, inf_ttrace_pid_to_str): New functions.
323 (inf_ttrace_target): Set to_thread_alive and to_pid_to_str.
324 * Makefile.in (inf-ttrace.o): Update dependencies.
325
326 * hppa-tdep.h (hppa_read_pc, hppa_write_pc, hppa_unwind_pc): New
327 prototypes.
328 * hppa-tdep.c (hppa_read_pc): Rename from hppa_target_read_pc.
329 Make global. Remove HP-UX specific code. Use
330 frame_unwind_register_unsigned instead of
331 frame_unwind_register_signed.
332 (hppa_write_pc): Rename from hppa_target_write_pc. Make global.
333 Remove HP-UX specific code.
334 (hppa_unwind_pc): Make global. Remove HP-UX specific code.
335 (hppa_frame_prev_register_helper): Set "flags" register to zero
336 for all unwound frames.
337 (hppa_gdbarch_init): Adjust.
338 * hppa-hpux-tdep.c (HPPA_HPUX_SS_INSYSCALL): New define.
339 (hppa_hpux_read_pc, hppa_hpux_write_pc)
340 (hppa_hpux_unwind_pc): New functions.
341 (hppa_hpux_init_abi): Set read_pc, write_pc and unwind_pc.
342
343 2004-12-07 Andreas Schwab <schwab@suse.de>
344
345 * main.c (long_options): Add entry for "-l".
346 (print_gdb_help): Add line for -l option.
347 * NEWS: Mention it.
348
349 2004-12-05 Randolph Chung <tausq@debian.org>
350
351 * hppah-nat.c (store_inferior_registers): Rewrite logic to not use
352 DEPRECATED_REGISTER_BYTE.
353
354 2004-12-05 Randolph Chung <tausq@debian.org>
355
356 * hppa-tdep.c (unwind_command): Print the stub type for stub unwind
357 records.
358
359 2004-12-05 Mark Kettenis <kettenis@gnu.org>
360
361 * somsolib.c [PA_SOM_ONLY] (no_shared_libraries): New function.
362 * config/pa/hppahpux.mt (TDEPFILES): Remove solib.o.
363
364 * hppa-hpux-tdep.c: Update copyright notice and year.
365
366 2004-12-05 Richard Earnshaw <rearnsha@arm.com>
367
368 * doublest.c (FLOATFORMAT_LARGEST_BYTES): New define.
369 (get_field, put_field): Assert that the format is one we can handle.
370 Simplify logic accordingly.
371 (floatformat_normalize_byteorder): New function.
372 (convert_floatformat_to_doublest): Use floatformat_normalize_byteorder
373 to normalize and select modified byte order. Pass modified byte order
374 to get_field.
375 (floatformat_is_negative, floatformat_is_nan, floatformat_mantissa):
376 Likewise.
377 (convert_doublest_to_floatformat): Select an appropriate intermediate
378 byte order if necessary. Always convert to the final format before
379 returning.
380
381 2004-12-04 Daniel Jacobowitz <dan@debian.org>
382
383 PR tui/1703
384 * linux-nat.c (linux_tracefork_child): Use _exit instead of exit.
385 Suggested by Joshua Neuheisel.
386
387 2004-12-03 Randolph Chung <tausq@debian.org>
388
389 * gdbarch.sh (instruction_nullified): Delete.
390 * gdbarch.c: Regenerate.
391 * gdbarch.h: Regenerate.
392 * hppa-tdep.c (hppa_target_read_pc): Adjust pc if instruction is
393 nullified.
394 (hppa_unwind_pc): Likewise.
395 (hppa_instruction_nullified): Delete.
396 (hppa_gdbarch_init): Don't set instruction_nullified method.
397 * infrun.c (infwait_states): Remove infwait_nullified_state.
398 (handle_inferior_event): Remove handling of infwait_nullified_state.
399 Remove handling of nullified instructions.
400
401 2004-12-03 Mark Kettenis <kettenis@gnu.org>
402
403 * inf-ttrace.c: Include <sys/mman.h>.
404 (struct inf_ttrace_page): New.
405 (struct inf_ttrace_page_dict): New.
406 (inf_ttrace_num_threads_in_syscall)
407 (inf_ttrace_reenable_page_protections): New variables.
408 (inf_ttrace_enable_syscall_events)
409 (inf_ttrace_disable_syscall_events, inf_ttrace_get_page)
410 (inf_ttrace_add_page, inf_ttrace_insert_page)
411 (inf_ttrace_remove_page, inf_ttrace_mask_page_protections)
412 (inf_ttrace_enable_page_protections)
413 (inf_ttrace_disable_page_protections)
414 (inf_ttrace_insert_watchpoint, inf_ttrace_remove_watchpoint)
415 (inf_ttrace_can_use_hw_breakpoint)
416 (inf_ttrace_region_size_ok_for_hw_watchpoint)
417 (inf_ttrace_stopped_by_watchpoint): New functions.
418 (inf_ttrace_him): Remove unsused varaible `tts'.
419 (inf_ttrace_create_inferior): Add assertionts.
420 (inf_ttrace_mourn_inferior): Clear page dictionary.
421 (inf_ttrace_attach): Set initial event mask.
422 (inf_ttrace_detach): Reset number of threads in system call.
423 (inf_ttrace_wait): Deal with system call events.
424 (inf_ttrace_target): Initialize "hardware" watchpoint-related
425 parts of the target vector.
426 (_initialize_inf_ttrace): New prototype and function.
427
428 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Use ULONGEST as
429 type of `gp' variable.
430
431 2004-12-03 Richard Sandiford <rsandifo@redhat.com>
432
433 * README: Remove config.if from directory listing.
434
435 2004-12-01 Joel Brobecker <brobecker@gnat.com>
436
437 * alpha-tdep.c (alpha_register_name): Add comment.
438 (alpha_cannot_fetch_register): Exclude registers numbers which
439 are no longer used from the list of registers that can be fetched.
440 (alpha_cannot_store_register): Exclude registers numbers which
441 are no longer used from the list of registers that can be stored.
442 * alpha-nat.c (fetch_osf_core_registers): Add missing value in
443 core_reg_mapping array.
444
445 2004-12-01 Joel Brobecker <brobecker@gnat.com>
446
447 * alpha-tdep.c (alpha_heuristic_frame_prev_register): Fetch
448 the register value from the correct frame.
449
450 2004-11-30 Randolph Chung <tausq@debian.org>
451
452 * hppa-linux-tdep.c (insns_match_pattern_relaxed): New function.
453 (hppa_linux_in_dyncall): Check that we are inside the range of
454 $$dyncall, not necessarily at the first insn.
455 (hppa_linux_in_solib_call_trampoline): Identify a trampoline
456 even if the pc does not point to the first insn of the trampoline.
457
458 2004-11-30 Randolph Chung <tausq@debian.org>
459
460 * breakpoint.c (break_at_finish_command): Delete.
461 (break_at_finish_command_1): Delete.
462 (break_at_finish_at_depth_command): Delete.
463 (break_at_finish_at_depth_command_1): Delete.
464 (tbreak_at_finish_command): Delete.
465 * hppa-tdep.c (_initialize_hppa_tdep): Remove deprecated xbreak, tbreak
466 and bx commands.
467
468 2004-11-30 Andrew Cagney <cagney@gnu.org>
469
470 * config/nm-gnu.h: Delete file.
471 * config/i386/nm-i386gnu.h: Inline "config/nm-gnu.h".
472
473 * config/nm-sysv4.h: Delete file.
474 * config/i386/nm-i386v4.h: Inline "config/nm-sysv4.h".
475 * config/i386/nm-i386v42mp.h: Inline "config/nm-sysv4.h".
476 * config/i386/nm-i386sol2.h: Inline "config/nm-sysv4.h".
477 * config/ia64/nm-aix.h: Inline "config/nm-sysv4.h".
478 * config/mips/nm-irix5.h: Inline "config/nm-sysv4.h".
479
480 2004-11-29 Andrew Cagney <cagney@gnu.org>
481
482 * MAINTAINERS: Add Randolph Chung (pa), Jeff Johnston (ia64), Kei
483 Sakamoto (m32r), Joel Brobecker (mips), and Ulrich Weigand (s390)
484 as can-commit architecture developers.
485
486 2004-11-29 Mark Kettenis <kettenis@gnu.org>
487
488 * sparc-tdep.c (X_RS1, X_SIMM13): New macros.
489 (sparc32_skip_prologue): Skip instructions that store arguments in
490 registers into their corresponding stack slots.
491
492 * config/m68k/nbsdaout.mh (NAT_FILE): Set to solib.h instead of
493 tm-solib.h.
494 * config/m68k/obsd.mh (NAT_FILE): Likewise.
495
496 * sparc-tdep.h (sparc32nbsd_elf_init_abi): New prototype.
497 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Make global.
498 * sparcobsd-tdep.c (sparc32obsd_init_abi): Call
499 sparc32nbsd_elf_init_abi. Remove duplicate code.
500
501 * config/sparc/nbsdaout.mh (NAT_FILE): Set to solib.h.
502 * config/sparc/nbsdelf.mh (NAT_FILE): Remove variable.
503 * config/sparc/nm-nbsd.h: Remove file.
504 * config/sparc/nm-nbsdaout.h: Remove file.
505
506 * sparc-nat.c (inf_ptrace_xfer_partial): New variable.
507 (sparc_xfer_partial): New function.
508 (sparc_target): Save value of to_xfer_partial from ptrace vector.
509 Set to_xfer_partial.
510
511 * fork-child.c (fork_inferior): Fork instead of vfork if
512 PRE_TRACE_FUN is non-null.
513
514 2004-11-24 Fred Fish <fnf@specifixinc.com>
515
516 * rs6000-tdep.c (skip_prologue): Use line table info to skip over
517 compiler generated function calls made as part of a prologue.
518
519 2004-11-23 Mark Kettenis <kettenis@gnu.org>
520
521 * inf-ttrace.c: New file.
522 * inf-ttrace.h: New file.
523 * hppa-hpux-nat.c [HAVE_TTRACE]: Include <sys/ttrace>.
524 Include "inf-ttrace.h".
525 (ss_mpsfu_high): Define to ss_tlsp if necessary.
526 (hppa_hpux_fetch_register, hppa_hpux_store_register): Use
527 ptid_get_pid instead of PIDGET. Modify to handle both ttrace and
528 ptrace systems.
529 (_initialize_hppa_hpux_nat) [HAVE_TTRACE]: Call inf_ttrace_traget
530 instead of inf_ptrace_target.
531 * config/pa/hpux.mh (NATDEPFILES): Add inf-ttrace.o.
532 * Makefile.in (inf_ttrace_h): New variable.
533 (hppa-hpux-nat.o): Update dependency.
534 (inf-ttrace.o): New dependency.
535 (ALLDEPFILES): Add inf-ptrace.c and inf-ttrace.c.
536
537 2004-11-23 Randolph Chung <tausq@debian.org>
538
539 * arch-utils.c (generic_instruction_nullified): New.
540 * arch-utils.h (generic_instruction_nullified): New.
541 * gdbarch.sh (instruction_nullified): New method.
542 * gdbarch.c: Regenerate.
543 * gdbarch.h: Regenerate.
544 * infrun.c (INSTRUCTION_NULLIFIED): Delete.
545 (handle_inferior_event): Replace INSTRUCTION_NULLIFIED with calls to
546 new gdbarch method.
547 * config/pa/tm-hppa.h (INSTRUCTION_NULLIFIED): Delete definition.
548 * hppa-tdep.c (hppa_instruction_nullified): Remove prototype and make
549 static. Rewrite to work directly off the passed regcache.
550 (hppa_gdbarch_init): Set instruction_nullified method.
551
552 2004-11-23 Joel Brobecker <brobecker@gnat.com>
553
554 * sparc-tdep.c (sparc_is_unimp_insn): New function.
555 (sparc32_frame_cache): For functions where there is no debugging
556 information to help us determine whether it's a struct-return
557 function or not, fallback on checking whether the instruction
558 at the return address is an "unimp" instruction or not.
559
560 2004-11-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
561
562 * MAINTAINERS: Add myself to write after approval section.
563
564 * hppa-hpux-nat.c (child_suppress_run): Add variable to allow
565 hpux-thread.c to suppress children from running.
566 (hppa_hpux_child_can_run): New function.
567 (_initialize_hppa_hpux_nat): Use hppa_hpux_child_can_run.
568 * hpux-thread.c: Include string.h and hppa-tdep.h.
569 (FLAGS_REGNUM, SP_REGNUM, PC_REGNUM): Rename to HPPA_FLAGS_REGNUM,
570 HPPA_SP_REGNUM and HPPA_PCOQ_HEAD_REGNUM, respectively.
571 (hpux_thread_store_registers): Replace deprecated_registers with
572 calls to regcache_raw_read.
573 * config/pa/hpux11.mh, config/pa/hpux11w.mh: Delete HOST_IPC.
574
575 2004-11-21 Mark Kettenis <kettenis@gnu.org>
576
577 * sparc64fbsd-nat.c: Update copyright year.
578 (_initialize_sparc64fbsd_nat): Construct and add target vector.
579 * config/sparc/fbsd.mh (NATDEPFILES): Remove infptrace.o,
580 inftarg.o.
581
582 2004-11-21 Daniel Jacobowitz <dan@debian.org>
583
584 * sparc-tdep.c (sparc_software_single_step): Handle stepping to NULL.
585
586 2004-11-21 Daniel Jacobowitz <dan@debian.org>
587
588 * linux-nat.c (my_waitpid): New function.
589 (linux_test_for_tracefork): Make more robust and verbose. Take
590 an ORIGINAL_PID argument and test for PTRACE_SETOPTIONS first.
591 (linux_supports_tracefork, linux_supports_tracevforkdone): Take a PID
592 argument. Update calls to linux_test_for_tracefork.
593 (linux_enable_event_reporting, child_follow_fork)
594 (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
595 (child_insert_exec_catchpoint): Update calls to
596 linux_supports_tracefork and linux_supports_tracevforkdone.
597
598 2004-11-21 Daniel Jacobowitz <dan@debian.org>
599
600 * valarith.c (value_subscript): Copy VALUE_FRAME_ID.
601 (value_subscripted_rvalue): Likewise.
602 * valops.c (search_struct_field, value_slice): Likewise.
603
604 2004-11-21 Mark Kettenis <kettenis@gnu.org>
605
606 * inf-ptrace.c: Don't include "regcache.h" and "gdbcmd.h".
607 Reorder includes a bit. Fix comment.
608 * Makefile.in (inf-ptrace.o): Update dependencies.
609
610 2004-11-21 Andreas Schwab <schwab@suse.de>
611
612 * m68klinux-tdep.c: Include "glibc-tdep.h" and "solib-svr4.h".
613 (m68k_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
614 svr4_ilp32_fetch_link_map_offsets and gdbarch_skip_solib_resolver
615 to glibc_skip_solib_resolver.
616 * config/m68k/linux.mt (TDEPFILES): Add glibc-tdep.o. Remove
617 solib-legacy.o.
618 * Makefile.in (m68klinux-tdep.o): Update dependencies.
619
620 2004-11-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
621
622 * infttrace.h (ttrace_write_reg_64): Add prototype.
623 * hppah-nat.c (store_inferior_registers): Fix warning from ambiguous
624 expression.
625 (store_inferior_registers): Correct formatting. Replace uses of
626 deprecated_registers with calls to regcache_raw_read,
627 regcache_raw_write_part and regcache_raw_read_part.
628
629 2004-11-21 Mark Kettenis <kettenis@gnu.org>
630
631 * config/pa/hppahpux.mh: Remove file.
632 * config/pa/hpux1020.mh: Remove file.
633
634 2004-11-20 Andreas Schwab <schwab@suse.de>
635
636 * configure.host: Set host floatformat for m68k.
637
638 2004-11-20 Eli Zaretskii <eliz@gnu.org>
639
640 * config/djgpp/fnchange.lst: Resolve file-name clash between
641 hppa-hpux-tdep.c and the new hppa-hpux-nat.c.
642
643 2004-11-20 Mark Kettenis <kettenis@gnu.org>
644
645 * hppa-hpux-nat.c: New file.
646 * config/pa/hpux.mh (NATDEPFILES): New file.
647 * Makefile.in (ALLDEPFILES): Add hppa-hpux-nat.c.
648 (hppa-hpux-nat.o): New dependency.
649 * configure.host: Remove hppa*-*-hpux10.20.
650 (hppa*-*-hpux*, hppa*-*-hiux*): Set gdb_host to hpux.mh.
651
652 * inf-ptrace.c: Fix coding style.
653
654 * gdb_ptrace.h [PTRACE_TYPE_ARG5] (ptrace): New macro.
655 * infptrace.c (call_ptrace): Simply call ptrace with four
656 arguments.
657
658 * dbxread.c (process_one_symbol): Fix a few coding standard
659 issues. Improve code formatting.
660
661 * dbxread.c: Include "gdb_string.h".
662 (record_minimal_symbol, read_ofile_symtab): Replace
663 DEPRECATED_STREQ and DEPRECATED_STREQN with strcmp and strncmp.
664 * Makefile.in (dbxread.o): Update dependencies.
665
666 * dwarf2-frame.c (read_encoded_value): Correctly calculate number
667 of bytes read for aligned LEB128 encodings.
668
669 2004-11-19 Mark Kettenis <kettenis@gnu.org>
670
671 * bsd-kvm.c (bsd_kvm_pcb_cmd): Cast return value from
672 parse_and_eval_address to u_long before converting it to a pointer
673 type.
674 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Change type of
675 ps_strings from int to u_long.
676 * i386obsd-nat.c (_initialize_i386obsd_nat): Cast _ps.val to
677 u_long instead of CORE_ADDR.
678
679 2004-11-18 Mark Kettenis <kettenis@gnu.org>
680
681 * dbxread.c (process_one_symbol): Do not adjust address of first
682 N_SLINE stab for a function for code generated by non-GCC
683 compilers.
684
685 2004-11-18 Kevin Buettner <kevinb@redhat.com>
686
687 * solib-null.c: New file.
688
689 2004-11-17 Andrew Cagney <cagney@gnu.org>
690
691 * MAINTAINERS: Drop MIPS and remote.
692
693 2004-11-15 Andrew Cagney <cagney@gnu.org>
694
695 * findvar.c (value_of_register): Set the frame ID.
696 * value.c (value_primitive_field): Copy the frame ID.
697 * valops.c (value_assign): Simplify lval_register case, there's
698 always a frame.
699
700 2004-11-14 Daniel Jacobowitz <dan@debian.org>
701
702 * Makefile.in (mips-linux-tdep.o): Update dependencies.
703 * mips-linux-tdep.c: Include "regcache.h".
704 (fill_fpregset, mips64_fill_fpregset): Use regcache_raw_collect.
705
706 2004-11-14 Daniel Jacobowitz <dan@debian.org>
707
708 * Makefile.in (linux-thread-db.o): Fix typo in last change.
709
710 2004-11-14 Daniel Jacobowitz <dan@debian.org>
711
712 * linux-thread-db.c: New file, renamed from thread-db.c.
713 * thread-db.c: Remove.
714 * Makefile.in (linux-thread-db.o): Rename from thread-db.o rule.
715 * config/alpha/alpha-linux.mh (NATDEPFILES): Rename thread-db.o
716 to linux-thread-db.o.
717 * config/arm/linux.mh (NATDEPFILES): Likewise.
718 * config/i386/linux.mh (NATDEPFILES): Likewise.
719 * config/i386/linux64.mh (NATDEPFILES): Likewise.
720 * config/ia64/linux.mh (NATDEPFILES): Likewise.
721 * config/m32r/linux.mh (NATDEPFILES): Likewise.
722 * config/m68k/linux.mh (NATDEPFILES): Likewise.
723 * config/mips/linux.mh (NATDEPFILES): Likewise.
724 * config/pa/linux.mh (NATDEPFILES): Likewise.
725 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
726 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
727 * config/s390/s390.mh (NATDEPFILES): Likewise.
728 * config/sparc/linux.mh (NATDEPFILES): Likewise.
729 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
730
731 2004-11-13 Andrew Cagney <cagney@gnu.org>
732
733 * config/i386/i386lynx.mh: Delete file.
734 * config/i386/i386lynx.mt: Delete file.
735 * Makefile.in (ALLDEPFILES, i386ly-tdep.o): Remove i386ly-tdep.c.
736 * i386ly-tdep.c: Delete.
737
738 * config/tm-lynx.h: Delete, inline contents ...
739 * config/rs6000/tm-rs6000ly.h: ... here.
740
741 * config/tm-sysv4.h: Delete file, inlining contents.
742 * config/ia64/tm-aix.h (SKIP_TRAMPOLINE_CODE): Define.
743 * config/tm-linux.h (SKIP_TRAMPOLINE_CODE): Define.
744 * config/tm-nto.h (SKIP_TRAMPOLINE_CODE): Define.
745
746 * regcache.h (deprecated_register_valid): Delete.
747 (deprecated_registers): Delete.
748 * regcache.c (deprecated_register_valid): Delete.
749 (deprecated_registers): Delete.
750 (deprecated_read_register_byte, _initialize_regcache)
751 (deprecated_write_register_bytes, build_regcache): Update.
752 * config/powerpc/ppc-sim.mt (TDEPFILES): Remove ppc-bdm.o and
753 remote-sds.o.
754 * config/powerpc/ppc-eabi.mt (TDEPFILES): Ditto.
755 * config/mips/embed.mt (TDEPFILES): Remove remote-mips.o.
756
757 * NEWS: List h8300*-*-*, mcore-*-*, mn10300-*-*, ns32k-*-*, and
758 v850-*-* under removed.
759 * configure.host: Delete ns32k-*-netbsd*.
760 * configure.tgt: Delete h8300-*-*, mcore*-*-*, mn10300-*-*,
761 ns32k-*-netbsd*, and v850*-*-*.
762 * MAINTAINERS: Mark h8300, mcore, mn10300, ns32k, v850 as
763 "Deleted"
764 * config/h8300/tm-h8300.h, config/h8300/h8300.mt: Delete.
765 * h8300-tdep.c, config/mcore/mcore.mt, mcore-rom.c: Delete.
766 * mcore-tdep.c, config/mn10300/mn10300.mt: Delete.
767 * mn10300-tdep.c, config/ns32k/nbsdaout.mh: Delete.
768 * config/ns32k/nbsdaout.mt, config/ns32k/nm-nbsd.h: Delete.
769 * config/ns32k/nm-nbsdaout.h, config/ns32k/tm-ns32k.h: Delete.
770 * ns32knbsd-nat.c, ns32knbsd-tdep.c, ns32k-tdep.c: Delete.
771 * ns32k-tdep.h, config/v850/v850.mt, v850ice.c: Delete.
772 * v850-tdep.c: Delete.
773
774 2004-11-13 Joel Brobecker <brobecker@gnat.com>
775
776 * irix5-nat.c (fetch_core_registers): Replace use of
777 deprecated_registers by equivalent code.
778
779 2004-11-13 Joel Brobecker <brobecker@gnat.com>
780
781 * irix5-nat.c (fill_gregset): Replace use of deprecated_registers
782 with equivalent code.
783 (fill_fpregset): Likewise.
784
785 2004-11-13 Andrew Cagney <cagney@gnu.org>
786
787 * MAINTAINERS: Do not list "Deleted" architectures.
788
789 * configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
790 m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
791 sparc-*-vxworks*.
792 * NEWS: Mention that vxworks was deleted.
793 * config/m68k/tm-vx68.h, config/mips/tm-vxmips.h: Delete.
794 * config/powerpc/tm-vxworks.h, config/tm-vxworks.h: Delete.
795 * config/i386/vxworks.mt, config/m68k/vxworks68.mt: Delete.
796 * config/mips/vxmips.mt, config/powerpc/vxworks.mt: Delete.
797 * config/sparc/vxworks.mt, vx-share/dbgRpcLib.h: Delete.
798 * vx-share/ptrace.h, vx-share/regPacket.h: Delete.
799 * vx-share/vxTypes.h, vx-share/vxWorks.h: Delete.
800 * vx-share/wait.h, vx-share/xdr_ld.c: Delete.
801 * vx-share/xdr_ld.h, vx-share/xdr_ptrace.c: Delete.
802 * vx-share/xdr_ptrace.h, vx-share/xdr_rdb.c: Delete.
803 * vx-share/xdr_rdb.h, remote-vxsparc.c: Delete.
804 * remote-vxmips.c, remote-vx.c: Delete.
805 * remote-vx68.c: Delete.
806 * config/m68k/tm-os68k.h: Remove reference to VxWorks.
807 * config/m68k/os68k.mt, ada-lang.h: Ditto.
808 * Makefile.in (HFILES_NO_SRCDIR, ALLDEPFILES, remote-vx68.o)
809 (remote-vx.o, remote-vxmips.o, remote-vxsparc.o): Delete vx files.
810
811 2004-11-13 Eli Zaretskii <eliz@gnu.org>
812
813 * config/i386/xm-go32.h: Don't include fopen-bin.h.
814 Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR.
815
816 * source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the
817 branch that doesn't define CRLF_SOURCE_FILES; always use
818 binary-mode open.
819 (print_source_lines_base, forward_search_command)
820 (reverse_search_command): Enable the code that accepts DOS-style
821 CRLF line endings on all platforms (this removes the need for
822 CRLF_SOURCE_FILES).
823
824 * defs.h: Fix wording of the comment before FOPEN_RB.
825 (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
826
827 * config/djgpp/fnchange.lst: Group renames for opcode directory
828 together.
829
830 * config/djgpp/djconfig.sh: Replace file names that don't exist
831 anymore with existing files, for checking the unpacked
832 distribution.
833
834 * config/djgpp/config.sed (am_cv_exeext, lt_cv_sys_max_cmd_len):
835 Export pre-cooked values in configure-* targets that begin with
836 "@test -f stage_last".
837
838 2004-11-12 Andrew Cagney <cagney@gnu.org>
839
840 * defs.h (enum lval_type): Delete lval_reg_frame_relative.
841 * value.h (struct value): Update comment.
842 * valops.c (value_assign): Fold lval_reg_fame_relative into
843 lval_register.
844 * findvar.c (value_from_register, locate_var_value): Ditto.
845
846 2004-11-12 Randolph Chung <tausq@debian.org>
847
848 * config/tm/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
849 * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
850 (write_exp_msymbol): Remove conditional check for symbols starting
851 with $. Update comments.
852
853 2004-11-12 Randolph Chung <tausq@debian.org>
854
855 * pa64solib.c (pa64_solib_thread_start_addr): Rename from
856 so_lib_thread_start_addr.
857 * pa64solib.h (so_list): Forward declare.
858 (pa64_solib_thread_start_addr): Prototype.
859 * somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined.
860 (no_shared_libraries): Remove.
861 (som_solib_thread_start_addr): Rename from so_lib_thread_start_addr.
862 * somsolib.h (som_solib_thread_start_addr): Likewise; prototype.
863 * hpread.c (hpread_process_one_debug_symbol): Use either the som or
864 the elf solib handler to find the start address.
865
866 * config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support
867 files to the target makefile.
868 * config/pa/hpux1020.mh (NATDEPFILES): Likewise.
869 * config/pa/hpux11.mh (NATDEPFILES): Likewise.
870 * config/pa/hpux11w.mh (NATDEPFILES): Likewise.
871
872 * config/pa/hppa64.mt (TDEPFILES): Put target-specific support
873 files for symbol reading and shared library handling here.
874 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
875 (PA_SOM_ONLY): Define so we can build a 32-bit SOM only target
876 without bringing in 64-bit support.
877
878 2004-11-12 Andrew Cagney <cagney@gnu.org>
879
880 * sparc-tdep.c: Replace VALUE_TYPE with value_type.
881 * v850-tdep.c, sparc64-tdep.c, sh-tdep.c: Ditto.
882 * sh64-tdep.c, s390-tdep.c, mcore-tdep.c: Ditto.
883 * h8300-tdep.c, arm-linux-tdep.c, amd64-tdep.c: Ditto.
884 * hppa-tdep.c, mips-tdep.c, m88k-tdep.c: Ditto.
885 * m68hc11-tdep.c, m32r-tdep.c, ia64-tdep.c: Ditto.
886 * frv-tdep.c, cris-tdep.c, avr-tdep.c, alpha-tdep.c: Ditto.
887
888 Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM.
889 * value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete.
890 (VALUE_REGNUM): Define.
891 (struct value): Delete location.regnum, rename "regno" to
892 "regnum".
893 * value.c, valops.c, valarith.c, findvar.c: Update.
894
895 * value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE)
896 (VALUE_BITPOS): Delete.
897 (value_type, value_offset, value_bitsize, value_bitpos): Declare.
898 * value.c (value_type, value_offset, value_bitpos)
899 (value_bitsize): New functions. Update references.
900 * arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update.
901 * f-valprint.c, cp-valprint.c, c-valprint.c: Update.
902 * ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update.
903 * p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update.
904 * objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update.
905 * infcall.c, linespec.c, printcmd.c, valarith.c: Update.
906 * valops.c, eval.c, findvar.c, breakpoint.c: Update.
907 * tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c:
908 * rs6000-tdep.c, ppc-sysv-tdep.c: Update.
909
910 2004-11-12 Andrew Cagney <cagney@gnu.org>
911
912 * cris-tdep.c (cris_register_offset): Delete, never called.
913 (cris_spec_reg_applicable): Delete cris_ver_sim.
914 * MAINTAINERS: List d10v as OBSOLETE.
915 * rdi-share/host.h (FOPEN_WB): #ifdef 0 out definitions of
916 FOPEN_WB et.al., defined by "fopen-bin.h".
917
918 2004-11-12 Randolph Chung <tausq@debian.org>
919
920 * hppa-tdep.c (hppa_skip_permanent_breakpoint): Move definition ...
921 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): ... to here.
922 * config/pa/tm-hppa.h (SKIP_PERMANENT_BREAKPOINT): Move definition ...
923 * config/pa/tm-hppah.h (SKIP_PERMANENT_BREAKPOINT): ... to here.
924
925 2004-11-12 Mark Kettenis <kettenis@jive.nl>
926
927 * tui/tui-io.c: Don't include "terminal.h".
928 * Makefile.in (tui-io.o): Update dependencies.
929
930 2004-11-12 Kei Sakamoto <sakamoto.kei@renesas.com>
931
932 * Makefile.in (m32r-linux-tdep.o): Update dependencies.
933 * m32r-linux-tdep.c (m32r_linux_init_abi): Call
934 set_gdbarch_regset_from_core_section for core file support.
935 (m32r_linux_supply_gregset, m32r_linux_regset_from_core_section):
936 New functions.
937
938 2004-11-11 Randolph Chung <tausq@debian.org>
939
940 * hppa-tdep.c (skip_prologue_hard_way): Make static, add
941 stop_after_branch parameter and use it to determine if we should look
942 at the delay slot of the first branch insn to find prologue insns.
943 (hppa_skip_prologue): Update comment and call to skip_prologue_hard_way.
944 (hppa_frame_cache): Likewise.
945
946 2004-11-11 Randolph Chung <tausq@debian.org>
947
948 * hppa-tdep.c (hppa_frame_cache): Properly handle the frame pointer
949 register so that it can be unwound from anywhere in the prologue.
950
951 2004-11-10 msnyder <msnyder@redhat.com>
952
953 * rs6000-tdep.c (skip_prologue): After saving lr_offset,
954 must invalidate lr_reg (so we don't try to save it again).
955 Ditto for cr_offset and cr_reg.
956
957 2004-11-05 Jon Beniston <jon@beniston.com>
958
959 Committed by Andrew Cagney.
960 * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK
961 when an unexpected packet is received, as the target stubs
962 continually retransmit the same packet until ACKed.
963
964 2004-11-10 Randolph Chung <tausq@debian.org>
965
966 * frame.c (get_prev_frame): Use get_frame_type to retrieve the
967 frame's type.
968
969 2004-11-10 Randolph Chung <tausq@debian.org>
970
971 * blockframe.c (inside_entry_func): Move to .....
972 * frame.c (inside_entry_func): ... here, and make static.
973 (backtrace_past_entry): New flag.
974 (get_prev_frame): Stop backtrace at the entry function if enabled
975 by flag. Update comments.
976 (_initialize_frame): Add command to set backtrace_past_entry flag.
977 * defs.h (inside_entry_func): Remove prototype.
978
979 2004-11-10 Mark Kettenis <kettenis@gnu.org>
980
981 * dwarf2read.c: Fix formatting.
982
983 2004-11-10 Andrew Cagney <cagney@gnu.org>
984
985 * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
986 (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
987 macros with function declarations.
988 * value.c (coerce_ref, coerce_array, coerce_number)
989 (coerce_enum): New functions.
990 (value_as_long, value_as_address): Update.
991 * ada-lang.c (ada_coerce_ref, ada_value_binop)
992 (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
993 * jv-lang.c (evaluate_subexp_java): Update.
994 * valarith.c (value_less, value_neg, value_complement)
995 (value_binop, value_add, value_subscript, value_x_binop)
996 (value_logical_not, value_sub): Update.
997 * valops.c (check_field, value_struct_elt, value_ind)
998 (value_find_oload_method_list, value_cast, value_assign): Update.
999 * eval.c (evaluate_subexp_standard): Update.
1000
1001 2004-11-10 Mark Kettenis <kettenis@gnu.org>
1002
1003 * mips-tdep.c (mips32_relative_offset): Change return type to
1004 LONGEST, change argument type to ULONGEST. Fix sign-extension.
1005
1006 2004-11-10 Randolph Chung <tausq@debian.org>
1007
1008 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
1009 (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
1010 (hppa_fetch_pointer_argument): Likewise.
1011 (hppa_frame_cache): Use safe_frame_unwind_memory instead of
1012 deprecated_read_memory_nobpt.
1013 (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
1014 add_set_cmd sequence with add_setshow_boolean_cmd.
1015
1016 2004-11-09 Andrew Cagney <cagney@gnu.org>
1017
1018 GDB 6.3 released from GDB 6.3 branch.
1019
1020 2004-11-09 Andrew Cagney <cagney@gnu.org>
1021
1022 * values.c: Rename to ...
1023 * value.c: ..., new file.
1024 * Makefile.in: Update.
1025
1026 2004-11-09 Daniel Jacobowitz <dan@debian.org>
1027
1028 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
1029 size.
1030
1031 2004-11-09 Andrew Cagney <cagney@gnu.org>
1032
1033 * TODO: Delete.
1034
1035 * value.h (struct value): Delete field bfd_section.
1036 (VALUE_BFD_SECTION): Delete macro.
1037 (COERCE_REF): Update.
1038 (value_at, value_at_lazy): Delete asection parameter.
1039 * printcmd.c (print_formatted, x_command): Update.
1040 (do_examine): Delete asection parameter.
1041 (next_section): Delete variable.
1042 * valops.c (value_cast, value_at, value_at_lazy)
1043 (value_coerce_function, value_addr, value_ind, value_string)
1044 (find_rt_vbase_offset, value_full_object): Update.
1045 * hpacc-abi.c (hpacc_virtual_fn_field)
1046 (hpacc_value_rtti_type): Update.
1047 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field)
1048 (gnuv3_baseclass_offset): Update.
1049 * f-valprint.c (f_val_print): Update.
1050 * c-valprint.c (c_val_print): Update.
1051 * p-valprint.c (pascal_val_print): Update.
1052 * jv-valprint.c (java_value_print): Update.
1053 * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
1054 * ada-lang.c (ada_value_primitive_packed_val)
1055 (ada_evaluate_subexp): Update.
1056 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
1057 * expprint.c (print_subexp_standard): Update.
1058 * infcall.c (call_function_by_hand): Update.
1059 * valarith.c (value_add): Update.
1060 * eval.c (evaluate_subexp_standard): Update.
1061 * values.c (allocate_value, value_copy, value_static_field): Update.
1062 * findvar.c (read_var_value, locate_var_value): Update.
1063
1064 2004-11-09 Andrew Cagney <cagney@gnu.org>
1065
1066 * i386-linux-tdep.c: Include "dwarf2-frame.h".
1067 * Makefile.in: Update all dependencies.
1068
1069 2004-11-08 Andrew Cagney <cagney@gnu.org>
1070
1071 * sentinel-frame.c (sentinel_frame_prev_pc): New function.
1072 (sentinel_frame_unwinder): Add the prev_pc method.
1073 * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
1074 available. Do not handle the sentinel-frame case.
1075 * frame-unwind.h (frame_prev_register_ftype): Define.
1076 (struct frame_unwind): Add prev_pc;
1077
1078 2004-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1079
1080 * configure.in: Check for ncurses/term.h.
1081 * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
1082 * utils.c: Include gdb_curses.h instead of curses.h and term.h.
1083 * tui/tui.c: Don't include term.h.
1084 * configure, config.in: Rebuilt.
1085
1086 2004-11-08 Mark Kettenis <kettenis@gnu.org>
1087
1088 * m68kbsd-nat.c: Include "inf-ptrace.h".
1089 (_initialize_m68kbsd_nat): Fix pasto.
1090 * Makefile.in (m68kbsd-nat.o): Update dependencies.
1091
1092 2004-11-08 Randolph Chung <tausq@debian.org>
1093
1094 * infrun.c (debug_infrun): New variable.
1095 (resume, proceed, wait_for_inferior): Annotate with debug messages.
1096 (handle_inferior_event, keep_going): Likewise.
1097 (_initialize_infrun): Register "set debug infrun" command.
1098
1099 2004-11-08 Andreas Schwab <schwab@suse.de>
1100
1101 * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
1102 PTRACE_EVENT_VFORKDONE.
1103 (child_follow_fork): Adjust.
1104
1105 2004-11-08 Andrew Cagney <cagney@gnu.org>
1106
1107 * README: Refer to 6.3, not 6.2, update directory listing droppng
1108 references to intl/ and mmalloc/.
1109 * PROBLEMS: Refer to 6.3 not 6.2.
1110
1111 * PROBLEMS: Delete no-longer applicable problems.
1112
1113 2004-11-07 Andrew Cagney <cagney@redhat.com>
1114 Daniel Jacobowitz <dan@debian.org>
1115 Roland McGrath <roland@redhat.com>
1116
1117 * Makefile.in (symfile-mem.o): Update dependencies.
1118 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
1119 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
1120 * inf-ptrace.c (inf_ptrace_attach): Call
1121 observer_notify_inferior_created.
1122 * inftarg.c (child_attach): Likewise.
1123 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
1124 (symbol_file_add_from_memory): Take NAME argument. Use it for
1125 the new BFD's filename.
1126 (add_symbol_file_from_memory_command): Update call to
1127 symbol_file_add_from_memory.
1128 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
1129 (symbol_file_add_from_memory_wrapper): New.
1130 (_initialize_symfile_mem): Register add_vsyscall_page as an
1131 inferior_created observer.
1132
1133 2004-11-07 Mark Kettenis <kettenis@gnu.org>
1134
1135 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
1136 fetch_inferior_registers. Make static.
1137 (m68kbsd_store_inferior_registers): Rename from
1138 store_inferior_registers. Make static.
1139 (_initialize_m68kbsd_nat): Construct and add target vector.
1140 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1141 inftarg.o. Add inf-ptrace.o.
1142 (NAT_FILE): Set to tm-solib.h.
1143 (LOADLIBES): New variable.
1144 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1145 inftarg.o. Add inf-ptrace.o.
1146 (NAT_FILE): Delete variable.
1147 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
1148 inftarg.o. Add inf-ptrace.o.
1149 (NAT_FILE): Set to tm-solib.h.
1150 * config/m68k/nm-nbsdaout.h: Remove file.
1151
1152 2004-11-07 Daniel Jacobowitz <dan@debian.org>
1153
1154 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
1155 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
1156 (dwarf2_signal_frame_unwind): New.
1157 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
1158 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
1159
1160 2004-11-07 Mark Kettenis <kettenis@gnu.org>
1161
1162 * Makefile.in (mips64obsd-tdep.o): Fix typo.
1163
1164 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
1165 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
1166 to only include the structure members we actually need.
1167 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
1168 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
1169 only include the structure members we actually need.
1170 (mipsnbsd_init_abi): Update.
1171
1172 * mips64obsd-nat.c: Include "mips-tdep.h".
1173 (MIPS64OBSD_NUM_REGS): Remove define.
1174 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
1175 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
1176 floating-point registers correctly.
1177 * Makefile.in (mips64obsd-nat.o): Update dependencies.
1178
1179 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
1180 "gdb_assert.h".
1181 (mips64obsd_sigframe_init): New function.
1182 (mips64obsd_sigframe): New variable.
1183 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
1184 unwinder.
1185 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
1186
1187 2004-11-06 Joel Brobecker <brobecker@gnat.com>
1188
1189 * alpha-mdebug-tdep.c: #include mdebugread.h.
1190 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
1191 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
1192
1193 2004-11-05 Andrew Cagney <cagney@gnu.org>
1194
1195 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
1196 CFI and the init_reg method leave the register unspecified.
1197 Include the register name in the "Incomplete CFI data" complaint.
1198 Supress leading zeros in the address.
1199
1200 2004-11-05 Mark Kettenis <kettenis@gnu.org>
1201
1202 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
1203 skipping a personality routine in a CIE augmentation.
1204
1205 2004-11-05 Jeff Johnston <jjohnstn@redhat.com>
1206
1207 * defs.h (fatal, vfatal): New function prototypes.
1208 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
1209 via catch_errors.
1210 (backtrace_command): Change to call backtrace_command_stub via
1211 catch_errors instead of calling backtrace_command_1 directly.
1212 (backtrace_full_command): Ditto.
1213 * utils.c (error_stream_1): New static function.
1214 (verror): Change to call error_stream_1 instead of error_stream.
1215 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
1216 (vfatal, fatal): New functions.
1217
1218 2004-11-05 Andrew Cagney <cagney@gnu.org>
1219
1220 * stack.c (parse_frame_specification_1): Clear selected_frame_p
1221 when not using selected frame.
1222
1223 2004-11-05 Mark Kettenis <kettenis@jive.nl>
1224
1225 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
1226 personality routine in a CIE augmentation.
1227
1228 2004-11-05 Felix Lee <felix+log1@specifixinc.com>
1229
1230 * stack.c (set_current_sal_from_frame): New function.
1231 (print_args_stub): Use it.
1232 (print_frame_info): Don't set sal here.
1233
1234 2004-11-04 Mark Kettenis <kettenis@gnu.org>
1235
1236 * dwarf2-frame.c (read_encoded_value): Change type of third
1237 argument to `unsigned char *'. Add support for LEB128 encodings.
1238
1239 2004-11-04 Jim Blandy <jimb@redhat.com>
1240
1241 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
1242 prevent cross-objfile references.
1243 (make_cv_type): Doc fix. Don't create cross-objfile references,
1244 even for stub types.
1245 (replace_type): Add assertion to prevent cross-objfile references.
1246 (check_typedef): Never resolve a stub type by copying over a type
1247 from another file.
1248
1249 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
1250
1251 * Makefile.in (m32r-tdep.o): Update dependencies.
1252 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
1253 ABI-specific overrides.
1254
1255 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
1256
1257 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
1258 unnecessary parallel execution bit.
1259 (m32r_memory_remove_breakpoint): Ditto.
1260 (m32r_breakpoint_from_pc): Update.
1261
1262 2004-11-03 Randolph Chung <tausq@debian.org>
1263
1264 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
1265 frame_func_unwind to locate the unwind entry.
1266 (hppa_frame_this_id): Likewise.
1267
1268 2004-11-03 Andrew Cagney <cagney@gnu.org>
1269
1270 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
1271 packet, obsolete configurations, end-of-life deprecated_registers.
1272
1273 2004-11-02 Mark Kettenis <kettenis@gnu.org>
1274
1275 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
1276 encodings as well as unsigned encodings.
1277
1278 2004-11-02 Andrew Cagney <cagney@gnu.org>
1279
1280 * value.h (COERCE_VARYING_ARRAY): Delete.
1281 * valops.c (value_cast, value_slice): Delete use.
1282 * valarith.c (value_subscript, value_concat): Delete use.
1283
1284 2004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
1285
1286 * NEWS: GDB understands GNAT Ada.
1287
1288 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
1289
1290 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
1291 (amd64-sol2-tdep.o): Add dependencies.
1292 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
1293 config/i386/sol2-64.mt: New files.
1294 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
1295 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
1296 (supply_gregset): Correct order of arguments to
1297 amd64_supply_native_gregset.
1298 (fill_gregset): Correct order of arguments to
1299 amd64_collect_native_gregset.
1300 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
1301 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
1302 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
1303 for definition of NEW_PROC_API.
1304 * configure: Regenerate.
1305
1306 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
1307
1308 * MAINTAINERS (Write After Approval): Add myself.
1309
1310 2004-11-01 Andrew Cagney <cagney@gnu.org>
1311
1312 * configure.tgt: Mark d10v-*-* as obsolete.
1313 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
1314
1315 2004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1316
1317 * values.c (modify_field): Correct handling of bit-fields that
1318 don't fit in 32 bits. Use unsigned operations throughout and
1319 simplify the code a bit. Document preconditions.
1320
1321 2004-10-31 Andrew Cagney <cagney@gnu.org>
1322
1323 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
1324 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1325 (in_plt_section): Delete.
1326
1327 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
1328 (mips_gdbarch_init): Do not set same.
1329
1330 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
1331 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
1332
1333 * gdbarch.sh (in_solib_call_trampoline): Delete.
1334 * gdbarch.h, gdbarch.c: Re-generate.
1335
1336 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
1337 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
1338 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
1339 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
1340 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
1341
1342 2004-10-31 Mark Kettenis <kettenis@gnu.org>
1343
1344 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1345 (mipsnbsd_fetch_inferior_registers): Rename from
1346 fetch_inferior_registers. Make static.
1347 (mipsnbsd_store_inferior_registers): Rename from
1348 store_inferior_registers. Make static.
1349 (_initialize_mipsnbsd_nat): New function and prototype.
1350 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1351 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
1352 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
1353 inf-ptrace.o.
1354
1355 2004-10-31 Andrew Cagney <cagney@gnu.org>
1356
1357 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
1358 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
1359 delete corresponding unused function.
1360 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
1361 in_solib_call_trampoline.
1362 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1363 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
1364 * config/mips/tm-nbsd.h: Ditto.
1365 * config/arm/tm-linux.h: Ditto.
1366 * config/mips/tm-linux.h: Ditto.
1367
1368 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
1369 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
1370 in_solib_call_trampoline, delete corresponding unused function.
1371 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
1372 (vaxnbsd_aout_init_abi): Ditto.
1373 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
1374 (sparc32nbsd_aout_init_abi): Ditto.
1375 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
1376 (ppc_linux_init_abi): Ditto.
1377 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
1378 (ns32knbsd_init_abi_aout): Ditto.
1379 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
1380 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
1381 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
1382 (m68kbsd_aout_init_abi): Ditto.
1383 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
1384 (i386_cygwin_init_abi): Ditto.
1385 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
1386 (i386bsd_init_abi): Ditto.
1387
1388 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
1389 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
1390 isn't used by this architecture.
1391 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
1392 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
1393 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
1394 * s390-tdep.c (s390_gdbarch_init): Ditto.
1395 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
1396 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
1397 * i386-tdep.c (i386_svr4_init_abi): Ditto.
1398 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
1399 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
1400 * amd64-tdep.c (amd64_init_abi): Ditto.
1401
1402 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
1403 in_solib_call_trampoline to its default value of
1404 generic_in_solib_call_trampoline.
1405 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
1406 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
1407 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
1408 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
1409 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
1410 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
1411
1412 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
1413
1414 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
1415
1416 * config/mips/tm-mips.h: Delete file.
1417 * remote-mips.c: Delete tm-mips.h from comment.
1418 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
1419 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
1420 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
1421 * config/mips/tm-linux.h: Don't include tm-mips.h.
1422 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
1423 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
1424 * config/mips/tm-wince.h: Don't include.
1425
1426 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
1427 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
1428 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1429 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1430
1431 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
1432 * mdebugread.c (ecoff_relocate_efi): Delete function.
1433 * objfiles.c (objfile_relocate): Delete #ifdef
1434 MDEBUG_EFI_SYMBOL_NAME code.
1435
1436 2004-10-31 Orjan Friberg <organ.friberg@axis.com>
1437 Andrew Cagney <cagney@gnu.org>
1438
1439 * gdbarch.sh (single_step_through_delay): Add.
1440 * gdbarch.h, gdbarch.c: Re-generate.
1441 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
1442 (mips_step_skips_delay): Delete.
1443 * mips-tdep.c (mips_single_step_through_delay): Replace
1444 mips_step_skips_delay.
1445 (mips_gdbarch_init): Set single_step_through_delay.
1446 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
1447
1448 2004-10-31 Mark Kettenis <kettenis@gnu.org>
1449
1450 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
1451 from TRAMP_FRAME frame type.
1452
1453 2004-10-31 Andrew Cagney <cagney@gnu.org>
1454
1455 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
1456
1457 * mips-tdep.c (mips_ignore_helper): Delete.
1458 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
1459 * infrun.c (handle_inferior_event): Delete #ifdef
1460 DEPRECATED_IGNORE_HELPER_CALL code.
1461
1462 * config/mips/tm-mips.h (RA_REGNUM): Delete.
1463
1464 2004-10-31 Mark Kettenis <kettenis@gnu.org>
1465
1466 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
1467 (fill_fpregset): Do not compile for 64-bit systems.
1468 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
1469 * Makefile.in (i386-sol2-nat.o): Update dependencies.
1470 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
1471
1472 2004-10-30 Andrew Cagney <cagney@gnu.org>
1473
1474 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
1475 (struct mdebug_extra_func_info): Define.
1476 * config/alpha/tm-alpha.h: Delete same.
1477 * config/mips/tm-mips.h: Delete same.
1478 * mdebugread.c: Delete same.
1479 * Makefile.in: Update dependencies.
1480 * mips-mdebug-tdep.c: Include "mdebugread.h".
1481
1482 * objfiles.c: Include "mdebugread.h".
1483 * mdebugread.c: Include "mdebugread.h".
1484 (ecoff_relocate_cfi): Delete.
1485 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
1486 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
1487 * mdebugread.h (ecoff_relocate_efi): New file.
1488 * Makefile.in: Update dependencies.
1489
1490 * mips-tdep.c (struct frame_extra_info): Delete.
1491 (temp_proc_desc): Delete.
1492
1493 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1494 MIPS_EFI_SYMBOL_NAME.
1495 (mips_extra_func_info_t, mips_extra_func_info): Delete.
1496 (struct mdebug_extra_func_info): Replace struct
1497 alpha_extra_func_info and alpha_extra_func_info_t.
1498 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1499 MIPS_EFI_SYMBOL_NAME.
1500 (struct mdebug_extra_func_info): Replace struct
1501 alpha_extra_func_info and alpha_extra_func_info_t.
1502 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
1503 * mdebugread.c, alpha-mdebug-tdep.c:
1504
1505 Suggested by Mark Kettenis.
1506 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
1507 fields frame_adjust and high_addr.
1508 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
1509 (non_heuristic_proc_desc): Delete references.
1510
1511 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
1512 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
1513 * mips-tdep.c: Update.
1514
1515 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
1516 (MIPS_LAST_EMBED_REGNUM): Add.
1517 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
1518 (LAST_EMBED_REGNUM): Delete.
1519 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
1520
1521 * config/mips/tm-mips.h (PS_REGNUM): Delete.
1522 * mips-tdep.h (MIPS_PS_REGNUM): Add.
1523 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
1524 * mips-linux-nat.c: Update.
1525
1526 * mips-tdep.h: Add comments on registers.
1527 (MIPS_UNUSED_REGNUM): Define.
1528 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
1529 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
1530 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
1531 * mips-linux-nat.c, remote-mips.c: Update.
1532
1533 * config/mips/tm-mips.h (t_insn): Delete.
1534 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
1535 Replace t_insn with ULONGEST.
1536
1537 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1538
1539 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
1540 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
1541 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
1542 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
1543 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
1544 (mipsnbsd_core_osabi_sniffer): New function.
1545 (mipsnbsd_init_abi): Set regset_from_core_section.
1546 (_initialize_mipsnbsd_tdep): Remove calls to
1547 deprecated_add_core_fns.
1548 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
1549 (mipsnbsd_regset_from_core_section): New functions.
1550 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
1551 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
1552
1553 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
1554 Remove optimization for DEPRECATED_FP_REGNUM.
1555
1556 2004-10-30 Andrew Cagney <cagney@gnu.org>
1557
1558 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
1559 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
1560 (alpha_setup_arbitrary_frame): Delete.
1561 * mips-tdep.c (setup_arbitrary_frame): Delete.
1562 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
1563 (setup_arbitrary_frame): Delete.
1564 * stack.c (parse_frame_specification_1): When specified, call
1565 create_new_frame with two parameters. Delete #ifdef
1566 SETUP_ARBITRARY_FRAME.
1567
1568 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
1569 (MIPS_INSTLEN): Delete.
1570 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
1571 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
1572 * remote-mips.c, mips-tdep.c: Update.
1573
1574 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
1575 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
1576 * mips-tdep.c (mips_mdebug_frame_cache)
1577 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
1578 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
1579 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
1580 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
1581 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
1582 (mips_gdbarch_init): Do not append mdebug sniffers.
1583 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
1584 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
1585 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
1586 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
1587 * Makefile.in: Update dependencies.
1588
1589 * mips-tdep.h (mips_abi_regsize): Declare.
1590 * mips-tdep.c (mips_abi_regsize): Make non-static.
1591
1592 * mips-tdep.c (gdb_print_insn_mips): Simplify.
1593 (make_mips16_addr): Delete.
1594
1595 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1596
1597 * i386-sol2-nat.c: New file.
1598 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
1599 i386-sol2-tdep.c.
1600 (i386-sol2-nat.o): Update dependencies.
1601 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
1602 i386-sol2-nat.o.
1603
1604 2004-10-30 Andrew Cagney <cagney@gnu.org>
1605
1606 Total breakage identified by Joel Brobecker.
1607 * mips-tdep.c (after_prologue): Delete.
1608 (mips_skip_prologue): Use skip_prologue_using_sal.
1609 (heuristic_proc_desc): Delete, unused.
1610
1611 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1612
1613 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
1614 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
1615 Cleanup coding style.
1616
1617 2004-10-30 Andrew Cagney <cagney@gnu.org>
1618
1619 * mips-tdep.h (mips_pc_is_mips16): Declare.
1620 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
1621 non-static. Update calls.
1622
1623 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
1624 * command.h (add_setshow_enum_cmd): Declare.
1625 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
1626
1627 * mips-tdep.c (_initialize_mips_tdep): Use
1628 add_setshow_zinteger_cmd.
1629
1630 * mips-tdep.c (mips_eabi_extract_return_value)
1631 (mips_o64_extract_return_value, mips_o64_store_return_value)
1632 (return_value_location, mips_eabi_reg_struct_has_addr)
1633 (mips_eabi_use_struct_convention)
1634 (mips_eabi_store_return_value): Delete.
1635 (mips_eabi_store_return_value): New function.
1636 (mips_eabi_return_value): New function.
1637 (mips_gdbarch_init): For O64 and EABI, delete
1638 extract_return_value, store_return_value, use_struct_convention
1639 and reg_struct_has_addr, add return_value.
1640
1641 * mips-tdep.c (read_signed_register): Use
1642 regcache_cooked_read_signed.
1643
1644 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1645
1646 * mipsread.c: Cleanup coding style.
1647 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
1648 (mipscoff_symfile_finish): Remove prototypes.
1649
1650 2004-10-29 Mark Kettenis <kettenis@gnu.org>
1651
1652 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1653 (mips_mdebug_frame_cache, mips16_scan_prologue)
1654 (mips32_scan_prologue, mips_stub_frame_cache)
1655 (heuristic_proc_start, heuristic_proc_desc)
1656 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1657 (mips_n32n64_return_value, mips_o32_push_dummy_call)
1658 (mips_o32_return_value, mips_o64_push_dummy_call)
1659 (mips_step_skips_delay, mips_skip_trampoline_code)
1660 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
1661 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
1662 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
1663 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
1664 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
1665 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
1666 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
1667 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
1668 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
1669 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
1670 ZERO_REGNUM.
1671 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1672 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
1673 ZERO_REGNUM.
1674 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
1675 A0_REGNUM.
1676 * mipsnbsd-nat.c: Include "mips-tdep.h".
1677 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
1678 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1679
1680 2004-10-29 Andrew Cagney <cagney@gnu.org>
1681
1682 * stack.c (parse_frame_specification_1): New function based on
1683 parse_frame_specification. Add message and selected_frame_p
1684 paramters. Truely always return non-NULL.
1685 (parse_frame_specification): Call parse_frame_specification_1.
1686 (frame_info): Update. Eliminate target_has_stack check.
1687 (select_frame_command): Update.
1688
1689 2004-10-29 Andrew Cagney <cagney@gnu.org>
1690
1691 * frame.h (get_selected_frame): Add message parameter.
1692 * frame.c (get_selected_frame): Add and use message parameter.
1693 * stack.c (current_frame_command, return_command, locals_info)
1694 (catch_info, args_info, up_silently_base, down_silently_base): Use
1695 get_selected_frame with an explicit message.
1696 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
1697 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
1698 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
1699 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
1700 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
1701 * breakpoint.c: Update.
1702
1703 2004-10-29 Andrew Cagney <cagney@gnu.org>
1704
1705 * trad-frame.c (trad_frame_get_prev_register): Use
1706 frame_unwind_register instead of frame_register_unwind, do not
1707 recurse the register's location.
1708 * xstormy16-tdep.c (xstormy16_frame_prev_register):
1709 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
1710 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
1711 * sh-tdep.c (sh_frame_prev_register): Ditto.
1712 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
1713 * i386-tdep.c (i386_frame_prev_register): Ditto.
1714 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
1715 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
1716
1717 2004-10-28 Mark Kettenis <kettenis@jive.nl>
1718
1719 * proc-events.c: Fix several coding-style issues. Consistently
1720 use #ifdef instead of #if defined().
1721 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
1722 ARRAY_SIZE.
1723 (_initialize_proc_events): New prototype.
1724
1725 * proc-why.c: Fix several coding-style issues.
1726 (proc_prettyfprint_why): Use ARRAY_SIZE.
1727
1728 2004-10-27 Jim Blandy <jimb@redhat.com>
1729
1730 * remote.c (fetch_register_using_p): Construct 'p' packet in a
1731 manner independent of the host byte order.
1732
1733 2004-10-27 Mark Kettenis <kettenis@gnu.org>
1734
1735 * mips-tdep.c (id_delayed): Remove prototype.
1736
1737 2004-10-26 Mark Kettenis <kettenis@gnu.org>
1738
1739 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
1740 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
1741 to enum with register numbers.
1742 (enum mips_insn_size): New enum.
1743
1744 2004-10-26 Andrew Cagney <cagney@gnu.org>
1745
1746 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
1747 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
1748 (mips_gdbarch_init): Update.
1749 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
1750
1751 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1752 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
1753 IN_SOLIB_RETURN_TRAMPOLINE.
1754 * mips-tdep.c (mips_dump_tdep): Do not print
1755 IN_SOLIB_RETURN_TRAMPOLINE.
1756 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
1757 (mips_gdbarch_init): Update.
1758
1759 * mips-tdep.h (mips_software_single_step): Move to here ...
1760 * config/mips/tm-mips.h: ... from here.
1761 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
1762 (SOFTWARE_SINGLE_STEP): Delete.
1763 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
1764
1765 2004-10-25 Andrew Cagney <cagney@gnu.org>
1766
1767 * NEWS: Add Changes since GDB 6.3 section.
1768
1769 2004-10-23 Andreas Schwab <schwab@suse.de>
1770
1771 * ada-lang.c (grow_vect): Return the new array instead of
1772 expecting pointer to pointer to avoid violation of aliasing rules.
1773 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
1774
1775 2004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
1776
1777 * s390-tdep.c (enum pv_boolean): Remove.
1778 (pv_is_array_ref): Remove.
1779 (s390_on_stack): Remove.
1780 (S390_NUM_SPILL_SLOTS): Remove.
1781 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
1782 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
1783 (s390_store): Track all stores of orginal incoming registers to the
1784 stack constant offsets relative to the CFA, instead of only tracking
1785 stores into specific spill slots.
1786 (s390_load): Likewise.
1787 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
1788 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
1789 defined as call-saved by the ABI.
1790 (s390_push_dummy_call): Use bottom of dummy call argument save area
1791 as return value, not the top. Do not store to the called function's
1792 register save area.
1793 (s390_unwind_dummy_id): Adapt accordingly.
1794
1795 2004-10-23 Andrew Cagney <cagney@gnu.org>
1796
1797 * objfiles.h (struct objfile): Rename obj_private to
1798 deprecated_obj_private, sym_private to deprecated_sym_private, and
1799 sym_stab_info to deprecated_sym_stab_info.
1800 * gdb-stabs.h: Update.
1801 * elfread.c: Update.
1802 * dbxread.c: Update.
1803 * coffread.c: Update.
1804 * xcoffread.c: Update.
1805 * symfile.c: Update.
1806 * somread.c: Update.
1807 * nlmread.c: Update.
1808 * mdebugread.c: Update.
1809 * hpread.c: Update.
1810 * coffread.c: Update.
1811
1812 2004-10-23 Mark Kettenis <kettenis@gnu.org>
1813
1814 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
1815 * configure.host: Add mips64*-*-openbsd*.
1816 * configure.tgt: Add mips64*-*-openbsd*.
1817 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
1818 mips64obsd-tdep.c.
1819 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
1820 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
1821
1822 2004-10-21 Joel Brobecker <brobecker@gnat.com>
1823
1824 * symtab.c (symbol_search_name): Minor reformatting.
1825
1826 2004-10-20 Joel Brobecker <brobecker@gnat.com>
1827
1828 * symtab.h: Fix typo in comment.
1829
1830 2004-10-19 Mark Kettenis <kettenis@gnu.org>
1831
1832 * dwarf2read.c (struct comp_unit_head): Fix coding style.
1833 (dwarf_decode_line_header): Likewise.
1834
1835 2004-10-19 Michael Chastain <mec.gnu@mindspring.com>
1836
1837 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
1838
1839 2004-10-19 Andrew Cagney <cagney@gnu.org>
1840
1841 GDB 6.3 branch created.
1842 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
1843
1844 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1845
1846 * dwarf2read.c (set_cu_language): Set language to Ada for
1847 DW_LANG_Ada83 and DW_LANG_Ada95.
1848
1849 2004-10-15 Michael Chastain <mec.gnu@mindspring.com>
1850
1851 From Andreas Schwab <schwab@suse.de>:
1852 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
1853 for xmalloc and xrealloc.
1854
1855 2004-10-15 Andrew Cagney <cagney@gnu.org>
1856
1857 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
1858 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
1859 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
1860 Update dependencies.
1861
1862 2004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
1863
1864 * ada-lang.c (ada_lookup_symbol): Correct comment.
1865 (ada_evaluate_subexp): Change error message for
1866 OP_FUNCALL case so as not to indicate an internal error.
1867
1868 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1869
1870 Committed by Paul Hilfinger.
1871 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
1872 type sizes in XVE/XVU types, and emit a warning when that happens,
1873 instead of rounding up the size of the resulting type.
1874 Some minor reformatting.
1875 (ada_is_aligner_type): Do not consider a type as an aligner type
1876 if there is a corresponding XVS type as well.
1877 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
1878 have several levels of pointer indirection to the array.
1879
1880 2004-10-15 Jerome Guitton <guitton@gnat.com>
1881
1882 Committed by Paul Hilfinger.
1883 * ada-lang.c (check_size): New function.
1884 (coerce_unspec_val_to_type): call check_size to make sure
1885 that the object size is reasonable.
1886 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
1887 Implements the case when we get a reference when we evaluate
1888 the expression of one of the bounds of the slice.
1889 (ada_value_struct_elt): when a packed array field is
1890 a reference, use ada_coerce_ref to dereference it; use
1891 ada_value_ind only if it is a pointer.
1892
1893 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1894
1895 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
1896 a bit to avoid the necessity of an advance declaration. Remove
1897 declaration.
1898 (set_reg_offset): Move implemenation up.
1899 (mips16_get_imm): Likewise.
1900 (mips16_scan_prologue): Likewise.
1901 (reset_saved_regs): Likewise.
1902 (mips32_scan_prologue): Likewise.
1903
1904 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1905
1906 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
1907 Remove sp as a parameter, compute it internally instead. Move
1908 prologue scanning limit from heuristic_proc_desc to here.
1909 (mips16_scan_prologue): Likewise.
1910 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
1911 by call to mips16_scan_prologue.
1912 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
1913 by call to mips32_scan_prologue.
1914 (heuristic_proc_desc): Remove code that's no longer necessary.
1915 Update calls to mips16_scan_prologue and mips32_scan_prologue.
1916 (mips_skip_prologue): Update calls to mips16_scan_prologue
1917 and mips32_scan_prologue.
1918
1919 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1920
1921 * mips-tdep.c (mips16_scan_prologue): Merge code from
1922 mips16_skip_prologue. Now return the address of the first
1923 instruction past the function prologue.
1924 (mips16_skip_prologue): Remove, no longer necessary.
1925 (mips_skip_prologue): Replace call to mips16_skip_prologue
1926 by call to mips16_scan_prologue.
1927
1928 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1929
1930 * mips-tdep.c (mips32_scan_prologue): Merge code from
1931 mips32_skip_prologue. Now return the address of the first
1932 instruction past the function prologue.
1933 (mips32_skip_prologue): Remove. No longer necessary.
1934 (mips16_skip_prologue): Add parameter end_pc instead of
1935 computing it.
1936 (mips_skip_prologue): Compute the upper limit for the
1937 prologue scanning. Update call to mips16_skip_prologue.
1938 Replace call to mips32_skip_prologue by call to
1939 mips32_scan_prologue.
1940
1941 2004-10-14 Mark Kettenis <kettenis@gnu.org>
1942
1943 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
1944 NetBSD system call stubs that store %rp in the ERP slot of the
1945 stack frame.
1946
1947 * source.c: Always define O_BINARY to 0 if not defined already.
1948 (openp): Unconditionally use O_BINARY.
1949
1950 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
1951 * event-top.c (gdb_readline2): Likewise.
1952
1953 2004-10-14 Orjan Friberg <orjanf@axis.com>
1954
1955 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
1956 deprecated_add_core_fns which was removed by mistake.
1957
1958 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1959
1960 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
1961 references to deprecated_registers[] with equivalent code.
1962
1963 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1964
1965 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
1966 ``deprecated_registers'' with equivalent code. Use gdb_assert()
1967 instead of explicit test and print statement.
1968
1969 2004-10-12 Mark Kettenis <kettenis@gnu.org>
1970
1971 * sparc-nat.c: Include "inf-ptrace.h".
1972 (sparc_target): New function.
1973 * sparc-nat.h: Update copyright year.
1974 (sparc_target): New prototype.
1975 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
1976 (_initialize_sparcnbsd_nat): Construct and add target vector.
1977 * sparc64nbsd-nat.c: Include "target.h".
1978 (_initialize_sparc64nbsd_nat): Construct and add target vector.
1979 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
1980 Update dependencies.
1981 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
1982 inftarg.o, add inf-ptrace.o.
1983 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1984 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
1985 (NAT_FILE): Set to nm-bsd.h.
1986 (LOADLIBES): New variable.
1987 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1988 infarg.o, add inf-ptrace.o.
1989 * config/sparc/nm-nbsdaout.h: Remove file.
1990 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
1991 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
1992 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
1993
1994 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
1995 "fopen-same.h". Update comment.
1996
1997 2004-10-11 Mark Kettenis <kettenis@gnu.org>
1998
1999 * i386gnu-nat.c: Include "gdb_string.h".
2000 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
2001 registers when the floating-point state isn't initialized.
2002 * Makefile.in (i386gnu-nat.o): Update dependencies.
2003
2004 2004-10-11 David Anderson <davea@sgi.com>
2005
2006 * regcache.c (regcache_raw_read): Comment was missing "to".
2007 Extraneous ' removed.
2008 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
2009 comment now describes use.
2010
2011 2004-10-11 Orjan Friberg <orjanf@axis.com>
2012
2013 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
2014 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
2015 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
2016 (cris_sigtramp_frame_sniffer): New functions.
2017 (cris_gdbarch_init): Hook in signal trampoline unwinder.
2018 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
2019 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
2020 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
2021 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
2022 command.
2023 (cris_version_update): Remove, replace with ...
2024 (set_cris_version): New function.
2025 (struct gdbarch_tdep, cris_mode, cris_mode_update)
2026 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
2027 (_initialize_cris_tdep): Remove CRIS mode command.
2028 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
2029 cris-fpless-backtrace command.
2030 (cris_scan_prologue): Fix prologue scanning limit.
2031 (cris_register_type): Update to reflect actual registers.
2032 (cris_register_bytes_ok) Remove.
2033 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
2034 Remove set_gdbarch_deprecated_register_size,
2035 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
2036
2037 2004-10-10 Andrew Cagney <cagney@gnu.org>
2038
2039 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
2040 comment.
2041
2042 2004-10-10 Joel Brobecker <brobecker@gnat.com>
2043
2044 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
2045
2046 2004-10-10 Joel Brobecker <brobecker@gnat.com>
2047
2048 * mips-tdep.c (mips16_scan_prologue): Renames
2049 mips16_heuristic_proc_desc. Update comment.
2050 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
2051 (heuristic_proc_desc): Update calls to the 2 functions above.
2052
2053 2004-10-10 Joel Brobecker <brobecker@gnat.com>
2054
2055 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
2056 Update comments. Also immediately return empty cache when the start
2057 address of our function could not be found.
2058 (mips_insn32_frame_cache): Likewise.
2059
2060 2004-10-10 Joel Brobecker <brobecker@gnat.com>
2061
2062 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
2063 (mips_insn16_frame_cache): Pass frame cache in call to
2064 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
2065 Remove code that became redundant as a consequence.
2066 (mips32_heuristic_proc_desc): No longer compute a fake
2067 procedure descriptor. Compute the full frame cache instead.
2068 Some minor comment reformatting.
2069
2070 2004-10-10 Jim Blandy <jimb@redhat.com>
2071
2072 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
2073 reader, tracing bytecode stuff): Remove self.
2074
2075 2004-10-10 Mark Kettenis <kettenis@gnu.org>
2076
2077 * sparc64-linux-tdep.c: Update copyright year. Don't include
2078 "solib-svr4.h".
2079 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
2080 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
2081 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
2082
2083 * sparc-linux-tdep.c: Update copyright year.
2084 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
2085 to struct frame_info *. Use safe_frame_unwind_memory instead of
2086 deprecated_read_memory_nobpt.
2087 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
2088 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
2089 changed signature of sparc_linux_sigtramp_start.
2090 (sparc32_linux_pc_in_sigtramp): Remove function.
2091 (sparc32_linux_sigtramp_p): New function.
2092 (sparc32_linux_sigtramp_frame_sniffer): Use
2093 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
2094
2095 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
2096 Remove function.
2097 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
2098
2099 * ada-lang.c (lim_warning): Re-implement as a varargs function.
2100 (decode_packed_array_type, value_subscript_packed)
2101 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
2102 argument in call to lim_warning.
2103
2104 * configure.in: Really disable the TUI if an enhanced curses
2105 library isn't found.
2106 * configure: Regenerate.
2107
2108 2004-10-09 Mark Kettenis <kettenis@gnu.org>
2109
2110 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
2111 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
2112 * config/i386/nm-nbsdaout.h: Remove file.
2113 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
2114 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
2115 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
2116 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
2117 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
2118 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
2119 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
2120 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
2121 (ldd, ld_un, ld_2): Remove defines.
2122 * config/i386/nm-obsd.h: Likewise.
2123
2124 2004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
2125
2126 * ada-lex.l: Remove useless rule whose right-context clause
2127 causes unreferenced static function warning for yyrealloc.
2128 (ada_flex_use): Remove the artificial reference to yyrealloc.
2129
2130 2004-10-08 Andrew Cagney <cagney@gnu.org>
2131
2132 * target.h (struct target_ops): Rename to_xfer_memory to
2133 deprecated_xfer_memory.
2134 * target.c: Update.
2135 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
2136 * wince.c: Update.
2137 * win32-nat.c: Update.
2138 * v850ice.c: Update.
2139 * uw-thread.c: Update.
2140 * thread-db.c: Update.
2141 * sol-thread.c: Update.
2142 * remote.c: Update.
2143 * remote-vx.c: Update.
2144 * remote-st.c: Update.
2145 * remote-sim.c: Update.
2146 * remote-sds.c: Update.
2147 * remote-rdp.c: Update.
2148 * remote-rdi.c: Update.
2149 * remote-mips.c: Update.
2150 * remote-m32r-sdi.c: Update.
2151 * remote-e7000.c: Update.
2152 * procfs.c: Update.
2153 * ppc-bdm.c: Update.
2154 * nto-procfs.c: Update.
2155 * monitor.c: Update.
2156 * linux-nat.c: Update.
2157 * inftarg.c: Update.
2158 * hpux-thread.c: Update.
2159 * go32-nat.c: Update.
2160 * gnu-nat.c: Update.
2161 * exec.c: Update.
2162 * corelow.c: Update.
2163 * bsd-kvm.c: Update.
2164 * aix-thread.c: Update.
2165
2166 2004-10-08 Andrew Cagney <cagney@gnu.org>
2167
2168 * target.c (debug_target): Move to near start of file.
2169 (target_stopped_data_address_p): Re-org logic, add casts.
2170
2171 2004-10-02 Mark Kettenis <kettenis@gnu.org>
2172
2173 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
2174 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
2175 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
2176 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
2177 New defines.
2178
2179 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
2180
2181 * target.h (to_stopped_data_address): Change prototype to
2182 take a CORE_ADDR pointer and return an int.
2183 * target.c (update_current_target): Change to_stopped_data_address
2184 to match new prototype.
2185 (debug_to_stopped_data_address): Change appropriately.
2186 * breakpoint.c (bpstat_stop_status): Change call to
2187 target_stopped_data_address to use new prototype.
2188 * frv-tdep.c (frv_have_stopped_data_address): New function.
2189 (frv_stopped_data_address): Change to new prototype and
2190 functionality.
2191 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
2192 prototype and functionality.
2193 (ia64_stopped_by_watchpoint): New function.
2194 * i386-nat.c (i386_stopped_data_address): Change to new
2195 prototype and functionality.
2196 (i386_stopped_by_watchpoint): New function.
2197 * remote.c (remote_stopped_data_address): Change to new prototype
2198 and functionality.
2199 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
2200 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
2201 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
2202 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
2203 new i386_stopped_by_watchpoint function.
2204 (i386_stopped_by_watchpoint): New prototype.
2205 (i386_stoppped_data_address): Change to new prototype.
2206 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
2207 new ia64_stopped_by_watchpoint function.
2208 (ia64_stopped_by_watchpoint): New prototype.
2209 (ia64_stopped_data_address): Ditto.
2210
2211 2004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
2212
2213 * ada-typeprint.c (ada_print_type): Use int_string for printing
2214 modulus of modular type.
2215 * ada-lang.h (ada_modulus): Change return type to unsigned.
2216 * ada-lang.c (ada_language_arch_info): Correct type of
2217 string_char_type.
2218 (ada_modulus): Return unsigned result.
2219 (ada_lookup_symbol): Remove user disambiguation and modify comment
2220 accordingly.
2221
2222 2004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
2223
2224 Committed by Paul Hilfinger.
2225 * ada-lang.c (decode_packed_array): On big-endian targets,
2226 left-justify the value if it comes with a modular type.
2227
2228 2004-10-08 Joel Brobecker <brobecker@gnat.com>
2229
2230 Committed by Paul Hilfinger.
2231 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
2232 (is_name_suffix): Add support for "___JM" suffixes.
2233 (ada_check_typedef): Renames ada_completed_type.
2234 Update all users of CHECK_TYPEDEF, check_typedef, and
2235 ada_complete_type to call ada_check_typedef.
2236 * ada-typeprint.c: Likewise.
2237 * ada-valprint.c: Likewise.
2238
2239 2004-10-08 Corinna Vinschen <vinschen@redhat.com>
2240
2241 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
2242
2243 2004-10-08 Nick Roberts <nickrob@snap.net.nz>
2244
2245 * MAINTAINERS: Update e-mail address.
2246
2247 2004-10-07 Daniel Jacobowitz <dan@debian.org>
2248
2249 From Maciej W. Rozycki <macro@mips.com>:
2250 * mips-tdep.c (mips32_next_pc): Check the register's contents,
2251 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
2252
2253 2004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
2254
2255 * m32r-tdep.c (decode_prologue): Support functions written
2256 in assembler language. Recognize trap instructions as the
2257 end of prologue.
2258 (m32r_frame_unwind_cache): Ditto.
2259 (m32r_skip_prologue): Extend search limit. Quit analyzing
2260 prologue if pc's location is not readable.
2261
2262 2004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
2263
2264 * Makefile.in (.l.c): Do conversions of names of alloc and free
2265 functions that are done for .y.c files, plus special one
2266 for yy_flex_realloc. Also, correct missing-file tests here.
2267 * ada-lex.l (malloc, free): Remove macros.
2268 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
2269 xrealloc.
2270 (ada_flex_use): Dummy definition to remove warnings about unused
2271 functions.
2272 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
2273 to suppress warning.
2274
2275 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2276
2277 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
2278 RETURN_VALUE.
2279 (sh_return_value_fpu): Ditto for CPUs with FPU.
2280 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
2281 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
2282 Install sh_return_value_nofpu resp. sh_return_value_fpu as
2283 RETURN_VALUE functions.
2284
2285 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2286
2287 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
2288 (sh_pseudo_register_write): Ditto.
2289
2290 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2291
2292 * sh-tdep.c (IS_MACL_STS): New define.
2293 (IS_MOVI20): Ditto.
2294 (IS_MACL_LDS): Ditto.
2295 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
2296 instructions in prologue.
2297 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
2298 instructions in epilogue.
2299
2300 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2301
2302 * sh-tdep.c (SH_NUM_REGS): Define as 67.
2303 (sh_sh_register_name): Add eight empty register names.
2304 (sh_sh3_register_name): Ditto.
2305 (sh_sh3e_register_name): Ditto.
2306 (sh_sh2e_register_name): Ditto.
2307 (sh_sh2a_register_name): New function, defining SH2A register set.
2308 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
2309 in nofpu case.
2310 (sh_sh_dsp_register_name): Add eight empty register names.
2311 (sh_sh3_dsp_register_name): Ditto.
2312 (sh_sh4_register_name): Ditto.
2313 (sh_sh4_nofpu_register_name): Ditto.
2314 (sh_sh4al_dsp_register_name): Ditto.
2315 (sh2a_show_regs): New function.
2316 (sh2a_nofpu_show_regs): New function.
2317 (sh_sh2a_register_type): New function.
2318 (do_bank_register_info): New function.
2319 (sh_print_pseudo_register): Call do_bank_register_info.
2320 Call sh_print_pseudo_register for valid "bank" register.
2321 (sh_sh2a_register_sim_regno): New function.
2322 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
2323 Increment pseudo register count by one for all sh variants with
2324 pseudo registers to accomodate pseudo bank register.
2325 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
2326 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
2327 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
2328 Increment pseudo register numbers.
2329
2330 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2331
2332 * dwarf2read.c (read_subroutine_type): Call make_function_type
2333 instead of lookup_function_type.
2334
2335 2004-10-05 Jim Blandy <jimb@redhat.com>
2336
2337 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
2338 (Previous change missed some uses.)
2339
2340 2004-10-05 Andrew Cagney <cagney@gnu.org>
2341
2342 * target.h (deprecated_child_ops): Rename child_ops.
2343 * wince.c: Update copyright. Rename child_ops.
2344 * win32-nat.c: Rename child_ops.
2345 * target.c: Rename child_ops.
2346 * rs6000-nat.c: Rename child_ops.
2347 * linux-nat.c: Rename child_ops.
2348 * infttrace.c: Rename child_ops.
2349 * inftarg.c: Rename child_ops.
2350 * infptrace.c: Rename child_ops.
2351 * hppah-nat.c: Update copyright. Rename child_ops.
2352 * hpux-thread.c: Update copyright. Rename child_ops.
2353
2354 2004-10-05 Daniel Jacobowitz <dan@debian.org>
2355
2356 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
2357
2358 2004-10-05 Andrew Cagney <cagney@gnu.org>
2359
2360 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
2361
2362 2004-10-05 Daniel Jacobowitz <dan@debian.org>
2363
2364 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
2365 (die_ref_table): Remove.
2366 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
2367 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
2368 the usage of this type.
2369 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
2370 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
2371 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
2372 (dwarf2_create_include_psymtab): Update comment.
2373 (find_partial_die): Remove third argument. Remove unreachable call
2374 to error ().
2375 (dwarf2_find_containing_comp_unit): Update comments. Change one
2376 assertion to an error. Remove an unreachable error.
2377 (dwarf2_find_comp_unit): Update comments.
2378 (type_at_offset): Remove dead code.
2379 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
2380 (store_in_ref_table): Add CU argument.
2381 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
2382 inter-compilation-unit references.
2383 (load_full_comp_unit, process_full_comp_unit): New functions, based
2384 on psymtab_to_symtab_1.
2385 (psymtab_to_symtab_1): Use them.
2386 (dwarf2_add_dependence): New function.
2387 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
2388 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
2389 (partial_die_parent_scope, guess_structure_name): Update for changes
2390 to find_partial_die.
2391 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
2392 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
2393 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
2394 (read_die_and_children): Update call to store_in_ref_table.
2395 (do_free_die_list_cleanup): Remove.
2396 (fixup_partial_die): Update for changes to find_partial_die.
2397 (read_full_die): Handle queueing absolute references.
2398 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
2399 (dwarf2_attr, die_specification, die_type)
2400 (die_containing_type, dwarf2_extension): Update calls to
2401 follow_die_ref.
2402 (dump_die): Update DW_FORM_ref* handling.
2403 (dwarf2_get_ref_die_offset): Likewise.
2404 (free_one_comp_unit): Release the dies list.
2405 (dwarf2_mark_helper): New function.
2406 (dwarf2_mark): Use it.
2407
2408 2004-10-05 Mark Kettenis <kettenis@jive.nl>
2409
2410 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
2411 when writing to memory.
2412
2413 2004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
2414
2415 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
2416 (m32r_extract_struct_value_address): Delete function.
2417 (m32r_return_value): New function.
2418 (m32r_gdbarch_init): Instead of store_return_value,
2419 extract_return_value, deprecated_extract_struct_value_address
2420 and deprecated_use_struct_convention, set return_value.
2421
2422 2004-10-03 Daniel Jacobowitz <dan@debian.org>
2423
2424 * dwarf2read.c (read_subrange_type): Add comment for variable
2425 sized arrays.
2426
2427 2004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
2428
2429 * Makefile.in (.l.c): Modify rule for compatibility with recent
2430 versions of flex, and remove most command-line options.
2431 * ada-lex.l: Add %options line in place of -I -i and -s command-line
2432 options.
2433
2434 2004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
2435
2436 Turn on initial Ada support (mainly expression evaluation).
2437
2438 * Makefile.in (SFILES): Remove ada-tasks.c.
2439 (HFILES_NO_SRCDIR): Add ada-lang.h.
2440 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
2441 (YYOBJ): Add ada-exp.o.
2442 (rule .l.c): Generalize to not mention ada.
2443 * symtab.c: Include ada-lang.h.
2444 (symbol_natural_name, symbol_demangled_name)
2445 (symbol_search_name): Add Ada case.
2446
2447 2004-10-01 Andrew Cagney <cagney@gnu.org>
2448
2449 * Makefile.in (COMMON_OBS): Add inf-child.o.
2450 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
2451 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2452 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2453 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
2454 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
2455 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
2456 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
2457 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
2458 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2459 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2460 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
2461 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
2462 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
2463
2464 * target.c (xfer_using_stratum): Change return type to LONGEST.
2465 On each iteration offset, readbuf and writebuf.
2466 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
2467 partial_length, and read/modify/write predicate, update comments.
2468 Pass buffer.word to ptrace write.
2469
2470 2004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2471
2472 * symfile.c (init_filename_language_table): Add extensions for
2473 Ada.
2474 * defs.h (enum language): Add language_ada.
2475 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
2476 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
2477 (add_symbols_from_enclosing_procs): Make a no-op for now.
2478 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
2479 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
2480 (find_line_in_linetable, find_next_line_in_linetable)
2481 (read_all_symtabs, is_plausible_func_for_line)
2482 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
2483 (is_runtime_sym_defined, check_size): Remove declaration.
2484 (function_name_from_pc, ada_translate_error_message)
2485 (ada_lookup_minimal_symbol): Remove definition.
2486 (ada_add_block_symbols): Remove useless label.
2487 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
2488 useless declaration.
2489 (ada_is_exception_sym): Likewise.
2490
2491 2004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
2492
2493 Add m32r-linux support.
2494 * configure.tgt: Add m32r*-*-linux*.
2495 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
2496 and m32r-linux-tdep.c.
2497 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
2498 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
2499 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
2500 m32r-linux-tdep.c.
2501 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
2502 config/m32r/linux.mh, config/m32r/linux.mt,
2503 config/m32r/nm-linux.h: New files.
2504
2505 2004-09-30 Joel Brobecker <brobecker@gnat.com>
2506
2507 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
2508 (mips32_fetch_instruction): Remove, unused.
2509
2510 2004-09-30 Joel Brobecker <brobecker@gnat.com>
2511
2512 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
2513 conditions that will always be true.
2514
2515 2004-09-30 Mark Kettenis <kettenis@gnu.org>
2516
2517 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
2518 (vaxbsd_fetch_inferior_registers): Rename from
2519 fetch_inferior_registers. Make static.
2520 (vaxbsd_store_inferior_registers): Rename from
2521 store_inferior_registers. Make static.
2522 (_initialize_vaxbsd_nat): Construct and add target vector.
2523 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
2524 inftarg.o. Add inf-child.o and inf-ptrace.o.
2525 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
2526 inftarg.o. Add inf-child.o and inf-ptrace.o.
2527 (NAT_FILE): Remove.
2528 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
2529 inftarg.o. Add inf-child.o and inf-ptrace.o.
2530 (NAT_FILE): Remove.
2531 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2532
2533 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
2534 (m88kbsd_fetch_inferior_registers): Rename from
2535 fetch_inferior_registers. Make static.
2536 (m88kbsd_store_inferior_registers): Rename from
2537 store_inferior_registers. Make static.
2538 (_initialize_m88kbsd_nat): New prototype and function.
2539 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
2540 inftarg.o. Add inf-child.o and inf-ptrace.o.
2541 (NAT_FILE): Remove.
2542 * Makefile.in (m88kbsd-nat.o): Update dependencies.
2543
2544 2004-09-30 Andrew Cagney <cagney@gnu.org>
2545
2546 * target.c (target_xfer_partial): New function.
2547 (target_read_memory_partial, target_write_memory_partial)
2548 (default_xfer_partial, target_read_partial, target_write_partial)
2549 (xfer_using_stratum): Use.
2550 (debug_to_xfer_partial): Delete function.
2551 (setup_target_debug): Do not override to_xfer_partial.
2552
2553 2004-09-30 Mark Kettenis <kettenis@chello.nl>
2554
2555 * fork-child.c: Update copyright year. Fix coding style.
2556
2557 2004-09-29 Mark Kettenis <kettenis@gnu.org>
2558
2559 * defs.h (msavestring, mstrsave): Remove prototypes.
2560 * utils.c (msavestring, mstrsave): Remove functions.
2561 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
2562 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
2563 of mstrsave.
2564 * source.c (find_and_open_source): Use xstrdup instead of
2565 mstrsave.
2566
2567 2004-09-30 Andrew Cagney <cagney@gnu.org>
2568
2569 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
2570 (inf_ptrace_xfer_memory): Delete.
2571 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
2572 (target_read_memory, target_write_memory): Use xfer_using_stratum
2573 when target_xfer_partial_p.
2574 (debug_target): Move to start of file.
2575 (target_read_memory_partial, target_write_memory_partial): Use
2576 to_xfer_partial when target_xfer_partial_p.
2577
2578 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
2579 inf_ptrace_xfer_memory with equivalent code.
2580 * inftarg.c (child_xfer_partial): When performing a write, pass
2581 writebuf to child_xfer_memory.
2582
2583 * target.c (target_read_string): Use target_read_memory instead of
2584 target_xfer_memory.
2585
2586 2004-09-29 Andrew Cagney <cagney@gnu.org>
2587
2588 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
2589 the address of status.
2590
2591 * infptrace.c (ptrace_wait): Mention problem with HPUX.
2592 (kill_inferior): Inline ptrace_wait call.
2593 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
2594 * inftarg.c (child_wait): Inline ptrace_wait call.
2595
2596 * target.h (struct target_ops): Delete field to_post_wait.
2597 (target_post_wait): Delete macro.
2598 (child_post_wait): Delete declaration.
2599 * target.c (update_current_target, update_current_target)
2600 (debug_to_post_wait, setup_target_debug): Delete functions and
2601 references.
2602 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
2603 * inftarg.c (child_post_wait): Delete.
2604 (init_child_ops): Do not set to_post_wait.
2605 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
2606 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
2607 * inf-child.c (inf_child_post_wait): Delete.
2608 (inf_child_target): Do not set to_post_wait.
2609 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
2610 (inf_ptrace_target): Do not set to_post_wait.
2611
2612 * wince.c (child_ops): Delete.
2613 * win32-nat.c (child_ops): Delete.
2614
2615 * inftarg.c (inftarg_set_find_memory_regions)
2616 (inftarg_set_make_corefile_notes): Delete functions.
2617 (_initialize_linux_nat): Inline calls.
2618
2619 * target.h (child_ops): Declare.
2620 * inftarg.c (child_ops): Move from here ...
2621 * target.c (child_ops): ... to here.
2622 * wince.c (child_ops): Delete extern declaration.
2623 * win32-nat.c (child_ops): Delete extern declaration.
2624 * linux-nat.c (child_ops): Delete extern declaration.
2625 * hpux-thread.c (child_ops): Delete extern declaration.
2626
2627 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2628
2629 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
2630
2631 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2632
2633 * configure.in: Only set host_makefile_frag when building a native
2634 debugger.
2635 * configure: Regenerate.
2636
2637 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
2638 for OpenBSD ELF.
2639
2640 2004-09-28 Andrew Cagney <cagney@gnu.org>
2641
2642 Problem identified by Paul Hilfinger.
2643 * Makefile.in (ada_lex_c): Define.
2644 (ada-lex.o): Delete rule.
2645
2646 * linux-proc.c: Delete file.
2647 * Makefile.in: Update.
2648 * config/sparc/linux64.mh (NATDEPFILES):
2649 * config/sparc/linux.mh (NATDEPFILES): Update.
2650 * config/s390/s390.mh (NATDEPFILES): Update.
2651 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
2652 * config/powerpc/linux.mh (NATDEPFILES): Update.
2653 * config/pa/linux.mh (NATDEPFILES): Update.
2654 * config/mips/linux.mh (NATDEPFILES): Update.
2655 * config/m68k/linux.mh (NATDEPFILES): Update.
2656 * config/ia64/linux.mh (NATDEPFILES): Update.
2657 * config/i386/linux64.mh (NATDEPFILES): Update.
2658 * config/i386/linux.mh (NATDEPFILES): Update.
2659 * config/arm/linux.mh (NATDEPFILES): Update.
2660 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
2661 * linux-nat.c: Update copyright. Include <sys/param.h>,
2662 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
2663 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
2664 (O_LARGEFILE): Possibly define.
2665 (_initialize_linux_nat, linux_proc_pending_signals)
2666 (add_line_to_sigset, linux_proc_xfer_memory)
2667 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
2668 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
2669 (struct linux_corefile_thread_data)
2670 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
2671 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
2672
2673 2004-09-16 Andrew Cagney <cagney@gnu.org>
2674
2675 * lin-lwp.c: Delete file.
2676 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
2677 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
2678 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
2679 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
2680 (linux_nat_attach, detach_callback, linux_nat_detach)
2681 (resume_callback, resume_clear_callback, linux_nat_resume)
2682 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
2683 (stop_wait_callback, linux_nat_has_pending, flush_callback)
2684 (status_callback, running_callback, count_events_callback)
2685 (select_singlestep_lwp_callback, select_event_lwp_callback)
2686 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
2687 (child_wait, stop_and_resume_callback, linux_nat_wait)
2688 (kill_callback, kill_wait_callback, linux_nat_kill)
2689 (linux_nat_create_inferior, linux_nat_mourn_inferior)
2690 (linux_nat_xfer_memory, linux_nat_thread_alive)
2691 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
2692 (_initialize_linux_nat): New functions.
2693 * Makefile.in: Update all dependencies.
2694 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2695 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2696 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
2697 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2698 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2699 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2700 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2701 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2702 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2703 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2704 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2705 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2706 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2707
2708 2004-09-27 Mark Kettenis <kettenis@gnu.org>
2709
2710 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
2711 config/i386/obsd64.mh (NAT_FILE): Remove variable.
2712
2713 * configure.in: Don't comment out NATDEPFILES in the generated
2714 Makefile if NAT_FILE is unset.
2715 * configure: Regenerate.
2716
2717 2004-09-27 Andrew Cagney <cagney@gnu.org>
2718
2719 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
2720 (insert_step_resume_breakpoint): Delete.
2721 (insert_step_resume_breakpoint_at_frame): New function.
2722 (insert_step_resume_breakpoint_at_sal): New function.
2723 (handle_inferior_event, step_into_function)
2724 (insert_step_resume_breakpoint): Simplify by using same.
2725
2726 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
2727
2728 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2729
2730 * fbsd-proc.c: Remove file.
2731 * Makefile.in (fbsd-proc.o): Remove dependency.
2732
2733 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
2734 code together.
2735
2736 * config/i386/nm-fbsd64.h: Remove file.
2737 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2738
2739 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2740
2741 * amd64-nat.h: Update copyright year.
2742 (amd64bsd_target): New prototype.
2743 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
2744 (amd64bsd_target): New function.
2745 (amd64bsd_fetch_inferior_registers): Rename from
2746 fetch_inferior_registers. Make static.
2747 (amd64bsd_store_inferior_registers): Rename from
2748 store_inferior_registers. Make static.
2749 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
2750 (_initialize_amd64fbsd_nat): Construct and add target vector.
2751 * amd64nbsd-nat.o: Include "target.h".
2752 (_initialize_amd64nbsd_nat): Construct and add target vector.
2753 * amd64obsd-nat.c: Include "target.h".
2754 (_initialize_amd64obsd_nat): Construct and add target vector.
2755 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
2756 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
2757 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
2758 fbsd-nat.o.
2759 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
2760 Remove infptrace.o and inftarg.o. Add inf-child.o and
2761 inf-ptrace.o.
2762 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
2763 (amd64obsd-nat.o): Update dependencies.
2764
2765 2004-09-25 Mark Kettenis <kettenis@gnu.org>
2766
2767 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
2768 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
2769 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
2770 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
2771 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
2772
2773 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
2774 Inline attach call.
2775 (inf_ptrace_detach): Inline detach call.
2776
2777 * configure.in: Check for waddstr instead of mvwaddstr when
2778 searching for curses library. Check for wborder.
2779 * configure, config.in: Regenerate.
2780 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
2781 available.
2782
2783 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
2784
2785 2004-09-24 Robert Picco <Robert.Picco@hp.com>
2786
2787 Committed by Andrew Cagney.
2788 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
2789 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
2790 configuration.
2791 (fetch_register_using_p): Implement 'p' packet. Based on code by
2792 Fernando Nasser.
2793 (remote_fetch_registers): Call fetch_register_using_p.
2794 (init_all_packet_configs, show_remote_cmd)
2795 (_initialize_remote): Add p-packet.
2796
2797 2004-09-24 Mark Kettenis <kettenis@gnu.org>
2798
2799 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
2800 instead of call_ptrace. Call wait directly instead of
2801 ptrace_wait.
2802 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
2803 (inf_ptrace_wait): Inline ptrace_wait call.
2804
2805 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2806
2807 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
2808 rolled back instead.
2809
2810 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2811
2812 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
2813 the new argument order.
2814
2815 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
2816
2817 * MAINTAINERS: Remove "broken" from XStormy16 entry.
2818 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
2819 (struct gdbarch_tdep): Remove.
2820 (struct xstormy16_frame_cache): New frame cache structure.
2821 (xstormy16_register_byte, xstormy16_register_raw_size)
2822 (xstormy16_reg_virtual_type, xstormy16_register_type)
2823 (xstormy16_push_arguments, xstormy16_push_return_address)
2824 (xstormy16_pop_frame, xstormy16_store_struct_return)
2825 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
2826 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
2827 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
2828 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
2829 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
2830 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
2831 (xstormy16_use_struct_convention): Drop gcc_p parameter.
2832 (xstormy16_extract_return_value, xstormy16_store_return_value):
2833 Regcachify. Drop useless struct convention handling.
2834 (xstormy16_register_type, xstormy16_return_value)
2835 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
2836 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
2837 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
2838 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
2839 (xstormy16_unwind_sp, xstormy16_unwind_pc)
2840 (xstormy16_unwind_dummy_id) : New functions.
2841 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
2842 of xstormy16_scan_prologue.
2843 (xstormy16_frame_unwind): New frame_unwind structure.
2844 (xstormy16_frame_base): New frame_base structure.
2845 (xstormy16_gdbarch_init): Accomodate all of the above changes.
2846 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
2847
2848 2004-09-22 Mark Kettenis <kettenis@gnu.org>
2849
2850 * language.c (language_gdbarch_post_init): Fix off-by one error.
2851
2852 2004-09-21 Daniel Jacobowitz <dan@debian.org>
2853
2854 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
2855 (struct dwarf2_offset_and_type): New.
2856 (set_die_type, reset_die_and_siblings_types, get_die_type)
2857 (offset_and_type_hash, offset_and_type_eq): New functions.
2858 (read_structure_type, read_enumeration_type, read_array_type)
2859 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
2860 (read_tag_reference_type, read_tag_const_type)
2861 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
2862 (read_typedef, read_base_type, read_subrange_type): Use
2863 set_die_type.
2864
2865 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2866
2867 * Makefile.in (dwarf2read.o): Update dependencies.
2868 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
2869 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
2870 and read_in_chain.
2871 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
2872 mark, and has_form_ref_addr.
2873 (struct dwarf2_per_cu_data): New.
2874 (dwarf2_max_cache_age): New.
2875 (dwarf2_build_psymtabs_hard): Free cached compilation units
2876 after loading. Create and manage the list of compilation units.
2877 Remove unnecessary NULL initialization. Fix indentation.
2878 (psymtab_to_symtab_1): Initialize all of CU.
2879 (dwarf2_read_abbrevs): Set has_form_ref_addr.
2880 (find_partial_die): Use dwarf2_find_containing_comp_unit
2881 and load_comp_unit.
2882 (free_stack_comp_unit): Update comments. Clear the per-cu
2883 pointer. Handle aging.
2884 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
2885 (age_cached_comp_units, free_one_cached_comp_unit)
2886 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
2887 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
2888 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
2889 (show_dwarf2_cmd): New.
2890 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
2891 and "maint show dwarf2 max-cache-age".
2892 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
2893 externs.
2894 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
2895 global.
2896
2897 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
2898
2899 * dwarf2read.c (typename_concat): Change prototype to accept obstack
2900 and dwarf2_cu struct pointer as arguments. Change function to use
2901 obstack if provided and use dwarf2_cu to determine language-specific
2902 separator.
2903 (partial_die_parent_scope): Change comment to include java. Use
2904 new version of typename_concat instead of obconcat.
2905 (partial_die_full_name): Use typename_concat.
2906 (read_namespace): Ditto.
2907 (read_enumeration_type): Use typename_concat instead of obconcat.
2908 (new_symbol): Ditto.
2909 (add_partial_symbol): Enhance tests for C++ to also test for Java.
2910 (guess_structure_name): Ditto.
2911 (read_subroutine_type): Ditto.
2912 (read_structure_type): Ditto.
2913 (is_vtable_name): Add Java support.
2914 (determine_class_name): Switch to new typename_concat call.
2915 (determine_prefix): Switch to new typename_concat call.
2916 * jv-exp.y (FuncStart): New pattern.
2917 (MethodInvocation): Add support for simple function calls. Change
2918 warning message for other forms of inferior call currently not
2919 supported.
2920 * valarith.c (value_subscript): Treat an array with upper-bound
2921 of -1 as unknown size.
2922
2923 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2924
2925 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
2926 (lookup_partial_symtab): Use symtab_to_fullname.
2927
2928 2004-09-19 Jim Blandy <jimb@redhat.com>
2929
2930 * minsyms.c (lookup_minimal_symbol): Doc fix.
2931
2932 2004-09-20 Andrew Cagney <cagney@gnu.org>
2933
2934 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
2935 CHILD_RESUME.
2936 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
2937 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
2938 KILL_INFERIOR.
2939 * infptrace.c: Update.
2940
2941 2004-09-19 Daniel Jacobowitz <dan@debian.org>
2942
2943 * symtab.c (output_source_filename): Mark first argument as const.
2944 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
2945 for "info sources" output.
2946
2947 2004-09-20 Mark Kettenis <kettenis@gnu.org>
2948
2949 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
2950 <machine/vmparam.h>.
2951 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
2952 (register_u_addr): Remove prototype.
2953
2954 2004-09-19 Mark Kettenis <kettenis@gnu.org>
2955
2956 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
2957 (i386bsd_fetch_inferior_registers): Rename from
2958 fetch_inferior_registers. Make static.
2959 (i386bsd_store_inferior_registers): Rename from
2960 store_inferior_registers. Make static.
2961 (i386bsd_target): New function.
2962 * i386bsd-nat.h: New file.
2963 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
2964 "i386bsd-nat.h".
2965 (i386fbsd_resume): Rename from child_resume. Make static.
2966 (_initialize_i386fbsd_nat): Construct and add target vector.
2967 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
2968 (_initialize_i386nbsd_nat): Construct and add target vector.
2969 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
2970 Remove defines.
2971 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
2972 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
2973 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
2974 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2975 (LOADLIBES): New variable.
2976 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
2977 inf-ptrace.o. Remove inftarg.o.
2978 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
2979 inf-ptrace.o. Remove inftarg.o.
2980 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
2981 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2982 (LOADLIBES): New variable.
2983 * Makefile.in (i386bsd_nat_h): New variable.
2984 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
2985 dependencies.
2986
2987 * sparc64nbsd-tdep.c: Include "objfiles.h".
2988 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
2989 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2990 svr4_lp64_fetch_link_map_offsets.
2991 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
2992 "nbsd-tdep.h".
2993 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
2994 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
2995 svr4_lp64_fetch_link_map_offsets.
2996 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
2997 dependencies.
2998
2999 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
3000 * fbsd-nat.h: New file.
3001 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
3002 (fbsd_nat_h): New variable.
3003 (fbsd-nat.o): New dependency.
3004
3005 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
3006 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
3007
3008 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
3009 comment.
3010
3011 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
3012
3013 * ada-exp.y (type_int): New function to add layer of abstraction
3014 around references to expression types.
3015 (type_long): Ditto.
3016 (type_long_long): Ditto.
3017 (type_float): Ditto.
3018 (type_double): Ditto.
3019 (type_long_double): Ditto.
3020 (type_char): Ditto.
3021 (type_system_address): Ditto.
3022 (simple_exp): Use type_* functions in place of builtin_*
3023 variables.
3024 (exp): Ditto.
3025 (write_var_from_name): Ditto.
3026 (write_object_renaming): Ditto.
3027 * ada-lang.c (ada_create_fundamental_type): Remove redundant
3028 declaration.
3029 (build_ada_types): Remove, replacing with...
3030 (ada_language_arch_info): New function to initialize primitive
3031 type vector in language_arch_info.
3032 (ada_array_length): Remove use of builtin_type_ada_int.
3033 (value_pos_atr): Ditto.
3034 (ada_evaluate_subexp): Ditto.
3035 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
3036 builtin_type_ada_long_long, builtin_type_ada_char,
3037 builtin_type_ada_float, builtin_type_ada_double,
3038 builtin_type_ada_long_double, builtin_type_ada_natural,
3039 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
3040 (ada_builtin_types): Remove.
3041 (ada_language_defn): Remove entries for la_builtin_type_vector and
3042 string_char_type and use ada_language_arch_info.
3043 (_initialize_ada_language): Do type-vector initialization along
3044 the lines of c-lang.c.
3045 (ada_create_fundamental_type): Break up line.
3046 (ada_dump_symtab): Remove unused function.
3047 (enum ada_primitive_types): Define.
3048 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
3049 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
3050 builtin_type_ada_float, builtin_type_ada_double,
3051 builtin_type_ada_long_double, builtin_type_ada_natural,
3052 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
3053 * ada-lex.l: Use type_* functions in place of builtin_* variables.
3054 (processInt): Ditto.
3055 (processReal): Ditto.
3056 (name_lookup): Ditto.
3057 * ada-typeprint.c (print_range): Use builtin_type_int, not
3058 builtin_type_ada_int.
3059
3060 2004-09-18 Mark Kettenis <kettenis@gnu.org>
3061
3062 * i386-tdep.c (i386_register_name): Rename regno to regnum.
3063
3064 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
3065 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
3066 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
3067 * configure.in: Improve checks for curses library by checking for
3068 mvwaddstr instead of initscr. Drop HP curses in favour of
3069 standard curses on HP-UX.
3070 * configure: Regenerated.
3071
3072 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
3073
3074 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
3075 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
3076 Minor formatting changes.
3077 (empty_array): Slight rewrite for formatting.
3078 (emit_char,parse,ada_language_defn,build_ada_types,
3079 ada_is_exception_sym, _initialize_ada_language): Move
3080 definitions around.
3081 (ada_dump_symtab): Remove unused definition.
3082 (ada_maybe_exception_partial_symbol): Remove unused definition.
3083
3084 2004-09-16 Andrew Cagney <cagney@gnu.org>
3085
3086 * inf-child.c: Include "gdb_string.h".
3087 (inf_child_core_file_to_sym_file): Delete.
3088 (inf_child_target): Set to_fetch_registers and to_store_registers.
3089 * inf-ptrace.c: Include "gdb_string.h".
3090 * Makefile.in: Update all dependencies.
3091
3092 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
3093 problem.
3094
3095 2004-09-14 Joel Brobecker <brobecker@gnat.com>
3096
3097 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
3098 call to heuristic_proc_desc. Remove code that became redundant
3099 as a consequence.
3100 (read_next_frame_reg): Remove special case for SP_REGNUM.
3101 (set_reg_offset): Fix small typo.
3102 (reset_saved_regs): New procedure.
3103 (mips32_heuristic_proc_desc): No longer compute a fake
3104 procedure descriptor. Compute the full frame cache instead.
3105 Some minor comment reformatting.
3106
3107 2004-09-14 Andrew Cagney <cagney@gnu.org>
3108
3109 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
3110 maintainer.
3111
3112 * thread-db.c (thread_db_new_objfile): Assume that there is a
3113 child process.
3114
3115 2004-09-13 Jim Blandy <jimb@redhat.com>
3116
3117 * valops.c (value_assign): Move 'buffer' to the enclosing block,
3118 so that its storage isn't referenced after its lifetime ends.
3119
3120 * valops.c (value_assign): 'use_buffer' is initialized to zero,
3121 and never assigned to. Delete it, and the 'if (use_buffer)'
3122 clauses. Delete 'raw_buffer', since it is now unused.
3123
3124 2004-09-13 Andrew Cagney <cagney@gnu.org>
3125
3126 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
3127 * configure: Re-generate.
3128 * nlm/Makefile.in (TAGS): Update.
3129 * Makefile.in (TAGS): Update.
3130 * config/vax/nbsd.mt (TM_FILE): Update.
3131 * config/sparc/vxworks.mt (TM_FILE): Update.
3132 * config/sparc/sol2.mt (TM_FILE): Update.
3133 * config/sparc/sol2-64.mt (TM_FILE): Update.
3134 * config/sparc/obsd64.mt (TM_FILE): Update.
3135 * config/sparc/obsd.mt (TM_FILE): Update.
3136 * config/sparc/nbsd64.mt (TM_FILE): Update.
3137 * config/sparc/nbsd.mt (TM_FILE): Update.
3138 * config/sparc/linux64.mt (TM_FILE): Update.
3139 * config/sparc/linux.mt (TM_FILE): Update.
3140 * config/sparc/fbsd.mt (TM_FILE): Update.
3141 * config/sh/wince.mt (TM_FILE): Update.
3142 * config/sh/nbsd.mt (TM_FILE): Update.
3143 * config/sh/linux.mt (TM_FILE): Update.
3144 * config/sh/embed.mt (TM_FILE): Update.
3145 * config/s390/s390.mt (TM_FILE): Update.
3146 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
3147 * config/rs6000/rs6000.mt (TM_FILE): Update.
3148 * config/rs6000/aix4.mt (TM_FILE): Update.
3149 * config/powerpc/vxworks.mt (TM_FILE): Update.
3150 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
3151 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
3152 * config/powerpc/obsd.mt (TM_FILE): Update.
3153 * config/powerpc/nbsd.mt (TM_FILE): Update.
3154 * config/powerpc/linux.mt (TM_FILE): Update.
3155 * config/powerpc/aix.mt (TM_FILE): Update.
3156 * config/pa/obsd.mt (TM_FILE): Update.
3157 * config/pa/linux.mt (TM_FILE): Update.
3158 * config/pa/hppahpux.mt (TM_FILE): Update.
3159 * config/pa/hppa64.mt (TM_FILE): Update.
3160 * config/pa/hppa.mt (TM_FILE): Update.
3161 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
3162 * config/mips/wince.mt (TM_FILE): Update.
3163 * config/mips/vxmips.mt (TM_FILE): Update.
3164 * config/mips/nbsd.mt (TM_FILE): Update.
3165 * config/mips/linux.mt (TM_FILE): Update.
3166 * config/mips/irix6.mt (TM_FILE): Update.
3167 * config/mips/irix5.mt (TM_FILE): Update.
3168 * config/mips/embed.mt (TM_FILE): Update.
3169 * config/m68k/vxworks68.mt (TM_FILE): Update.
3170 * config/m68k/st2000.mt (TM_FILE): Update.
3171 * config/m68k/os68k.mt (TM_FILE): Update.
3172 * config/m68k/obsd.mt (TM_FILE): Update.
3173 * config/m68k/nbsd.mt (TM_FILE): Update.
3174 * config/m68k/monitor.mt (TM_FILE): Update.
3175 * config/m68k/linux.mt (TM_FILE): Update.
3176 * config/m68k/cisco.mt (TM_FILE): Update.
3177 * config/ia64/linux.mt (TM_FILE): Update.
3178 * config/ia64/aix.mt (TM_FILE): Update.
3179 * config/ia64/ia64.mt (TM_FILE): Update.
3180 * config/i386/vxworks.mt (TM_FILE): Update.
3181 * config/i386/obsd64.mt (TM_FILE): Update.
3182 * config/i386/obsd.mt (TM_FILE): Update.
3183 * config/i386/nto.mt (TM_FILE): Update.
3184 * config/i386/nbsd64.mt (TM_FILE): Update.
3185 * config/i386/nbsd.mt (TM_FILE): Update.
3186 * config/i386/linux64.mt (TM_FILE): Update.
3187 * config/i386/linux.mt (TM_FILE): Update.
3188 * config/i386/i386sol2.mt (TM_FILE): Update.
3189 * config/i386/i386lynx.mt (TM_FILE): Update.
3190 * config/i386/fbsd64.mt (TM_FILE): Update.
3191 * config/i386/fbsd.mt (TM_FILE): Update.
3192 * config/i386/cygwin.mt (TM_FILE): Update.
3193 * config/h8300/h8300.mt (TM_FILE): Update.
3194 * config/frv/frv.mt (TM_FILE): Update.
3195 * config/cris/cris.mt (TM_FILE): Update.
3196 * config/arm/wince.mt (TM_FILE): Update.
3197 * config/arm/nbsd.mt (TM_FILE): Update.
3198 * config/arm/linux.mt (TM_FILE): Update.
3199 * config/arm/embed.mt (TM_FILE): Update.
3200 * config/alpha/nbsd.mt (TM_FILE): Update.
3201 * config/alpha/fbsd.mt (TM_FILE): Update.
3202 * config/alpha/alpha.mt (TM_FILE): Update.
3203 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
3204 * config/alpha/alpha-linux.mt (TM_FILE): Update.
3205
3206 Eliminate event_loop_p, always has the value 1.
3207 * defs.h (event_loop_p): Delete macro.
3208 * breakpoint.c (until_break_command): Simplify.
3209 * utils.c (prompt_for_continue): Simplify.
3210 * tracepoint.c (read_actions): Simplify.
3211 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
3212 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
3213 (set_prompt, init_main): Simplify.
3214 (init_signals, disconnect): Delete, unused.
3215 * remote.c (remote_async_resume)
3216 (extended_remote_async_create_inferior): Simplify.
3217 * mi/mi-interp.c (mi_input): Delete, unused.
3218 (mi_interpreter_resume, mi_command_loop): Simplify.
3219 * interps.c (current_interp_command_loop): Simplify.
3220 * infrun.c (proceed): Simplify.
3221 * infcmd.c (run_command, continue_command, step_1, jump_command)
3222 (until_command, advance_command, finish_command)
3223 (interrupt_target_command): Simplify.
3224 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
3225
3226 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3227 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3228 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3229 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3230 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3231 * mips-tdep.c (mips_dump_tdep): Do not print same.
3232
3233 2004-09-12 Andrew Cagney <cagney@gnu.org>
3234
3235 * valprint.c (print_longest): Use fputs_filtered. Make "val"
3236 const.
3237 * Makefile.in (valprint.o): Delete explict rule.
3238
3239 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
3240 reported by Dave Anderson.
3241
3242 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
3243
3244 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
3245
3246 2004-09-12 Salvador E. Tropea <set@users.sf.net>
3247 Andrew Cagney <cagney@gnu.org>
3248
3249 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
3250 (mi_cmd_data_list_register_values)
3251 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
3252 the register number computation.
3253
3254 2004-09-12 Andrew Cagney <cagney@gnu.org>
3255
3256 * ppcnbsd-nat.c: Include "inf-ptrace.h".
3257 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
3258 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
3259 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
3260 target.
3261 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
3262 inf-ptrace.o and inf-child.o.
3263 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
3264 * Makefile.in: Update dependencies.
3265
3266 2004-09-11 Andrew Cagney <cagney@gnu.org>
3267
3268 * language.c (hex_string, hex_string_custom): Move from here ...
3269 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
3270 (CELLSIZE): Increase to 50.
3271 * language.h (hex_string, hex_string_custom): Move from here ...
3272 * defs.h: ... to here.
3273 * Makefile.in: Update all dependencies.
3274
3275 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
3276
3277 * language.c (local_hex_format_custom): Remove.
3278 (local_hex_string): Rename to hex_string, use C format, and move to
3279 utils.c
3280 (local_hex_string_custom): Rename to hex_string_custom and change
3281 interface. Now uses C format. Move to utils.c
3282 (local_octal_format_custom): Remove.
3283 (local_decimal_format_custom): Remove.
3284 (unknown_language_defn): Remove language-specific number
3285 formatting entries.
3286 (auto_language_defn): Ditto.
3287 (local_language_defn): Ditto.
3288 * language.h (struct language_format_info): Delete declaration.
3289 (struct language_defn): Remove language_format_info fields
3290 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
3291 (local_binary_format): Remove macro.
3292 (local_binary_format_prefix): Remove macro.
3293 (local_binary_format_specifier): Remove macro.
3294 (local_binary_format_suffix): Remove macro.
3295 (local_octal_format): Remove macro.
3296 (local_octal_format_prefix): Remove macro.
3297 (local_octal_format_specifier): Remove macro.
3298 (local_octal_format_suffix): Remove macro.
3299 (local_decimal_format): Remove macro.
3300 (local_decimal_format_prefix): Remove macro.
3301 (local_decimal_format_specifier): Remove macro.
3302 (local_decimal_format_suffix): Remove macro.
3303 (local_hex_format): Remove macro.
3304 (local_hex_format_prefix): Remove macro.
3305 (local_hex_format_specifier): Remove macro.
3306 (local_hex_format_suffix): Remove macro.
3307 (local_decimal_format_custom): Remove.
3308 (local_octal_format_custom): Remove.
3309 (local_hex_format_custom): Remove.
3310 (local_hex_string): Rename to hex_string and move to defs.h.
3311 (local_hex_string_custom): Rename to hex_string_custom, change
3312 interface, and move to defs.h.
3313 * utils.c: (int_string): New function.
3314 (hex_string): New function (from language.c).
3315 (hex_string_custom): New function (from language.c).
3316 (octal2str): New function.
3317 (decimal2str): Add width parameter.
3318 (paddr_u): Use new decimal2str interface.
3319 (paddr_d): Ditto.
3320 * defs.h (hex_string): Declare.
3321 (hex_string_custom): Declare.
3322 (int_string): Declare.
3323 * printcmd.c (print_scalar_formatted): Remove localized binary
3324 formatting.
3325 * valprint.c (print_longest): Use int_string.
3326 (print_floating): Use C hex format.
3327 (print_hex_chars): Ditto.
3328 (print_binary_chars): Remove language-specific formatting.
3329 (print_octal_chars): Use C octal format.
3330 (print_decimal_chars): Delocalize format.
3331 (print_decimal): Remove.
3332 * ada-lang.c (ada_language_defn): Remove language-specific number
3333 formatting entries.
3334 * p-lang.c (pascal_language_defn): Ditto.
3335 * c-lang.c (c_language_defn): Ditto.
3336 (cplus_language_defn): Ditto.
3337 (asm_language_defn): Ditto.
3338 (minimal_language_defn): Ditto.
3339 * f-lang.c (f_language_defn): Ditto.
3340 * jv-lang.c (java_language_defn): Ditto.
3341 * m2-lang.c (m2_language_defn): Ditto.
3342 * scm-lang.c (scm_language_defn): Ditto.
3343 * objc-lang.c (objc_language_defn): Ditto.
3344 * memattr.c (mem_info_command): Use renamed hex_string_custom with
3345 new interface.
3346 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
3347 * ui-out.c (ui_out_field_core_addr): Ditto.
3348 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
3349 * exec.c (print_section_info): Ditto.
3350 * i387-tdep.c (print_i387_status_word): Ditto.
3351 (print_i387_control_word): Ditto.
3352 (i387_print_float_info): Ditto.
3353 * maint.c (maint_print_section_info): Ditto.
3354 * solib.c (info_sharedlibrary_command): Ditto.
3355 * somsolib.c (som_sharedlibrary_info_command): Ditto.
3356 * symtab.c (print_msymbol_info): Ditto.
3357 * tracepoint.c (tracepoints_info): Ditto.
3358 * solib-frv.c (lm_base): Ditto.
3359 (frv_current_sos): Ditto.
3360 (enable_break2): Ditto.
3361 (enable_break): Ditto.
3362 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
3363 (process_one_symbol): Ditto.
3364 * infcmd.c (program_info): Ditto.
3365 * mdebugread.c (parse_partial_symbols): Ditto.
3366 * symfile.c (add_symbol_file_command): Ditto.
3367 * cli/cli-cmds.c (edit_command): Ditto.
3368 (list_command): Ditto.
3369 * infcall.c (call_function_by_hand): Ditto.
3370 * remote-vx.c (vx_run_files_info): Ditto.
3371 (vx_wait): Ditto.
3372 (vx_attach): Ditto.
3373 (vx_detach): Ditto.
3374 (vx_kill): Ditto.
3375 * aix-thread.c (pdc_symbol_addrs): Ditto.
3376 (pdc_read_regs): Ditto.
3377 (pdc_write_regs): Ditto.
3378 (pdc_read_data): Ditto.
3379 (pdc_write_data): Ditto.
3380 * d10v-tdep.c (display_trace): Ditto.
3381 * rs6000-nat.c (find_toc_address): Ditto.
3382 * aix-thread.c: Don't include language.h.
3383 * buildsym.c: Ditto.
3384 * dbxread.c: Ditto.
3385 * mdebugread.c: Ditto.
3386 * rs6000-nat.c: Ditto.
3387 * buildsym.c (make_blockvector): Use renamed hex_string.
3388
3389 2004-09-10 Jason Molenda (jmolenda@apple.com)
3390
3391 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
3392 chars after 'if' or 'while' commands in user-defined commands.
3393
3394 2004-09-08 Jim Blandy <jimb@redhat.com>
3395
3396 Fix bug reported and analyzed by Olivier Crete:
3397 * symfile.c (copy_section_addr_info): New function.
3398 (symbol_file_add_with_addrs_or_offsets): Use it to save the
3399 original set of address arguments, instead of handwritten code
3400 that uses one length to allocate and a different length to
3401 initialize. Use make_cleanup_free_section_addr_info.
3402 * symfile.h (copy_section_addr_info): New declaration.
3403 * utils.c: #include "symfile.h".
3404 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
3405 New functions.
3406 * defs.h (make_cleanup_free_section_addr_info): New declaration.
3407 * Makefile.in (utils.o): Update dependencies.
3408
3409 2004-09-08 Andrew Cagney <cagney@gnu.org>
3410
3411 * thread-db.c (keep_thread_db): Delete.
3412 (thread_db_new_objfile, thread_db_create_inferior)
3413 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
3414
3415 2004-09-08 Mark Kettenis <kettenis@gnu.org>
3416
3417 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
3418 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
3419 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
3420 (i386_frameless_signal_p): Remove prototype.
3421 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
3422 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
3423 I386_SSE_NUM_REGS.
3424 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
3425 instead of FP0_REGNUM.
3426 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
3427 of FP0_REGNUM and FPC_REGNUM.
3428
3429 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
3430 (sunos_solib_create_inferior_hook): Don't call
3431 sunos_relocate_main_executable.
3432
3433 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
3434 solib_svr4_fetch_link_map_offsets to
3435 svr4_ilp32_fetch_link_map_offsets.
3436 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
3437 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
3438 svr4_ilp32_fetch_link_map_offsets.
3439 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
3440
3441 2004-09-07 Jim Blandy <jimb@redhat.com>
3442
3443 * frame.h (frame_register): Doc fix.
3444
3445 2004-09-07 Andrew Cagney <cagney@gnu.org>
3446
3447 * vx-share/wait.h: Delete #ifdef USG.
3448 * utils.c (request_quit): Ditto.
3449 * tui/tui.c (tui_reset): Ditto.
3450 * remote.c: Ditto.
3451 * remote-sds.c: Ditto.
3452 * remote-rdi.c: Ditto.
3453 * mdebugread.c: Ditto.
3454 * m68klinux-nat.c: Ditto.
3455 * infttrace.c: Ditto.
3456 * infptrace.c: Ditto.
3457 * i386v-nat.c: Ditto.
3458 * exec.c: Ditto.
3459 * dbxread.c: Ditto.
3460 * core-aout.c: Ditto.
3461
3462 2004-09-05 Joel Brobecker <brobecker@gnat.com>
3463
3464 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
3465 heuristic_proc_desc.
3466 (mips_insn32_frame_cache): Likewise.
3467
3468 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3469
3470 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
3471 left behind by error.
3472
3473 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3474
3475 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
3476 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
3477
3478 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3479
3480 * config/rs6000/xm-aix4.h: Remove this file.
3481 * config/rs6000/aix4.mh (XM_FILE): Delete.
3482
3483 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3484
3485 * config/rs6000/xm-rs6000.h: Remove this file.
3486 * config/rs6000/rs6000.mh (XM_FILE): Remove.
3487
3488 2004-09-03 Andrew Cagney <cagney@gnu.org>
3489
3490 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
3491 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
3492 only use.
3493
3494 * mips-tdep.c (temp_saved_regs): Delete.
3495 (set_reg_offset): Replace saved_regs parameter with this_cache.
3496 (heuristic_proc_desc, mips16_heuristic_proc_desc)
3497 (mips32_heuristic_proc_desc): Add this_cache parameter.
3498 (mips_insn32_frame_cache, mips_insn16_frame_cache)
3499 (after_prologue): Pass a NULL this_cache.
3500
3501 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
3502 non-kernel trap prologues.
3503
3504 * mips-tdep.c (find_proc_desc): Delete function.
3505 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
3506 simplify.
3507 (mips_insn16_frame_cache): Replace find_proc_desc with code from
3508 mips_insn32_frame_cache.
3509
3510 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
3511 Simplify as NEXT_FRAME is NULL.
3512 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
3513
3514 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
3515 local variable.
3516 (mips_skip_prologue): Update.
3517
3518 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
3519 "cur_frame" parameter.
3520 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
3521 (mips_insn32_frame_cache, find_proc_desc): Update
3522
3523 * config/vax/nm-obsd.h: Delete file.
3524 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3525 * config/vax/nm-nbsd.h: Delete file.
3526 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
3527 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3528 * config/sh/nm-nbsd.h: Delete file.
3529 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3530 * config/rs6000/nm-rs6000ly.h: Delete file.
3531 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
3532 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3533 * config/powerpc/nm-obsd.h: Delete file.
3534 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3535 * config/powerpc/nm-nbsd.h: Delete file.
3536 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3537 * config/pa/nm-obsd.h: Delete file.
3538 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3539 * config/mips/nm-nbsd.h: Delete file.
3540 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3541 * config/m88k/nm-obsd.h: Delete file.
3542 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3543 * config/m68k/nm-nbsd.h: Delete file.
3544 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
3545 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3546 * config/i386/nm-nbsd.h: Delete file.
3547 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
3548 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3549 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3550 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3551 * config/i386/nm-i386lynx.h: Delete file.
3552 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3553 * config/arm/nm-nbsd.h: Delete file.
3554 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
3555 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3556
3557 * config/i386/tm-fbsd.h: Delete file.
3558 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
3559 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
3560
3561 * config/rs6000/tm-rs6000-aix4.h: Delete file.
3562 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
3563 * config/rs6000/aix4.mt (TM_FILE): Set to
3564 config/rs6000/tm-rs6000.h.
3565 * config/powerpc/tm-ppc-aix.h: Delete file.
3566 * config/powerpc/aix.mt (TM_FILE): Set to
3567 config/rs6000/tm-rs6000.h.
3568 * config/m68k/tm-linux.h: Delete file.
3569 * config/m68k/linux.mt (TM_FILE): Set to solib.h
3570 * config/i386/tm-linux64.h: Delete file.
3571 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
3572 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
3573
3574 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3575 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
3576 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
3577 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3578 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
3579 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
3580 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
3581 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3582 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3583
3584 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
3585 gdb_host_cpu.
3586
3587 2004-09-02 Joel Brobecker <brobecker@gnat.com>
3588
3589 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
3590 Minor reformatting. Some code factoring.
3591
3592 2004-09-02 Andrew Cagney <cagney@gnu.org>
3593
3594 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
3595 * config/vax/tm-nbsd.h: Delete file.
3596 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3597 * config/sparc/tm-vxworks.h: Delete file.
3598 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
3599 * config/sparc/tm-nbsd.h: Delete file.
3600 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
3601 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
3602 * config/sparc/tm-linux.h: Delete file.
3603 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
3604 * config/s390/tm-linux.h: Delete file.
3605 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
3606 * config/pa/tm-bsd.h: Delete file.
3607 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
3608 * config/m68k/tm-obsd.h: Delete file.
3609 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
3610 * config/m68k/tm-nbsd.h: Delete file.
3611 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3612 * config/i386/tm-vxworks.h: Delete file.
3613 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
3614 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
3615 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
3616 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
3617 * config/i386/tm-nbsd.h: Delete file.
3618 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
3619 * config/i386/tm-i386lynx.h: Delete file.
3620 * config/cris/cris.mt (TM_FILE): Set to solib.h.
3621 * config/cris/tm-cris.h: Delete file.
3622
3623 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
3624 * configure: Re-generate.
3625 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
3626 * config/arm/tm-nbsd.h: Delete file.
3627
3628 * config/powerpc/tm-ppcle-sim.h: Delete.
3629 * config/powerpc/tm-ppcle-eabi.h: Delete.
3630 * config/powerpc/tm-nbsd.h: Delete.
3631 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
3632 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
3633 tm-ppcle-eabi.h.
3634
3635 * config/i386/nto.mh (NAT_FILE): Delete.
3636 * config/i386/nm-nto.h: Delete.
3637
3638 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
3639 * config/m68k/tm-os68k.h: Ditto.
3640 * config/m68k/tm-monitor.h: Ditto.
3641 * config/m68k/tm-cisco.h: Ditto.
3642 * config/m68k/st2000.mt (TM_FILE): Delete.
3643 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
3644 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
3645 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
3646 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
3647
3648 * config/m68k/tm-st2000.h: Delete.
3649 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
3650 * config/sparc/fbsd.mt (TM_FILE): Delete.
3651 * config/sparc/tm-fbsd.h: Delete.
3652
3653 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
3654 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
3655 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
3656
3657 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
3658 GDB_TM_FILE and GDB_XM_FILE.
3659 * gdbarch.c: Re-generate.
3660 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
3661 quotes in macro definition.
3662 * configure.in: Re-generate.
3663
3664 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
3665 validating architecture methods.
3666 * gdbarch.c: Re-generate.
3667
3668 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
3669 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
3670 GDB_MULTI_ARCH_PARTIAL.
3671 * gdbarch.h: Re-generate.
3672
3673 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
3674 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
3675 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
3676 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
3677 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
3678 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
3679 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
3680 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
3681 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
3682 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
3683 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
3684 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
3685
3686 2004-09-01 Andrew Cagney <cagney@gnu.org>
3687
3688 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
3689 and main_func_highpc.
3690 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
3691 * objfiles.c (init_entry_point_info, objfile_relocate): Update
3692 * nlmread.c (nlm_symfile_read): Update.
3693
3694 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3695
3696 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
3697 (mips_insn32_frame_cache): Inline call to find_proc_desc.
3698 (find_proc_desc): Remove dead code.
3699
3700 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3701
3702 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
3703
3704 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
3705
3706 * observer.sh: Add struct so_list declaration.
3707 * Makefile.in: Add dependencies on observer.h for solib.c and
3708 breakpoint.c.
3709 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
3710 function.
3711 (_initialize_breakpoint): Register
3712 disable_breakpoints_in_unloaded_shlib as an observer of the
3713 "solib unloaded" observation event.
3714 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
3715 call decode_line_1 so unfound breakpoint errors are silent.
3716 * solib.c (update_solib_list): When a solib is discovered to have
3717 been unloaded by the program, notify all observers of the
3718 "solib unloaded" observation event.
3719
3720 2004-09-01 Andrew Cagney <cagney@gnu.org>
3721
3722 * frame.c: Include "objfiles.h".
3723 (inside_main_func): New function.
3724 (get_prev_frame): Use new inside_main_func.
3725 * Makefile.in (frame.o): Update dependencies.
3726 * defs.h (inside_main_func): Delete declaration.
3727 * blockframe.c (inside_main_func): Delete function.
3728
3729 2004-08-31 Jim Blandy <jimb@redhat.com>
3730
3731 * dwarf2read.c (is_vtable_name): New function, based on logic from
3732 read_structure_type, but passing the correct length to strncmp,
3733 and using 'sizeof' instead of 'strlen'.
3734 (read_structure_type): Call it.
3735
3736 2004-08-31 Joel Brobecker <brobecker@gnat.com>
3737
3738 * config/powerpc/aix.mh: Add comment.
3739
3740 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
3741
3742 * MAINTAINERS: Add self to Write-After-Approval.
3743
3744 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
3745
3746 * MAINTAINERS: Add self to Write-After-Approval.
3747
3748 2004-08-30 Andrew Cagney <cagney@gnu.org>
3749
3750 Fix PR breakpoints/1757.
3751 * infrun.c (struct execution_control_state): Replace
3752 remove_breakpoints_on_following_step with
3753 step_after_step_resume_breakpoint.
3754 (init_execution_control_state): Update.
3755 (handle_inferior_event): For signals, when stepping off a
3756 breakpoint, set step_after_step_resume_breakpoint. When
3757 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
3758 (keep_going): Delete code handling
3759 remove_breakpoints_on_following_step.
3760
3761 2004-08-29 David Lecomber <david@streamline-computing.com>
3762
3763 Fix PR gdb/648
3764 * language.h (enum array_ordering): New enum.
3765 * language.h (struct language_defn): New la_array_ordering
3766 attribute.
3767 * language.c (unknown_language_defn, auto_language_defn)
3768 (local_language_defn): Ditto.
3769 * ada-lang.c (ada_language_defn): Ditto.
3770 * c-lang.c (c_language_defn, cplus_language_defn)
3771 (asm_language_defn, minimal_language_defn): Ditto.
3772 * f-lang.c (f_language_defn): Ditto.
3773 * jv-lang.c (java_language_defn): Ditto.
3774 * m2-lang.c (f_language_defn): Ditto.
3775 * objc-lang.c (objc_language_defn): Ditto.
3776 * p-lang.c (pascal_language_defn): Ditto.
3777 * scm-lang.c (scm_language_defn): Ditto.
3778 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
3779 oriented large to small in type structure.
3780 * dwarf2read.c (read_array_order): New function.
3781 (read_array_type): Use read_array_order to check row/column
3782 major ordering.
3783
3784 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
3785
3786 * target.c (target_resize_to_sections): Check
3787 current_target.to_sections for an old value when updating.
3788
3789 2004-08-27 Joel Brobecker <brobecker@gnat.com>
3790
3791 * procfs.c (dbx_link_bpt_addr): New static global variable.
3792 (dbx_link_shadow_contents): New static global variable.
3793 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
3794 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
3795 if we just hit it.
3796 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
3797 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
3798 from run to run.
3799 (procfs_create_inferior): Remove syssgi syscall-exit notifications
3800 after the inferior has been forked.
3801 (remove_dbx_link_breakpoint): New function.
3802 (dbx_link_addr): New function.
3803 (insert_dbx_link_bpt_in_file): New function.
3804 (insert_dbx_link_bpt_in_region): New function.
3805 (insert_dbx_link_breakpoint): New function.
3806 (proc_trace_syscalls_1): New function, extracted from
3807 proc_trace_syscalls.
3808 (proc_trace_syscalls): Replace extract code by call to
3809 proc_trace_syscalls_1.
3810 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
3811 is no longer valid.
3812
3813 2004-08-25 Jim Blandy <jimb@redhat.com>
3814
3815 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
3816
3817 2004-08-25 Andrew Cagney <cagney@gnu.org>
3818
3819 * infrun.c (struct execution_control_state): Delete field
3820 "stepping_through_sigtramp".
3821 (init_execution_control_state): Do not set same.
3822 (context_switch): Do not pass same to save_infrun_state and
3823 load_infrun_state.
3824 * gdbthread.h (struct thread_info): Delete field
3825 stepping_through_sigtramp.
3826 (save_infrun_state, load_infrun_state): Delete parameter
3827 stepping_through_sigtramp.
3828 * thread.c (load_infrun_state, save_infrun_state): Update.
3829
3830 * infrun.c: Re-indent. Move expression operators to the beginning
3831 of the line. Remove long disabled #if 0 code.
3832
3833 2004-08-24 Andrew Cagney <cagney@gnu.org>
3834
3835 * doublest.h (floatformat_ieee_quad): Rename
3836 floatformat_ia64_quad.
3837 * doublest.c (floatformat_ieee_quad): Rename
3838 floatformat_ia64_quad.
3839 (_initialize_doublest): Update.
3840
3841 2004-08-24 Jim Blandy <jimb@redhat.com>
3842
3843 * dwarf2expr.h (struct dwarf_expr_context): New members
3844 'num_pieces' and 'pieces', for returning the result of an
3845 expression that uses DW_OP_piece.
3846 (struct dwarf_expr_piece): New struct type.
3847 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
3848 pieces.
3849 (free_dwarf_expr_context): Free pieces, if any.
3850 (add_piece): New function.
3851 (execute_stack_op): Implement DW_OP_piece.
3852 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
3853 expression is a list of pieces, print an error message.
3854 (dwarf2_loc_desc_needs_frame): If the expression yields
3855 pieces, and any piece is in a register, then we need a frame.
3856
3857 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
3858 the stack until we've decided what sort of result the evaluation
3859 has produced. Use separate variables, with more specific names.
3860
3861 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
3862
3863 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
3864 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
3865 (arm_netbsd_init_abi_common): Register them.
3866
3867 2004-08-22 Mark Kettenis <kettenis@gnu.org>
3868
3869 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
3870
3871 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
3872 safe_frame_unwind_memory instead of target_read_memory.
3873
3874 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
3875 Reorder includes.
3876 (fetch_register, store_register): Remove prototypes.
3877 (child_resume): Reorganize code and comments such that it is
3878 grouped a bit more logically.
3879 (attach): Explicitly compare errno against 0.
3880 (detach): Likewise. Use perror_with_name instead of
3881 print_sys_errmsg.
3882 * Makefile.in (infptrace.o): Update dependencies.
3883
3884 * ia64-linux-nat.c: Update copyright year.
3885 (fetch_debug_register, store_debug_register)
3886 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
3887 PTRACE_TYPE_ARG3.
3888 * config/ia64/nm-linux.h: Update copyright year.
3889 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
3890
3891 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
3892 from CORE_ADDR to struct frame_info *. Use
3893 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
3894 (amd64_linux_sigtramp_p): Adjust for changed signature of
3895 and64_linux_sigtramp_start
3896
3897 * gdb_ptrace.h: GNU/Linux.
3898
3899 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3900 Remove defines.
3901
3902 * infptrace.c: Include "gdb_assert.h".
3903 (PTRACE_XFER_TYPE): Remove define.
3904 (offsetof): Only define if U_REGS_OFFSET isn't defined.
3905 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
3906 Tweak comment.
3907 (fetch_inferior_registers, store_inferior_registers): Remove
3908 redundant culry braces. Tweak comment. s/regno/regnum.
3909 * Makefile.in (infptrace.o): Update dependencies.
3910
3911 * configure.in: Change test for return type of ptrace to default
3912 to `long' instead of `int'.
3913 * configure: Regenerate.
3914
3915 2004-08-21 Mark Kettenis <kettenis@gnu.org>
3916
3917 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
3918
3919 * configure.in: Check for ttrace function.
3920 * configure, config.in: Regenerate.
3921
3922 * gdb_ptrace.h: New file.
3923 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
3924 <sys/ptrace.h>.
3925 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
3926 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
3927 (attach): Don't define PT_ATTACH.
3928 (detach): Don't define PT_DETACH.
3929 * Makefile.in (gdb_ptrace_h): New variable.
3930 (infptrace.o): Update dependencies.
3931
3932 2004-08-16 Mark Kettenis <kettenis@gnu.org>
3933
3934 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
3935 instead of `int' if not already defined.
3936 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
3937 PTRACE_TYPE_ARG3.
3938 * infptrace.c (call_ptrace): Revert change that replaced
3939 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3940
3941 2004-08-15 Mark Kettenis <kettenis@gnu.org>
3942
3943 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3944 Remove defines.
3945
3946 * linux-nat.c (kill_inferior): Add missing third and fourth
3947 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
3948
3949 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
3950 PTRACE_TYPE_RET.
3951
3952 * proc-why.c (proc_prettyfprint_why): Fix format string.
3953
3954 * solib-osf.c (osf_current_sos): Remove unsused label.
3955
3956 * configure.in: Add <ncurses/ncurses.h> to the list of possible
3957 curses headers.
3958 * configure, config.in: Regenerate.
3959 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
3960 <ncurses/ncurses.h>.
3961
3962 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
3963 * config/nm-nbsd.h: Update copyright year.
3964 (PTRACE_ARG3_TYPE): Remove define.
3965
3966 * sparc-nat.c (fetch_inferior_registers)
3967 (store_inferior_registers, sparc_xfer_wcookie):
3968 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3969
3970 * alphabsd-nat.c (fetch_inferior_registers):
3971 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3972 PTRACE_TYPE_ARG3.
3973 * amd64bsd-nat.c (fetch_inferior_registers)
3974 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3975 PTRACE_TYPE_ARG3.
3976 * armnbsd-nat.c: Update copyright year.
3977 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
3978 (store_register, store_regs, store_fp_register, store_fp_regs):
3979 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3980 * hppabsd-nat.c (fetch_inferior_registers)
3981 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3982 PTRACE_TYPE_ARG3.
3983 * i386bsd-nat.c (fetch_inferior_registers)
3984 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
3985 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3986 * m68kbsd-nat.c (fetch_inferior_registers)
3987 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3988 PTRACE_TYPE_ARG3.
3989 * m88kbsd-nat.c (fetch_inferior_registers)
3990 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3991 PTRACE_TYPE_ARG3.
3992 * mipsnbsd-nat.c: Update copyright year.
3993 (fetch_inferior_registers, store_inferior_registers):
3994 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3995 * ns32knbsd-nat.c: Update copyright year.
3996 (fetch_inferior_registers, store_inferior_registers):
3997 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3998 * ppcnbsd-nat.c (fetch_inferior_registers):
3999 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4000 PTRACE_TYPE_ARG3.
4001 * ppcobsd-nat.c (fetch_inferior_registers):
4002 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4003 PTRACE_TYPE_ARG3.
4004 * shnbsd-nat.c: Update copyright year.
4005 (fetch_inferior_registers, store_inferior_registers):
4006 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4007 * vaxbsd-nat.c (fetch_inferior_registers)
4008 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4009 PTRACE_TYPE_ARG3.
4010
4011 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
4012 PTRACE_TYPE_ARG3.
4013 * infptrace.c (call_ptrace, child_resume, attach, detach)
4014 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
4015 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4016 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
4017 PTRACE_TYPE_ARG3.
4018
4019 2004-08-14 Mark Kettenis <kettenis@gnu.org>
4020
4021 * defs.h: Remove out-of-date comment.
4022 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
4023 [!GETENV_PROVIDED] (getenv): Remove prototype.
4024
4025 * standalone.c: Remove file.
4026 * Makefile.in (standalone.o): Remove dependency.
4027
4028 * i386-linux-nat.c (dummy_sse_values): Remove function and
4029 prototype.
4030 (i386_linux_dr_get): Fix typo in comment.
4031 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
4032
4033 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
4034
4035 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
4036 from declaration.
4037 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
4038 from definition.
4039
4040 2004-08-13 Mark Kettenis <kettenis@gnu.org>
4041
4042 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
4043 parenthesis in definition.
4044 * configure: Regenerated.
4045
4046 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
4047
4048 * PROBLEMS: Mention build/1411.
4049
4050 2004-08-09 Robert Millan <robertmh@gnu.org>
4051
4052 Committed by Nathanael Nerode.
4053 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
4054 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
4055
4056 2004-08-12 Andrew Cagney <cagney@gnu.org>
4057
4058 * NEWS: Mention fixes in GDB 6.2.1.
4059 * PROBLEMS: Remove mention of mips-irix.
4060
4061 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4062
4063 * config/powerpc/xm-aix.h: Delete.
4064 * config/powerpc/aix.mh (MH_FILE): Remove.
4065 * config/powerpc/aix432.mh (MH_FILE): Remove.
4066
4067 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4068
4069 * config/powerpc/aix.mh: Remove obsolete comment.
4070 * config/powerpc/aix432.mh: Likewise.
4071
4072 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4073
4074 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
4075
4076 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4077
4078 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
4079 this file is now empty.
4080 * config/xm-aix4.h: Remove, this file is no longer included
4081 anywhere.
4082
4083 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4084
4085 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
4086 that file is now empty.
4087 (termdef): Remove prototype, function no longer used.
4088
4089 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4090
4091 * doc/gdbint.texinfo (Host Definition): Remove documentation
4092 for USE_O_NOCTTY, no longer used.
4093 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
4094 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
4095
4096 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4097
4098 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
4099 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
4100 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
4101
4102 2004-08-11 Mark Kettenis <kettenis@gnu.org>
4103
4104 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
4105 instead of FIVE_ARG_PTRACE.
4106
4107 * inflow.c (O_NOCTTY): Define to zero if not already defined.
4108 (new_tty): Use O_NOCTTY unconditionally.
4109
4110 2004-08-10 Mark Kettenis <kettenis@gnu.org>
4111
4112 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
4113 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
4114 fflush on stdout.
4115
4116 2004-08-10 Joel Brobecker <brobecker@gnat.com>
4117
4118 * xcoff_symfile_finish: Replace last call to xmfree by call
4119 to xfree.
4120
4121 2004-08-10 Andrew Cagney <cagney@gnu.org>
4122
4123 * main.c (captured_main): Delete call to init_malloc.
4124 * defs.h (init_malloc): Delete declaration.
4125 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
4126 (init_malloc): Delete functions.
4127
4128 * defs.h (xmfree): Delete.
4129 * utils.c (xmfree): Delete function.
4130 (xfree): Inline calls to xmfree and mfree.
4131 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
4132 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
4133 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
4134 * somread.c (som_symfile_finish): Ditto.
4135 * objfiles.c (allocate_objfile, free_objfile):
4136 * nlmread.c (nlm_symfile_finish): Ditto.
4137 * hpread.c (hpread_symfile_finish): Ditto.
4138 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
4139 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
4140 * coffread.c (coff_symfile_finish): Ditto.
4141
4142 * defs.h (xmcalloc): Delete declaration.
4143 * utils.c (xmcalloc): Delete.
4144 (xcalloc): Inline calls to xmcalloc and mcalloc.
4145 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
4146 xcalloc and xfree.
4147 * symtab.c (create_demangled_names_hash): Ditto.
4148
4149 * defs.h (xmrealloc): Delete.
4150 * utils.c (xmrealloc): Delete.
4151 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
4152 * symmisc.c (extend_psymbol_list): Use xrealloc.
4153 * source.c (find_source_lines): Ditto.
4154 * hpread.c (hpread_lookup_type): Ditto.
4155 * dbxread.c (add_bincl_to_list): Ditto.
4156
4157 * utils.c (xmmalloc): Delete.
4158 (xmalloc): Inline xmmalloc and mmalloc calls.
4159 (msavestring): Use xmalloc.
4160 * defs.h (xmmalloc): Delete declaration.
4161 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
4162 xmmalloc.
4163 * symmisc.c (extend_psymbol_list): Ditto.
4164 * symfile.c (init_psymbol_list): Ditto.
4165 * source.c (find_source_lines): Ditto.
4166 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
4167 * elfread.c (elf_symtab_read): Ditto.
4168 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
4169 * coffread.c (coff_symfile_init): Ditto.
4170
4171 2004-08-10 David Carlton <carlton@bactrian.org>
4172
4173 * MAINTAINERS: Remove David Carlton from c++ testsuite
4174 maintainers.
4175
4176 2004-08-10 Jerome Guitton <guitton@gnat.com>
4177
4178 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
4179 print a line feed before the prompt.
4180
4181 2004-08-10 Mark Kettenis <kettenis@gnu.org>
4182
4183 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
4184
4185 2004-08-09 Joel Brobecker <brobecker@gnat.com>
4186
4187 General cleanup of the AIX xm include file:
4188 * config/xm-aix4.h (fd_set): Remove undefine.
4189 Remove include of <sys/select.h>.
4190 (HAVE_TERMIO): Remove define.
4191 (USG): Likewise.
4192 (NULL): Remove redefine.
4193 (alloca): Remove #pragma.
4194 (vfork): Remove define.
4195 (termdef): Remove.
4196 (SIGWINCH_HANDLER): Remove.
4197 (SIGWINCH_HANDLER_BODY): Remove.
4198
4199 2004-08-09 Mark Kettenis <kettenis@gnu.org>
4200
4201 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
4202 GDB_OSABI_OPENBSD_ELF.
4203
4204 2004-08-07 Robert Millan <robertmh@gnu.org>
4205
4206 * bsd-kvm.c: Check for nlist.h before including it.
4207
4208 2004-08-09 Mark Kettenis <kettenis@gnu.org>
4209
4210 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
4211 sigcontext' offset consistency checks for ancient BSD.
4212
4213 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
4214
4215 * configure.in: Check for <sys/types.h>. Check return and
4216 argument types of ptrace.
4217 * configure, config.in: Regenerate.
4218
4219 2004-08-09 Jim Blandy <jimb@redhat.com>
4220
4221 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
4222 rs6000_register_sim_regno): Doc fixes.
4223
4224 2004-08-08 Joel Brobecker <brobecker@gnat.com>
4225
4226 * mips-tdep.c: Include "floatformat.h".
4227 (n32n64_floatformat_always_valid): New function.
4228 (floatformat_n32n64_long_double_big): New constant.
4229 (mips_gdbarch_init): Set size and format of long double
4230 for N32 and N64 ABIs.
4231 * Makefile.in (mips-tdep.o): Update dependencies.
4232
4233 2004-08-08 Andrew Cagney <cagney@gnu.org>
4234
4235 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
4236 print. Improve script's error messages.
4237 * gdbarch.h: Re-generate.
4238
4239 * gdbarch.sh (pformat): New function.
4240 (float_format, double_format, long_double_format): List with bit
4241 members. Use pformat when printing.
4242 * gdbarch.c, gdbarch.h: Re-generate.
4243
4244 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
4245
4246 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
4247 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
4248 (ppcnbsd_supply_pcb): New function.
4249 (_initialize_ppcnbsd_nat): New prototype and function.
4250 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
4251 (LOADLIBES): New variable.
4252 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
4253
4254 2004-08-08 Andrew Cagney <cagney@gnu.org>
4255
4256 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
4257 (builtin_type_ieee_double, builtin_type_ia64_quad)
4258 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
4259 BE/LE floating-point types.
4260 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
4261 (builtin_type_ieee_double, builtin_type_ia64_quad)
4262 (builtin_type_ia64_spill): Declare.
4263 * doublest.c (_initialize_doublest, floatformat_ieee_single)
4264 (floatformat_ieee_double, floatformat_arm_ext)
4265 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
4266 of LE/BE floatformats.
4267 * doublest.h: (struct floatformat, floatformat_ieee_single)
4268 (floatformat_ieee_double, floatformat_arm_ext)
4269 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
4270
4271 2004-08-08 Mark Kettenis <kettenis@gnu.org>
4272
4273 * i386gnu-nat.c (gnu_store_registers): Fix typo.
4274
4275 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
4276 instead of regcache_raw_supply when storing the registers.
4277
4278 * i386gnu-nat.c: Update copyright year.
4279 (gnu_store_registers): Don't use deprecated_registers and
4280 deprecated_registers_valid. Use regcache_valid_p and
4281 regcache_raw_supply instead.
4282
4283 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
4284 frame_pc_unwind.
4285
4286 * procfs.c (procfs_pid_to_str): Remove redundant and unused
4287 variables. Incapitalized "process".
4288
4289 * configure.in: Add cursesX to the list of possible curses libs.
4290 Add cursesX.h to the list of possible curses headers.
4291 * configure, config.in: Regenerate.
4292
4293 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
4294
4295 * configure.in: Test for struct lwp in <sys/lwp.h>.
4296 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
4297 the offset of l_addr in struct lwp.
4298
4299 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
4300
4301 * bsd-kvm.c: Include "gdbcore.h"
4302 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
4303
4304 2004-08-07 Andrew Cagney <cagney@gnu.org>
4305
4306 * gdbtypes.c (build_flt, build_complex): New functions.
4307 (gdbtypes_post_init): Use.
4308
4309 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
4310
4311 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
4312 through to builtin_type_uint128.
4313
4314 * c-exp.y: Use builtin_type function to obtain builtin types.
4315
4316 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
4317 builtin_uint128.
4318 * gdbtypes.c (gdbtypes_post_init): Update.
4319 (build_gdbtypes): Move initialization of builtin_type_int0
4320 through to builtin_type_uint128 from here ...
4321 (_initialize_gdbtypes): ... to here.
4322 * d10v-tdep.c (d10v_register_type): Update.
4323
4324 * doublest.c: Update copyright.
4325 (floatformat_from_length): Call error when floatformat is NULL.
4326 (extract_floating_by_length): Remove NULL fmt check.
4327 (store_floating_by_length): Ditto.
4328
4329 2004-08-07 Andrew Cagney <cagney@gnu.org>
4330
4331 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
4332 that the register is valid.
4333
4334 2004-08-05 Mark Kettenis <kettenis@chello.nl>
4335
4336 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4337 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
4338 struct frame_info *. Use safe_frame_unwind_memory instead of
4339 deprecated_read_memory_nobpt.
4340 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
4341 changed signature of i386_linux_sigtramp_start and
4342 i386_linux_rt_sigtramp_start.
4343
4344 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
4345 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
4346 instead of deprecated_read_memory_nobpt.
4347 (i386nbsd_sigtramp_p): Adjust for changed signature of
4348 i386nbsd_sigtramp_offset.
4349
4350 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
4351 safe_frame_unwind_memory instead of target_read_memory.
4352
4353 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
4354 !NO_SYS_FILE.
4355 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
4356 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
4357 (_initialize_kernel_u_addr): Remove prototype and function.
4358 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
4359 !NO_SYS_FILE.
4360 * xcoffread.c: Likewise.
4361
4362 2004-08-06 Mark Kettenis <kettenis@gnu.org>
4363
4364 * vax-nat.c: New file.
4365 * vaxbsd-nat.c: Tweak comment.
4366 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
4367 vaxnbsd-tdep.c.
4368 (vax-nat.o): New dependency.
4369 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
4370 (vax-*-ultrix2*): Remove.
4371 * config/vax/vax.mh: New file.
4372 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
4373 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
4374 (vax_register_u_addr): New prototype.
4375 (REGISTER_U_ADDR): Define using vax_register_u_addr.
4376 * config/vax/vaxult2.mh: Remove file.
4377 * config/vax/vaxult.mh: Remove file.
4378 * config/vax/vaxbsd.mh: Remove file.
4379 * config/vax/vax.mt (TM_FILE): Remove.
4380 * config/vax/tm-vaxbsd.h: Remove file.
4381
4382 2004-08-06 Joel Brobecker <brobecker@gnat.com>
4383
4384 * aix-thread.c (get_signaled_thread): New function.
4385 (iter_trap): Delete, no longer used.
4386 (iter_tid): New function.
4387 (pd_update): Find the thread that received the SIGTRAP signal
4388 by first locating the kernel thread, and then finding its
4389 associated thread.
4390
4391 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
4392
4393 * lin-lwp.c (child_wait): Continue inferior after processing
4394 PTRACE_EVENT_CLONE event.
4395
4396 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
4397
4398 * MAINTAINERS: Add self to Write-After-Approval.
4399
4400 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
4401
4402 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
4403 libunwind-xxxx.so" where xxxx is UNW_TARGET.
4404
4405 2004-08-05 Andrew Cagney <cagney@gnu.org>
4406
4407 * config/xm-sysv4.h: Delete file.
4408 * config/mips/xm-irix5.h: Delete file.
4409 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
4410 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
4411 * config/ia64/xm-aix.h: Delete file.
4412 * config/ia64/aix.mh (XM_FILE): Delete.
4413 * config/pa/xm-hppah.h: Delete file.
4414 * config/pa/hpux11w.mh (XM_FILE): Delete.
4415 * config/pa/hpux11.mh (XM_FILE): Delete.
4416 * config/pa/hpux1020.mh (XM_FILE): Delete.
4417 * config/pa/hppahpux.mh (XM_FILE): Delete.
4418
4419 * config/alpha/xm-alphalinux.h: Delete file.
4420 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
4421 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
4422 * config/alpha/xm-alphaosf.h: Delete file.
4423 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
4424 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
4425 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
4426 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
4427
4428 * config/i386/xm-i386v.h: Delete file.
4429 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
4430 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
4431 * config/i386/xm-i386sco.h: Delete file.
4432 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
4433 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
4434 * config/i386/xm-i386v4.h: Delete file.
4435 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
4436 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
4437 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
4438 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
4439
4440 * config/vax/xm-vax.h: Delete file.
4441 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
4442 * config/vax/xm-vaxult2.h: Delete file.
4443 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
4444 * config/vax/vaxult2.mh (XM_FILE): Delete.
4445 * config/vax/xm-vaxult.h: Delete file.
4446 * config/vax/vaxult.mh (XM_FILE): Delete.
4447 * config/vax/xm-vaxbsd.h: Delete file.
4448 * config/vax/vaxbsd.mh (XM_FILE): Delete.
4449
4450 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
4451 * gdbarch.h, gdbarch.c: Re-generate.
4452 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
4453 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
4454 * frame.h: Delete deprecated_read_fp from comments.
4455 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
4456 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
4457
4458 2004-08-04 Mark Kettenis <kettenis@gnu.org>
4459
4460 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
4461 trampoline in OpenBSD 3.5-current.
4462
4463 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
4464 SSE registers.
4465
4466 * Makefile.in: Remove embedded page breaks.
4467
4468 2004-08-04 Jim Blandy <jimb@redhat.com>
4469
4470 * regcache.c (regcache_raw_read): Assert that, after calling
4471 target_fetch_registers, the register we're reading is cached.
4472
4473 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
4474 a call to 'internal_error', with a more helpful error message.
4475 * rs6000-tdep.c (e500_pseudo_register_read,
4476 e500_pseudo_register_write, rs6000_store_return_value): Same.
4477
4478 2004-08-04 Andrew Cagney <cagney@gnu.org>
4479
4480 * Makefile.in: Update dependencies.
4481
4482 2004-08-04 Jim Blandy <jimb@redhat.com>
4483
4484 Change the layout of the PowerPC E500 raw register cache to allow
4485 the lower 32-bit halves of the GPRS to be their own raw registers,
4486 not pseudoregisters.
4487 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
4488 add ppc_ev0_upper_regnum flag.
4489 * rs6000-tdep.c: #include "reggroups.h".
4490 (spe_register_p): Recognize the ev upper half registers as SPE
4491 registers.
4492 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
4493 registers.
4494 (e500_move_ev_register): New function.
4495 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
4496 vector registers are the pseudo-registers now, formed by splicing
4497 together the gprs and the upper-half registers.
4498 (e500_register_reggroup_p): New function.
4499 (P): Macro deleted.
4500 (P8, A4): New macro.
4501 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
4502 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
4503 macros.
4504 (registers_e500): Rearrange register set so that the raw register
4505 set contains 32-bit GPRs and upper-half registers, and the SPE
4506 vector registers become pseudo-registers.
4507 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
4508 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
4509 register numbers are now the same for the E500 as they are for
4510 other PowerPC variants. Register e500_register_reggroup_p as the
4511 register group function for the E500.
4512 * Makefile.in (rs6000-tdep.o): Update dependencies.
4513
4514 Adapt PPC E500 native support to the new raw regcache layout.
4515 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
4516 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
4517 (fetch_spe_register, store_spe_register): Handle fetching/storing
4518 all the SPE registers at once, if regno == -1. These now take
4519 over the job of fetch_spe_registers and store_spe_registers.
4520 (fetch_spe_registers, store_spe_registers): Deleted.
4521 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
4522 unconditionally; they're always raw. Fetch/store SPE upper half
4523 registers, if present, instead of ev registers.
4524 (fetch_register, store_register): Remove sanity checks: gprs are
4525 never pseudo-registers now, so we never need to even mention any
4526 registers that are ever pseudoregisters.
4527
4528 Use a fixed register numbering when communicating with the PowerPC
4529 simulator.
4530 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
4531 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
4532 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
4533 New functions.
4534 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
4535 init_sim_regno_table.
4536 * Makefile.in (gdb_sim_ppc_h): New variable.
4537 (rs6000-tdep.o): Update dependencies.
4538
4539 2004-08-02 Andrew Cagney <cagney@gnu.org>
4540
4541 * cris-tdep.c (cris_register_size): Restore function, still used
4542 locally.
4543
4544 * gdbarch.sh (deprecated_target_read_fp)
4545 (deprecated_frame_locals_address, deprecated_frame_args_address)
4546 (deprecated_frame_chain_valid, deprecated_frame_chain)
4547 (deprecated_init_extra_frame_info, deprecated_pop_frame)
4548 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
4549 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
4550 * gdbarch.h, gdbarch.c: Re-generate.
4551 * regcache.c (deprecated_read_fp): Do not call
4552 DEPRECATED_TARGET_READ_FP_P.
4553 * infcmd.c (default_print_registers_info): Do not call
4554 DEPRECATED_DO_REGISTERS_INFO.
4555 * frame-base.c (default_frame_locals_address): Do not call
4556 DEPRECATED_FRAME_LOCALS_ADDRESS.
4557 (default_frame_args_address): Do not call
4558 DEPRECATED_FRAME_ARGS_ADDRESS.
4559
4560 * gdbarch.sh (deprecated_register_raw_size)
4561 (deprecated_register_virtual_size:int): Delete.
4562 * gdbarch.h, gdbarch.c: Re-generate.
4563 * cris-tdep.c (cris_register_size): Delete.
4564 (cris_gdbarch_init): Update.
4565 * alpha-tdep.c (alpha_register_raw_size)
4566 (alpha_register_virtual_size): Delete.
4567 (alpha_gdbarch_init): Update.
4568
4569 * gdbarch.sh (deprecated_register_virtual_type)
4570 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
4571 (deprecated_dummy_write_sp): Delete.
4572 * gdbarch.h, gdbarch.c: Re-generate.
4573
4574 * gdbarch.sh (deprecated_register_bytes): Delete.
4575 * gdbarch.h, gdbarch.c: Re-generate.
4576 * regcache.c (deprecated_register_bytes): New function.
4577 * regcache.h (deprecated_register_bytes): Declare.
4578 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4579 * v850-tdep.c (v850_gdbarch_init): Update.
4580 * sh64-tdep.c (sh64_gdbarch_init): Update.
4581 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4582 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4583 * mcore-tdep.c (mcore_gdbarch_init): Update.
4584 * cris-tdep.c (cris_gdbarch_init): Update.
4585 * arm-tdep.c (arm_gdbarch_init): Update.
4586 * remote.c (init_remote_state): Update.
4587 * remote-vx.c (vx_prepare_to_store): Update.
4588 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
4589 * irix5-nat.c (fetch_core_registers): Update.
4590 * cris-tdep.c (cris_register_bytes_ok): Update.
4591 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4592
4593 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
4594 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
4595 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
4596 (mips_insn16_frame_base_address, mips_insn16_frame_base)
4597 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
4598 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
4599 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
4600 (mips_insn32_frame_base_address, mips_insn32_frame_base)
4601 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
4602 with mips_insn16 and mips_insn32.
4603
4604 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
4605 * rs6000-tdep.c (rs6000_push_dummy_call)
4606 (rs6000_extract_return_value): Use register_size.
4607 * xstormy16-tdep.c (xstormy16_get_saved_register)
4608 (xstormy16_extract_return_value): Ditto.
4609 * valops.c (value_assign): Ditto.
4610 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
4611 * v850-tdep.c (v850_extract_return_value): Ditto.
4612 * tracepoint.c (collect_symbol): Ditto.
4613 * target.c (debug_print_register): Ditto.
4614 * stack.c (frame_info): Ditto.
4615 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
4616 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
4617 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
4618 (store_register_using_P): Ditto.
4619 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
4620 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
4621 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4622 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
4623 * regcache.c (deprecated_read_register_bytes)
4624 (deprecated_write_register_bytes, read_register)
4625 (write_register): Ditto.
4626 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
4627 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
4628 * monitor.c (monitor_supply_register, monitor_fetch_register)
4629 (monitor_store_register): Ditto.
4630 * mn10300-tdep.c (mn10300_pop_frame_regular)
4631 (mn10300_print_register): Ditto.
4632 * mipsv4-nat.c (fill_fpregset): Ditto.
4633 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
4634 (mips64_fill_fpregset): Ditto.
4635 * mi/mi-main.c (register_changed_p, get_register)
4636 (mi_cmd_data_write_register_values): Ditto.
4637 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
4638 * irix5-nat.c (fill_gregset, fetch_core_registers):
4639 * infrun.c (write_inferior_status_register): Ditto.
4640 * infptrace.c (fetch_register, store_register): Ditto.
4641 * infcmd.c (default_print_registers_info): Ditto.
4642 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
4643 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
4644 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
4645 * hpux-thread.c (hpux_thread_fetch_registers)
4646 (hpux_thread_store_registers): Ditto.
4647 * hppah-nat.c (store_inferior_registers, fetch_register):
4648 * findvar.c (value_from_register): Ditto.
4649 * dve3900-rom.c (fetch_bitmapped_register):
4650 * cris-tdep.c (cris_gdbarch_init): Ditto.
4651 * alpha-tdep.h: Ditto.
4652 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
4653
4654 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
4655 DEPRECATED_REGISTER_RAW_SIZE from comments.
4656 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
4657 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
4658 DEPRECATED_REGISTER_RAW_SIZE.
4659 * findvar.c (value_of_register): Simplify by assuming that the
4660 registers raw and virtual sizes are identical.
4661 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
4662 comment.
4663 * arch-utils.c (generic_register_size): Simplify by assuming
4664 register_type.
4665
4666 * regcache.c (legacy_read_register_gen, real_register)
4667 (legacy_write_register_gen): Delete, not used.
4668
4669 * regcache.c (struct regcache_descr): Delete legacy_p.
4670 (init_legacy_regcache_descr): Delete function.
4671 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
4672 Do not use deprecated register functions.
4673 (regcache_raw_read, deprecated_write_register_gen):
4674 (deprecated_read_register_gen, regcache_raw_write): Delete code
4675 predicated on legacy_p.
4676 (register_size): Delete check against register raw size.
4677
4678 * cris-tdep.c (cris_register_type): Replace
4679 cris_register_virtual_type.
4680 (cris_gdbarch_init): Update, set register_type.
4681
4682 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
4683 * gdbarch.h, gdbarch.c: Re-generate.
4684 * arm-tdep.c (arm_frameless_function_invocation): Delete.
4685 (arm_gdbarch_init) Do not set frameless function invocation.
4686 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
4687 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
4688 * frv-tdep.c (frv_frameless_function_invocation): Delete.
4689 (frv_gdbarch_init): Do not set frameless function invocation.
4690 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4691 * sh-tdep.c (sh_gdbarch_init): Ditto.
4692 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
4693 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4694 * avr-tdep.c (avr_gdbarch_init): Ditto.
4695
4696 * blockframe.c (legacy_frame_chain_valid): Delete function.
4697
4698 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
4699 and pc. Update comments.
4700 (pc_in_dummy_frame): Delete function.
4701 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
4702 use the "id".
4703 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
4704 call_hi, top and pc, use the id.
4705 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
4706
4707 * dummy-frame.c: Include "gdb_string.h".
4708 (generic_save_call_dummy_addr, generic_push_dummy_frame)
4709 (generic_save_dummy_frame_tos): Delete.
4710 (dummy_frame_push): New function, replaces above.
4711 * dummy-frame.h: Update copyright.
4712 (dummy_frame_push): Declare.
4713 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
4714 (generic_save_call_dummy_addr): Delete declarations.
4715 * infcall.c: Include "dummy-frame.h".
4716 (call_function_by_hand): Add locals caller_regcache,
4717 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
4718 with call to frame_save_as_regcache plus cleanup. Delete calls to
4719 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
4720 Move clear_proceed_status to just before the resume, add call to
4721 dummy_frame_push (discard cleanup).
4722 * Makefile.in (infcall.o): Add $(dummy_frame_h).
4723 (dummy-frame.o): Add $(gdb_string_h).
4724
4725 2004-08-01 Andrew Cagney <cagney@gnu.org>
4726
4727 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
4728 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
4729 * dummy-frame.c (find_dummy_frame): Delete.
4730 (struct dummy_frame_cache, dummy_frame_sniffer)
4731 (dummy_frame_prev_register, dummy_frame_this_id)
4732 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
4733 frame unwinder using a dummy_frame_cache.
4734
4735 2004-08-01 Andrew Cagney <cagney@gnu.org>
4736
4737 * frame.h (frame_save_as_regcache): Declare.
4738 * frame.c (frame_save_as_regcache): New function.
4739 (do_frame_read_register): Replace do_frame_unwind_register.
4740 (frame_pop): Use frame_save_as_regcache.
4741 * dummy-frame.c (generic_push_dummy_frame): Use
4742 frame_save_as_regcache.
4743
4744 2004-08-01 Joel Brobecker <brobecker@gnat.com>
4745
4746 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
4747 file as included until we record the first line in the linetable.
4748
4749 2004-08-01 Andrew Cagney <cagney@gnu.org>
4750
4751 * frame.h (deprecated_pop_dummy_frame)
4752 (deprecated_read_register_dummy)
4753 (deprecated_generic_find_dummy_frame): Delete.
4754 * dummy-frame.c (deprecated_generic_find_dummy_frame)
4755 (deprecated_read_register_dummy)
4756 (deprecated_find_dummy_frame_regcache)
4757 (discard_innermost_dummy)
4758 (deprecated_pop_dummy_frame): Delete.
4759 (dummy_frame_this_id): Simplify.
4760 (struct dummy_frame): Delete "fp" and "sp".
4761 (find_dummy_frame): Simplify.
4762 (generic_push_dummy_frame): Do not set "fp" or "sp".
4763 (fprint_dummy_frames): Do not print "fp" and "sp"
4764
4765 2004-08-01 Mark Kettenis <kettenis@gnu.org>
4766
4767 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
4768 (struct i386_insn): New structure.
4769 (i386_match_insn): New function.
4770 (i386_frame_setup_skip_insns): New variable.
4771 (i386_analyze_frame_setup): Change to use i386_match_insn and the
4772 array i386_frame_setup_insns of instructions that should be
4773 skipped inside the frame setup sequence.
4774
4775 2004-08-01 Andrew Cagney <cagney@gnu.org>
4776
4777 * frame.h (deprecated_frame_xmalloc_with_cleanup)
4778 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4779 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4780 * stack.c (frame_info): Delete references to
4781 DEPRECATED_FRAME_INIT_SAVED_REGS and
4782 deprecated_get_frame_saved_regs.
4783 * frame.c (struct frame_info): Delete saved_regs and extra_info.
4784 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
4785 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
4786 (frame_unwind_register_signed)
4787 (frame_unwind_register_unsigned)
4788 (frame_unwind_unsigned_register): Use register_size.
4789 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
4790 (deprecated_frame_xmalloc_with_cleanup)
4791 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4792 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4793
4794 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
4795 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
4796 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
4797 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
4798
4799 * infcall.c (call_function_by_hand): Do not use
4800 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
4801 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
4802 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
4803 DEPRECATED_STACK_ALIGN.
4804
4805 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
4806
4807 Committed by Andrew Cagney.
4808 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
4809
4810 2004-08-01 Andrew Cagney <cagney@gnu.org>
4811
4812 * mips-tdep.c (mips16_frame_cache)
4813 (mips16_frame_this_id, mips16_frame_prev_register)
4814 (mips16_frame_unwind, mips16_frame_sniffer)
4815 (mips16_frame_base_address, mips16_frame_base)
4816 (mips16_frame_base_sniffer, mips32_frame_cache)
4817 (mips32_frame_this_id, mips32_frame_prev_register)
4818 (mips32_frame_unwind, mips32_frame_sniffer)
4819 (mips32_frame_base_address, mips32_frame_base)
4820 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
4821 separate heuristic mips16 and mips32 unwinders.
4822 (mips_stub_frame_cache, mips_stub_frame_this_id)
4823 (mips_stub_frame_prev_register)
4824 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
4825 (mips_stub_frame_base_address, mips_stub_frame_base)
4826 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
4827 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
4828 match true mdebug frames.
4829 (non_heuristic_proc_desc): Add forward declaration.
4830
4831 2004-08-01 Andrew Cagney <cagney@gnu.org>
4832
4833 * config/mips/tm-irix6.h: Delete file.
4834 * config/mips/tm-irix5.h: Delete file.
4835 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
4836 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
4837
4838 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
4839 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
4840 * config/nm-gnu.h (NO_CORE_OPS): Delete.
4841 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
4842 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
4843 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
4844 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
4845 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
4846 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
4847 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
4848 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
4849 (TARGET_SIGNAL_RAW_VALUES): Delete.
4850 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
4851 Delete.
4852 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
4853 (TARGET_HW_WATCH_LIMIT): Delete.
4854 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
4855 * minimon.h: Delete file.
4856
4857 * trad-frame.c (trad_frame_get_this_base)
4858 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
4859 functions.
4860 * trad-frame.h (trad_frame_set_this_base)
4861 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
4862
4863 2004-07-31 Andrew Cagney <cagney@gnu.org>
4864
4865 * trad-frame.c (trad_frame_get_prev_register): Rename
4866 trad_frame_get_prev_register.
4867 * vax-tdep.c (vax_frame_prev_register): Update.
4868 * trad-frame.h: Update.
4869 * trad-frame.c (trad_frame_get_register): Update.
4870 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
4871 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
4872 Update.
4873 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
4874 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
4875 Update.
4876 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
4877 Update.
4878 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
4879 Update.
4880 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
4881 Update.
4882 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
4883 Update.
4884 * s390-tdep.c (s390_frame_prev_register)
4885 (s390_stub_frame_prev_register)
4886 (s390_sigtramp_frame_prev_register): Update.
4887 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
4888 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
4889 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
4890 * m88k-tdep.c (m88k_frame_prev_register)
4891 * m68hc11-tdep.c (m68hc11_frame_prev_register)
4892 * m32r-tdep.c (m32r_frame_prev_register): Update.
4893 * hppa-tdep.c (hppa_frame_prev_register_helper)
4894 * frv-tdep.c (frv_frame_prev_register): Update.
4895 * d10v-tdep.c (d10v_frame_prev_register): Update.
4896 * cris-tdep.c (cris_frame_prev_register): Update.
4897 * avr-tdep.c (avr_frame_prev_register): Update.
4898 * arm-tdep.c (arm_prologue_prev_register)
4899 (arm_sigtramp_prev_register): Update.
4900
4901 2004-07-31 Andrew Cagney <cagney@gnu.org>
4902
4903 * frame.h (legacy_saved_regs_unwind)
4904 (legacy_frame_chain_valid, legacy_frame_p)
4905 (enum frame_type): Delete UNKNOWN_FRAME.
4906 * dummy-frame.c (dummy_frame_this_id): Simplify.
4907 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
4908 * frame.c (struct frame_info): Delete the field "type".
4909 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
4910 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
4911 (legacy_saved_regs_unwind, legacy_frame_p)
4912 (frame_type_from_pc): Delete.
4913 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
4914 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
4915
4916 2004-07-31 Mark Kettenis <kettenis@gnu.org>
4917
4918 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
4919 indentation.
4920
4921 * mips-nat.c: Remove file.
4922 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
4923 (mips-nat.o): Remove dependency.
4924
4925 * infptrace.c: Update copyright year.
4926 (fetch_register): Pass NULL in regcache_raw_supply call instead of
4927 explicitly setting the buffer to all zeroes.
4928
4929 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
4930 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
4931
4932 2004-07-30 Andrew Cagney <cagney@gnu.org>
4933
4934 * GDB 6.2 released from gdb_6_2-branch.
4935
4936 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
4937
4938 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
4939
4940 * exec.c (exec_file_attach):
4941 * nto-tdep.c (nto_find_and_open_solib):
4942 * pa64solib.c (pa64_solib_sizeof_symbol_table):
4943 * solib.c (solib_open):
4944 * somsolib.c (som_solib_sizeof_symbol_table):
4945 * source.c (is_regular_file, openp, open_source_file):
4946 * symfile.c (symfile_bfd_open):
4947 * wince.c (upload_to_device): Differentiate between the search for
4948 binary and source files.
4949
4950 2004-07-30 Andrew Cagney <cagney@gnu.org>
4951
4952 * complaints.c (_initialize_complaints): Pass NULL to
4953 add_setshow_zinteger_cmd for help_doc.
4954 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
4955
4956 2004-07-30 Andrew Cagney <cagney@gnu.org>
4957
4958 Fix PR i18n/761.
4959 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
4960 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
4961 $(PACKAGE).pot and update-po.
4962 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
4963 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
4964 (update-po): New rules.
4965 (localedir): Define using autoconf.
4966 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
4967 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
4968 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
4969 * configure.in: Generate CATALOGS and LINGUAS from contents of
4970 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
4971 * configure: Re-generate.
4972 * po/gdbtext: New file
4973
4974 2004-07-30 Jerome Guitton <guitton@gnat.com>
4975
4976 * MAINTAINERS: Reorder Write After Approval list in alphabetical
4977 order.
4978
4979 2004-07-30 David Lecomber <dsl@sources.redhat.com>
4980
4981 * dwarf2read.c (read_file_scope): Set producer if attribute
4982 present.
4983 (struct dwarf2_cu): Added new member producer.
4984
4985 2004-07-30 Jerome Guitton <guitton@gnat.com>
4986
4987 * inflow.c (kill_command): release file handles in BFD.
4988 * exec.c (exec_file_attach): Ditto.
4989 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
4990
4991 2004-07-29 Andrew Cagney <cagney@gnu.org>
4992
4993 * PROBLEMS (mips-irix): Note that it is broken.
4994
4995 2004-07-29 Andrew Cagney <cagney@gnu.org>
4996
4997 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
4998 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
4999
5000 * config/xm-nbsd.h: Delete file.
5001 * config/arm/xm-nbsd.h: Delete file.
5002 * config/i386/xm-nbsd.h: Delete file.
5003 * config/ns32k/xm-nbsd.h: Delete file.
5004 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
5005 * config/i386/nbsdelf.mh (XM_FILE): Delete.
5006 * config/i386/nbsdaout.mh (XM_FILE): Delete.
5007 * config/arm/nbsdelf.mh (XM_FILE): Delete.
5008 * config/arm/nbsdaout.mh (XM_FILE): Delete.
5009
5010 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
5011 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
5012 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
5013 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
5014 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
5015 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
5016
5017 * config/powerpc/xm-linux.h: Delete empty file.
5018 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
5019 * config/powerpc/linux.mh (XM_FILE): Delete.
5020 * config/m68k/xm-linux.h: Delete empty file.
5021 * config/m68k/linux.mh (XM_FILE): Delete.
5022 * config/ia64/xm-linux.h: Delete empty file.
5023 * config/ia64/linux.mh (XM_FILE): Delete.
5024 * config/arm/xm-linux.h: Delete empty file.
5025 * config/arm/linux.mh (XM_FILE): Delete.
5026
5027 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
5028 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
5029 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
5030 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
5031 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
5032 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
5033 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
5034 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
5035
5036 * config/m68k/xm-m68k.h: Delete file.
5037 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
5038 copyright.
5039 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
5040 * config/pa/xm-linux.h: Delete empty file.
5041 * config/pa/linux.mh (XM_FILE): Delete.
5042 * config/i386/xm-i386.h: Delete empty file.
5043 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
5044 "i386/xm-i386.h".
5045 * config/i386/obsdaout.mh (XM_FILE): Delete.
5046 * config/i386/obsd64.mh (XM_FILE): Delete.
5047 * config/i386/fbsd64.mh (XM_FILE): Delete.
5048 * config/i386/nto.mh (XM_FILE): Delete.
5049 * config/i386/obsd.mh (XM_FILE): Delete.
5050 * config/i386/linux64.mh (XM_FILE): Delete.
5051 * config/i386/linux.mh (XM_FILE): Delete.
5052 * config/i386/i386sol2.mh (XM_FILE): Delete.
5053 * config/i386/i386gnu.mh (XM_FILE): Delete.
5054 * config/i386/fbsd.mh (XM_FILE): Delete.
5055 * config/i386/nbsd64.mh (XM_FILE): Delete.
5056
5057 2004-07-29 Andrew Cagney <cagney@gnu.org>
5058
5059 * config/pa/xm-linux.h: Do not include "floatformat.h".
5060 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
5061 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
5062 * config/i386/xm-i386.h: Do not include "floatformat.h".
5063 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
5064 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
5065 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
5066 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
5067 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
5068 GDB_HOST_LONG_DOUBLE_FORMAT instead.
5069 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
5070 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
5071 * configure, config.in: Regenerate.
5072 * configure.host (gdb_host_float_format, gdb_host_double_format)
5073 (gdb_host_long_double_format): Set according to the host.
5074
5075 2004-07-29 Andrew Cagney <cagney@gnu.org>
5076
5077 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
5078
5079 2004-07-28 Andrew Cagney <cagney@gnu.org>
5080
5081 * PROBLEMS: Mention threads/1650.
5082 * NEWS: Mention the NPTL fix.
5083
5084 2004-07-28 Andrew Cagney <cagney@gnu.org>
5085
5086 * cli/cli-decode.c (add_setshow_cmd): Delete function.
5087 (add_setshow_cmd_full): Make static.
5088 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
5089 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
5090 * cli/cli-decode.c (add_setshow_filename_cmd)
5091 (add_setshow_string_cmd): New functions.
5092 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
5093 * mips-tdep.c (_initialize_mips_tdep): Update.
5094 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
5095 * cli/cli-logging.c (_initialize_cli_logging): Update.
5096 * complaints.c (_initialize_complaints): Update.
5097 * remote.c (_initialize_remote): Update.
5098
5099 2004-07-28 Andrew Cagney <cagney@gnu.org>
5100
5101 * cli/cli-decode.c (add_setshow_zinteger_cmd)
5102 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
5103 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
5104 print parameters. Make string parameters constant.
5105 * command.h: Update. Update copyright.
5106 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
5107 * observer.c (_initialize_observer): Ditto.
5108 * frame.c (_initialize_frame): Ditto.
5109 * complaints.c (_initialize_complaints): Ditto.
5110 * maint.c (_initialize_maint_cmds): Ditto.
5111 * target.c (initialize_targets): Ditto.
5112 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
5113 * infcall.c (_initialize_infcall): Ditto.
5114 * arm-tdep.c (_initialize_arm_tdep): Ditto.
5115 * m32r-rom.c (_initialize_m32r_rom): Ditto.
5116 * remote-rdi.c (_initialize_remote_rdi): Ditto.
5117 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
5118 * mips-tdep.c (_initialize_mips_tdep): Ditto.
5119
5120 2004-07-28 Andrew Cagney <cagney@gnu.org>
5121
5122 * gdbtypes.c (lookup_primitive_typename): Delete function.
5123 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
5124 * ada-lex.l: Use language_lookup_primitive_type_by_name.
5125 * gdbtypes.c (lookup_typename): Ditto.
5126 * f-exp.y (yylex): Ditto.
5127 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
5128
5129 * scm-lang.c (c_builtin_types): Delete extern declaration.
5130 (scm_language_defn): Replace
5131 string_char_type and primitive_type_vector with
5132 la_language_arch_info.
5133 * jv-lang.c (java_language_defn): Replace
5134 string_char_type and primitive_type_vector with
5135 la_language_arch_info.
5136 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
5137 c_builtin_types in comment.
5138 * c-lang.h (struct language_arch_info): Declare opaque.
5139 (c_language_arch_info): Declare.
5140 (c_builtin_types): Delete declaration.
5141 * c-lang.c (c_language_arch_info): Set string_char_type to
5142 builtin_char, not builtin_true_char. Make global.
5143 (c_builtin_types): Delete array.
5144 (asm_language_defn, minimal_language_defn): Replace
5145 string_char_type and primitive_type_vector with
5146 la_language_arch_info.
5147
5148 2004-07-28 Andrew Cagney <cagney@gnu.org>
5149
5150 * gdbtypes.h (struct builtin_type): Rename true_char to
5151 builtin_true_char.
5152 * gdbtypes.c (gdbtypes_post_init): Update.
5153 * c-lang.c (arch_info): New function.
5154 (enum c_primitive_types): New enum.
5155 (c_language_defn): Instead of string_char_type and
5156 primitive_type_vector set la_language_arch_info.
5157
5158 2004-07-28 Andrew Cagney <cagney@gnu.org>
5159
5160 * language.h (struct language_arch_info): Fix typo
5161 s/primative/primitive/.
5162 * gdbtypes.c (lookup_primitive_typename): Ditto.
5163 * language.c (language_lookup_primitive_type_by_name)
5164 (unknown_language_arch_info): Ditto.
5165
5166 2004-07-27 Andrew Cagney <cagney@gnu.org>
5167
5168 * defs.h (enum language): Add nr_languages.
5169 * language.h (struct language_arch_info): Define.
5170 (struct language_defn): Add la_language_arch_info.
5171 (language_lookup_primative_type_by_name): Declare.
5172 (language_string_char_type): Declare.
5173 * language.c (_initialize_language, language_gdbarch_post_init)
5174 (struct language_gdbarch, language_gdbarch_data): Implement
5175 per-architecture language information.
5176 (unknown_language_arch_info, language_string_char_type)
5177 (language_lookup_primative_type_by_name): New functions.
5178 (unknown_language_defn, auto_language_defn)
5179 (local_language_defn): Set la_language_arch_info to
5180 unknown_language_arch_info.
5181 (unknown_builtin_types): Delete.
5182 * gdbtypes.c (lookup_primitive_typename): Use
5183 language_lookup_primative_type_by_name.
5184 (create_string_type): Use language_string_char_type.
5185 * values.c (value_from_string): Use language_string_char_type.
5186 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
5187 * p-lang.c (pascal_language_defn): Ditto.
5188 * m2-lang.c (m2_language_defn): Ditto.
5189 * jv-lang.c (java_language_defn): Ditto.
5190 * objc-lang.c (objc_language_defn): Ditto.
5191 * f-lang.c (f_language_defn): Ditto.
5192 * c-lang.c (c_language_defn, cplus_language_defn)
5193 (asm_language_defn, minimal_language_defn): Ditto.
5194
5195 2004-07-27 Andrew Cagney <cagney@gnu.org>
5196
5197 * gdbtypes.h (struct builtin_type): Declare.
5198 (builtin_type): Declare.
5199 * d10v-tdep.c (d10v_register_type): Use builtin_type.
5200 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
5201 (gdbtypes_post_init): New function.
5202 (builtin_type): New function.
5203
5204 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
5205
5206 * remote-m32r-sdi.c: Fix breakpoint bug.
5207 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
5208 recv_char_data, recv_long_data): New functions to replace communication
5209 sequences.
5210
5211 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
5212
5213 Document PR threads/1650.
5214 * PROBLEMS (Threads): Document problem with many threads
5215
5216 2004-07-26 Andrew Cagney <cagney@gnu.org>
5217
5218 * gdb-mi.el: Move from here ...
5219 * mi/gdb-mi.el: ... to here.
5220
5221 2004-07-26 Andrew Cagney <cagney@gnu.org>
5222
5223 Problem reported by Ashley Pittman <ashley@quadrics.com>.
5224 * main.c (captured_main): When in batch mode always detach.
5225
5226 2004-07-26 Andrew Cagney <cagney@gnu.org>
5227
5228 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
5229 and h8300 as broken.
5230 * NEWS: END-OF-LIFE frame compatibility module.
5231 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
5232 specific comments.
5233
5234 2004-07-26 Andrew Cagney <cagney@gnu.org>
5235
5236 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
5237 * xcoffsolib.c (_initialize_xcoffsolib): Update.
5238 * wince.c (_initialize_wince): Update.
5239 * win32-nat.c (_initialize_win32_nat): Update.
5240 * varobj.c (_initialize_varobj): Update.
5241 * valops.c (_initialize_valops): Update.
5242 * utils.c (initialize_utils, initialize_utils): Update.
5243 * tui/tui-win.c (_initialize_tui_win): Update.
5244 * top.c (init_main): Update.
5245 * symfile.c (_initialize_symfile): Update.
5246 * source.c (_initialize_source): Update.
5247 * somsolib.c (_initialize_som_solib): Update.
5248 * solib.c (_initialize_solib): Update.
5249 * solib-frv.c (_initialize_frv_solib): Update.
5250 * serial.c (_initialize_serial): Update.
5251 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
5252 * remote.c (_initialize_remote, _initialize_remote): Update.
5253 * remote-vx.c (_initialize_vx): Update.
5254 * remote-utils.c (_initialize_sr_support): Update.
5255 * remote-sds.c (_initialize_remote_sds): Update.
5256 * remote-mips.c (_initialize_remote_mips): Update.
5257 * remote-e7000.c (_initialize_remote_e7000): Update.
5258 * proc-api.c (_initialize_proc_api): Update.
5259 * printcmd.c: Update.
5260 * parse.c (_initialize_parse): Update.
5261 * pa64solib.c (_initialize_pa64_solib): Update.
5262 * p-valprint.c (_initialize_pascal_valprint): Update.
5263 * monitor.c (_initialize_remote_monitors): Update.
5264 * mips-tdep.c (_initialize_mips_tdep): Update.
5265 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5266 * maint.c (_initialize_maint_cmds): Update.
5267 * lin-lwp.c (_initialize_lin_lwp): Update.
5268 * language.c (_initialize_language): Update.
5269 * kod.c (_initialize_kod): Update.
5270 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
5271 * i386-tdep.c (_initialize_i386_tdep): Update.
5272 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
5273 * gdbarch.sh: Update.
5274 * gdbarch.c: Re-generate.
5275 * gdb-events.sh: Update.
5276 * gdb-events.c: Re-generate.
5277 * frame.c (_initialize_frame): Update.
5278 * exec.c: Update.
5279 * demangle.c (_initialize_demangler): Update.
5280 * dcache.c (_initialize_dcache): Update.
5281 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
5282 * cp-valprint.c (_initialize_cp_valprint): Update.
5283 * corefile.c (_initialize_core): Update.
5284 * command.h: Update.
5285 * cli/cli-decode.h: Update.
5286 * cli/cli-cmds.c (init_cli_cmds): Update.
5287 * charset.c (_initialize_charset): Update.
5288 * breakpoint.c (_initialize_breakpoint): Update.
5289 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
5290 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5291 * aix-thread.c (_initialize_aix_thread): Update.
5292
5293 2004-07-24 Mark Kettenis <kettenis@gnu.org>
5294
5295 Partial fix for PR backtrace/1718.
5296 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
5297 that GCC migrates into the prolugue. Don't handle any
5298 instructions that clobber %ebx.
5299
5300 2004-07-23 Andrew Cagney <cagney@gnu.org>
5301
5302 Use regcache_raw_collect instead of regcache_collect.
5303 * regcache.h (regcache_collect): Delete declaration.
5304 * regcache.c (regcache_colect): Delete function.
5305 * win32-nat.c (do_child_store_inferior_registers): Update.
5306 * sol-thread.c (sol_thread_store_registers): Update.
5307 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
5308 * rs6000-nat.c (store_register): Update.
5309 * remote.c (store_register_using_P, remote_store_registers): Update.
5310 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
5311 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
5312 (fill_vrregset, store_spe_registers, fill_gregset)
5313 (fill_gregset): Update.
5314 * nto-procfs.c (procfs_store_registers): Update.
5315 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
5316 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
5317 * m68klinux-nat.c (store_register, fill_gregset): Update.
5318 * m68k-tdep.c (fill_gregset): Update.
5319 * infptrace.c (store_register): Update.
5320 * i386-nto-tdep.c (i386nto_regset_fill): Update.
5321 * i386-linux-nat.c (store_register, fill_gregset): Update.
5322 * hppa-linux-nat.c (fill_gregset): Update.
5323 * go32-nat.c (store_register): Update.
5324 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
5325 (store_fp_regs): Update.
5326 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
5327 (store_nwfpe_extended, store_fpregister, store_fpregs)
5328 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
5329 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
5330 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
5331 (store_regs_user_thread, store_regs_kernel_thread): Update.
5332
5333 2004-07-24 Mark Kettenis <kettenis@gnu.org>
5334
5335 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
5336 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
5337 encoding.
5338 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
5339 member of `struct comp_unit'.
5340
5341 2004-07-23 Andrew Cagney <cagney@gnu.org>
5342
5343 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
5344 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
5345
5346 2004-07-23 Martin Hunt <hunt@redhat.com>
5347 Kevin Buettner <kevinb@redhat.com>
5348
5349 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
5350 alignment was being added to the offset instead of multiplied.
5351
5352 2004-07-23 Mark Kettenis <kettenis@gnu.org>
5353
5354 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
5355 changed signal trampoline in OpenBSD 3.5-current.
5356
5357 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
5358 <machine/pcb.h> and "bsd-kvm.h".
5359 (sparc64nbsd_supply_pcb): New function.
5360 (_initialize_sparc64nbsd_nat): Renamed from
5361 _initialize_sparcnbsd_nat. Enable libkvm interface.
5362 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
5363 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
5364 (LOADLIBES): New variable.
5365
5366 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
5367
5368 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
5369
5370 2004-07-21 Andrew Cagney <cagney@gnu.org>
5371
5372 Use regcache_raw_supply instead of supply_register.
5373 * regcache.h (supply_register): Delete declaration.
5374 * regcache.c (supply_register): Delete function.
5375 * wince.c (do_child_fetch_inferior_registers): Update.
5376 * win32-nat.c (do_child_fetch_inferior_registers)
5377 (fetch_elf_core_registers): Update.
5378 * v850ice.c (v850ice_fetch_registers): Update.
5379 * thread-db.c (thread_db_store_registers): Update.
5380 * sol-thread.c (sol_thread_store_registers): Update.
5381 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
5382 * rs6000-nat.c (fetch_register): Update.
5383 * rom68k-rom.c (rom68k_supply_one_register): Update.
5384 * remote.c (remote_wait, remote_async_wait): Update.
5385 * remote-st.c (get_hex_regs): Update.
5386 * remote-sim.c (gdbsim_fetch_register): Update.
5387 * remote-sds.c (sds_fetch_registers): Update.
5388 * remote-rdp.c (remote_rdp_fetch_register): Update.
5389 * remote-rdi.c (arm_rdi_fetch_registers): Update.
5390 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
5391 * remote-m32r-sdi.c (m32r_fetch_register): Update.
5392 * remote-hms.c (init_hms_cmds): Update.
5393 * remote-est.c (init_est_cmds): Update.
5394 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
5395 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
5396 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
5397 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
5398 (fetch_register, supply_vrregset, supply_vrregset)
5399 (fetch_spe_registers): Update.
5400 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
5401 * monitor.c (monitor_supply_register): Update.
5402 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
5403 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
5404 (mipsnbsd_supply_fpreg): Update.
5405 * mips-nat.c (fetch_inferior_registers)
5406 (fetch_core_registers): Update.
5407 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
5408 (supply_fpregset, mips64_supply_gregset)
5409 (mips64_supply_fpregset): Update.
5410 * m68klinux-nat.c (fetch_register, supply_gregset)
5411 (supply_fpregset): Update.
5412 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
5413 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
5414 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
5415 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
5416 * infptrace.c (fetch_register): Update.
5417 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
5418 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
5419 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
5420 (gnu_fetch_registers, gnu_store_registers): Update.
5421 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
5422 * i386-linux-nat.c (fetch_register, supply_gregset)
5423 (dummy_sse_values): Update.
5424 * hpux-thread.c (hpux_thread_fetch_registers): Update.
5425 * hppah-nat.c (fetch_register): Update.
5426 * hppa-linux-nat.c (fetch_register, supply_gregset)
5427 (supply_fpregset): Update.
5428 * go32-nat.c (fetch_register): Update.
5429 * dve3900-rom.c (fetch_bitmapped_register)
5430 (_initialize_r3900_rom): Update.
5431 * cris-tdep.c (supply_gregset): Update.
5432 * abug-rom.c (init_abug_cmds): Update.
5433 * core-aout.c (fetch_core_registers): Update.
5434 * armnbsd-nat.c (supply_gregset, supply_fparegset)
5435 (fetch_register, fetch_fp_register): Update.
5436 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
5437 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
5438 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
5439 * alphanbsd-tdep.c (fetch_core_registers): Update.
5440 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
5441 * alpha-nat.c (fetch_osf_core_registers)
5442 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
5443 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
5444 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
5445
5446 2004-07-21 Andrew Cagney <cagney@gnu.org>
5447
5448 * PROBLEMS: Mention breakpoints/1702.
5449 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
5450 that is known to work.
5451
5452 2004-07-21 Andrew Cagney <cagney@gnu.org>
5453
5454 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
5455 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
5456 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
5457 (handle_inferior_event): Wrap call to deprecated
5458 IGNORE_HELPER_CALL in #ifdef.
5459 * config/mips/tm-nbsd.h: Update.
5460
5461 2004-07-20 Jim Blandy <jimb@redhat.com>
5462
5463 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
5464 bfd_mach_ppc has no segment registers.
5465
5466 Include PowerPC SPR numbers for special-purpose registers.
5467 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
5468 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
5469 new member in initializer.
5470 (S, S4, SN4, S64): New macros for defining special-purpose
5471 registers.
5472 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
5473 registers_403, registers_403GC, registers_505, registers_860,
5474 registers_601, registers_602, registers_603, registers_604,
5475 registers_750, registers_e500): Use them.
5476
5477 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
5478 replace references with expression used to initialize variable.
5479
5480 2004-07-20 Andrew Cagney <cagney@gnu.org>
5481
5482 * breakpoint.c (deprecated_read_memory_nobpt): Rename
5483 read_memory_nobpt.
5484 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
5485 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
5486 (s390_sigtramp_frame_sniffer): Update.
5487 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
5488 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
5489 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
5490 (mips32_fetch_instruction): Update.
5491 * mcore-tdep.c (get_insn): Update.
5492 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
5493 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
5494 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
5495 * i386-linux-tdep.c (i386_linux_sigtramp_start)
5496 (i386_linux_rt_sigtramp_start): Update.
5497 * i386-linux-nat.c (child_resume): Update.
5498 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
5499 * hppa-linux-tdep.c (insns_match_pattern): Update.
5500 * gdbcore.h: Update.
5501 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
5502 * frame.c (safe_frame_unwind_memory): Update.
5503 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
5504 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
5505 * alpha-tdep.c (alpha_read_insn): Update.
5506
5507 2004-07-20 Andrew Cagney <cagney@gnu.org>
5508
5509 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
5510 containing both bytes and mask. Add "frame_type".
5511 * tramp-frame.c (tramp_frame_start): Update.
5512 (tramp_frame_prepend_unwinder): Update.
5513 * mips-linux-tdep.c (mips_linux_o32_sigframe)
5514 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
5515 (mips_linux_n64_rt_sigframe): Update. Make "static const".
5516 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
5517
5518 2004-07-19 Eli Zaretskii <eliz@gnu.org>
5519
5520 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
5521 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
5522 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
5523 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
5524
5525 2004-07-17 Andrew Cagney <cagney@gnu.org>
5526
5527 * NEWS, PROBLEMS: Update for 6.2.
5528
5529 * README: Update to 6.2.
5530
5531 * utils.c (xvasprintf): Call xstrvprintf.
5532
5533 * parse.c: Update copyright.
5534 (null_post_parser): Eliminate ARGSUSED.
5535
5536 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
5537 * tui/tui-win.c (tui_get_cmd_list): Ditto.
5538 * symfile-mem.c (_initialize_symfile_mem): Ditto.
5539
5540 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
5541 * ppc-linux-nat.c: Use "Linux kernel".
5542 * hppa-linux-tdep.c: Use GNU/Linux.
5543 * hppa-linux-nat.c: Use GNU/Linux.
5544 * dwarfread.c: Add [sic] to use of Linux.
5545
5546 * hppa-linux-nat.c: Do not include <string.h>.
5547 (supply_fpregset): Remove "register" attribute.
5548
5549 * solib-frv.c (fetch_loadmap): Use xfree, not free.
5550
5551 2004-07-17 Mark Kettenis <kettenis@gnu.org>
5552
5553 * configure.in: Define _MSE_INT_H on Solaris 9 too.
5554 * configure, config.in: Regenerated.
5555
5556 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5557 "bsd-kvm.h".
5558 (vaxbsd_supply_pcb): New function.
5559 (_initialize_vaxbsd_nat): New prototype and function.
5560 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
5561 solib-sunos.o.
5562 (LOADLIBES): New variable.
5563 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5564 (LOADLIBES): New variable.
5565 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5566 (LOADLIBES): New variable.
5567 * Makefile.in (vaxbsd-nat.o): Update dependencies.
5568
5569 2004-07-16 Andrew Cagney <cagney@gnu.org>
5570
5571 * defs.h (event_loop_p): Replace variable declaration with macro,
5572 always 1.
5573 * main.c (captured_main): Delete options "-async" and "-noasync".
5574 (event_loop_p): Delete variable.
5575 * NEWS: Mention that "-async" and "-noasync" were removed.
5576
5577 2004-07-16 Andrew Cagney <cagney@gnu.org>
5578
5579 * remote-m32r-sdi.c: Re-indent.
5580
5581 2004-07-16 Jim Blandy <jimb@redhat.com>
5582
5583 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
5584 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
5585 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
5586 missing MPC823 SPRs.
5587 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
5588 incorrect. (This was corrected in GDB's register name tables on
5589 2004-07-14.)
5590
5591 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
5592 should be "esasrr" ("ESA Save and Restore Register").
5593
5594 2004-07-16 Andrew Cagney <cagney@gnu.org>
5595
5596 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
5597 calls, no longer applicable. Update comments and rename parameter
5598 "step_frame" to "return_frame".
5599
5600 2004-07-16 Andrew Cagney <cagney@gnu.org>
5601
5602 * frame.c (fprint_field): New function.
5603 (fprint_frame_id): Use fprint_field.
5604
5605 2004-07-15 Joel Brobecker <brobecker@gnat.com>
5606
5607 * ada-lang.c (ada_language_defn): Remove commented out code.
5608
5609 2004-07-15 Jim Blandy <jimb@redhat.com>
5610
5611 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
5612 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
5613
5614 2004-07-14 Jim Blandy <jimb@redhat.com>
5615
5616 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
5617
5618 * ppc-tdep.h (ppc_num_vrs): New enum constant.
5619
5620 * ppc-tdep.h (ppc_num_srs): New enum constant.
5621
5622 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
5623 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
5624 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
5625 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
5626 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
5627 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
5628 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
5629 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
5630 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
5631 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
5632 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
5633 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
5634 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
5635 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
5636 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
5637 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
5638 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
5639 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
5640 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
5641 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
5642 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
5643 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
5644 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
5645 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
5646 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
5647 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
5648 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
5649 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
5650 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
5651 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
5652 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
5653 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
5654 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
5655 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
5656 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
5657 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
5658 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
5659 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
5660 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
5661 special-purpose register numbers.
5662
5663 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
5664 manual mentions 'md_twb', but many mention 'm_twb', and at that
5665 point in the register list.)
5666
5667 2004-07-14 Andrew Cagney <cagney@gnu.org>
5668
5669 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
5670 instead of "internal-error".
5671
5672 2004-07-10 Joel Brobecker <brobecker@gnat.com>
5673
5674 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
5675 that was inserted inside a comment.
5676
5677 2004-07-10 Randolph Chung <tausq@debian.org>
5678
5679 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
5680 function.
5681 (hppa_hpux_push_dummy_code): New function.
5682 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
5683 Set find_global_pointer method.
5684
5685 2004-07-10 Mark Kettenis <kettenis@gnu.org>
5686
5687 * NEWS: Mention BSD libkvm interface.
5688
5689 2004-07-10 Michael Snyder <msnyder@redhat.com>
5690
5691 * symfile.c (generic_load): Comment typo.
5692 * stack.c (get_selected_block): Ditto.
5693 * regcache.c (regcache_cooked_read): Ditto.
5694 * monitor.c (monitor_debug): Ditto.
5695 * mips-tdep.c (mips_read_pc): Ditto.
5696 * i386-linux-nat.c (ps_get_thread_area): Ditto.
5697 * gdb_mbuild.sh: Ditto.
5698 * gdbarch.sh: Ditto.
5699 * gdbarch.h: Ditto.
5700
5701 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
5702
5703 * ada-tasks.c: Remove file.
5704
5705 Remove ARI problems:
5706
5707 * ada-exp.y (write_var_from_sym): Reformat to put operator at
5708 beginning of line.
5709
5710 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
5711 Add comment.
5712 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
5713 (MIN_OF_SIZE): Rename min_of_size. Add comment.
5714 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
5715 (UMIN_OF_SIZE): Remove.
5716 (max_of_type): New function to replace orphan macro in gdbtypes.h
5717 (min_of_type): Ditto.
5718 (discrete_type_high_bound): Use max_of_type.
5719 (discrete_type_low_bound): Use min_of_type.
5720 (possible_user_operator_p): Move operator to beginning of line.
5721 (ada_is_variant_part): Ditto.
5722 (ensure_lval): Rewrite to avoid deprecated operations.
5723 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
5724 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
5725 (ada_enum_name): Remove assignments in 'if' statements.
5726 (build_ada_types): Add gdbarch parameter.
5727 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
5728 with gdbarch_data_register_post_init.
5729 Use add_setshow_uinteger_cmd rather than add_set_cmd and
5730 add_show_from_set.
5731
5732 * ada-valprint.c (inspect_it): Remove declaration.
5733 (repeat_count_threshold): Remove declaration.
5734 (ada_print_floating): Remove assignments in 'if' statements.
5735 (print_str): Move operator to beginning of line.
5736
5737 2004-07-08 Jim Blandy <jimb@redhat.com>
5738
5739 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
5740
5741 2004-07-08 Bob Rossi <bob@brasko.net>
5742
5743 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
5744
5745 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
5746
5747 * language.h (struct_language_defn): Add new function pointer:
5748 la_class_name_from_physname. Also add new prototype for
5749 language_class_name_from_physname.
5750 * language.c (language_class_name_from_physname): New function.
5751 (unk_lang_class_name): Ditto.
5752 (unknown_language_defn, auto_language_defn): Change
5753 to add unk_lang_class_name function pointer for
5754 la_class_name_from_physname.
5755 (local_language_defn): Ditto.
5756 * dwarf2read.c (guess_structure_name): Change to call
5757 language_class_name_from_physname.
5758 (determine_class_name): Ditto.
5759 * cp-support.c (class_name_from_physname): Renamed.
5760 (cp_class_name_from_physname): New name of function.
5761 * cp-support.h: Ditto.
5762 * c-lang.c (c_language_defn): Change to add NULL
5763 for class_name_from_physname function pointer.
5764 (cplus_language_defn): Change to add cp_class_name_from_physname.
5765 * jv-lang.c (java_class_name_physname): New function.
5766 (java_find_last_component): New static routine.
5767 (java_language_defn): Add java_class_name_from_physname pointer.
5768 * ada-lang.c (ada_language_defn): Change to add NULL
5769 for class_name_from_physname function pointer.
5770 * f-lang.c (f_language_defn): Ditto.
5771 * m2-lang.c (m2_language_defn): Ditto.
5772 * objc-lang.c (objc_language_defn): Ditto.
5773 * p-lang.c (pascal_language_defn): Ditto.
5774 * scm-lang.c (scm_language_defn): Ditto.
5775
5776 2004-07-06 Andrew Cagney <cagney@gnu.org>
5777
5778 Patch from Bart Robinson.
5779 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
5780 (O_LARGEFILE): Define to 0, if not defined.
5781
5782 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5783
5784 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
5785 <machine/pcb.h> and "bsd-kvm.h".
5786 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
5787 (m68kbsd_supply_pcb): New function.
5788 (_initialize_m68kbsd_nat): New prototype and function.
5789 * Makefile.in (m68kbsd-nat.o): Update dependencies.
5790 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5791 (LOADLIBES): New variable.
5792 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5793 (LOADLIBES): New variable.
5794
5795 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
5796
5797 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5798
5799 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
5800 <sys/proc.h>.
5801 (bsd_kvm_cmdlist): New variable.
5802 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
5803 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
5804 command and "kvm proc" command.
5805 * Makefile.in (bsd-kvm.o): Update dependencies.
5806
5807 2004-07-02 Mark Kettenis <kettenis@gnu.org>
5808
5809 * osabi.c: Update copyright year.
5810 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
5811 notes if EI_OSABI is set to ELFOSABI_HPUX.
5812
5813 2004-07-01 Michael Snyder <msnyder@redhat.com>
5814
5815 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
5816 that seems to have gotten whacked out of line.
5817
5818 2004-07-01 Mark Kettenis <kettenis@gnu.org>
5819
5820 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
5821 code.
5822
5823 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5824
5825 * ada-lang.c (decode_packed_array): Minor change to comment.
5826 (ada_value_slice_ptr): New function.
5827 (ada_value_slice): New function.
5828 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
5829 test. Don't know why it is there.
5830 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
5831 to avoid dereferencing huge arrays from which one is slicing.
5832 (empty_array): Correct to return an array rather than
5833 a subrange value.
5834 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
5835 on empty arrays (let'em use 'FIRST instead).
5836
5837 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5838
5839 Address complaints from gdb_ari.sh:
5840
5841 * ada-exp.y: Include gdb_string.h rather than string.h.
5842 (convert_char_literal): Reformat declaration.
5843 * ada-lang.h: Include opaque struct declaration for struct frame_info.
5844 * ada-lex.l: Change use of free to xfree (the macro would do so
5845 anyway, but this is harmless).
5846 Include gdb_string.h rather than string.h.
5847 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
5848
5849 * ada-lang.c (parse): Remove K&Rism in parameter list.
5850 (is_name_suffix): Correct Linux => GNU/Linux in comment.
5851
5852 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5853
5854 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
5855 dead code.
5856
5857 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5858
5859 * alphabsd-nat.c: Update copyright year.
5860 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
5861
5862 2004-06-29 Joel Brobecker <brobecker@gnat.com>
5863
5864 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
5865 (i386_cygwin_in_solib_call_trampoline): New function.
5866 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
5867 and skip_trampoline_code gdbarch methods.
5868
5869 2004-06-29 Jim Blandy <jimb@redhat.com>
5870
5871 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
5872 name actually used in the dependency lists.
5873
5874 2004-06-29 Randolph Chung <tausq@debian.org>
5875
5876 * NEWS (New native configurations): Mention GNU/Linux/hppa.
5877
5878 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5879
5880 * win32-nat.c (child_pid_to_exec_file): New function.
5881 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
5882 functionality.
5883
5884 2004-06-28 Andrew Cagney <cagney@gnu.org>
5885
5886 * defs.h (xstrvprintf): Declare.
5887 * utils.c (xstrvprintf): New function.
5888 (internal_vproblem, xstrprintf, xasprintf)
5889 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
5890 * serial.c (serial_printf): Ditto.
5891 * complaints.c (vcomplaint): Ditto.
5892
5893 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5894
5895 * infcmd.c (attach_command): Move call to target_terminal_inferior
5896 behind loading symbol table.
5897
5898 2004-06-28 Andrew Cagney <cagney@gnu.org>
5899
5900 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
5901 change - add back extern deprecated_ui_loop_hook declaration.
5902
5903 2004-06-28 Andrew Cagney <cagney@gnu.org>
5904
5905 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
5906 xstrprintf.
5907 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
5908 (c_value_of_variable): Ditto.
5909 * utils.c (internal_vproblem): Ditto.
5910 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
5911 * remote.c (add_packet_config_cmd): Ditto.
5912 * remote-rdp.c (rdp_set_command_line): Ditto.
5913 * regcache.c (regcache_dump): Ditto.
5914 * frv-tdep.c (new_variant, new_variant): Ditto.
5915 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
5916 (fbsd_find_memory_regions): Ditto.
5917 * breakpoint.c (create_thread_event_breakpoint)
5918 (create_breakpoints): Ditto.
5919 * aix-thread.c (aix_thread_pid_to_str): Ditto.
5920 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
5921
5922 2004-06-28 Joel Brobecker <brobecker@gnat.com>
5923
5924 * ada-lang.c: Re-indent file, with some massaging to help indent
5925 a bit when the result is otherwise really too ugly.
5926
5927 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5928
5929 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
5930 code_addr_p and special_addr_p to 'unsigned int'.
5931
5932 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5933
5934 * i386v4-nat.c: Update copyright year and tweak comment.
5935 (regmap): Remove trailing comma.
5936 (supply_gregset): Rename local variable i to regnum. Call
5937 regcache_raw_supply instead of supply_register.
5938 (fill_gregset): Rename argument regno to regnum. Call
5939 regcache_raw_collect instead of regcache_collect.
5940
5941 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5942
5943 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
5944 and special_addr_p.
5945 (frame_id_build, frame_id_build_special): Update comments.
5946 (frame_id_build_wild): New prototype.
5947 * frame.c (frame_id_build, frame_id_build_special): Fill in new
5948 struct frame_id fields.
5949 (frame_id_build_wild): New function.
5950 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
5951
5952 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5953
5954 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
5955 hppabsd-tdep.c.
5956
5957 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5958
5959 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
5960
5961 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5962
5963 * ada-lang.c: Re-indent file.
5964
5965 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5966
5967 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
5968 (no_symtab_msg): Likewise.
5969
5970 2004-06-27 Andreas Schwab <schwab@suse.de>
5971
5972 * source.c: Fix whitespace.
5973
5974 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5975
5976 * configure.in: Include <sys/param.h> for td_pcb test.
5977 * configure: Regenerated.
5978
5979 * i386nbsd-nat.c: New file.
5980 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
5981 i386obsd-nat.c and i386obsd-tdep.c.
5982 (i386nbsd-nat.o): New dependency.
5983 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
5984 bsd-kvm.o.
5985 (LOADLIBES): New variable.
5986 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
5987 bsd-kvm.o.
5988 (LOADLIBES): New variable.
5989
5990 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
5991 (LOADLIBES): New variable.
5992
5993 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
5994 fetching from BSD_KVM_PADDR. Correctly lookup address for
5995 "_thread0".
5996
5997 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
5998 "bsd-kvm.h".
5999 (amd64fbsd_supply_pcb): New funcion.
6000 (_initialize_amd64fbsd_nat): Enable libkvm interface.
6001
6002 2004-06-27 <david@streamline-computing.com>
6003
6004 Partial fix for PR cli/1056.
6005 * valarith.c: Check for zero in division and remainder
6006 evaluation.
6007
6008 2004-06-27 Mark Kettenis <kettenis@gnu.org>
6009
6010 * i387-tdep.c: Remove excessive whitespace.
6011
6012 2004-06-26 Andrew Cagney <cagney@gnu.org>
6013
6014 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
6015 * gdb-events.h, gdb-events.c: Re-generate.
6016 * tui/tui-hooks.c (tui_install_hooks): Update.
6017 (tui_remove_hooks): Update.
6018 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
6019
6020 2004-06-26 Mark Kettenis <kettenis@gnu.org>
6021
6022 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
6023 (gregset_t, fpregset_t): Remove typedefs.
6024 (REG_OFFSET): Rename argument.
6025 (amd64bsd_r_reg_offset): Rename from reg_offset.
6026 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6027 Remove functions.
6028 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
6029 of reg_offset.
6030 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
6031
6032 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
6033
6034 * vax-tdep.c: Tweak comment.
6035
6036 Add OpenBSD/hppa support.
6037 * NEWS (New native configurations): Mention OpenBSD/hppa.
6038 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
6039 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
6040 files.
6041 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
6042 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
6043 * configure.host: Add hppa*-*-openbsd*.
6044 * configure.tgt: Add hppa*-*-openbsd*.
6045
6046 2004-06-25 Andrew Cagney <cagney@gnu.org>
6047
6048 * defs.h (deprecated_ui_loop_hook): Deprecated.
6049 * wince.c (child_wait): Update.
6050 * win32-nat.c (child_wait): Update.
6051 * v850ice.c (v850ice_wait): Update.
6052 * top.c (deprecated_ui_loop_hook): Update.
6053 * serial.h: Update.
6054 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
6055 (do_unix_readchar): Update.
6056 * ser-tcp.c (net_open): Update.
6057 * remote-sim.c (gdb_os_poll_quit): Update.
6058 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
6059
6060 2004-06-24 Andrew Cagney <cagney@gnu.org>
6061
6062 * defs.h (deprecated_pre_add_symbol_hook)
6063 (deprecated_post_add_symbol_hook): Deprecated.
6064 * symfile.c (symbol_file_add_with_addrs_or_offsets)
6065 (symbol_file_add_with_addrs_or_offsets): Update references.
6066
6067 2004-06-24 Andrew Cagney <cagney@gnu.org>
6068
6069 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
6070 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
6071 * wince.c (ui_loop_hook): Delete extern declaration.
6072 * win32-nat.c (ui_loop_hook): Delete extern declaration..
6073 * v850ice.c (ui_loop_hook): Delete extern declaration..
6074 * ser-unix.c (ui_loop_hook): Delete extern declaration..
6075 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
6076 * remote-sim.c (ui_loop_hook): Delete extern declaration..
6077 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
6078 ui_loop_hook declaration.
6079
6080 2004-06-24 Andrew Cagney <cagney@gnu.org>
6081
6082 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
6083 entry_func_highpc fields.
6084 * objfiles.c (init_entry_point_info): Do not clear
6085 entry_func_lowpc and entry_func_highpc.
6086 (objfile_relocate): Do not relocate entry_func_lowpc and
6087 entry_func_highpc.
6088 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
6089 entry_func_highpc.
6090 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
6091 entry_func_highpc.
6092 * blockframe.c (legacy_frame_chain_valid): Replace tests against
6093 entry_func_lowpc and entry_func_highpc with call to
6094 inside_entry_func.
6095
6096 2004-06-24 Mark Kettenis <kettenis@gnu.org>
6097
6098 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
6099 quad-precision floating point arguments in registers.
6100
6101 2004-06-24 Mark Kettenis <kettenis@gnu.org>
6102
6103 From Michael Mueller <m.mueller99@kay-mueller.de>:
6104 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
6105 account.
6106
6107 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
6108
6109 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
6110 to -1.
6111 * breakpoint.c (bpstat_stop_status): Move check for ignoring
6112 untriggered watchpoints to a separate if clause. Update function
6113 comment regarding STOPPED_BY_WATCHPOINT argument.
6114
6115 2004-06-22 Jim Blandy <jimb@redhat.com>
6116
6117 * gdbarch.sh: Doc fix.
6118
6119 2004-06-21 Martin Hunt <hunt@redhat.com>
6120 Kevin Buettner <kevinb@redhat.com>
6121
6122 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
6123 * mips-tdep.h (MIPS_SP_REGNUM): Define.
6124 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
6125 to set_gdbarch_sp_regnum(). Use cooked register number.
6126 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
6127
6128 2004-06-21 Andrew Cagney <cagney@gnu.org>
6129
6130 * gdbarch.sh: When the macro field is empty, do not generate a
6131 macro definition. When the macro field is "=", generate the macro
6132 name from the upper-case function name.
6133 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
6134 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
6135 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
6136 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
6137 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
6138 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
6139 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
6140 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
6141 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
6142 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
6143 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
6144 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
6145 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
6146 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
6147 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
6148 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
6149 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
6150 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
6151 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
6152 (DEPRECATED_USE_STRUCT_CONVENTION)
6153 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6154 (DEPRECATED_FRAME_INIT_SAVED_REGS)
6155 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
6156 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
6157 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
6158 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
6159 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
6160 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
6161 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
6162 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
6163 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
6164 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
6165 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
6166 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
6167 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
6168 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
6169 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
6170 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
6171
6172 2004-06-21 Andrew Cagney <cagney@gnu.org>
6173
6174 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
6175 macro name, and the function rather than macro value. Only wrap
6176 macro print statements in #ifdef. Move format logic to where it
6177 is needed.
6178 * gdbarch.c: Re-generate.
6179
6180 * gdbarch.sh (read): Delete "print_p" and "description", add
6181 "garbage_at_eol". Check for non-empty garbage at end-of-line.
6182 Delete references to print_p.
6183 (TARGET_ARCHITECTURE): Delete print predicate.
6184 * gdbarch.c: Re-generate.
6185
6186 * gdbarch.sh: Check that multi-arch methods do not provide a
6187 macro.
6188 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
6189 (print_registers_info, print_float_info, print_vector_info)
6190 (adjust_breakpoint_address, remote_translate_xfer_address)
6191 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
6192 (address_class_type_flags_to_name, unwind_sp): Remove the macro
6193 name from the multi-arch definition.
6194
6195 2004-06-20 Andrew Cagney <cagney@gnu.org>
6196
6197 * gdbarch.sh: Sort by the function, instead of macro name.
6198 * gdbarch.c: Re-generate.
6199
6200 2004-06-20 Andrew Cagney <cagney@gnu.org>
6201
6202 * gdbarch.sh: Use the function, instead of macro name in
6203 errors and the log file.
6204 (return_value): Remove stray ":" in spec.
6205
6206 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
6207 * gdbarch.h, gdbarch.c: Re-generate.
6208 * Makefile.in (arch-utils.o): Update dependencies.
6209 * values.c (using_struct_return): Move code calling
6210 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
6211 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
6212 to legacy_return_value, simplify.
6213 * infcmd.c (print_return_value): Move code calling
6214 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
6215 to legacy_return_value, simplify.
6216 * infcall.c (call_function_by_hand): Move code calling
6217 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
6218 * arch-utils.c: Update copyright. Include "gdbcore.h".
6219 (legacy_return_value): New function.
6220 * arch-utils.h: Update copyright.
6221 (legacy_return_value): Declare.
6222
6223 2004-06-20 Andrew Cagney <cagney@gnu.org>
6224
6225 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
6226 * gdbarch.h, gdbarch.c: Re-generate.
6227 * values.c (using_struct_return): Update call.
6228 * mcore-tdep.c: Update comment.
6229 * infcall.c (call_function_by_hand): Update comment.
6230 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6231 * arch-utils.h (always_use_struct_convention): Update.
6232 * v850-tdep.c (v850_gdbarch_init): Update.
6233 * sh64-tdep.c (sh64_gdbarch_init): Update.
6234 * sh-tdep.c (sh_gdbarch_init): Update.
6235 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6236 * mips-tdep.c (mips_gdbarch_init): Update.
6237 * mcore-tdep.c (mcore_gdbarch_init): Update.
6238 * m32r-tdep.c (m32r_gdbarch_init): Update.
6239 * ia64-tdep.c (ia64_gdbarch_init): Update.
6240 * h8300-tdep.c (h8300_gdbarch_init): Update.
6241 * frv-tdep.c (frv_gdbarch_init): Update.
6242 * cris-tdep.c (cris_gdbarch_init): Update.
6243 * arm-tdep.c (arm_gdbarch_init): Update.
6244 * alpha-tdep.c (alpha_gdbarch_init): Update.
6245
6246 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
6247
6248 * PROBLEMS: Add more specific information, and a work-around,
6249 for PR gdb/1458.
6250
6251 2004-06-18 Andrew Cagney <cagney@gnu.org>
6252
6253 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
6254 * gdbarch.h, gdbarch.c: Re-generate.
6255 * ada-lang.c (ada_finish_decode_line_1): Update.
6256 * infrun.c (handle_inferior_event): Update.
6257 * infcall.c (find_function_addr): Update.
6258 * linespec.c (minsym_found): Update.
6259 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
6260 Update.
6261 * blockframe.c (legacy_frameless_look_for_prologue): Update.
6262 * cli/cli-cmds.c (disassemble_command): Update.
6263 * vax-tdep.c (vax_gdbarch_init): Update.
6264
6265 2004-06-18 Mark Kettenis <kettenis@gnu.org>
6266
6267 * i386-tdep.c (i386_collect_fpregset): Fix comment.
6268
6269 2004-06-17 Andrew Cagney <cagney@gnu.org>
6270
6271 GDB 6.1.1 released from the GDB 6.1 branch.
6272 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
6273 * PROBLEMS: Ditto.
6274
6275 2004-06-16 Daniel Jacobowitz <dan@debian.org>
6276
6277 PR gdb/1658
6278 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
6279 operation as a uleb128. Found by Michael Coulter.
6280
6281 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
6282
6283 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
6284 make it non-static.
6285 * ada-lang.h (task_control_block): declaration moved from ada-task.c
6286 to ada-lang.h; this is needed to be able to implement the kill command
6287 in multi-task mode.
6288 (task_ptid): Ditto.
6289 (task_entry): Ditto.
6290 (task_list): Ditto.
6291 (ada_build_task_list): Ditto.
6292
6293 * ada-lang.c: Conditionalize routines and data structures related
6294 to breakpoints, exceptions, completion, and symbol caching on
6295 GNAT_GDB, since these are not yet used in the submitted public sources.
6296 (ada_main_name): Editorial: Move definition out of exception-related
6297 code.
6298
6299 2004-06-15 Andrew Cagney <cagney@gnu.org>
6300
6301 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
6302 deprecated_pc_in_call_dummy.
6303
6304 2004-06-15 Alan Modra <amodra@bigpond.net.au>
6305
6306 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
6307 bfd_get_section_size_before_reloc or _raw_size.
6308 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
6309 * dwarf2read.c (dwarf2_locate_sections): Likewise.
6310 (dwarf2_read_section): Likewise.
6311 * elfread.c (elf_locate_sections): Likewise.
6312 * gcore.c (derive_heap_segment): Likewise.
6313 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
6314 * remote-e7000.c (e7000_load): Likewise.
6315 * remote-m32r-sdi.c (m32r_load): Likewise.
6316 * remote-mips.c (mips_load_srec): Likewise.
6317 (pmon_load_fast): Likewise.
6318 * remote.c (compare_sections_command): Likewise.
6319 * symfile.c (add_section_size_callback): Likewise.
6320 (load_section_callback): Likewise.
6321 (pc_in_unmapped_range): Likewise.
6322 (pc_in_mapped_range): Likewise.
6323 (sections_overlap): Likewise.
6324 (list_overlays_command): Likewise.
6325 (simple_overlay_update_1): Likewise.
6326 (simple_overlay_update): Likewise.
6327 * tracepoint.c (remote_set_transparent_ranges): Likewise.
6328 * win32-nat.c (core_section_load_dll_symbols): Likewise.
6329
6330 2004-06-14 Randolph Chung <tausq@debian.org>
6331
6332 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
6333 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
6334 static.
6335 (hppa_hpux_inferior_created): New function.
6336 (hppa_hpux_init_abi): Register observer.
6337 * symfile.c (hp_cxx_exception_support_initialized)
6338 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
6339 (symbol_file_add_main_1, symbol_file_clear): Likewise.
6340
6341 2004-06-14 Randolph Chung <tausq@debian.org>
6342
6343 * MAINTAINERS (Write After Approval): Alphabetize my entry
6344 correctly.
6345
6346 2004-06-14 Andrew Cagney <cagney@gnu.org>
6347
6348 * MAINTAINERS (testsuite): List Michael Chastain as the lead
6349 testsuite maintainer.
6350
6351 2004-06-13 Andrew Cagney <cagney@gnu.org>
6352
6353 * infcmd.c (print_return_value): Fix logic, allow
6354 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
6355
6356 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
6357 defining any macros.
6358 * gdbarch.h: Re-generate.
6359
6360 * gdbarch.sh: Delete "level" attribute. Only check for a macro
6361 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
6362 * gdbarch.h: Re-generate.
6363
6364 * values.c (generic_use_struct_convention): Don't check gcc_p.
6365
6366 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
6367 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
6368 * gdbarch.h, gdbarch.c: Regenerate.
6369 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
6370 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
6371 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6372 deprecated_max_register_raw_size and
6373 deprecated_max_register_virtual_size.
6374 * v850-tdep.c (v850_gdbarch_init): Ditto.
6375 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6376 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6377 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6378 * cris-tdep.c (cris_gdbarch_init): Ditto.
6379
6380 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
6381 * gdbarch.h, gdbarch.c: Re-generate.
6382 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
6383 (m68hc11_use_struct_convention): Delete function.
6384 (m68hc11_extract_struct_value_address): Delete function.
6385 (m68hc11_return_value): New function.
6386 (m68hc11_gdbarch_init): Instead of store_return_value,
6387 extract_return_value, return_value_on_stack,
6388 deprecated_extract_struct_value_address and use_struct_convention,
6389 set return_value.
6390 * values.c (using_struct_return): Do not call
6391 RETURN_VALUE_ON_STACK.
6392 * arch-utils.h (generic_return_value_on_stack_not): Delete
6393 declaration.
6394 * arch-utils.c (generic_return_value_on_stack_not): Delete
6395 function.
6396
6397 2004-06-12 Andrew Cagney <cagney@gnu.org>
6398
6399 * values.c (register_value_being_returned): Delete function.
6400 * infcmd.c (legacy_return_value): Delete function.
6401 * infcall.c (call_function_by_hand): Inline
6402 "register_value_being_returned", simplify.
6403 * values.c (using_struct_return): Update comment, refer to
6404 print_return_value instead of register_value_being_returned.
6405 * infcmd.c (print_return_value): Inline calls to
6406 register_value_being_returned and legacy_return_value. Simplify.
6407
6408 2004-06-11 Randolph Chung <tausq@debian.org>
6409
6410 * somread.c (som_symtab_read): Exclude gcc local symbols.
6411
6412 2004-06-11 Randolph Chung <tausq@debian.org>
6413
6414 * infrun.c (handle_inferior_event): Handle the case when a
6415 trampoline ends up in the runtime resolver, and if the trampoline
6416 has no name. Rearrange the code so that all the trampoline
6417 processing happens before other step-out-of-range handling.
6418
6419 2004-06-11 Martin Hunt <hunt@redhat.com>
6420
6421 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
6422 has no fpu.
6423
6424 2004-06-10 Andrew Cagney <cagney@gnu.org>
6425
6426 * blockframe.c (legacy_inside_entry_func): Delete.
6427 (legacy_frame_chain_valid): Inline call to
6428 legacy_inside_entry_func, simplify.
6429
6430 2004-06-10 Bob Rossi <bob@brasko.net>
6431
6432 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
6433 * dwarf2read.c (partial_die_info): Add dirname field.
6434 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
6435 (read_partial_die): Save away DW_AT_comp_dir.
6436 * defs.h (symtab_to_filename): Removed.
6437 * source.c (find_and_open_source): Added.
6438 (open_source_file): Just calls find_and_open_source.
6439 (symtab_to_filename): Removed.
6440 (symtab_to_fullname, psymtab_to_fullname): Added.
6441 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
6442 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
6443 symtab_to_filename.
6444 * symtab.h (partial_symtab): Add dirname field.
6445 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
6446 (mi_cmd_file_list_exec_source_file): Call new function
6447 symtab_to_fullname to find fullname.
6448 (mi_cmd_file_list_exec_source_files): Added.
6449 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
6450 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
6451
6452 2004-06-10 Andrew Cagney <cagney@gnu.org>
6453
6454 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
6455 to generic_use_struct_convention, the default value.
6456
6457 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
6458 of abort.
6459
6460 * ns32k-tdep.c (ns32k_push_arguments): New function.
6461 (ns32k_gdbarch_init): Set deprecated_push_arguments.
6462 * infcall.c (call_function_by_hand): Call error instead of
6463 legacy_push_arguments.
6464 * value.h (legacy_push_arguments): Delete declaration.
6465 * valops.c (legacy_push_arguments): Delete function.
6466 (value_push): Delete function.
6467
6468 2004-06-10 Brian Ford <ford@vss.fsi.com>
6469
6470 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
6471 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
6472 info.
6473 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
6474
6475 2004-06-10 Andrew Cagney <cagney@gnu.org>
6476
6477 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
6478 * gdbarch.h, gdbarch.c: Re-generate.
6479 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
6480 parameters.
6481 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
6482 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
6483 deprecated_pc_in_call_dummy instead of
6484 DEPRECATED_PC_IN_CALL_DUMMY.
6485 (arm_skip_prologue): Ditto.
6486 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
6487 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
6488 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
6489 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
6490 Ditto.
6491 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
6492 (sh64_init_extra_frame_info, sh64_get_saved_register)
6493 (sh64_pop_frame): Ditto.
6494 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
6495 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
6496 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
6497 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
6498 (h8300_pop_frame): Ditto.
6499 * blockframe.c (legacy_inside_entry_func)
6500 (legacy_frame_chain_valid): Ditto.
6501 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
6502 to deprecated_pc_in_call_dummy.
6503
6504 2004-06-09 Andrew Cagney <cagney@gnu.org>
6505
6506 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
6507 provide a default value.
6508 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
6509 * gdbarch.h, gdbarch.c: Re-generate.
6510 * arch-utils.c (generic_convert_register_p): Rename
6511 legacy_convert_register_p
6512 (legacy_register_to_value, legacy_value_to_register): Delete
6513 functions.
6514 * arch-utils.h (generic_convert_register_p): Rename
6515 legacy_convert_register_p.
6516 (legacy_register_to_value, legacy_value_to_register): Delete
6517 declarations.
6518
6519 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
6520 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
6521 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
6522 * gdbarch.h, gdbarch.c: Re-generate.
6523 * infcmd.c (default_print_registers_info): Simplify.
6524 * findvar.c (value_of_register): Simplify.
6525 * mi/mi-main.c (get_register): Simplify.
6526 * arch-utils.c (legacy_convert_register_p): Always return 0.
6527 (legacy_register_to_value, legacy_value_to_register): Always call
6528 internal_error.
6529
6530 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
6531 #ifdef CLEAR_INSN_CACHE code.
6532 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
6533 Delete #ifdef CLEAR_DEFERRED_STORES code.
6534
6535 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
6536
6537 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
6538 copyright.
6539 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
6540
6541 * config/mips/mipsv4.mh: Delete file.
6542
6543 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
6544 unreferenced macro.
6545 (hpread_adjust_stack_address): Delete declaration.
6546
6547 2004-06-08 Andrew Cagney <cagney@gnu.org>
6548
6549 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6550 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
6551 PTRACE_ATTACH / PTRACE_DETACH available call error.
6552 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
6553 * infttrace.c (update_thread_state_after_attach, attach, detach):
6554 Remove #ifdef wrappers.
6555 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
6556 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6557 * config/nm-bsd.h (ATTACH_DETACH): Delete.
6558 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
6559 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
6560 * config/nm-linux.h (ATTACH_DETACH): Delete.
6561 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
6562 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
6563 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
6564 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
6565 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
6566
6567 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
6568
6569 * configure.in: Set $configdir to the right OS specific value.
6570 Use value when setting $tcldir and $tkdir.
6571 * configure: Regenerate.
6572
6573 2004-06-06 Paul Brook <paul@codesourcery.com>
6574
6575 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
6576 records.
6577
6578 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
6579
6580 * ada-lang.c (lookup_symbol_in_language): New function to allow
6581 re-use of another language's symbol lookup code. (Placed here
6582 temporarily while Ada support is being integrated into the public
6583 tree).
6584 (restore_language): New auxiliary function for
6585 lookup_symbol_in_language.
6586 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
6587 temporarily while Ada support is being integrated into the public
6588 tree).
6589
6590 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
6591
6592 * Makefile.in (check//%): New.
6593
6594 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
6595 (mn10300_store_return_value): Rewrite.
6596 (mn10300_type_align): New.
6597 (mn10300_use_struct_convention): Rewrite.
6598 (mn10300_return_value): New, using all of the above.
6599 (mn10300_pop_frame_regular): Add saved_regs_size.
6600 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
6601
6602 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
6603 regs if PC is on movm.
6604
6605 2004-06-07 Jim Blandy <jimb@redhat.com>
6606
6607 Add native Linux support for the PowerPC E500.
6608 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
6609 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
6610 all architectures except the E500.
6611 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
6612 #definitions.
6613 (struct gdb_evrregset_t): New type.
6614 (have_ptrace_getsetevrregs): New variable.
6615 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
6616 fetch_spe_registers): New functions.
6617 (fetch_register): Call fetch_spe_register as appropriate.
6618 Assert that we're only passed raw register numbers.
6619 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
6620 Don't fetch gprs if they're pseudoregisters.
6621 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
6622 store_spe_registers): New functions.
6623 (store_register): Call store_spe_register as appropriate.
6624 Assert that we're only passed raw register numbers.
6625 (store_ppc_registers): Call store_spe_registers as appropriate.
6626 Don't store gprs if they're pseudoregisters.
6627
6628 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
6629
6630 * thread-db.c (thread_get_info_callback): Fill in the thread_info
6631 struct if one exists, even if we are dealing with a zombie thread.
6632
6633 2004-06-07 Andrew Cagney <cagney@gnu.org>
6634
6635 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
6636 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
6637 Rename PC_REQUIRES_RUN_BEFORE_USE.
6638 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
6639 #ifdef.
6640
6641 2004-06-07 Randolph Chung <tausq@debian.org>
6642
6643 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
6644 unwinding after sp has been saved to the stack but before the end
6645 of the prologue, and after the fp has been modified but before it has
6646 been saved to the stack.
6647 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
6648 Remove superfluous definitions.
6649 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
6650
6651 2004-06-07 Guy Martin <gmsoft@gentoo.org>
6652
6653 Committed by Randolph Chung.
6654 * hppa-linux-nat.c: Include the correct version of the header file
6655 depending on the kernel version.
6656
6657 2004-06-06 Randolph Chung <tausq@debian.org>
6658
6659 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
6660 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
6661
6662 2004-06-06 Randolph Chung <tausq@debian.org>
6663
6664 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6665 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
6666 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
6667 * hppa-tdep.c (hppa_symbol_address): New function definition.
6668 * hppa-tdep.h (hppa_symbol_address): New function declaration.
6669
6670 2004-06-06 Randolph Chung <tausq@debian.org>
6671
6672 * hppa-tdep.h (struct value): Forward declaration.
6673 (gdbarch_tdep): Define tdep find_global_pointer method.
6674 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
6675 associated with the function we are trying to call, and write it
6676 to the gp register.
6677 (hppa32_convert_from_funct_ptr_addr): New function.
6678 (hppa_find_global_pointer): New function.
6679 (hppa_gdbarch_init): Set default find_global_pointer method; set
6680 convert_from_func_ptr_addr method.
6681 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
6682 (hppa_linux_init_abi): Set find_global_pointer method.
6683 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
6684
6685 2004-06-06 Randolph Chung <tausq@debian.org>
6686
6687 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
6688 to struct value *function.
6689 * gdbarch.c: Regenerate.
6690 * gdbarch.h: Likewise.
6691 * infcall.c (call_function_by_hand): Pass entire function value
6692 to push_dummy_call.
6693
6694 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
6695 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
6696 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
6697 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
6698 * arm-tdep.c (arm_push_dummy_call): Likewise.
6699 * avr-tdep.c (avr_push_dummy_call): Likewise.
6700 * cris-tdep.c (cris_push_dummy_call): Likewise.
6701 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
6702 * frv-tdep.c (frv_push_dummy_call): Likewise.
6703 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
6704 * hppa-tdep.c (hppa32_push_dummy_call)
6705 (hppa64_push_dummy_call): Likewise.
6706 * i386-tdep.c (i386_push_dummy_call): Likewise.
6707 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
6708 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
6709 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
6710 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
6711 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
6712 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6713 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
6714 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
6715 (ppc64_sysv_abi_push_dummy_call): Likewise.
6716 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
6717 (ppc64_sysv_abi_push_dummy_call): Likewise.
6718 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6719 * s390-tdep.c (s390_push_dummy_call): Likewise.
6720 * sh-tdep.c (sh_push_dummy_call_fpu)
6721 (sh_push_dummy_call_nofpu): Likewise.
6722 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
6723 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
6724 * vax-tdep.c (vax_push_dummy_call): Likewise.
6725
6726 2004-06-04 Jim Blandy <jimb@redhat.com>
6727
6728 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
6729 gdbarch argument to register_size.
6730
6731 * rs6000-tdep.c (rs6000_store_return_value): Use
6732 regcache_cooked_write_part instead of
6733 deprecated_write_register_bytes.
6734 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
6735 not gdbarch_deprecated_store_return_value.
6736
6737 * ppc-linux-nat.c (store_register, fetch_register): Remove
6738 incorrect assertions. Simplify and generalize handling of
6739 transfers whose sizes are not multiples of, or less than, sizeof
6740 (PTRACE_XFER_TYPE).
6741
6742 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
6743
6744 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
6745 as a new thread event.
6746 * thread-db.c (thread_get_info_callback): If the thread is a
6747 zombie, return TD_THR_ZOMBIE.
6748 (thread_from_lwp): If thread_get_info_callback returns
6749 TD_THR_ZOMBIE, check if the thread is still on the thread list
6750 and return a -1 ptid if not found.
6751 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
6752 change the status to TARGET_WAITKIND_SPURIOUS.
6753
6754 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
6755
6756 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
6757 double values in little endian mode.
6758
6759 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
6760
6761 Committed by Andrew Cagney.
6762 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
6763 after last enum constant to avoid error from IBM C
6764 compiler.
6765
6766 2004-06-02 Jim Blandy <jimb@redhat.com>
6767
6768 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
6769 to 'message', and make it local to the lone block that uses it.
6770
6771 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
6772
6773 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
6774
6775 * ada-exp.y: Update copyright notice.
6776 Include block.h.
6777
6778 Replace REGNAME, LAST, INTERNAL_VARIABLE with
6779 SPECIAL_VARIABLE and unify the treatment of these cases.
6780
6781 (write_attribute_call0): Remove.
6782 (write_attribute_call1): Remove.
6783 (write_attribute_calln): Remove.
6784 (save_qualifier): Add missing semicolon.
6785
6786 (simple_exp,exp): Decomment (i.e., reactivate) code that was
6787 temporarily disabled to allow compilation with FSF head version.
6788
6789 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
6790 use individual operators (OP_*) for all attributes.
6791 (exp syntax): Use write_int.
6792 Handle STRING literals with OP_STRING.
6793 (variable syntax): Add limit parameter to calls to
6794 write_object_renaming.
6795
6796 (temp_parse_space): New definition to hold entities that need
6797 only live until the next call to ada_parse.
6798 (string_to_operator): Rename fields of ada_opname_table entries.
6799
6800 (write_var_from_sym): Record block.
6801 (write_var_from_name): Minor reformatting.
6802 Make sure saved name is properly encoded in the case of multiple
6803 matches, and set its language to Ada.
6804 Update comment.
6805 Modify to indicate unresolved name as symbol in the UNRESOLVED
6806 namespace, allocated in temp_parse_space.
6807 (write_int): New function.
6808
6809 (write_object_renaming): Add max_depth parameter to limit
6810 chains of object renamings.
6811 Handle case where root of renaming expression is itself a renaming.
6812 Use temp_parse_space for temporary name buffer.
6813 Handle renamings to dereferenced pointers (___XEXA suffices).
6814
6815 (ada_parse, yyerror, string_to_operator,
6816 write_var_from_sym, write_var_from_name, write_attribute_call0,
6817 write_attribute_call1, write_attribute_calln,
6818 write_object_renaming): Protoize.
6819
6820 (_initialize_ada_exp): New function.
6821
6822 * ada-lang.c: Update copyright notice.
6823 General terminology change to conform to GNAT compiler usage:
6824 mangle => encode, demangle => decode
6825 Include gdb_obstack.h.
6826 Include gdb_regex.h
6827 Include frame.h
6828 Include hashtab.h
6829 Include completer.h
6830 Include gdb_stat.h
6831 Include block.h
6832 Include infcall.h
6833
6834 (ADA_RETAIN_DOTS): Make sure this is defined.
6835 (TRUNCATION_TOWARDS_ZERO): Define.
6836 (struct string_vector): Define.
6837 (unresolved_names): Remove definition.
6838 (xnew_string_vector): New function.
6839 (string_vector_append): New function.
6840 (extract_string): Make static.
6841 (ada_unqualified_name): New function.
6842 (add_angle_brackets): New function.
6843 (function_name_from_pc): New function.
6844 (place_on_stack): Rename to ensure_lval.
6845
6846 (ensure_lval): Renamed from place_on_stack.
6847 Make identity on lvals.
6848 Update comment.
6849 (is_nonfunction): New interface.
6850 Only symbols in LOC_CONST class can be enumerals.
6851 (fill_in_ada_prototype): Remove; now independent of language.
6852 (add_defn_to_vec): Add obstack and symtab arguments.
6853 Use obstack to hold collected definitions.
6854 (num_defns_collected): New function.
6855 (defns_collected): New function.
6856 (ada_resolve_subexp): Rename to resolve_subexp.
6857 (resolve_subexp): Renamed from ada_resolve_subexp.
6858 (ada_op_name): Return non-const result.
6859 (ada_decoded_op_name): Renamed from ada_op_name, now used for
6860 other purposes.
6861
6862 (to_fixed_array_type): Add declaration.
6863 (coerce_unspec_val_to_type): Remove offset parameter.
6864 (find_sal_from_funcs_and_line): New interface.
6865 (find_line_in_linetable): Ditto.
6866
6867 (all_sals_for_line): Rename to ada_sals_for_line and make
6868 global.
6869 Add new parameter. When set, do not ask the user to choose the
6870 instance, but use the first one found instead.
6871 Use given line number in returned sals.
6872 Fix comment.
6873 Skip the prologue if funfirstline is set.
6874 Correct for memory leak when 0 lines found.
6875
6876 (value_pos_atr): Use pos_atr.
6877 (pos_atr): New function.
6878 (standard_lookup): Add block parameter.
6879
6880 (makeTimeStart): Remove declaration and uses.
6881 (makeTimeStop): Remove declaration and uses.
6882
6883 (ada_completer_word_break_characters): Allow for VMS.
6884 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
6885 (raise_sym_name): New constant.
6886 (raise_unhandled_sym_name): New constant.
6887 (raise_assert_sym_name): New constant.
6888 (process_raise_exception_name): New constant.
6889 (longest_exception_template): New constant.
6890 (warning_limit): New variable to limit warnings during expression
6891 evaluation.
6892 (warnings_issued): New variable to keep track of warnings issued.
6893 (known_runtime_file_name_patterns): New constant.
6894 (known_auxiliary_function_name_patterns): New constant.
6895 (symbol_list_obstack): New variable.
6896
6897 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
6898 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
6899 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
6900 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
6901 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
6902 ada_variant_discrim_name, field_alignment, dynamic_template_type,
6903 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
6904 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
6905 and strcmp.
6906
6907 (ada_get_field_index): New function.
6908 (lim_warning): New function.
6909 (ada_translate_error_message): New function.
6910 (MAX_OF_SIZE): New function.
6911 (MIN_OF_SIZE): New function.
6912 (UMAX_OF_SIZE): New function.
6913 (UMIN_OF_SIZE): New function.
6914 (discrete_type_high_bound): New function.
6915 (discrete_type_low_bound): New function.
6916 (base_type): New function.
6917 (do_command): Remove.
6918
6919 (ada_update_initial_language): Use language_ada, not language_unknown.
6920 (ada_encode): Renamed from ada_mangle.
6921 Obey ADA_RETAIN_DOTS.
6922 (ada_decode): Renamed from ada_demangle.
6923 Update coding conventions.
6924 (decoded_names_store): New hash table.
6925 (ada_decode_symbol): New function.
6926 (ada_la_decode): New function.
6927
6928 (modify_general_field): Correct computations of offset and bit
6929 position.
6930 (desc_base_type): Handle ref types, too.
6931 (ada_is_direct_array_type): New function.
6932
6933 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6934 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6935 (ada_is_bogus_array_descriptor,ada_type_of_array,
6936 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
6937 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
6938 ada_is_array_descriptor_type.
6939
6940 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
6941 (ada_is_packed_array_type): Handle pointers or
6942 references to packed arrays as well.
6943 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
6944 (decode_packed_array_type): Search for the packed array type
6945 symbol in the currently selected block and associated
6946 superblocks too.
6947 Use lookup_symbol again.
6948
6949 (decode_packed_array): Handle pointers and references.
6950 Update call to coerce_unspec_val_to_type.
6951 (decode_packed_array_type,value_subscript_packed): Limit warnings.
6952 (ada_value_primitive_packed_val): Improve comment.
6953
6954 (ada_index_type): Substitute int type for "undefined".
6955 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
6956 ada_array_langth, ada_is_string_type): Use renamed
6957 ada_is_simple_array_type.
6958 (empty_array): New function.
6959
6960 (ada_resolve): Rename to resolve.
6961 (resolve): Make static.
6962 Call renamed resolve_subexp.
6963 Update comment.
6964 (ada_resolve_subexp): Rename to resolve_subexp.
6965 (resolve_subexp): Update comment.
6966 Decomment disabled code.
6967 Add LOC_COMPUTED* cases.
6968 Modify to use temporary struct symbols (marked as being in
6969 UNDEF_NAMESPACE) to indicate unresolved names, instead of
6970 OP_UNRESOLVED_VALUE.
6971 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
6972 Add OP_STRING case.
6973 Remove OP_ARRAY.
6974 Use SYMBOL_PRINT_NAME instead of ada_demangle.
6975 Use new ada_lookup_symbol_list interface.
6976 Use new ada_resolve_function interface.
6977 Remove OP_TYPE case.
6978
6979 (ada_args_match): Idiot proof against null actuals.
6980 Use intermediate variables to clarify.
6981 (ada_resolve_function): Update comment and interface.
6982 (mangled_ordered_before): Rename to encoded_ordered_before and
6983 update comment.
6984 (sort_choices): Update comment and interface.
6985 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
6986 (user_select_syms): New interface.
6987 Use new sort_choices interface.
6988 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
6989 (possible_user_operator_p): Idiot-proof against null values.
6990 (ada_simple_renamed_entity): Don't make cleanup; rely on
6991 caller to free result string.
6992 Remove const from return type.
6993 (make_array_descriptor): Rename uses of place_on_stack to
6994 ensure_lval.
6995 Make sure that arrays are on stack.
6996
6997 (HASH_SIZE): Define.
6998 (struct cache_entry): Define.
6999 (cache_space): Define.
7000 (cache): Define.
7001 (clear_ada_sym_cache): New function.
7002 (find_entry): New function.
7003 (lookup_cached_symbol): New function.
7004 (defn_vector_size): Define.
7005 (cache_symbol): New function.
7006 (defn_symbols): Remove.
7007
7008 (standard_lookup): Use lookup_symbol_in_language to get effect of
7009 C lookup.
7010 Cache results.
7011
7012 (symbol_completion_match): New function.
7013 (symbol_completion_add): New function.
7014 (ada_make_symbol_completion_list): New function.
7015
7016 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
7017 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
7018 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
7019 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
7020
7021 (ada_lookup_simple_minsym): New function.
7022 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
7023
7024 (add_symbols_from_enclosing_procs): New interface.
7025 Conditionalize more helpfully.
7026 Don't bother if program isn't running.
7027 Use new interface to get_frame_block.
7028 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
7029
7030 (remove_extra_symbols): New interface.
7031 (xget_renaming_scope): New function.
7032 (is_package_name): New function.
7033 (renaming_is_visible): New function.
7034 (remove_out_of_scope_renamings): New function.
7035
7036 (ada_lookup_symbol_list): New interface.
7037 Properly reinitialize the symbol list obstack.
7038 Don't call add_symbols_from_enclosing_procs if we start from a
7039 static or global block.
7040 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
7041 add_symbols_from_enclosing_procs.
7042 Add symtab data to cached entries.
7043 Handle symbols prefixed with
7044 "standard__" specially; strip prefix and don't look in local symbols.
7045 Do not include out of scope renaming symbols in list of
7046 symbols returned.
7047 Add const to block parameter.
7048 Move check for non-local, non-global symbols earlier.
7049 Remove timing stuff.
7050 (ada_lookup_symbol): New interface.
7051 Find symtab as well.
7052 (ada_lookup_symbol_nonlocal): New function.
7053
7054 (is_name_suffix): Enhance suffix detection to recognize
7055 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
7056 (is_dot_digits_suffix): New function.
7057 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
7058
7059 (ada_add_block_symbols): New interface. Use obstack to return results
7060 in a vector of struct ada_symbol_infos. Add symtab argument.
7061 Use new interface to add_defn_to_vec.
7062 Remove calls to fill_in_ada_prototype.
7063 Use BLOCK_BUCKETS, BLOCK_BUCKET.
7064
7065 (ada_finish_decode_line_1): Add const qualification to local to fix
7066 warning.
7067 Start looking in static block for functions to avoid attempts
7068 to search frame chain for up-level variables.
7069 Adapt to new ada_sals_for_line interface.
7070 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
7071 Handle quoting of the function name inside the spec string.
7072 Skip prologue when funfirstline is set and update the
7073 function documentation to that effect.
7074
7075 (debug_print_lines, debug_print_block, debug_print_blocks,
7076 debug_print_symtab): Remove.
7077
7078 (ada_main_name): New function.
7079 (ada_exception_breakpoint_type): New function.
7080 (is_known_support_routine): New function.
7081 (ada_find_printable_frame): Renamed from find_printable_frame and made
7082 global.
7083 Remove level parameter.
7084 Use new interface to select_frame.
7085
7086 (begin_command): Remove.
7087 (ada_adjust_exception_stop): New function.
7088 (ada_print_exception_stop): New function.
7089 (exception_name_from_cond): New function.
7090 (ada_report_exception_break): Replace disabled code with
7091 conditionalization on GNAT_GDB.
7092 Get the exception name from the condition string.
7093 Remove and move functionality into new functions
7094 ada_print_exception_breakpoint_task and
7095 ada_print_exception_breakpoint_nontask.
7096 (error_breakpoint_runtime_sym_not_found): New function.
7097 (is_runtime_sym_defined): New function.
7098 (ada_breakpoint_rewrite): Uncomment suppressed code.
7099 Use symbolic error-message and runtime-symbol names.
7100 Surround runtime symbol names in quotes.
7101 Allow non-specific breakpoints on exceptions and assertions before
7102 program starts.
7103
7104 (ada_is_tagged_type): Add parameter.
7105 (ada_is_tag_type): New function.
7106 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
7107 (ada_variant_discrim_type): Ditto.
7108 (value_tag_from_contents_and_address): New function.
7109 (type_from_tag): New function.
7110 (struct tag_args): New structure used to communicate with
7111 ada_tag_name_1.
7112 (ada_tag_name_1): New function.
7113 (ada_tag_name): New function.
7114
7115 (ada_scan_number): Update comment.
7116 (find_struct_field): New function.
7117 (ada_search_struct_field): Make static.
7118 (ada_value_struct_elt): New version that returns references when
7119 given pointers or references to structs.
7120 (ada_lookup_struct_elt_type): Add 'refok' parameter.
7121 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
7122 interface.
7123 (ada_value_ind): Use new ada_to_fixed_value interface.
7124 (ada_coerce_ref): Ditto.
7125 (field_offset): Remove.
7126
7127 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
7128 (ada_find_renaming_symbol): New function.
7129 (ada_prefer_type): Prefer named types over unnamed ones.
7130 (variant_field_index): New function.
7131 (contains_variant_part): Removed: subsumed by variant_field_index.
7132 (ada_template_to_fixed_record_type): New function, mostly from
7133 template_to_fixed_record_type.
7134 (template_to_fixed_record_type):
7135 Do not scan the type fields beyond the last one; prevents a
7136 potential SEGV.
7137 Handle case where variant field is listed BEFORE discriminant it
7138 depends on.
7139 Fix calculation of record length when bit length is
7140 not evenly divisible by char length.
7141 Move code to ada_template_to_fixed_record_type and call it.
7142
7143 (template_to_static_fixed_type): Revise comment.
7144 Modify to work on ordinary record types as well as templates,
7145 so as to handle fields that use ___XVE or ___XVU encodings.
7146 (to_record_with_fixed_variant_part): Fill out comment.
7147 Initialize C++ stuff in right type.
7148 Allow case where DVAL is null.
7149 Handle case where variant field is not last.
7150 Fix typo concerning record length.
7151 (to_fixed_record_type): Decomment disabled code.
7152 (to_fixed_record_type): Use variant_field_index instead of
7153 contains_variant_part.
7154 (to_fixed_variant_branch_type): Ditto.
7155 (to_fixed_array_type): Decomment disabled code.
7156 (ada_to_fixed_type): Convert tagged types to the specific type.
7157 Deactivate the size-check for array types in order to avoid
7158 some false size alarms.
7159 (to_static_fixed_type): Decomment disabled code.
7160 Modify to call template_to_static_fixed_type
7161 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
7162 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
7163 Remove valaddr argument, as it is never really used.
7164 (ada_to_fixed_value): Change interface to act on single struct value*
7165 operand.
7166 (adjust_pc_past_prologue): New function.
7167 (ada_attribute_name): Modify to take enum exp_opcode argument.
7168
7169 (ada_enum_name): Recognize new homonym-distinguishing convention.
7170 Adjust local variable's type to remove compiler warning.
7171 Fix a small problem in the part that unqualifies the enumeration name.
7172 (ada_value_binop): New function.
7173 (ada_value_equal): New function.
7174
7175 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
7176 Don't give error message when not doing normal evaluation
7177 and a tagged type doesn't seem to contain a structure member.
7178 Give error message for packed arrays.
7179 For indexing arrays, handle pointers to packed arrays correctly.
7180 Handle case of 'first and 'last attributes of bare integral type
7181 without encoded subtype info.
7182 Remove some unnecessary casts.
7183 Fix uninitialized value of type in computing 'first, 'last, or 'length
7184 of array object.
7185 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
7186 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
7187 calls.
7188 Attributes are now exp_opcode values.
7189 Correct treatment of 'modulus.
7190 Better error message for taking 'length of wrong kind of type;
7191 improve comment.
7192 Change EVAL_NORMAL to noside for consistency.
7193 Use ada_value_binop for DIV, MOD, REM.
7194 Make special case out of array of length 0, since an argument
7195 of 0 upsets some platforms' malloc.
7196 Use OP_STRING instead of OP_ARRAY.
7197 For slice, add check that we have an array type before extracting
7198 a slice out of it. Avoids a SEGV.
7199 When evaluating an array slice, if the array type is a reference to
7200 an aligner type, then replace the aligner type by the actual type.
7201 Decomment disabled code.
7202 Remove some dead code.
7203 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
7204 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
7205 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
7206 and UNOP_MBR to UNOP_IN_RANGE.
7207 If an array type has a parallel ___XVE type, then use it.
7208 Turn arrays into pointers for lvalue arrays.
7209 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
7210 bounds error and handle 0-length slices.
7211 Use lim_warning.
7212 When selecting fields, apply ada_to_fixed_value (because the fields
7213 might have ___XVU or ___XVE encodings even if not dynamic.)
7214 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
7215 (ada_is_system_address_type): New function.
7216
7217 (get_var_value): Use new interface to ada_lookup_symbol_list.
7218 (get_int_var_value): New interface.
7219 (to_fixed_range_type): Allow unknown bound, with warning.
7220 (ada_is_modular_type): Decomment disabled code.
7221 (ADA_OPERATORS): New definition.
7222 (ada_operator_length): New function.
7223 (ada_expr_op_name): New function.
7224 (ada_forward_operator_length): New function.
7225 (ada_dump_subexp_body): New function.
7226 (ada_print_subexp): New function.
7227 (ada_exp_descriptor): New constant.
7228 (ada_op_print_tab): Add 'size. Remove FIXMEs.
7229 (ada_language_defn): Add ada_exp_descriptor entry.
7230 Change ada_parse => parse.
7231 Add post-parser entry.
7232 Use ada-specific non-local symbol lookup.
7233 Don't use C-style arrays.
7234 String lower-bound is 1.
7235 Decomment disabled code.
7236 (parse): New function.
7237 New fields ada_translate_error_message, ada_lookup_symbol,
7238 ada_lookup_minimal_symbol.
7239
7240 * ada-lang.h: Update copyright dates.
7241 Replace the mangle/demangle terminology throughout by the
7242 more appropriate encode/decode one.
7243 Include breakpoint.h.
7244 Forward declare struct partial_symbol, struct block.
7245 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
7246 (EXTRACT_ADDRESS): Remove.
7247 (EXTRACT_INT): Remove.
7248 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
7249 (MAX_ENCLOSING_FRAME_LEVELS): Define.
7250 (MAX_RENAMING_CHAIN_LENGTH): Define.
7251 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
7252
7253 (enum task_states): Remove.
7254 ada_task_states: Remove.
7255 (fat_string): Remove.
7256 (struct entry_call): Remove.
7257 (struct task_fields): Remove.
7258 (struct task_entry): Remove.
7259
7260 (struct ada_symbol_info): Define.
7261 (enum ada_attribute): Remove.
7262 (enum ada_operator): Define.
7263
7264 (ada_get_field_index): Declare.
7265 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
7266 (ada_is_simple_array): Rename to ada_is_simple_array_type.
7267 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
7268 (ada_lookup_symbol_list): New interface.
7269 (ada_decode_symbol): Declare.
7270 (ada_decode): Declare.
7271 (ada_lookup_symbol): New interface.
7272 (ada_update_initial_language): Declare.
7273 (ada_lookup_simple_minsym): Declare.
7274 (user_select_syms): New interface.
7275 (ada_sals_for_line): Declare.
7276 (ada_is_tagged_type): New interface.
7277 (ada_tag_name): Declare.
7278 (ada_lookup_struct_elt_type): Remove declaration.
7279 (ada_search_struct_field): Remove declaration.
7280 (ada_attribute_name): New interface.
7281 (ada_is_system_address_type): Declare.
7282 (ada_to_fixed_value): Remove declaration.
7283 (ada_template_to_fixed_record_type_1): Declare.
7284 (get_int_var_value): New interface.
7285 (ada_find_any_symbol): Declare.
7286 (ada_find_renaming_symbol): Declare.
7287 (ada_mangle): Rename to ada_encode.
7288 (ada_simple_renamed_entity): Remove const.
7289 (ada_main_name): Declare.
7290 (get_current_task): Rename to ada_get_current_task.
7291 (get_entry_number): Remove declaration.
7292 (ada_report_exception_break): Remove declaration.
7293 (ada_print_exception_breakpoint_nontask): Declare.
7294 (ada_print_exception_breakpoint_task): Declare.
7295 (ada_find_printable_frame): Declare.
7296
7297 * ada-lex.l: Update copyright notices.
7298 Use xmalloc and xfree instead of malloc and free.
7299 Use new interface to name_lookup.
7300 Use new interface to
7301 ada_mangle=>ada_encode.
7302 Redo handling of '$...' variable to parallel current treatment
7303 in c-exp.y.
7304 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
7305 digit_to_int, strtoulst, processInt, processReal, processId,
7306 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
7307 yywrap): Protoize.
7308
7309 (processInt): Use cast to remove harmless warning.
7310 (processReal): Modify to get rid of compiler warning on scan formats.
7311
7312 (processId): Replace xmalloc with obstack_alloc for name and remove
7313 call to ada_name_string_cleanup.
7314 Remove obsolete disabled code.
7315 (name_lookup): Ditto.
7316 New interface.
7317 Use obsavestring on temp_parse_space instead of savestring
7318 on name, and remove call to ada_name_string_cleanup.
7319 Free string returned from ada_simple_renamed_entity.
7320 Use new interface to ada_lookup_symbol_list.
7321 Decomment disabled code.
7322 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
7323 not types.
7324 When a type name lookup succeeds as a result of
7325 lookup_primitive_typename, check for regular type entry that has not
7326 yet been read in.
7327 Limit length of chain of renamed symbols we are willing to follow.
7328 Do not break names beginning with "standard__" into segments.
7329 (block_lookup): Use new interface to ada_lookup_symbol_list.
7330
7331 * ada-typeprint.c: Update copyright notice.
7332 (demangled_type_name): Rename to decoded_type_name.
7333 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
7334 (print_range_bound): Correct handling of negative
7335 bounds that make the index type looked unsigned under STABS.
7336 (print_dynamic_range_bound): Use new interface to get_int_var_value.
7337 (print_range_type_named): Use the builtin int type if no type
7338 corresponding to the given type name could be found.
7339 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
7340 Add some bullet-proofing.
7341 (print_variant_clauses): Allow for variant branches with ___XVU
7342 encodings that are not dynamic fields.
7343 Use new interface to ada_is_tagged_type.
7344 (print_record_type): Allow for fields with ___XVE encodings that
7345 are not dynamic fields.
7346 Use new interface to ada_is_tagged_type.
7347 (ada_print_type): ada_is_array_descriptor =>
7348 ada_is_array_descriptor_type.
7349
7350 * ada-valprint.c: Update copyright notice.
7351 Include gdb_string.h
7352 Include infcall.h
7353 (ui_memcpy): New function.
7354 (ada_print_floating): New function.
7355 (ada_print_str): Order arguments correctly.
7356 Correct handling of empty arrays and arrays of 0-length items.
7357 ada_is_array_descriptor => ada_is_array_descriptor_type
7358 Print values of type System.Address in hexadecimal format.
7359 Use ada_print_floating to print floating-point numbers in Ada format.
7360 Print class tag values with type names.
7361 No longer print the address of reference values. Avoids
7362 a potential confusion.
7363 (ada_value_print): Stop printing the object type for reference
7364 values, but preserve that behavior for access types. Avoids
7365 a potential confusion.
7366 Simplify one conditional expression, as the first part is now
7367 necessarily true.
7368 ada_is_array_descriptor => ada_is_array_descriptor_type
7369 Add check for arrays for null records, and print them by hand.
7370
7371 2004-06-01 Jim Blandy <jimb@redhat.com>
7372
7373 * ppc-tdep.h: Delete unused 'regoff' member.
7374 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
7375
7376 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
7377
7378 Fix PR symtab/1661.
7379 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
7380 (hpread_read_struct_type): Likewise.
7381
7382 2004-06-01 Andrew Cagney <cagney@gnu.org>
7383
7384 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
7385 instead of xasprintf.
7386 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
7387 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
7388 (mi_cmd_data_list_register_names)
7389 (mi_cmd_data_list_changed_registers)
7390 (mi_cmd_data_list_register_values)
7391 (get_register, mi_cmd_data_write_register_values)
7392 (mi_cmd_data_write_register_values)
7393 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
7394 (mi_cmd_target_download, mi_cmd_target_select)
7395 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
7396 (mi_execute_cli_command, mi_execute_async_cli_command)
7397 (mi_execute_async_cli_command): Ditto.
7398 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
7399 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
7400
7401 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
7402 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
7403 error_last_message instead of mi_error_last_message.
7404 * mi/mi-main.c (mi_error_last_message): Delete function.
7405
7406 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
7407 "invalid number of columns" error. Delete redundant "out of
7408 memory" check.
7409
7410 2004-05-31 Mark Kettenis <kettenis@gnu.org>
7411
7412 * i386bsd-nat.c: Don't include <sys/procfs.h>.
7413 (gregset_t, fpregset_t): Remove typedefs.
7414 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
7415 (REG_OFFSET): Rename argument.
7416 (i386bsd_r_reg_offset): Rename from reg_offset.
7417 (REG_ADDR): Remove macro.
7418 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
7419 functions.
7420 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
7421 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
7422 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
7423 instead of supply_gregset.
7424 (store_inferior_registers): Use `struct reg' and `struct fpreg'
7425 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
7426 instead of fill_gregset.
7427 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
7428
7429 * i386bsd-nat.c: Don't include "gregset.h".
7430 (supply_gregset, fill_gregset): Make static.
7431 (supply_fpregset, fill_fpregset): Remove.
7432 * Makefile.in (i386bsd-nat.o): Update dependencies.
7433
7434 2004-05-30 Mark Kettenis <kettenis@gnu.org>
7435
7436 * fbsd-proc.c: Include "regcache.h", "regset.h" and
7437 "gdb_assert.h". Con't include "gregset.h".
7438 (fbsd_make_corefile_notes): Use regset-based core file support
7439 instead off fill_gregset and fill_fpregset.
7440 * Makefile.in (fbsd-proc.o): Update dependencies.
7441
7442 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
7443 instructions.
7444 (m88k_frame_prev_register): Simplify code a bit.
7445
7446 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
7447 (amd64_collect_fpregset): New function.
7448 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
7449
7450 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
7451
7452 * i386-tdep.c (i386_supply_gregset): Adjust comment.
7453 (i386_collect_gregset): New function.
7454 (i386_supply_fpregset): Adjust comment.
7455 (i386_collect_fpregset): New function.
7456 (i386_regset_from_core_section): Use i386_collect_gregset and
7457 i386_collect_fpregset.
7458
7459 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
7460 handle VALUEP being null.
7461
7462 * regset.h (collect_regset_ftype): Unconstify fourth argument.
7463
7464 2004-05-29 Mark Kettenis <kettenis@gnu.org>
7465
7466 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
7467
7468 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
7469 assembler in OpenBSD 3.5-current.
7470 (amd64obsd_sigcontext_addr): Likewise.
7471
7472 2004-05-28 Jim Blandy <jimb@redhat.com>
7473
7474 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
7475 register set, so our regcache isn't declared "legacy" and our E500
7476 pseudoregister read and write functions aren't ignored.
7477 (rs6000_register_byte, rs6000_register_raw_size,
7478 rs6000_register_virtual_type, rs6000_register_convertible,
7479 rs6000_register_convert_to_virtual,
7480 rs6000_register_convert_to_raw): Deleted.
7481 (rs6000_register_type, rs6000_convert_register_p,
7482 rs6000_register_to_value, rs6000_value_to_register): New
7483 functions.
7484 (rs6000_gdbarch_init): Don't register
7485 gdbarch_deprecated_register_size,
7486 gdbarch_deprecated_register_bytes,
7487 gdbarch_deprecated_register_byte,
7488 gdbarch_deprecated_register_raw_size,
7489 gdbarch_deprecated_register_virtual_type,
7490 gdbarch_deprecated_register_convertible,
7491 gdbarch_deprecated_register_convert_to_virtual, or
7492 gdbarch_deprecated_register_convert_to_raw methods. Instead,
7493 register gdbarch_register_type, gdbarch_convert_register_p,
7494 gdbarch_register_to_value, and gdbarch_value_to_register methods.
7495
7496 2004-05-26 Jim Blandy <jimb@redhat.com>
7497
7498 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
7499 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
7500 functions, updated to match the register numberings used in GCC.
7501 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
7502 rs6000_dwarf2_reg_to_regnum as register number conversions
7503 functions for STABS and Dwarf2.
7504
7505 2004-05-26 Randolph Chung <tausq@debian.org>
7506
7507 * infttrace.h (target_waitkind): Forward declare type instead of pulling
7508 in header file.
7509
7510 2004-05-25 Joel Brobecker <brobecker@gnat.com>
7511
7512 * NEWS: Document new "start" command.
7513
7514 2004-05-25 Randolph Chung <tausq@debian.org>
7515
7516 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
7517 hppa-linux.
7518
7519 2004-05-25 Randolph Chung <tausq@debian.org>
7520
7521 * hppa-hpux-tdep.c (offsetof): Define.
7522 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
7523 (hppa32_hpux_frame_base_before_sigtramp)
7524 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7525 (hppa64_hpux_frame_saved_pc_in_sigtramp)
7526 (hppa64_hpux_frame_base_before_sigtramp)
7527 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
7528 functions.
7529 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
7530 (hppa_hpux_sigtramp_frame_unwind_cache)
7531 (hppa_hpux_sigtramp_frame_this_id)
7532 (hppa_hpux_sigtramp_frame_prev_register)
7533 (hppa_hpux_sigtramp_frame_unwind)
7534 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
7535 (hppa_hpux_init_abi): Register sigtramp unwinder.
7536 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
7537
7538 2004-05-25 Randolph Chung <tausq@debian.org>
7539
7540 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
7541 and multiple stack unwinds.
7542 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
7543
7544 2004-05-25 Andrew Cagney <cagney@gnu.org>
7545
7546 * symfile.h (symbol_file_add_from_memory): Delete declaration.
7547 * symfile-mem.h: Delete file.
7548 * symfile-mem.c: Do not include "symfile-mem.h".
7549 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
7550 "struct bfd_section". When an error do not bother returning NULL.
7551 (add_symbol_file_from_memory_command): Use "struct bfd" and
7552 "struct bfd_section".
7553 * Makefile.in (symfile_mem_h): Delete.
7554 (symfile-mem.o): Update dependencies.
7555
7556 2004-05-25 Nick Roberts <nickrob@gnu.org>
7557
7558 * gdb-mi.el: New file.
7559
7560 2004-05-25 Andrew Cagney <cagney@gnu.org>
7561
7562 * inftarg.c: Include "observer.h".
7563 (child_attach, child_create_inferior): Notify inferior_created.
7564 * corelow.c: Include "observer.h".
7565 (core_open): Notify inferior_created.
7566 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
7567
7568 2004-05-25 Andrew Cagney <cagney@gnu.org>
7569
7570 * target.h (struct target_ops): Add from_tty to
7571 to_create_inferior.
7572 (target_create_inferior, find_default_create_inferior): Update.
7573 * infcmd.c (run_command): Update.
7574 * wince.c (child_create_inferior): Update.
7575 * win32-nat.c (child_create_inferior): Update.
7576 * uw-thread.c (uw_thread_create_inferior): Update.
7577 * thread-db.c (thread_db_create_inferior): Update.
7578 * target.c (debug_to_create_inferior)
7579 (find_default_create_inferior): Update.
7580 (maybe_kill_then_create_inferior): Update.
7581 * sol-thread.c (sol_thread_create_inferior): Update.
7582 * remote.c (extended_remote_async_create_inferior)
7583 (extended_remote_create_inferior): Update.
7584 * remote-vx.c (vx_create_inferior): Update.
7585 * remote-st.c (st2000_create_inferior): Update.
7586 * remote-sim.c (gdbsim_create_inferior): Update.
7587 * remote-sds.c (sds_create_inferior): Update.
7588 * remote-rdp.c (remote_rdp_create_inferior): Update.
7589 * remote-rdi.c (arm_rdi_create_inferior): Update.
7590 * remote-m32r-sdi.c (m32r_create_inferior): Update.
7591 * remote-e7000.c (e7000_create_inferior): Update.
7592 * procfs.c (procfs_create_inferior): Update.
7593 * ocd.c (ocd_create_inferior): Update.
7594 * ocd.h (ocd_create_inferior): Update.
7595 * nto-procfs.c (procfs_create_inferior): Update.
7596 * monitor.c (monitor_create_inferior): Update.
7597 * lin-lwp.c (lin_lwp_create_inferior): Update.
7598 * inftarg.c (child_create_inferior): Update.
7599 * hpux-thread.c (hpux_thread_create_inferior): Update.
7600 * gnu-nat.c (gnu_create_inferior): Update.
7601
7602 2004-05-25 Andrew Cagney <cagney@gnu.com>
7603
7604 * MAINTAINERS: Update e-mail address.
7605
7606 2004-05-24 Randolph Chung <tausq@debian.org>
7607
7608 * thread.c (info_threads_command, thread_apply_all_command)
7609 (thread_apply_command, thread_command, do_captured_thread_select):
7610 Remove HPUXHPPA-specific code.
7611
7612 2004-05-24 Randolph Chung <tausq@debian.org>
7613
7614 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
7615 unused symbols.
7616 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
7617 references.
7618
7619 2004-05-24 Joel Brobecker <brobecker@gnat.com>
7620
7621 * infcmd.c (kill_if_already_running): New function, extracted
7622 from run_command().
7623 (run_command): Replace extracted code by call to
7624 kill_if_already_running().
7625 (start_command): New function.
7626 (_initialize_infcmd): Add "start" command.
7627
7628 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7629
7630 Add OpenBSD/m88k support.
7631 * NEWS (New native configurations): Mention OpenBSD/m88k.
7632 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
7633 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
7634 * Makefile.in (m88k_tdep_h): New variable.
7635 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
7636 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
7637 * configure.host: Add m88*-*-openbsd*.
7638 * configure.tgt: Add m88*-*-openbsd*.
7639
7640 2004-05-24 Jim Blandy <jimb@redhat.com>
7641
7642 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
7643 to approve changes.
7644
7645 2004-05-24 Kevin Buettner <kevinb@redhat.com>
7646
7647 * symtab.c (fixup_section): Search section table when lookup by
7648 name fails.
7649
7650 2004-05-24 Randolph Chung <tausq@debian.org>
7651
7652 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
7653 be "small_struct".
7654
7655 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7656
7657 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
7658 register number in regcache_raw_collect call.
7659 (m68kbsd_collect_fpregset): Likewise.
7660 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
7661
7662 * regset.h (struct regset): Add back `regset' member.
7663
7664 2004-05-23 Mark Kettenis <kettenis@gnu.org>
7665
7666 * configure.in: Check for td_pcb in `struct thread'.
7667 * configure, config.in: Regenerated.
7668
7669 * dpx2-nat.c: Remove file.
7670 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
7671 (dpx2-nat.o): Remove dependencies.
7672
7673 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
7674 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
7675 (amd64obsd_supply_pcb): New function.
7676 (_initialize_amd64obsd_nat): Enable libkvm interface.
7677 * Makefile.in (amd64obsd-nat.o): Update dependencies.
7678 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
7679 (LOADLIBES): New variable.
7680
7681 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
7682 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
7683 (sparc32nbsd_supply_pcb): New function.
7684 (_initialize_sparcnbsd_nat): Enable libkvm interface.
7685 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
7686 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
7687 (LOADLIBES): New variable.
7688
7689 2004-05-22 Mark Kettenis <kettenis@gnu.org>
7690
7691 * bsd-kvm.c, bsd-kvm.h: New files.
7692 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
7693 "bsd-kvm.h".
7694 (i386fbsd_supply_pcb): New function.
7695 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
7696 (i386fbsd-nat.o): Update dependencies.
7697 (bsd_kvm_h): New variable.
7698 (bsd-kvm.o): New dependency.
7699 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
7700 (LOADLIBES): New variable.
7701
7702 * regset.c: Tweak comment.
7703 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
7704 macro.
7705 * regset.h: Update copyright year.
7706 (struct regset): Remove `descr' member, add `gdbarch' member.
7707 (regset_alloc): Adjust prototype and comment.
7708 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
7709 (i386_supply_fpregset): Likewise.
7710 (i386_regset_from_core_section): Update call to regset_alloc.
7711 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
7712 REGSET->arch.
7713 (i386obsd_aout_regset_from_core_section): Update call to
7714 regset_alloc.
7715 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
7716 REGSET->arch.
7717 (i386nbsd_aout_regset_from_core_section): Update call to
7718 regset_alloc.
7719 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
7720 REGSET->arch.
7721 (amd64_regset_from_core_section): Update call to regset_alloc.
7722 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
7723 REGSET->arch.
7724 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
7725 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
7726 &sparc32nbsd_gregset in sparc32_supply_gregset call.
7727 (sparc32nbsd_init_abi): Update call to regset_alloc.
7728 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
7729 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
7730 (sparc64obsd_init_abi): Update call to regset_alloc.
7731 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
7732 &sparc64nbsd_gregset in sparc64_supply_gregset call.
7733 (sparc64nbsd_init_abi): Update call to regset_alloc.
7734 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
7735 &sparc64fbsd_gregset in sparc64_supply_gregset call.
7736 (sparc64fbsd_init_abi): Update call to regset_alloc.
7737
7738 2004-05-22 Jim Blandy <jimb@redhat.com>
7739
7740 * ppc-tdep.h (spe_register_p): New declaration.
7741 (struct gdbarch_tdep): New members: ppc_acc_regnum and
7742 ppc_spefscr_regnum.
7743 * rs6000-tdep.c (spe_register_p): New function.
7744 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
7745 spefscr.
7746 (rs6000_gdbarch_init): Initialize the new members of the tdep
7747 structure.
7748
7749 2004-05-21 Jim Blandy <jimb@redhat.com>
7750
7751 * ppc-linux-nat.c (fetch_register): Move code back to be next
7752 to the comment that describes it. (Moved code, instead of
7753 comment, for symmetry with store_register.)
7754
7755 Allocate regset structures in the gdbarch's obstack, not using
7756 xmalloc.
7757 * regset.c (regset_alloc): Renamed from regset_xmalloc.
7758 Add 'arch' argument. Allocate the regset on arch's obstack, not
7759 using xmalloc.
7760 * regset.h (regset_alloc): Update declaration.
7761 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
7762 gdbarch argument.
7763 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7764 * i386-tdep.c (i386_regset_from_core_section): Same.
7765 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7766 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7767 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7768 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7769 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7770 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7771
7772 2004-05-21 Joel Brobecker <brobecker@gnat.com>
7773
7774 * config/djgpp/fnchange.lst: Undo previous change, was useless.
7775
7776 2004-05-21 Jim Blandy <jimb@redhat.com>
7777
7778 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
7779 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
7780
7781 2004-05-20 Jim Blandy <jimb@redhat.com>
7782
7783 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
7784
7785 2004-05-20 Mark Kettenis <kettenis@gnu.org>
7786
7787 * regset.h: Make prototype const-correct.
7788 * regset.c (regset_xmalloc): Make const-correct.
7789
7790 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
7791
7792 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
7793 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
7794 (symbol_search_name): Declare.
7795
7796 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
7797 (iter_name_next_hashed): Ditto.
7798 (iter_name_next_linear): Ditto.
7799 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
7800
7801 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
7802 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
7803 (symbol_search_name): New function.
7804
7805 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
7806
7807 * minsyms.c (build_minimal_symbol_hash_tables): Change
7808 test for adding to demangled hash table to check for difference
7809 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
7810
7811 2004-05-19 Jim Blandy <jimb@redhat.com>
7812
7813 Use a constructor function to create regset structures.
7814 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
7815 (struct regset): Use supply_regset_ftype. Add new
7816 'collect_regset' member.
7817 (regset_xmalloc): New declaration.
7818 * regset.c: New file.
7819 * am64-tdep.c (amd64_regset_from_core_section): Use
7820 regset_xmalloc to construct regset structures.
7821 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7822 * i386-tdep.c (i386_regset_from_core_section): Same.
7823 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7824 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7825 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7826 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7827 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7828 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7829 * Makefile.in (COMMON_OBS): Add regset.o.
7830 (regset.o): New rule.
7831
7832 2004-05-19 Joel Brobecker <brobecker@gnat.com>
7833
7834 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
7835 and pthread_cond_wait.c.
7836
7837 2004-05-18 Jim Blandy <jimb@redhat.com>
7838
7839 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
7840 before the mach-specific switch, and then let the individual cases
7841 override the defaults, rather than leaving them uninitialized
7842 until the switch and then setting them in each case.
7843
7844 2004-05-18 Randolph Chung <tausq@debian.org>
7845
7846 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
7847 millicode functions.
7848
7849 2004-05-18 Randolph Chung <tausq@debian.org>
7850
7851 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
7852 references to dld_flags_buffer consistent.
7853
7854 2004-05-18 Randolph Chung <tausq@debian.org>
7855
7856 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
7857 it for unwinding the stack.
7858
7859 2004-05-18 Randolph Chung <tausq@debian.org>
7860
7861 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
7862 Undefine these so we can overide them using gdbarch.
7863
7864 2004-05-18 Randolph Chung <tausq@debian.org>
7865
7866 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
7867 handling for 64-bit HPUX (elf).
7868
7869 2004-05-18 Daniel Jacobowitz <dan@debian.org>
7870
7871 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
7872 constants.
7873 * amd64-tdep.c (amd64_skip_prologue): Likewise.
7874 * ia64-tdep.c (examine_prologue): Likewise.
7875 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
7876 * v850-tdep.c (v850_fix_call_dummy): Likewise.
7877
7878 2004-05-18 Mark Kettenis <kettenis@gnu.org>
7879
7880 * vax-tdep.c (vax_return_value): Implement
7881 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7882
7883 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7884
7885 * vax-tdep.c (vax_return_value): Fix typo.
7886
7887 2004-05-17 Andrew Cagney <cagney@redhat.com>
7888
7889 * MAINTAINERS: Mark Salter was also responsible for
7890 testsuite/config/
7891
7892 * NEWS: Mention signal fixes.
7893
7894 2004-05-17 Randolph Chung <tausq@debian.org>
7895
7896 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
7897 check to see if we are unwinding an export stub. Export stubs clobber
7898 the %rp in the call path and stores the original rp in a stack slot.
7899
7900 2004-05-17 Jim Blandy <jimb@redhat.com>
7901
7902 * MAINTAINERS: Update address for J.T. Conklin.
7903
7904 2004-05-17 Randolph Chung <tausq@debian.org>
7905
7906 * hppa-tdep.c: Remove superfluous #include's.
7907 * Makefile.in (hppa-tdep.o): Update dependencies.
7908
7909 2004-05-17 Randolph Chung <tausq@debian.org>
7910
7911 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
7912 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
7913 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
7914 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
7915 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
7916 Remove static function declarations.
7917
7918 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7919
7920 * alphabsd-nat.c: Update copyright year.
7921 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
7922
7923 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
7924 and M68K_A2_REGNUM.
7925
7926 * m68k-tdep.c (m68k_svr4_return_value): Implement
7927 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7928
7929 2004-05-16 Mark Kettenis <kettenis@gnu.org>
7930
7931 * sol-thread.c Update copyright year. Fix various coding
7932 standards violations. Tweak a few comments.
7933 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
7934 Delete prototypes.
7935
7936 2004-05-15 Randolph Chung <tausq@debian.org>
7937
7938 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
7939 as pointer instead of array reference since HPUX compiler does
7940 not accept unsized array arguments.
7941 * somsolib.c (dld_flags_buffer): Use constant array size.
7942
7943 2004-05-15 Mark Kettenis <kettenis@gnu.org>
7944
7945 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
7946 offset with decimal offset.
7947 (amd64obsd_sigcontext_addr): Return correct address for entire
7948 signal trampoline.
7949
7950 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
7951 instead of get_frame_base.
7952
7953 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
7954 (fill_gregset): Use regcache_raw_collect.
7955
7956 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
7957 ppcobsd-tdep.c.
7958
7959 * config/sparc/tm-nbsd64.h: Remove file.
7960 * config/tm-sunos.h: Remove file.
7961
7962 2004-05-15 Joel Brobecker <brobecker@gnat.com>
7963
7964 * rs6000-tdep.c (store_param_on_stack_p): New function,
7965 an improved version of some code extracted from skip_prologue().
7966 (skip_prologue): Use store_param_on_stack_p() to detect
7967 instructions saving a parameter on the stack. Detect when r0
7968 is used to save a parameter.
7969 Do not mark "li rx, SIMM" instructions as part of the prologue,
7970 unless the following instruction is also part of the prologue.
7971
7972 2004-05-14 Andrew Cagney <cagney@redhat.com>
7973
7974 * infrun.c (handle_inferior_event): Simplify
7975 STEP_OVER_UNDEBUGGABLE.
7976
7977 * infrun.c (handle_step_into_function): Delete function.
7978 (handle_inferior_event): Inline calls to
7979 handle_step_into_function.
7980
7981 2004-05-14 Jerome Guitton <guitton@gnat.com>
7982
7983 * rs6000-nat.c: Fix a comment.
7984
7985 2004-05-12 David Anderson <davea@sgi.com>
7986
7987 Committed by Jim Blandy <jimb@redhat.com>:
7988 * regcache.c (struct regcache_descr): fix comment spelling.
7989
7990 2004-05-13 J. Brobecker <brobecker@gnat.com>
7991
7992 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
7993 Fixes a link link failure.
7994
7995 2004-05-13 J. Brobecker <brobecker@gnat.com>
7996
7997 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
7998 error that was causing the build to fail.
7999
8000 2004-05-13 J. Brobecker <brobecker@gnat.com>
8001
8002 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
8003 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
8004
8005 2004-05-13 Andrew Cagney <cagney@redhat.com>
8006
8007 * infrun.c (handle_inferior_event): Check for
8008 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
8009 calls. Update comments.
8010
8011 2004-05-13 Jim Blandy <jimb@redhat.com>
8012
8013 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
8014 (fetch_regs_user_thread, fetch_regs_kernel_thread)
8015 (store_regs_user_thread, store_regs_kernel_thread): Use
8016 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
8017 * ppc-linux-nat.c (fill_gregset): Same.
8018 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
8019 (ppc_linux_sigtramp_cache): Same.
8020 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
8021 (ppcnbsd_sigtramp_cache_init): Same.
8022 * rs6000-nat.c (fetch_core_registers): Same.
8023 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
8024 (rs6000_frame_cache): Same.
8025
8026 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
8027 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
8028 of assuming that the gprs are numbered starting with zero.
8029 * ppc-linux-nat.c (fill_gregset): Same.
8030 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
8031 * ppcnbsd-nat.c (getregs_supplies): Same.
8032 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
8033 * rs6000-nat.c (fetch_core_registers): Same.
8034 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
8035
8036 2004-05-07 Michael Snyder <msnyder@redhat.com>
8037
8038 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
8039 LOC_COMPUTED_ARG, and LOC_INDIRECT.
8040
8041 2004-05-13 Andrew Cagney <cagney@redhat.com>
8042
8043 * infrun.c (handle_inferior_event): Use frame_unwind_id.
8044
8045 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
8046
8047 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
8048 base_address for shared libraries.
8049
8050 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
8051
8052 * MAINTAINERS (write after approval): Add myself.
8053
8054 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
8055
8056 * breakpoint.c (bpstat_stop_status): Add new argument
8057 STOPPED_BY_WATCHPOINT. Use it instead of testing
8058 target_stopped_data_address agaist 0 to check whether
8059 or not we stopped due to a hardware watchpoint.
8060 * breakpoint.h (bpstat_stop_status): Adapt prototype.
8061 * infrun.c (handle_inferior_event): Call bpstat_stop_status
8062 with new argument.
8063
8064 2004-05-12 Jim Blandy <jimb@redhat.com>
8065
8066 * configure.in: When checking whether we should use the -bbigtoc
8067 option, don't forget to restore the original value of LDFLAGS.
8068 * configure: Regenerated.
8069
8070 2004-05-12 Andrew Cagney <cagney@redhat.com>
8071
8072 * thread.c (load_infrun_state): Delete step_sp.
8073 * infrun.c (context_switch): Ditto.
8074 * inferior.h (step_sp): Ditto.
8075 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
8076 * gdbthread.h (struct thread_info, save_infrun_state)
8077 (restore_infrun_state): Ditto.
8078
8079 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
8080
8081 * MAINTAINERS (write after approval): Add myself.
8082
8083 2004-05-12 Andrew Cagney <cagney@redhat.com>
8084
8085 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
8086 eliminate reference to step_sp.
8087 (struct execution_control_state, init_execution_control_state)
8088 (handle_inferior_event, keep_going): Delete update_step_sp and
8089 step_sp.
8090 * infcmd.c (step_sp): Note that variable is unused.
8091
8092 2004-05-11 Andrew Cagney <cagney@redhat.com>
8093
8094 * infrun.c (step_over_function): Delete function.
8095 (handle_step_into_function): Use insert_step_resume_breakpoint.
8096 (insert_step_resume_breakpoint): Fix assertion.
8097
8098 2004-05-11 Nick Roberts <nickrob@gnu.org>
8099
8100 * utils.c (defaulted_query): Just use the normal query input type
8101 when printing the annotations.
8102
8103 2004-05-11 Andrew Cagney <cagney@redhat.com>
8104
8105 * infrun.c (handle_inferior_event): Simplify code handling
8106 step-into or return-from a signal trampoline.
8107
8108 2004-05-11 Andrew Cagney <cagney@redhat.com>
8109
8110 * ppcnbsd-tdep.c: Include "gdb_assert.h".
8111 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
8112
8113 2004-05-10 Jim Blandy <jimb@redhat.com>
8114
8115 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
8116 with a call to internal_error.
8117
8118 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
8119 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
8120 processor variant lacks those registers.
8121 (ppc_floating_point_unit_p): Change description to make it clear
8122 that this returns info about the ISA, not the ABI.
8123 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
8124 return true or false by checking tdep->ppc_fp0_regnum and
8125 tdep->ppc_fpscr_regnum. The original code replicated the BFD
8126 arch/mach switching done in rs6000_gdbarch_init; it's better to
8127 keep that logic there, and just check the results here.
8128 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
8129 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
8130 floating-point registers.
8131 (ppc_supply_fpregset, ppc_collect_fpregset)
8132 (rs6000_push_dummy_call, rs6000_extract_return_value)
8133 (rs6000_store_return_value): Assert that we have floating-point
8134 registers.
8135 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
8136 (rs6000_frame_cache): Don't note the locations at which
8137 floating-point registers were saved if we have no fprs.
8138 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
8139 registers.
8140 (fetch_regs_user_thread, fetch_regs_kernel_thread)
8141 (store_regs_user_thread, store_regs_kernel_thread): Only call
8142 supply_fprs / fill_fprs if we actually have floating-point
8143 registers.
8144 (special_register_p): Check ppc_fpscr_regnum before matching
8145 against it.
8146 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
8147 supply / collect fpscr if we don't have it.
8148 * ppc-bdm.c: #include "gdb_assert.h".
8149 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
8150 have floating-point registers, since I can't test this code on
8151 FP-free systems to adapt it.
8152 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
8153 fpscr and floating point register numbers if they don't exist.
8154 (fetch_register): Assert that we have floating-point registers
8155 before we reach the code that handles them.
8156 (store_register): Same. And use tdep instead of calling
8157 gdbarch_tdep again.
8158 (fill_fpregset): Don't try to collect FP registers and fpscr if we
8159 don't have them.
8160 (ppc_linux_sigtramp_cache): Don't record the saved locations of
8161 fprs and fpscr if we don't have them.
8162 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
8163 don't have them.
8164 * ppcnbsd-nat.c: #include "gdb_assert.h".
8165 (getfpregs_supplies): Assert that we have floating-point registers.
8166 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
8167 * ppcobsd-tdep.c: #include "gdb_assert.h".
8168 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
8169 have floating-point registers.
8170 * rs6000-nat.c (regmap): Don't match against the fpscr and
8171 floating point register numbers if they don't exist.
8172 (fetch_inferior_registers, store_inferior_registers,
8173 fetch_core_registers): Only fetch / store / supply the
8174 floating-point registers and the fpscr if we have them.
8175 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
8176 (ppcobsd-tdep.o): Update dependencies.
8177
8178 2004-05-10 Andrew Cagney <cagney@redhat.com>
8179
8180 * infrun.c (through_sigtramp_breakpoint): Delete variable.
8181 (context_switch): Do not switch through_sigtramp_breakpoint.
8182 * gdbthread.h (save_infrun_state, load_infrun_state)
8183 (struct thread_info): Delete through_sigtramp_breakpoint parameter
8184 and structure member.
8185 * thread.c (load_infrun_state, save_infrun_state): Update.
8186
8187 2004-05-10 Mark Kettenis <kettenis@gnu.org>
8188
8189 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
8190
8191 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
8192
8193 * acinclude.m4: Quote macro names being defined by AC_DEFUN
8194 throughout.
8195 * aclocal.m4: Regenerate.
8196
8197 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
8198
8199 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
8200
8201 2004-05-10 Andrew Cagney <cagney@redhat.com>
8202
8203 * infrun.c (check_sigtramp2): Delete function.
8204 (handle_inferior_event): When single stepping, and taking a
8205 signal, set a breakpoint at the signal return address. Delete
8206 redundant calls to check_sigtramp2.
8207 (insert_step_resume_breakpoint): New function.
8208 (through_sigtramp_breakpoint, handle_inferior_event)
8209 (follow_exec, wait_for_inferior, fetch_inferior_event)
8210 (currently_stepping, keep_going): Delete most uses of
8211 through_sigtramp_breakpoint, not that it should be deleted.
8212 (delete_breakpoint_current_contents): Delete function.
8213
8214 2004-05-10 Randolph Chung <tausq@debian.org>
8215
8216 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
8217 target.
8218 * config/pa/tm-linux.h: New file.
8219
8220 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
8221
8222 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
8223 of prefixes. Don't print the prefix twice in the CLI.
8224
8225 2004-05-10 Jim Blandy <jimb@redhat.com>
8226
8227 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
8228 collect all the gprs.
8229
8230 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
8231 loop collecting gprs.
8232
8233 2004-05-09 Andrew Cagney <cagney@redhat.com>
8234
8235 * remote-vx.c (net_step): Delete step-range code.
8236 * remote.c (remote_resume, init_all_packet_configs)
8237 (set_remote_protocol_E_packet_cmd)
8238 (show_remote_protocol_E_packet_cmd)
8239 (remote_protocol_E, show_remote_cmd, _initialize_remote)
8240 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
8241 (show_remote_protocol_e_packet_cmd): Ditto.
8242
8243 2004-05-09 Mark Kettenis <kettenis@gnu.org>
8244
8245 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
8246
8247 * hppa-tdep.h: Update copyright year.
8248 (struct trad_frame_saved_reg): Add opaque declaration.
8249
8250 * amd64-tdep.c (amd64_return_value): Implement
8251 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8252
8253 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
8254 (m68k_value_to_register): New functions.
8255 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
8256 value_to_register.
8257
8258 * defs.h (enum return_value_convention): Add
8259 RETURN_VALUE_ABI_RETURNS_ADDRESS and
8260 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
8261 * infcmd.c (legacy_return_value): New function.
8262 (print_return_value): Rwerite to implement
8263 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8264 * values.c (using_struct_return): Check for inequality to
8265 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
8266 RETURN_VALUE_STRUCT_CONVENTION.
8267 * i386-tdep.c (i386_return_value): Implement
8268 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8269
8270 * vax-tdep.c: Tweak comments. Reorder include files. Don't
8271 include "symtab.h", "opcode/vax.h" and "inferior.h".
8272 (vax_skip_prologue): Replace calls to read_memory_integer by calls
8273 to read_memory_unsigned_integer.
8274 (vax_gdbarch_init): Reorder.
8275 (_initialize_vax_tdep): Spell out prototype.
8276 * Makefile.in (vax-tdep.o): Update dependencies.
8277
8278 2004-05-08 Andrew Cagney <cagney@redhat.com>
8279
8280 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
8281 * target.c (target_detach, target_disconnect): Ditto.
8282
8283 * infcall.c (call_function_by_hand): When no
8284 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
8285 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
8286 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
8287 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8288 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8289
8290 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
8291 * gdbarch.h, gdbarch.c: Re-generate.
8292 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8293 deprecated_fix_call_dummy.
8294 * v850-tdep.c (v850_gdbarch_init): Ditto.
8295 * infcall.c (call_function_by_hand): Do not call
8296 DEPRECATED_FIX_CALL_DUMMY.
8297
8298 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
8299 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
8300 * gdbarch.h, gdbarch.c: Re-generate.
8301 * arm-linux-tdep.c (arm_linux_call_dummy_words)
8302 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
8303 deprecated_sizeof_call_dummy_words.
8304 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
8305 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8306 * v850-tdep.c (v850_gdbarch_init): Ditto.
8307 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
8308 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
8309 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8310 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8311 * arch-utils.h (legacy_call_dummy_words)
8312 (legacy_sizeof_call_dummy_words): Delete declarations.
8313 * arch-utils.c (legacy_call_dummy_words)
8314 (legacy_sizeof_call_dummy_words): Delete variables.
8315
8316 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
8317 * gdbarch.h, gdbarch.c: Re-generate.
8318 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
8319 * infcall.c (call_function_by_hand): Eliminate call to
8320 DEPRECATED_PUSH_DUMMY_FRAME.
8321 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
8322 push_dummy_frame.
8323 (ns32k_push_dummy_frame): Delete function.
8324
8325 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8326 deprecated_call_dummy_breakpoint_offset or
8327 deprecated_call_dummy_start_offset.
8328 * dummy-frame.c, arm-tdep.c: Update comments.
8329 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
8330 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
8331 * gdbarch.h, gdbarch.c: Re-generate.
8332
8333 * infcall.c (legacy_push_dummy_code): Delete function.
8334 (push_dummy_code): Delete call.
8335
8336 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
8337 * gdbarch.h, gdbarch.c: Re-generate.
8338 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
8339 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
8340 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
8341 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
8342
8343 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
8344 (struct frame_info): Delete opaque declaration.
8345 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
8346 * frame.c (get_frame_type): Delete call.
8347
8348 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
8349 pc_in_call_dummy.
8350 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
8351 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
8352
8353 2004-05-08 Mark Kettenis <kettenis@gnu.org>
8354
8355 * alphanbsd-tdep.c: Include "gdb_string.h".
8356 * armnbsd-tdep.c: Update copyright year.
8357 Include "gdb_string.h".
8358 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
8359 dependencies.
8360
8361 * delta68-nat.c: Remove file.
8362 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
8363 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
8364 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
8365 (delta68-nat.o): Remove dependency.
8366
8367 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
8368 function.
8369 (m68k_gdbarch_init): Don't set
8370 deprecated_frameless_function_invocation.
8371
8372 2004-05-07 Randolph Chung <tausq@debian.org>
8373
8374 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
8375 read_memory_nobpt for code reading when doing frame unwinding.
8376 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
8377
8378 2004-05-07 Randolph Chung <tausq@debian.org>
8379
8380 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
8381 instead of sp, handle sigaltstack case.
8382 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
8383 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
8384 signal handler and not that of the caller.
8385 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
8386 hppa_linux_sigtramp_find_sigcontext.
8387
8388 2004-05-07 Randolph Chung <tausq@debian.org>
8389
8390 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
8391 hppa-linux-nat.c.
8392 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
8393 * hppa-linux-nat.c (fetch_register, store_register): Define.
8394 (fetch_inferior_registers, store_inferior_registers): Define.
8395 (supply_gregset): Add comment and clean up some unneeded code.
8396 (fill_gregset): Add comment and fix so that it saves registers in
8397 the right place in the gregset.
8398 (fill_fpregset): Fix buffer overrun problem.
8399 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
8400
8401 2004-05-07 Randolph Chung <tausq@debian.org>
8402
8403 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
8404 do common handling of the pcoqt register.
8405 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
8406 to use helper function.
8407 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
8408 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
8409 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
8410 generic fallback unwinder when all else fails.
8411 (hppa_gdbarch_init): Add fallback sniffer.
8412 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
8413 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
8414 to use helper function.
8415
8416 2004-05-08 Joel Brobecker <brobecker@gnat.com>
8417
8418 * config/djgpp/fnchange.lst: Add translation rules for
8419 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
8420
8421 2004-05-08 Mark Kettenis <kettenis@gnu.org>
8422
8423 * frame.c (get_prev_frame_1): Work around GCC bug.
8424 * frame.h: Add comment about GCC bug.
8425
8426 2004-05-07 Andrew Cagney <cagney@redhat.com>
8427
8428 * observer.c: Include "commands.h" and "gdbcmd.h".
8429 (observer_debug, _initialize_observer): Add the
8430 command "set/show debug observer".
8431 * observer.sh: When observer debugging, log notify calls.
8432 * Makefile.in (observer.o): Update dependencies.
8433
8434 2004-05-07 Jason Molenda (jmolenda@apple.com)
8435
8436 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
8437
8438 2004-05-07 Jim Blandy <jimb@redhat.com>
8439
8440 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
8441 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
8442 to recognize gpr regnums, instead of assuming that
8443 tdep->ppc_fp0_regnum marks the end of the general-purpose
8444 registers.
8445
8446 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
8447 the given architecture has floating-point registers.
8448
8449 2004-05-07 Andrew Cagney <cagney@redhat.com>
8450
8451 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
8452 macro defined to 1.
8453 * gdbarch.h, gdbarch.c: Re-generate.
8454 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8455 deprecated_use_generic_dummy_frames.
8456
8457 2004-05-07 Brian Ford <ford@vss.fsi.com>
8458
8459 * NEWS: Mention Cygwin DWARF 2 support.
8460
8461 2004-05-07 Andrew Cagney <cagney@redhat.com>
8462
8463 * objfiles.h (struct entry_info): Delete unused fields
8464 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
8465 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
8466 * mipsread.c (mipscoff_symfile_read): Update.
8467 * mdebugread.c (parse_partial_symbols): Update.
8468 * dwarfread.c (read_file_scope): Update.
8469 * dwarf2read.c (read_file_scope): Update.
8470 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
8471 * coffread.c (complete_symtab): Update.
8472
8473 2004-05-07 Mark Kettenis <kettenis@gnu.org>
8474
8475 * infcall.c (_initialize_infcall): Fix typo.
8476
8477 2004-05-07 Andrew Cagney <cagney@redhat.com>
8478
8479 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
8480 * command.h (add_setshow_zinteger_cmd): Declare.
8481
8482 2004-05-06 Randolph Chung <tausq@debian.org>
8483
8484 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
8485 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
8486 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
8487 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
8488 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
8489 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
8490 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
8491 definitions ...
8492 * hppa-tdep.h: ... to here, with HPPA_ prefix.
8493 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
8494 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
8495 (hppa64_hpux_frame_find_saved_regs_in_sig)
8496 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
8497 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
8498 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
8499 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
8500 (hppa_linux_sigtramp_frame_prev_register): Likewise.
8501 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
8502 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
8503 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
8504 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
8505 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
8506 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
8507 (hppa32_register_type, hppa_cannot_store_register)
8508 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
8509 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
8510 * hpread.c (hpread_process_one_debug_symbol): Likewise.
8511 * pa64solib.c (pa64_solib_have_load_event)
8512 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
8513 (pa64_solib_unloaded_library_pathname): Likewise.
8514 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
8515 (som_solib_library_pathname): Likewise.
8516
8517 2004-05-05 Jim Ingham <jingham@apple.com>
8518
8519 * breakpoint.c (create_breakpoints): Copy the ignore count and
8520 thread id over from the pended breakpoint to the actual
8521 breakpoint.
8522
8523 2004-05-05 Andrew Cagney <cagney@redhat.com>
8524
8525 * gdbarch.sh (PARM_BOUNDARY): Delete.
8526 gdbarch.h, gdbarch.c: Re-generate.
8527 * valops.c (PARM_BOUNDARY): Delete macro.
8528 (value_push): Delete PARM_BOUNDARY code.
8529 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
8530
8531 2004-05-04 Jim Blandy <jimb@redhat.com>
8532
8533 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
8534 Don't assume that the gprs, fprs, and UISA sprs are
8535 contiguous, start at register number zero, and end with fpscr.
8536 Instead, use the numbers from the tdep structure.
8537
8538 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
8539 should no longer be used in code specific to the RS6000 and its
8540 derivatives.
8541 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
8542 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
8543 tdep->ppc_fp0_regnum.
8544 (ppc_supply_fpregset, ppc_collect_fpregset)
8545 (rs6000_push_dummy_call, rs6000_extract_return_value)
8546 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
8547 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
8548 FP0_REGNUM.
8549 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
8550 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
8551 Same.
8552 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
8553 bdm_ppc_store_registers): Same.
8554 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
8555 (store_register, fill_fpregset): Same.
8556 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
8557 (ppc_linux_supply_fpregset): Same.
8558 * ppcnbsd-nat.c (getfpregs_supplies): Same.
8559 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
8560 Same.
8561 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
8562 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
8563 ppc64_sysv_abi_return_value): Same.
8564 * rs6000-nat.c (regmap, fetch_inferior_registers)
8565 (store_inferior_registers, fetch_core_registers): Same.
8566
8567 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8568
8569 * m68knbsd-nat.c: Remove file.
8570 * m68knbsd-tdep.c: Remove file.
8571 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
8572 dependencies.
8573 * configure.host: Add m68k-*-netbsdelf*.
8574 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
8575 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
8576 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
8577 (XM_FILE): Remove.
8578 * config/m68k/nbsdelf.mh: New file.
8579 * config/m68k/nbsd.mt: New file.
8580 * config/m68k/nbsdaout.mt: Remove file.
8581 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
8582 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
8583 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
8584 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
8585 (use_struct_convention): Remove prototype.
8586 (USE_STRUCT_CONVENTION): Remove define.
8587 * config/m68k/xm-nbsd.h: Remove file.
8588
8589 2004-05-04 Michael Snyder <msnyder@redhat.com>
8590
8591 * m68k-tdep.c (m68k_gdbarch_init): Default to using
8592 reg_struct_return method (as gcc usually does for cross targets).
8593
8594 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8595
8596 Committed by Andrew Cagney.
8597 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
8598 alignment padding when accessing ucontext struct members.
8599
8600 2004-05-04 Jim Blandy <jimb@redhat.com>
8601
8602 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
8603 'ppc_gplast_regnum' member.
8604 (ppc_num_gprs): New enum constant.
8605 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
8606 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
8607 * rs6000-nat.c (regmap, fetch_inferior_registers,
8608 store_inferior_registers): Same.
8609 * rs6000-tdep.c (e500_pseudo_register_read)
8610 (e500_pseudo_register_write): Same.
8611 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
8612
8613 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
8614 * ppc-tdep.h (ppc_num_fprs): New enum constant.
8615 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
8616 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
8617 FPLAST_REGNUM.
8618 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8619 Same.
8620 * ppc-linux-nat.c (ppc_register_u_addr): Same.
8621 * rs6000-nat.c (regmap, fetch_inferior_registers)
8622 (store_inferior_registers): Same.
8623
8624 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
8625 with FPLAST_REGNUM.
8626
8627 2004-05-03 Joel Brobecker <brobecker@gnat.com>
8628
8629 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
8630 failure detected by recent versions of GCC.
8631 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
8632 to be consistent with the usage in dwarf2_create_include_psymtab.
8633
8634 2004-05-03 Michael Snyder <msnyder@redhat.com>
8635
8636 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
8637 (heuristic_proc_start): Whitespace cleanup.
8638
8639 2004-05-04 Mark Kettenis <kettenis@gnu.org>
8640
8641 * sun3-nat.c: Remove file.
8642 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
8643 dependencies.
8644 (ALLDEPFILES): Remove sun3-nat.c.
8645 (sun3-nat.o): Remove dependencies.
8646
8647 * i386-interix-nat.c, i386-interix-tdep.c,
8648 config/i386/nm-interix.h, config/i386/interix.mh,
8649 config/i386/interix.mt: Remove files.
8650 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
8651 dependencies.
8652
8653 2004-05-03 Mark Kettenis <kettenis@gnu.org>
8654
8655 * m68k-tdep.h (struct gdbarch_tdep): Add member
8656 struct_value_regnum.
8657 (m68k_svr4_init_abi): New prototype.
8658 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
8659 different calling conventions.
8660 (m68k_extract_return_value): Remove code dealing with single-field
8661 structs.
8662 (m68k_store_return_value): Remove code dealing with single-field
8663 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
8664 (m68k_extract_struct_value_address): Remove function.
8665 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
8666 (m68k_reg_struct_return_p, m68k_return_value)
8667 (m68k_svr4_return_value): New functions.
8668 (m68k_use_struct_convention): Remove function.
8669 (m68k_push_dummy_call): Use new struct_value_regnum member of
8670 `struct gdbarch_tdep' instead of hardcoded register number to
8671 store STRUCT_ADDR.
8672 (m68k_svr4_init_abi): New function.
8673 (m68k_gdbarch_init): Don't set extract_return_value,
8674 store_return_values, deprecated_extract_struct_value_address and
8675 use_struct_convention. Set return_value instead. Initialize new
8676 struct_value_regnum member of `struct gdbarch_tdep'.
8677 * m68klinux-tdep.c: Update copyright year.
8678 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
8679 (m68k_linux_extract_struct_value_address): Remove function.
8680 (m68k_linux_init_abi): Don't set extract_return_value,
8681 store_return_values, deprecated_extract_struct_value_address and
8682 use_struct_convention. Call m68k_svr4_init_abi but override the
8683 new struct_value_regnum member of `struct gdbarch_tdep'.
8684 * Makefile.in (m68k-tdep.o): Update dependencies.
8685
8686 2004-05-03 J. Brobecker <brobecker@gnat.com>
8687
8688 * dwarf2read.c (line_header): Add new included_p field in
8689 field file_names.
8690 (partial_die_info): New field has_stmt_list. New field line_offset.
8691 (dwarf2_create_include_psymtab): New function.
8692 (dwarf2_build_include_psymtabs): New function.
8693 (add_file_name): Add forward declaration. Initialize new field.
8694 (dwarf_decode_lines): Add new parameter. Enhance this procedure
8695 to be able to determine the list of files included by the
8696 given unit, and build their associated psymtabs.
8697 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
8698 files as well.
8699 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
8700 (read_file_scope): Update call to dwarf_decode_lines.
8701 (read_partial_die): Handle DW_AT_stmt_list attributes.
8702
8703 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
8704
8705 Unfix PR gdb/1626.
8706 * configure.in: Revert special case for osf5.*.
8707 * configure: Regenerate.
8708
8709 2004-05-02 Jim Blandy <jimb@redhat.com>
8710
8711 Move the symbol-file-from-memory functions into their own file.
8712 * symfile-mem.c, symfile-mem.h: New files.
8713 * symfile.c (symbol_file_add_from_bfd): New function.
8714 (symbol_file_add): Call symbol_file_add_from_bfd.
8715 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
8716 Moved to symfile-mem.c.
8717 (_initialize_symfile): Move definition of
8718 add-symbol-file-from-memory command to symfile-mem.c.
8719 * symfile.h (symbol_file_add_from_bfd): New declaration.
8720 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
8721 * config/powerpc/linux.mt (TDEPFILES): Same.
8722 * Makefile.in (SFILES): Add symfile-mem.c.
8723 (symfile_mem_h): New variable.
8724 (HFILES_NO_SRCDIR): Add symfile-mem.h.
8725 (symfile-mem.o): New rule.
8726
8727 2004-05-01 Andrew Cagney <cagney@redhat.com>
8728
8729 * breakpoint.c (insert_bp_location): Use get_frame_id, and
8730 frame_find_by_id instead of frame_relative_level.
8731 (do_enable_breakpoint): Ditto.
8732 * thread.c: Update copyright.
8733 (info_threads_command): Ditto, simplify.
8734
8735 * frame.c (deprecated_generic_get_saved_register): Delete
8736 function, moved to "xstormy16-tdep.c".
8737 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
8738 deprecated_generic_get_saved_register from "frame.c".
8739 (xstormy16_frame_saved_register): Call
8740 xstormy16_get_saved_register.
8741 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
8742 static.
8743 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
8744 * frame.h (deprecated_generic_get_saved_register): Delete.
8745
8746 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
8747
8748 * dwarfread.c: Update documentation on the state of dwarf-1.
8749
8750 2004-05-01 Andrew Cagney <cagney@redhat.com>
8751
8752 * stack.c (select_frame_command): Delete call to
8753 frame_relative_level.
8754 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
8755 Delete #if0 code.
8756 (frame_info): Do not print FRAMELESS.
8757 (print_block_frame_labels): Replace DEPRECATED_STREQ.
8758 (catch_info): Delete #if0 code.
8759
8760 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
8761 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
8762 of frame_relative_level.
8763 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
8764 to SENTINEL_FRAME.
8765 * frame.h (enum frame_type): Add SENTINEL_FRAME.
8766 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
8767 frame_relative_level.
8768
8769 * frame.h (deprecated_set_frame_type): Delete declaration.
8770 * frame.c (deprecated_set_frame_type): Delete function, update
8771 comments.
8772
8773 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
8774 * gdbarch.h, gdbarch.c: Re-generate.
8775 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
8776 (shnbsd_pc_in_sigtramp): Delete.
8777 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
8778 pc_in_sigtramp.
8779 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
8780 pc_in_sigtramp.
8781 * frame.h: Update comments.
8782 * ppc-linux-tdep.c: Update comments.
8783 * breakpoint.c (bpstat_what): Update comments.
8784
8785 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
8786 m68klinux-tdep.o's dependencies, were previously added to
8787 m68klinux-nat.o.
8788
8789 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
8790 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
8791 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8792 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8793 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8794
8795 * Makefile.in (m68klinux-nat.o): Update dependencies.
8796 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8797 (m68k_linux_sigtramp_frame_cache)
8798 (m68k_linux_sigtramp_frame_this_id)
8799 (m68k_linux_sigtramp_frame_prev_register)
8800 (m68k_linux_sigtramp_frame_unwind)
8801 (m68k_linux_sigtramp_frame_sniffer)
8802 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
8803 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
8804 names, use trad-frame.h.
8805 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
8806 (struct m68k_sigtramp_info): Delete.
8807 * m68k-tdep.c (m68k_sigtramp_frame_cache)
8808 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
8809 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
8810 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
8811 "m68klinux-tdep.c".
8812
8813 * infrun.c (check_sigtramp2): Delete check for
8814 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
8815
8816 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8817
8818 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
8819
8820 2004-05-01 Andrew Cagney <cagney@redhat.com>
8821
8822 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8823 (frv_linux_sigtramp_frame_cache)
8824 (frv_linux_sigtramp_frame_this_id)
8825 (frv_linux_sigtramp_frame_prev_register)
8826 (frv_linux_sigtramp_frame_unwind)
8827 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
8828 include "linux" in function and variable names, directly call
8829 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
8830 the latest trad-frame code.
8831 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
8832 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
8833 * Makefile.in (frv-linux-tdep.o): Update dependencies.
8834 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
8835 * frv-tdep.c (frv_sigtramp_frame_cache)
8836 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8837 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
8838 frv-linux-tdep.c.
8839 (frv_gdbarch_init): Do not append a sigtramp sniffer.
8840 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
8841 (frv_set_sigcontext_reg_addr): Delete function.
8842
8843 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
8844 (DEPRECATED_SIGTRAMP_END): Delete.
8845 * gdbarch.h, gdbarch.c: Re-generate.
8846 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
8847 * config/vax/tm-vaxbsd.h: Update copyright.
8848 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8849 (DEPRECATED_IN_SIGTRAMP): Define.
8850 * config/m68k/tm-nbsd.h: Update copyright.
8851 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8852 (DEPRECATED_IN_SIGTRAMP): Define.
8853
8854 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8855
8856 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
8857 encondings. Fixes PR gdb/1628.
8858
8859 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
8860 DW_CFA_restore state without a matching DW_CFA_remember_state
8861 instead of aborting. Fixes PR backtrace/1589.
8862
8863 2004-04-30 Joel Brobecker <brobecker@gnat.com>
8864
8865 * MAINTAINERS: Add self as AIX maintainer.
8866 Update my e-mail address in write-after-approval section.
8867
8868 2004-04-30 Andrew Cagney <cagney@redhat.com>
8869
8870 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
8871 (legacy_get_prev_frame): Ditto.
8872
8873 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
8874 (mips_gdbarch_init): Do not set pc_in_sigtramp.
8875 * mipsread.c (sigtramp_address): Delete extern variable.
8876 (mipscoff_new_init): Delete reference.
8877 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
8878 (fixup_sigtramp): Delete function.
8879 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
8880 (fixup_sigtramp): Delete declarations.
8881
8882 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
8883 deprecated_pc_in_sigtramp.
8884 (ppcnbsd_pc_in_sigtramp): Delete function.
8885
8886 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8887
8888 * config/m68k/nm-nbsd.h: Tweak comments.
8889 * config/m68k/nm-nbsdaout.h: Likewise.
8890
8891 2004-04-30 Andrew Cagney <cagney@redhat.com>
8892
8893 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
8894 legacy_pc_in_sigtramp.
8895 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
8896
8897 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8898
8899 Add OpenBSD/m68k support.
8900 * NEWS (New native configurations): Mention OpenBSD/m68k.
8901 * m68kbsd-tdep.c: New file.
8902 * m68kbsd-nat.c: New file.
8903 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
8904 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
8905 * configure.host: Add m68k-*-openbsd.
8906 * configure.tgt: Add m68k-*-openbsd.
8907 * config/m68k/tm-obsd.h: New file.
8908 * config/m68k/obsd.mt: New file.
8909 * config/m68k/obsd.mh: New file.
8910 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
8911 m68kbsd-tdep.c.
8912
8913 2004-04-30 Andrew Cagney <cagney@redhat.com>
8914
8915 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
8916 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
8917
8918 2004-04-30 Mark Kettenis <kettenis@gnu.org>
8919
8920 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
8921 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
8922
8923 2004-04-30 Brian Ford <ford@vss.fsi.com>
8924
8925 Revert 2004-04-16 change.
8926 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
8927 (i386_coff_init_abi): Remove.
8928 * i386-tdep.h (i386_coff_init_abi): Remove.
8929 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
8930
8931 2004-04-30 Andrew Cagney <cagney@redhat.com>
8932
8933 * blockframe.c (find_pc_partial_function): Delete use of
8934 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
8935 DEPRECATED_SIGTRAMP_END.
8936
8937 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
8938 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
8939 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
8940 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
8941 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
8942
8943 * defs.h (deprecated_inside_entry_file): Delete declaration.
8944 * blockframe.c (deprecated_inside_entry_file): Delete function.
8945 (legacy_frame_chain_valid): Delete call.
8946 * sh64-tdep.c (sh64_frame_chain): Delete call.
8947 * objfiles.h: Update comments.
8948 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
8949 call.
8950 * frame.c (get_prev_frame): Delete call, update comments.
8951
8952 2004-04-30 Brian Ford <ford@vss.fsi.com>
8953
8954 * MAINTAINERS (Write After Approval): Add myself.
8955
8956 2004-04-30 Andrew Cagney <cagney@redhat.com>
8957
8958 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
8959 * gdbarch.h, gdbarch.c: Re-generate.
8960 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
8961 code.
8962
8963 2004-04-30 Andrew Cagney <cagney@redhat.com>
8964
8965 * gdb-events.sh (selected_thread_changed)
8966 (selected_frame_level_changed, target_changed): Delete.
8967 * gdb-events.h, gdb-events.c: Re-generate.
8968 * valops.c (value_assign): Update.
8969 * stack.c (select_frame_command, up_silently_base)
8970 (down_silently_base): Update.
8971
8972 2004-04-29 Andrew Cagney <cagney@redhat.com>
8973
8974 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
8975 registers correctly.
8976 (print_gp_register_row, mips32_heuristic_proc_desc)
8977 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
8978 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
8979 references to mips_isa_regsize.
8980
8981 2004-04-29 Andrew Cagney <cagney@redhat.com>
8982
8983 * mips-tdep.c (struct gdbarch_tdep): Delete
8984 mips_fp_register_double.
8985 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
8986 mips_abi_regsize.
8987 (mips_gdbarch_init): Do not set mips_fp_register_double.
8988 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
8989
8990 2004-04-29 Joel Brobecker <brobecker@gnat.com>
8991
8992 Committed by Andrew Cagney.
8993 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
8994 function calls.
8995
8996 2004-04-29 Andrew Cagney <cagney@redhat.com>
8997
8998 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
8999 gdbarch, use mips_abi, update callers.
9000 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
9001 mips_abi_regsize, update callers.
9002 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
9003 mips_default_abi_regsize.
9004 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
9005 mips_default_abi_regsize.
9006
9007 2004-04-29 Andrew Cagney <cagney@redhat.com>
9008
9009 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
9010 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
9011 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
9012 mips_default_abi_regsize.
9013 (mips_isa_regsize): Rename mips_regisze.
9014 * mipsnbsd-tdep.c: Update.
9015 * mips-linux-tdep.c: Update.
9016 * irix5-nat.c: Update.
9017 * mips-tdep.h (mips_isa_regsize): Update.
9018
9019 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
9020 Delete all disabled code.
9021 * gdb-events.h, gdb-events.c: Re-generate.
9022
9023 2004-04-19 Jerome Guitton <guitton@gnat.com>
9024 Mark Kettenis <kettenis@gnu.org>
9025
9026 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
9027 the function begins with a branch instruction.
9028
9029 2004-04-29 Mark Kettenis <kettenis@gnu.org>
9030
9031 * i386-tdep.c: Fix spelling mistakes.
9032
9033 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9034 Andrew Cagney <cagney@redhat.com>
9035
9036 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
9037 <sys/proc.h>.
9038 * acconfig.h: Provide default _KMEMUSER value.
9039 * config.in, configure: Re-generate.
9040 * NEWS: Mention fix.
9041
9042 2004-04-24 Randolph Chung <tausq@debian.org>
9043
9044 * configure.host (hppa*-*-linux*): New target.
9045 * configure.tgt (hppa*-*-linux*): Likewise.
9046 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
9047 gdbarch_init_osabi() call earlier so that osabi-specific frame
9048 unwinders can be registered first.
9049 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
9050 hppa-linux-nat.c.
9051 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
9052 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
9053 * config/pa/linux.mh: New file.
9054 * config/pa/linux.mt: New file.
9055 * config/pa/nm-linux.h: New file.
9056 * config/pa/xm-linux.h: New file.
9057 * hppa-linux-nat.c: New file.
9058 * hppa-linux-tdep.c: New file.
9059
9060 2004-04-28 Randolph Chung <tausq@debian.org>
9061
9062 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
9063 return values.
9064 (hppa32_push_dummy_call): Fix small struct and floating point argument
9065 passing, and make sure the stack frame is properly aligned.
9066
9067 2004-04-28 Andrew Cagney <cagney@redhat.com>
9068
9069 * stack.c (print_stack_frame): Fix description.
9070
9071 * NEWS: Mention gdb/gdbserver/configure execute permission
9072 changed. PR server/519.
9073
9074 2004-04-28 Andrew Cagney <cagney@redhat.com>
9075
9076 * stack.c (print_stack_frame_stub): Delete declaration.
9077 (struct print_stack_frame_args, print_stack_frame)
9078 (print_frame_info, print_frame): Replace "source" with print what.
9079 Replace "print" with "print_level". Replace "args" with
9080 "print_args".
9081 * frame.h (show_and_print_stack_frame, print_stack_frame)
9082 (print_frame_info): Update declarations.
9083 * stack.c (select_and_print_frame, frame_command)
9084 (current_frame_command, up_command, down_command): Update calls -
9085 use get_selected_frame, pass "enum print_what" for source, do not
9086 call frame_relative_level.
9087 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
9088 * remote-rdp.c (remote_rdp_open): Ditto.
9089 * remote-mips.c (common_open): Ditto.
9090 * remote-e7000.c (e7000_start_remote): Ditto.
9091 * ocd.c (ocd_start_remote): Ditto.
9092 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
9093 * infrun.c (normal_stop): Ditto.
9094 * inflow.c (kill_command): Ditto.
9095 * infcmd.c (finish_command): Ditto.
9096 * corelow.c (core_open): Ditto.
9097 * tracepoint.c (finish_tfind_command): Ditto.
9098 * thread.c (info_threads_command, info_threads_command)
9099 (restore_current_thread, do_captured_thread_select): Ditto.
9100 * ada-tasks.c (task_command): Ditto.
9101
9102 2004-04-26 Orjan Friberg <orjanf@axis.com>
9103
9104 * frame.c: Include "observer.h".
9105 (frame_observer_target_changed): New function.
9106 (_initialize_frame): Attach target_changed observer.
9107 * regcache.c: Include "observer.h".
9108 (regcache_observer_target_changed): New function.
9109 (_initialize_regcache): Attach target_changed observer.
9110 * valops.c: Include "observer.h".
9111 (value_assign): Notify target_changed event when modifying register.
9112 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
9113
9114 2004-04-26 Orjan Friberg <orjanf@axis.com>
9115
9116 From Paul Koning <pkoning@equallogic.com>:
9117 * breakpoint.c (free_valchain): New function.
9118 (insert_bp_location, delete_breakpoint): Use free_valchain.
9119 (remove_breakpoint): Do not remove the valchain.
9120 (bpstat_stop_status): If not stopped by watchpoint, skip
9121 watchpoints when generating stop status list.
9122 * infrun.c (handle_inferior_event): Make
9123 stepped_after_stopped_by_watchpoint a global variable.
9124 * remote.c (remote_stopped_data_address): Return watch data
9125 address rather than zero if stepped_after_stopped_by_watchpoint is
9126 set.
9127
9128 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
9129
9130 Fix PR gdb/1626.
9131 * configure.in: Check for curses after termcap.
9132 On osf5.*, do not check for ncurses.
9133 * configure: Regenerate.
9134
9135 2004-04-25 Mark Kettenis <kettenis@gnu.org>
9136
9137 * ppcobsd-nat.c: Include "ppc-tdep.h".
9138 * Makefile.in (ppcobsd-nat.o): Update dependencies.
9139
9140 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
9141 Fixes PR tdep/1623 and PR tdep/1624.
9142
9143 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
9144
9145 * xmodem.h, xmodem.c: Remove files.
9146 * Makefile.in: Remove references to xmodem.h, xmodem.c.
9147
9148 2004-04-23 Randolph Chung <tausq@debian.org>
9149
9150 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
9151 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
9152 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
9153 for handling stackless frames.
9154 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
9155
9156 2004-04-23 Randolph Chung <tausq@debian.org>
9157
9158 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
9159 starts at a pc before the frame is created.
9160
9161 2004-04-23 Joel Brobecker <brobecker@gnat.com>
9162
9163 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
9164
9165 2004-04-23 Jerome Guitton <guitton@gnat.com>
9166
9167 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
9168 use convert_typed_floating to get the appropriate format.
9169
9170 2004-04-22 Randolph Chung <tausq@debian.org>
9171
9172 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
9173 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
9174 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
9175 (hppa_sign_extend): Add prototype.
9176 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
9177 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
9178 (sign_extend): Rename with hppa_ prefix and make non-static. Other
9179 hppa targets will also use these functions.
9180 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
9181 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
9182 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
9183 (hppa_gdbarch_init): Remove gdbarch setting of
9184 skip_trampoline_code, in_solib_call_trampoline and
9185 in_solib_return_trampoline.
9186 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
9187 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
9188 hppa_in_solib_call_trampoline.
9189 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
9190 Moved from hppa-tdep.c.
9191 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
9192 in_solib_call_trampoline and in_solib_return_trampoline.
9193
9194 2004-04-22 Randolph Chung <tausq@debian.org>
9195
9196 * hppa-tdep.c (hppa_debug): New variable.
9197 (find_unwind_entry, hppa_frame_cache): Add debug output.
9198 (_initialize_hppa_tdep): Add command to set debug flag.
9199
9200 2004-04-22 Andrew Cagney <cagney@redhat.com>
9201
9202 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
9203 "trad-frame.h".
9204 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
9205 signal trampoline unwinder.
9206 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
9207
9208 2004-04-22 Mark Kettenis <kettenis@gnu.org>
9209
9210 Add OpenBSD/powerpc support.
9211 * NEWS (New native configurations): Mention OpenBSD/powerpc.
9212 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
9213 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
9214 (ppc_collect_fpregset): New prototypes.
9215 * ppcobsd-nat.c: New file.
9216 * ppcobsd-tdep.c: New file.
9217 * ppcobsd-tdep.h: New file.
9218 * rs6000-tdep.c: Include "regset.h".
9219 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
9220 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
9221 New functions.
9222 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
9223 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
9224 (rs6000-tdep.o): Update dependencies.
9225 * configure.host: Add powerpc-*-openbsd.
9226 * configure.tgt: Add powerpc-*-openbsd.
9227 * config/powerpc/obsd.mh: New file.
9228 * config/powerpc/nm-obsd.h: New file.
9229 * config/powerpc/obsd.mt: New file.
9230
9231 2004-04-22 Andrew Cagney <cagney@redhat.com>
9232
9233 * frame.h (show_frame_info): Delete declaration.
9234
9235 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
9236 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
9237 * m32r-tdep.c (m32r_frame_this_id): Ditto.
9238 * frv-tdep.c (frv_frame_this_id): Ditto.
9239 * avr-tdep.c (avr_frame_this_id): Ditto.
9240
9241 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
9242
9243 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
9244
9245 2004-04-22 Jim Blandy <jimb@redhat.com>
9246
9247 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
9248 register number zero.
9249
9250 2004-04-21 Michael Snyder <msnyder@redhat.com>
9251
9252 * mips-tdep.c (heuristic_proc_start):
9253 Warning() already prefixes "Warning: ".
9254
9255 2004-04-21 Andrew Cagney <cagney@redhat.com>
9256
9257 * annotate.h (deprecated_annotate_starting_hook)
9258 (deprecated_annotate_stopped_hook)
9259 (deprecated_annotate_exited_hook)
9260 (deprecated_annotate_signal_hook)
9261 (deprecated_annotate_signalled_hook): Deprecate.
9262 * tracepoint.h (deprecated_create_tracepoint_hook)
9263 (deprecated_delete_tracepoint_hook)
9264 (deprecated_modify_tracepoint_hook)
9265 (deprecated_trace_find_hook)
9266 (deprecated_trace_start_stop_hook): Deprecate.
9267 * target.h (deprecated_target_new_objfile_hook): Deprecate.
9268 * remote.h (deprecated_target_resume_hook)
9269 (deprecated_target_wait_loop_hook): Deprecate.
9270 * gdbcore.h (deprecated_exec_file_display_hook)
9271 (deprecated_file_changed_hook): Deprecate.
9272 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
9273 * defs.h (deprecated_modify_breakpoint_hook)
9274 (deprecated_command_loop_hook, deprecated_show_load_progress)
9275 (deprecated_print_frame_info_listing_hook)
9276 (deprecated_query_hook, deprecated_warning_hook)
9277 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
9278 (deprecated_delete_breakpoint_hook)
9279 (deprecated_interactive_hook, deprecated_registers_changed_hook)
9280 (deprecated_readline_begin_hook, deprecated_readline_hook)
9281 (deprecated_readline_end_hook, deprecated_register_changed_hook)
9282 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
9283 (deprecated_context_hook, deprecated_target_wait_hook)
9284 (deprecated_attach_hook, deprecated_detach_hook)
9285 (deprecated_call_command_hook, deprecated_set_hook)
9286 (deprecated_error_hook, deprecated_error_begin_hook)
9287 (deprecated_ui_load_progress_hook): Deprecate.
9288 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
9289 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
9290 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
9291 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
9292 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
9293 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
9294 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
9295 * annotate.c, aix-thread.c: Update.
9296
9297 2004-04-21 Andrew Cagney <cagney@redhat.com>
9298
9299 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
9300 * vaxnbsd-tdep.c: Include "gdb_string.h".
9301
9302 * symfile.c (symbol_file_add_from_memory): #if 0 function.
9303 (add_symbol_file_from_memory_command): #if 0 function body, call
9304 error instead.
9305
9306 2004-04-21 Andrew Cagney <cagney@redhat.com>
9307
9308 * gdbcore.h: Update copyright.
9309 (deprecated_add_core_fns): Rename add_core_fns.
9310 * win32-nat.c (_initialize_core_win32): Update.
9311 * sun3-nat.c (_initialize_core_sun3): Update.
9312 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
9313 * rs6000-nat.c (_initialize_core_rs6000): Update.
9314 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
9315 * nto-tdep.c (_initialize_nto_tdep): Update.
9316 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
9317 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
9318 * mips-nat.c (_initialize_core_mips): Update.
9319 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
9320 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
9321 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
9322 * lynx-nat.c (_initialize_core_lynx): Update.
9323 * irix5-nat.c (_initialize_core_irix5): Update.
9324 * i386-interix-nat.c (_initialize_core_interix): Update.
9325 * cris-tdep.c (_initialize_cris_tdep): Update.
9326 * corelow.c (deprecated_add_core_fns): Update.
9327 * core-regset.c (_initialize_core_regset): Update.
9328 * core-aout.c (_initialize_core_aout): Update.
9329 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
9330 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
9331 * alpha-nat.c (_initialize_core_alpha): Update.
9332
9333 2004-04-21 Jim Blandy <jimb@redhat.com>
9334
9335 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
9336
9337 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
9338
9339 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
9340 Delete.
9341 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
9342 (read_attribute_value): Update calls to dwarf_alloc_block.
9343 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
9344 dwarf2_tmp_obstack.
9345 (psymtab_to_symtab_1): Likewise. Clean up using
9346 free_stack_comp_unit.
9347 (add_to_cu_func_list): Use the comp_unit_obstack.
9348
9349 2004-04-19 Joel Brobecker <brobecker@gnat.com>
9350
9351 * dwarf2read.c (dwarf2_flag_true_p): New function.
9352 (die_is_declaration): Use the function above. Add some comments.
9353
9354 2004-04-19 Mark Kettenis <kettenis@gnu.org>
9355
9356 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
9357 architecture when registering sparcnbsd_core_osabi_sniffer.
9358 Adjust comment.
9359
9360 2004-04-18 Mark Kettenis <kettenis@gnu.org>
9361
9362 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
9363 return value.
9364
9365 Based on a patch from Brian Ford <ford@vss.fsi.com>:
9366 * i386-tdep.c: Correct register numbering scheme comments
9367 throughout.
9368 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
9369 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
9370 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
9371 (i386_gdb_arch_init): Likewise.
9372
9373 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
9374 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
9375 ppcnbsd-tdep.o.
9376
9377 * m68k-tdep.h: Tweak comments.
9378 * m68k-tdep.c: Tweak comment.
9379
9380 2004-04-17 Randolph Chung <tausq@debian.org>
9381
9382 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
9383 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
9384 (hppa_hpux_som_init_abi): Set is_elf to 0.
9385 (hppa_hpux_elf_init_abi): Set is_elf to 1.
9386 * hppa-tdep.c (low_text_segment_address): Remove global.
9387 (record_text_segment_lowaddr): Pass in low address as parameter. Use
9388 section offset to calculate segment address.
9389 (internalize_unwinds): Define low_text_segment_address as local and
9390 pass to record_text_segment_lowaddr for ELF targets.
9391 (hppa_gdbarch_init): Zero fill tdep structure.
9392 (hppa_dump_tdep): Print tdep structure.
9393 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
9394
9395 2004-04-17 Randolph Chung <tausq@debian.org>
9396
9397 * hppa-tdep.c (hppa_pseudo_register_read): Define.
9398 (hppa_gdbarch_init): Set pseudo_register_read.
9399 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
9400 * regcache.c (supply_register): Remove check for
9401 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
9402
9403 2004-04-17 Randolph Chung <tausq@debian.org>
9404
9405 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
9406 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
9407 (hpread_adjust_stack_address): Move to hpread.c.
9408 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
9409 obj_private_struct): Move from tm-hppa.h.
9410 * hpread.c (hppa-tdep.h): Include.
9411 (hpread_adjust_stack_address): Move from hppa-tdep.c.
9412 (hpread_read_function_type, hpread_read_doc_function_type)
9413 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
9414 directly.
9415 * pa64solib.c (hppa-tdep.h): Include.
9416 * somsolib.c (hppa-tdep.h): Include.
9417 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
9418 inferior_status): Remove unused forward declarations.
9419 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
9420 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
9421 obj_private_struct): Move to hppa-tdep.h.
9422 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
9423
9424 2004-04-17 Randolph Chung <tausq@debian.org>
9425
9426 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
9427 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
9428 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
9429 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
9430 Remove forward declaration and make static.
9431 (hppa_reg_struct_has_addr): Remove.
9432
9433 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9434
9435 * observer.sh: Move comments in sed command to first column.
9436
9437 2004-04-16 Jason Molenda (jmolenda@apple.com)
9438
9439 * frame.c: Minor typeo corrections in comments.
9440
9441 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9442
9443 * observer.c (observer_test_first_notification_function): Update
9444 function profile.
9445 (observer_test_second_notification_function): Likewise.
9446 (observer_test_third_notification_function): Likewise.
9447
9448 2004-04-16 Mark Kettenis <kettenis@gnu.org>
9449
9450 From Brian Ford <ford@vss.fsi.com>:
9451 * i386-tdep.c (i386_coff_init_abi): New function.
9452 * i386-tdep.h (i386_coff_init_abi): New prototype.
9453 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
9454 register number translation functions for DWARF and DWARF 2.
9455
9456 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9457
9458 * dwarf2read.c: Back out my previous change, it was incorrect.
9459
9460 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
9461
9462 * dwarf2read.c: Include "hashtab.h".
9463 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
9464 has_namespace_info.
9465 (struct partial_die_info): Add comments. Use bitfields to reduce
9466 memory footprint. Add scope, scope_set, has_specification,
9467 spec_offset, die_parent, die_child, and die_sibling.
9468 (peek_die_abbrev): Add prototype.
9469 (partial_read_comp_unit_head): New function, broken out from
9470 dwarf2_build_psymtabs_hard.
9471 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
9472 Use partial_read_comp_unit_head. Initialize the CU and
9473 comp_unit_obstack. Update calls to read_partial_die and
9474 scan_partial_symbols. Use free_stack_comp_unit and
9475 load_partial_dies.
9476 (scan_partial_symbols): Change PDI to a pointer. Use the child and
9477 sibling pointers to walk partial DIEs. Call fixup_partial_die.
9478 Update calls to helper functions. Remove NAMESPACE argument.
9479 Update comments.
9480 (partial_die_parent_scope, partial_die_full_name): New functions.
9481 (add_partial_symbol): Remove namespace argument. Update call to
9482 pdi_needs_namespace. Use partial_die_full_name. Handle
9483 DW_TAG_namespace. Check has_namespace_info flag.
9484 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
9485 tag. Handle namespaces.
9486 (add_partial_namespace, add_partial_enumeration): Simplify.
9487 (guess_structure_name): New function, derived from
9488 add_partial_structure.
9489 (add_partial_structure): Remove.
9490 (determine_class_name): Update comment.
9491 (dwarf2_read_abbrevs): Set has_namespace_info flag.
9492 (is_type_tag_for_partial, load_partial_dies): New functions.
9493 (read_partial_die): Pass abbrev and abbrev_len as arguments.
9494 Record specifications instead of following them immediately.
9495 (find_partial_die_in_comp_unit, find_partial_die)
9496 (fixup_partial_die, free_stack_comp_unit)
9497 (hashtab_obstack_allocate, dummy_obstack_deallocate)
9498 (partial_die_hash, partial_die_eq): New functions.
9499 * Makefile.in (hashtab_h): Define.
9500 (dwarf2read.o): Update dependencies.
9501 (observer_inc, observer_h): Move to the correct section.
9502
9503 2004-04-15 Joel Brobecker <brobecker@gnat.com>
9504
9505 * dwarf2read.c (dwarf2_attribute_true_p): New function.
9506 (die_is_declaration): Use the function above. Add comment.
9507
9508 2004-04-15 Joel Brobecker <brobecker@gnat.com>
9509
9510 * dwarf2read.c (read_structure_scope): Identify stub types
9511 using die_is_declaration() only.
9512
9513 2004-04-15 Roland McGrath <roland@redhat.com>
9514
9515 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
9516 argument instead of NAME.
9517 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
9518 in call to symbol_file_add_with_addrs_or_offsets.
9519 (build_addr_info): New function, helper for ...
9520 (symbol_file_add_from_memory): New function.
9521 (add_symbol_file_from_memory_command): New function using that.
9522 (_initialize_symfile): Register it for add-symbol-file-from-memory.
9523 (pre_add_symbol_hook): Add const to argument type.
9524 * symfile.h (symbol_file_add_from_memory): Declare it.
9525
9526 2004-04-15 Mark Kettenis <kettenis@gnu.org>
9527
9528 * NEWS (New native configurations): Mention OpenBSD/vax.
9529 * configure.host: Add vax-*-openbsd*.
9530 * config/vax/obsd.mh: New file.
9531 * config/vax/nm-obsd.h: New file.
9532
9533 * vax-tdep.c: Include "regset.h".
9534 (vax_supply_gregset): New function.
9535 (vax_gregset): New variable.
9536 (vax_regset_from_core_section): New function.
9537 (vax_gdbarch_init): Set regset_from_core_section.
9538 * Makefile.in (vax-tdep.o): Update dependencies.
9539
9540 2004-04-15 Andrew Cagney <cagney@redhat.com>
9541
9542 * observer.c (normal_stop_subject, observer_notify_normal_stop)
9543 (observer_normal_stop_notification_stub)
9544 (observer_attach_normal_stop, observer_detach_normal_stop):
9545 Delete, replaced by #include "observer.inc".
9546 * infrun.c (normal_stop): Pass "stop_bpstat" to
9547 observer_notify_normal_stop.
9548 * Makefile.in (observer_inc): Define.
9549 (observer.o): Update dependencies.
9550 (observer.h, observer.inc): New rules.
9551 * observer.h: Delete file.
9552 * observer.sh: New file.
9553
9554 2004-04-15 Mark Kettenis <kettenis@gnu.org>
9555
9556 * vax-tdep.c (vax_frame_cache): Fix typo.
9557
9558 2004-04-14 Mark Kettenis <kettenis@gnu.org>
9559
9560 * NEWS (New native configurations): Mention NetBSD/vax.
9561 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
9562 * config/vax/nbsdelf.mh: New file.
9563 * config/vax/nbsdaout.mh: New file.
9564 * config/vax/nm-nbsd.h: New file.
9565 * config/vax/nm-nbsdaout.h: New file.
9566
9567 * vaxnbsd-tdep.c: New file.
9568 * Makefile.in (vaxnbsd-tdep.o): New dependency.
9569 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
9570 * config/vax/nbsd.mt: New file.
9571 * config/vax/tm-nbsd.h: New file.
9572
9573 * Makefile.in (vaxbsd-nat.o): New dependency.
9574
9575 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
9576 * vax-tdep.c (vax_store_arguments): Remove struct_return and
9577 struct_addr arguments. Don't push return value address.
9578 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
9579 arguments to vax_store_arguments. Store return value address in
9580 R1.
9581 (vax_store_struct_return, vax_extract_return_value)
9582 (vax_store_return_value): Remove functions.
9583 (vax_return_value): New function.
9584 (vax_gdbarch_init): Set return value. Don't set
9585 deprecated_store_struct_return, deprecated_extract_struct_return
9586 and deprecated_store_return_value.
9587
9588 2004-04-14 Andreas Schwab <schwab@suse.de>
9589
9590 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
9591 value buffer.
9592 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
9593
9594 2004-04-14 Mark Kettenis <kettenis@gnu.org>
9595
9596 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
9597 (vax_unwind_dummy_id): New functions.
9598 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
9599 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
9600 variables.
9601 (vax_fix_call_dummy): Remove function.
9602 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
9603 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
9604 call_dummy_location, deprecated_call_dummy_words,
9605 deprecated_sizeof_call_dummy_words,
9606 deprecated_call_dummy_breakpoint_offset,
9607 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
9608 and deprecated_dummy_write_sp.
9609
9610 2004-04-13 David Carlton <carlton@kealia.com>
9611
9612 * MAINTAINERS: Move myself to "paper trail" section.
9613
9614 2004-04-12 Mark Kettenis <kettenis@gnu.org>
9615
9616 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
9617 "trad-frame.h".
9618 (vax_frame_init_saved_regs): Remove function.
9619 (vax_sigtramp_saved_pc): Remove function.
9620 (vax_frame_saved_pc): Remove function.
9621 (vax_frame_args_address): Remove function.
9622 (vax_frame_num_args): Rewrite.
9623 (vax_frame_chain): Remove function.
9624 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
9625 VAX_FP_REGNUM.
9626 (vax_pop_frame): Likewise.
9627 (vax_saved_pc_after_call): Remove function.
9628 (struct vax_frame_cache): New structure.
9629 (vax_frame_cache): New function.
9630 (vax_frame_this_id): New function.
9631 (vax_frame_prev_register): New function.
9632 (vax_frame_unwind): New variable.
9633 (vax_frame_sniffer): New function.
9634 (vax_frame_base_address): New function.
9635 (vax_frame_args_address): New function.
9636 (vax_frame_base): New variable.
9637 (vax_unwind_pc): New function.
9638 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
9639 deprecated_fp_regnum, deprecated_saved_pc_after_call,
9640 deprecated_frame_chain, deprecated_frame_saved_pc,
9641 deprecated_frame_args_address and
9642 deprecated_frame_init_saved_regs.
9643 * Makefile.in (vax-tdep.o): Update dependencies.
9644
9645 * vaxbsd-nat.c: New file.
9646
9647 * vax-tdep.h: Update copyright year. Adjust comments.
9648 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
9649 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
9650 (vax_regnum): New enum. Replacing...
9651 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
9652 (VAX_PS_REGNUM): ... these removed macros.
9653 * vax-tdep.c (vax_register_name): Remove prototype.
9654 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
9655 (vax_register_byte, vax_register_raw_size,
9656 vax_register_virtual_size, vax_register_virtual_type): Remove
9657 functions.
9658 (vax_register_type): New function.
9659 (vax_breakpoint_from_pc): Reorganize.
9660 (vax_gdbarch_init): Set register_type. Don't set
9661 deprecated_register_size, deprecated_register_bytes,
9662 deprecated_register_byte, deprecated_register_raw_size,
9663 deprecated_max_register_raw_size,
9664 deprecated_register_virtual_size,
9665 deprecated_max_register_virtual_size and
9666 deprecated_register_virtual_type. Add comment on stack direction.
9667
9668 2004-04-11 Mark Kettenis <kettenis@gnu.org>
9669
9670 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
9671 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
9672 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
9673
9674 2004-04-10 Randolph Chung <tausq@debian.org>
9675
9676 * MAINTAINERS (write after approval): Add myself.
9677
9678 2004-04-07 Randolph Chung <tausq@debian.org>
9679
9680 * hppa-tdep.c (hppa_inner_than): Remove.
9681 (is_pa_2): Remove unused static variable.
9682 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
9683
9684 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
9685
9686 * language.h (language_defn): Add new la_post_parser field.
9687 * parser-defs.h (null_post_parser): New declaration (default for
9688 la_post_parser).
9689
9690 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
9691 insert call to that function.
9692 (parse_exp_in_context): New function, including code formerly in
9693 parse_exp_1. Calls language-dependent post-parser after
9694 prefixification.
9695 (parse_expression_in_context): New exported function.
9696 (null_post_parser): New definition.
9697 * expression.h (parse_expression_in_context): Add declaration.
9698
9699 * p-lang.c (pascal_language_defn): Add trivial post-parser.
9700 * c-lang.c (c_language_defn): Ditto.
9701 (cplus_language_defn): Ditto.
9702 (asm_language_defn): Ditto.
9703 (minimal_language_defn): Ditto.
9704 * f-lang.c (f_language_defn): Ditto.
9705 * jv-lang.c (java_language_defn): Ditto.
9706 * language.c (unknown_language_defn): Ditto.
9707 (auto_language_defn): Ditto.
9708 (local_language_defn): Ditto.
9709 * m2-lang.c (m2_language_defn): Ditto.
9710 * scm-lang.c (scm_language_defn): Ditto.
9711 * obj-lang.c (objc_language_defn): Ditto.
9712
9713 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9714
9715 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
9716 (amd64nbsd_mcontext_addr): New function.
9717 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
9718 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
9719 with amd64nbsd_r_reg_offset, instead of building it on the fly.
9720
9721 * corelow.c (core_xfer_partial): Fix coding standards violation.
9722 Add support for TARGET_OBJECT_WCOOKIE.
9723
9724 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
9725 deprecated_pc_in_sigtramp.
9726 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
9727 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
9728 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
9729 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9730 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
9731 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9732 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
9733
9734 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
9735 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
9736 Fix typo.
9737
9738 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
9739 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
9740 (amd64_collect_fxsave): Likewise.
9741
9742 * i386-sol2-tdep.c: Include "gdb_string.h".
9743 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
9744 name.
9745 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9746
9747 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9748
9749 * i386-sol2-tdep.c: Include "solib-svr4.h".
9750 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9751 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9752 * config/i386/tm-i386sol2.h: Include :solib.h".
9753 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
9754 solib-svr4.o and solib-legacy.o.
9755 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
9756 solib-svr4.o.
9757
9758 2004-04-09 Mark Kettenis <kettenis@gnu.org>
9759
9760 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
9761 whether a register is supplied by PTRACE_GETFPREGS.
9762 (store_inferior_registers): Likewise.
9763 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
9764 whether a register is supplied by PT_GETFPREGS.
9765 (store_inferior_registers): Likewise.
9766
9767 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
9768 * config/i386/linux64.mt (TDEPFILES): Likewise.
9769
9770 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
9771
9772 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
9773 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9774 the program counter is in the range specified by `struct
9775 gdbarch_tdep'.
9776 * amd64-linux-tdep.c: Include "symtab.h".
9777 (amd64_linux_pc_in_sigtramp): Remove function.
9778 (amd64_linux_sigtramp_p): New function.
9779 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9780 deprecated_pc_in_sigtramp.
9781 * amd64nbsd-tdep.c: Include "symtab.h".
9782 (amd64nbsd_sigtramp_p): New function.
9783 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9784 deprecated_pc_in_sigtramp.
9785 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
9786 few comments.
9787 (amd64obsd_pc_in_sigtramp): Remove function.
9788 (amd64obsd_sigtramp_p): New function.
9789 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9790 deprecated_pc_in_sigtramp.
9791 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
9792 (i386bsd_pc_ins_sigtramp): Remove prototype.
9793 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
9794 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
9795 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9796 the program counter is in the range specified by `struct
9797 gdbarch_tdep'.
9798 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
9799 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
9800 (i386_go32_pc_in_sigtramp): Remove function.
9801 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
9802 Initialize TDEP->sigtramp_p.
9803 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
9804 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
9805 deprecated_pc_in_sigtramp.
9806 * i386-linux-tdep.c: Adjust comments.
9807 (i386_linux_pc_in_sigtramp): Remove function.
9808 (i386_linux_sigtramp_p): New function.
9809 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9810 deprecated_pc_in_sigtramp.
9811 * i386-nto-tdep.c: Update copyright year.
9812 (i386nto_pc_in_sigtramp): Remove function.
9813 (i386nto_sigtramp_p): New function.
9814 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
9815 SP_REGNUM.
9816 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
9817 deprecated_pc_in_sigtramp.
9818 * i386-sol2-tdep.c: Update copyright year.
9819 (i386_sol2_pc_in_sigtramp): Remove function.
9820 (i386_sol2_sigtramp_p): New function.
9821 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
9822 deprecated_pc_in_sigtramp.
9823 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
9824 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
9825 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9826 deprecated_sigtramp_start and deprecated_sigtramp_end.
9827 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
9828 (i386nbsd_pc_in_sigtramp): Remove function.
9829 (i386nbsd_sigtramp_p): New function.
9830 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9831 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9832 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
9833 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
9834 (i386obsd_pc_in_sigtramp): Remove function.
9835 (i386obsd_sigtramp_p): New function.
9836 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
9837 functions.
9838 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9839 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9840 TDEP->sigtramp_p.
9841 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
9842 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
9843 dependencies.
9844
9845 * config/i386/i386aout.mt: Remove file.
9846
9847 * configure.tgt: Remove i[34567]86-*-go32*,
9848 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
9849 and i[34567]86-*-isc*. Set gdb_target to i386 for
9850 i[34567]86-*-netware* and i[34567]86-*-*.
9851 * config/i386/i386.mt: New file.
9852 * config/i386/embed.mt: Remove file.
9853 * config/i386/go32.mt: Remove file.
9854 * config/i386/i386nw.mt: Remove file.
9855 * config/i386/i386v.mt: Remove file.
9856 * config/i386/tm-go32.h: Remove file.
9857
9858 * tui/tui-hooks.c: Include "readline/readline.h" after
9859 "gdb_curses.h" instead of before.
9860 * tui/tui-io.c: Likewise.
9861
9862 * tui/tui.c: Fix typo in comment.
9863
9864 * sparc64-tdep.c (sparc_address_from_register): Remove function.
9865
9866 2004-04-08 Andrew Cagney <cagney@redhat.com>
9867
9868 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
9869 (deprecated_exception_support_initialized): Declare.
9870 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
9871 (initialize_hp_cxx_exception_support)
9872 (child_enable_exception_callback): Update.
9873 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
9874 (deprecated_exception_support_initialized): Rename
9875 deprecated_exception_catchpoints_are_fragile and
9876 deprecated_exception_support_initialized.
9877 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
9878
9879 * symtab.c (deprecated_hp_som_som_object_present): Rename
9880 hp_som_som_object_present.
9881 * symtab.h (deprecated_hp_som_som_object_present): Declare.
9882 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
9883 Update. Delete extern declaration.
9884 * valops.c (hp_som_som_object_present): Ditto.
9885 * parse.c (deprecated_hp_som_som_object_present)
9886 (parse_nested_classes_for_hpacc): Ditto.
9887 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
9888 * hppa-hpux-tdep.c (hp_som_som_object_present)
9889 (initialize_hp_cxx_exception_support): Ditto.
9890 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
9891 * cp-valprint.c (hp_som_som_object_present)
9892 (cp_print_class_method): Ditto.
9893 * c-typeprint.c (hp_som_som_object_present):
9894 (c_type_print_base): Ditto.
9895 * c-exp.y (hp_som_som_object_present): Ditto.
9896
9897 2004-04-08 Andrew Cagney <cagney@redhat.com>
9898
9899 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
9900 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
9901 (frame_unwind_find_by_frame): Re-implement the unwind code so
9902 that it can both prepend and append sniffers. Replace
9903 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
9904 * tramp-frame.c (tramp_frame_append): Use
9905 frame_unwind_prepend_unwinder.
9906 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
9907 frame_unwind_register_unwinder.
9908 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
9909 tramp_frame_append.
9910 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
9911 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
9912 (mips_linux_init_abi): Update.
9913
9914 2004-04-08 Kevin Buettner <kevinb@redhat.com>
9915
9916 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
9917 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
9918 file support.
9919
9920 2004-04-07 Kevin Buettner <kevinb@redhat.com>
9921
9922 * ia64-tdep.c (elf.h): Don't include.
9923 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
9924
9925 2004-04-07 Jason Molenda (jmolenda@apple.com)
9926
9927 * frame.h: Typeo corrections in comments.
9928
9929 2004-04-07 Jim Blandy <jimb@redhat.com>
9930
9931 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
9932 %esp and %ebp
9933
9934 2004-04-07 Mark Kettenis <kettenis@gnu.org>
9935
9936 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
9937 * config/sparc/linux64.mt (TDEPFILES): Likewise.
9938 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9939 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
9940 and solib-legacy.o.
9941 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
9942 solib-svr4.o.
9943 * config/sparc/tm-sol2.h: Update copyright year. Include
9944 "solib.h".
9945
9946 * sparc-sol2-tdep.c: Update copyright year. Include
9947 "solib-svr4.h".
9948 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9949 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
9950 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9951 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
9952 dependencies.
9953
9954 2004-04-06 Andrew Cagney <cagney@redhat.com>
9955
9956 * infttrace.c: Include "infttrace.h".
9957 * infttrace.h: Include "target.h".
9958 * Makefile.in (infttrace_h): Update.
9959 (infttrace.o): Update.
9960
9961 2004-04-06 Andrew Cagney <cagney@redhat.com>
9962
9963 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
9964 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
9965 move extern declarations from here ...
9966 * infttrace.h: ... to here.
9967 * Makefile.in (hppah-nat.o): Update dependencies.
9968
9969 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
9970 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
9971 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
9972 (hppa_breakpoint_from_pc): Delete.
9973
9974 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
9975
9976 2004-04-05 Andrew Cagney <cagney@redhat.com>
9977
9978 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
9979 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
9980 <sys/file.h>.
9981
9982 2004-04-06 Randolph Chung <tausq@debian.org>
9983
9984 Committed by Andrew Cagney (mechanical change).
9985 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
9986 exception_catchpoints_are_fragile, find_stub_with_shl_get,
9987 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
9988 child_enable_exception_callback, current_ex_event,
9989 null_symtab_and_line, child_get_current_exception_event,
9990 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
9991 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
9992 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
9993 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
9994 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
9995 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
9996 Move hpux-specific definitions ...
9997 * hppa-hpux-tdep.c: ... to here.
9998
9999 2004-04-05 Andrew Cagney <cagney@redhat.com>
10000
10001 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
10002 skip_prologue_using_sal.
10003
10004 2004-04-05 Andrew Cagney <cagney@redhat.com>
10005
10006 * config/i386/tm-i386.h: Delete file.
10007 * config/i386/tm-vxworks.h: Update copyright, do not include
10008 "tm-i386.h".
10009 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
10010 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
10011 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
10012 * config/i386/ncr3000.mt (TM_FILE): Delete.
10013 * config/i386/interix.mt (TM_FILE): Delete.
10014 * config/i386/i386v.mt (TM_FILE): Delete.
10015 * config/i386/i386nw.mt (TM_FILE): Delete.
10016 * config/i386/i386gnu.mt (TM_FILE): Delete.
10017 * config/i386/i386aout.mt (TM_FILE): Delete.
10018 * config/i386/embed.mt (TM_FILE): Delete.
10019
10020 2004-04-05 Kevin Buettner <kevinb@redhat.com>
10021
10022 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
10023 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
10024 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
10025 (accg7_regnum): New constants.
10026 (last_spr_regnum, last_pseudo_regnum): Update.
10027 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
10028 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
10029 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
10030 for accg registers.
10031 (frv_register_sim_regno): Update spr_map[].
10032
10033 2004-04-04 Andrew Cagney <cagney@redhat.com>
10034
10035 * config/mips/xm-riscos.h: Delete.
10036 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
10037 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
10038 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
10039 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
10040 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
10041 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
10042 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
10043 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
10044 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
10045 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
10046 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
10047 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
10048 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
10049 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
10050 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
10051 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
10052 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
10053 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
10054 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
10055 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
10056 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
10057 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
10058 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
10059 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
10060 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
10061 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
10062
10063 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
10064 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
10065 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
10066 * configure.host: Remove m680[01]0-sun-sunos3*,
10067 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
10068 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
10069 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
10070 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
10071 mips-*-riscos*.
10072 * NEWS: Mention removed systems.
10073
10074 2004-04-04 Andrew Cagney <cagney@redhat.com>
10075
10076 GDB 6.1 release created from 6.1 branch.
10077
10078 2004-04-04 Andrew Cagney <cagney@redhat.com>
10079
10080 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
10081 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
10082 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
10083
10084 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
10085 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
10086 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
10087
10088 2004-04-03 Jim Blandy <jimb@redhat.com>
10089
10090 * MAINTAINERS: Chris Faylor has changed employers; add him to
10091 "paper trail" section, and update his E-mail address.
10092
10093 2004-04-03 Andrew Cagney <cagney@redhat.com>
10094
10095 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
10096 generic dummy frames.
10097 * dummy-frame.c: Update copyright.
10098 (dummy_frame_sniffer): Delete check for generic dummy frames.
10099
10100 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
10101 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
10102 (REG_PARM_STACK_SPACE): Delete.
10103 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
10104 Inline reference to REG_PARM_STACK_SPACE.
10105
10106 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
10107 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
10108 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
10109 (FRAME_BASE_BEFORE_SIGTRAMP)
10110 (hppa32_hpux_frame_base_before_sigtramp)
10111 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
10112 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
10113 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
10114 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
10115 (FRAME_BASE_BEFORE_SIGTRAMP)
10116 (hppa64_hpux_frame_base_before_sigtramp)
10117 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
10118
10119 2004-04-03 Andrew Cagney <cagney@redhat.com>
10120
10121 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
10122
10123 2004-04-02 Andrew Cagney <cagney@redhat.com>
10124
10125 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
10126 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
10127 * dummy-frame.h: Delete out-of-date comments.
10128 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
10129 * gdbarch.h, gdbarch.c: Re-generate.
10130
10131 2004-04-02 Joel Brobecker <brobecker@gnat.com>
10132
10133 Committed by Andrew Cagney <cagney@redhat.com>.
10134 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
10135 into account an instruction saving a register if we have already
10136 seen an earlier instruction saving that same register.
10137
10138 2004-04-02 Andrew Cagney <cagney@redhat.com>
10139
10140 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
10141 * gdbarch.h, gdbarch.c: Re-generate.
10142 * frame.c (legacy_get_prev_frame): Delete references to
10143 DEPRECATED_INIT_FRAME_PC_FIRST.
10144
10145 * infrun.c (pc_in_sigtramp): Delete function.
10146 (check_sigtramp2): Inline call to pc_in_sigtramp, use
10147 get_frame_type.
10148
10149 2004-04-02 Andrew Cagney <cagney@redhat.com>
10150
10151 * infrun.c (handle_step_into_function): Delete code conditional on
10152 legacy_frame_p.
10153 (handle_inferior_event, step_over_function): Ditto.
10154
10155 2004-04-02 Andrew Cagney <cagney@redhat.com>
10156
10157 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
10158 "previous frame inner to this frame" test.
10159
10160 2004-04-02 Andrew Cagney <cagney@redhat.com>
10161
10162 * frame.c (safe_frame_unwind_memory): New function.
10163 * frame.h (safe_frame_unwind_memory): Declare. Update description
10164 of /safe_/ methods.
10165 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
10166 "next_frame". Use safe_frame_unwind_memory.
10167 (tramp_frame_sniffer): Update call to tramp_frame_start.
10168
10169 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
10170
10171 * dwarf2read.c (dwarf2_objfile_data_key): New.
10172 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
10173 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
10174 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
10175 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
10176 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
10177 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
10178 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
10179 Remove variables.
10180 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
10181 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
10182 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
10183 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
10184 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
10185 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
10186 Remove macros.
10187 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
10188 data.
10189 (dwarf2_locate_sections, dwarf2_build_psymtabs)
10190 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
10191 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
10192 (read_partial_die, read_full_die, read_indirect_string)
10193 (dwarf_decode_line_header, dwarf_decode_macros)
10194 (dwarf2_symbol_mark_computed): Remove use of removed macros.
10195 Update uses of removed variables.
10196 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
10197 of removed macros.
10198 (_initialize_dwarf2_read): New function.
10199 * symfile.h (dwarf2_has_info): Update prototype.
10200 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
10201 * elfread.c (elf_symfile_read): Likewise.
10202
10203 2004-04-01 Jim Blandy <jimb@redhat.com>
10204
10205 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
10206 function for register numbers on all the rs6000-derived targets.
10207 (rs6000_gdbarch_init): Don't register a separate
10208 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
10209 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
10210 variants.
10211
10212 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
10213 numbering.
10214
10215 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
10216
10217 * valarith.c: Update copyright notice.
10218 (value_add): Handle range types.
10219 (value_sub): Ditto.
10220 (value_equal): Ditto.
10221 (value_less): Ditto.
10222 (value_neg): Ditto.
10223 (value_complement): Ditto.
10224 (value_binop): Simplify slightly by using is_integral_type and
10225 eliminiating unnecessary COERCE_ENUMs.
10226
10227 2004-03-31 Andrew Cagney <cagney@redhat.com>
10228
10229 * frame.h (frame_unwind_id): Declare.
10230 * frame.c (frame_unwind_id): New function.
10231 (get_prev_frame_1): New function.
10232 (frame_debug_got_null_frame): New function.
10233 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
10234 code proper to prev_frame, update description.
10235 * infrun.c (step_over_function): Use frame_unwind_id.
10236
10237 2004-04-31 J. Brobecker <brobecker@gnat.com>
10238
10239 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
10240 (hppa64_push_dummy_call): Likewise.
10241
10242 2004-03-30 Jim Blandy <jimb@redhat.com>
10243
10244 From Ulrich Weigand:
10245 * utils.c (query): Do not use a va_list variable multiple times.
10246
10247 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
10248
10249 * Makefile.in (linux_nat_h): Update dependencies.
10250 * configure.in: Check for <gnu/libc-version.h>.
10251 * configure: Regenerate.
10252 * config.in: Regenerate.
10253 * linux-nat.h: Include "target.h". Add waitstatus field to
10254 struct lwp_info.
10255 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
10256 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
10257 to.
10258 (lin_lwp_handle_extended): New function. Handle clone events.
10259 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
10260 thread exit events.
10261 (child_wait): Handle clone events.
10262 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
10263 * linux-nat.c (linux_enable_event_reporting): Turn on
10264 PTRACE_O_TRACECLONE.
10265 (linux_handle_extended_wait): Handle clone events.
10266 * thread-db.c: Include <gnu/libc-version.h>.
10267 (struct private_thread_info): Add dying flag.
10268 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
10269 higher.
10270 (attach_thread): Update comments. Handle dying threads.
10271 (detach_thread): Set the dying flag.
10272 (check_event): Always call attach_thread.
10273
10274 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
10275
10276 * mips-tdep.c (mips_pdr_data): New.
10277 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
10278 (_initialize_mips_tdep): Initialize mips_pdr_data.
10279
10280 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
10281
10282 * minsyms.c (install_minimal_symbols): Move dropping leading
10283 char from linkage name from here...
10284 (prim_record_minimal_symbol_and_info): ...to here. Simplify
10285 test for "__gnu_compiled*" symbols.
10286
10287 2004-03-28 Jim Blandy <jimb@redhat.com>
10288
10289 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
10290 registers to temp register r0 and byte stores as prologue
10291 instructions.
10292
10293 2004-03-28 Andrew Cagney <cagney@redhat.com>
10294
10295 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
10296 arm*-*-*.
10297
10298 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
10299
10300 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
10301 and switch the layout to force a display of register window.
10302
10303 2004-02-26 J. Brobecker <brobecker@gnat.com>
10304
10305 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
10306 of the INTEGER class.
10307
10308 2004-03-26 Jim Blandy <jimb@redhat.com>
10309
10310 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
10311 bytes long on PPC GNU/Linux.
10312
10313 2004-03-26 David Carlton <carlton@kealia.com>
10314
10315 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
10316
10317 2004-03-25 Andrew Cagney <cagney@redhat.com>
10318
10319 * PROBLEMS: Add general section titles, remove references to
10320 specific releases.
10321
10322 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
10323
10324 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
10325 INT_REGISTER_SIZE.
10326 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
10327 FP_REGISTER_VIRTUAL_SIZE.
10328 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
10329 of DEPRECATED_REGISTER_RAW_SIZE.
10330 (arm_register_type): Add gdbarch argument.
10331 (arm_register_raw_size, arm_register_virtual_size): Delete.
10332 (arm_register_byte, arm_extract_return_value)
10333 (arm_store_return_value, arm_get_longjmp_target): Update references
10334 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
10335 (arm_gdbarch_init): Likewise. Don't set
10336 deprecated_register_raw_size, deprecated_register_virtual_size,
10337 deprecated_max_register_raw_size,
10338 deprecated_max_register_virtual_size, or
10339 deprecated_max_register_virtual_type. Do set register_type.
10340 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
10341 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
10342 (FP_REGISTER_VIRTUAL_SIZE): Delete.
10343 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
10344 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
10345 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
10346 INT_REGISTER_SIZE.
10347 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
10348 (remote_rdp_store_register): Likewise.
10349
10350 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
10351
10352 * Makefile.in (mips-linux-tdep.o): Update dependencies.
10353 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
10354 to after osabi initialization.
10355 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
10356 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
10357 functions.
10358 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
10359 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
10360 variables.
10361 (mips_linux_init_abi): Append signal trampoline unwinders.
10362
10363 2004-03-24 Andrew Cagney <cagney@redhat.com>
10364
10365 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
10366 * tramp-frame.c: Include "gdb_assert.h".
10367 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
10368 correct sizeof.
10369 (tramp_frame_append): Validate the tramp frame's instructions.
10370 * Makefile.in (tramp-frame.o): Update dependencies.
10371
10372 2004-03-23 Andrew Cagney <cagney@redhat.com>
10373
10374 * trad-frame.h (trad_frame_set_reg_addr): Declare.
10375
10376 2004-03-23 Andrew Cagney <cagney@redhat.com>
10377
10378 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
10379 Nasser as past testsuite/lib/ (and other) maintainers.
10380
10381 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
10382
10383 * infcmd.c (attach_command): Reread symbols if we already have
10384 an exec file.
10385
10386 2004-03-23 Andrew Cagney <cagney@redhat.com>
10387
10388 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
10389
10390 2004-03-23 Andrew Cagney <cagney@redhat.com>
10391
10392 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
10393 * gdbarch.h, gdbarch.c: Re-generate.
10394 * i386obsd-tdep.c (i386obsd_init_abi): Update.
10395 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10396 * i386bsd-tdep.c (i386bsd_init_abi): Update.
10397 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
10398 (DEPRECATED_SIGTRAMP_START): Update.
10399 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
10400 (DEPRECATED_SIGTRAMP_START): Update.
10401 * blockframe.c (find_pc_sect_partial_function): Update.
10402 * arch-utils.c (legacy_pc_in_sigtramp): Update.
10403
10404 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
10405
10406 * remote.c (remote_open_1): Reopen the exec file and reread symbols
10407 if necessary.
10408
10409 2004-03-23 Andrew Cagney <cagney@redhat.com>
10410
10411 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
10412 predicate, deprecate.
10413 * gdbarch.h, gdbarch.c: Re-generate.
10414 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
10415 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
10416 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
10417 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
10418 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
10419 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
10420 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
10421 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
10422 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
10423 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
10424 * blockframe.c (find_pc_partial_function): Update.
10425 * breakpoint.c (bpstat_what): Update.
10426 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
10427 * frv-linux-tdep.c (frv_linux_init_abi): Update.
10428 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
10429 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
10430 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10431 * i386-linux-tdep.c (i386_linux_init_abi): Update.
10432 * i386-nto-tdep.c (i386nto_init_abi): Update.
10433 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
10434 * i386-tdep.c (i386_sigtramp_frame_sniffer)
10435 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
10436 * i386bsd-tdep.c (i386bsd_init_abi): Update.
10437 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10438 * i386obsd-tdep.c (i386obsd_init_abi): Update.
10439 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
10440 * infrun.c (pc_in_sigtramp): Update.
10441 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
10442 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10443 * mips-tdep.c (mips_gdbarch_init): Update.
10444 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
10445 * ppc-linux-tdep.c: Update comment.
10446 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
10447 * shnbsd-tdep.c (shnbsd_init_abi): Update.
10448 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
10449 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
10450 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
10451 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
10452 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
10453 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
10454 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
10455 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
10456
10457 2004-03-23 Andrew Cagney <cagney@redhat.com>
10458
10459 * tramp-frame.h, tramp-frame.h: New files.
10460 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
10461 Update rules to include "tramp-frame.h" and "tramp-frame.c".
10462
10463 * Makefile.in: Update all dependencies.
10464
10465 2004-03-23 Andrew Cagney <cagney@redhat.com>
10466
10467 * Makefile.in (trad_frame_h): Add $(frame_h).
10468 * trad-frame.h: Update copyright. Include "frame.h".
10469 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
10470 (trad_frame_set_id, trad_frame_get_id): Declare.
10471 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
10472 * trad-frame.c: Update copyright.
10473 (struct trad_frame_cache): Define.
10474 (trad_frame_cache_zalloc): New function.
10475 (trad_frame_set_id, trad_frame_get_id): New functions.
10476 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
10477
10478 2004-03-22 Andrew Cagney <cagney@redhat.com>
10479
10480 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
10481 s390_pltstub_unwind_cache.
10482 (s390_stub_frame_unwind_cache): Rename
10483 s390_pltstub_frame_unwind_cache.
10484 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
10485 (s390_stub_frame_prev_register): Rename
10486 s390_pltstub_frame_prev_register.
10487 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
10488 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
10489
10490 From Ulrich Weigand:
10491 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
10492 pointer calls like PLT calls.
10493
10494 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
10495
10496 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
10497 PC rather than the partial function start address. Use the start
10498 address to sanity check the found PDR.
10499
10500 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
10501
10502 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
10503 linux_handle_extended_wait.
10504
10505 2004-03-22 Andrew Cagney <cagney@redhat.com>
10506
10507 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
10508 function.
10509
10510 * frame.h (generic_pop_current_frame): Delete declaration.
10511 (deprecate_pop_dummy_frame): Deprecate
10512 generic_pop_dummy_frame.
10513 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
10514 (generic_pop_current_frame): Delete function.
10515 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
10516 generic_pop_current_frame.
10517 * v850-tdep.c (v850_pop_frame): Update.
10518 * mcore-tdep.c (mcore_pop_frame): Update.
10519 * sh64-tdep.c (sh64_pop_frame): Update.
10520 * h8300-tdep.c (h8300_pop_frame): Update.
10521
10522 2004-03-22 Andrew Cagney <cagney@redhat.com>
10523
10524 * frame.h (deprecated_pc_in_call_dummy): Rename
10525 generic_pc_in_call_dummy.
10526 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
10527 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
10528 generic_pc_in_call_dummy.
10529 (pc_in_dummy_frame): Make static.
10530 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
10531 * gdbarch.h, gdbarch.c: Re-generate.
10532 * dummy-frame.c (dummy_frame_sniffer): Simplify.
10533 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
10534 (legacy_get_prev_frame): Ditto.
10535 * inferior.h: Delete reference to generic_pc_in_call_dummy in
10536 comment.
10537
10538 2004-03-21 Andrew Cagney <cagney@redhat.com>
10539
10540 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
10541 declaration and out-of-date comment.
10542 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10543 Delete function.
10544 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
10545 deprecated_pc_in_call_dummy.
10546
10547 * infrun.c (handle_inferior_event): For non legacy frames, use the
10548 frame ID and frame type to identify a signal trampoline. Update
10549 comments.
10550
10551 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
10552
10553 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
10554 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
10555
10556 2004-03-21 Andrew Cagney <cagney@redhat.com>
10557
10558 * frame-unwind.h: Update copyright.
10559 (struct frame_data): Add opaque declaration.
10560 (frame_sniffer_ftype): Declare.
10561 (struct frame_unwind): Add "unwind_data" and "sniffer".
10562 (frame_unwind_register_unwinder): Declare.
10563 (frame_unwind_find_by_frame): Add parameter "this_cache".
10564 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
10565 (legacy_get_prev_frame, legacy_get_prev_frame)
10566 (get_frame_type): Pass the prologue_cache to
10567 frame_unwind_find_by_frame.
10568 * frame-unwind.c (struct frame_unwind_table_entry): Add field
10569 "unwinder".
10570 (frame_unwind_register_unwinder): New function.
10571 (frame_unwind_find_by_frame): Handle an unwind sniffer.
10572
10573 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
10574
10575 * bcache.c (print_percentage): Use floating point to avoid
10576 incorrect results when portion*100 overflows.
10577
10578 2004-03-19 Kevin Buettner <kevinb@redhat.com>
10579
10580 * ppc_tdep.h (ppc_linux_frame_saved_pc)
10581 (ppc_linux_init_extra_frame_info)
10582 (ppc_linux_frameless_function_invocation)
10583 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
10584 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
10585 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
10586 (rs6000_frame_chain): Delete declarations.
10587 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
10588 (ppc_linux_init_extra_frame_info)
10589 (ppc_linux_frameless_function_invocation)
10590 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
10591 (ppc_linux_init_abi): Remove registration of above deleted functions.
10592 * rs6000-tdep.c (rs6000_init_extra_frame_info)
10593 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
10594 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
10595 (rs6000_pop_frame, rs6000_frameless_function_invocation)
10596 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
10597 (rs6000_gdbarch_init): Remove registration of above deleted functions.
10598 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
10599 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
10600 frame management for all OSABIs.
10601
10602 2004-03-19 Andrew Cagney <cagney@redhat.com>
10603
10604 Committed by Kevin Buettner <kevinb@redhat.com>.
10605
10606 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
10607 Update copyright.
10608 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
10609 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
10610 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
10611 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
10612 unwinders. #ifdef legacy frame code.
10613 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10614 "frame-base.h".
10615 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
10616 (struct rs6000_frame_cache, rs6000_frame_cache)
10617 (rs6000_frame_this_id, rs6000_frame_prev_register)
10618 (rs6000_frame_sniffer, rs6000_frame_unwind)
10619 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
10620 (rs6000_frame_base): Implement a traditional frame unwinder.
10621 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
10622 frame unwinder.
10623
10624 2004-03-19 Kevin Buettner <kevinb@redhat.com>
10625
10626 * breakpoint.c (adjust_breakpoint_address): Don't adjust
10627 breakpoint address for watchpoints or the catch eventpoints.
10628 Add new paramter ``bptype''. Adjust all callers.
10629
10630 2004-03-19 Andrew Cagney <cagney@redhat.com>
10631
10632 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
10633
10634 * PROBLEMS: Delete note that ARM does not use frame code, problem
10635 fixed.
10636
10637 2004-03-18 Andrew Cagney <cagney@redhat.com>
10638
10639 * stack.c (return_command): Delete code wrapped in #ifdef
10640 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
10641
10642 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
10643
10644 2004-03-18 Andrew Cagney <cagney@redhat.com>
10645
10646 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
10647 DEPRECATED_IN_SIGTRAMP.
10648 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10649 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
10650 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10651 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10652 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10653 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10654 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10655 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10656 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
10657 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
10658
10659 2004-03-18 Andrew Cagney <cagney@redhat.com>
10660
10661 * frame-base.c: Update copyright. Include "gdb_obstack.h".
10662 (struct frame_base_table_entry): Define.
10663 (struct frame_base_table): Re-implement as a linked list.
10664 (frame_base_init): Re-implement.
10665 (frame_base_table): Delete function.
10666 (append_predicate): Delete function.
10667 (frame_base_append_sniffer): Update.
10668 (frame_base_set_default): Update.
10669 (frame_base_find_by_frame): Update.
10670 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
10671 * Makefile.in (frame-base.o): Update dependencies.
10672
10673 2004-03-17 Andrew Cagney <cagney@redhat.com>
10674
10675 * frame.c (legacy_get_prev_frame): Pass correct frame to
10676 frame_unwind_find_by_frame.
10677
10678 2004-03-17 David Carlton <carlton@kealia.com>
10679
10680 * NEWS: Mention C++ nested types and namespaces
10681
10682 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
10683
10684 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
10685 and "Regressions since gdb 5.3.". Add known regressions since
10686 gdb 6.0.
10687
10688 2004-03-16 David Carlton <carlton@kealia.com>
10689
10690 * dwarf2read.c (process_structure_scope): Process children even
10691 when we're a declaration.
10692
10693 2004-03-16 Andrew Cagney <cagney@redhat.com>
10694
10695 * symtab.h (find_pc_sect_partial_function): Delete declaration.
10696 * blockframe.c (find_pc_partial_function)
10697 (find_pc_sect_partial_function): Merge into a single
10698 find_pc_partial_function.
10699
10700 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10701
10702 * i386bsd-nat.c: s/regno/regnum/g.
10703 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
10704 FP0_REGNUM.
10705 (store_inferior_registers): Likewise.
10706
10707 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10708
10709 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
10710 of i387_fill_fsave.
10711 (store_inferior_registers): Call i387_collect_fsave and
10712 i387_collect_fxsave instead of i387_fill_fsave and
10713 i387_fill_fxsave.
10714
10715 2004-03-15 Andrew Cagney <cagney@redhat.com>
10716
10717 * Makefile.in (frame-unwind.o): Update dependencies.
10718 * frame-unwind.c: Include "gdb_obstack.h".
10719 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
10720 parameter.
10721 (append_predicate): Delete function.
10722 (struct frame_unwind_table_entry): New structure.
10723 (struct frame_unwind_table): Replace "sniffer" with "head" and
10724 "tail".
10725 (frame_unwind_append_sniffer): Update.
10726 (frame_unwind_find_by_frame): Update.
10727 (_initialize_frame_unwind): Registe frame_unwind_init using
10728 gdbarch_data_register_pre_init.
10729
10730 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10731
10732 * i386bsd-nat.c: Update copyright year.
10733 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
10734 define unconditionally.
10735
10736 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10737
10738 * i387-tdep.h (i387_collect_fsave): New prototype.
10739 * i387-tdep.c (i387_collect_fsave): New function containing most
10740 of the code from i387_fill_fsave.
10741 (i387_fill_fsave): Call i387_collect_fsave.
10742
10743 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10744
10745 * i386-linux-tdep.c: Update copyright year.
10746 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
10747 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
10748 svr4_ilp32_link_map_offsets instead of
10749 i386_linux_svr4_fetch_link_map_offsets.
10750
10751 2004-03-15 David Carlton <carlton@kealia.com>
10752
10753 Fix for PR c++/1553:
10754 * dwarf2read.c (read_structure_type): Determine type name by
10755 calling determine_class_name.
10756 (determine_class_name): New.
10757 (determine_prefix): Look at TYPE_TAG_NAME and call
10758 determine_class_name when appropriate.
10759 (determine_prefix_aux, class_name): Delete.
10760 (read_namespace): Set die->type.
10761
10762 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10763
10764 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
10765 unused macro definition. The definition in target.h (or perhaps
10766 elsewhere) takes precedence.
10767
10768 2004-03-15 Andrew Cagney <cagney@redhat.com>
10769
10770 * ppc-tdep.h: Update copyright.
10771 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
10772 function signatures to match "regsets.h".
10773 * ppc-linux-tdep.c: Include "regset.h".
10774 (ELF_GREGSET_SIZE): Delete.
10775 (right_supply_register): New function.
10776 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
10777 using right_supply_register.
10778 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
10779 functions.
10780 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
10781 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
10782 (_initialize_ppc_linux_tdep): Do not register
10783 ppc_linux_regset_core_fns.
10784 (ppc_linux_regset_from_core_section): Replace
10785 fetch_core_registers.
10786 (ppc_linux_regset_core_fns): Delete.
10787 * ppc-linux-nat.c: (right_fill_reg): New function.
10788 (supply_gregset): Update call to ppc_linux_supply_gregset.
10789 (fill_gregset): Clear the register set, use right_fill_reg.
10790 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
10791 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
10792
10793 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
10794 unsigned.
10795
10796 2004-03-15 Andrew Cagney <cagney@redhat.com>
10797
10798 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
10799 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
10800 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
10801 and register_gdbarch_data.
10802 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
10803 (struct gdbarch_data): Replace "init" by "pre_init" and
10804 "post_init".
10805 * gdbarch.h, gdbarch.c: Re-generate.
10806 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
10807 with"obstack", use OBSTACK_ZALLOC.
10808 (dwarf2_frame_ops): Delete.
10809 (dwarf2_frame_set_init_reg): Use gdbarch_data.
10810 (dwarf2_frame_init_reg): Use gdbarch_data.
10811 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
10812 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
10813 (_initialize_svr4_solib): Update.
10814 * user-regs.c (_initialize_user_regs): Update.
10815 * reggroups.c (_initialize_reggroup): Update.
10816 * regcache.c (_initialize_regcache): Update.
10817 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
10818 * libunwind-frame.c (_initialize_libunwind_frame): Update.
10819 * gnu-v3-abi.c (init_gnuv3_ops): Update.
10820 * frame-unwind.c (_initialize_frame_unwind): Update.
10821 * frame-base.c (_initialize_frame_base): Update.
10822 * user-regs.c (user_reg_add): Update.
10823 * reggroups.c (reggroup_add): Update.
10824 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
10825 * libunwind-frame.c (libunwind_frame_set_descr): Update.
10826 * frame-unwind.c (frame_unwind_append_sniffer): Update.
10827 * frame-base.c (frame_base_table): Update.
10828 * remote.c (_initialize_remote): Update.
10829 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
10830
10831 2004-03-15 Andrew Cagney <cagney@redhat.com>
10832
10833 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
10834
10835 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10836
10837 * Makefile.in (frv-linux-tdep.o): Add dependencies.
10838 * frv-linux-tdep.c: New file.
10839 * frv-tdep.c (struct gdbarch_tdep): Add new field
10840 ``sigcontext_reg_addr''.
10841 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
10842 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
10843 (frv_sigramp_frame_sniffer): New functions.
10844 (frv_sigtramp_frame_unwind): New static global.
10845 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
10846 sniffers.
10847 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
10848 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
10849
10850 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10851
10852 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
10853 but not via a call to error(), when unable to read memory.
10854
10855 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10856
10857 * frv-tdep.c (frv_call_dummy_words): Delete.
10858 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
10859
10860 2004-03-15 Andrew Cagney <cagney@redhat.com>
10861
10862 * infrun.c (handle_step_into_function, step_over_function): Only
10863 update and use STEP_FRAME_ID when the system is using legacy
10864 frames. Update comments.
10865
10866 2004-03-14 Mark Kettenis <kettenis@gnu.org>
10867
10868 * amd64-linux-tdep.h: Remove file.
10869 * amd64-linux-tdep.c: Don't include "inferior.h" and
10870 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
10871 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
10872 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
10873 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
10874 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
10875 macros.
10876 (user_to_gdb_regmap): Remove variable.
10877 (amd64_linux_gregset_reg_offset): New variable.
10878 (amd64_core_fns): Remove variable.
10879 (fetch_core_registers): Remove function.
10880 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
10881 functions.
10882 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
10883 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
10884 * Makefile.in (amd64_linux_tdep_h): Remove.
10885 (amd64-linux-nat.o): Update dependencies.
10886 (amd64-linux-tdep.o): Update dependencies.
10887
10888 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
10889 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
10890 functions.
10891 (fetch_inferior_registers, store_inferior_registers): Rewrite.
10892
10893 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
10894 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
10895
10896 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
10897
10898 * dwarf2read.c (read_structure_type): Rename from
10899 read_structure_scope. Don't create a symbol or call process_die.
10900 Return immediately if die->type is set. Call read_type_die before
10901 dwarf2_add_member_fn.
10902 (process_structure_scope): New function.
10903 (read_enumeration_type, process_enumeration_scope): New functions,
10904 broken out from read_enumeration. Don't create the enumeration
10905 type if it has already been created.
10906 (read_enumeration): Removed.
10907 (process_die): Call read_structure_type, process_structure_scope,
10908 read_enumeration_type, and process_enumeration_scope. Just call
10909 new_symbol for base and subrange types. Add a comment about other
10910 type dies.
10911 (read_type_die): Call read_enumeration_type.
10912 (add_partial_structure, new_symbol): Update comments.
10913
10914 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10915
10916 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
10917
10918 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10919
10920 * tui/tui-win.h (tui_get_cmd_list): Declare.
10921 * tui/tui-win.c (tui_command): New function.
10922 (tui_get_cmd_list): New function.
10923 (_initialize_tui_win): Moved initialization of tui command in
10924 tui_get_cmd_list.
10925
10926 * tui/tui-data.c (init_content_element): Setup new data members.
10927 (init_win_info): Likewise.
10928 (free_content_elements): Free it.
10929 * tui/tui-data.h (struct tui_data_element): Store the register
10930 content to print.
10931 (struct tui_data_info): Keep the current register group.
10932
10933 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
10934
10935 * tui/tui-regs.h (tui_show_registers): Update prototype.
10936 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
10937 (tui_resize_all): No need to calculate anything for register window.
10938 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
10939 (tui_set_register_element, tui_set_general_regs_content): Remove.
10940 (tui_set_special_regs_content): Remove.
10941 (tui_set_general_and_special_regs_content): Remove.
10942 (tui_set_float_regs_content): Remove.
10943 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
10944 (tui_set_regs_content): Remove.
10945 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
10946 (tui_v_show_registers_command_support): Remove.
10947 (tui_show_registers): Use a reggroup to specify the registers to show.
10948 (tui_show_register_group): New function.
10949 (tui_display_registers_from): Compute the layout of register window
10950 and refresh with new API; be sure to delete old register windows.
10951 (tui_check_register_values): Update to use tui_get_register and
10952 tui_display_data.
10953 (tui_display_register): Just refresh the register window part.
10954 (tui_register_format): Format registers and save in tui_data_element.
10955 (tui_get_register): New to combine tui_reg_value_has_changed and
10956 tui_get_register_raw_value; fix to use the new gdb API.
10957 (tui_show_float_command): Renamed tui_reg_float_command.
10958 (tui_show_general_command): Renamed tui_reg_general_command.
10959 (tui_show_special_command): Renamed tui_reg_system_command.
10960 (_initialize_tui_regs): Remove unused commands.
10961
10962 2004-03-13 Mark Kettenis <kettenis@gnu.org>
10963
10964 * NEWS (New native configurations): Mention OpenBSD/amd64.
10965
10966 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
10967 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
10968 Remove defines.
10969 * config/i386/nm-fbsd64.h: Likewise.
10970 * config/i386/nm-obsd.h: Likewise.
10971 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
10972 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
10973
10974 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10975
10976 * frv-tdep.c (set_variant_scratch_registers): New function.
10977 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
10978 New constants.
10979
10980 From Richard Sandiford <rsandifo@redhat.com>:
10981 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
10982
10983 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10984
10985 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
10986 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
10987 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
10988 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
10989 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
10990 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
10991 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
10992 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
10993 definitions from frv-tdep.c to frv-tdep.h.
10994
10995 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10996
10997 Add shared library support for FR-V FDPIC ABI:
10998 * Makefile.in (solib-frv.o): Add dependencies.
10999 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
11000 New functions.
11001 (frv_push_dummy_call): Add support for FDPIC ABI.
11002 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
11003 for FDPIC ABI.
11004 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
11005 (frv_fdpic_find_canonical_descriptor): Declare.
11006 * solib-frv.c: New file.
11007 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
11008 * config/frv/tm-frv.h (solib.h): Include.
11009
11010 2004-03-12 Kevin Buettner <kevinb@redhat.com>
11011
11012 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
11013 (frv-tdep.o): Update dependencies.
11014 * frv-tdep.h: New file.
11015 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
11016 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
11017 constants.
11018 (struct gdbarch_tdep): Add new member ``frv_abi''.
11019 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
11020 functions.
11021 (new_variant): Set ``frv_abi'' field.
11022 (gdb_arch_init): Detect FDPIC executables.
11023
11024 2004-03-12 Mark Kettenis <kettenis@gnu.org>
11025
11026 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
11027 wrapper.
11028
11029 2004-03-11 Andrew Cagney <cagney@redhat.com>
11030
11031 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
11032
11033 2004-03-11 Kevin Buettner <kevinb@redhat.com>
11034
11035 * solist.h (master_so_list): New function.
11036 * solib.c (master_so_list): Likewise.
11037 * solib-svr4.c (enable_break): Iterate over so_list entries
11038 obtained from master list instead of entries obtained directly
11039 via svr4_current_sos().
11040
11041 2004-03-10 Ben Elliston <bje@gnu.org>
11042
11043 * MAINTAINERS: Update my mail address.
11044
11045 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
11046
11047 * remote-m32r-sdi.c: Support hardware watchpoint.
11048
11049 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11050
11051 * user-regs.c: Update copyright years.
11052 (struct user_regs): Rename to gdb_user_regs.
11053 (append_user_reg, builtin_user_regs, user_regs_init)
11054 (user_reg_add, user_reg_map_name_to_regnum)
11055 (usernum_to_user_reg): Update.
11056
11057 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11058
11059 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
11060 (skip_children): New functions.
11061 (locate_pdi_sibling): Call skip_children.
11062
11063 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11064
11065 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
11066 * gdbtypes.c (check_typedef): Update comments.
11067
11068 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11069
11070 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
11071 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
11072 pointer. Update comment about comp_unit_head.
11073 (struct abbrev_info): Shorten two int flags.
11074 (dwarf_alloc_abbrev): Take a CU argument.
11075 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
11076 each time through the loop. Update cleanup argument.
11077 (psymtab_to_symtab_1): Update cleanup call.
11078 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
11079 abbrev_obstack.
11080 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
11081 Just call obstack_free and clear the pointer.
11082
11083 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11084
11085 * infrun.c (handle_inferior_event): Remove short-circuit code for
11086 events in a different thread.
11087
11088 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11089
11090 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
11091 print the whole transfer.
11092 (initialize_targets): Update description of "set debug target".
11093
11094 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11095
11096 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
11097
11098 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
11099
11100 * MAINTAINERS (write after approval): Add myself.
11101
11102 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
11103
11104 * sh-tdep.c (sh_print_registers_info): Use for loop.
11105 Don't skip multiple registers when a float register is encountered.
11106
11107 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
11108
11109 Fix PR tdep/1291.
11110 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
11111 to official SH documentation.
11112
11113 2004-03-07 Andrew Cagney <cagney@redhat.com>
11114
11115 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
11116 unused function.
11117
11118 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
11119
11120 * arm-tdep.c (thumb_get_next_pc): Handle BX.
11121 (arm_get_next_pc): Handle BX and BLX.
11122
11123 2004-03-07 Andrew Cagney <cagney@redhat.com>
11124
11125 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
11126 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
11127 HPPA_SP_REGNUM.
11128 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
11129 (hppa_target_read_fp): Delete.
11130 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
11131 register_virtual_size, max_register_raw_size,
11132 max_register_virtual_size, register_byte, register_size,
11133 target_read_fp, fp_regnum, and register_bytes. Set register_type
11134 instead of register_virtual_type.
11135 (hppa32_register_type, hppa64_register_type): Replace
11136 hppa32_register_virtual_type and hppa64_register_virtual_type.
11137 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
11138 (HPPA_FP_REGNUM): Define.
11139
11140 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
11141
11142 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
11143 (pa_do_registers_info): Delete.
11144 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
11145 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
11146 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
11147
11148 * infcall.c (legacy_push_dummy_code): Delete #ifdef
11149 GDB_TARGET_IS_HPPA code.
11150 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
11151 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
11152 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
11153 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
11154 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
11155 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
11156 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
11157 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
11158 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
11159 (hppa_frameless_function_invocation, hppa64_store_return_value)
11160 (hppa_store_struct_return, hppa64_extract_return_value)
11161 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
11162 (hppa32_call_dummy_length, hppa64_call_dummy_length)
11163 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
11164 (find_proc_framesize, deposit_21, restore_pc_queue)
11165 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
11166 (rp_saved, pc_in_linker_stub): Delete.
11167
11168 Unconditionally enable 64-bit frame and ABI code.
11169 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
11170 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
11171 push_dummy_frame, fix_call_dummy, push_arguments,
11172 call_dummy_location, extract_return_value, use_struct_convention,
11173 store_return_value, store_struct_return, saved_pc_after_call,
11174 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
11175 frame_chain, frame_chain_valid, frameless_function_invocation,
11176 frame_saved_pc, and pop_frame.
11177
11178 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
11179 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
11180 (hppa_gdbarch_init): Do not set PC_REGNUM.
11181
11182 2004-03-06 Mark Kettenis <kettenis@gnu.org>
11183
11184 * config/alpha/tm-fbsd.h: Remove file.
11185 * config/alpha/fbsd.mt: Tweak comment.
11186 (TM_FILE): Set to tm-alpha.h.
11187
11188 2004-03-05 Andrew Cagney <cagney@redhat.com>
11189
11190 * infrun.c (step_over_function): When non-legacy code, and no
11191 step_frame_id, use the unwinder to get the caller's frame ID.
11192
11193 2004-03-05 Mark Kettenis <kettenis@gnu.org>
11194
11195 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
11196 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
11197 bfd_arch_unknown. Adjust comment.
11198
11199 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
11200 * i386obsd-tdep.c: Correct spelling in comment.
11201 * i386nbsd-tdep.c: Correct spelling in comment.
11202 * sparc-tdep.c: Correct spelling in comments.
11203
11204 2004-03-05 David Carlton <carlton@kealia.com>
11205
11206 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
11207 bug.
11208
11209 2004-03-05 Mark Kettenis <kettenis@gnu.org>
11210
11211 * sparc-tdep.c: Fix typo in comment.
11212
11213 2004-03-04 J. Brobecker <brobecker@gnat.com>
11214
11215 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
11216
11217 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
11218
11219 * dwarf2read.c: Add comment describing memory lifetimes.
11220 (struct dwarf2_pinfo): Update comment.
11221 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
11222 (read_enumeration, new_symbol): Don't use obsavestring.
11223
11224 2004-03-04 Mark Kettenis <kettenis@gnu.org>
11225
11226 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
11227 instead of amd64_fill_fxsave.
11228 * amd64bsd-nat.c (store_inferior_registers): Likewise.
11229 * amd64fbsd-nat.c (fill_fpregset): Likewise.
11230
11231 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
11232 Reorganize code a bit.
11233
11234 2004-03-04 Orjan Friberg <orjanf@axis.com>
11235
11236 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
11237 when the frame pointer is pushed. Don't set the frame pointer's
11238 address on the stack unless it's actually located there.
11239 Set the SRP's address on the stack correctly when the PC is still in
11240 the prologue.
11241 (cris_return_value): New function.
11242 (cris_gdbarch_init): Clear deprecated store_return_value,
11243 extract_return_value.
11244
11245 2004-03-02 Jim Blandy <jimb@redhat.com>
11246
11247 * stabsread.c (reg_value_complaint): The maximum register number
11248 is one less than the number of registers.
11249
11250 2004-03-02 Andrew Cagney <cagney@redhat.com>
11251
11252 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
11253 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
11254 trailing comma and redundant assignment of I386_ST0_REGNUM.
11255 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
11256 32-bit segment registers.
11257
11258 2004-03-01 Andrew Cagney <cagney@redhat.com>
11259
11260 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
11261 use frame_relative_level and get_next_frame.
11262
11263 2004-02-29 Andrew Cagney <cagney@redhat.com>
11264
11265 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
11266 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
11267 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
11268 Delete macro.
11269
11270 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
11271
11272 * inflow.c (terminal_inferior): Don't give up the terminal if we
11273 previously couldn't get the inferior's terminal state.
11274
11275 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
11276
11277 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
11278 PC_REGNUM.
11279
11280 2004-02-28 Andrew Cagney <cagney@redhat.com>
11281
11282 * NEWS: Refer to GDB 6.1.
11283 * README: Refer to GDB 6.1.
11284 * PROBLEMS: Refer to GDB 6.1.
11285
11286 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
11287
11288 * thread-db.c (disable_thread_signals): Remove unused function.
11289
11290 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11291
11292 * amd64-nat.c: Include "gdb_string.h".
11293 (amd64_collect_native_gregset): Zero-extend the 32-bit
11294 general-purpose registers and %eip.
11295
11296 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
11297 * amd64-tdep.c (amd64_collect_fxsave): New function.
11298 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
11299
11300 * i387-tdep.h: Update copyright year.
11301 (i387_collect_fxsave): New prototype.
11302 * i387-tdep.c: Update copyright year.
11303 (i387_collect_fxsave): New function containing most of the code
11304 from i387_fill_fxsave.
11305 (i387_fill_fxsave): Call i387_collect_fxsave.
11306
11307 2004-02-28 Andrew Cagney <cagney@redhat.com>
11308
11309 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
11310 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
11311
11312 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11313
11314 * amd64-tdep.c (amd64_frame_cache): Fix comment.
11315
11316 2004-02-28 Andrew Cagney <cagney@redhat.com>
11317
11318 * utils.c: Use "", instead of <>, to include readline.
11319 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
11320 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
11321 * source.c, solib.c, exec.c, event-top.c: Ditto.
11322 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
11323 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
11324 * Makefile.in: Update all dependencies.
11325 (readline_tilde_h, readline_history_h): Define.
11326 (readline_headers): Delete.
11327
11328 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11329
11330 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
11331 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
11332 "config/i386/tm-lx64.h".
11333
11334 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
11335 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
11336 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
11337
11338 2004-02-28 Andrew Cagney <cagney@redhat.com>
11339
11340 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
11341
11342 * breakpoint.c (_initialize_breakpoint): Use
11343 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
11344 Add help to show command.
11345
11346 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11347
11348 * i386-nat.c: Reformat to be closer to coding standards.
11349 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
11350 `retval'. Make variables `align' and `size' local to while-loop.
11351 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
11352 (_initialize_i386_nat): New prototype.
11353
11354 * tui/tui.c: Include <readline/readline.h> instead of
11355 "readline/readline.h". Include it after <term.h> and
11356 "gdb_curses.h".
11357
11358 2004-02-27 Andrew Cagney <cagney@redhat.com>
11359
11360 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
11361 the new frame unwind code.
11362 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
11363 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
11364 PCOQ_HEAD_REGNUM.
11365
11366 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
11367 "return_value" and "push_dummy_call".
11368 (hppa32_use_struct_convention): Delete unused function.
11369 (hppa32_store_return_value): Delete unused function.
11370 (hppa32_extract_return_value): Delete unused function.
11371 (hppa32_stack_align): Delete function.
11372
11373 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
11374
11375 * coffread.c (enter_linenos): Don't let rawptr reference memory
11376 outside linetab[]'s limits.
11377
11378 2004-02-27 Andrew Cagney <cagney@redhat.com>
11379
11380 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
11381 inferior stack space - the stack needs to grow upwards.
11382 (hppa32_frame_align): New function.
11383 (hppa64_frame_align): Replace hppa_frame_align.
11384 (hppa_gdbarch_init): Update.
11385
11386 2004-02-26 Orjan Friberg <orjanf@axis.com>
11387
11388 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
11389 (dwarf2-frame.h): Include.
11390 (enum cris_regnums): New enum CRIS_FP_REGNUM.
11391 Remove static variables related to ABI setting.
11392 (struct gdbarch_tdep): Remove cris_abi member.
11393 (struct frame_extra_info): Remove.
11394 (cris_unwind_cache, stack_item): New structs.
11395 (cris_frame_unwind, cris_frame_base): New variables.
11396 (push_stack_item, pop_stack_item)
11397 (cris_frame_unwind_cache, cris_frame_this_id)
11398 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
11399 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
11400 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
11401 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
11402 (cris_reg_struct_has_addr): New functions.
11403 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
11404 (cris_frame_saved_pc, cris_saved_pc_after_call,
11405 (cris_store_struct_return, cris_frameless_function_invocation)
11406 (cris_pop_frame, cris_skip_prologue_main)
11407 (cris_abi_original_store_return_value)
11408 (cris_abi_v2_store_return_value)
11409 (cris_abi_original_extract_return_value)
11410 (cris_abi_v2_extract_return_value)
11411 (cris_abi_original_reg_struct_has_addr)
11412 (cris_abi_v2_reg_struct_has_addr)
11413 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
11414 (cris_push_return_address, cris_abi_update): Remove.
11415 (_initialize_cris_tdep): Remove ABI command.
11416 (cris_dump_tdep): Ditto.
11417 (cris_gdbarch_init): Remove ABI command.
11418 Set store_return_value, extract_return_value, push_dummy_code,
11419 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
11420 frame_unwind_append_sniffer, frame_base_set_default.
11421 Clear deprecated init_frame_pc, push_arguments, store_return_value,
11422 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
11423 sizeof_call_dummy_words, get_saved_register, push_return_address,
11424 pop_frame, store_struct_return, frame_init_saved_regs,
11425 init_extra_frame_info, frameless_function_invocation, frame_chain,
11426 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
11427 dummy_write_sp.
11428
11429 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
11430
11431 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
11432 * valprint.c (print_hex_chars): Change from static to external.
11433 (print_char_chars): New function.
11434 * printcmd.c (print_scalar_formatted): For integer and enum types
11435 that are longer than LONGEST, perform processing via appropriate
11436 print_*_chars routines.
11437
11438 2004-02-26 Andrew Cagney <cagney@redhat.com>
11439
11440 * Makefile.in: Update dependencies.
11441 Changes from Ulrich Weigand,
11442 * s390-tdep.c: Include "dwarf2-frame.h".
11443 (s390_dwarf2_frame_init_reg): New function.
11444 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
11445 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
11446
11447 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
11448
11449 * breakpoint.c (pending_break_support): New setting variable.
11450 (break_command_1): Account for pending_break_support setting
11451 when creating pending breakpoints.
11452 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
11453 (_initialize_breakpoint): Add "set breakpoint pending" and
11454 "show breakpoint pending" commands.
11455
11456 2004-02-26 Andrew Cagney <cagney@redhat.com>
11457
11458 Fix PR i18n/1570.
11459 * charset.c (backslashable, backslashed, represented): Remove 'e'
11460 from list of escaped characters, not part of ISO-C.
11461
11462 2004-02-25 J. Brobecker <brobecker@gnat.com>
11463
11464 From Peter Schauer <schauer@pdf.de>:
11465 * tui/tui.c: Move system header includes after local includes.
11466 Fixes a build failure on solaris systems.
11467
11468 2004-02-25 J. Brobecker <brobecker@gnat.com>
11469
11470 * configure.in: Refine the previous change.
11471 * configure: Regenerate.
11472
11473 2004-02-25 Mark Kettenis <kettenis@gnu.org>
11474
11475 * amd64-tdep.h: Renamed from x86-64-tdep.h.
11476 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
11477 "amd64-tdep.h" instead of "x86-64-tdep.h".
11478 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11479 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
11480 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
11481 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11482 and "x86-64-tdep.c".
11483 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
11484 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11485 and "x86-64-tdep.c".
11486 * amd64bsd-nat.c: Update copyright year.
11487 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11488 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
11489 "x86-64-tdep.h".
11490 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
11491 "x86-64-tdep.h".
11492 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
11493 "x86-64-tdep.h".
11494 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
11495 "x86-64-tdep.h".
11496 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
11497 "x86-64-tdep.h".
11498 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
11499 "x86-64-tdep.h".
11500 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
11501 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
11502 * Makefile.in (amd64_linux_tdep_h): Renamed from
11503 x86_64_linux_tdep_h.
11504 (amd64_tdep_h): Renamed from x86_64_tdep_h.
11505 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
11506 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
11507 (amd64obsd-tdep.o): Update dependencies.
11508 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
11509 dependencies.
11510 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
11511 dependencies.
11512 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
11513 amd64-linux-nat.c amd64-linux-tdep.c.
11514 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
11515 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
11516 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
11517 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
11518 amd64-tdep.o and amd64-linux-tdep.o.
11519 (TM_FILE): Set to tm-linux64.h.
11520 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
11521 (NAT_FILE): Set to nm-linux64.h.
11522 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
11523 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11524 amd64-tdep.o.
11525 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11526 amd64-tdep.o.
11527 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11528 amd64-tdep.o.
11529
11530 2004-02-25 Roland McGrath <roland@redhat.com>
11531
11532 * remote.c (remote_protocol_qPart_auxv): New variable.
11533 (init_all_packet_configs): Initialize it.
11534 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
11535 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
11536 (show_remote_cmd): Call it.
11537 (_initialize_remote): Initialize commands.
11538 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
11539 service TARGET_OBJECT_AUXV requests.
11540
11541 2004-02-25 J. Brobecker <brobecker@gnat.com>
11542
11543 * configure.in: Make sure that the wborder function is available.
11544 Otherwise, search for it in the cur_colr library.
11545 * configure: Regenerate.
11546
11547 2004-02-25 Andrew Cagney <cagney@redhat.com>
11548
11549 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
11550
11551 2004-02-25 Mark Kettenis <kettenis@gnu.org>
11552
11553 * config/i386/tm-x86-64linux.h: Tweak comments.
11554
11555 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
11556
11557 * MAINTAINERS: Add self to write-after-approval list.
11558
11559 2004-02-25 Andrew Cagney <cagney@redhat.com>
11560
11561 PR cli/1566. Problem found, and fix suggested by David Allan.
11562 * cli/cli-script.c (execute_control_command): Unconditionally
11563 install a cleanup. Default "ret" to "invalid_control". Use
11564 "break" instead of "return" to escape from the switch.
11565
11566 2004-02-24 J. Brobecker <brobecker@gnat.com>
11567
11568 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
11569 with the lines macro defined in term.h on AiX.
11570 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
11571 a collision with the label_width macro defined in term.h on AiX.
11572
11573 2004-02-23 David Mosberger <davidm@hpl.hp.com>
11574
11575 Committed by Kevin Buettner <kevinb@redhat.com>.
11576
11577 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
11578 * ia64-tdep.c (ia64_write_pc): Make it a global function.
11579 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
11580 instead of ia64_write_pc().
11581 * ia64-linux-tdep.c (regcache.h): Include.
11582 (ia64_linux_write_pc): New function.
11583
11584 2004-02-23 Roland McGrath <roland@redhat.com>
11585
11586 * auxv.c (info_auxv_command): Fix typos in error messages.
11587
11588 2004-02-23 Mark Kettenis <kettenis@gnu.org>
11589
11590 * x86-64-tdep.h: Tweak comment.
11591 (enum amd64_regnum): New.
11592 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
11593 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
11594 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
11595 (X86_64_XMM1_REGNUM): Removed.
11596 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
11597 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
11598 prototypes for renamed functions.
11599 * x86-64-tdep.c: Fix typo.
11600 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
11601 register numbers.
11602 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
11603 Use constants from `enum amd64_regnum' for register numbers.
11604 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
11605 (amd64_analyze_prologue, amd64_frame_cache,
11606 amd64_sigtramp_frame_cache): Use constants from `enum
11607 amd64_regnum' for register numbers.
11608 (amd64_supply_fpregset): Adjust for renamed functions.
11609 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
11610 `enum amd64_regnum' for register numbers.
11611 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
11612 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
11613 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
11614 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
11615 (amd64_linux_fill_gregset): Adjust for renamed macros.
11616 (fetch_core_registers): Adjust for renamed functions.
11617 (amd64_linux_init_abi): Adjust for renamed functions.
11618 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
11619 renamed functions.
11620 * amd64-nat.c: Adjust for renamed macros.
11621 * amd64bsd-nat.c (fetch_inferior_registers)
11622 (store_inferior_registers): Use constants from `enum amd64_regnum'
11623 for register numbers. Adjust for renamed variables.
11624 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
11625 renamed variables.
11626 (_initialize_amd64fbsd_nat): Use constants from `enum
11627 amd64_regnum' for register numbers.
11628 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
11629 `enum amd64_regnum' for register numbers.
11630 (amd64fbsd_init_abi): Adjust for renamed functions.
11631 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
11632 `enum amd64_regnum' for register numbers.
11633 (amd64nbsd_init_abi): Adjust for renamed functions.
11634 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
11635 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
11636 `enum amd64_regnum' for register numbers.
11637 (amd64obsd_init_abi): Adjust for renamed functions.
11638 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
11639
11640 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11641
11642 * breakpoint.c (print_one_breakpoint): Do not output spaces
11643 after printing <PENDING> for a pending breakpoint.
11644
11645 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11646
11647 * printcmd.c (print_scalar_formatted): Initialize val_long
11648 to remove compiler warning message.
11649
11650 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11651
11652 * defs.h (nquery, yquery): New prototypes.
11653 * breakpoint.c (break_command_1): Use new nquery interface.
11654 * utils.c (defaulted_query, nquery, yquery): New functions.
11655
11656 2004-02-23 Andrew Cagney <cagney@redhat.com>
11657
11658 * hppa-tdep.c (hppa_frame_align): New function.
11659 (hppa32_push_dummy_call): New function.
11660 (hppa64_push_dummy_call): New function.
11661 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
11662 disabled.
11663
11664 * infcall.c (legacy_push_dummy_code): Don't call deprecated
11665 FIX_CALL_DUMMY when push_dummy_call is available.
11666 (call_function_by_hand, push_dummy_code): Ditto.
11667
11668 2004-02-22 Andrew Cagney <cagney@redhat.com>
11669
11670 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
11671 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
11672 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
11673 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
11674 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
11675 call_dummy_location to ON_STACK.
11676
11677 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11678
11679 * x86-64-linux-tdep.c: Tweak comment.
11680 (amd64_linux_supply_gregset): Renamed from
11681 x86_64_linux_supply_gresget.
11682 (amd64_linux_fill_gregset): Renamed from
11683 x86_64_linux_fill_gregset.
11684 (fetch_core_registers): Adjust for renamed functions.
11685 (amd64_core_fns): Renamed from x86_64_core_fns.
11686 (amd64_linux_sigtramp_start): Renamed from
11687 x86_64_linux_sigtramp_start.
11688 (amd64_linux_pc_in_sigtramp): Renamed from
11689 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
11690 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
11691 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
11692 (amd64_linux_sigcontext_addr): Renamed from
11693 x86_64_linux_sigcontext_addr.
11694 (amd64_linux_sc_reg_offset): Renamed from
11695 x86_64_linux_sc_reg_offset.
11696 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
11697 Adjust for renamed functions and variables.
11698 (_initialize_amd64_linux_tdep): Renamed from
11699 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
11700 variables.
11701 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
11702 Adjust for renamed functions.
11703
11704 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
11705 from x86_64_linux_gregset64_reg_offset.
11706 (amd64_linux_gregset32_reg_offset): Rename from
11707 x86_64_linux_gregset64_reg_offset.
11708 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
11709 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
11710 (amd64_linux_dr_set_control): Renamed from
11711 x86_64_linux_dr_set_control. Adjust for renamed functions.
11712 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
11713 Adjust for renamed functions.
11714 (amd64_linux_dr_reset_addr): Renamed from
11715 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
11716 (amd64_linux_dr_get_status): Renamed from
11717 x86_64_linux_dr_get_status. Adjust for renamed functions.
11718 (_initialize_amd64_linux_nat): Renamed from
11719 _initialize_x86_64_linux_nat. Adjust for renamed variables and
11720 functions.
11721 * config/i386/nm-x86-64linux.h: Update copyright year.
11722 Adjust for renamed functions.
11723
11724 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
11725 amd64fbsd_sigtramp_start.
11726 (amd64fbsd_sigtramp_end_addr): Renamed from
11727 amd64fbsd_sigtramp_end.
11728 (amd64fbsd_init_abi): Adjust for renamed variables.
11729 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
11730 variables.
11731 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
11732 amd64fbsd_sigtramp_start.
11733 (amd64fbsd_sigtramp_end_addr): Renamed from
11734 amd64fbsd_sigtramp_end.
11735
11736 2004-02-22 Andrew Cagney <cagney@redhat.com>
11737
11738 * hppa-tdep.c (hppa32_return_value): New function.
11739 (hppa64_return_value): New function.
11740 (hppa_gdbarch_init): Set return_value; keep disabled.
11741
11742 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
11743 struct-return and inferior function call methods.
11744
11745 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
11746 "frame-base.h".
11747 (struct hppa_frame_cache): Define.
11748 (hppa_frame_cache, hppa_frame_this_id): New functions.
11749 (hppa_frame_prev_register): New function.
11750 (hppa_frame_unwind, hppa_frame_base): New variables.
11751 (hppa_frame_unwind_sniffer): New function.
11752 (hppa_frame_base_address, hppa_unwind_pc): New function.
11753 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
11754 sniffer, and frame base sniffer; keep disabled.
11755 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
11756 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
11757
11758 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
11759 to predicates for "seriously old code".
11760
11761 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
11762 runtime if(0).
11763
11764 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
11765 unsigned.
11766 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
11767
11768 * config/pa/tm-hppa.h: Update copyright.
11769 (DEPRECATED_INIT_FRAME_PC): Delete macro.
11770 (deprecated_init_frame_pc_default): Delete declaration.
11771 (hppa_frame_init_saved_regs): Delete declaration.
11772 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11773 * hppa-tdep.c: Include "arch-utils.h".
11774 (hppa_gdbarch_init): Set deprecated init_frame_pc
11775 and deprecated frame_init_saved_regs.
11776 (hppa_frame_init_saved_regs): Make static.
11777
11778 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11779
11780 Remove old 386BSD support.
11781 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
11782 * configure.host: Remove i[34567]86-*-bsd*.
11783 * configure.tgt: Remove i[34567]86-*-bsd*.
11784 * i386b-nat.c: Removed.
11785 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
11786 (i386b-nat.o): Remove dependencies.
11787
11788 * config/i386/i386bsd.mh: Removed.
11789 * config/i386/i386bsd.mt: Removed.
11790 * config/i386/nm-i386bsd.h: Removed.
11791 * config/i386/tm-i386bsd.h: Removed.
11792 * config/i386/xm-i386bsd.h: Removed.
11793
11794 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
11795
11796 * amd64fbsd-tdep.c: Include "solib-svr4.h".
11797 (amd64fbsd_init_abi): Set link map offsets.
11798 * amd64nbsd-tdep.c: Include "slib-svr4.h".
11799 (amd64nbsd_init_abi): Set link map offsets.
11800 * amd64obsd-tdep.c: Include "solib-svr4.h".
11801 (amd64obsd_init_abi): Set link map offsets.
11802 * i386fbsd-tdep.c: Include "solib-svr4.h".
11803 (i386fbsd_init_abi): Set link map offsets.
11804 * i386nbsd-tdep.c: Include "solib-svr4.h".
11805 (i386nbsdelf_init_abi): Set link map offsets.
11806 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
11807 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
11808 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
11809 solib-legacy.o and core-aout.o. Reformat.
11810 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
11811 solib-svr4.o, solib-legacy.o. Reformat.
11812 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
11813 * config/i386/nbsdelf.mh: Reformat.
11814 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
11815 solib-svr4.o, solib-legacy.o and corelow.o.
11816 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
11817 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
11818 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
11819 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11820 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11821 (TM_FILE): Set to tm-fbsd.h.
11822 * config/i386/nbsd.mt (TDEPFILES): Reformat.
11823 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
11824 solib-svr4.o.
11825 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
11826 solib-svr4.o.
11827 (TM_FILE): Set to nm-nbsd.h.
11828 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
11829 Simplify shared library support. Don't include "elf/common.h".
11830 (SVR4_SHARED_LIBS): Don't define.
11831 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
11832 "solib.h".
11833 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
11834 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
11835 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
11836 Don't include "i386/tm-i386.h". Include "solib.h".
11837 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
11838 Don't include "i386/tm-i386.h".
11839 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
11840 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
11841 Include "i386/xm-i386.h".
11842 (HOST_LONG_DOUBLE_FORMAT): Remove.
11843
11844 Fix OpenBSD/i386 sigtramp recognition.
11845 * i386-tdep.h: Update copyright year.
11846 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
11847 (i386bsd_sigtramp_end): New prototypes.
11848 (i386fbsd_sigtramp_start_addr): Renamed from
11849 i386fbsd_sigtramp_start.
11850 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11851 (i386obsd_sigtramp_start_addr): Renamed from
11852 i386obsd_sigtramp_start.
11853 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11854 * i386bsd-tdep.c: Update copyright year.
11855 (i386bsd_pc_in_sigtramp): Make public.
11856 * i386fbsd-nat.c: Update copyright year.
11857 (_initialize_i386fbsd_nat): Adjust for renamed variables.
11858 * i386fbsd-tdep.c: Update copyright year.
11859 (i386fbsd_sigtramp_start_addr): Renamed from
11860 i386fbsd_sigtramp_start.
11861 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11862 (i386fbsdaout_init_abi): Adjust for renamed variables.
11863 * i386obsd-nat.c: Update copyright year.
11864 (_initialize_i386obsd_nat): Adjust for renamed variables.
11865 * i386obsd-tdep.c: Include "target.h".
11866 (i386obsd_page_size): New variable.
11867 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
11868 (i386obsd_sigtramp_end): New functions.
11869 (i386obsd_sigtramp_start_addr): Renamed from
11870 i386obsd_sigtramp_start.
11871 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11872 (i386obsd_init_abi): Adjust for renamed variables. Set
11873 pc_in_sigtramp, sigtramp_start and sigtramp_end.
11874 * Makefile.in (i386obsd-tdep.o): Update dependencies.
11875
11876 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
11877 trampoline change in OpenBSD kernel.
11878
11879 * amd64-nat.c: Update copyright year.
11880 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
11881 architecture from REGCACHE.
11882
11883 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
11884 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
11885
11886 2004-02-21 Mark Kettenis <kettenis@gnu.org>
11887
11888 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
11889 i[34567]86-*-openbsd3.[0-3].
11890 * config/i386/obsdaout.mh: New file.
11891
11892 * config/i386/obsd.mh (MH_FLAGS): Remove.
11893
11894 Fix PR build/1549.
11895 * i386obsd-tdep.c: Update copyright years. Include
11896 "solib-svr4.h".
11897 (i386obsd_init_abi): Don't set regset_from_core_section here.
11898 (i386obsd_aout_init_abi): New function. Set
11899 regset_from_core_section here.
11900 (i386obsd_elf_init_abi): New function.
11901 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
11902 * Makefile.in (i386obsd-tdep.o): Update dependecies.
11903 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
11904 (TM_FILE): Set to tm-nbsd.h.
11905
11906 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
11907 solib-sunos.o.
11908
11909 * solib-svr4.h: Update copyright year.
11910 (svr4_ilp32_fetch_link_map_offsets)
11911 (svr4_lp64_fetch_link_map_offsets): New prototype.
11912 * solib-svr4.c: Update copyright year.
11913 (svr4_ilp32_fetch_link_map_offsets)
11914 (svr4_lp64_fetch_link_map_offsets): New function.
11915
11916 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
11917
11918 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
11919 to the partial symbol table.
11920
11921 2004-02-20 J. brobecker <brobecker@gnat.com>
11922
11923 * PROBLEMS: Add description of problem documented under gdb/1560.
11924
11925 2004-02-20 Mark Kettenis <kettenis@gnu.org>
11926
11927 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
11928 comments.
11929 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
11930 functions.
11931 (amd64obsd_init_abi): Reorder initializations. Use
11932 amd64obsd_r_reg_offset to initialize the general-purpose register
11933 set details. Set regset_from_core_section.
11934 (_initialize_amd64obsd_tdep): Rename from
11935 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
11936 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
11937 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
11938
11939 * NEWS (New native configurations): Mention OpenBSD/alpha.
11940 * configure.tgt: Add alpha*-*-openbsd*.
11941 * configure.host: Add alpha*-*-openbsd*.
11942 * alphanbsd-tdep.c: Update copyright year.
11943 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
11944
11945 2004-02-20 Andrew Cagney <cagney@redhat.com>
11946
11947 Fix PR tdep/1372.
11948 * configure.tgt: Delete target "none-*-*".
11949 * configure.host: Delete host "none-*-*".
11950 * config/none/none.mh: Delete file.
11951 * config/none/none.mt: Delete file.
11952 * config/none/xm-none.h: Delete file.
11953 * config/none/tm-none.h: Delete file.
11954 * config/none/nm-none.h: Delete file.
11955
11956 2004-02-19 Fred Fish <fnf@redhat.com>
11957
11958 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
11959 cache->uses_fp prior to setting it.
11960
11961 2004-02-19 Fred Fish <fnf@redhat.com>
11962
11963 Fix for PR breakpoint/1558.
11964 * sh-tdep.c (IS_JSR): New macro.
11965 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
11966
11967 2004-02-19 Jim Blandy <jimb@redhat.com>
11968
11969 * findvar.c (value_from_register): Doc fix.
11970
11971 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
11972
11973 * printcmd.c (print_scalar_formatted): Do not check for sizeof
11974 type being greater than sizeof of host's LONGEST. Always use
11975 unpack_long() unless format 'f' chosen.
11976
11977 2004-02-19 Joel Brobecker <brobecker@gnat.com>
11978
11979 Committed by Elena Zannoni <ezannoni@redhat.com>
11980
11981 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
11982 contains a symbol wich is the best, non-exact match for the given
11983 pc. Update comments.
11984
11985 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
11986
11987 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
11988 macro, which was part of the now removed Mach 3 port.
11989 * utils.c (request_quit): Ditto.
11990
11991 2004-02-18 Mark Kettenis <kettenis@gnu.org>
11992
11993 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
11994 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
11995
11996 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11997
11998 Committed by Mark Kettenis <kettenis@gnu.org>.
11999
12000 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
12001 Define.
12002
12003 2004-02-18 Andrew Cagney <cagney@redhat.com>
12004
12005 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
12006 CONFIG_INSTALL and CONFIG_UNINSTALL.
12007 * configure: Re-generate.
12008 * interps.h (INTERP_TUI): Define.
12009 * Makefile.in: Update dependencies.
12010 (TUI): New macro.
12011 (tui-main.o): Specify dependencies.
12012 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
12013 * tui/tui-main.c: New file.
12014
12015 2004-02-18 Mark Kettenis <kettenis@gnu.org>
12016
12017 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
12018 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
12019 dependencies.
12020 * configure.host: Add x86_64-*-openbsd*.
12021 * configure.tgt: Add x86_64-*-openbsd*.
12022 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
12023
12024 * tui/tui.c: Don't include <malloc.h>.
12025
12026 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
12027 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
12028 amd64nbsd-tdep.c.
12029
12030 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
12031 static. Remove extraneous whitespace.
12032 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
12033 static.
12034
12035 2004-02-17 Jim Blandy <jimb@redhat.com>
12036
12037 * findvar.c (value_from_register): Doc fix.
12038
12039 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12040
12041 Committed by Jim Blandy <jimb@redhat.com>.
12042
12043 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
12044 CORE_ADDR as type for selectors. Correct types for GNU run time
12045 message lookup function to use double indirection.
12046 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
12047 * objc-lang.h (lookup_child_selector): Adapt prototype.
12048
12049 * s390-nat.c (SUBOFF): New macro.
12050 (supply_gregset, fill_gregset): Use it to handle debugging
12051 of 32-bit exectuables running under a 64-bit kernel.
12052 * s390-tdep.c: Include "solib-svr4.h".
12053 (s390_svr4_fetch_link_map_offset): New function.
12054 (s390x_svr_fetch_link_map_offset): Likewise.
12055 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
12056 * Makefile.in (s390-tdep.o): Update dependencies.
12057
12058 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
12059 "frame-unwind.h".
12060 (s390_readinstruction): Reformat. Use read_memory_nobpt.
12061 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
12062 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
12063 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
12064 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
12065 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
12066 S390_SIGNAL_FRAMESIZE,
12067 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
12068 (struct frame_extra_info): Remove.
12069 (s390_memset_extra_info): Remove.
12070 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
12071 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
12072 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
12073 (is_rse): Renamed to ...
12074 (is_rsy): ... this. Support long displacements.
12075 (is_rxe): Renamed to ...
12076 (is_rxy): ... this. Support long displacements.
12077 (compute_x_addr): Support long displacements.
12078 (struct s390_prologue_data): New data type.
12079 (s390_on_stack): Change API to use struct s390_prologue_data.
12080 (s390_store): Reimplement.
12081 (s390_load): New function.
12082 (s390_get_signal_frame_info): Remove.
12083 (s390_get_frame_info): Remove, replace by ...
12084 (s390_analyze_prolog): ... this new function.
12085 (s390_check_function_end): Remove.
12086 (s390_function_start): Remove.
12087 (s390_frameless_function_invokation): Remove.
12088 (s390_is_sigreturn): Remove.
12089 (s390_init_frame_pc_first): Remove.
12090 (s390_init_frame_extra_info): Remove.
12091 (s390_frame_init_saved_regs): Remove.
12092 (s390_frame_saved_pc_nofix): Remove.
12093 (s390_frame_saved_pc): Remove.
12094 (s390_frame_chain): Remove.
12095 (s390_fp_regnum, s390_read_fp): Remove.
12096 (s390_pop_frame_regular, s390_pop_frame): Remove.
12097 (s390_saved_pc_after_call): Remove.
12098 (s390_skip_prologue): Reimplement.
12099 (s390_in_function_epilogue_p): Support long displacements.
12100 (struct s390_unwind_cache): New data structure.
12101 (s390_frame_unwind_cache): New function.
12102 (s390_prologue_frame_unwind_cache): Likewise.
12103 (s390_backchain_frame_unwind_cache): Likewise.
12104 (s390_frame_this_id, s390_frame_prev_register): Likewise.
12105 (s390_frame_unwind): Define.
12106 (s390_frame_sniffer): New function.
12107 (struct s390_pltstub_unwind_cache): New data structure.
12108 (s390_pltstub_frame_unwind_cache): New function.
12109 (s390_pltstub_frame_this_id): Likewise.
12110 (s390_pltstub_frame_prev_register): Likewise.
12111 (s390_pltstub_frame_unwind): Define.
12112 (s390_pltstub_frame_sniffer): New function.
12113 (struct s390_sigtramp_unwind_cache): New data structure.
12114 (s390_sigtramp_frame_unwind_cache): New function.
12115 (s390_sigtramp_frame_this_id): Likewise.
12116 (s390_sigtramp_frame_prev_register): Likewise.
12117 (s390_sigtramp_frame_unwind): Define.
12118 (s390_sigtramp_frame_sniffer): New function.
12119 (s390_frame_base_address, s390_local_base_address): New functions.
12120 (s390_frame_base): Define.
12121 (s390_unwind_pc, s390_unwind_sp): New function.
12122 (s390_push_dummy_call): Use new frame base location.
12123 (s390_unwind_dummy_id): Likewise.
12124 (s390_gdbarch_init): Remove calls to:
12125 set_gdbarch_frameless_function_invocation,
12126 set_gdbarch_deprecated_init_frame_pc,
12127 set_gdbarch_deprecated_frame_chain,
12128 set_gdbarch_deprecated_frame_init_saved_regs,
12129 set_gdbarch_deprecated_pop_frame,
12130 set_gdbarch_deprecated_init_extra_frame_info,
12131 set_gdbarch_deprecated_init_frame_pc_first,
12132 set_gdbarch_deprecated_target_read_fp,
12133 set_gdbarch_deprecated_frame_saved_pc,
12134 set_gdbarch_deprecated_saved_pc_after_call,
12135 set_gdbarch_deprecated_fp_regnum.
12136 Add calls to:
12137 set_gdbarch_in_solib_call_trampoline,
12138 frame_unwind_append_sniffer,
12139 frame_base_set_default,
12140 set_gdbarch_unwind_pc,
12141 set_gdbarch_unwind_sp.
12142 * Makefile.in (s390-tdep.o): Update dependencies.
12143
12144 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
12145 (S390_STACK_FRAME_OVERHEAD): Remove.
12146 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
12147 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
12148 (s390_promote_integer_argument): Remove.
12149 (s390_cannot_extract_struct_value_address): Remove.
12150 (s390_use_struct_convention, s390_store_struct_return): Remove.
12151 (s390_extract_return_value, s390_store_return_value): Remove.
12152 (s390_return_value_convention, s390_return_value): New functions.
12153 (is_float_singleton): Handle typedefs.
12154 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
12155 Remove, replace by ...
12156 (s390_function_arg_pass_by_reference, s390_function_arg_float,
12157 s390_function_arg_integer): ... these new functions.
12158 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
12159 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
12160 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
12161 Fill in tdep->abi.
12162 Remove calls to:
12163 set_gdbarch_deprecated_store_struct_return,
12164 set_gdbarch_deprecated_extract_return_value,
12165 set_gdbarch_deprecated_store_return_value,
12166 set_gdbarch_use_struct_convention,
12167 set_gdbarch_extract_struct_value_address,
12168 set_gdbarch_deprecated_pc_in_call_dummy,
12169 set_gdbarch_deprecated_push_arguments,
12170 set_gdbarch_deprecated_save_dummy_frame_tos,
12171 set_gdbarch_deprecated_push_return_address,
12172 set_gdbarch_deprecated_sizeof_call_dummy_words,
12173 set_gdbarch_deprecated_call_dummy_words,
12174 set_gdbarch_deprecated_dummy_write_sp.
12175 Add calls to:
12176 set_gdbarch_push_dummy_call,
12177 set_gdbarch_unwind_dummy_id,
12178 set_gdbarch_return_value.
12179
12180 * config/s390/nm-linux.h: Update comments.
12181 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
12182 (STOPPED_BY_WATCHPOINT): Redefine.
12183 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
12184 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
12185 (s390_stopped_by_watchpoint): Likewise.
12186 (watch_area_cnt): Remove.
12187 * s390-nat.c: Update comments.
12188 (watch_area): Remove typedef.
12189 Global replace watch_area by struct watch_area.
12190 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
12191 (s390_stopped_by_watchpoint): Remove pid argument,
12192 use s390_inferior_tid. Add short-cut for the no watchpoint case.
12193 (s390_fix_watch_points): Remove pid argument,
12194 use s390_inferior_tid. Recompute area spanned by watchpoints.
12195 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
12196 argument. Reimplement.
12197
12198 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
12199 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
12200 (FETCH_INFERIOR_REGISTERS): Define.
12201 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
12202 core-regset.o.
12203 * config/s390/s390x.mt: Remove.
12204 * config/s390/tm-s390.h: Remove.
12205 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
12206 (TARGET_ELF64): Remove.
12207 (SKIP_TRAMPOLINE_CODE): Do not undefine.
12208 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
12209 s390*-*-* case; always set gdb_target to s390.
12210 * regformats/reg-s390.dat: Remove control registers.
12211 * regformats/reg-s390x.dat: Likewise.
12212 * s390-tdep.h: New file.
12213 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
12214 Include "inferior.h" and "s390-tdep.h".
12215 Remove private definition of offsetof.
12216 (s390_register_u_addr): Remove.
12217 (regmap_gregset, regmap_fpregset): Define.
12218 (supply_gregset, fill_gregset): Reimplement.
12219 (supply_fpregset, fill_fpregset): Likewise.
12220 (s390_inferior_tid): New function.
12221 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
12222 (fetch_inferior_registers, store_inferior_registers): Likewise.
12223 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
12224 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
12225 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
12226 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
12227 (struct gdbarch_tdep): Define.
12228 (struct s390_register_info): Define.
12229 (s390_register_info): New variable.
12230 (s390_register_name): Reimplement.
12231 (s390_register_type): New function.
12232 (s390_register_raw_size, s390x_register_raw_size): Remove.
12233 (s390_cannot_fetch_register): Remove.
12234 (s390_register_byte): Remove.
12235 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
12236 (s390_dwarf_regmap): New variable.
12237 (s390_dwarf_reg_to_regnum): New function.
12238 (s390_stab_reg_to_regnum): Remove.
12239 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
12240 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
12241 (s390_convert_register_p): Likewise.
12242 (s390_register_to_value, s390_value_to_register): Likewise.
12243 (s390_register_reggroup_p): Likewise.
12244 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
12245 s390_gregset, s390x_gregset, s390_fpregset): New variables.
12246 (s390_supply_regset, s390_regset_from_core_section): New functions.
12247 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
12248 (S390_FPR_SIZE): Likewise.
12249 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
12250 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
12251 (S390_NUM_GPRS): Move here from tm-s390.h.
12252 (S390_NUM_FPRS): Likewise.
12253 (s390_in_function_epilogue_p): New function.
12254 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
12255 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
12256 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
12257 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
12258 Replace S390_FP_REGNUM by S390_SP_REGNUM.
12259 Remove calls to:
12260 set_gdbarch_deprecated_max_register_raw_size,
12261 set_gdbarch_deprecated_max_register_virtual_size,
12262 set_gdbarch_deprecated_register_byte,
12263 set_gdbarch_cannot_fetch_register,
12264 set_gdbarch_cannot_store_register,
12265 set_gdbarch_deprecated_register_size,
12266 set_gdbarch_deprecated_register_raw_size,
12267 set_gdbarch_deprecated_register_virtual_size,
12268 set_gdbarch_deprecated_register_virtual_type,
12269 set_gdbarch_deprecated_register_bytes.
12270 Add calls to:
12271 set_gdbarch_num_pseudo_regs,
12272 set_gdbarch_register_type,
12273 set_gdbarch_convert_register_p,
12274 set_gdbarch_register_to_value,
12275 set_gdbarch_value_to_register,
12276 set_gdbarch_register_reggroup_p,
12277 set_gdbarch_regset_from_core_section,
12278 set_gdbarch_pseudo_register_read,
12279 set_gdbarch_pseudo_register_write,
12280 set_gdbarch_in_function_epilogue_p.
12281 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
12282 (s390_tdep_h): New variable.
12283
12284 2004-02-17 Jim Blandy <jimb@redhat.com>
12285
12286 * findvar.c (value_from_register): If the type has no length, just
12287 return an acceptable value --- don't report an internal error.
12288
12289 * stabsread.c (read_type): If we find any type numbers that are
12290 forward references, complain if the references aren't resolved by
12291 the time we're finished reading.
12292 (cleanup_undefined_types): Make error message more appropriate for
12293 a complaint.
12294
12295 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
12296
12297 * Makefile.in (defs_h): Remove dependency on progress_h.
12298 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
12299 progress.h.
12300 * main.c (captured_main): Delete use of START_PROGRESS and
12301 END_PROGRESS.
12302
12303 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
12304
12305 * objfiles.c (terminate_minimal_symbol_table): Add back
12306 initialization of MSYMBOL_TYPE.
12307
12308 2004-02-17 David Mosberger <davidm@hpl.hp.com>
12309
12310 Committed by Andrew Cagney.
12311 * Makefile.in (ia64_tdep_h): New macro.
12312 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
12313 (ia64-tdep.o): Likewise.
12314 * ia64-tdep.h: New file.
12315 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
12316 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
12317 (ia64_aix_sigcontext_register_address): Likewise.
12318 (ia64_linux_getunwind_table): Delete declaration.
12319 * ia64-linux-tdep.c: Likewise.
12320
12321 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
12322
12323 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
12324 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
12325 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
12326
12327 2004-02-17 Andrew Cagney <cagney@redhat.com>
12328
12329 * symtab.c (skip_prologue_using_sal): New function.
12330 * symtab.h (skip_prologue_using_sal): Declare.
12331 * frv-tdep.c: Include "symtab.h".
12332 (skip_prologue_using_sal): Delete function.
12333 * mips-tdep.c (skip_prologue_using_sal): Delete function.
12334 * rs6000-tdep.c (refine_prologue_limit): Mention
12335 skip_prologue_using_sal.
12336 * ia64-tdep.c (refine_prologue_limit): Ditto.
12337 * Makefile.in: Update dependencies.
12338
12339 2004-02-16 Andrew Cagney <cagney@redhat.com>
12340
12341 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
12342 START_INFERIOR_TRAPS_EXPECTED.
12343 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
12344 START_INFERIOR_TRAPS_EXPECTED.
12345 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
12346 Delete macro.
12347 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
12348 macro, moved to "nm-osf.h". Update copyright.
12349 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
12350 update copyright.
12351
12352 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
12353 and function replacing FRAMELESS_FUNCTION_INVOCATION.
12354 * blockframe.c (legacy_frameless_look_for_prologue): Rename
12355 frameless_look_for_prologue.
12356 * frame.h (legacy_frameless_look_for_prologue): Rename
12357 frameless_look_for_prologue.
12358 * gdbarch.h, gdbarch.c: Re-generate.
12359 * sh64-tdep.c (sh64_gdbarch_init): Update.
12360 * sh-tdep.c (sh_gdbarch_init): Update.
12361 * s390-tdep.c (s390_gdbarch_init): Update.
12362 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12363 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12364 * m68k-tdep.c (m68k_gdbarch_init): Update.
12365 (delta68_frame_args_address): Update.
12366 * m32r-tdep.c (m32r_gdbarch_init): Update.
12367 * hppa-tdep.c (hppa_gdbarch_init): Update.
12368 * h8300-tdep.c (h8300_gdbarch_init): Update.
12369 * frv-tdep.c (frv_gdbarch_init): Update.
12370 (frv_frameless_function_invocation): Update.
12371 * cris-tdep.c (cris_gdbarch_init): Update.
12372 (cris_frameless_function_invocation): Update.
12373 * avr-tdep.c (avr_gdbarch_init): Update.
12374 * arm-tdep.c (arm_gdbarch_init): Update.
12375 * stack.c (frame_info): Update, call predicate.
12376 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
12377 * frame.c (legacy_get_prev_frame): Update, call predicate..
12378 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
12379 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
12380 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
12381 invocation.
12382 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12383 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12384 * vax-tdep.c (vax_gdbarch_init): Ditto.
12385
12386 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
12387 function.
12388
12389 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
12390
12391 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
12392 initializations.
12393
12394 2004-02-16 Andrew Cagney <cagney@redhat.com>
12395
12396 * tui/tui-windata.c: Include "gdb_string.h".
12397 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
12398 * tui/tui-layout.c, tui/tui-command.c: Ditto.
12399 * Makefile.in: Update dependencies.
12400
12401 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
12402
12403 * Makefile.in (infrun.o): Add $(gdb_assert_h).
12404 * infrun.c: Include "gdb_assert.h".
12405 (singlestep_ptid, saved_singlestep_ptid)
12406 (stepping_past_singlestep_breakpoint): New variables.
12407 (resume): Set singlestep_ptid. Check for singlestep thread
12408 hop.
12409 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
12410 (handle_inferior_event): Handle singlestep thread hop.
12411
12412 2004-02-16 Andrew Cagney <cagney@redhat.com>
12413
12414 * dwarf2-frame.c (dwarf2_frame_ops): New function.
12415 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
12416 (dwarf2_frame_init_reg): Ditto.
12417
12418 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
12419 suggested by Joshua Neuheisel
12420
12421 * configure.in: Always check for curses, including pdcurses.
12422 Warn, instead of error, when no curses are found. Enable TUI when
12423 curses is available.
12424 * configure: Re-generate.
12425
12426 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
12427
12428 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
12429 sh_sh4_register_convert_to_virtual.
12430 (sh_register_convert_to_raw): Rename from
12431 sh_sh4_register_convert_to_raw.
12432 (sh_pseudo_register_read): Accomodate above name change.
12433 (sh_pseudo_register_write): Ditto.
12434
12435 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
12436
12437 * sh-tdep.c (sh_generic_register_name): Remove.
12438 (sh_gdbarch_init): Use sh_sh_register_name in default case.
12439
12440 2004-02-15 Andrew Cagney <cagney@redhat.com>
12441
12442 * configure.in (build_warnings): Add -Wunused-function.
12443 * configure: Re-generate.
12444
12445 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
12446 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
12447
12448 * procfs.c (procfs_init_inferior): Assume that
12449 START_INFERIOR_TRAPS_EXPECTED is defined.
12450 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
12451 * config/ns32k/tm-nbsd.h: Delete file,
12452 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
12453
12454 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
12455 * config/vax/tm-vax.h: Delete file.
12456
12457 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12458 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12459 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12460 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12461 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
12462 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12463 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
12464
12465 2004-02-15 Mark Kettenis <kettenis@gnu.org>
12466
12467 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
12468 * dwarf2-frame.c (dwarf2_frame_data): New variable.
12469 (struct dwarf2_frame_ops): New.
12470 (dwarf2_frame_default_init_reg): New function, based on
12471 dwarf2_frame_init_reg.
12472 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
12473 (dwarf2_frame_init_reg): Call architecture-specific function.
12474 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
12475 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
12476 instead of dwarf2_frame_data.
12477 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
12478 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
12479
12480 2004-02-15 Andrew Cagney <cagney@redhat.com>
12481
12482 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
12483 register_gdbarch_swap.
12484 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
12485 * f-lang.c (_initialize_f_language): Update, use
12486 DEPRECATED_REGISTER_GDBARCH_SWAP.
12487 * remote.c (_initialize_remote): Ditto.
12488 * regcache.c (_initialize_regcache): Ditto.
12489 * parse.c (_initialize_parse): Ditto.
12490 * infrun.c (_initialize_infrun): Ditto.
12491 * mi/mi-main.c (_initialize_mi_main): Ditto.
12492 * gdbtypes.c (_initialize_gdbtypes): Ditto.
12493
12494 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
12495 poking .cacheable directly.
12496 * symfile.c (symfile_bfd_open): Ditto.
12497
12498 * Makefile.in: Update all dependencies.
12499
12500 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
12501 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
12502 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
12503 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
12504 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
12505
12506 2004-02-14 Andrew Cagney <cagney@redhat.com>
12507
12508 * arch-utils.c (legacy_convert_register_p): Check
12509 DEPRECATED_REGISTER_CONVERTIBLE_P.
12510 * findvar.c (value_of_register): Ditto.
12511
12512 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
12513 * gdbarch.h, gdbarch.c: Re-generate.
12514 * arch-utils.c (deprecated_register_convertible_not): Delete.
12515 * arch-utils.h (deprecated_register_convertible_not): Delete.
12516 * mi/mi-main.c (get_register): Update. Update copyright.
12517 * infcmd.c (default_print_registers_info): Update.
12518
12519 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
12520 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
12521 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
12522 * gdbarch.h, gdbarch.c: Re-generate.
12523 * frame.c (deprecated_get_next_frame_hack): Delete function.
12524 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
12525 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
12526 Update.
12527 * infcall.c (call_function_by_hand): Update.
12528
12529 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
12530
12531 * symfile.c (init_entry_point_info, entry_point_address): Move
12532 from here...
12533 * objfiles.c (init_entry_point_info, entry_point_address):..to
12534 here.
12535 * symfile.h (init_entry_point_info, entry_point_address): Remove
12536 prototypes.
12537 * objfiles.h (init_entry_point_info, entry_point_address):Add
12538 prototypes.
12539 * cris-tdep.c: Remove include of symfile.h. Add include of
12540 objfiles.h.
12541 * infcall.c: Ditto.
12542 * mcore-tdep.c: Ditto.
12543 * mn10300-tdep.c: Ditto.
12544 * sh64-tdep.c: Ditto.
12545 * v850-tdep.c: Ditto.
12546 * arm-tdep.c: Remove include of symfile.h.
12547 * blockframe.c: Ditto.
12548 * coffread.c: Ditto.
12549 * dbxread.c: Ditto.
12550 * dwarf2read.c: Ditto.
12551 * dwarfread.c: Ditto.
12552 * frv-tdep.c: Ditto.
12553 * ia64-tdep.c: Ditto.
12554 * mdebugread.c: Ditto.
12555 * mipsread.c: Ditto.
12556 * rs6000-tdep.c: Ditto.
12557 * s390-tdep.c: Ditto.
12558 * sh-tdep.c: Ditto.
12559 * xstormy16-tdep.c: Ditto.
12560 * gdbarch.sh: Remove include of symfile.h.
12561 * gdbarch.c: Regenerate.
12562 * solib-irix.c (enable_break): Use entry_point_address().
12563 Add comment about include file.
12564 * xcoffread.c: Add comment about include file.
12565 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
12566 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
12567 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
12568 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
12569 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
12570
12571 2004-02-13 Andrew Cagney <cagney@redhat.com>
12572
12573 * corelow.c (core_xfer_partial): Use "struct bfd_section".
12574 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
12575 copyright.
12576 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
12577
12578 2004-02-12 Fred Fish <fnf@redhat.com>
12579
12580 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
12581 set_gdbarch_store_return_value.
12582
12583 2004-02-12 Andrew Cagney <cagney@redhat.com>
12584
12585 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
12586 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
12587 (interrupt_query): Ditto.
12588 (ofunc): Delete unused variable.
12589 * cris-tdep.c (cris_abi): Delete unused function.
12590 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
12591 (cris_get_wide_opcode, cris_get_short_size): Ditto.
12592 (cris_get_asr_quick_shift_steps): Ditto.
12593 (cris_skip_prologue_frameless_p): Ditto.
12594 * arm-tdep.c (arm_push_return_address): Delete unused function.
12595 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
12596 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
12597 * s390-tdep.c (s390_function_start): Delete unused function.
12598
12599 2004-02-12 Andrew Cagney <cagney@redhat.com>
12600
12601 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
12602 gdbarch.h, gdbarch.c: Re-generate.
12603 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
12604 to generic_prologue_frameless_p.
12605 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
12606 * arch-utils.c (generic_prologue_frameless_p): Delete function.
12607
12608 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
12609
12610 * mips-linux-tdep.c: Include "frame.h".
12611 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
12612 (mips_linux_skip_resolver): New functions.
12613 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
12614 and set_gdbarch_in_solib_call_trampoline.
12615 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
12616 to after set_gdbarch_in_solib_return_trampoline. Only set the
12617 solib hooks to mips16 functions if the OS ABI is unknown.
12618 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
12619 including "config/tm-linux.h".
12620 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
12621 * Makefile.in (mips-linux-tdep.o): Update.
12622
12623 2004-02-11 David Carlton <carlton@kealia.com>
12624
12625 * linespec.c (decode_compound): Only look for a class symbol when
12626 considering all but the rightmost component.
12627
12628 2004-02-11 Andrew Cagney <cagney@redhat.com>
12629
12630 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
12631 abi code are are separatly grouped.
12632
12633 2004-02-11 Andrew Cagney <cagney@redhat.com>
12634
12635 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
12636 * gdbarch.h, gdbarch.c: Re-generate.
12637 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12638 * v850-tdep.c (v850_gdbarch_init): Update.
12639 * sh64-tdep.c (sh64_gdbarch_init): Update.
12640 * sh-tdep.c (sh_gdbarch_init): Update.
12641 * s390-tdep.c (s390_gdbarch_init): Update.
12642 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12643 * mips-tdep.c (mips_gdbarch_init): Update.
12644 * mcore-tdep.c (mcore_gdbarch_init): Update.
12645 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12646 * m32r-tdep.c (m32r_gdbarch_init): Update.
12647 * ia64-tdep.c (ia64_gdbarch_init): Update.
12648 * hppa-tdep.c (hppa_gdbarch_init): Update.
12649 * h8300-tdep.c (h8300_gdbarch_init): Update.
12650 * frv-tdep.c (frv_gdbarch_init): Update.
12651 * d10v-tdep.c (d10v_gdbarch_init): Update.
12652 * cris-tdep.c (cris_gdbarch_init): Update.
12653 * avr-tdep.c (avr_gdbarch_init): Update.
12654 * arm-tdep.c (arm_gdbarch_init): Update.
12655 * alpha-tdep.c (alpha_gdbarch_init): Update.
12656
12657 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
12658
12659 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
12660 comma.
12661 (sh_sh4al_dsp_register_name): Ditto.
12662
12663 2004-02-10 Andrew Cagney <cagney@redhat.com>
12664
12665 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
12666 (mips_init_frame_pc_first): Delete function.
12667 (mips_frame_saved_pc): Delete function.
12668 (mips_frame_chain): Delete function.
12669 (mips_init_extra_frame_info): Delete function.
12670 (mips_xfer_register): Delete unused variable "reg".
12671 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
12672 (mips_n32n64_return_value): Delete unused variable "reg".
12673 (mips_n32n64_return_value): Delete unused variable "pos".
12674 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
12675 (mips_o32_return_value): Delete unused variable "pos".
12676 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
12677 (mips_print_fp_register): Delete unused variable "namelen"
12678 (mips_print_fp_register): Delete unused variable "flt2"
12679 (get_frame_pointer): Delete function.
12680 (cached_proc_desc): Delete static variable.
12681 (mips_pop_frame): Delete function.
12682 (mips_find_saved_regs): Delete function.
12683 (mips_get_saved_register): Delete function.
12684 (mips_saved_pc_after_call): Delete function.
12685 (SIGFRAME_BASE): Delete macro.
12686 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
12687 (SIGFRAME_PC_OFF): Delete macro.
12688 (SIGFRAME_REGSAVE_OFF): Delete macro.
12689 (mips_dump_tdep): Do not print deleted macro definitions.
12690
12691 2004-02-10 Andrew Cagney <cagney@redhat.com>
12692
12693 * Makefile.in (SFILES): Remove explictly listed tui files.
12694 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
12695
12696 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
12697
12698 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
12699 to use paddr functions to format ia64 addresses and long values.
12700 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
12701 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
12702 (get_kernel_table, ia64_find_proc_info_x): Ditto.
12703 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
12704 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
12705
12706 2004-02-10 Andrew Cagney <cagney@redhat.com>
12707
12708 * defs.h: Do not include "tui.h".
12709 * gdb_curses.h: New file.
12710 * tui/tui-hooks.h: New file.
12711 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
12712 (tui_install_hooks, tui_remove_hooks): Delete declarations.
12713 (tui_initialize_io): Delete declaration.
12714 (tui_initialize_readline: Delete redundant declaration.
12715 (struct tui_point): Delete definition.
12716 * tui/tui-data.h (struct tui_point): Define.
12717 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
12718 * utils.c: Include "tui/tui.h".
12719 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
12720 * printcmd.c [TUI]: Include "tui/tui.h".
12721 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
12722 * tui/tui-command.c: Include "gdb_curses.h".
12723 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
12724 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
12725 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
12726 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
12727 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
12728 * Makefile.in: Update all dependencies.
12729 (tui_hooks_h, gdb_curses_h): Define.
12730 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
12731
12732 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
12733
12734 * objfiles.h (struct objfile): Remove unused fields auxf1 and
12735 auxf2. Add comments about some other rarely used fields.
12736
12737 2004-02-10 Andrew Cagney <cagney@redhat.com>
12738
12739 * Makefile.in (init.c): Fix script removing duplicates. Problem
12740 reported by Peter Schauer.
12741
12742 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12743
12744 * bcache.c (bcache_xmalloc): Use obstack_init instead of
12745 obstack_specify_allocation.
12746 * objfiles.c (allocate_objfile): Ditto.
12747 * solib-sunos.c (solib_add_common_symbols)
12748 (allocate_rt_common_objfile): Ditto.
12749 * symfile.c (reread_symbols): Ditto.
12750 * gdb_obstack.h: Add comment.
12751
12752 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12753
12754 * linespec.c (decode_line_1, locate_first_half)
12755 (decode_compound, lookup_prefix_sym): Update comments. Delete old
12756 commented out code.
12757
12758 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
12759
12760 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
12761 obstack_free.
12762
12763 2004-02-09 Andrew Cagney <cagney@redhat.com>
12764
12765 * blockframe.c (find_pc_partial_function): If find_pc_overlay
12766 fails, try find_pc_section. Fix PR c++/1267.
12767 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
12768 instead of find_pc_mapped_section.
12769 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
12770 not default to the section containing PC. Fix PR symtab/1519.
12771
12772 2004-02-09 Andrew Cagney <cagney@redhat.com>
12773
12774 * Makefile.in (mips-tdep.o): Update dependencies.
12775 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
12776 "trad-frame.h".
12777 (mips_unwind_pc): Return the pseudo PC register.
12778 (mips_unwind_dummy_id): New function.
12779 (mips16_fetch_instruction): New function.
12780 (mips32_fetch_instruction): New function.
12781 (struct mips_frame_cache): Define.
12782 (mips_mdebug_frame_cache): New function.
12783 (mips_mdebug_frame_this_id): New function.
12784 (mips_mdebug_frame_prev_register): New function.
12785 (mips_mdebug_frame_unwind): Define.
12786 (mips_mdebug_frame_sniffer): New function.
12787 (mips_mdebug_frame_base_address): New function.
12788 (mips_mdebug_frame_base): Define.
12789 (mips_mdebug_frame_base_sniffer): New function.
12790 (mips_gdbarch_init): Append unwind and base sniffers. Set
12791 unwind_dummy_id.
12792
12793 2004-02-08 Andrew Cagney <cagney@redhat.com>
12794
12795 * frame.c: Print both the register number and name.
12796
12797 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
12798 and a sed into a single sed. Make .c and .o patterns more robust.
12799 (OBS): Delete.
12800 (INIT_FILES): Replace OBS with COMMON_OBS.
12801 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
12802
12803 2004-02-08 Mark Kettenis <kettenis@gnu.org>
12804
12805 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
12806 the PT_WCOOKIE request.
12807
12808 2004-02-08 Andrew Cagney <cagney@redhat.com>
12809
12810 * mips-tdep.c (mips_unwind_pc): New function.
12811 (mips_gdbarch_init): Set mips_unwind_pc.
12812
12813 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
12814 (get_frame_id): Allow the UNKNOWN_FRAME.
12815 (frame_register_unwind, get_frame_type): Ditto.
12816
12817 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
12818 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
12819 unwind_dummy_id indicates a legacy frame.
12820
12821 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
12822 * configure: Re-generate.
12823
12824 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
12825 methods.
12826
12827 2004-02-08 Andrew Cagney <cagney@redhat.com>
12828
12829 * configure.in (CONFIG_ALL): Set to Makefile target, and not
12830 makefile macro.
12831 * configure: Re-generate.
12832 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
12833 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
12834 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
12835 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
12836 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
12837 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
12838 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
12839 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
12840 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
12841 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
12842
12843 2004-02-07 Andrew Cagney <cagney@redhat.com>
12844
12845 * Makefile.in: Update all dependencies.
12846
12847 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
12848 * configure: Re-generate.
12849 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
12850 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
12851 (COMMON_OBS): Add "main.o" and "annotate.o".
12852 (ANNOTATE_OBS): Delete.
12853 (OBS): Remove ANNOTATE_OBS.
12854 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
12855 CONFIG_INITS.
12856 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
12857 against CONFIG_OBS and "main.o".
12858 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
12859 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
12860
12861 * tui/tui-command.c: Include "gdb_string.h", delete register
12862 attribute, use ISO-C function signatures.
12863 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
12864 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12865 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
12866 * tui/tui.c: Ditto.
12867
12868 * tui/tui-command.c: Change variable and function names to lower
12869 case.
12870 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
12871 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
12872 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12873 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12874 * tui/tui-winsource.c, tui/tui.c: Ditto.
12875
12876 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12877
12878 * buildsym.c (free_pending_blocks, finish_block)
12879 (record_pending_block, make_blockvector, end_symtab): Replace
12880 symbol_obstack with objfile_obstack.
12881 * coffread.c (process_coff_symbol, coff_read_struct_type)
12882 (coff_read_enum_type): Ditto.
12883 * cp-namespace.c (initialize_namespace_symtab)
12884 (check_one_possible_namespace_symbol): Ditto.
12885 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
12886 (dwarf2_symbol_mark_computed): Ditto.
12887 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
12888 * elfread.c (elf_symtab_read): Ditto.
12889 * hpread.c (hpread_symfile_init, hpread_symfile_init)
12890 (hpread_read_enum_type, hpread_read_function_type)
12891 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
12892 Ditto.
12893 * jv-lang.c (get_java_class_symtab, add_class_symbol)
12894 (java_link_class_type): Ditto.
12895 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
12896 (new_symbol): Ditto.
12897 * minsyms.c (install_minimal_symbols): Ditto.
12898 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
12899 (terminate_minimal_symbol_table): Replace symbol_obstack with
12900 objfile_obstack.
12901 (free_objfile): Remove freeing of symbol_obstack.
12902 * objfiles.h: Remove symbol_obstack field.
12903 * pa64solib.c (add_to_solist): Replace symbol_obstack with
12904 objfile_obstack.
12905 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12906 symbol_obstack.
12907 (solib_add_common_symbols): Replace symbol_obstack with
12908 objfile_obstack.
12909 * somsolib.c (som_solib_add): Ditto.
12910 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
12911 (common_block_start, common_block_end): Ditto.
12912 * symfile.c (reread_symbols): Remove freeing and init of
12913 symbol_obstack.
12914 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
12915 * symfile.h: Update comment.
12916 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
12917 stats printing.
12918 * symtab.c (symbol_set_names): Replace symbol_obstack with
12919 objfile_obstack.
12920 * symtab.h (struct general_symbol_info, struct minimal_symbol):
12921 Update comments.
12922 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
12923 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
12924 objfile_obstack.
12925
12926 2004-02-07 Andrew Cagney <cagney@redhat.com>
12927
12928 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
12929 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
12930 fields and variables.
12931 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
12932 (m_beInvisible): Delete macro.
12933 * tui/tui-data.h: Fix case case fields and variables.
12934 (m_genWinPtrIsNull): Delete macro.
12935 (tui_win_list): Rename winList.
12936 (TUI_SRC_WIN): Rename srcWin.
12937 (TUI_DISASM_WIN): Rename disassemWin.
12938 (TUI_DATA_WIN): Rename dataWin.
12939 (TUI_CMD_WIN): Rename cmdWin.
12940 (m_genWinPtrNotNull): Delete macro.
12941 (m_winPtrIsNull): Delete macro.
12942 (m_winPtrNotNull): Delete macro.
12943 (tui_win_is_source_type): Replace m_winIsSourceType
12944 (tui_win_is_auxillary): Replace m_winIsAuzillary.
12945 (tui_win_has_locator): Replace m_hasLocator.
12946 (tui_set_win_highlight): Replace m_setWinHighlightOn and
12947 m_setWinHighlightOff.
12948 * tui/tui-data.c: Update references.
12949 (tui_win_is_source_type, tui_set_win_highlight): New functions.
12950 (tui_win_has_locator, tui_win_is_auxillary): New functions.
12951 * tui/tui-command.c, tui/tui-disasm.c: Update references.
12952 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
12953 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
12954 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12955 * tui/tui-winsource.c, tui/tui.c: Ditto.
12956
12957 2004-02-07 Mark Kettenis <kettenis@gnu.org>
12958
12959 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
12960 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
12961 StackGhost.
12962
12963 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
12964 variable `i6' to `i7'.
12965 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12966
12967 2004-02-07 Andrew Cagney <cagney@redhat.com>
12968
12969 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
12970 (TuiPoint, TuiPointPtr): Ditto.
12971 (TuiStatus, TuiStatusPtr): Ditto.
12972 (TuiWinType, TuiWinTypePtr): Ditto.
12973 (struct tui_point): Rename _TuiPoint.
12974 (tui_get_low_disassembly_address): Rename
12975 tuiGetLowDisassemblyAddress.
12976 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
12977 (tuiFree): Delete declaration.
12978 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
12979 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
12980 * tui/tui.c (tuiFree): Delete function.
12981 * cli/cli-cmds.c (disassemble_command): Update references.
12982 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
12983 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12984 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
12985 * tui/tui-winsource.c: Ditto.
12986
12987 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12988
12989 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
12990 coffstab_build_psymtabs, elfstab_build_psymtabs)
12991 (stabsect_build_psymtabs): Replace psymbol_obstack with
12992 objfile_obstack.
12993 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
12994 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
12995 Ditto.
12996 * dwarfread.c (scan_compilation_units): Ditto.
12997 * elfread.c (elfstab_offset_sections): Ditto.
12998 * hppa-tdep.c (read_unwind_info): Ditto.
12999 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
13000 (hpread_end_psymtab): Ditto.
13001 * mdebugread.c (mdebug_build_psymtabs, add_pending)
13002 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
13003 Ditto.
13004 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
13005 * objfiles.c (add_to_objfile_sections)
13006 (build_objfile_section_table): Ditto.
13007 (allocate_objfile): Remove init of psymbol_obstack.
13008 (free_objfile): Remove freeing of psymbol_obstack.
13009 * objfiles.h (struct objfile): Remove field
13010 psymbol_obstack. Update comments.
13011 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
13012 psymbol_obstack with objfile_obstack.
13013 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
13014 psymbol_obstack.
13015 * somread.c (som_symfile_offsets, init_import_symbols)
13016 (init_export_symbols): Replace psymbol_obstack with
13017 objfile_obstack.
13018 * somsolib.c (som_solib_add_solib_objfile): Ditto.
13019 * symfile.c (default_symfile_offsets, syms_from_objfile)
13020 (reread_symbols): Remove freeing and init of psymbol_obstack.
13021 (cashier_psymtab): Update comment.
13022 * symmisc.c (print_objfile_statistics): Don't report stats for
13023 psymbol obstack.
13024 * symtab.h (struct general_symbol_info, struct partial_symtab):
13025 Update comments.
13026 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
13027 (xcoff_symfile_offsets): Replace psymbol_obstack with
13028 objfile_obstack.
13029
13030 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
13031
13032 * objfiles.h (struct objfile): Add objfile_obstack field.
13033 Remove type_obstack field.
13034
13035 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
13036 read_structure_scope read_enumeration, new_symbol): Replace
13037 type_obstack with objfile_obstack.
13038 * dwarfread.c (struct_type, enum_type): Ditto.
13039 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
13040 (lookup_fundamental_type): Ditto.
13041 * gdbtypes.h (TYPE_ALLOC): Ditto.
13042 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
13043 (hpread_read_doc_function_type, hpread_read_struct_type)
13044 (fix_static_member_physnames, hpread_read_array_type)
13045 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
13046 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
13047 (java_link_class_type): Ditto.
13048 * mdebugread.c (parse_type): Ditto.
13049 * objfiles.c (allocate_objfile, free_objfile): Ditto.
13050 * solib-sunos.c (solib_add_common_symbols): Ditto.
13051 * stabsread.c (define_symbol, read_type, read_member_functions,
13052 read_cpp_abbrev, read_one_struct_field): Ditto.
13053 * symfile.c (reread_symbols): Ditto.
13054 * symmisc.c (print_objfile_statistics): Ditto.
13055
13056 2004-02-07 Andrew Cagney <cagney@redhat.com>
13057
13058 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
13059 (tui_exec_info_content): Rename TuiExecInfoContent.
13060 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
13061 (TuiWinInfo, TuiWinInfoPtr): Ditto.
13062 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
13063 (TuiList, TuiListPtr): Ditto.
13064 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
13065 (TuiDataType, TuiDataTypePtr): Ditto.
13066 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
13067 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
13068 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
13069 (TuiSourceElement, TuiSourceElementPtr): Ditto.
13070 (TuiDataElement, TuiDataElementPtr): Ditto.
13071 (TuiWinElement, TuiWinElementPtr): Ditto.
13072 (TuiDataInfo, TuiDataInfoPtr): Ditto.
13073 (TuiCommandElement, TuiCommandElementPtr): Ditto.
13074 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
13075 (TuiWhichElement, TuiWhichElementPtr): Ditto.
13076 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
13077 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
13078 * tui/tui-command.c, tui/tui-data.c: Update references.
13079 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
13080 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
13081 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
13082 * tui/tui-winsource.c, tui/tui.c: Ditto.
13083
13084 2004-02-07 Mark Kettenis <kettenis@gnu.org>
13085
13086 * dwarf2-frame.h: Update copyright.
13087 (enum dwarf2_frame_reg_rule): New.
13088 (struct dwarf2_frame_state_reg): New.
13089 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
13090 * dwarf2-frame.c: Update copyright.
13091 (enum dwarf2_reg_rule): Remove.
13092 (struct dwarf2_frame_state): Remove defenition of `struct
13093 dwarf2_frame_state_reg'.
13094 (read_reg): Call get_frame_arch to get the architecture instead of
13095 using CURRENT_GDBARCH.
13096 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
13097 DWARF2_FRAME_.
13098 (dwarf2_frame_init_reg): New function.
13099 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
13100 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
13101 initialize the register state. Prefix old `enum dwarf2_reg_rule'
13102 tags with DWARF2_FRAME_.
13103 (dwarf2_frame_prev_register): Call get_frame_arch to get the
13104 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
13105 dwarf2_reg_rule' tags with DWARF2_FRAME_.
13106
13107 2004-02-06 Andrew Cagney <cagney@redhat.com>
13108
13109 * tui/tui-data.h (struct tui_list): Rename _TuiList.
13110 (enum tui_data_type): Rename _TuiDataType.
13111 (struct tui_layout_def): Rename _TuiLayoutDef.
13112 (struct tui_source_element): Rename _TuiSourceElement.
13113 (struct tui_data_element): Rename _TuiDataElement.
13114 (struct tui_command_element): Rename _TuiCommandElement.
13115 (struct tui_locator_element): Rename _TuiLocatorElement.
13116 (union tui_which_element): Define.
13117 (struct tui_win_element): Rename _TuiWinElement.
13118 (struct tui_data_info): Rename _TuiDataInfo.
13119 (struct tui_source_info): Rename _TuiSourceInfo.
13120 (struct tui_command_info): Rename _TuiCommandInfo.
13121 (tui_initialize_static_data): Rename initializeStaticData.
13122 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
13123 (tui_alloc_win_info): Rename allocWinInfo.
13124 (tui_init_generic_part): Rename initGenericPart.
13125 (tui_init_win_info): Rename initWinInfo.
13126 (tui_alloc_content): Rename allocContent.
13127 (tui_add_content_elements): Rename addContentElements.
13128 (tui_init_content_element): Rename initContentElement.
13129 (tui_free_window): Rename freeWindow.
13130 (tui_free_win_content): Rename freeWinContent.
13131 (tui_free_data_content): Rename freeDataContent.
13132 (tui_free_all_source_wins_content): Rename
13133 freeAllSourceWinsContent.
13134 (tui_del_window): Rename tuiDelWindow.
13135 (tui_del_data_windows): Rename tuiDelDataWindows.
13136 (tui_partial_win_by_name): Rename partialWinByName.
13137 (tui_win_name): Rename winName.
13138 (tui_current_layout): Rename currentLayout.
13139 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
13140 (tui_term_height): Rename termHeight.
13141 (tui_set_term_height_to): Rename setTermHeightTo.
13142 (tui_term_width): Rename termWidth.
13143 (tui_set_term_width_to): Rename setTermWidthTo.
13144 (tui_set_gen_win_origin): Rename setGenWinOrigin.
13145 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
13146 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
13147 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
13148 (tui_source_windows): Rename sourceWindows.
13149 (tui_clear_source_windows): Rename clearSourceWindows.
13150 (tui_clear_source_windows_detail): Rename
13151 clearSourceWindowsDetail.
13152 (tui_clear_win_detail): Rename clearWinDetail.
13153 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
13154 (tui_default_tab_len): Rename tuiDefaultTabLen.
13155 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
13156 (tui_win_with_focus): Rename tuiWinWithFocus.
13157 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
13158 (tui_layout_def): Rename tuiLayoutDef.
13159 (tui_win_resized): Rename tuiWinResized.
13160 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
13161 (tui_next_win): Rename tuiNextWin.
13162 (tui_prev_win): Rename tuiPrevWin.
13163 (tui_add_to_source_windows): Rename addToSourceWindows.
13164 * tui/tui-winsource.c, tui/tui-win.c: Update references.
13165 * tui/tui-layout.c, tui/tui-source.c: Ditto.
13166 * tui/tui-stack.c, tui/tui-io.c: Ditto.
13167 * tui/tui.c, tui/tui-data.c: Ditto.
13168 * tui/tui-interp.c, tui/tui-data.c: Ditto.
13169 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
13170
13171 * tui/tui-source.h: Update copyright. Include "tui-data.h".
13172 (struct symtab): Declare.
13173 (tui_set_source_content): Rename tuiSetSourceContent.
13174 (tui_show_symtab_source): Rename tuiShowSource.
13175 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
13176 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
13177 * tui/tui-source.c: Update copyright. Update references.
13178 * tui/tui-win.c, tui/tui-winsource.c: Update references.
13179 * tui/tui-stack.c: Update references.
13180
13181 * tui/tui-win.h: Update copyright. Include "tui-data.h".
13182 (struct tui_win_info): Declare.
13183 (tui_scroll_forward): Rename tuiScrollForward.
13184 (tui_scroll_backward): Rename tuiScrollBackward.
13185 (tui_scroll_left): Rename tuiScrollLeft.
13186 (tui_scroll_right): Rename tuiScrollRight.
13187 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
13188 (tui_resize_all): Rename tuiResizeAll.
13189 (tui_refresh_all_win): Rename tuiRefreshAll.
13190 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
13191 * tui/tui-layout.c, * tui/tui-io.c: Update references.
13192 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
13193 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
13194
13195 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
13196 (tui_erase_data_content): Rename tuiEraseDataContent.
13197 (tui_display_all_data): Rename tuiDisplayAllData.
13198 (tui_check_data_values): Rename tuiCheckDataValues.
13199 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
13200 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
13201 (tui_first_data_element_no_in_line): Rename
13202 tuiFirstDataElementNoInLine.
13203 (tui_delete_data_content_windows): Rename
13204 tuiDeleteDataContentWindows.
13205 (tui_refresh_data_win): Rename tuiRefreshDataWin.
13206 (tui_display_data_from): Rename tuiDisplayDataFrom.
13207 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
13208 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
13209 * tui/tui-win.c, tui/tui-regs.c: Update references.
13210 * tui/tui-layout.c, tui/tui.c: Update references.
13211
13212 * tui/tui-wingeneral.h: Update copyright.
13213 (m_allBeVisible): Delete macro.
13214 (m_allBeInvisible): Delete macro.
13215 (struct tui_gen_win_info): Declare.
13216 (struct tui_win_info): Declare.
13217 (tui_unhighlight_win): Rename unhighlightWin.
13218 (tui_make_visible, tui_make_invisible): Replace makeVisible.
13219 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
13220 (tui_make_window): Rename makeWindow.
13221 (tui_copy_win): Rename copyWin.
13222 (tui_box_win): Rename boxWin.
13223 (tui_highlight_win): Rename highlightWin.
13224 (tui_check_and_display_highlight_if_needed): Rename
13225 checkAndDisplayHighlightIfNeeded.
13226 (tui_refresh_all): Rename refreshAll.
13227 (tui_delete_win): Rename tuiDelwin.
13228 (tui_refresh_win): Rename tuiRefreshWin.
13229 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
13230 (tui_make_visible, tui_make_invisible): New functions.
13231 (tui_make_all_visible, tui_make_all_invisible): New functions.
13232 (make_all_visible): Rename makeAllVisible.
13233 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
13234 * tui/tui-data.c, tui/tui-winsource.c: Update references.
13235 * tui/tui-windata.c, tui/tui-win.c: Update references.
13236 * tui/tui-regs.c, tui/tui-layout.c: Update references.
13237 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
13238
13239 2004-02-06 Mark Kettenis <kettenis@gnu.org>
13240
13241 * proc-api.c (write_with_trace): Initialize local variable to
13242 silence compiler warning.
13243
13244 2004-02-06 Andrew Cagney <cagney@redhat.com>
13245
13246 * tui/tui-source.h: Do not include "defs.h".
13247 (struct tui_win_info): Declare.
13248 (tui_set_source_content_nil): Declare.
13249 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
13250 (union tui_line_or_address): Rename _TuiLineOrAddress.
13251 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
13252 (tui_update_source_window): Rename tuiUpdateSourceWindow.
13253 (tui_update_source_window_as_is): Rename
13254 tuiUpdateSourceWindowAsIs.
13255 (tui_update_source_windows_with_addr): Rename
13256 tuiUpdateSourceWindowsWithAddr.
13257 (tui_update_source_windows_with_line): Rename
13258 tuiUpdateSourceWindowsWithLine.
13259 (tui_clear_source_content): Rename tuiClearSourceContent.
13260 (tui_erase_source_content): Rename tuiEraseSourceContent.
13261 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
13262 (tui_show_source_content): Rename tuiShowSourceContent.
13263 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
13264 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
13265 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
13266 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
13267 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
13268 (tui_update_exec_info): Rename tuiUpdateExecInfo.
13269 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
13270 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
13271 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
13272 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
13273 (struct tui_win_info): Declare.
13274 * tui/tui-stack.c: Update references.
13275 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
13276 * tui/tui-win.c, tui/tui-source.c: Ditto.
13277 * tui/tui.c, tui/tui-disasm.c: Ditto.
13278
13279 2004-02-06 Mark Kettenis <kettenis@gnu.org>
13280
13281 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
13282 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
13283
13284 2004-02-05 Mark Kettenis <kettenis@gnu.org>
13285
13286 * infrun.c (handle_inferior_event): Allow for breakpoint
13287 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
13288 and SIGEMT. Update comments.
13289 * NEWS (Revised SPARC target): Mention support for non-executable
13290 stack.
13291
13292 2004-02-04 Mark Kettenis <kettenis@gnu.org>
13293
13294 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
13295 * inftarg.c: Update copyright year.
13296 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
13297 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
13298 (sparc_xfer_wcookie): New function.
13299 * sparc-tdep.c (sparc_fetch_wcookie): New function.
13300 * Makefile.in (sparc-nat.o): Update dependencies.
13301 * config/sparc/nm-nbsd.h: Include "target.h".
13302 (NATIVE_XFER_WCOOKIE): New define.
13303 (sparc_xfer_wcookie): New prototype.
13304
13305 2004-02-04 Andrew Cagney <cagney@redhat.com>
13306
13307 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
13308 SYSCALL_TRAP function.
13309 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
13310
13311 2004-02-04 Andrew Cagney <cagney@redhat.com>
13312 Daniel Jacobowitz <drow@mvista.com>
13313
13314 * objfiles.h: Delete comments refering to inside_entry_func and
13315 DEPRECATED_FRAME_CHAIN_VALID.
13316 * defs.h (inside_entry_func): Update prototype..
13317 * blockframe.c (inside_entry_func): Rename to
13318 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
13319 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
13320
13321 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
13322
13323 * breakpoint.c (struct captured_parse_breakpoint_args): Move
13324 outside of #ifdef SOLIB_ADD region.
13325 (do_restore_lang_radix_cleanup): Ditto.
13326 (resolve_pending_breakpoint): Ditto.
13327
13328 2004-02-03 Andrew Cagney <cagney@redhat.com>
13329
13330 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
13331 (process_note_abi_tag_sections): Delete unused function.
13332 (ia64_read_fp): Delete unused function.
13333 (gdbarch_extract_struct_value_address): Delete declaration.
13334
13335 2004-02-02 Andrew Cagney <cagney@redhat.com>
13336
13337 * vax-tdep.c (vax_frame_chain): Delete call to
13338 deprecated_inside_entry_file.
13339 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
13340
13341 2004-02-02 Mark Kettenis <kettenis@gnu.org>
13342
13343 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
13344 column that's "empty" or "same value" when eliminating REG_RA
13345 rules.
13346
13347 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
13348
13349 * NEWS: Add information about new pending breakpoint support.
13350
13351 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
13352
13353 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
13354 and pending fields for pending breakpoint support.
13355 * breakpoint.c (breakpoint_enabled): Add check for not pending.
13356 (condition_command): Only parse condition if not a pending
13357 breakpoint.
13358 (print_one_breakpoint): Add support for pending breakpoints.
13359 (describe_other_breakpoints): Add checks to verify we are not
13360 dealing with pending breakpoints.
13361 (check_duplicates): Don't check pending breakpoints.
13362 (set_raw_breakpoint): Initialize pending flag.
13363 (do_restore_lang_radix_cleanup): New cleanup routine.
13364 (resolve_pending_breakpoint): New function.
13365 (re_enable_breakpoints_in_shlibs): Try and resolve any
13366 pending breakpoints via resolve_pending_breakpoint.
13367 (mention): Add pending breakpoint support.
13368 (parse_breakpoint_sals): Add new parameter to pass to
13369 decode_line_1 to indicate silent errors when files or functions
13370 are not found. Change all callers.
13371 (do_captured_parse_breakpoint): New function.
13372 (break_command_1): Change prototype to return an rc value and to
13373 take an optional pending breakpoint pointer. Support creating
13374 a pending breakpoint if a "not found" form of error occurs when
13375 parsing the breakpoint. Also support resolving an existing pending
13376 breakpoint and be silent if the resolution fails.
13377 (create_breakpoints): Change prototype to take pending breakpoint
13378 pointer. When resolving a pending breakpoint, use the new pointer
13379 to provide a conditional or commands added by the end-user.
13380 (delete_breakpoint): Add appropriate check for pending.
13381 (breakpoint_re_set_one): Ditto.
13382 (do_enable_breakpoint): Ditto.
13383
13384 2004-02-02 David Carlton <carlton@kealia.com>
13385
13386 * valops.c (enum oload_classification): New.
13387 (find_overload_match): Break implementation into separate
13388 functions; delete #if 0'd code; look for symbols within
13389 namespaces.
13390 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
13391 (find_oload_champ,oload_method_static,classify_oload_match): New.
13392 * cp-support.h: Add declaration for cp_func_name; update
13393 declaration for make_symbol_overload_list.
13394 * cp-support.c (cp_func_name): New.
13395 (overload_list_add_symbol): Fix comment, use
13396 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
13397 (make_symbol_overload_list): Take a function name and a namespace
13398 instead of a symbol; change implementation.
13399 (make_symbol_overload_list_using): New.
13400 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
13401
13402 2004-02-02 Fred Fish <fnf@redhat.com>
13403
13404 * main.c (gdb_stdtarg): Move definition to group with other
13405 gdb_stdtarg definitions and update copyright years.
13406 * remote-sim.c (gdb_os_write_stderr): Write output to
13407 gdb_stdtargerr stream instead of gdb_stdtarg stream.
13408 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
13409 gdb_stderr stream and update copyright years.
13410
13411 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13412
13413 * Makefile.in (mips-linux-nat.o): Update dependencies.
13414 * mips-linux-nat.c: Include mips-tdep.h.
13415
13416 2004-02-01 Roland McGrath <roland@redhat.com>
13417
13418 * sol-thread.c (sol_thread_xfer_partial): New function.
13419 (init_sol_thread_ops): Use that for to_xfer_partial hook.
13420 (init_sol_core_ops): Likewise.
13421
13422 * procfs.c (procfs_xfer_partial): New function.
13423 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
13424 * Makefile.in (procfs.o): Add $(auxv_h) dep.
13425
13426 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
13427 procfs_xfer_auxv function.
13428
13429 * procfs.c (procfs_make_note_section): If we can read
13430 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
13431 * linux-proc.c (linux_make_note_section): Likewise.
13432
13433 * auxv.h: New file.
13434 * auxv.c: New file.
13435 * Makefile.in (auxv_h): New variable.
13436 (COMMON_OBS): Add auxv.o here.
13437 (auxv.o): New target.
13438
13439 * corelow.c (core_xfer_partial): New function.
13440 (init_core_ops): Use it for core_ops.to_xfer_partial.
13441
13442 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
13443 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
13444 macro if that is defined.
13445
13446 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13447
13448 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
13449 and check the specified thread for each breakpoint.
13450 * breakpoint.h (bpstat_stop_status): Update prototype.
13451 * infrun.c (handle_inferior_event): Update calls to
13452 bpstat_stop_status.
13453
13454 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13455
13456 * Makefile.in (cli-cmds.o): Add $(readline_h).
13457
13458 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13459
13460 * cli/cli-cmds.c: Include readline.h.
13461 (complete_command): Pass the start of the last word to
13462 complete_line.
13463
13464 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13465
13466 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
13467 argument, and change first argument to a CORE_ADDR.
13468 * breakpoint.h (bpstat_stop_status): Update prototype.
13469 * infrun.c (adjust_pc_after_break): Add a new comment.
13470 (handle_inferior_event): Update calls to bpstat_stop_status.
13471
13472 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13473
13474 * breakpoint.h: Update copyright years.
13475
13476 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13477
13478 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
13479 (bpstat_stop_status): Don't decrement PC.
13480 * breakpoint.h (software_breakpoint_inserted_here_p): Add
13481 prototype.
13482 * infrun.c (adjust_pc_after_break): New function.
13483 (handle_inferior_event): Call it, early. Remove later references
13484 to DECR_PC_AFTER_BREAK.
13485 (normal_stop): Add commentary.
13486
13487 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13488
13489 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
13490 2004-01-27 double-free fix.
13491
13492 2004-01-31 Mark Kettenis <kettenis@gnu.org>
13493
13494 * sparc-tdep.c (sparc_fetch_wcookie): New function.
13495 (sparc32_frame_prev_register): Handle StackGhost.
13496 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
13497
13498 2004-01-29 Roland McGrath <roland@redhat.com>
13499
13500 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
13501 * configure: Regenerated.
13502
13503 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
13504 * Makefile.in (procfs.o): Add dep.
13505
13506 2004-01-28 Andrew Cagney <cagney@redhat.com>
13507
13508 * tui/tui-stack.h: Update copyright.
13509 (struct frame_info): Add opaque declaration.
13510 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
13511 (tui_show_locator_content): Rename tuiShowLocatorContent.
13512 (tui_show_frame_info): Rename tuiShowFrameInfo.
13513 * tui/tui-stack.c: Update copyright. Update references.
13514 * tui/tui-winsource.c: Update references.
13515 * tui/tui-win.c: Update references.
13516 * tui/tui-layout.c: Update references.
13517 * tui/tui-hooks.c: Update copyright, update references.
13518 * tui/tui.c: Update copyright, update references.
13519 * tui/tui-disasm.c: Update references.
13520
13521 2004-01-28 David Carlton <carlton@kealia.com>
13522
13523 * dwarf2read.c (add_partial_structure): Use demangled name if
13524 namespace equals "".
13525
13526 2004-01-27 Jim Blandy <jimb@redhat.com>
13527
13528 Clean up misapplied patch:
13529 * dwarf2read.c (determine_prefix): Change one of the two forward
13530 declarations for 'determine_prefix_aux' to a declaration for this.
13531 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
13532 argument to 'die_specification'.
13533
13534 * dwarf2read.c (read_func_scope): Re-indent comment.
13535
13536 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
13537
13538 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
13539 b->exp to NULL after freeing so that error during re-parsing or
13540 evaluation of expressions associated with breakpoint don't
13541 eventually lead to re-freeing of storage.
13542 Committed by Andrew Cagney.
13543
13544 2004-01-27 Andrew Cagney <cagney@redhat.com>
13545
13546 * source.c (ambiguous_line_spec): Delete undefined declaration.
13547 * m32r-rom.c (m32r_set_board_address): Delete unused function.
13548 (m32r_set_server_address, m32r_set_download_path): Ditto.
13549 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
13550
13551 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
13552
13553 * dwarf2read.c: Update calls to changed and renamed functions, and
13554 references to moved variables.
13555
13556 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
13557 language, language_defn, list_in_scope, and ftypes members.
13558 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
13559 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
13560 (baseaddr): Remove globals.
13561
13562 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
13563 (set_cu_language, die_is_declaration, die_specification)
13564 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
13565 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
13566 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
13567 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
13568
13569 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
13570 cu.list_in_scope. Don't initialize cu_header_offset.
13571 (add_partial_symbol): Add local baseaddr.
13572 (psymtab_to_symtab_1): Add local baseaddr. Use
13573 objfile->section_offsets for consistency. Don't initialize
13574 cu_header_offset; do initialize cu.header.offset and
13575 cu.list_in_scope.
13576 (read_file_scope, read_func_scope, read_lexical_block_scope)
13577 (dwarf_decode_lines, new_symbol): Add local baseaddr.
13578
13579 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
13580
13581 * PROBLEMS: Add gdb/1516.
13582
13583 2003-12-29 Robert Millan <robertmh@gnu.org>
13584
13585 Patch committed by Andrw Cagney.
13586 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
13587 * configure.tgt: Match knetbsd*-gnu.
13588
13589 2004-01-26 Andrew Cagney <cagney@redhat.com>
13590
13591 * breakpoint.c (catch_command_1): Delete #ifdef code.
13592 (catch_fork_command_1): Delete #ifdef wrapper.
13593 (catch_exec_command_1): Ditto.
13594 (catch_load_command_1): Ditto.
13595 (catch_unload_command_1): Ditto.
13596
13597 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
13598 (catch_breakpoint): Delete #if0ed function.
13599 (disable_catch_breakpoint): Ditto.
13600 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
13601 (disable_catch, enable_catch, delete_catch): Ditto.
13602
13603 2004-01-26 Andrew Cagney <cagney@redhat.com>
13604
13605 * remote.c (echo_check, quit_flag): Delete variables.
13606 (cisco_kernel_mode): Delete variable.
13607 (minitelnet_return, tty_input, escape_count): Delete variables.
13608 (remote_cisco_mode): Delete variable.
13609 (remote_cisco_open, remote_cisco_close): Delete function.
13610 (remote_cisco_mourn, remote_cisco_wait): Delete function.
13611 (init_remote_cisco_ops): Delete function.
13612 (_initialize_remote): Do not install "remote cisco" code.
13613 (read_frame): Delete cisco specific code.
13614 (remote_info_process): Delete function.
13615 (remote_wait): Delete cisco specific code.
13616 (remote_cisco_section_offsets): Delete function.
13617 (remote_cisco_objfile_relocate): Delete function.
13618 (remote_async_wait): Delete cisco specific code.
13619 (minitelnet, readtty, readsocket): Delete function.
13620
13621 2004-01-26 Andrew Cagney <cagney@redhat.com>
13622
13623 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
13624 comments mentioning extract_returned_value_address.
13625 * infcmd.c (print_return_value): Update. Add comments on
13626 extract_returned_value_address.
13627 * stack.c (return_command): Add comments on
13628 extract_returned_value_address.
13629 * values.c: Update comment.
13630 * m32r-tdep.c: Update comment.
13631 * sparc-tdep.c: Update comment.
13632 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
13633 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
13634 * sh64-tdep.c (sh64_gdbarch_init): Update.
13635 * sh-tdep.c (sh_gdbarch_init): Update.
13636 * s390-tdep.c (s390_gdbarch_init): Update.
13637 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
13638 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
13639 * m68k-tdep.c (m68k_gdbarch_init): Update.
13640 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
13641 * m32r-tdep.c (m32r_gdbarch_init): Update.
13642 * ia64-tdep.c (ia64_gdbarch_init): Update.
13643 * h8300-tdep.c (h8300_gdbarch_init): Update.
13644 * frv-tdep.c (frv_gdbarch_init): Update.
13645 * arm-tdep.c (arm_gdbarch_init): Update.
13646 * alpha-tdep.c (alpha_gdbarch_init): Update.
13647
13648 2004-01-26 Andrew Cagney <cagney@redhat.com>
13649
13650 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
13651 SYMBOL_LOCATION_FUNCS
13652 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
13653 "struct symbol_ops".
13654 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
13655 type to "struct symbol_ops".
13656 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
13657 (struct symbol): Replace ".aux_value.loc.funcs" and
13658 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
13659 (SYMBOL_OBJFILE): Delete macro.
13660 (SYMBOL_LOCATION_FUNCS): Delete macro.
13661 (SYMBOL_LOCATION_BATON): Update.
13662 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
13663 intead of SYMBOL_LOCATION_FUNCS.
13664 * ax-gdb.c (gen_var_ref): Ditto.
13665 * printcmd.c (address_info): Ditto.
13666 * findvar.c (read_var_value): Ditto.
13667 (symbol_read_needs_frame): Ditto.
13668
13669 2004-01-26 Andrew Cagney <cagney@redhat.com>
13670
13671 * dwarf2read.c (read_func_scope): Document frame-base hack.
13672
13673 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13674
13675 * infcmd.c (print_return_value): Plug memory leak; delete
13676 ui_stream object. Rename argument `structure_return' to
13677 `struct_return'.
13678
13679 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13680
13681 * infcmd.c (print_return_value): Wrap long lines.
13682 (finish_command_continuation, finish_command): Remove unused
13683 variable `funcaddr'. Fix some coding-standards problems.
13684
13685 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
13686 SECT_SIZE is large enough, not whether it's exactly the right size.
13687 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
13688 TDEP->fpregset to zero.
13689
13690 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
13691 floating-point registers for traditional NetBSD core files.
13692 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
13693 TDEP->sizeof_fpregset here.
13694
13695 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13696
13697 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
13698 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
13699 function with code split out from
13700 sparc32nbsd_sigcontext_frame_cache.
13701 (sparc32nbsd_sigcontext_frame_cache): Use
13702 sparc32nbsd_sigcontext_saved_regs.
13703 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
13704 OpenBSD.
13705 * sparcobsd-tdep.c: New file.
13706 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
13707 (sparcobsd-tdep.o): New dependency.
13708 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
13709 * config/sparc/obsd.mt: New file.
13710
13711 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
13712 TDEP->fpregset to be initialized to enable core file register
13713 sets.
13714
13715 2004-01-24 Mark Kettenis <kettenis@gnu.org>
13716
13717 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
13718 Add opaque declarations.
13719 (sparc64nbsd_sigcontext_saved_regs): New prototype.
13720 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
13721 function with code split out from
13722 sparc64nbsd_sigcontext_frame_cache.
13723 (sparc64nbsd_sigcontext_frame_cache): Use
13724 sparc64nbsd_sigcontext_saved_regs.
13725 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
13726 OpenBSD.
13727 * sparc64obsd-tdep.c: New file.
13728 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
13729 (sparc64obsd-tdep.o): New dependency.
13730 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
13731 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
13732 * config/sparc/obsd64.mt: New file.
13733
13734 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
13735 read the instruction at PC.
13736
13737 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
13738 value of GDB_OSABI_DEFAULT.
13739 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
13740 instead of GDB_OSABI_NETBSD_AOUT.
13741
13742 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
13743
13744 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
13745 copyright.
13746
13747 2004-01-23 Andrew Cagney <cagney@redhat.com>
13748
13749 * printcmd.c (display_command): Replace tui_set_display call with
13750 tui_set_layout_for_display_command.
13751 * tui/tui.h (enum tui_win_type): Define.
13752 (tui_set_layout): Delete declaration.
13753 (tui_set_layout_for_display_command): Rename set_tui_layout.
13754 * tui/tui-data.h (enum tui_layout_type): Define.
13755 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
13756 "tui.h".
13757 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
13758 (tui_default_win_height): Rename tuiDefaultWinHeight.
13759 (tui_default_win_viewport_height): Rename
13760 tuiDefaultWinViewportHeight.
13761 (tui_set_layout): RenametuiSetLayout.
13762 * tui/tui-layout.c: Update references.
13763 * tui/tui.c: Update references.
13764 * tui/tui-disasm.c: Update references.
13765
13766 2004-01-23 David Carlton <carlton@kealia.com>
13767
13768 Partial workaround for PR c++/1511:
13769 * cp-namespace.c: Include frame.h.
13770 (cp_lookup_transparent_type): New
13771 (cp_lookup_transparent_type_loop): New.
13772 * cp-support.h: Declare cp_lookup_transparent_type.
13773 * symtab.c (basic_lookup_transparent_type): Renamed from
13774 lookup_transparent_type.
13775 (lookup_transparent_type): Replace old body by a call to
13776 current_language->la_lookup_transparent_type.
13777 * symtab.h: Update copyright. Declare
13778 basic_lookup_transparent_type.
13779 * language.h: Update copyright.
13780 (struct language_defn): Add la_lookup_transparent_type.
13781 * language.c: Update copyright.
13782 (unknown_language_defn): Add basic_lookup_transparent_type.
13783 (auto_language_defn): Add basic_lookup_transparent_type.
13784 (local_language_defn): Add basic_lookup_transparent_type.
13785 * ada-lang.c: Update copyright.
13786 (ada_language_defn): Add basic_lookup_transparent_type.
13787 * c-lang.c: Update copyright.
13788 (c_language_defn): Add basic_lookup_transparent_type.
13789 (cplus_language_defn): Add basic_lookup_transparent_type.
13790 (asm_language_defn): Add basic_lookup_transparent_type.
13791 (minimal_language_defn): Add basic_lookup_transparent_type.
13792 * f-lang.c: Update copyright.
13793 (f_language_defn): Add basic_lookup_transparent_type.
13794 * jv-lang.c: Update copyright.
13795 (java_language_defn): Add basic_lookup_transparent_type.
13796 * m2-lang.c: Update copyright.
13797 (m2_language_defn): Add basic_lookup_transparent_type.
13798 * objc-lang.c: Update copyright.
13799 (objc_language_defn): Add basic_lookup_transparent_type.
13800 * p-lang.c: Update copyright.
13801 (p_language_defn): Add basic_lookup_transparent_type.
13802 * scm-lang.c: Update copyright.
13803 (scm_language_defn): Add basic_lookup_transparent_type.
13804 * Makefile.in (cp-namespace.o): Depend on frame.h.
13805
13806 2004-01-23 David Carlton <carlton@kealia.com>
13807
13808 Patch for PR c++/1520:
13809 * dwarf2read.c (read_func_scope): Set processing_current_prefix
13810 properly if we have a specification die.
13811 (determine_prefix_aux): Rename from determine_prefix.
13812 (determine_prefix): Like the old determine_prefix, but never
13813 returns NULL.
13814
13815 2004-01-23 Theodore A. Roth <troth@openavr.org>
13816
13817 * avr-tdep.c: Update copyright.
13818 (avr_iaddr_p): Delete unused function.
13819 (avr_saddr_p): Delete unused function.
13820
13821 2004-01-23 David Carlton <carlton@kealia.com>
13822
13823 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
13824 Fix for PR symtab/1534.
13825
13826 2004-01-23 Mark Kettenis <kettenis@gnu.org>
13827
13828 * NEWS (New native configurations): Mention OpenBSD/sparc and
13829 OpenBSD/sparc64.
13830 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
13831 * configure.host: Likewise.
13832 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
13833 handler for OpenBSD.
13834 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
13835
13836 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13837
13838 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
13839 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
13840
13841 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
13842 * cli/cli-cmds.c (shell_escape): Likewise.
13843
13844 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
13845 OpenBSD .note.openbsd.ident sections.
13846
13847 2004-01-22 David Carlton <carlton@kealia.com>
13848
13849 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
13850 get_scope_pc_bounds.
13851 (read_file_scope): Ditto.
13852 (get_scope_pc_bounds): New function, produced by extracting code
13853 from the above two functions, consolidating it, and adding support
13854 for DW_TAG_namespace.
13855
13856 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13857
13858 * osabi.c (MAX_NOTESZ): New define.
13859 (check_note): New function.
13860 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
13861 check_note.
13862
13863 2004-01-21 Roland McGrath <roland@redhat.com>
13864
13865 * MAINTAINERS (write after approval): Add myself.
13866
13867 2004-01-21 Eli Zaretskii <eliz@gnu.org>
13868
13869 * utils.c (init_page_info): Move declarations of `rows' and
13870 `cols' before the __GO32__-specific code. Move the closing brace
13871 outside the #ifdef __GO32__..#endif block.
13872 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
13873
13874 2004-01-21 Paul Brook <paul@codesourcery.com>
13875
13876 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
13877 BPSTAT_WHAT_CHECK_SHLIBS.
13878
13879 2004-01-21 Paul Brook <paul@codesourcery.com>
13880
13881 * MAINTAINERS: Add myself to write-after-approval.
13882
13883 2004-01-20 Andrew Cagney <cagney@redhat.com>
13884
13885 * ax-gdb.c (print_axs_value): Delete unused function.
13886 * jv-lang.c (java_lookup_type): Delete unused function.
13887 * cli/cli-dump.c (dump_filetype): Delete unused function.
13888 * remote-mips.c (remote_mips_insert_hw_breakpoint)
13889 (remote_mips_remove_hw_breakpoint): Delete unused functions.
13890 (mips_getstring): Delete unused function.
13891 (pmon_insert_breakpoint): Delete #if0ed function.
13892 (PMON_MAX_BP): Delete #if0ed MACRO.
13893 (mips_pmon_bp_info): Delete #if0ed variable.
13894 (pmon_remove_breakpoint): Delete #if0ed function.
13895 * monitor.c (monitor_write_even_block): Delete unused function.
13896 (monitor_write_memory_block): Delete #if0ed code.
13897 * dink32-rom.c (dink32_load): Delete unused function.
13898 (_initialize_dink32_rom): Delete #if0ed code.
13899 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
13900
13901 * tui/tui-command.c: Update references.
13902 * tui/tui-io.c: Update references.
13903 * tui/tui-command.h: Update copyright.
13904 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
13905
13906 * source.c (ambiguous_line_spec): Delete never-defined function.
13907 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
13908 * gdbtypes.c (add_name, add_mangled_type): Ditto.
13909 * cli/cli-cmds.c (validate_comname): Ditto.
13910
13911 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
13912 "tui-data.h".
13913 (tui_set_disassem_content): Rename tuiSetDisassemContent.
13914 (tui_show_disassem): Rename tuiShowDisassem.
13915 (tui_show_disassem_and_update_source): Rename
13916 tuiVerticalDisassemScroll.
13917 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
13918 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
13919 * tui/tui.h: Update copyright.
13920 (enum tui_status): Define.
13921 * tui/tui-data.h (enum tui_scroll_direction): Define.
13922 * tui/tui-disasm.c: Update copyright. Update references.
13923 * tui/tui-winsource.c: Update copyright. Update references.
13924 * tui/tui-win.c: Update references.
13925 * tui/tui-layout.c: Update references.
13926
13927 2004-01-20 Andrew Cagney <cagney@redhat.com>
13928
13929 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
13930 sym2 to start of block.
13931
13932 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
13933
13934 * MAINTAINERS: Delete mmalloc.
13935 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
13936 * NEWS: Mention removal of --with-malloc.
13937 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
13938 * config.in: Regenerate.
13939 * configure: Regenerate.
13940 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
13941 USE_MMALLOC, MMCHECK_FORCE.
13942 * gdbinit.in: Remove mmalloc.
13943 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
13944 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
13945 * config/i386/go32.mh: Likewise.
13946 * config/i386/interix.mh: Likewise.
13947 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
13948
13949 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
13950
13951 * linespec.c (decode_variable, symtab_from_filename): Call
13952 error_silent with error message instead of throwing an exception
13953 directly.
13954 * defs.h (error_silent, error_output_message): Add prototypes.
13955 (catch_exceptions_with_msg): Ditto.
13956 * utils.c (error_silent, error_output_message): New functions.
13957 * top.c (catch_exceptions_with_msg): New function.
13958
13959 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
13960
13961 * mi/mi-cmds.h (enum print_values): Add definition.
13962
13963 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
13964 type and value for simple data types and just the name and type
13965 for complex ones, if required.
13966
13967 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
13968 children, if required.
13969
13970 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13971
13972 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
13973 unused declarations.
13974
13975 2004-01-19 Andrew Cagney <cagney@redhat.com>
13976
13977 * top.h (mapped_symbol_files): Delete declaration.
13978 * main.c (captured_main): Delete option "m" and "mapped".
13979 * objfiles.c (mapped_symbol_files): Delete variable.
13980 * symfile.c (symbol_file_command): Delete mmap code.
13981 (symbol_file_add_with_addrs_or_offsets): Ditto.
13982 (add_symbol_file_command, reread_separate_symbols): Ditto.
13983 * objfiles.h (OBJF_MAPPED): Delete.
13984 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
13985 (free_objfile) [USE_MMALLOC]: Ditto.
13986 (open_existing_mapped_file): Delete function.
13987 (open_mapped_file): Delete function.
13988 (map_to_file): Delete function.
13989
13990 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13991
13992 * infrun.c (step_into_function): Account for possible breakpoint
13993 adjustment when computing ``stop_func_start''.
13994
13995 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13996
13997 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
13998 the region size against the size of a pointer, not the size of
13999 a register as given by DEPRECATED_REGISTER_SIZE.
14000
14001 2004-01-19 Andrew Cagney <cagney@redhat.com>
14002
14003 * tui/tui-regs.h: Include "tui-data.h".
14004 (tuiFirstRegElementNoInLine): Delete declaration.
14005 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
14006 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
14007 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
14008 (tui_calculate_regs_column_count): Rename
14009 tuiCalculateRegsColumnCount.
14010 (tui_check_register_values): Rename tuiCheckRegisterValues.
14011 (tui_show_registers): Rename tuiShowRegisters.
14012 (tui_display_registers_from_line): Rename
14013 tuiDisplayRegistersFromLine.
14014 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
14015 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
14016 (tui_first_reg_element_no_inline): Rename
14017 tuiFirstRegElementNoInLine.
14018 * tui/tui-data.h: Update copyright.
14019 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
14020 * tui/tui-windata.c: Update copyright, update references.
14021 * tui/tui-regs.c: Update copyright, update references.
14022 * tui/tui-win.c: Update copyright, update references.
14023 * tui/tui-layout.c: Update copyright, update references.
14024
14025 2004-01-18 Andrew Cagney <cagney@redhat.com>
14026
14027 * tui/tui-io.c: Update copyright.
14028 (key_is_end_sequence, key_is_backspace): New functions.
14029 (key_is_command_char, key_is_start_sequence): New function.
14030 (tui_getc): Update references.
14031 * tui/tui-io.h: Update copyright.
14032 (m_tuiStartNewLine): Delete macro.
14033 (m_isBackspace, m_isDeleteChar): Delete macros.
14034 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
14035 (m_isNextPage, m_isPrevPage): Delete macros.
14036 (m_isLeftArrow, m_isRightArrow): Delete macros.
14037 (m_isXdbStyleCommandChar): Delete macro.
14038 (key_is_start_sequence): Declare, replace m_isStartSequence.
14039 (key_is_end_sequence): Declare, replace m_isEndSequence.
14040 (key_is_backspace): Declare ,replace m_isBackspace.
14041 (key_is_command_char): Declare, replace m_isCommandChar.
14042 * tui/tui-command.c: Update copyright.
14043 (tuiDispatchCtrlChar): Update references.
14044
14045 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
14046 tuiSourceWin.h.
14047
14048 * tui/tui-command.c: Rename tui/tuiCommand.c.
14049 * tui/tui-command.h: Rename tui/tuiCommand.h.
14050 * tui/tui-data.c: Rename tui/tuiData.c.
14051 * tui/tui-data.h: Rename tui/tuiData.h.
14052 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
14053 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
14054 * tui/tui-io.c: Rename tui/tuiIO.c.
14055 * tui/tui-io.h: Rename tui/tuiIO.h.
14056 * tui/tui-layout.c: Rename tui/tuiLayout.c.
14057 * tui/tui-layout.h: Rename tui/tuiLayout.h.
14058 * tui/tui-regs.c: Rename tui/tuiRegs.c.
14059 * tui/tui-regs.h: Rename tui/tuiRegs.h.
14060 * tui/tui-source.c: Rename tui/tuiSource.c.
14061 * tui/tui-source.h: Rename tui/tuiSource.h.
14062 * tui/tui-stack.c: Rename tui/tuiStack.c.
14063 * tui/tui-stack.h: Rename tui/tuiStack.h.
14064 * tui/tui-win.c: Rename tui/tuiWin.c.
14065 * tui/tui-win.h: Rename tui/tuiWin.h.
14066 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
14067 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
14068 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
14069 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
14070 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
14071 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
14072 * tui/tui-file.c: Update includes.
14073 * tui/tui-hooks.c: Update includes.
14074 * tui/tui-interp.c: Update includes.
14075 * tui/tui.c: Update includes.
14076 * Makefile.in: Update all tui/ dependencies.
14077 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
14078
14079 * Makefile.in: Update copyright. Update dependencies.
14080
14081 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
14082 problem.
14083
14084 2004-01-18 Andrew Cagney <cagney@redhat.com>
14085
14086 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
14087 instead of register_gdbarch_init.
14088
14089 * remote-sds.c (tohex): Delete unused function. Update copyright.
14090 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
14091 * v850-tdep.c (v850_register_virtual_size): Ditto.
14092 * target.c (normal_target_post_startup_inferior): Ditto.
14093 * source.c (ambiguous_line_spec): Ditto.
14094 * remote.c (adapt_remote_get_threadinfo): Ditto.
14095 * mi/mi-out.c (out_field_fmt): Ditto.
14096 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
14097 (output_control_change_notification): Ditto.
14098 * m68k-tdep.c (m68k_register_byte): Ditto.
14099 (m68k_remote_breakpoint_from_pc): Ditto.
14100 * ui-out.c (init_ui_out_state): Delete unused declaration.
14101 * stabsread.c (search_value): Ditto.
14102 * mi/mi-cmd-env.c (env_cli_command): Ditto.
14103 * maint.c (print_section_table): Ditto.
14104 * infrun.c (set_follow_fork_mode_command): Ditto.
14105
14106 2004-01-18 Mark Kettenis <kettenis@gnu.org>
14107
14108 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
14109 DW_CFA_def_cfa_exporession. Add support for
14110 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
14111 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
14112
14113 2004-01-18 Andrew Cagney <cagney@redhat.com>
14114
14115 * ocd.c: Update copyright.
14116 (bdm_read_register_command): Delete unused function.
14117 (_initialize_remote_ocd): Delete commented out reference.
14118 (get_quoted_char, reset_packet): Delete #if0ed function.
14119 (output_packet, put_quoted_char): Delete #if0ed function.
14120 (stu_put_packet, stu_get_packet): Delete #if0ed function.
14121 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
14122 (BDM_BREAKPOINT): Delete #if0ed macro.
14123 (remote_timeout): Delete #if0ed variable.
14124
14125 2004-01-18 Mark Kettenis <kettenis@gnu.org>
14126
14127 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
14128 (core-sol2.o): Remove dependency.
14129 * core-sol2.c: Remove file.
14130
14131 2004-01-17 Andrew Cagney <cagney@redhat.com>
14132
14133 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
14134 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
14135 enums.
14136
14137 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14138
14139 * remote.c: Update copyright years.
14140
14141 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14142
14143 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
14144
14145 2004-01-17 Andrew Cagney <cagney@redhat.com>
14146
14147 * mdebugread.c: Update copyright.
14148 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
14149 (parse_type, parse_procedure): Ditto.
14150 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
14151
14152 * cris-tdep.c (cris_store_struct_return): Put back accidently
14153 deleted function.
14154
14155 * gdbarch.sh: Update copyright year.
14156 * gdbarch.h, gdbarch.c: Re-generate.
14157
14158 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14159
14160 Suggested by George Anzinger.
14161 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
14162 correct stack offset. Include unknown opcode numbers in the error
14163 message.
14164
14165 2004-01-17 Andrew Cagney <cagney@redhat.com>
14166
14167 * x86-64-tdep.c (x86_64_init_abi): No need to clear
14168 extract_struct_value_address, i386 does not set it.
14169 * sparc64-tdep.c (sparc64_init_abi): Do not set
14170 extract_struct_value_address, never called.
14171 (sparc64_extract_struct_value_address): Delete function.
14172 * m68hc11-tdep.c: Update copyright.
14173 (m68hc11_gdbarch_init): Delete redundant assignment of
14174 extract_struct_value_address.
14175 * i386-tdep.c: Update copyright.
14176 (i386_gdbarch_init): Do not set extract_struct_value_address,
14177 never called.
14178 (i386_extract_struct_value_address): Delete function.
14179 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
14180 extract_struct_value_address, never called.
14181 (sparc32_extract_struct_value_address): #if 0 function. Add
14182 comments explaining its future.
14183
14184 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14185
14186 * arm-tdep.c (arm_write_pc): New function.
14187 (arm_gdbarch_init): Call set_gdbarch_write_pc.
14188
14189 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14190
14191 * breakpoint.c (must_shift_inst_regs): Delete.
14192 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
14193 and SHIFT_INST_REGS.
14194 * infcmd.c (step_1, step_1_continuation): Delete references to
14195 SHIFT_INST_REGS.
14196 * infrun.c (keep_going): Likewise.
14197 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
14198 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
14199
14200 2004-01-17 Andrew Cagney <cagney@redhat.com>
14201
14202 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
14203 * gdbarch.h, gdbarch.c: Re-generate.
14204 * infcmd.c (print_return_value): Delete reference to
14205 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
14206
14207 * cris-tdep.c (cris_gdbarch_init): Do not set
14208 deprecated_extract_struct_value_address.
14209
14210 * xstormy16-tdep.c: Update copyright.
14211 (xstormy16_extract_struct_value_address): Update to current
14212 extract struct value address interface.
14213 (xstormy16_gdbarch_init): Set extract_struct_value_address.
14214 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
14215 current extract struct value address interface.
14216 (sh64_gdbarch_init): Set extract_struct_value_address.
14217
14218 * cris-tdep.c: Update copyright.
14219 (cris_extract_struct_value_address): Delete function.
14220 (struct_return_address): Delete variable.
14221 (cris_store_struct_return): Do not set struct_return_address.
14222
14223 * mcore-tdep.c: Update copyright.
14224 (mcore_extract_struct_value_address): Delete function. Update
14225 comments.
14226 (mcore_gdbarch_init): Update.
14227 * mn10300-tdep.c: Update copyright.
14228 (mn10300_extract_struct_value_address): Delete function.
14229 (mn10300_gdbarch_init): Update.
14230 * v850-tdep.c: Update copyright.
14231 (v850_extract_struct_value_address): Delete.
14232 (v850_gdbarch_init): Update.
14233 * ns32k-tdep.c: Update copyright.
14234 (ns32k_extract_struct_value_address): Delete.
14235 (ns32k_gdbarch_init): Update.
14236 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
14237 (hppa_gdbarch_init): Update.
14238 * vax-tdep.c: Update copyright.
14239 (vax_extract_struct_value_address): Delete.
14240 (vax_gdbarch_init): Update.
14241
14242 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
14243 * gdbarch.h, gdbarch.c: Re-generate.
14244 * procfs.c (procfs_fetch_registers): Delete reference to
14245 DEPRECATED_NPC_REGNUM.
14246 (procfs_store_registers): Ditto.
14247 * regcache.c (generic_target_write_pc): Simplify.
14248 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
14249
14250 * core-sol2.c (fetch_core_registers): Replace
14251 DEPRECATED_NPC_REGNUM with equivalent tdep value.
14252
14253 * hppa-tdep.c: Update copyright year.
14254 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
14255 NPC_REGNUM.
14256 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
14257
14258 * mips-tdep.c (mips_write_pc): New function.
14259 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
14260 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
14261 (mips_find_saved_regs, mips_software_single_step: Ditto.
14262 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
14263 mips_init_extra_frame_info, mips_pop_frame): Ditto.
14264
14265 2004-01-17 Andrew Cagney <cagney@redhat.com>
14266
14267 * mips-tdep.c: Re-indent. Group functions by ABI.
14268
14269 2004-01-17 Andrew Cagney <cagney@redhat.com>
14270
14271 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
14272 * gdbarch.c: Re-generate.
14273 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
14274 DECR_PC_AFTER_BREAK to zero.
14275 * vax-tdep.c (vax_gdbarch_init): Ditto.
14276 * v850-tdep.c (v850_gdbarch_init): Ditto.
14277 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
14278 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
14279 * sh-tdep.c (sh_gdbarch_init): Ditto.
14280 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
14281 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
14282 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
14283 * mips-tdep.c (mips_gdbarch_init): Ditto.
14284 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
14285 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14286 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
14287 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
14288 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
14289 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
14290 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
14291 * frv-tdep.c (frv_gdbarch_init): Ditto.
14292 * cris-tdep.c (cris_gdbarch_init): Ditto.
14293 * avr-tdep.c (avr_gdbarch_init): Ditto.
14294 * arm-tdep.c (arm_gdbarch_init): Ditto.
14295 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
14296
14297 2004-01-17 J. Brobecker <brobecker@gnat.com>
14298
14299 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
14300 Delete, no longer used.
14301 (read_subrange_type): New function, mostly extracted from
14302 read_array_type().
14303 (read_array_type): Replace extracted code by call to
14304 read_subrange_type().
14305 (dwarf2_get_attr_constant_value): New function.
14306 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
14307 (add_partial_symbol): Likewise.
14308 (process_die): Likewise.
14309 (new_symbol): Likewise.
14310 (read_type_die): Likewise.
14311
14312 2004-01-16 Andrew Cagney <cagney@redhat.com>
14313
14314 * symfile.c: Update copyright year.
14315 (compare_symbols): Delete unused function.
14316 * stabsread.c: Update copyright year.
14317 (lrs_general_complaint): Delete unused function.
14318 (ref_search_value): Ditto.
14319 (get_substring): Delete declaration.
14320 * sh64-tdep.c: Update copyright year.
14321 (sh64_get_gdb_regnum): Delete unused function.
14322 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
14323 Delete unused function.
14324
14325 2004-01-17 Mark Kettenis <kettenis@gnu.org>
14326
14327 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
14328 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
14329
14330 2004-01-16 Andrew Cagney <cagney@redhat.com>
14331
14332 Changes from Peter Schauer.
14333 * rs6000-tdep.c: Update copyright year.
14334 (rs6000_push_dummy_call): Update the stack pointer before
14335 accessing the corresponding stack region.
14336 * rs6000-nat.c: Update copyright year.
14337 (set_host_arch): Set "info.abfd" to "exec_bfd".
14338
14339 2004-01-15 Mark Kettenis <kettenis@gnu.org>
14340
14341 * blockframe.c: Update copyright year.
14342 (inside_entry_func): Don't treat a zero PC specially.
14343
14344 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
14345
14346 * gcore.c (gcore_copy_callback): Use paddr_d to print size
14347 variable.
14348 (gcore_create_callback): Ditto. Skip any memory segment that has
14349 no permissions set.
14350
14351 2004-01-14 David Carlton <carlton@kealia.com>
14352
14353 Change symbols for C++ nested types to contain the fully qualified
14354 name, if possible. (At least in the DWARF-2 case.) Partial fix
14355 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
14356 c++/895.
14357 * c-exp.y (qualified_type): Handle types nested within classes.
14358 * cp-namespace.c: Update comments.
14359 (cp_set_block_scope): Delete #if 0.
14360 (cp_lookup_nested_type): Handle types nested within classes.
14361 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
14362 when appropriate.
14363 (add_partial_symbol): Add the name of the enclosing namespace to
14364 types.
14365 (pdi_needs_namespace): New.
14366 (add_partial_namespace): Tweak comment.
14367 (add_partial_structure): New.
14368 (psymtab_to_symtab_1): Initialize processing_current_prefix
14369 here...
14370 (process_die): instead of here.
14371 (read_structure_scope): Try to figure out the name of the class or
14372 namespace that the structure might be defined within.
14373 (read_enumeration): Generate fully-qualified names, if possible.
14374 (read_namespace): Don't set name to NULL.
14375 (die_specification): New.
14376 (new_symbol): Generate fully-qualified names for types.
14377 (read_type_die): Determine appropriate prefix.
14378 (determine_prefix): New.
14379 (typename_concat): New.
14380 (class_name): New.
14381 * valops.c (value_aggregate_elt): Pass NOSIDE to
14382 value_struct_elt_for_reference.
14383 (value_struct_elt_for_reference): Make static, add NOSIDE
14384 parameter, call value_maybe_namespace_elt as a last resort.
14385 (value_namespace_elt): Break out code into
14386 value_maybe_namespace_elt.
14387 (value_maybe_namespace_elt): New.
14388
14389 2004-01-12 Andrew Cagney <cagney@redhat.com>
14390
14391 * mips-tdep.c (mips_convert_register_p): Handle both raw and
14392 cooked floating-point registers.
14393 (mips_gdbarch_init): Set convert_register_p, register_to_value,
14394 and value_to_register.
14395
14396 2004-01-13 Andrew Cagney <cagney@redhat.com>
14397
14398 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
14399 * gdbarch.c: Re-generate.
14400 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
14401 FUNCTION_START_OFFSET.
14402 * v850-tdep.c (v850_gdbarch_init): Ditto.
14403 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
14404 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
14405 * sh-tdep.c (sh_gdbarch_init): Ditto.
14406 * s390-tdep.c (s390_gdbarch_init): Ditto.
14407 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
14408 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
14409 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
14410 * mips-tdep.c (mips_gdbarch_init): Ditto.
14411 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
14412 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
14413 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14414 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
14415 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
14416 * i386-tdep.c (i386_gdbarch_init): Ditto.
14417 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
14418 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
14419 * frv-tdep.c (frv_gdbarch_init): Ditto.
14420 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
14421 * cris-tdep.c (cris_gdbarch_init): Ditto.
14422 * avr-tdep.c (avr_gdbarch_init): Ditto.
14423 * arm-tdep.c (arm_gdbarch_init): Ditto.
14424 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
14425
14426 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
14427
14428 * infrun.c (follow_fork_mode_ask): Remove.
14429 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
14430 (follow_fork): Simplify and remove internal error for
14431 follow_fork_mode_ask.
14432 (_initialize_infrun): Update "set follow-fork-mode" help text.
14433
14434 2004-01-13 Andrew Cagney <cagney@redhat.com>
14435
14436 * configure.in: Update copyright year.
14437 (build_warnings): Add -Wunused-label.
14438 * configure: Re-generate.
14439
14440 2004-01-12 Andrew Cagney <cagney@redhat.com>
14441
14442 * exec.h (exec_ops): Make "extern".
14443
14444 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
14445 the function is void.
14446 (mips_pseudo_register_write): Ditto.
14447
14448 2004-01-12 Andrew Cagney <cagney@redhat.com>
14449
14450 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
14451 call. Never defined.
14452 * sparc-tdep.h (struct frame_info): Add opaque declaration.
14453 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
14454 (struct sparc_gregset, struct regcache): Ditto.
14455 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
14456
14457 2004-01-12 Andrew Cagney <cagney@redhat.com>
14458
14459 * mi/ChangeLog: Delete file. Renamed to ...
14460 * mi/ChangeLog-1999-2003: New file.
14461 * tui/ChangeLog: Delete file. Renamed to ...
14462 * tui/ChangeLog-1998-2003: New file.
14463
14464 2004-01-11 Mark Kettenis <kettenis@gnu.org>
14465
14466 * sparc64nbsd-tdep.c: Include "regset.h".
14467 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
14468 Remove variables.
14469 (fetch_core_registers): Remove function.
14470 (sparc64nbsd_core_fns): Remove variable.
14471 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
14472 functions.
14473 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
14474 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14475 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
14476
14477 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
14478 sparc_extract_struct_value_address.
14479 (sparc32_gdbarch_init): Set extract_struct_value_address.
14480 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
14481 function.
14482 (sparc64_init_abi): Set extract_struct_value_address. Don't set
14483 return_value_on_stack.
14484
14485 * NEWS: Mention that %cs and %ss have been added to the AMD64
14486 configurations
14487
14488 * frame.c: Update copyright year.
14489 (get_prev_frame): Improve comment.
14490
14491 * sparc64fbsd-tdep.c: Include "regset.h".
14492 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14493 Remove variables.
14494 (fetch_core_registers): Remove function.
14495 (sparc64fbsd_core_fns): Remove variable.
14496 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
14497 functions.
14498 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
14499 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14500 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
14501
14502 * sparcnbsd-tdep.c: Include "regset.h".
14503 (fetch_core_registers): Remove function.
14504 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
14505 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
14506 functions.
14507 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
14508 TDEP->fpregset.
14509 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
14510
14511 * sparc-tdep.h (struct regset): Provide opaque declaration.
14512 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
14513 fpregset and sizeof_fpregset members.
14514 * sparc-tdep.c (struct regset): Provide opaque declaration.
14515 (sparc_regset_from_core_section): New function.
14516 (sparc32_gdbarch_init): Initialize TDEP->gregset,
14517 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
14518 Set regset_from_core_section when appropriate.
14519
14520 2004-01-10 Mark Kettenis <kettenis@gnu.org>
14521
14522 * x86-64-tdep.c (amd64_non_pod_p): New function.
14523 (amd64_classify_aggregate): Return class memory for non-POD
14524 C++ structure types.
14525
14526 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
14527 argument. Use it to reserve a register if necessary.
14528 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
14529 amd64_push_arguments.
14530
14531 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
14532
14533 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
14534 register numbers in comments.
14535 * x86-64-tdep.h: Update copyright year.
14536 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
14537 Adjust for addition of %cs and %ss.
14538 * amd64fbsd-nat.c: Update copyright year.
14539 (reg_offset): Add register offsets for %cs and %ss.
14540 * amd64fbsd-tdep.c: Update copyright year.
14541 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
14542 (amd64fbsd_sc_reg_offset): Likewise.
14543 * x86-64-linux-nat.c: Update copyright year.
14544 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
14545 and %ss.
14546 * amd64nbsd-nat.c: Update copyright year.
14547 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
14548 * amd64nbsd-tdep.c: Update copyright year.
14549 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
14550 * x86-64-linux-tdep.c: Update copyright year.
14551 (user_to_gdb_regmap): Add mapping for %cs and %ss.
14552 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
14553 * regformats/reg-x86-64.dat: Add %cs and %ss.
14554
14555 * blockframe.c (inside_entry_func): Reformat. Introduce new local
14556 variables to prevent long lines. Update comments to reflect
14557 reality.
14558
14559 2004-01-09 David Carlton <carlton@kealia.com>
14560
14561 Checked in by Elena Zannoni <ezannoni@redhat.com>.
14562 * dwarf2read.c (read_namespace): Pull out name-generating code
14563 into namespace_name. Rename previous_namespace to previous_prefix
14564 and processing_current_namespace to processing_current_prefix..
14565 (namespace_name): New function.
14566 (add_partial_symbol): Substitute uses of pdi->name with
14567 actual_name.
14568 * cp-support.h: Rename processing_current_namespace to
14569 processing_current_prefix.
14570 Update copyright year.
14571 * cp-namespace.c: Rename processing_current_namespace to
14572 processing_current_prefix.
14573 Update copyright year.
14574
14575 2004-01-09 Andrew Cagney <cagney@redhat.com>
14576
14577 * jv-valprint.c, ser-unix.c: Add missing copyright years.
14578
14579 2004-01-09 Mark Kettenis <kettenis@gnu.org>
14580
14581 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
14582 complaining.
14583 (process_one_symbol): Deal with N_PATCH stabs.
14584
14585 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
14586
14587 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
14588 ifdeffed code.
14589 Update copyright year.
14590
14591 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14592
14593 * config/pa/tm-hppa.h: Update extern declarations for
14594 hppa32_hpux_frame_saved_pc_in_sigtramp,
14595 hppa32_hpux_frame_base_before_sigtramp, and
14596 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
14597
14598 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14599
14600 * config/pa/tm-hppah.h: Update copyright years.
14601
14602 2004-01-08 Andrew Cagney <cagney@redhat.com>
14603
14604 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
14605 (mips_o32_reg_struct_has_addr): Delete function.
14606 (mips_gdbarch_init): Update.
14607 (mips_extract_struct_value_address): Delete function.
14608
14609 2004-01-08 David Mosberger <davidm@hpl.hp.com>
14610
14611 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
14612 reality.
14613
14614 2004-01-07 Andrew Cagney <cagney@redhat.com>
14615
14616 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
14617 architecture's elf flags (when available).
14618
14619 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
14620 FPU to the start, check the MIPS FPU when looking for an old
14621 architecture.
14622 (set_mipsfpu_single_command): Update the architecture.
14623 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
14624
14625 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
14626 (mips_mask_address_p): Add "tdep" parameter.
14627 (show_mask_address, mips_addr_bits_remove): Update.
14628 (mips_dump_tdep): Update.
14629 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
14630 (MIPS_STACK_ARGSIZE): Delete macro.
14631 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
14632 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
14633 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
14634 (mips_dump_tdep): Update.
14635 (MIPS_SAVED_REGSIZE): Delete macro.
14636 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
14637 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
14638 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
14639 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
14640 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
14641 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
14642 (mips_pop_frame, return_value_location): Update.
14643 (mips_n32n64_return_value, mips_dump_tdep): Update.
14644
14645 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
14646 MIPS ABI.
14647
14648 * mips-tdep.c: Update copyright.
14649 (mips_gdbarch_init): Merge two code blocks handling the register
14650 name and number layout.
14651
14652 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
14653
14654 * tracepoint.c (validate_actionline): Fix segv at EOF
14655
14656 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
14657
14658 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
14659 properly for static fields.
14660
14661 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
14662 Jason Molenda <jmolenda@apple.com>
14663
14664 * disasm.c: Update copyright to include 2004.
14665 (do_mixed_source_and_assembly): For uiout asm list
14666 and tuple cleanups, initialize to null_cleanup instead of
14667 NULL and do so prior to loop. Only reset when we close off
14668 the tuple/list. Move check for whether to close off the
14669 asm tuple/list to after dump_insns call where it will be run
14670 on each loop iteration.
14671
14672 2004-01-05 Andrew Cagney <cagney@redhat.com>
14673
14674 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
14675 should be a switch case and not a label.
14676 * mips-tdep.c (mips32_next_pc): Delete unused labels
14677 "greater_equal_branch" and "less_zero_branch".
14678 * jv-valprint.c (java_print_value_fields): Delete unused label
14679 "flush_it".
14680
14681 * target.c (unpush_target): Only close a target that is in the
14682 target stack.
14683
14684 2004-01-05 Mark Kettenis <kettenis@gnu.org>
14685
14686 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
14687 address from [sp + 64] instead of %o2.
14688
14689 * frame.c (get_prev_frame): Don't try to unwind the PC. This
14690 fixes PR backtrace/1476.
14691
14692 2004-01-05 Andrew Cagney <cagney@redhat.com>
14693
14694 * libunwind-frame.h (struct frame_id): Add opaque declaration,
14695 move to start of file.
14696 * i386-tdep.h (struct regcache): Add opaque declaration.
14697 * config/ia64/nm-linux.h (struct target_ops): Add opaque
14698 declaration.
14699 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
14700 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
14701 * win32-nat.c (fake_create_process): Use ISO C style definition.
14702 * stabsread.c (define_symbol): Delete #ifndef
14703 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
14704 stabs_argument_has_addr call, macro never defined.
14705
14706 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
14707
14708 * op50-rom.c: Delete.
14709 * w89k-rom.c: Delete.
14710 * Makefile.in: Remove references.
14711
14712 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14713
14714 * x86-64-tdep.c: Update copyright year.
14715 (struct amd64_register_info): Rename from x86_64_register_info.
14716 (amd64_register_info): Rename from x86_64_register_info.
14717 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
14718 (amd64_register_name): Rename from x86_64_register_name.
14719 (amd64_register_type): Rename from x86_64_register_type.
14720 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
14721 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
14722 (amd64_dwarf_reg_to_regnum): Rename from
14723 x86_64_dwarf_reg_to_regnum.
14724 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
14725 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
14726 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
14727 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
14728 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
14729 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
14730 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
14731 (amd64_frame_cache): Rename from x86_64_frame_cache.
14732 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
14733 (amd64_frame_prev_register): Rename from
14734 x86_64_frame_prev_register.
14735 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
14736 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
14737 (amd64_sigtramp_frame_cache): Rename from
14738 x86_64_sigtramp_frame_cache.
14739 (amd64_sigtramp_frame_prev_register): Rename from
14740 x86_64_sigtramp_frame_prev_register.
14741 (amd64_sigtramp_frame_unwind): Rename from
14742 x86_64_sigtramp_frame_unwind.
14743 (amd64_sigtramp_frame_sniffer): Rename from
14744 x86_64_sigtramp_frame_sniffer.
14745 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
14746 (amd64_frame_base): Rename from x86_64_frame_base.
14747 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
14748 (amd64_frame_align): Rename from x86_64_frame_align.
14749 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
14750 (amd64_regset_from_core_section): Rename from
14751 x86_64_regset_from_core_section.
14752 (x86_64_init_abi): Update comments.
14753
14754 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
14755
14756 * MAINTAINERS (write after approval): Add myself.
14757
14758 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14759
14760 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
14761 `float' arguments.
14762
14763 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14764
14765 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
14766 such that it mentions a specific version of GCC that exhibits this
14767 bug.
14768
14769 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14770
14771 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
14772 structure that has a single `float' member, store it in %f1 in
14773 addition to %f0.
14774
14775 * sparc-sol2-nat.c: Add missing '\'.
14776
14777 * sparc-tdep.c (sparc32_return_value): New function.
14778 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
14779 Remove functions.
14780 (sparc32_gdbarch_init): Set return_value, don't set
14781 extract_return_value, store_return_value, use_struct_convention
14782 and return_value_on_stack.
14783
14784 * sparc-sol2-nat.c: Add missing ')'.
14785
14786 2004-01-03 J. Brobecker <brobecker@gnat.com>
14787
14788 * infrun.c (handle_step_into_function): New function.
14789 (handle_inferior_event): Extract out some code into the new
14790 function above.
14791
14792 2004-01-03 J. Brobecker <brobecker@gnat.com>
14793
14794 * infrun.c (handle_inferior_event): Move the declaration of
14795 real_stop_pc inside the if blocks where it is used.
14796
14797 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14798
14799 * sparc64-tdep.c (sparc64_16_byte_align_p)
14800 (sparc64_store_floating_fields, sparc64_store_floating_fields):
14801 Use check_typedef to get subtypes of structures and unions.
14802 (sparc64_store_return_value): Fix calculation of the appropriate
14803 offset into VALBUF when storing a structure or union.
14804 (sparc64_return_value): New function.
14805 (sparc64_use_struct_convention): Remove function.
14806 (sparc64_init_abi): Set return_value, don't set
14807 extract_return_value, store_return_value and
14808 use_struct_convention.
14809
14810 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
14811
14812 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
14813 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
14814 gdb/config/alpha/xm-alphaosf.h,
14815 gdb/config/powerpc/tm-ppcle-eabi.h,
14816 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
14817 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
14818 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
14819 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
14820 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
14821 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
14822 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
14823 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
14824 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
14825 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
14826 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
14827 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
14828 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
14829 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
14830 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
14831 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
14832 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
14833 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
14834 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
14835 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
14836 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
14837 Remove lines for .cvsignore files.
14838
14839 2004-01-03 J. Brobecker <brobecker@gnat.com>
14840
14841 * infrun.c: Back out the previous change.
14842
14843 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14844
14845 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
14846 sparc-*-sunos4* to the list of REMOVED configurations.
14847
14848 * configure.tgt: Add back sparc-*-vxworks*.
14849 * remote-vxsparc.c: Remove all includes except for "defs.h",
14850 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
14851 Include "sparc-tdep.h".
14852 (SPARC_R_G1): New define.
14853 (vxsparc_gregset): New variable.
14854 (ext_format_sparc): Remove extern declaration.
14855 (vx_read_register): Rewrite to use sparc32_supply_gregset and
14856 sparc32_supply_fpregset.
14857 (vx_write_register): Rewrite to use sparc32_collect_gregset,
14858 sparc_collect_rwindow and sparc32_collect_fpregset.
14859 * config/sparc/tm-vxworks.h: New file, based on recently removed
14860 tm-vxsparc.h.
14861 * config/sparc/vxworks.mt: New file, based on recently removed
14862 vxworks.mt.
14863
14864 2004-01-03 J. Brobecker <brobecker@gnat.com>
14865
14866 * infrun.c (handle_step_into_function): New function.
14867 (handle_inferior_event): Extract out some code into the new
14868 function above.
14869
14870 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14871
14872 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
14873 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
14874 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
14875 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
14876 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
14877 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
14878 (sparc_nat_h): New variable.
14879 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
14880 (tm-sun4os4.h): Remove dependency.
14881 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
14882 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
14883 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
14884 sparc-tdep.o): Update dependencies.
14885 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
14886 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
14887 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
14888 dependencies.
14889 * configure.host: Remove existing sparc-*-lynxos*,
14890 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
14891 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
14892 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
14893 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
14894 triplets.
14895 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
14896 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
14897 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
14898 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
14899 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
14900 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
14901 sparc64-*-solaris2* and sparc64-*-* triplets.
14902 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
14903 "symtab.h" and "objfiles.h".
14904 (BIAS): Remove define.
14905 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
14906 (X_DISP19): Remove macros.
14907 (sparc_fetch_instruction): Remove function.
14908 (struct gdbarch_tdep): Remove definition.
14909 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
14910 (sparc_breakpoint_from_pc): Remove function.
14911 (struct sparc64_frame_cache): Remove definition.
14912 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
14913 sparc64_unwind_pc): Remove functions.
14914 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
14915 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
14916 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
14917 (sparc64_frame_cache): Change return type to `struct
14918 sparc_frame_cache *'. Simply call sparc_frame_cache.
14919 (sparc64_frame_this_id, sparc64_frame_prev_register,
14920 sparc64_frame_base_address): Use `struct sparc_frame_cache'
14921 instead of `struct sparc64_frame_cache.
14922 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
14923 sparc_analyze_control_transfer, sparc_software_single_step,
14924 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
14925 _initialize_sparc64_tdep): Remove functions.
14926 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
14927 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
14928 macros.
14929 (sparc64_supply_gregset, sparc64_collect_gregset,
14930 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
14931 (sparc64_init_abi): New function.
14932 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
14933 inclusion guard. Include "sparc-tdep.h".
14934 (BIAS): Define.
14935 (r_tstate_offset, r_fprs_offset): New defines.
14936 (enum sparc_regnum): Remove defenition.
14937 (enum sparc64_regnum): Reformat.
14938 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
14939 (sparc64_init_abi, sparc64_supply_gregset,
14940 sparc64_collect_gregset, sparc64_supply_fpregset,
14941 sparc64_collect_fpregset): New prototypes.
14942 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
14943 Add extern declarations.
14944 (sparc64_sol2_init_abi): New prototype.
14945 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14946 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14947 prototypes.
14948 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
14949 "sparnbsd-nat.h".
14950 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
14951 functions.
14952 (_initialize_sparc64fbsd_nat): Remove initialization of
14953 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
14954 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
14955 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
14956 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
14957 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
14958 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
14959 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
14960 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
14961 (sparc64fbsd_r_y_offset): Remove variables.
14962 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14963 Make static and const.
14964 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14965 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14966 functions.
14967 (sparc64fbsd_gregset): New variable.
14968 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
14969 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
14970 and sparc64_supply_fpregset.
14971 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
14972 (sparc64fbsd_sigtramp_frame_this_id)
14973 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
14974 (sparc64fbsd_sigtramp_frame_unwind): New variable.
14975 (sparc64fbsd_sigtramp_frame_sniffer): New function.
14976 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
14977 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
14978 * sparcnbsd-tdep.c: Update copyright year. Include
14979 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
14980 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
14981 "value.h" and "sparcnbsd-tdep.h".
14982 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
14983 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
14984 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
14985 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
14986 defines.
14987 (sparcnbsd_gregset): New variable.
14988 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
14989 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
14990 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
14991 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
14992 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
14993 variables.
14994 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
14995 (sparc32nbsd_sigcontext_frame_this_id)
14996 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
14997 (sparc32nbsd_sigcontext_frame_unwind): New variable.
14998 (sparc32nbsd_sigtramp_frame_sniffer): New function.
14999 (sparcnbsd_get_longjmp_target_32,
15000 sparcnbsd_get_longjmp_target_64): Remove functions.
15001 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
15002 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
15003 sparcnbsd_init_elf): Remove.
15004 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
15005 (sparcnbsd_elf_init_abi): New functions.
15006 (_initialize_sparcnbsd_tdep): New prototype.
15007 (_initialize_sparnbsd_tdep): Update.
15008 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
15009 corelow.o. Add sparc64-nat.o and sparc-nat.o.
15010 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
15011 * config/sparc/linux.mh: Update comment.
15012 (XM_FILE, HOST_IPC): Remove variables.
15013 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
15014 sparc-linux-nat.o.
15015 * config/sparc/linux.mt: Update comment.
15016 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
15017 * config/sparc/nbsd.mt: Reformat.
15018 * config/sparc/nbsd64.mh: Update comment.
15019 (NATDEPFILES): Add sparc-nat.o.
15020 * config/sparc/nbsd64.mt: Update comment.
15021 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
15022 (TM_FILE): Set to tm-nbsd.h.
15023 * config/sparc/nbsdelf.mh: Update comment.
15024 (NATDEPFILES): Add sparc-nat.o.
15025 (XM_FILE): Delete.
15026 * config/sparc/nbsdaout.mh: Update comment.
15027 (NATDEPFILES): Add sparc-nat.o
15028 (XM_FILE): Delete.
15029 * config/sparc/nm-linux.h: Update copyright year. Don't include
15030 "config/nm-svr4.h" and "solib.h". Add protection against multiple
15031 inclusion.
15032 (KERNEL_U_SIZE): Remove define.
15033 (kernel_u_size): Remove prototype.
15034 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
15035 * config/sparc/nm-nbsd.h: Update copyright. Don't include
15036 "regcache.h".
15037 (CHILD_PREPARE_TO_STORE): Remove define.
15038 * config/sparc/nm-nbsdaout.h: Tweak some comments.
15039 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
15040 sparcnbsd-nat.c: Rewrite files.
15041 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
15042 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
15043 sparcnbsd-tdep.h: Remove files.
15044 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
15045 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
15046 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
15047 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
15048 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
15049 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
15050 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
15051 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
15052 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
15053 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
15054 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
15055 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
15056 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
15057 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
15058 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
15059 * config/sparc/linux64.mh, config/sparc/linux64.mt,
15060 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
15061 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
15062 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
15063
15064 2004-01-02 Andrew Cagney <cagney@redhat.com>
15065
15066 From 2003-12-18 Kazuhiro Inaoka:
15067 * configure.host: Add m32r-linux target.
15068
15069 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
15070
15071 * top.c (print_gdb_version): Update year to 2004.
15072
15073 2004-01-02 Mark Mitchell <mark@codesourcery.com>
15074
15075 * MAINTAINERS: Add myself to the write-after-approval category.
15076
15077 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
15078
15079 From Bernardo Innocenti <bernie@develer.com>:
15080 * configure.tgt: Add uClinux target.
15081
15082 2004-01-02 Andrew Cagney <cagney@redhat.com>
15083
15084 * utils.c (do_my_cleanups): Make static, add forward declaration.
15085 * defs.h (do_my_cleanups): Delete declaration.
15086
15087 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
15088
15089 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
15090 bfd/ChangeLog-0203.
15091
15092 2004-01-02 Mark Kettenis <kettenis@gnu.org>
15093
15094 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
15095 in <machine/reg.h>.
15096 * configure, config.in: Regenerate.
15097
15098 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
15099 tui/ChangeLog-1998-2003.
15100 \f
15101 Local Variables:
15102 mode: change-log
15103 left-margin: 8
15104 fill-column: 74
15105 version-control: never
15106 End: