* solib-pa64.c: Only include <dlfcn.h>, <elf.h> and <elf_hp.h> if
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2004-12-18 Mark Kettenis <kettenis@gnu.org>
2
3 * solib-pa64.c: Only include <dlfcn.h>, <elf.h> and <elf_hp.h> if
4 PA_SOM_ONLY isn't defined.
5
6 * somread.c: Include "solib-som.h".
7 (som_symfile_init, som_new_init, som_symfile_read,
8 som_symfile_finish, som_symtab_read, som_symfile_offsets): Remove
9 redudant prototypes.
10 * Makefile.in (somread.o): Update dependencies.
11
12 2004-12-17 Jim Blandy <jimb@redhat.com>
13
14 * remote.c (fetch_register_using_p): Indentation cleanup.
15
16 2004-12-17 Randolph Chung <tausq@debian.org>
17
18 * hppa-hpux-tdep.c (setup_d_pid_in_inferior): Make static.
19 (find_stub_with_shl_get): Make static.
20
21 2004-12-17 Randolph Chung <tausq@debian.org>
22
23 * hppa-hpux-tdep.c (IS_32BIT_TARGET): New.
24 (in_opd_section): New.
25 (hppa32_hpux_find_global_pointer): Rename from
26 hppa_hpux_som_find_global_pointer.
27 (hppa64_hpux_find_global_pointer): New.
28 (ldsid_pattern): New.
29 (hppa_hpux_search_pattern): New.
30 (hppa32_hpux_search_dummy_call_sequence): New.
31 (hppa64_hpux_search_dummy_call_sequence): New.
32 (hppa_hpux_find_import_stub_for_addr): New.
33 (hppa_hpux_sr_for_addr): New.
34 (hppa_hpux_find_dummy_bpaddr): New.
35 (hppa_hpux_init_abi): Use IS_32BIT_TARGET predicate.
36 (hppa_hpux_som_init_abi): Set find_global_pointer method to
37 hppa32_hpux_find_global_pointer instead of
38 hppa_hpux_som_find_global_pointer.
39 (hppa_hpux_elf_init_abi): Set find_global_pointer method.
40 * hppa-tdep.c (hppa_init_objfile_priv_data): New.
41 (read_unwind_info): Use function to initialize objfile-private data.
42 (hppa32_push_dummy_call): Don't automatically set the RP if there is
43 a push_dummy_code method.
44 (hppa64_push_dummy_call): Retrieve and set the global pointer.
45 Don't automatically set the RP if there is a push_dummy_code method.
46 * hppa-tdep.h (hppa_objfile_private): Add dummy_call_sequence_reg and
47 dummy_call_sequence_addr members.
48 (hppa_init_objfile_priv_data): New prototype.
49
50 2004-12-17 Joel Brobecker <brobecker@gnat.com>
51
52 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): New function.
53 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Add declaration.
54 * solib-som.c (som_solib_create_inferior_hook): Replace stub
55 msymbol search by call to hppa_lookup_stub_minimal_symbol. This
56 extends the search to all objfiles, not just shared libraries.
57 Remove unused variable.
58
59 2004-12-16 Michael Snyder <msnyder@redhat.com>
60
61 * MAINTAINERS: Add myself as maintainer for mn10300.
62 * NEWS: Mention mn10300.
63
64 2004-12-15 Kevin Buettner <kevinb@redhat.com>
65
66 * xstormy16-tdep.c (xstormy16_skip_prologue): Clear/initialize the
67 frame cache.
68
69 2004-12-14 Randolph Chung <tausq@debian.org>
70
71 * hppa-tdep.c (hppa_in_function_epilogue_p): New function.
72 (hppa_gdbarch_init): Set in_epilogue_p method.
73
74 2004-12-14 Corinna Vinschen <vinschen@redhat.com>
75
76 * sh-tdep.c (sh_extract_return_value_nofpu): Rename from
77 sh_default_extract_return_value.
78 (sh_extract_return_value_fpu): Rename from
79 sh3e_sh4_extract_return_value.
80 (sh_store_return_value_nofpu): Rename from
81 sh_default_store_return_value.
82 (sh_store_return_value_fpu): Rename from sh3e_sh4_store_return_value.
83 (sh_return_value_nofpu): Accomodate above changes.
84 (sh_return_value_fpu): Ditto.
85
86 2004-12-13 Jerome Guitton <guitton@gnat.com>
87
88 * stabsread.c (read_huge_number): Add support for reading octal
89 signed number in twos complement, based on the size of this
90 number.
91 (read_range_type): Add support for reading octal signed bounds
92 in twos complements, based on the size of the type.
93 (read_type_number, read_cpp_abbrev, read_member_functions,
94 read_cpp_abbrev, read_one_struct_field, read_baseclasses,
95 read_struct_type, read_array_type, read_enum_type,
96 read_sun_builtin_type, read_sun_floating_type): Update calls to
97 read_huge_number.
98 (read_type): Update call to read_range_type.
99
100 2004-12-13 Randolph Chung <tausq@debian.org>
101
102 * hppa-hpux-tdep.c (internalize_hp_cxx_exception_support): Call
103 solib_get_solib_by_pc method through target vector.
104 (hppa_hpux_som_find_global_pointer): Call solib_get_got_by_pc
105 method through target vector.
106
107 2004-12-13 Joel Brobecker <brobecker@gnat.com>
108
109 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Change
110 parameter name to make it clear that we already have a next
111 frame. Return the sigcontext from that next frame instead
112 of the frame following it.
113
114 2004-12-13 Randolph Chung <tausq@debian.org>
115
116 * Makefile.in (pa64solib_h, somsolib_h): Delete.
117 (solib_pa64_h, solib_som_h): New.
118 (HFILES_NO_SRCDIR, ALLDEPFILES): Replace somsolib.h with solib-som.h.
119 (hppa-hpux-tdep.o, hpread.o): Update dependencies.
120 (pa64solib.o, somsolib.o): Delete.
121 (solib-pa64.o, solib-som.o): New.
122 * hppa-hpux-tdep.c: Include new solib interfaces.
123 (hppa_hpux_som_init_abi): Attach to SOM solib interface.
124 (hppa_hpux_elf_init_abi): Attach to PA64 ELF solib interface.
125 * hppa-tdep.c (internalize_unwinds): If solib_get_text_base method
126 is available, use it to determine the base of unwind records.
127 * hppa-tdep.h (gdbarch_tdep): Add new solib methods.
128 * hpread.c: Replace somsolib.h with solib-som.h.
129 (hpread_process_one_debug_symbol): Use target vector to get thread
130 start address.
131 * config/pa/hppa64.mt (TDEPFILES): Use new solib interface.
132 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
133 * config/pa/hpux.mh (NATDEPFILES): Delete references to target objects.
134 * config/pa/tm-hppah.h: Use new solib interface.
135
136 2004-12-13 Randolph Chung <tausq@debian.org>
137
138 * tramp-frame.c (tramp_frame_sniffer): Allow frames with names or
139 sections to be trampolines too.
140
141 2004-12-13 Ben Elliston <bje@au.ibm.com>
142
143 * f-exp.y (typename): Remove unused nonterminal.
144 (name): Likewise.
145
146 2004-12-12 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
147
148 Committed by Andrew Cagney.
149 * abug-rom.c, ada-lang.c, ada-typeprint.c, alpha-tdep.c: i18n
150 markup.
151
152 2004-12-12 Andrew Cagney <cagney@gnu.org>
153
154 * frame.c (get_prev_frame): When unwinding normal frames, check
155 that the PC isn't zero.
156 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Delete check for a
157 zero PC.
158
159 * MAINTAINERS: Reword description of what "Target Instruction Set
160 Architectures" covers.
161
162 2004-12-12 Mark Kettenis <kettenis@gnu.org>
163
164 * hppa-hpux-nat.c (hppa_hpux_child_can_run): Tweak comment.
165
166 2004-12-11 Mark Kettenis <kettenis@gnu.org>
167
168 * hppa-hpux-nat.c (ss_mpsfu_high): Remove define.
169 (hppa_hpux_save_state_offset): New function, replacing variable
170 with the same name.
171 (hppa_cannot_fetch_register, hppa_cannot_store_register): Remove
172 functions.
173 (hppa_hpux_fetch_register): Don't call hppa_cannot_fetch_register.
174 Use new hppa_hpux_save_state_offset function. Add special
175 handling for handling 64-bit "flags" register.
176 (hppa_hpux_store_register): Likewise.
177 (hppa_hpux_child_can_run): Tweak comment.
178
179 * inf-ttrace.c (inf_ttrace_him): Set TTEVT_BPT_SSTEP if available.
180 (inf_ttrace_attach): Likewise.
181 (inf_ttrace_resume_callback): New function.
182 (inf_ttrace_resume): Don't use TT_PROC_CONTINUE. Iterate over all
183 lwps and call inf_ttrace_resume_callback instead.
184 (inf_ttrace_wait): Handle TTEVT_BPT_SSTEP.
185
186 * inf-ttrace.c (_initialize_inf_ttrace): Unconditionially compile.
187
188 2004-12-10 Michael Snyder <msnyder@redhat.com>
189
190 * mn10300-tdep.c: New file. This is a re-implementation of
191 the mn10300 target back-end using the new frame api etc.
192 * mn10300-tdep.h: New file.
193 * config/mn10300/mn10300.mt: New file (or replace old file).
194 * configure.tgt: Add mn10300 target.
195
196 2004-12-10 Mark Kettenis <kettenis@gnu.org>
197
198 * configure.host (hppa*-*-hpux11*): Remove.
199 * config/pa/hpux11.mh: Remove file.
200
201 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind_cache): Fix
202 typo.
203
204 2004-12-10 Kris Warkentin <kewarken@qnx.com>
205
206 * nto-tdep.h: Include osabi.h. Prototypes for generic Neutrino
207 osabi sniffer, signal handling initializer, 'in_dynsym_resolve_code'
208 function and nto_set_target function.
209 (struct nto_target_ops): Put comments inline with struct. Add osabi
210 sniffer hook. Redefine macros to permit testing/assignment. Remove
211 nto_ prefix from members.
212 * nto-tdep.c (nto_find_and_open_solib): Allocate all buffers
213 dynamically to support arbitrary root paths. Check for basename of
214 lib in search path and then check for absolute.
215 (nto_in_dynsym_resolve_code): New function.
216 (nto_core_sniffer): New function.
217 (regset_core_fns): Register core sniffer.
218 (nto_initialize_signals): New function.
219 (_initialize_nto_tdep): Move signal initialization code to above to
220 avoid initialization race conditions.
221 (nto_set_target): New function.
222 * nto-procfs.c: Minor formatting/indenting changes.
223 (procfs_is_nto_target): New function.
224 (procfs_open): Set nto_is_nto_target.
225 (_initialize_procfs): Ditto. Remove notice_signals() call to avoid
226 initialization race conditions.
227 (procfs_create_inferior): Resume inferior after creation.
228 * i386-nto-tdep.c: Declare i386_nto_target.
229 (init_i386nto_ops): Initialize i386_nto_target instead of
230 current_nto_target.
231 (i386nto_init_abi): Initialize signals. Call nto_set_target. Set
232 TARGET_SO_IN_DYNSYM_RESOLVE_CODE.
233 (_initialize_i386nto_tdep): Call init_i386nto_ops. Register osabi
234 sniffer.
235
236 2004-12-10 Mark Kettenis <kettenis@gnu.org>
237
238 * hppa-hpux-tdep.c (child_enable_exception_callback): Use XMALLOC.
239 (hppa_hpux_sigtramp_frame_unwind_cache): Use ARRAY_SIZE.
240 (hppa_hpux_init_abi): Reformat long line.
241
242 2004-12-09 Mark Kettenis <kettenis@gnu.org>
243
244 * hppa-hpux-tdep.c: Include "regset.h".
245 (HPPA_HPUX_SS_WIDEREGS, HPPA_HPUX_SS_FLAGS_OFFSET)
246 (HPPA_HPUX_SS_NARROW_OFFSET, HPPA_HPUX_SS_FPBLOCK_OFFSET)
247 (HPPA_HPUX_SS_WIDE_OFFSET, HPPA_HPUX_SAVE_STATE_SIZE)
248 (HPPA_HPUX_PA89_SAVE_STATE_SIZE): New defines.
249 (hppa_hpux_supply_ss_narrow, hppa_hpux_supply_ss_fpblock)
250 (hppa_hpux_supply_ss_wide, hppa_hpux_supply_save_state): New
251 functions.
252 (hppa_hpux_regset): New variable.
253 (hppa_hpux_regset_from_core_section): New function.
254 (hppa_hpux_init_abi): Set regset_from_core_section.
255 (hppa_hpux_core_osabi_sniffer): New function.
256 (_initialize_hppa_hpux_tdep): Register
257 hppa_hpux_core_osabi_sniffer.
258 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
259 * config/pa/hppahpux.mt (TDEPFILES): Add corelow.o.
260
261 2004-12-09 Randolph Chung <tausq@debian.org>
262
263 * solib-pa64.c (pa64_relocate_section_addresses): Properly relocate
264 text and data sections.
265 (pa64_current_sos): Also include the dld in the list of current shared
266 objects.
267 (pa64_solib_get_solib_by_pc): Update comments.
268 (pa64_solib_get_text_base): New function.
269 (pa64_solib_select): Set solib_get_text_base method.
270
271 2004-12-08 Daniel Jacobowitz <dan@debian.org>
272
273 * linux-thread-db.c (BUILD_THREAD): Delete.
274 (thread_get_info_callback): Include LWP ID in thread ID.
275 (thread_from_lwp, check_event, find_new_threads_callback): Likewise.
276 (lwp_from_thread): Use the LWP ID from the thread ID.
277
278 2004-12-07 Randolph Chung <tausq@debian.org>
279
280 * hppa-tdep.c (hppa_frame_prev_register_helper): Zero out the entire
281 register for both 32- and 64-bit targets.
282
283 2004-12-07 Randolph Chung <tausq@debian.org>
284
285 * frame.c (get_prev_frame): Don't terminate unwinding at main if we
286 are unwinding through a dummy frame.
287
288 2004-12-07 Randolph Chung <tausq@debian.org>
289
290 * hppa-tdep.h (gdbarch_tdep): Add unwind_adjust_stub method.
291 * hppa-hpux-tdep.c (hppa_hpux_unwind_adjust_stub): New function.
292 (hppa_hpux_init_abi) Set unwind_adjust_stub method.
293 * hppa-tdep.c (hppa_frame_cache): Call unwind_adjust_stub method
294 if defined.
295
296 2004-12-07 Randolph Chung <tausq@debian.org>
297
298 * hppa-tdep.c (hppa_stub_Frame_unwind_cache): Stop unwinding if
299 unwinding from a frame with pc == 0.
300 (hppa_stub_frame_this_id): Likewise.
301 (hppa_stub_frame_prev_register): Only provide real values if the frame
302 cache is not NULL.
303
304 2004-12-07 Randolph Chung <tausq@debian.org>
305
306 * solib-som.c: New file.
307 * solib-som.h: New file.
308 * solib-pa64.c: New file.
309 * solib-pa64.h: New file.
310
311 2004-12-07 Mark Kettenis <kettenis@gnu.org>
312
313 * Makefile.in (inf-ttrace.o): Fix typo.
314
315 2004-12-07 Jim Blandy <jimb@redhat.com>
316
317 * remote.c (remote_threads_info, remote_current_thread): Use
318 strtoul to parse thread ID numbers.
319
320 2004-12-07 Mark Kettenis <kettenis@gnu.org>
321
322 * inf-ttrace.c: Include "gdbthread.h".
323 (inf_ttrace_num_lwps): New variable.
324 (inf_ttrace_num_lwps_in_syscall): Renamed from
325 inf_ttrace_num_threads_in_syscall.
326 (inf_ttrace_him): Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
327 TTEVT_LWP_TERMINATE events.
328 (inf_ttrace_create_inferior): Assert that INF_TTRACE_NUM_LWPS is
329 zero.
330 (inf_ttrace_mourn_inferior): Set INF_TTRACE_NUM_LWPS to zero.
331 (inf_ttrace_attach): Assert that INF_TTRACE_NUM_LWPS is zero.
332 Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE
333 events.
334 (inf_ttrace_wait): Report status as TARGET_WAITKIND_SPURIOUS by
335 default. Handle TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
336 TTEVT_LWP_TERMINATE events.
337 (inf_ttrace_thread_alive, inf_ttrace_pid_to_str): New functions.
338 (inf_ttrace_target): Set to_thread_alive and to_pid_to_str.
339 * Makefile.in (inf-ttrace.o): Update dependencies.
340
341 * hppa-tdep.h (hppa_read_pc, hppa_write_pc, hppa_unwind_pc): New
342 prototypes.
343 * hppa-tdep.c (hppa_read_pc): Rename from hppa_target_read_pc.
344 Make global. Remove HP-UX specific code. Use
345 frame_unwind_register_unsigned instead of
346 frame_unwind_register_signed.
347 (hppa_write_pc): Rename from hppa_target_write_pc. Make global.
348 Remove HP-UX specific code.
349 (hppa_unwind_pc): Make global. Remove HP-UX specific code.
350 (hppa_frame_prev_register_helper): Set "flags" register to zero
351 for all unwound frames.
352 (hppa_gdbarch_init): Adjust.
353 * hppa-hpux-tdep.c (HPPA_HPUX_SS_INSYSCALL): New define.
354 (hppa_hpux_read_pc, hppa_hpux_write_pc)
355 (hppa_hpux_unwind_pc): New functions.
356 (hppa_hpux_init_abi): Set read_pc, write_pc and unwind_pc.
357
358 2004-12-07 Andreas Schwab <schwab@suse.de>
359
360 * main.c (long_options): Add entry for "-l".
361 (print_gdb_help): Add line for -l option.
362 * NEWS: Mention it.
363
364 2004-12-05 Randolph Chung <tausq@debian.org>
365
366 * hppah-nat.c (store_inferior_registers): Rewrite logic to not use
367 DEPRECATED_REGISTER_BYTE.
368
369 2004-12-05 Randolph Chung <tausq@debian.org>
370
371 * hppa-tdep.c (unwind_command): Print the stub type for stub unwind
372 records.
373
374 2004-12-05 Mark Kettenis <kettenis@gnu.org>
375
376 * somsolib.c [PA_SOM_ONLY] (no_shared_libraries): New function.
377 * config/pa/hppahpux.mt (TDEPFILES): Remove solib.o.
378
379 * hppa-hpux-tdep.c: Update copyright notice and year.
380
381 2004-12-05 Richard Earnshaw <rearnsha@arm.com>
382
383 * doublest.c (FLOATFORMAT_LARGEST_BYTES): New define.
384 (get_field, put_field): Assert that the format is one we can handle.
385 Simplify logic accordingly.
386 (floatformat_normalize_byteorder): New function.
387 (convert_floatformat_to_doublest): Use floatformat_normalize_byteorder
388 to normalize and select modified byte order. Pass modified byte order
389 to get_field.
390 (floatformat_is_negative, floatformat_is_nan, floatformat_mantissa):
391 Likewise.
392 (convert_doublest_to_floatformat): Select an appropriate intermediate
393 byte order if necessary. Always convert to the final format before
394 returning.
395
396 2004-12-04 Daniel Jacobowitz <dan@debian.org>
397
398 PR tui/1703
399 * linux-nat.c (linux_tracefork_child): Use _exit instead of exit.
400 Suggested by Joshua Neuheisel.
401
402 2004-12-03 Randolph Chung <tausq@debian.org>
403
404 * gdbarch.sh (instruction_nullified): Delete.
405 * gdbarch.c: Regenerate.
406 * gdbarch.h: Regenerate.
407 * hppa-tdep.c (hppa_target_read_pc): Adjust pc if instruction is
408 nullified.
409 (hppa_unwind_pc): Likewise.
410 (hppa_instruction_nullified): Delete.
411 (hppa_gdbarch_init): Don't set instruction_nullified method.
412 * infrun.c (infwait_states): Remove infwait_nullified_state.
413 (handle_inferior_event): Remove handling of infwait_nullified_state.
414 Remove handling of nullified instructions.
415
416 2004-12-03 Mark Kettenis <kettenis@gnu.org>
417
418 * inf-ttrace.c: Include <sys/mman.h>.
419 (struct inf_ttrace_page): New.
420 (struct inf_ttrace_page_dict): New.
421 (inf_ttrace_num_threads_in_syscall)
422 (inf_ttrace_reenable_page_protections): New variables.
423 (inf_ttrace_enable_syscall_events)
424 (inf_ttrace_disable_syscall_events, inf_ttrace_get_page)
425 (inf_ttrace_add_page, inf_ttrace_insert_page)
426 (inf_ttrace_remove_page, inf_ttrace_mask_page_protections)
427 (inf_ttrace_enable_page_protections)
428 (inf_ttrace_disable_page_protections)
429 (inf_ttrace_insert_watchpoint, inf_ttrace_remove_watchpoint)
430 (inf_ttrace_can_use_hw_breakpoint)
431 (inf_ttrace_region_size_ok_for_hw_watchpoint)
432 (inf_ttrace_stopped_by_watchpoint): New functions.
433 (inf_ttrace_him): Remove unsused varaible `tts'.
434 (inf_ttrace_create_inferior): Add assertionts.
435 (inf_ttrace_mourn_inferior): Clear page dictionary.
436 (inf_ttrace_attach): Set initial event mask.
437 (inf_ttrace_detach): Reset number of threads in system call.
438 (inf_ttrace_wait): Deal with system call events.
439 (inf_ttrace_target): Initialize "hardware" watchpoint-related
440 parts of the target vector.
441 (_initialize_inf_ttrace): New prototype and function.
442
443 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Use ULONGEST as
444 type of `gp' variable.
445
446 2004-12-03 Richard Sandiford <rsandifo@redhat.com>
447
448 * README: Remove config.if from directory listing.
449
450 2004-12-01 Joel Brobecker <brobecker@gnat.com>
451
452 * alpha-tdep.c (alpha_register_name): Add comment.
453 (alpha_cannot_fetch_register): Exclude registers numbers which
454 are no longer used from the list of registers that can be fetched.
455 (alpha_cannot_store_register): Exclude registers numbers which
456 are no longer used from the list of registers that can be stored.
457 * alpha-nat.c (fetch_osf_core_registers): Add missing value in
458 core_reg_mapping array.
459
460 2004-12-01 Joel Brobecker <brobecker@gnat.com>
461
462 * alpha-tdep.c (alpha_heuristic_frame_prev_register): Fetch
463 the register value from the correct frame.
464
465 2004-11-30 Randolph Chung <tausq@debian.org>
466
467 * hppa-linux-tdep.c (insns_match_pattern_relaxed): New function.
468 (hppa_linux_in_dyncall): Check that we are inside the range of
469 $$dyncall, not necessarily at the first insn.
470 (hppa_linux_in_solib_call_trampoline): Identify a trampoline
471 even if the pc does not point to the first insn of the trampoline.
472
473 2004-11-30 Randolph Chung <tausq@debian.org>
474
475 * breakpoint.c (break_at_finish_command): Delete.
476 (break_at_finish_command_1): Delete.
477 (break_at_finish_at_depth_command): Delete.
478 (break_at_finish_at_depth_command_1): Delete.
479 (tbreak_at_finish_command): Delete.
480 * hppa-tdep.c (_initialize_hppa_tdep): Remove deprecated xbreak, tbreak
481 and bx commands.
482
483 2004-11-30 Andrew Cagney <cagney@gnu.org>
484
485 * config/nm-gnu.h: Delete file.
486 * config/i386/nm-i386gnu.h: Inline "config/nm-gnu.h".
487
488 * config/nm-sysv4.h: Delete file.
489 * config/i386/nm-i386v4.h: Inline "config/nm-sysv4.h".
490 * config/i386/nm-i386v42mp.h: Inline "config/nm-sysv4.h".
491 * config/i386/nm-i386sol2.h: Inline "config/nm-sysv4.h".
492 * config/ia64/nm-aix.h: Inline "config/nm-sysv4.h".
493 * config/mips/nm-irix5.h: Inline "config/nm-sysv4.h".
494
495 2004-11-29 Andrew Cagney <cagney@gnu.org>
496
497 * MAINTAINERS: Add Randolph Chung (pa), Jeff Johnston (ia64), Kei
498 Sakamoto (m32r), Joel Brobecker (mips), and Ulrich Weigand (s390)
499 as can-commit architecture developers.
500
501 2004-11-29 Mark Kettenis <kettenis@gnu.org>
502
503 * sparc-tdep.c (X_RS1, X_SIMM13): New macros.
504 (sparc32_skip_prologue): Skip instructions that store arguments in
505 registers into their corresponding stack slots.
506
507 * config/m68k/nbsdaout.mh (NAT_FILE): Set to solib.h instead of
508 tm-solib.h.
509 * config/m68k/obsd.mh (NAT_FILE): Likewise.
510
511 * sparc-tdep.h (sparc32nbsd_elf_init_abi): New prototype.
512 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Make global.
513 * sparcobsd-tdep.c (sparc32obsd_init_abi): Call
514 sparc32nbsd_elf_init_abi. Remove duplicate code.
515
516 * config/sparc/nbsdaout.mh (NAT_FILE): Set to solib.h.
517 * config/sparc/nbsdelf.mh (NAT_FILE): Remove variable.
518 * config/sparc/nm-nbsd.h: Remove file.
519 * config/sparc/nm-nbsdaout.h: Remove file.
520
521 * sparc-nat.c (inf_ptrace_xfer_partial): New variable.
522 (sparc_xfer_partial): New function.
523 (sparc_target): Save value of to_xfer_partial from ptrace vector.
524 Set to_xfer_partial.
525
526 * fork-child.c (fork_inferior): Fork instead of vfork if
527 PRE_TRACE_FUN is non-null.
528
529 2004-11-24 Fred Fish <fnf@specifixinc.com>
530
531 * rs6000-tdep.c (skip_prologue): Use line table info to skip over
532 compiler generated function calls made as part of a prologue.
533
534 2004-11-23 Mark Kettenis <kettenis@gnu.org>
535
536 * inf-ttrace.c: New file.
537 * inf-ttrace.h: New file.
538 * hppa-hpux-nat.c [HAVE_TTRACE]: Include <sys/ttrace>.
539 Include "inf-ttrace.h".
540 (ss_mpsfu_high): Define to ss_tlsp if necessary.
541 (hppa_hpux_fetch_register, hppa_hpux_store_register): Use
542 ptid_get_pid instead of PIDGET. Modify to handle both ttrace and
543 ptrace systems.
544 (_initialize_hppa_hpux_nat) [HAVE_TTRACE]: Call inf_ttrace_traget
545 instead of inf_ptrace_target.
546 * config/pa/hpux.mh (NATDEPFILES): Add inf-ttrace.o.
547 * Makefile.in (inf_ttrace_h): New variable.
548 (hppa-hpux-nat.o): Update dependency.
549 (inf-ttrace.o): New dependency.
550 (ALLDEPFILES): Add inf-ptrace.c and inf-ttrace.c.
551
552 2004-11-23 Randolph Chung <tausq@debian.org>
553
554 * arch-utils.c (generic_instruction_nullified): New.
555 * arch-utils.h (generic_instruction_nullified): New.
556 * gdbarch.sh (instruction_nullified): New method.
557 * gdbarch.c: Regenerate.
558 * gdbarch.h: Regenerate.
559 * infrun.c (INSTRUCTION_NULLIFIED): Delete.
560 (handle_inferior_event): Replace INSTRUCTION_NULLIFIED with calls to
561 new gdbarch method.
562 * config/pa/tm-hppa.h (INSTRUCTION_NULLIFIED): Delete definition.
563 * hppa-tdep.c (hppa_instruction_nullified): Remove prototype and make
564 static. Rewrite to work directly off the passed regcache.
565 (hppa_gdbarch_init): Set instruction_nullified method.
566
567 2004-11-23 Joel Brobecker <brobecker@gnat.com>
568
569 * sparc-tdep.c (sparc_is_unimp_insn): New function.
570 (sparc32_frame_cache): For functions where there is no debugging
571 information to help us determine whether it's a struct-return
572 function or not, fallback on checking whether the instruction
573 at the return address is an "unimp" instruction or not.
574
575 2004-11-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
576
577 * MAINTAINERS: Add myself to write after approval section.
578
579 * hppa-hpux-nat.c (child_suppress_run): Add variable to allow
580 hpux-thread.c to suppress children from running.
581 (hppa_hpux_child_can_run): New function.
582 (_initialize_hppa_hpux_nat): Use hppa_hpux_child_can_run.
583 * hpux-thread.c: Include string.h and hppa-tdep.h.
584 (FLAGS_REGNUM, SP_REGNUM, PC_REGNUM): Rename to HPPA_FLAGS_REGNUM,
585 HPPA_SP_REGNUM and HPPA_PCOQ_HEAD_REGNUM, respectively.
586 (hpux_thread_store_registers): Replace deprecated_registers with
587 calls to regcache_raw_read.
588 * config/pa/hpux11.mh, config/pa/hpux11w.mh: Delete HOST_IPC.
589
590 2004-11-21 Mark Kettenis <kettenis@gnu.org>
591
592 * sparc64fbsd-nat.c: Update copyright year.
593 (_initialize_sparc64fbsd_nat): Construct and add target vector.
594 * config/sparc/fbsd.mh (NATDEPFILES): Remove infptrace.o,
595 inftarg.o.
596
597 2004-11-21 Daniel Jacobowitz <dan@debian.org>
598
599 * sparc-tdep.c (sparc_software_single_step): Handle stepping to NULL.
600
601 2004-11-21 Daniel Jacobowitz <dan@debian.org>
602
603 * linux-nat.c (my_waitpid): New function.
604 (linux_test_for_tracefork): Make more robust and verbose. Take
605 an ORIGINAL_PID argument and test for PTRACE_SETOPTIONS first.
606 (linux_supports_tracefork, linux_supports_tracevforkdone): Take a PID
607 argument. Update calls to linux_test_for_tracefork.
608 (linux_enable_event_reporting, child_follow_fork)
609 (child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
610 (child_insert_exec_catchpoint): Update calls to
611 linux_supports_tracefork and linux_supports_tracevforkdone.
612
613 2004-11-21 Daniel Jacobowitz <dan@debian.org>
614
615 * valarith.c (value_subscript): Copy VALUE_FRAME_ID.
616 (value_subscripted_rvalue): Likewise.
617 * valops.c (search_struct_field, value_slice): Likewise.
618
619 2004-11-21 Mark Kettenis <kettenis@gnu.org>
620
621 * inf-ptrace.c: Don't include "regcache.h" and "gdbcmd.h".
622 Reorder includes a bit. Fix comment.
623 * Makefile.in (inf-ptrace.o): Update dependencies.
624
625 2004-11-21 Andreas Schwab <schwab@suse.de>
626
627 * m68klinux-tdep.c: Include "glibc-tdep.h" and "solib-svr4.h".
628 (m68k_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
629 svr4_ilp32_fetch_link_map_offsets and gdbarch_skip_solib_resolver
630 to glibc_skip_solib_resolver.
631 * config/m68k/linux.mt (TDEPFILES): Add glibc-tdep.o. Remove
632 solib-legacy.o.
633 * Makefile.in (m68klinux-tdep.o): Update dependencies.
634
635 2004-11-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
636
637 * infttrace.h (ttrace_write_reg_64): Add prototype.
638 * hppah-nat.c (store_inferior_registers): Fix warning from ambiguous
639 expression.
640 (store_inferior_registers): Correct formatting. Replace uses of
641 deprecated_registers with calls to regcache_raw_read,
642 regcache_raw_write_part and regcache_raw_read_part.
643
644 2004-11-21 Mark Kettenis <kettenis@gnu.org>
645
646 * config/pa/hppahpux.mh: Remove file.
647 * config/pa/hpux1020.mh: Remove file.
648
649 2004-11-20 Andreas Schwab <schwab@suse.de>
650
651 * configure.host: Set host floatformat for m68k.
652
653 2004-11-20 Eli Zaretskii <eliz@gnu.org>
654
655 * config/djgpp/fnchange.lst: Resolve file-name clash between
656 hppa-hpux-tdep.c and the new hppa-hpux-nat.c.
657
658 2004-11-20 Mark Kettenis <kettenis@gnu.org>
659
660 * hppa-hpux-nat.c: New file.
661 * config/pa/hpux.mh (NATDEPFILES): New file.
662 * Makefile.in (ALLDEPFILES): Add hppa-hpux-nat.c.
663 (hppa-hpux-nat.o): New dependency.
664 * configure.host: Remove hppa*-*-hpux10.20.
665 (hppa*-*-hpux*, hppa*-*-hiux*): Set gdb_host to hpux.mh.
666
667 * inf-ptrace.c: Fix coding style.
668
669 * gdb_ptrace.h [PTRACE_TYPE_ARG5] (ptrace): New macro.
670 * infptrace.c (call_ptrace): Simply call ptrace with four
671 arguments.
672
673 * dbxread.c (process_one_symbol): Fix a few coding standard
674 issues. Improve code formatting.
675
676 * dbxread.c: Include "gdb_string.h".
677 (record_minimal_symbol, read_ofile_symtab): Replace
678 DEPRECATED_STREQ and DEPRECATED_STREQN with strcmp and strncmp.
679 * Makefile.in (dbxread.o): Update dependencies.
680
681 * dwarf2-frame.c (read_encoded_value): Correctly calculate number
682 of bytes read for aligned LEB128 encodings.
683
684 2004-11-19 Mark Kettenis <kettenis@gnu.org>
685
686 * bsd-kvm.c (bsd_kvm_pcb_cmd): Cast return value from
687 parse_and_eval_address to u_long before converting it to a pointer
688 type.
689 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Change type of
690 ps_strings from int to u_long.
691 * i386obsd-nat.c (_initialize_i386obsd_nat): Cast _ps.val to
692 u_long instead of CORE_ADDR.
693
694 2004-11-18 Mark Kettenis <kettenis@gnu.org>
695
696 * dbxread.c (process_one_symbol): Do not adjust address of first
697 N_SLINE stab for a function for code generated by non-GCC
698 compilers.
699
700 2004-11-18 Kevin Buettner <kevinb@redhat.com>
701
702 * solib-null.c: New file.
703
704 2004-11-17 Andrew Cagney <cagney@gnu.org>
705
706 * MAINTAINERS: Drop MIPS and remote.
707
708 2004-11-15 Andrew Cagney <cagney@gnu.org>
709
710 * findvar.c (value_of_register): Set the frame ID.
711 * value.c (value_primitive_field): Copy the frame ID.
712 * valops.c (value_assign): Simplify lval_register case, there's
713 always a frame.
714
715 2004-11-14 Daniel Jacobowitz <dan@debian.org>
716
717 * Makefile.in (mips-linux-tdep.o): Update dependencies.
718 * mips-linux-tdep.c: Include "regcache.h".
719 (fill_fpregset, mips64_fill_fpregset): Use regcache_raw_collect.
720
721 2004-11-14 Daniel Jacobowitz <dan@debian.org>
722
723 * Makefile.in (linux-thread-db.o): Fix typo in last change.
724
725 2004-11-14 Daniel Jacobowitz <dan@debian.org>
726
727 * linux-thread-db.c: New file, renamed from thread-db.c.
728 * thread-db.c: Remove.
729 * Makefile.in (linux-thread-db.o): Rename from thread-db.o rule.
730 * config/alpha/alpha-linux.mh (NATDEPFILES): Rename thread-db.o
731 to linux-thread-db.o.
732 * config/arm/linux.mh (NATDEPFILES): Likewise.
733 * config/i386/linux.mh (NATDEPFILES): Likewise.
734 * config/i386/linux64.mh (NATDEPFILES): Likewise.
735 * config/ia64/linux.mh (NATDEPFILES): Likewise.
736 * config/m32r/linux.mh (NATDEPFILES): Likewise.
737 * config/m68k/linux.mh (NATDEPFILES): Likewise.
738 * config/mips/linux.mh (NATDEPFILES): Likewise.
739 * config/pa/linux.mh (NATDEPFILES): Likewise.
740 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
741 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
742 * config/s390/s390.mh (NATDEPFILES): Likewise.
743 * config/sparc/linux.mh (NATDEPFILES): Likewise.
744 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
745
746 2004-11-13 Andrew Cagney <cagney@gnu.org>
747
748 * config/i386/i386lynx.mh: Delete file.
749 * config/i386/i386lynx.mt: Delete file.
750 * Makefile.in (ALLDEPFILES, i386ly-tdep.o): Remove i386ly-tdep.c.
751 * i386ly-tdep.c: Delete.
752
753 * config/tm-lynx.h: Delete, inline contents ...
754 * config/rs6000/tm-rs6000ly.h: ... here.
755
756 * config/tm-sysv4.h: Delete file, inlining contents.
757 * config/ia64/tm-aix.h (SKIP_TRAMPOLINE_CODE): Define.
758 * config/tm-linux.h (SKIP_TRAMPOLINE_CODE): Define.
759 * config/tm-nto.h (SKIP_TRAMPOLINE_CODE): Define.
760
761 * regcache.h (deprecated_register_valid): Delete.
762 (deprecated_registers): Delete.
763 * regcache.c (deprecated_register_valid): Delete.
764 (deprecated_registers): Delete.
765 (deprecated_read_register_byte, _initialize_regcache)
766 (deprecated_write_register_bytes, build_regcache): Update.
767 * config/powerpc/ppc-sim.mt (TDEPFILES): Remove ppc-bdm.o and
768 remote-sds.o.
769 * config/powerpc/ppc-eabi.mt (TDEPFILES): Ditto.
770 * config/mips/embed.mt (TDEPFILES): Remove remote-mips.o.
771
772 * NEWS: List h8300*-*-*, mcore-*-*, mn10300-*-*, ns32k-*-*, and
773 v850-*-* under removed.
774 * configure.host: Delete ns32k-*-netbsd*.
775 * configure.tgt: Delete h8300-*-*, mcore*-*-*, mn10300-*-*,
776 ns32k-*-netbsd*, and v850*-*-*.
777 * MAINTAINERS: Mark h8300, mcore, mn10300, ns32k, v850 as
778 "Deleted"
779 * config/h8300/tm-h8300.h, config/h8300/h8300.mt: Delete.
780 * h8300-tdep.c, config/mcore/mcore.mt, mcore-rom.c: Delete.
781 * mcore-tdep.c, config/mn10300/mn10300.mt: Delete.
782 * mn10300-tdep.c, config/ns32k/nbsdaout.mh: Delete.
783 * config/ns32k/nbsdaout.mt, config/ns32k/nm-nbsd.h: Delete.
784 * config/ns32k/nm-nbsdaout.h, config/ns32k/tm-ns32k.h: Delete.
785 * ns32knbsd-nat.c, ns32knbsd-tdep.c, ns32k-tdep.c: Delete.
786 * ns32k-tdep.h, config/v850/v850.mt, v850ice.c: Delete.
787 * v850-tdep.c: Delete.
788
789 2004-11-13 Joel Brobecker <brobecker@gnat.com>
790
791 * irix5-nat.c (fetch_core_registers): Replace use of
792 deprecated_registers by equivalent code.
793
794 2004-11-13 Joel Brobecker <brobecker@gnat.com>
795
796 * irix5-nat.c (fill_gregset): Replace use of deprecated_registers
797 with equivalent code.
798 (fill_fpregset): Likewise.
799
800 2004-11-13 Andrew Cagney <cagney@gnu.org>
801
802 * MAINTAINERS: Do not list "Deleted" architectures.
803
804 * configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
805 m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
806 sparc-*-vxworks*.
807 * NEWS: Mention that vxworks was deleted.
808 * config/m68k/tm-vx68.h, config/mips/tm-vxmips.h: Delete.
809 * config/powerpc/tm-vxworks.h, config/tm-vxworks.h: Delete.
810 * config/i386/vxworks.mt, config/m68k/vxworks68.mt: Delete.
811 * config/mips/vxmips.mt, config/powerpc/vxworks.mt: Delete.
812 * config/sparc/vxworks.mt, vx-share/dbgRpcLib.h: Delete.
813 * vx-share/ptrace.h, vx-share/regPacket.h: Delete.
814 * vx-share/vxTypes.h, vx-share/vxWorks.h: Delete.
815 * vx-share/wait.h, vx-share/xdr_ld.c: Delete.
816 * vx-share/xdr_ld.h, vx-share/xdr_ptrace.c: Delete.
817 * vx-share/xdr_ptrace.h, vx-share/xdr_rdb.c: Delete.
818 * vx-share/xdr_rdb.h, remote-vxsparc.c: Delete.
819 * remote-vxmips.c, remote-vx.c: Delete.
820 * remote-vx68.c: Delete.
821 * config/m68k/tm-os68k.h: Remove reference to VxWorks.
822 * config/m68k/os68k.mt, ada-lang.h: Ditto.
823 * Makefile.in (HFILES_NO_SRCDIR, ALLDEPFILES, remote-vx68.o)
824 (remote-vx.o, remote-vxmips.o, remote-vxsparc.o): Delete vx files.
825
826 2004-11-13 Eli Zaretskii <eliz@gnu.org>
827
828 * config/i386/xm-go32.h: Don't include fopen-bin.h.
829 Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR.
830
831 * source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the
832 branch that doesn't define CRLF_SOURCE_FILES; always use
833 binary-mode open.
834 (print_source_lines_base, forward_search_command)
835 (reverse_search_command): Enable the code that accepts DOS-style
836 CRLF line endings on all platforms (this removes the need for
837 CRLF_SOURCE_FILES).
838
839 * defs.h: Fix wording of the comment before FOPEN_RB.
840 (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
841
842 * config/djgpp/fnchange.lst: Group renames for opcode directory
843 together.
844
845 * config/djgpp/djconfig.sh: Replace file names that don't exist
846 anymore with existing files, for checking the unpacked
847 distribution.
848
849 * config/djgpp/config.sed (am_cv_exeext, lt_cv_sys_max_cmd_len):
850 Export pre-cooked values in configure-* targets that begin with
851 "@test -f stage_last".
852
853 2004-11-12 Andrew Cagney <cagney@gnu.org>
854
855 * defs.h (enum lval_type): Delete lval_reg_frame_relative.
856 * value.h (struct value): Update comment.
857 * valops.c (value_assign): Fold lval_reg_fame_relative into
858 lval_register.
859 * findvar.c (value_from_register, locate_var_value): Ditto.
860
861 2004-11-12 Randolph Chung <tausq@debian.org>
862
863 * config/tm/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
864 * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
865 (write_exp_msymbol): Remove conditional check for symbols starting
866 with $. Update comments.
867
868 2004-11-12 Randolph Chung <tausq@debian.org>
869
870 * pa64solib.c (pa64_solib_thread_start_addr): Rename from
871 so_lib_thread_start_addr.
872 * pa64solib.h (so_list): Forward declare.
873 (pa64_solib_thread_start_addr): Prototype.
874 * somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined.
875 (no_shared_libraries): Remove.
876 (som_solib_thread_start_addr): Rename from so_lib_thread_start_addr.
877 * somsolib.h (som_solib_thread_start_addr): Likewise; prototype.
878 * hpread.c (hpread_process_one_debug_symbol): Use either the som or
879 the elf solib handler to find the start address.
880
881 * config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support
882 files to the target makefile.
883 * config/pa/hpux1020.mh (NATDEPFILES): Likewise.
884 * config/pa/hpux11.mh (NATDEPFILES): Likewise.
885 * config/pa/hpux11w.mh (NATDEPFILES): Likewise.
886
887 * config/pa/hppa64.mt (TDEPFILES): Put target-specific support
888 files for symbol reading and shared library handling here.
889 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
890 (PA_SOM_ONLY): Define so we can build a 32-bit SOM only target
891 without bringing in 64-bit support.
892
893 2004-11-12 Andrew Cagney <cagney@gnu.org>
894
895 * sparc-tdep.c: Replace VALUE_TYPE with value_type.
896 * v850-tdep.c, sparc64-tdep.c, sh-tdep.c: Ditto.
897 * sh64-tdep.c, s390-tdep.c, mcore-tdep.c: Ditto.
898 * h8300-tdep.c, arm-linux-tdep.c, amd64-tdep.c: Ditto.
899 * hppa-tdep.c, mips-tdep.c, m88k-tdep.c: Ditto.
900 * m68hc11-tdep.c, m32r-tdep.c, ia64-tdep.c: Ditto.
901 * frv-tdep.c, cris-tdep.c, avr-tdep.c, alpha-tdep.c: Ditto.
902
903 Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM.
904 * value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete.
905 (VALUE_REGNUM): Define.
906 (struct value): Delete location.regnum, rename "regno" to
907 "regnum".
908 * value.c, valops.c, valarith.c, findvar.c: Update.
909
910 * value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE)
911 (VALUE_BITPOS): Delete.
912 (value_type, value_offset, value_bitsize, value_bitpos): Declare.
913 * value.c (value_type, value_offset, value_bitpos)
914 (value_bitsize): New functions. Update references.
915 * arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update.
916 * f-valprint.c, cp-valprint.c, c-valprint.c: Update.
917 * ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update.
918 * p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update.
919 * objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update.
920 * infcall.c, linespec.c, printcmd.c, valarith.c: Update.
921 * valops.c, eval.c, findvar.c, breakpoint.c: Update.
922 * tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c:
923 * rs6000-tdep.c, ppc-sysv-tdep.c: Update.
924
925 2004-11-12 Andrew Cagney <cagney@gnu.org>
926
927 * cris-tdep.c (cris_register_offset): Delete, never called.
928 (cris_spec_reg_applicable): Delete cris_ver_sim.
929 * MAINTAINERS: List d10v as OBSOLETE.
930 * rdi-share/host.h (FOPEN_WB): #ifdef 0 out definitions of
931 FOPEN_WB et.al., defined by "fopen-bin.h".
932
933 2004-11-12 Randolph Chung <tausq@debian.org>
934
935 * hppa-tdep.c (hppa_skip_permanent_breakpoint): Move definition ...
936 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): ... to here.
937 * config/pa/tm-hppa.h (SKIP_PERMANENT_BREAKPOINT): Move definition ...
938 * config/pa/tm-hppah.h (SKIP_PERMANENT_BREAKPOINT): ... to here.
939
940 2004-11-12 Mark Kettenis <kettenis@jive.nl>
941
942 * tui/tui-io.c: Don't include "terminal.h".
943 * Makefile.in (tui-io.o): Update dependencies.
944
945 2004-11-12 Kei Sakamoto <sakamoto.kei@renesas.com>
946
947 * Makefile.in (m32r-linux-tdep.o): Update dependencies.
948 * m32r-linux-tdep.c (m32r_linux_init_abi): Call
949 set_gdbarch_regset_from_core_section for core file support.
950 (m32r_linux_supply_gregset, m32r_linux_regset_from_core_section):
951 New functions.
952
953 2004-11-11 Randolph Chung <tausq@debian.org>
954
955 * hppa-tdep.c (skip_prologue_hard_way): Make static, add
956 stop_after_branch parameter and use it to determine if we should look
957 at the delay slot of the first branch insn to find prologue insns.
958 (hppa_skip_prologue): Update comment and call to skip_prologue_hard_way.
959 (hppa_frame_cache): Likewise.
960
961 2004-11-11 Randolph Chung <tausq@debian.org>
962
963 * hppa-tdep.c (hppa_frame_cache): Properly handle the frame pointer
964 register so that it can be unwound from anywhere in the prologue.
965
966 2004-11-10 msnyder <msnyder@redhat.com>
967
968 * rs6000-tdep.c (skip_prologue): After saving lr_offset,
969 must invalidate lr_reg (so we don't try to save it again).
970 Ditto for cr_offset and cr_reg.
971
972 2004-11-05 Jon Beniston <jon@beniston.com>
973
974 Committed by Andrew Cagney.
975 * remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK
976 when an unexpected packet is received, as the target stubs
977 continually retransmit the same packet until ACKed.
978
979 2004-11-10 Randolph Chung <tausq@debian.org>
980
981 * frame.c (get_prev_frame): Use get_frame_type to retrieve the
982 frame's type.
983
984 2004-11-10 Randolph Chung <tausq@debian.org>
985
986 * blockframe.c (inside_entry_func): Move to .....
987 * frame.c (inside_entry_func): ... here, and make static.
988 (backtrace_past_entry): New flag.
989 (get_prev_frame): Stop backtrace at the entry function if enabled
990 by flag. Update comments.
991 (_initialize_frame): Add command to set backtrace_past_entry flag.
992 * defs.h (inside_entry_func): Remove prototype.
993
994 2004-11-10 Mark Kettenis <kettenis@gnu.org>
995
996 * dwarf2read.c: Fix formatting.
997
998 2004-11-10 Andrew Cagney <cagney@gnu.org>
999
1000 * value.h (COERCE_REF, COERCE_ARRAY, COERCE_NUMBER, COERCE_ENUM)
1001 (coerce_ref, coerce_array, coerce_number, coerce_enum): Replace
1002 macros with function declarations.
1003 * value.c (coerce_ref, coerce_array, coerce_number)
1004 (coerce_enum): New functions.
1005 (value_as_long, value_as_address): Update.
1006 * ada-lang.c (ada_coerce_ref, ada_value_binop)
1007 (ada_evaluate_subexp, ada_value_assign, ada_value_struct_elt): Update.
1008 * jv-lang.c (evaluate_subexp_java): Update.
1009 * valarith.c (value_less, value_neg, value_complement)
1010 (value_binop, value_add, value_subscript, value_x_binop)
1011 (value_logical_not, value_sub): Update.
1012 * valops.c (check_field, value_struct_elt, value_ind)
1013 (value_find_oload_method_list, value_cast, value_assign): Update.
1014 * eval.c (evaluate_subexp_standard): Update.
1015
1016 2004-11-10 Mark Kettenis <kettenis@gnu.org>
1017
1018 * mips-tdep.c (mips32_relative_offset): Change return type to
1019 LONGEST, change argument type to ULONGEST. Fix sign-extension.
1020
1021 2004-11-10 Randolph Chung <tausq@debian.org>
1022
1023 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static.
1024 (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise.
1025 (hppa_fetch_pointer_argument): Likewise.
1026 (hppa_frame_cache): Use safe_frame_unwind_memory instead of
1027 deprecated_read_memory_nobpt.
1028 (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/
1029 add_set_cmd sequence with add_setshow_boolean_cmd.
1030
1031 2004-11-09 Andrew Cagney <cagney@gnu.org>
1032
1033 GDB 6.3 released from GDB 6.3 branch.
1034
1035 2004-11-09 Andrew Cagney <cagney@gnu.org>
1036
1037 * values.c: Rename to ...
1038 * value.c: ..., new file.
1039 * Makefile.in: Update.
1040
1041 2004-11-09 Daniel Jacobowitz <dan@debian.org>
1042
1043 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
1044 size.
1045
1046 2004-11-09 Andrew Cagney <cagney@gnu.org>
1047
1048 * TODO: Delete.
1049
1050 * value.h (struct value): Delete field bfd_section.
1051 (VALUE_BFD_SECTION): Delete macro.
1052 (COERCE_REF): Update.
1053 (value_at, value_at_lazy): Delete asection parameter.
1054 * printcmd.c (print_formatted, x_command): Update.
1055 (do_examine): Delete asection parameter.
1056 (next_section): Delete variable.
1057 * valops.c (value_cast, value_at, value_at_lazy)
1058 (value_coerce_function, value_addr, value_ind, value_string)
1059 (find_rt_vbase_offset, value_full_object): Update.
1060 * hpacc-abi.c (hpacc_virtual_fn_field)
1061 (hpacc_value_rtti_type): Update.
1062 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_virtual_fn_field)
1063 (gnuv3_baseclass_offset): Update.
1064 * f-valprint.c (f_val_print): Update.
1065 * c-valprint.c (c_val_print): Update.
1066 * p-valprint.c (pascal_val_print): Update.
1067 * jv-valprint.c (java_value_print): Update.
1068 * jv-lang.c (java_class_from_object, evaluate_subexp_java): Update.
1069 * ada-lang.c (ada_value_primitive_packed_val)
1070 (ada_evaluate_subexp): Update.
1071 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Update.
1072 * expprint.c (print_subexp_standard): Update.
1073 * infcall.c (call_function_by_hand): Update.
1074 * valarith.c (value_add): Update.
1075 * eval.c (evaluate_subexp_standard): Update.
1076 * values.c (allocate_value, value_copy, value_static_field): Update.
1077 * findvar.c (read_var_value, locate_var_value): Update.
1078
1079 2004-11-09 Andrew Cagney <cagney@gnu.org>
1080
1081 * i386-linux-tdep.c: Include "dwarf2-frame.h".
1082 * Makefile.in: Update all dependencies.
1083
1084 2004-11-08 Andrew Cagney <cagney@gnu.org>
1085
1086 * sentinel-frame.c (sentinel_frame_prev_pc): New function.
1087 (sentinel_frame_unwinder): Add the prev_pc method.
1088 * frame.c (frame_pc_unwind): Use the per-frame pc unwinder when
1089 available. Do not handle the sentinel-frame case.
1090 * frame-unwind.h (frame_prev_register_ftype): Define.
1091 (struct frame_unwind): Add prev_pc;
1092
1093 2004-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1094
1095 * configure.in: Check for ncurses/term.h.
1096 * gdb_curses.h: Include term.h here, prefering ncurses/term.h.
1097 * utils.c: Include gdb_curses.h instead of curses.h and term.h.
1098 * tui/tui.c: Don't include term.h.
1099 * configure, config.in: Rebuilt.
1100
1101 2004-11-08 Mark Kettenis <kettenis@gnu.org>
1102
1103 * m68kbsd-nat.c: Include "inf-ptrace.h".
1104 (_initialize_m68kbsd_nat): Fix pasto.
1105 * Makefile.in (m68kbsd-nat.o): Update dependencies.
1106
1107 2004-11-08 Randolph Chung <tausq@debian.org>
1108
1109 * infrun.c (debug_infrun): New variable.
1110 (resume, proceed, wait_for_inferior): Annotate with debug messages.
1111 (handle_inferior_event, keep_going): Likewise.
1112 (_initialize_infrun): Register "set debug infrun" command.
1113
1114 2004-11-08 Andreas Schwab <schwab@suse.de>
1115
1116 * linux-nat.c (PTRACE_EVENT_VFORK_DONE): Renamed from
1117 PTRACE_EVENT_VFORKDONE.
1118 (child_follow_fork): Adjust.
1119
1120 2004-11-08 Andrew Cagney <cagney@gnu.org>
1121
1122 * README: Refer to 6.3, not 6.2, update directory listing droppng
1123 references to intl/ and mmalloc/.
1124 * PROBLEMS: Refer to 6.3 not 6.2.
1125
1126 * PROBLEMS: Delete no-longer applicable problems.
1127
1128 2004-11-07 Andrew Cagney <cagney@redhat.com>
1129 Daniel Jacobowitz <dan@debian.org>
1130 Roland McGrath <roland@redhat.com>
1131
1132 * Makefile.in (symfile-mem.o): Update dependencies.
1133 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): New.
1134 (i386_linux_init_abi): Call dwarf2_frame_set_signal_frame_p.
1135 * inf-ptrace.c (inf_ptrace_attach): Call
1136 observer_notify_inferior_created.
1137 * inftarg.c (child_attach): Likewise.
1138 * symfile-mem.c: Include "observer.h", "auxv.h", and "elf/common.h".
1139 (symbol_file_add_from_memory): Take NAME argument. Use it for
1140 the new BFD's filename.
1141 (add_symbol_file_from_memory_command): Update call to
1142 symbol_file_add_from_memory.
1143 (struct symbol_file_add_from_memory_args, add_vsyscall_page)
1144 (symbol_file_add_from_memory_wrapper): New.
1145 (_initialize_symfile_mem): Register add_vsyscall_page as an
1146 inferior_created observer.
1147
1148 2004-11-07 Mark Kettenis <kettenis@gnu.org>
1149
1150 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
1151 fetch_inferior_registers. Make static.
1152 (m68kbsd_store_inferior_registers): Rename from
1153 store_inferior_registers. Make static.
1154 (_initialize_m68kbsd_nat): Construct and add target vector.
1155 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1156 inftarg.o. Add inf-ptrace.o.
1157 (NAT_FILE): Set to tm-solib.h.
1158 (LOADLIBES): New variable.
1159 * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
1160 inftarg.o. Add inf-ptrace.o.
1161 (NAT_FILE): Delete variable.
1162 * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and
1163 inftarg.o. Add inf-ptrace.o.
1164 (NAT_FILE): Set to tm-solib.h.
1165 * config/m68k/nm-nbsdaout.h: Remove file.
1166
1167 2004-11-07 Daniel Jacobowitz <dan@debian.org>
1168
1169 * dwarf2-frame.c (struct dwarf2_frame_ops): Add signal_frame_p.
1170 (dwarf2_frame_set_signal_frame_p, dwarf2_frame_signal_frame_p)
1171 (dwarf2_signal_frame_unwind): New.
1172 (dwarf2_frame_sniffer): Use dwarf2_frame_signal_frame_p.
1173 * dwarf2-frame.h (dwarf2_frame_set_signal_frame_p): New prototype.
1174
1175 2004-11-07 Mark Kettenis <kettenis@gnu.org>
1176
1177 * Makefile.in (mips64obsd-tdep.o): Fix typo.
1178
1179 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Renamed
1180 from mipsnbsd_ilp32_solib_svr4_fetch_link_map_offsets. Trim sizes
1181 to only include the structure members we actually need.
1182 (mipsnbsd_lp64_fetch_link_map_offsets): Renamed from
1183 mipsnbsd_lp64_solib_svr4_fetch_link_map_offsets. Trim sizes to
1184 only include the structure members we actually need.
1185 (mipsnbsd_init_abi): Update.
1186
1187 * mips64obsd-nat.c: Include "mips-tdep.h".
1188 (MIPS64OBSD_NUM_REGS): Remove define.
1189 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM): New defines.
1190 (mips64obsd_supply_gregset, mips64obsd_collect_gregset): Handle
1191 floating-point registers correctly.
1192 * Makefile.in (mips64obsd-nat.o): Update dependencies.
1193
1194 * mips64obsd-tdep.c: Include "trad-frame.h", "tramp-frame.h" and
1195 "gdb_assert.h".
1196 (mips64obsd_sigframe_init): New function.
1197 (mips64obsd_sigframe): New variable.
1198 (mips64obsd_init_abi): Add comments. Prepend mips64obsd_sigrame
1199 unwinder.
1200 * Makefile.in (mips64obsd-tdep.o): Update dependencies.
1201
1202 2004-11-06 Joel Brobecker <brobecker@gnat.com>
1203
1204 * alpha-mdebug-tdep.c: #include mdebugread.h.
1205 Replace alpha_extra_func_info_t by struct mdebug_extra_func_info *.
1206 * Makefile.in (alpha-mdebug-tdep.o): Add dependency on mdebugread.h.
1207
1208 2004-11-05 Andrew Cagney <cagney@gnu.org>
1209
1210 * dwarf2-frame.c (dwarf2_frame_cache): Only complain when both the
1211 CFI and the init_reg method leave the register unspecified.
1212 Include the register name in the "Incomplete CFI data" complaint.
1213 Supress leading zeros in the address.
1214
1215 2004-11-05 Mark Kettenis <kettenis@gnu.org>
1216
1217 * dwarf2-frame.c (decode_frame_entry_1): Avoid indirection when
1218 skipping a personality routine in a CIE augmentation.
1219
1220 2004-11-05 Jeff Johnston <jjohnstn@redhat.com>
1221
1222 * defs.h (fatal, vfatal): New function prototypes.
1223 * stack.c (backtrace_command_stub): Stub to call backtrace_command_1
1224 via catch_errors.
1225 (backtrace_command): Change to call backtrace_command_stub via
1226 catch_errors instead of calling backtrace_command_1 directly.
1227 (backtrace_full_command): Ditto.
1228 * utils.c (error_stream_1): New static function.
1229 (verror): Change to call error_stream_1 instead of error_stream.
1230 (error_stream): Call error_stream_1 with RETURN_ERROR argument.
1231 (vfatal, fatal): New functions.
1232
1233 2004-11-05 Andrew Cagney <cagney@gnu.org>
1234
1235 * stack.c (parse_frame_specification_1): Clear selected_frame_p
1236 when not using selected frame.
1237
1238 2004-11-05 Mark Kettenis <kettenis@jive.nl>
1239
1240 * dwarf2-frame.c (decode_frame_entry_1): Correctly skip
1241 personality routine in a CIE augmentation.
1242
1243 2004-11-05 Felix Lee <felix+log1@specifixinc.com>
1244
1245 * stack.c (set_current_sal_from_frame): New function.
1246 (print_args_stub): Use it.
1247 (print_frame_info): Don't set sal here.
1248
1249 2004-11-04 Mark Kettenis <kettenis@gnu.org>
1250
1251 * dwarf2-frame.c (read_encoded_value): Change type of third
1252 argument to `unsigned char *'. Add support for LEB128 encodings.
1253
1254 2004-11-04 Jim Blandy <jimb@redhat.com>
1255
1256 * gdbtypes.c (make_qualified_type): Doc fix. Add assertion to
1257 prevent cross-objfile references.
1258 (make_cv_type): Doc fix. Don't create cross-objfile references,
1259 even for stub types.
1260 (replace_type): Add assertion to prevent cross-objfile references.
1261 (check_typedef): Never resolve a stub type by copying over a type
1262 from another file.
1263
1264 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
1265
1266 * Makefile.in (m32r-tdep.o): Update dependencies.
1267 * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for
1268 ABI-specific overrides.
1269
1270 2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
1271
1272 * m32r-tdep.c (m32r_memory_insert_breakpoint): Remove
1273 unnecessary parallel execution bit.
1274 (m32r_memory_remove_breakpoint): Ditto.
1275 (m32r_breakpoint_from_pc): Update.
1276
1277 2004-11-03 Randolph Chung <tausq@debian.org>
1278
1279 * hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of
1280 frame_func_unwind to locate the unwind entry.
1281 (hppa_frame_this_id): Likewise.
1282
1283 2004-11-03 Andrew Cagney <cagney@gnu.org>
1284
1285 * gdb/NEWS: Mention internationalization, m32r-*-linux-gnu, 'p'
1286 packet, obsolete configurations, end-of-life deprecated_registers.
1287
1288 2004-11-02 Mark Kettenis <kettenis@gnu.org>
1289
1290 * dwarf2-frame.c (read_encoded_value): Set proper size for signed
1291 encodings as well as unsigned encodings.
1292
1293 2004-11-02 Andrew Cagney <cagney@gnu.org>
1294
1295 * value.h (COERCE_VARYING_ARRAY): Delete.
1296 * valops.c (value_cast, value_slice): Delete use.
1297 * valarith.c (value_subscript, value_concat): Delete use.
1298
1299 2004-11-02 Paul Hilfinger <hilfingr@nile.gnat.com>
1300
1301 * NEWS: GDB understands GNAT Ada.
1302
1303 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
1304
1305 * Makefile.in (ALLDEPFILES): Add amd64-sol2-tdep.c.
1306 (amd64-sol2-tdep.o): Add dependencies.
1307 * amd64-sol2-tdep.c, config/i386/sol2-64.mh,
1308 config/i386/sol2-64.mt: New files.
1309 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offset,
1310 amd64_sol2_gregset32_reg_offset, _initialize_amd64_sol2_nat): New.
1311 (supply_gregset): Correct order of arguments to
1312 amd64_supply_native_gregset.
1313 (fill_gregset): Correct order of arguments to
1314 amd64_collect_native_gregset.
1315 * configure.host (i[34567]86-*-solaris2.1[0-9]*): Add new case.
1316 * configure.tgt (i[34567]86-*-solaris2.1[0-9]*): Likewise.
1317 * configure.in (*-*-solaris2.[[6789]]): Add *-*-solaris2.1[[0-9]]
1318 for definition of NEW_PROC_API.
1319 * configure: Regenerate.
1320
1321 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
1322
1323 * MAINTAINERS (Write After Approval): Add myself.
1324
1325 2004-11-01 Andrew Cagney <cagney@gnu.org>
1326
1327 * configure.tgt: Mark d10v-*-* as obsolete.
1328 * config/d10v/d10v.mt, d10v-tdep.c: Obsolete files.
1329
1330 2004-11-01 Paul N. Hilfinger <Hilfinger@gnat.com>
1331
1332 * values.c (modify_field): Correct handling of bit-fields that
1333 don't fit in 32 bits. Use unsigned operations throughout and
1334 simplify the code a bit. Document preconditions.
1335
1336 2004-10-31 Andrew Cagney <cagney@gnu.org>
1337
1338 * config/pa/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
1339 * config/tm-sysv4.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1340 (in_plt_section): Delete.
1341
1342 * mips-tdep.c (mips_in_solib_return_trampoline): Delete.
1343 (mips_gdbarch_init): Do not set same.
1344
1345 * arch-utils.c (generic_in_solib_call_trampoline): Delete.
1346 * arch-utils.h (generic_in_solib_call_trampoline): Delete.
1347
1348 * gdbarch.sh (in_solib_call_trampoline): Delete.
1349 * gdbarch.h, gdbarch.c: Re-generate.
1350
1351 * hppa-tdep.c (hppa_stub_unwind_sniffer): Replace
1352 IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline.
1353 * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline.
1354 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same.
1355 * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
1356
1357 2004-10-31 Mark Kettenis <kettenis@gnu.org>
1358
1359 * mipsnbsd-nat.c: Include "target.h" and "inf-ptrace.h".
1360 (mipsnbsd_fetch_inferior_registers): Rename from
1361 fetch_inferior_registers. Make static.
1362 (mipsnbsd_store_inferior_registers): Rename from
1363 store_inferior_registers. Make static.
1364 (_initialize_mipsnbsd_nat): New function and prototype.
1365 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1366 * config/mips/nbsd.mh (NAT_CLIBS, NAT_FILE): Remove variables.
1367 (NATDEPFILES): Remove infptrace.o and inftarg.o. Add
1368 inf-ptrace.o.
1369
1370 2004-10-31 Andrew Cagney <cagney@gnu.org>
1371
1372 * xstormy16-tdep.c (xstormy16_in_solib_call_trampoline)
1373 (xstormy16_gdbarch_init): Do not set in_solib_call_trampoline,
1374 delete corresponding unused function.
1375 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Really do not set
1376 in_solib_call_trampoline.
1377 * config/arm/tm-embed.h (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1378 * config/powerpc/tm-linux.h: Delete #undef IN_SOLIB_CALL_TRAMPOLINE.
1379 * config/mips/tm-nbsd.h: Ditto.
1380 * config/arm/tm-linux.h: Ditto.
1381 * config/mips/tm-linux.h: Ditto.
1382
1383 * armnbsd-tdep.c (arm_netbsd_aout_init_abi)
1384 (arm_netbsd_aout_in_solib_call_trampoline): Do not set
1385 in_solib_call_trampoline, delete corresponding unused function.
1386 * vaxnbsd-tdep.c (vaxnbsd_aout_in_solib_call_trampoline)
1387 (vaxnbsd_aout_init_abi): Ditto.
1388 * sparcnbsd-tdep.c (sparcnbsd_aout_in_solib_call_trampoline)
1389 (sparc32nbsd_aout_init_abi): Ditto.
1390 * ppc-linux-tdep.c (ppc64_in_solib_call_trampoline)
1391 (ppc_linux_init_abi): Ditto.
1392 * ns32knbsd-tdep.c (ns32knbsd_aout_in_solib_call_trampoline)
1393 (ns32knbsd_init_abi_aout): Ditto.
1394 * mips-tdep.c (mips_in_call_stub, mips_gdbarch_init): Ditto.
1395 * mips-linux-tdep.c (mips_linux_init_abi): Ditto.
1396 * m68kbsd-tdep.c (m68kbsd_aout_in_solib_call_trampoline)
1397 (m68kbsd_aout_init_abi): Ditto.
1398 * i386-cygwin-tdep.c (i386_cygwin_in_solib_call_trampoline)
1399 (i386_cygwin_init_abi): Ditto.
1400 * i386bsd-tdep.c (i386bsd_aout_in_solib_call_trampoline)
1401 (i386bsd_init_abi): Ditto.
1402
1403 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Do not set
1404 in_solib_call_trampoline to in_plt_entry, IN_SOLIB_CALL_TRAMPOLINE
1405 isn't used by this architecture.
1406 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
1407 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Ditto.
1408 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Ditto.
1409 * s390-tdep.c (s390_gdbarch_init): Ditto.
1410 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
1411 * m68klinux-tdep.c (m68k_linux_init_abi): Ditto.
1412 * i386-tdep.c (i386_svr4_init_abi): Ditto.
1413 * i386-nto-tdep.c (i386nto_init_abi): Ditto.
1414 * arm-linux-tdep.c (arm_linux_init_abi): Ditto.
1415 * amd64-tdep.c (amd64_init_abi): Ditto.
1416
1417 * vaxnbsd-tdep.c (vaxnbsd_elf_init_abi): Do not set
1418 in_solib_call_trampoline to its default value of
1419 generic_in_solib_call_trampoline.
1420 * ppcobsd-tdep.c (ppcobsd_init_abi): Ditto.
1421 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Ditto.
1422 * i386obsd-tdep.c (i386obsd_elf_init_abi): Ditto.
1423 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Ditto.
1424 * i386fbsd-tdep.c (i386fbsd_init_abi): Ditto.
1425 * hppabsd-tdep.c (hppabsd_init_abi): Ditto.
1426
1427 * mips-tdep.c (mips_dump_tdep): Don't print any of the macros.
1428
1429 * config/mips/obsd64.mt (DEPRECATED_TM_FILE): Delete.
1430
1431 * config/mips/tm-mips.h: Delete file.
1432 * remote-mips.c: Delete tm-mips.h from comment.
1433 * config/mips/embed.mt (DEPRECATED_TM_FILE): Delete.
1434 * config/mips/tm-nbsd.h: Don't include tm-mips.h.
1435 * config/mips/irix6.mt (DEPRECATED_TM_FILE): Delete.
1436 * config/mips/tm-linux.h: Don't include tm-mips.h.
1437 * config/mips/tm-vxmips.h: Don't include tm-mips.h.
1438 * config/mips/irix5.mt (DEPRECATED_TM_FILE):
1439 * config/mips/tm-wince.h: Don't include.
1440
1441 * mdebugread.h (MDEBUG_EFI_SYMBOL_NAME): Define.
1442 * mdebugread.c (MDEBUG_EFI_SYMBOL_NAME): Delete.
1443 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1444 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Delete.
1445
1446 * mdebugread.h (ecoff_relocate_efi): Delete declaration.
1447 * mdebugread.c (ecoff_relocate_efi): Delete function.
1448 * objfiles.c (objfile_relocate): Delete #ifdef
1449 MDEBUG_EFI_SYMBOL_NAME code.
1450
1451 2004-10-31 Orjan Friberg <organ.friberg@axis.com>
1452 Andrew Cagney <cagney@gnu.org>
1453
1454 * gdbarch.sh (single_step_through_delay): Add.
1455 * gdbarch.h, gdbarch.c: Re-generate.
1456 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P, STEP_SKIPS_DELAY)
1457 (mips_step_skips_delay): Delete.
1458 * mips-tdep.c (mips_single_step_through_delay): Replace
1459 mips_step_skips_delay.
1460 (mips_gdbarch_init): Set single_step_through_delay.
1461 (mips_dump_tdep): Do not print STEP_SKIPS_DELAY.
1462
1463 2004-10-31 Mark Kettenis <kettenis@gnu.org>
1464
1465 * tramp-frame.c (tramp_frame_prepend_unwinder): Set unwinder type
1466 from TRAMP_FRAME frame type.
1467
1468 2004-10-31 Andrew Cagney <cagney@gnu.org>
1469
1470 * mdebugread.c (parse_procedure): Wrap use of RA_REGNUM in #ifdef.
1471
1472 * mips-tdep.c (mips_ignore_helper): Delete.
1473 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Delete.
1474 * infrun.c (handle_inferior_event): Delete #ifdef
1475 DEPRECATED_IGNORE_HELPER_CALL code.
1476
1477 * config/mips/tm-mips.h (RA_REGNUM): Delete.
1478
1479 2004-10-31 Mark Kettenis <kettenis@gnu.org>
1480
1481 * i386v4-nat.c (supply_gregset, supply_fpregset, fill_gregset)
1482 (fill_fpregset): Do not compile for 64-bit systems.
1483 * i386-sol2-nat.c: Don't include "i386v4-nat.c".
1484 * Makefile.in (i386-sol2-nat.o): Update dependencies.
1485 * config/i386/i386sol2.mh (NATDEPFILES): Add back i386v4-nat.c.
1486
1487 2004-10-30 Andrew Cagney <cagney@gnu.org>
1488
1489 * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
1490 (struct mdebug_extra_func_info): Define.
1491 * config/alpha/tm-alpha.h: Delete same.
1492 * config/mips/tm-mips.h: Delete same.
1493 * mdebugread.c: Delete same.
1494 * Makefile.in: Update dependencies.
1495 * mips-mdebug-tdep.c: Include "mdebugread.h".
1496
1497 * objfiles.c: Include "mdebugread.h".
1498 * mdebugread.c: Include "mdebugread.h".
1499 (ecoff_relocate_cfi): Delete.
1500 * config/alpha/tm-alpha.h (ecoff_relcate_cfi): Delete.
1501 * config/mips/tm-mips.h (ecoff_relcate_cfi): Delete.
1502 * mdebugread.h (ecoff_relocate_efi): New file.
1503 * Makefile.in: Update dependencies.
1504
1505 * mips-tdep.c (struct frame_extra_info): Delete.
1506 (temp_proc_desc): Delete.
1507
1508 * config/alpha/tm-alpha.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1509 MIPS_EFI_SYMBOL_NAME.
1510 (mips_extra_func_info_t, mips_extra_func_info): Delete.
1511 (struct mdebug_extra_func_info): Replace struct
1512 alpha_extra_func_info and alpha_extra_func_info_t.
1513 * config/mips/tm-mips.h (MDEBUG_EFI_SYMBOL_NAME): Rename
1514 MIPS_EFI_SYMBOL_NAME.
1515 (struct mdebug_extra_func_info): Replace struct
1516 alpha_extra_func_info and alpha_extra_func_info_t.
1517 * objfiles.c, mips-tdep.c, mips-mdebug-tdep.c: Update.
1518 * mdebugread.c, alpha-mdebug-tdep.c:
1519
1520 Suggested by Mark Kettenis.
1521 * config/mips/tm-mips.h (struct mips_extra_func_info): Delete
1522 fields frame_adjust and high_addr.
1523 * mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
1524 (non_heuristic_proc_desc): Delete references.
1525
1526 * mips-tdep.h (MIPS_PRID_REGNUM): Add.
1527 * config/mips/tm-mips.h (PRID_REGNUM): Delete.
1528 * mips-tdep.c: Update.
1529
1530 * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
1531 (MIPS_LAST_EMBED_REGNUM): Add.
1532 * config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
1533 (LAST_EMBED_REGNUM): Delete.
1534 * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
1535
1536 * config/mips/tm-mips.h (PS_REGNUM): Delete.
1537 * mips-tdep.h (MIPS_PS_REGNUM): Add.
1538 * remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
1539 * mips-linux-nat.c: Update.
1540
1541 * mips-tdep.h: Add comments on registers.
1542 (MIPS_UNUSED_REGNUM): Define.
1543 * config/mips/tm-mips.h (ZERO_REGNUM, UNUSED_REGNUM)
1544 (T9_REGNUM, V0_REGNUM, A0_REGNUM): Delete.
1545 * irix5-nat.c, mipsv4-nat.c, mips-linux-tdep.c: Update.
1546 * mips-linux-nat.c, remote-mips.c: Update.
1547
1548 * config/mips/tm-mips.h (t_insn): Delete.
1549 * mips-tdep.c (mips_fetch_instruction, mips_skip_trampoline_code):
1550 Replace t_insn with ULONGEST.
1551
1552 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1553
1554 * mipsnbsd-tdep.c: Include "regset.h" and "gdb_assert.h".
1555 (MIPS_PC_REGNUM, MIPS_FP0_REGNUM, MIPS_FSR_REGNUM)
1556 (MIPSNBSD_NUM_GREGS, MIPSNBSD_NUM_FPREGS): New defines.
1557 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
1558 (mipsnbsd_core_fns, mipsnbsd_elfcore_fns): Remove variables.
1559 (mipsnbsd_core_osabi_sniffer): New function.
1560 (mipsnbsd_init_abi): Set regset_from_core_section.
1561 (_initialize_mipsnbsd_tdep): Remove calls to
1562 deprecated_add_core_fns.
1563 (mipsnbsd_supply_fpregset, mipsnbsd_supply_gregset)
1564 (mipsnbsd_regset_from_core_section): New functions.
1565 (mipsnbsd_gregset, mipsnbsd_fpregset): New variables.
1566 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
1567
1568 * procfs.c (procfs_fetch_registers, procfs_store_registers): Like
1569 Remove optimization for DEPRECATED_FP_REGNUM.
1570
1571 2004-10-30 Andrew Cagney <cagney@gnu.org>
1572
1573 * alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
1574 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
1575 (alpha_setup_arbitrary_frame): Delete.
1576 * mips-tdep.c (setup_arbitrary_frame): Delete.
1577 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
1578 (setup_arbitrary_frame): Delete.
1579 * stack.c (parse_frame_specification_1): When specified, call
1580 create_new_frame with two parameters. Delete #ifdef
1581 SETUP_ARBITRARY_FRAME.
1582
1583 * config/mips/tm-mips.h (MIPS16_INSTLEN, MIPS_NUMREGS)
1584 (MIPS_INSTLEN): Delete.
1585 * mips-tdep.h (enum mips_insn_size): Rename MIPS32_INSN_SIZE and
1586 MIPS16_INSN_SIZE to MIPS_INSN32_SIZE and MIPS_INSN16_SIZE.
1587 * remote-mips.c, mips-tdep.c: Update.
1588
1589 * config/mips/embed.mt (TDEPFILES): Add mips-mdebug-tdep.o.
1590 * mips-mdebug-tdep.h, mips-mdebug-tdep.c: New files.
1591 * mips-tdep.c (mips_mdebug_frame_cache)
1592 (mips_mdebug_frame_this_id, mips_mdebug_frame_prev_register)
1593 (mips_mdebug_frame_unwind, mips_mdebug_frame_sniffer)
1594 (mips_mdebug_frame_base_address, mips_mdebug_frame_sniffer)
1595 (mips_mdebug_frame_base_sniffer, non_heuristic_proc_desc)
1596 (compare_pdr_entries, the_bfd, mips16_fetch_instruction): Delete.
1597 (mips_gdbarch_init): Do not append mdebug sniffers.
1598 (PROC_LOW_ADDR, PROC_HIGH_ADDR, PROC_FRAME_OFFSET)
1599 (PROC_FRAME_REG, PROC_FRAME_ADJUST, PROC_REG_MASK)
1600 (PROC_FREG_MASK, PROC_REG_OFFSET, PROC_FREG_OFFSET, PROC_PC_REG)
1601 (PROC_SYMBOL, _PROC_MAGIC_): Delete.
1602 * Makefile.in: Update dependencies.
1603
1604 * mips-tdep.h (mips_abi_regsize): Declare.
1605 * mips-tdep.c (mips_abi_regsize): Make non-static.
1606
1607 * mips-tdep.c (gdb_print_insn_mips): Simplify.
1608 (make_mips16_addr): Delete.
1609
1610 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1611
1612 * i386-sol2-nat.c: New file.
1613 * Makefile.in (ALLDEPFILES): Add i386-sol2-nat.c and
1614 i386-sol2-tdep.c.
1615 (i386-sol2-nat.o): Update dependencies.
1616 * config/i386/i386sol2.mh (NATDEPFILES): Remove i386v4.o, add
1617 i386-sol2-nat.o.
1618
1619 2004-10-30 Andrew Cagney <cagney@gnu.org>
1620
1621 Total breakage identified by Joel Brobecker.
1622 * mips-tdep.c (after_prologue): Delete.
1623 (mips_skip_prologue): Use skip_prologue_using_sal.
1624 (heuristic_proc_desc): Delete, unused.
1625
1626 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1627
1628 * procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)
1629 (proc_set_fpregs, procfs_fetch_registers, procfs_store_registers):
1630 Cleanup coding style.
1631
1632 2004-10-30 Andrew Cagney <cagney@gnu.org>
1633
1634 * mips-tdep.h (mips_pc_is_mips16): Declare.
1635 * mips-tdep.c (mips_pc_is_mips16): Rename pc_is_mips16, make
1636 non-static. Update calls.
1637
1638 * cli/cli-decode.c (add_setshow_enum_cmd): New function.
1639 * command.h (add_setshow_enum_cmd): Declare.
1640 * mips-tdep.c (_initialize_mips_tdep): Use add_setshow_enum_cmd.
1641
1642 * mips-tdep.c (_initialize_mips_tdep): Use
1643 add_setshow_zinteger_cmd.
1644
1645 * mips-tdep.c (mips_eabi_extract_return_value)
1646 (mips_o64_extract_return_value, mips_o64_store_return_value)
1647 (return_value_location, mips_eabi_reg_struct_has_addr)
1648 (mips_eabi_use_struct_convention)
1649 (mips_eabi_store_return_value): Delete.
1650 (mips_eabi_store_return_value): New function.
1651 (mips_eabi_return_value): New function.
1652 (mips_gdbarch_init): For O64 and EABI, delete
1653 extract_return_value, store_return_value, use_struct_convention
1654 and reg_struct_has_addr, add return_value.
1655
1656 * mips-tdep.c (read_signed_register): Use
1657 regcache_cooked_read_signed.
1658
1659 2004-10-30 Mark Kettenis <kettenis@gnu.org>
1660
1661 * mipsread.c: Cleanup coding style.
1662 (mipscoff_new_init, mipscoff_symfile_init, mipscoff_symfile_read)
1663 (mipscoff_symfile_finish): Remove prototypes.
1664
1665 2004-10-29 Mark Kettenis <kettenis@gnu.org>
1666
1667 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1668 (mips_mdebug_frame_cache, mips16_scan_prologue)
1669 (mips32_scan_prologue, mips_stub_frame_cache)
1670 (heuristic_proc_start, heuristic_proc_desc)
1671 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1672 (mips_n32n64_return_value, mips_o32_push_dummy_call)
1673 (mips_o32_return_value, mips_o64_push_dummy_call)
1674 (mips_step_skips_delay, mips_skip_trampoline_code)
1675 (mips_gdbarch_init): Use MIPS_A0_REGNUM instead of A0_REGNUM,
1676 MIPS_RA_REGNUM instead of RA_REGNUM, MIPS_T9_REGNUM instead of
1677 T9_REGNUM, MIPS_V0_REGNUM instead of V0_REGNUM, MIPS_ZERO_REGNUM
1678 instead of ZERO_REGNUM, MIPS32_SIZE_INSN instead of MIPS_INSTLEN
1679 and MIPS16_INSN_SIZE instead of MIPS16_INSTLEN.
1680 (mips_dump_tdep): Don't print A0_REGNUM, RA_REGNUM,
1681 T9_REGNUM, V0_REGNUM, ZERO_REGNUM, MIPS_INSTLEN and
1682 MIPS16_INSTLEN. Use MIPS_A0_REGNUM instead of A0_REGNUM.
1683 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
1684 (mips_linux_n32n64_sigframe_init): Use MIPS_ZERO_REGNUM instead of
1685 ZERO_REGNUM.
1686 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1687 (mipsnbsd_cannot_store_register): Use MIPS_ZERO_REGNUM instead of
1688 ZERO_REGNUM.
1689 (mipsnbsd_get_longjmp_target): Use MIPS_A0_REGNUM instead of
1690 A0_REGNUM.
1691 * mipsnbsd-nat.c: Include "mips-tdep.h".
1692 (getregs_supplies): Use MIPS_ZERO_REGNUM instead of ZERO_REGNUM.
1693 * Makefile.in (mipsnbsd-nat.o): Update dependencies.
1694
1695 2004-10-29 Andrew Cagney <cagney@gnu.org>
1696
1697 * stack.c (parse_frame_specification_1): New function based on
1698 parse_frame_specification. Add message and selected_frame_p
1699 paramters. Truely always return non-NULL.
1700 (parse_frame_specification): Call parse_frame_specification_1.
1701 (frame_info): Update. Eliminate target_has_stack check.
1702 (select_frame_command): Update.
1703
1704 2004-10-29 Andrew Cagney <cagney@gnu.org>
1705
1706 * frame.h (get_selected_frame): Add message parameter.
1707 * frame.c (get_selected_frame): Add and use message parameter.
1708 * stack.c (current_frame_command, return_command, locals_info)
1709 (catch_info, args_info, up_silently_base, down_silently_base): Use
1710 get_selected_frame with an explicit message.
1711 * thread.c, stack.c, sh-tdep.c, sh64-tdep.c: Update.
1712 * remote-rdp.c, remote-mips.c, remote-e7000.c: Update.
1713 * ocd.c, mi/mi-main.c, mi/mi-cmd-stack.c: Update.
1714 * infrun.c, inflow.c, infcmd.c, frame.c: Update.
1715 * findvar.c, eval.c, corelow.c, bsd-kvm.c: Update.
1716 * breakpoint.c: Update.
1717
1718 2004-10-29 Andrew Cagney <cagney@gnu.org>
1719
1720 * trad-frame.c (trad_frame_get_prev_register): Use
1721 frame_unwind_register instead of frame_register_unwind, do not
1722 recurse the register's location.
1723 * xstormy16-tdep.c (xstormy16_frame_prev_register):
1724 * sparc-tdep.c (sparc32_frame_prev_register): Ditto.
1725 * sparc64-tdep.c (sparc64_frame_prev_register): Ditto.
1726 * sh-tdep.c (sh_frame_prev_register): Ditto.
1727 * m68k-tdep.c (m68k_frame_prev_register): Ditto.
1728 * i386-tdep.c (i386_frame_prev_register): Ditto.
1729 * dwarf2-frame.c (dwarf2_frame_prev_register): Ditto.
1730 * amd64-tdep.c (amd64_frame_prev_register): Ditto.
1731
1732 2004-10-28 Mark Kettenis <kettenis@jive.nl>
1733
1734 * proc-events.c: Fix several coding-style issues. Consistently
1735 use #ifdef instead of #if defined().
1736 (proc_prettyfprint_fault, proc_prettyfprint_faultset): Use
1737 ARRAY_SIZE.
1738 (_initialize_proc_events): New prototype.
1739
1740 * proc-why.c: Fix several coding-style issues.
1741 (proc_prettyfprint_why): Use ARRAY_SIZE.
1742
1743 2004-10-27 Jim Blandy <jimb@redhat.com>
1744
1745 * remote.c (fetch_register_using_p): Construct 'p' packet in a
1746 manner independent of the host byte order.
1747
1748 2004-10-27 Mark Kettenis <kettenis@gnu.org>
1749
1750 * mips-tdep.c (id_delayed): Remove prototype.
1751
1752 2004-10-26 Mark Kettenis <kettenis@gnu.org>
1753
1754 * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
1755 MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
1756 to enum with register numbers.
1757 (enum mips_insn_size): New enum.
1758
1759 2004-10-26 Andrew Cagney <cagney@gnu.org>
1760
1761 * config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
1762 * mips-tdep.c (mips_skip_trampoline_code): Rename mips_skip_stub.
1763 (mips_gdbarch_init): Update.
1764 (mips_dump_tdep): Do not print SKIP_TRAMPOLINE_CODE.
1765
1766 * config/arm/tm-linux.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1767 * config/mips/tm-nbsd.h, config/mips/tm-linux.h: Delete #undef
1768 IN_SOLIB_RETURN_TRAMPOLINE.
1769 * mips-tdep.c (mips_dump_tdep): Do not print
1770 IN_SOLIB_RETURN_TRAMPOLINE.
1771 (mips_in_solib_return_trampoline): Rename mips_in_return_stub.
1772 (mips_gdbarch_init): Update.
1773
1774 * mips-tdep.h (mips_software_single_step): Move to here ...
1775 * config/mips/tm-mips.h: ... from here.
1776 * config/mips/tm-linux.h (SOFTWARE_SINGLE_STEP_P)
1777 (SOFTWARE_SINGLE_STEP): Delete.
1778 * mips-linux-tdep.c (mips_linux_init_abi): Set software_single_step.
1779
1780 2004-10-25 Andrew Cagney <cagney@gnu.org>
1781
1782 * NEWS: Add Changes since GDB 6.3 section.
1783
1784 2004-10-23 Andreas Schwab <schwab@suse.de>
1785
1786 * ada-lang.c (grow_vect): Return the new array instead of
1787 expecting pointer to pointer to avoid violation of aliasing rules.
1788 * ada-lang.h (GROW_VECT): Adapt call to grow_vect.
1789
1790 2004-10-23 Ulrich Weigand <uweigand@de.ibm.com>
1791
1792 * s390-tdep.c (enum pv_boolean): Remove.
1793 (pv_is_array_ref): Remove.
1794 (s390_on_stack): Remove.
1795 (S390_NUM_SPILL_SLOTS): Remove.
1796 (struct s390_prologue_data): Remove members 'spill' and 'back_chain',
1797 add members 'gpr_slot', 'fpr_slot', and 'back_chain_saved_p'.
1798 (s390_store): Track all stores of orginal incoming registers to the
1799 stack constant offsets relative to the CFA, instead of only tracking
1800 stores into specific spill slots.
1801 (s390_load): Likewise.
1802 (s390_analyze_prologue): Adapt to struct s390_prologue_data changes.
1803 (s390_prologue_frame_unwind_cache): Likewise. Only track registers
1804 defined as call-saved by the ABI.
1805 (s390_push_dummy_call): Use bottom of dummy call argument save area
1806 as return value, not the top. Do not store to the called function's
1807 register save area.
1808 (s390_unwind_dummy_id): Adapt accordingly.
1809
1810 2004-10-23 Andrew Cagney <cagney@gnu.org>
1811
1812 * objfiles.h (struct objfile): Rename obj_private to
1813 deprecated_obj_private, sym_private to deprecated_sym_private, and
1814 sym_stab_info to deprecated_sym_stab_info.
1815 * gdb-stabs.h: Update.
1816 * elfread.c: Update.
1817 * dbxread.c: Update.
1818 * coffread.c: Update.
1819 * xcoffread.c: Update.
1820 * symfile.c: Update.
1821 * somread.c: Update.
1822 * nlmread.c: Update.
1823 * mdebugread.c: Update.
1824 * hpread.c: Update.
1825 * coffread.c: Update.
1826
1827 2004-10-23 Mark Kettenis <kettenis@gnu.org>
1828
1829 * mips64obsd-nat.c, mips64obsd-tdep.c: New files.
1830 * configure.host: Add mips64*-*-openbsd*.
1831 * configure.tgt: Add mips64*-*-openbsd*.
1832 * Makefile.in (ALLDEPFILES): Add mips64obsd-nat.o,
1833 mips64obsd-tdep.c.
1834 (mips64obsd-nat.o, mips64obsd-tdep.o): New dependecies.
1835 * config/mips/obsd64.mh, config/mips/obsd64.mt: New files.
1836
1837 2004-10-21 Joel Brobecker <brobecker@gnat.com>
1838
1839 * symtab.c (symbol_search_name): Minor reformatting.
1840
1841 2004-10-20 Joel Brobecker <brobecker@gnat.com>
1842
1843 * symtab.h: Fix typo in comment.
1844
1845 2004-10-19 Mark Kettenis <kettenis@gnu.org>
1846
1847 * dwarf2read.c (struct comp_unit_head): Fix coding style.
1848 (dwarf_decode_line_header): Likewise.
1849
1850 2004-10-19 Michael Chastain <mec.gnu@mindspring.com>
1851
1852 * NEWS: GDB works with GCC -feliminate-dwarf2-dups.
1853
1854 2004-10-19 Andrew Cagney <cagney@gnu.org>
1855
1856 GDB 6.3 branch created.
1857 * version.in: Bump to version 6.3.50_2004-10-19-cvs.
1858
1859 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1860
1861 * dwarf2read.c (set_cu_language): Set language to Ada for
1862 DW_LANG_Ada83 and DW_LANG_Ada95.
1863
1864 2004-10-15 Michael Chastain <mec.gnu@mindspring.com>
1865
1866 From Andreas Schwab <schwab@suse.de>:
1867 * Makefile.in (.y.c, .l.c.): Fix the substitutions for
1868 for xmalloc and xrealloc.
1869
1870 2004-10-15 Andrew Cagney <cagney@gnu.org>
1871
1872 * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out.
1873 * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>.
1874 * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc.
1875 Update dependencies.
1876
1877 2004-10-15 Paul Hilfinger <Hilfinger@gnat.com>
1878
1879 * ada-lang.c (ada_lookup_symbol): Correct comment.
1880 (ada_evaluate_subexp): Change error message for
1881 OP_FUNCALL case so as not to indicate an internal error.
1882
1883 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1884
1885 Committed by Paul Hilfinger.
1886 * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus
1887 type sizes in XVE/XVU types, and emit a warning when that happens,
1888 instead of rounding up the size of the resulting type.
1889 Some minor reformatting.
1890 (ada_is_aligner_type): Do not consider a type as an aligner type
1891 if there is a corresponding XVS type as well.
1892 (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we
1893 have several levels of pointer indirection to the array.
1894
1895 2004-10-15 Jerome Guitton <guitton@gnat.com>
1896
1897 Committed by Paul Hilfinger.
1898 * ada-lang.c (check_size): New function.
1899 (coerce_unspec_val_to_type): call check_size to make sure
1900 that the object size is reasonable.
1901 (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE:
1902 Implements the case when we get a reference when we evaluate
1903 the expression of one of the bounds of the slice.
1904 (ada_value_struct_elt): when a packed array field is
1905 a reference, use ada_coerce_ref to dereference it; use
1906 ada_value_ind only if it is a pointer.
1907
1908 2004-10-15 Joel Brobecker <brobecker@gnat.com>
1909
1910 * mips-tdep.c (mips32_scan_prologue): Move the implementation up
1911 a bit to avoid the necessity of an advance declaration. Remove
1912 declaration.
1913 (set_reg_offset): Move implemenation up.
1914 (mips16_get_imm): Likewise.
1915 (mips16_scan_prologue): Likewise.
1916 (reset_saved_regs): Likewise.
1917 (mips32_scan_prologue): Likewise.
1918
1919 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1920
1921 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.
1922 Remove sp as a parameter, compute it internally instead. Move
1923 prologue scanning limit from heuristic_proc_desc to here.
1924 (mips16_scan_prologue): Likewise.
1925 (mips_insn16_frame_cache): Replace call to heuristic_proc_desc
1926 by call to mips16_scan_prologue.
1927 (mips_insn32_frame_cache): Replace call to heuristic_proc_desc
1928 by call to mips32_scan_prologue.
1929 (heuristic_proc_desc): Remove code that's no longer necessary.
1930 Update calls to mips16_scan_prologue and mips32_scan_prologue.
1931 (mips_skip_prologue): Update calls to mips16_scan_prologue
1932 and mips32_scan_prologue.
1933
1934 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1935
1936 * mips-tdep.c (mips16_scan_prologue): Merge code from
1937 mips16_skip_prologue. Now return the address of the first
1938 instruction past the function prologue.
1939 (mips16_skip_prologue): Remove, no longer necessary.
1940 (mips_skip_prologue): Replace call to mips16_skip_prologue
1941 by call to mips16_scan_prologue.
1942
1943 2004-10-14 Joel Brobecker <brobecker@gnat.com>
1944
1945 * mips-tdep.c (mips32_scan_prologue): Merge code from
1946 mips32_skip_prologue. Now return the address of the first
1947 instruction past the function prologue.
1948 (mips32_skip_prologue): Remove. No longer necessary.
1949 (mips16_skip_prologue): Add parameter end_pc instead of
1950 computing it.
1951 (mips_skip_prologue): Compute the upper limit for the
1952 prologue scanning. Update call to mips16_skip_prologue.
1953 Replace call to mips32_skip_prologue by call to
1954 mips32_scan_prologue.
1955
1956 2004-10-14 Mark Kettenis <kettenis@gnu.org>
1957
1958 * hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
1959 NetBSD system call stubs that store %rp in the ERP slot of the
1960 stack frame.
1961
1962 * source.c: Always define O_BINARY to 0 if not defined already.
1963 (openp): Unconditionally use O_BINARY.
1964
1965 * top.c (gdb_readline): Always accept "\r\n" as a line-ending.
1966 * event-top.c (gdb_readline2): Likewise.
1967
1968 2004-10-14 Orjan Friberg <orjanf@axis.com>
1969
1970 * cris-tdep.c (_initialize_cris_tdep): Re-add call to
1971 deprecated_add_core_fns which was removed by mistake.
1972
1973 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1974
1975 * ia64-linux-nat.c (fill_gregset, fill_fpregset): Replace
1976 references to deprecated_registers[] with equivalent code.
1977
1978 2004-10-13 Kevin Buettner <kevinb@redhat.com>
1979
1980 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references to
1981 ``deprecated_registers'' with equivalent code. Use gdb_assert()
1982 instead of explicit test and print statement.
1983
1984 2004-10-12 Mark Kettenis <kettenis@gnu.org>
1985
1986 * sparc-nat.c: Include "inf-ptrace.h".
1987 (sparc_target): New function.
1988 * sparc-nat.h: Update copyright year.
1989 (sparc_target): New prototype.
1990 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
1991 (_initialize_sparcnbsd_nat): Construct and add target vector.
1992 * sparc64nbsd-nat.c: Include "target.h".
1993 (_initialize_sparc64nbsd_nat): Construct and add target vector.
1994 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
1995 Update dependencies.
1996 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
1997 inftarg.o, add inf-ptrace.o.
1998 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
1999 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
2000 (NAT_FILE): Set to nm-bsd.h.
2001 (LOADLIBES): New variable.
2002 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
2003 infarg.o, add inf-ptrace.o.
2004 * config/sparc/nm-nbsdaout.h: Remove file.
2005 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
2006 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
2007 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
2008
2009 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
2010 "fopen-same.h". Update comment.
2011
2012 2004-10-11 Mark Kettenis <kettenis@gnu.org>
2013
2014 * i386gnu-nat.c: Include "gdb_string.h".
2015 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
2016 registers when the floating-point state isn't initialized.
2017 * Makefile.in (i386gnu-nat.o): Update dependencies.
2018
2019 2004-10-11 David Anderson <davea@sgi.com>
2020
2021 * regcache.c (regcache_raw_read): Comment was missing "to".
2022 Extraneous ' removed.
2023 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
2024 comment now describes use.
2025
2026 2004-10-11 Orjan Friberg <orjanf@axis.com>
2027
2028 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
2029 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
2030 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
2031 (cris_sigtramp_frame_sniffer): New functions.
2032 (cris_gdbarch_init): Hook in signal trampoline unwinder.
2033 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
2034 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
2035 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
2036 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
2037 command.
2038 (cris_version_update): Remove, replace with ...
2039 (set_cris_version): New function.
2040 (struct gdbarch_tdep, cris_mode, cris_mode_update)
2041 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
2042 (_initialize_cris_tdep): Remove CRIS mode command.
2043 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
2044 cris-fpless-backtrace command.
2045 (cris_scan_prologue): Fix prologue scanning limit.
2046 (cris_register_type): Update to reflect actual registers.
2047 (cris_register_bytes_ok) Remove.
2048 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
2049 Remove set_gdbarch_deprecated_register_size,
2050 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
2051
2052 2004-10-10 Andrew Cagney <cagney@gnu.org>
2053
2054 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
2055 comment.
2056
2057 2004-10-10 Joel Brobecker <brobecker@gnat.com>
2058
2059 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
2060
2061 2004-10-10 Joel Brobecker <brobecker@gnat.com>
2062
2063 * mips-tdep.c (mips16_scan_prologue): Renames
2064 mips16_heuristic_proc_desc. Update comment.
2065 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
2066 (heuristic_proc_desc): Update calls to the 2 functions above.
2067
2068 2004-10-10 Joel Brobecker <brobecker@gnat.com>
2069
2070 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
2071 Update comments. Also immediately return empty cache when the start
2072 address of our function could not be found.
2073 (mips_insn32_frame_cache): Likewise.
2074
2075 2004-10-10 Joel Brobecker <brobecker@gnat.com>
2076
2077 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
2078 (mips_insn16_frame_cache): Pass frame cache in call to
2079 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
2080 Remove code that became redundant as a consequence.
2081 (mips32_heuristic_proc_desc): No longer compute a fake
2082 procedure descriptor. Compute the full frame cache instead.
2083 Some minor comment reformatting.
2084
2085 2004-10-10 Jim Blandy <jimb@redhat.com>
2086
2087 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
2088 reader, tracing bytecode stuff): Remove self.
2089
2090 2004-10-10 Mark Kettenis <kettenis@gnu.org>
2091
2092 * sparc64-linux-tdep.c: Update copyright year. Don't include
2093 "solib-svr4.h".
2094 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
2095 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
2096 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
2097
2098 * sparc-linux-tdep.c: Update copyright year.
2099 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
2100 to struct frame_info *. Use safe_frame_unwind_memory instead of
2101 deprecated_read_memory_nobpt.
2102 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
2103 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
2104 changed signature of sparc_linux_sigtramp_start.
2105 (sparc32_linux_pc_in_sigtramp): Remove function.
2106 (sparc32_linux_sigtramp_p): New function.
2107 (sparc32_linux_sigtramp_frame_sniffer): Use
2108 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
2109
2110 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
2111 Remove function.
2112 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
2113
2114 * ada-lang.c (lim_warning): Re-implement as a varargs function.
2115 (decode_packed_array_type, value_subscript_packed)
2116 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
2117 argument in call to lim_warning.
2118
2119 * configure.in: Really disable the TUI if an enhanced curses
2120 library isn't found.
2121 * configure: Regenerate.
2122
2123 2004-10-09 Mark Kettenis <kettenis@gnu.org>
2124
2125 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
2126 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
2127 * config/i386/nm-nbsdaout.h: Remove file.
2128 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
2129 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
2130 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
2131 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
2132 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
2133 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
2134 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
2135 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
2136 (ldd, ld_un, ld_2): Remove defines.
2137 * config/i386/nm-obsd.h: Likewise.
2138
2139 2004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
2140
2141 * ada-lex.l: Remove useless rule whose right-context clause
2142 causes unreferenced static function warning for yyrealloc.
2143 (ada_flex_use): Remove the artificial reference to yyrealloc.
2144
2145 2004-10-08 Andrew Cagney <cagney@gnu.org>
2146
2147 * target.h (struct target_ops): Rename to_xfer_memory to
2148 deprecated_xfer_memory.
2149 * target.c: Update.
2150 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
2151 * wince.c: Update.
2152 * win32-nat.c: Update.
2153 * v850ice.c: Update.
2154 * uw-thread.c: Update.
2155 * thread-db.c: Update.
2156 * sol-thread.c: Update.
2157 * remote.c: Update.
2158 * remote-vx.c: Update.
2159 * remote-st.c: Update.
2160 * remote-sim.c: Update.
2161 * remote-sds.c: Update.
2162 * remote-rdp.c: Update.
2163 * remote-rdi.c: Update.
2164 * remote-mips.c: Update.
2165 * remote-m32r-sdi.c: Update.
2166 * remote-e7000.c: Update.
2167 * procfs.c: Update.
2168 * ppc-bdm.c: Update.
2169 * nto-procfs.c: Update.
2170 * monitor.c: Update.
2171 * linux-nat.c: Update.
2172 * inftarg.c: Update.
2173 * hpux-thread.c: Update.
2174 * go32-nat.c: Update.
2175 * gnu-nat.c: Update.
2176 * exec.c: Update.
2177 * corelow.c: Update.
2178 * bsd-kvm.c: Update.
2179 * aix-thread.c: Update.
2180
2181 2004-10-08 Andrew Cagney <cagney@gnu.org>
2182
2183 * target.c (debug_target): Move to near start of file.
2184 (target_stopped_data_address_p): Re-org logic, add casts.
2185
2186 2004-10-02 Mark Kettenis <kettenis@gnu.org>
2187
2188 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
2189 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
2190 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
2191 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
2192 New defines.
2193
2194 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
2195
2196 * target.h (to_stopped_data_address): Change prototype to
2197 take a CORE_ADDR pointer and return an int.
2198 * target.c (update_current_target): Change to_stopped_data_address
2199 to match new prototype.
2200 (debug_to_stopped_data_address): Change appropriately.
2201 * breakpoint.c (bpstat_stop_status): Change call to
2202 target_stopped_data_address to use new prototype.
2203 * frv-tdep.c (frv_have_stopped_data_address): New function.
2204 (frv_stopped_data_address): Change to new prototype and
2205 functionality.
2206 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
2207 prototype and functionality.
2208 (ia64_stopped_by_watchpoint): New function.
2209 * i386-nat.c (i386_stopped_data_address): Change to new
2210 prototype and functionality.
2211 (i386_stopped_by_watchpoint): New function.
2212 * remote.c (remote_stopped_data_address): Change to new prototype
2213 and functionality.
2214 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
2215 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
2216 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
2217 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
2218 new i386_stopped_by_watchpoint function.
2219 (i386_stopped_by_watchpoint): New prototype.
2220 (i386_stoppped_data_address): Change to new prototype.
2221 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
2222 new ia64_stopped_by_watchpoint function.
2223 (ia64_stopped_by_watchpoint): New prototype.
2224 (ia64_stopped_data_address): Ditto.
2225
2226 2004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
2227
2228 * ada-typeprint.c (ada_print_type): Use int_string for printing
2229 modulus of modular type.
2230 * ada-lang.h (ada_modulus): Change return type to unsigned.
2231 * ada-lang.c (ada_language_arch_info): Correct type of
2232 string_char_type.
2233 (ada_modulus): Return unsigned result.
2234 (ada_lookup_symbol): Remove user disambiguation and modify comment
2235 accordingly.
2236
2237 2004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
2238
2239 Committed by Paul Hilfinger.
2240 * ada-lang.c (decode_packed_array): On big-endian targets,
2241 left-justify the value if it comes with a modular type.
2242
2243 2004-10-08 Joel Brobecker <brobecker@gnat.com>
2244
2245 Committed by Paul Hilfinger.
2246 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
2247 (is_name_suffix): Add support for "___JM" suffixes.
2248 (ada_check_typedef): Renames ada_completed_type.
2249 Update all users of CHECK_TYPEDEF, check_typedef, and
2250 ada_complete_type to call ada_check_typedef.
2251 * ada-typeprint.c: Likewise.
2252 * ada-valprint.c: Likewise.
2253
2254 2004-10-08 Corinna Vinschen <vinschen@redhat.com>
2255
2256 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
2257
2258 2004-10-08 Nick Roberts <nickrob@snap.net.nz>
2259
2260 * MAINTAINERS: Update e-mail address.
2261
2262 2004-10-07 Daniel Jacobowitz <dan@debian.org>
2263
2264 From Maciej W. Rozycki <macro@mips.com>:
2265 * mips-tdep.c (mips32_next_pc): Check the register's contents,
2266 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
2267
2268 2004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
2269
2270 * m32r-tdep.c (decode_prologue): Support functions written
2271 in assembler language. Recognize trap instructions as the
2272 end of prologue.
2273 (m32r_frame_unwind_cache): Ditto.
2274 (m32r_skip_prologue): Extend search limit. Quit analyzing
2275 prologue if pc's location is not readable.
2276
2277 2004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
2278
2279 * Makefile.in (.l.c): Do conversions of names of alloc and free
2280 functions that are done for .y.c files, plus special one
2281 for yy_flex_realloc. Also, correct missing-file tests here.
2282 * ada-lex.l (malloc, free): Remove macros.
2283 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
2284 xrealloc.
2285 (ada_flex_use): Dummy definition to remove warnings about unused
2286 functions.
2287 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
2288 to suppress warning.
2289
2290 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2291
2292 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
2293 RETURN_VALUE.
2294 (sh_return_value_fpu): Ditto for CPUs with FPU.
2295 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
2296 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
2297 Install sh_return_value_nofpu resp. sh_return_value_fpu as
2298 RETURN_VALUE functions.
2299
2300 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2301
2302 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
2303 (sh_pseudo_register_write): Ditto.
2304
2305 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2306
2307 * sh-tdep.c (IS_MACL_STS): New define.
2308 (IS_MOVI20): Ditto.
2309 (IS_MACL_LDS): Ditto.
2310 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
2311 instructions in prologue.
2312 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
2313 instructions in epilogue.
2314
2315 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2316
2317 * sh-tdep.c (SH_NUM_REGS): Define as 67.
2318 (sh_sh_register_name): Add eight empty register names.
2319 (sh_sh3_register_name): Ditto.
2320 (sh_sh3e_register_name): Ditto.
2321 (sh_sh2e_register_name): Ditto.
2322 (sh_sh2a_register_name): New function, defining SH2A register set.
2323 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
2324 in nofpu case.
2325 (sh_sh_dsp_register_name): Add eight empty register names.
2326 (sh_sh3_dsp_register_name): Ditto.
2327 (sh_sh4_register_name): Ditto.
2328 (sh_sh4_nofpu_register_name): Ditto.
2329 (sh_sh4al_dsp_register_name): Ditto.
2330 (sh2a_show_regs): New function.
2331 (sh2a_nofpu_show_regs): New function.
2332 (sh_sh2a_register_type): New function.
2333 (do_bank_register_info): New function.
2334 (sh_print_pseudo_register): Call do_bank_register_info.
2335 Call sh_print_pseudo_register for valid "bank" register.
2336 (sh_sh2a_register_sim_regno): New function.
2337 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
2338 Increment pseudo register count by one for all sh variants with
2339 pseudo registers to accomodate pseudo bank register.
2340 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
2341 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
2342 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
2343 Increment pseudo register numbers.
2344
2345 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
2346
2347 * dwarf2read.c (read_subroutine_type): Call make_function_type
2348 instead of lookup_function_type.
2349
2350 2004-10-05 Jim Blandy <jimb@redhat.com>
2351
2352 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
2353 (Previous change missed some uses.)
2354
2355 2004-10-05 Andrew Cagney <cagney@gnu.org>
2356
2357 * target.h (deprecated_child_ops): Rename child_ops.
2358 * wince.c: Update copyright. Rename child_ops.
2359 * win32-nat.c: Rename child_ops.
2360 * target.c: Rename child_ops.
2361 * rs6000-nat.c: Rename child_ops.
2362 * linux-nat.c: Rename child_ops.
2363 * infttrace.c: Rename child_ops.
2364 * inftarg.c: Rename child_ops.
2365 * infptrace.c: Rename child_ops.
2366 * hppah-nat.c: Update copyright. Rename child_ops.
2367 * hpux-thread.c: Update copyright. Rename child_ops.
2368
2369 2004-10-05 Daniel Jacobowitz <dan@debian.org>
2370
2371 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
2372
2373 2004-10-05 Andrew Cagney <cagney@gnu.org>
2374
2375 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
2376
2377 2004-10-05 Daniel Jacobowitz <dan@debian.org>
2378
2379 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
2380 (die_ref_table): Remove.
2381 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
2382 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
2383 the usage of this type.
2384 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
2385 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
2386 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
2387 (dwarf2_create_include_psymtab): Update comment.
2388 (find_partial_die): Remove third argument. Remove unreachable call
2389 to error ().
2390 (dwarf2_find_containing_comp_unit): Update comments. Change one
2391 assertion to an error. Remove an unreachable error.
2392 (dwarf2_find_comp_unit): Update comments.
2393 (type_at_offset): Remove dead code.
2394 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
2395 (store_in_ref_table): Add CU argument.
2396 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
2397 inter-compilation-unit references.
2398 (load_full_comp_unit, process_full_comp_unit): New functions, based
2399 on psymtab_to_symtab_1.
2400 (psymtab_to_symtab_1): Use them.
2401 (dwarf2_add_dependence): New function.
2402 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
2403 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
2404 (partial_die_parent_scope, guess_structure_name): Update for changes
2405 to find_partial_die.
2406 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
2407 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
2408 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
2409 (read_die_and_children): Update call to store_in_ref_table.
2410 (do_free_die_list_cleanup): Remove.
2411 (fixup_partial_die): Update for changes to find_partial_die.
2412 (read_full_die): Handle queueing absolute references.
2413 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
2414 (dwarf2_attr, die_specification, die_type)
2415 (die_containing_type, dwarf2_extension): Update calls to
2416 follow_die_ref.
2417 (dump_die): Update DW_FORM_ref* handling.
2418 (dwarf2_get_ref_die_offset): Likewise.
2419 (free_one_comp_unit): Release the dies list.
2420 (dwarf2_mark_helper): New function.
2421 (dwarf2_mark): Use it.
2422
2423 2004-10-05 Mark Kettenis <kettenis@jive.nl>
2424
2425 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
2426 when writing to memory.
2427
2428 2004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
2429
2430 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
2431 (m32r_extract_struct_value_address): Delete function.
2432 (m32r_return_value): New function.
2433 (m32r_gdbarch_init): Instead of store_return_value,
2434 extract_return_value, deprecated_extract_struct_value_address
2435 and deprecated_use_struct_convention, set return_value.
2436
2437 2004-10-03 Daniel Jacobowitz <dan@debian.org>
2438
2439 * dwarf2read.c (read_subrange_type): Add comment for variable
2440 sized arrays.
2441
2442 2004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
2443
2444 * Makefile.in (.l.c): Modify rule for compatibility with recent
2445 versions of flex, and remove most command-line options.
2446 * ada-lex.l: Add %options line in place of -I -i and -s command-line
2447 options.
2448
2449 2004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
2450
2451 Turn on initial Ada support (mainly expression evaluation).
2452
2453 * Makefile.in (SFILES): Remove ada-tasks.c.
2454 (HFILES_NO_SRCDIR): Add ada-lang.h.
2455 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
2456 (YYOBJ): Add ada-exp.o.
2457 (rule .l.c): Generalize to not mention ada.
2458 * symtab.c: Include ada-lang.h.
2459 (symbol_natural_name, symbol_demangled_name)
2460 (symbol_search_name): Add Ada case.
2461
2462 2004-10-01 Andrew Cagney <cagney@gnu.org>
2463
2464 * Makefile.in (COMMON_OBS): Add inf-child.o.
2465 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
2466 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2467 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2468 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
2469 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
2470 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
2471 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
2472 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
2473 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
2474 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
2475 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
2476 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
2477 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
2478
2479 * target.c (xfer_using_stratum): Change return type to LONGEST.
2480 On each iteration offset, readbuf and writebuf.
2481 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
2482 partial_length, and read/modify/write predicate, update comments.
2483 Pass buffer.word to ptrace write.
2484
2485 2004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2486
2487 * symfile.c (init_filename_language_table): Add extensions for
2488 Ada.
2489 * defs.h (enum language): Add language_ada.
2490 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
2491 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
2492 (add_symbols_from_enclosing_procs): Make a no-op for now.
2493 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
2494 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
2495 (find_line_in_linetable, find_next_line_in_linetable)
2496 (read_all_symtabs, is_plausible_func_for_line)
2497 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
2498 (is_runtime_sym_defined, check_size): Remove declaration.
2499 (function_name_from_pc, ada_translate_error_message)
2500 (ada_lookup_minimal_symbol): Remove definition.
2501 (ada_add_block_symbols): Remove useless label.
2502 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
2503 useless declaration.
2504 (ada_is_exception_sym): Likewise.
2505
2506 2004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
2507
2508 Add m32r-linux support.
2509 * configure.tgt: Add m32r*-*-linux*.
2510 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
2511 and m32r-linux-tdep.c.
2512 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
2513 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
2514 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
2515 m32r-linux-tdep.c.
2516 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
2517 config/m32r/linux.mh, config/m32r/linux.mt,
2518 config/m32r/nm-linux.h: New files.
2519
2520 2004-09-30 Joel Brobecker <brobecker@gnat.com>
2521
2522 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
2523 (mips32_fetch_instruction): Remove, unused.
2524
2525 2004-09-30 Joel Brobecker <brobecker@gnat.com>
2526
2527 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
2528 conditions that will always be true.
2529
2530 2004-09-30 Mark Kettenis <kettenis@gnu.org>
2531
2532 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
2533 (vaxbsd_fetch_inferior_registers): Rename from
2534 fetch_inferior_registers. Make static.
2535 (vaxbsd_store_inferior_registers): Rename from
2536 store_inferior_registers. Make static.
2537 (_initialize_vaxbsd_nat): Construct and add target vector.
2538 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
2539 inftarg.o. Add inf-child.o and inf-ptrace.o.
2540 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
2541 inftarg.o. Add inf-child.o and inf-ptrace.o.
2542 (NAT_FILE): Remove.
2543 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
2544 inftarg.o. Add inf-child.o and inf-ptrace.o.
2545 (NAT_FILE): Remove.
2546 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2547
2548 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
2549 (m88kbsd_fetch_inferior_registers): Rename from
2550 fetch_inferior_registers. Make static.
2551 (m88kbsd_store_inferior_registers): Rename from
2552 store_inferior_registers. Make static.
2553 (_initialize_m88kbsd_nat): New prototype and function.
2554 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
2555 inftarg.o. Add inf-child.o and inf-ptrace.o.
2556 (NAT_FILE): Remove.
2557 * Makefile.in (m88kbsd-nat.o): Update dependencies.
2558
2559 2004-09-30 Andrew Cagney <cagney@gnu.org>
2560
2561 * target.c (target_xfer_partial): New function.
2562 (target_read_memory_partial, target_write_memory_partial)
2563 (default_xfer_partial, target_read_partial, target_write_partial)
2564 (xfer_using_stratum): Use.
2565 (debug_to_xfer_partial): Delete function.
2566 (setup_target_debug): Do not override to_xfer_partial.
2567
2568 2004-09-30 Mark Kettenis <kettenis@chello.nl>
2569
2570 * fork-child.c: Update copyright year. Fix coding style.
2571
2572 2004-09-29 Mark Kettenis <kettenis@gnu.org>
2573
2574 * defs.h (msavestring, mstrsave): Remove prototypes.
2575 * utils.c (msavestring, mstrsave): Remove functions.
2576 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
2577 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
2578 of mstrsave.
2579 * source.c (find_and_open_source): Use xstrdup instead of
2580 mstrsave.
2581
2582 2004-09-30 Andrew Cagney <cagney@gnu.org>
2583
2584 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
2585 (inf_ptrace_xfer_memory): Delete.
2586 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
2587 (target_read_memory, target_write_memory): Use xfer_using_stratum
2588 when target_xfer_partial_p.
2589 (debug_target): Move to start of file.
2590 (target_read_memory_partial, target_write_memory_partial): Use
2591 to_xfer_partial when target_xfer_partial_p.
2592
2593 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
2594 inf_ptrace_xfer_memory with equivalent code.
2595 * inftarg.c (child_xfer_partial): When performing a write, pass
2596 writebuf to child_xfer_memory.
2597
2598 * target.c (target_read_string): Use target_read_memory instead of
2599 target_xfer_memory.
2600
2601 2004-09-29 Andrew Cagney <cagney@gnu.org>
2602
2603 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
2604 the address of status.
2605
2606 * infptrace.c (ptrace_wait): Mention problem with HPUX.
2607 (kill_inferior): Inline ptrace_wait call.
2608 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
2609 * inftarg.c (child_wait): Inline ptrace_wait call.
2610
2611 * target.h (struct target_ops): Delete field to_post_wait.
2612 (target_post_wait): Delete macro.
2613 (child_post_wait): Delete declaration.
2614 * target.c (update_current_target, update_current_target)
2615 (debug_to_post_wait, setup_target_debug): Delete functions and
2616 references.
2617 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
2618 * inftarg.c (child_post_wait): Delete.
2619 (init_child_ops): Do not set to_post_wait.
2620 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
2621 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
2622 * inf-child.c (inf_child_post_wait): Delete.
2623 (inf_child_target): Do not set to_post_wait.
2624 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
2625 (inf_ptrace_target): Do not set to_post_wait.
2626
2627 * wince.c (child_ops): Delete.
2628 * win32-nat.c (child_ops): Delete.
2629
2630 * inftarg.c (inftarg_set_find_memory_regions)
2631 (inftarg_set_make_corefile_notes): Delete functions.
2632 (_initialize_linux_nat): Inline calls.
2633
2634 * target.h (child_ops): Declare.
2635 * inftarg.c (child_ops): Move from here ...
2636 * target.c (child_ops): ... to here.
2637 * wince.c (child_ops): Delete extern declaration.
2638 * win32-nat.c (child_ops): Delete extern declaration.
2639 * linux-nat.c (child_ops): Delete extern declaration.
2640 * hpux-thread.c (child_ops): Delete extern declaration.
2641
2642 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2643
2644 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
2645
2646 2004-09-28 Mark Kettenis <kettenis@gnu.org>
2647
2648 * configure.in: Only set host_makefile_frag when building a native
2649 debugger.
2650 * configure: Regenerate.
2651
2652 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
2653 for OpenBSD ELF.
2654
2655 2004-09-28 Andrew Cagney <cagney@gnu.org>
2656
2657 Problem identified by Paul Hilfinger.
2658 * Makefile.in (ada_lex_c): Define.
2659 (ada-lex.o): Delete rule.
2660
2661 * linux-proc.c: Delete file.
2662 * Makefile.in: Update.
2663 * config/sparc/linux64.mh (NATDEPFILES):
2664 * config/sparc/linux.mh (NATDEPFILES): Update.
2665 * config/s390/s390.mh (NATDEPFILES): Update.
2666 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
2667 * config/powerpc/linux.mh (NATDEPFILES): Update.
2668 * config/pa/linux.mh (NATDEPFILES): Update.
2669 * config/mips/linux.mh (NATDEPFILES): Update.
2670 * config/m68k/linux.mh (NATDEPFILES): Update.
2671 * config/ia64/linux.mh (NATDEPFILES): Update.
2672 * config/i386/linux64.mh (NATDEPFILES): Update.
2673 * config/i386/linux.mh (NATDEPFILES): Update.
2674 * config/arm/linux.mh (NATDEPFILES): Update.
2675 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
2676 * linux-nat.c: Update copyright. Include <sys/param.h>,
2677 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
2678 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
2679 (O_LARGEFILE): Possibly define.
2680 (_initialize_linux_nat, linux_proc_pending_signals)
2681 (add_line_to_sigset, linux_proc_xfer_memory)
2682 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
2683 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
2684 (struct linux_corefile_thread_data)
2685 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
2686 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
2687
2688 2004-09-16 Andrew Cagney <cagney@gnu.org>
2689
2690 * lin-lwp.c: Delete file.
2691 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
2692 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
2693 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
2694 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
2695 (linux_nat_attach, detach_callback, linux_nat_detach)
2696 (resume_callback, resume_clear_callback, linux_nat_resume)
2697 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
2698 (stop_wait_callback, linux_nat_has_pending, flush_callback)
2699 (status_callback, running_callback, count_events_callback)
2700 (select_singlestep_lwp_callback, select_event_lwp_callback)
2701 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
2702 (child_wait, stop_and_resume_callback, linux_nat_wait)
2703 (kill_callback, kill_wait_callback, linux_nat_kill)
2704 (linux_nat_create_inferior, linux_nat_mourn_inferior)
2705 (linux_nat_xfer_memory, linux_nat_thread_alive)
2706 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
2707 (_initialize_linux_nat): New functions.
2708 * Makefile.in: Update all dependencies.
2709 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2710 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2711 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
2712 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2713 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2714 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2715 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2716 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2717 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2718 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
2719 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2720 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
2721 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
2722
2723 2004-09-27 Mark Kettenis <kettenis@gnu.org>
2724
2725 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
2726 config/i386/obsd64.mh (NAT_FILE): Remove variable.
2727
2728 * configure.in: Don't comment out NATDEPFILES in the generated
2729 Makefile if NAT_FILE is unset.
2730 * configure: Regenerate.
2731
2732 2004-09-27 Andrew Cagney <cagney@gnu.org>
2733
2734 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
2735 (insert_step_resume_breakpoint): Delete.
2736 (insert_step_resume_breakpoint_at_frame): New function.
2737 (insert_step_resume_breakpoint_at_sal): New function.
2738 (handle_inferior_event, step_into_function)
2739 (insert_step_resume_breakpoint): Simplify by using same.
2740
2741 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
2742
2743 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2744
2745 * fbsd-proc.c: Remove file.
2746 * Makefile.in (fbsd-proc.o): Remove dependency.
2747
2748 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
2749 code together.
2750
2751 * config/i386/nm-fbsd64.h: Remove file.
2752 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
2753
2754 2004-09-26 Mark Kettenis <kettenis@gnu.org>
2755
2756 * amd64-nat.h: Update copyright year.
2757 (amd64bsd_target): New prototype.
2758 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
2759 (amd64bsd_target): New function.
2760 (amd64bsd_fetch_inferior_registers): Rename from
2761 fetch_inferior_registers. Make static.
2762 (amd64bsd_store_inferior_registers): Rename from
2763 store_inferior_registers. Make static.
2764 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
2765 (_initialize_amd64fbsd_nat): Construct and add target vector.
2766 * amd64nbsd-nat.o: Include "target.h".
2767 (_initialize_amd64nbsd_nat): Construct and add target vector.
2768 * amd64obsd-nat.c: Include "target.h".
2769 (_initialize_amd64obsd_nat): Construct and add target vector.
2770 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
2771 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
2772 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
2773 fbsd-nat.o.
2774 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
2775 Remove infptrace.o and inftarg.o. Add inf-child.o and
2776 inf-ptrace.o.
2777 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
2778 (amd64obsd-nat.o): Update dependencies.
2779
2780 2004-09-25 Mark Kettenis <kettenis@gnu.org>
2781
2782 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
2783 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
2784 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
2785 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
2786 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
2787
2788 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
2789 Inline attach call.
2790 (inf_ptrace_detach): Inline detach call.
2791
2792 * configure.in: Check for waddstr instead of mvwaddstr when
2793 searching for curses library. Check for wborder.
2794 * configure, config.in: Regenerate.
2795 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
2796 available.
2797
2798 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
2799
2800 2004-09-24 Robert Picco <Robert.Picco@hp.com>
2801
2802 Committed by Andrew Cagney.
2803 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
2804 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
2805 configuration.
2806 (fetch_register_using_p): Implement 'p' packet. Based on code by
2807 Fernando Nasser.
2808 (remote_fetch_registers): Call fetch_register_using_p.
2809 (init_all_packet_configs, show_remote_cmd)
2810 (_initialize_remote): Add p-packet.
2811
2812 2004-09-24 Mark Kettenis <kettenis@gnu.org>
2813
2814 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
2815 instead of call_ptrace. Call wait directly instead of
2816 ptrace_wait.
2817 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
2818 (inf_ptrace_wait): Inline ptrace_wait call.
2819
2820 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2821
2822 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
2823 rolled back instead.
2824
2825 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
2826
2827 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
2828 the new argument order.
2829
2830 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
2831
2832 * MAINTAINERS: Remove "broken" from XStormy16 entry.
2833 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
2834 (struct gdbarch_tdep): Remove.
2835 (struct xstormy16_frame_cache): New frame cache structure.
2836 (xstormy16_register_byte, xstormy16_register_raw_size)
2837 (xstormy16_reg_virtual_type, xstormy16_register_type)
2838 (xstormy16_push_arguments, xstormy16_push_return_address)
2839 (xstormy16_pop_frame, xstormy16_store_struct_return)
2840 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
2841 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
2842 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
2843 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
2844 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
2845 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
2846 (xstormy16_use_struct_convention): Drop gcc_p parameter.
2847 (xstormy16_extract_return_value, xstormy16_store_return_value):
2848 Regcachify. Drop useless struct convention handling.
2849 (xstormy16_register_type, xstormy16_return_value)
2850 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
2851 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
2852 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
2853 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
2854 (xstormy16_unwind_sp, xstormy16_unwind_pc)
2855 (xstormy16_unwind_dummy_id) : New functions.
2856 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
2857 of xstormy16_scan_prologue.
2858 (xstormy16_frame_unwind): New frame_unwind structure.
2859 (xstormy16_frame_base): New frame_base structure.
2860 (xstormy16_gdbarch_init): Accomodate all of the above changes.
2861 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
2862
2863 2004-09-22 Mark Kettenis <kettenis@gnu.org>
2864
2865 * language.c (language_gdbarch_post_init): Fix off-by one error.
2866
2867 2004-09-21 Daniel Jacobowitz <dan@debian.org>
2868
2869 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
2870 (struct dwarf2_offset_and_type): New.
2871 (set_die_type, reset_die_and_siblings_types, get_die_type)
2872 (offset_and_type_hash, offset_and_type_eq): New functions.
2873 (read_structure_type, read_enumeration_type, read_array_type)
2874 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
2875 (read_tag_reference_type, read_tag_const_type)
2876 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
2877 (read_typedef, read_base_type, read_subrange_type): Use
2878 set_die_type.
2879
2880 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2881
2882 * Makefile.in (dwarf2read.o): Update dependencies.
2883 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
2884 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
2885 and read_in_chain.
2886 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
2887 mark, and has_form_ref_addr.
2888 (struct dwarf2_per_cu_data): New.
2889 (dwarf2_max_cache_age): New.
2890 (dwarf2_build_psymtabs_hard): Free cached compilation units
2891 after loading. Create and manage the list of compilation units.
2892 Remove unnecessary NULL initialization. Fix indentation.
2893 (psymtab_to_symtab_1): Initialize all of CU.
2894 (dwarf2_read_abbrevs): Set has_form_ref_addr.
2895 (find_partial_die): Use dwarf2_find_containing_comp_unit
2896 and load_comp_unit.
2897 (free_stack_comp_unit): Update comments. Clear the per-cu
2898 pointer. Handle aging.
2899 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
2900 (age_cached_comp_units, free_one_cached_comp_unit)
2901 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
2902 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
2903 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
2904 (show_dwarf2_cmd): New.
2905 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
2906 and "maint show dwarf2 max-cache-age".
2907 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
2908 externs.
2909 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
2910 global.
2911
2912 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
2913
2914 * dwarf2read.c (typename_concat): Change prototype to accept obstack
2915 and dwarf2_cu struct pointer as arguments. Change function to use
2916 obstack if provided and use dwarf2_cu to determine language-specific
2917 separator.
2918 (partial_die_parent_scope): Change comment to include java. Use
2919 new version of typename_concat instead of obconcat.
2920 (partial_die_full_name): Use typename_concat.
2921 (read_namespace): Ditto.
2922 (read_enumeration_type): Use typename_concat instead of obconcat.
2923 (new_symbol): Ditto.
2924 (add_partial_symbol): Enhance tests for C++ to also test for Java.
2925 (guess_structure_name): Ditto.
2926 (read_subroutine_type): Ditto.
2927 (read_structure_type): Ditto.
2928 (is_vtable_name): Add Java support.
2929 (determine_class_name): Switch to new typename_concat call.
2930 (determine_prefix): Switch to new typename_concat call.
2931 * jv-exp.y (FuncStart): New pattern.
2932 (MethodInvocation): Add support for simple function calls. Change
2933 warning message for other forms of inferior call currently not
2934 supported.
2935 * valarith.c (value_subscript): Treat an array with upper-bound
2936 of -1 as unknown size.
2937
2938 2004-09-20 Daniel Jacobowitz <dan@debian.org>
2939
2940 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
2941 (lookup_partial_symtab): Use symtab_to_fullname.
2942
2943 2004-09-19 Jim Blandy <jimb@redhat.com>
2944
2945 * minsyms.c (lookup_minimal_symbol): Doc fix.
2946
2947 2004-09-20 Andrew Cagney <cagney@gnu.org>
2948
2949 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
2950 CHILD_RESUME.
2951 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
2952 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
2953 KILL_INFERIOR.
2954 * infptrace.c: Update.
2955
2956 2004-09-19 Daniel Jacobowitz <dan@debian.org>
2957
2958 * symtab.c (output_source_filename): Mark first argument as const.
2959 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
2960 for "info sources" output.
2961
2962 2004-09-20 Mark Kettenis <kettenis@gnu.org>
2963
2964 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
2965 <machine/vmparam.h>.
2966 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
2967 (register_u_addr): Remove prototype.
2968
2969 2004-09-19 Mark Kettenis <kettenis@gnu.org>
2970
2971 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
2972 (i386bsd_fetch_inferior_registers): Rename from
2973 fetch_inferior_registers. Make static.
2974 (i386bsd_store_inferior_registers): Rename from
2975 store_inferior_registers. Make static.
2976 (i386bsd_target): New function.
2977 * i386bsd-nat.h: New file.
2978 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
2979 "i386bsd-nat.h".
2980 (i386fbsd_resume): Rename from child_resume. Make static.
2981 (_initialize_i386fbsd_nat): Construct and add target vector.
2982 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
2983 (_initialize_i386nbsd_nat): Construct and add target vector.
2984 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
2985 Remove defines.
2986 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
2987 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
2988 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
2989 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2990 (LOADLIBES): New variable.
2991 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
2992 inf-ptrace.o. Remove inftarg.o.
2993 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
2994 inf-ptrace.o. Remove inftarg.o.
2995 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
2996 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
2997 (LOADLIBES): New variable.
2998 * Makefile.in (i386bsd_nat_h): New variable.
2999 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
3000 dependencies.
3001
3002 * sparc64nbsd-tdep.c: Include "objfiles.h".
3003 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
3004 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
3005 svr4_lp64_fetch_link_map_offsets.
3006 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
3007 "nbsd-tdep.h".
3008 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
3009 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
3010 svr4_lp64_fetch_link_map_offsets.
3011 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
3012 dependencies.
3013
3014 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
3015 * fbsd-nat.h: New file.
3016 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
3017 (fbsd_nat_h): New variable.
3018 (fbsd-nat.o): New dependency.
3019
3020 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
3021 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
3022
3023 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
3024 comment.
3025
3026 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
3027
3028 * ada-exp.y (type_int): New function to add layer of abstraction
3029 around references to expression types.
3030 (type_long): Ditto.
3031 (type_long_long): Ditto.
3032 (type_float): Ditto.
3033 (type_double): Ditto.
3034 (type_long_double): Ditto.
3035 (type_char): Ditto.
3036 (type_system_address): Ditto.
3037 (simple_exp): Use type_* functions in place of builtin_*
3038 variables.
3039 (exp): Ditto.
3040 (write_var_from_name): Ditto.
3041 (write_object_renaming): Ditto.
3042 * ada-lang.c (ada_create_fundamental_type): Remove redundant
3043 declaration.
3044 (build_ada_types): Remove, replacing with...
3045 (ada_language_arch_info): New function to initialize primitive
3046 type vector in language_arch_info.
3047 (ada_array_length): Remove use of builtin_type_ada_int.
3048 (value_pos_atr): Ditto.
3049 (ada_evaluate_subexp): Ditto.
3050 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
3051 builtin_type_ada_long_long, builtin_type_ada_char,
3052 builtin_type_ada_float, builtin_type_ada_double,
3053 builtin_type_ada_long_double, builtin_type_ada_natural,
3054 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
3055 (ada_builtin_types): Remove.
3056 (ada_language_defn): Remove entries for la_builtin_type_vector and
3057 string_char_type and use ada_language_arch_info.
3058 (_initialize_ada_language): Do type-vector initialization along
3059 the lines of c-lang.c.
3060 (ada_create_fundamental_type): Break up line.
3061 (ada_dump_symtab): Remove unused function.
3062 (enum ada_primitive_types): Define.
3063 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
3064 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
3065 builtin_type_ada_float, builtin_type_ada_double,
3066 builtin_type_ada_long_double, builtin_type_ada_natural,
3067 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
3068 * ada-lex.l: Use type_* functions in place of builtin_* variables.
3069 (processInt): Ditto.
3070 (processReal): Ditto.
3071 (name_lookup): Ditto.
3072 * ada-typeprint.c (print_range): Use builtin_type_int, not
3073 builtin_type_ada_int.
3074
3075 2004-09-18 Mark Kettenis <kettenis@gnu.org>
3076
3077 * i386-tdep.c (i386_register_name): Rename regno to regnum.
3078
3079 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
3080 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
3081 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
3082 * configure.in: Improve checks for curses library by checking for
3083 mvwaddstr instead of initscr. Drop HP curses in favour of
3084 standard curses on HP-UX.
3085 * configure: Regenerated.
3086
3087 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
3088
3089 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
3090 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
3091 Minor formatting changes.
3092 (empty_array): Slight rewrite for formatting.
3093 (emit_char,parse,ada_language_defn,build_ada_types,
3094 ada_is_exception_sym, _initialize_ada_language): Move
3095 definitions around.
3096 (ada_dump_symtab): Remove unused definition.
3097 (ada_maybe_exception_partial_symbol): Remove unused definition.
3098
3099 2004-09-16 Andrew Cagney <cagney@gnu.org>
3100
3101 * inf-child.c: Include "gdb_string.h".
3102 (inf_child_core_file_to_sym_file): Delete.
3103 (inf_child_target): Set to_fetch_registers and to_store_registers.
3104 * inf-ptrace.c: Include "gdb_string.h".
3105 * Makefile.in: Update all dependencies.
3106
3107 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
3108 problem.
3109
3110 2004-09-14 Joel Brobecker <brobecker@gnat.com>
3111
3112 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
3113 call to heuristic_proc_desc. Remove code that became redundant
3114 as a consequence.
3115 (read_next_frame_reg): Remove special case for SP_REGNUM.
3116 (set_reg_offset): Fix small typo.
3117 (reset_saved_regs): New procedure.
3118 (mips32_heuristic_proc_desc): No longer compute a fake
3119 procedure descriptor. Compute the full frame cache instead.
3120 Some minor comment reformatting.
3121
3122 2004-09-14 Andrew Cagney <cagney@gnu.org>
3123
3124 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
3125 maintainer.
3126
3127 * thread-db.c (thread_db_new_objfile): Assume that there is a
3128 child process.
3129
3130 2004-09-13 Jim Blandy <jimb@redhat.com>
3131
3132 * valops.c (value_assign): Move 'buffer' to the enclosing block,
3133 so that its storage isn't referenced after its lifetime ends.
3134
3135 * valops.c (value_assign): 'use_buffer' is initialized to zero,
3136 and never assigned to. Delete it, and the 'if (use_buffer)'
3137 clauses. Delete 'raw_buffer', since it is now unused.
3138
3139 2004-09-13 Andrew Cagney <cagney@gnu.org>
3140
3141 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
3142 * configure: Re-generate.
3143 * nlm/Makefile.in (TAGS): Update.
3144 * Makefile.in (TAGS): Update.
3145 * config/vax/nbsd.mt (TM_FILE): Update.
3146 * config/sparc/vxworks.mt (TM_FILE): Update.
3147 * config/sparc/sol2.mt (TM_FILE): Update.
3148 * config/sparc/sol2-64.mt (TM_FILE): Update.
3149 * config/sparc/obsd64.mt (TM_FILE): Update.
3150 * config/sparc/obsd.mt (TM_FILE): Update.
3151 * config/sparc/nbsd64.mt (TM_FILE): Update.
3152 * config/sparc/nbsd.mt (TM_FILE): Update.
3153 * config/sparc/linux64.mt (TM_FILE): Update.
3154 * config/sparc/linux.mt (TM_FILE): Update.
3155 * config/sparc/fbsd.mt (TM_FILE): Update.
3156 * config/sh/wince.mt (TM_FILE): Update.
3157 * config/sh/nbsd.mt (TM_FILE): Update.
3158 * config/sh/linux.mt (TM_FILE): Update.
3159 * config/sh/embed.mt (TM_FILE): Update.
3160 * config/s390/s390.mt (TM_FILE): Update.
3161 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
3162 * config/rs6000/rs6000.mt (TM_FILE): Update.
3163 * config/rs6000/aix4.mt (TM_FILE): Update.
3164 * config/powerpc/vxworks.mt (TM_FILE): Update.
3165 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
3166 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
3167 * config/powerpc/obsd.mt (TM_FILE): Update.
3168 * config/powerpc/nbsd.mt (TM_FILE): Update.
3169 * config/powerpc/linux.mt (TM_FILE): Update.
3170 * config/powerpc/aix.mt (TM_FILE): Update.
3171 * config/pa/obsd.mt (TM_FILE): Update.
3172 * config/pa/linux.mt (TM_FILE): Update.
3173 * config/pa/hppahpux.mt (TM_FILE): Update.
3174 * config/pa/hppa64.mt (TM_FILE): Update.
3175 * config/pa/hppa.mt (TM_FILE): Update.
3176 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
3177 * config/mips/wince.mt (TM_FILE): Update.
3178 * config/mips/vxmips.mt (TM_FILE): Update.
3179 * config/mips/nbsd.mt (TM_FILE): Update.
3180 * config/mips/linux.mt (TM_FILE): Update.
3181 * config/mips/irix6.mt (TM_FILE): Update.
3182 * config/mips/irix5.mt (TM_FILE): Update.
3183 * config/mips/embed.mt (TM_FILE): Update.
3184 * config/m68k/vxworks68.mt (TM_FILE): Update.
3185 * config/m68k/st2000.mt (TM_FILE): Update.
3186 * config/m68k/os68k.mt (TM_FILE): Update.
3187 * config/m68k/obsd.mt (TM_FILE): Update.
3188 * config/m68k/nbsd.mt (TM_FILE): Update.
3189 * config/m68k/monitor.mt (TM_FILE): Update.
3190 * config/m68k/linux.mt (TM_FILE): Update.
3191 * config/m68k/cisco.mt (TM_FILE): Update.
3192 * config/ia64/linux.mt (TM_FILE): Update.
3193 * config/ia64/aix.mt (TM_FILE): Update.
3194 * config/ia64/ia64.mt (TM_FILE): Update.
3195 * config/i386/vxworks.mt (TM_FILE): Update.
3196 * config/i386/obsd64.mt (TM_FILE): Update.
3197 * config/i386/obsd.mt (TM_FILE): Update.
3198 * config/i386/nto.mt (TM_FILE): Update.
3199 * config/i386/nbsd64.mt (TM_FILE): Update.
3200 * config/i386/nbsd.mt (TM_FILE): Update.
3201 * config/i386/linux64.mt (TM_FILE): Update.
3202 * config/i386/linux.mt (TM_FILE): Update.
3203 * config/i386/i386sol2.mt (TM_FILE): Update.
3204 * config/i386/i386lynx.mt (TM_FILE): Update.
3205 * config/i386/fbsd64.mt (TM_FILE): Update.
3206 * config/i386/fbsd.mt (TM_FILE): Update.
3207 * config/i386/cygwin.mt (TM_FILE): Update.
3208 * config/h8300/h8300.mt (TM_FILE): Update.
3209 * config/frv/frv.mt (TM_FILE): Update.
3210 * config/cris/cris.mt (TM_FILE): Update.
3211 * config/arm/wince.mt (TM_FILE): Update.
3212 * config/arm/nbsd.mt (TM_FILE): Update.
3213 * config/arm/linux.mt (TM_FILE): Update.
3214 * config/arm/embed.mt (TM_FILE): Update.
3215 * config/alpha/nbsd.mt (TM_FILE): Update.
3216 * config/alpha/fbsd.mt (TM_FILE): Update.
3217 * config/alpha/alpha.mt (TM_FILE): Update.
3218 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
3219 * config/alpha/alpha-linux.mt (TM_FILE): Update.
3220
3221 Eliminate event_loop_p, always has the value 1.
3222 * defs.h (event_loop_p): Delete macro.
3223 * breakpoint.c (until_break_command): Simplify.
3224 * utils.c (prompt_for_continue): Simplify.
3225 * tracepoint.c (read_actions): Simplify.
3226 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
3227 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
3228 (set_prompt, init_main): Simplify.
3229 (init_signals, disconnect): Delete, unused.
3230 * remote.c (remote_async_resume)
3231 (extended_remote_async_create_inferior): Simplify.
3232 * mi/mi-interp.c (mi_input): Delete, unused.
3233 (mi_interpreter_resume, mi_command_loop): Simplify.
3234 * interps.c (current_interp_command_loop): Simplify.
3235 * infrun.c (proceed): Simplify.
3236 * infcmd.c (run_command, continue_command, step_1, jump_command)
3237 (until_command, advance_command, finish_command)
3238 (interrupt_target_command): Simplify.
3239 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
3240
3241 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3242 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3243 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3244 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3245 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
3246 * mips-tdep.c (mips_dump_tdep): Do not print same.
3247
3248 2004-09-12 Andrew Cagney <cagney@gnu.org>
3249
3250 * valprint.c (print_longest): Use fputs_filtered. Make "val"
3251 const.
3252 * Makefile.in (valprint.o): Delete explict rule.
3253
3254 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
3255 reported by Dave Anderson.
3256
3257 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
3258
3259 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
3260
3261 2004-09-12 Salvador E. Tropea <set@users.sf.net>
3262 Andrew Cagney <cagney@gnu.org>
3263
3264 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
3265 (mi_cmd_data_list_register_values)
3266 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
3267 the register number computation.
3268
3269 2004-09-12 Andrew Cagney <cagney@gnu.org>
3270
3271 * ppcnbsd-nat.c: Include "inf-ptrace.h".
3272 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
3273 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
3274 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
3275 target.
3276 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
3277 inf-ptrace.o and inf-child.o.
3278 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
3279 * Makefile.in: Update dependencies.
3280
3281 2004-09-11 Andrew Cagney <cagney@gnu.org>
3282
3283 * language.c (hex_string, hex_string_custom): Move from here ...
3284 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
3285 (CELLSIZE): Increase to 50.
3286 * language.h (hex_string, hex_string_custom): Move from here ...
3287 * defs.h: ... to here.
3288 * Makefile.in: Update all dependencies.
3289
3290 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
3291
3292 * language.c (local_hex_format_custom): Remove.
3293 (local_hex_string): Rename to hex_string, use C format, and move to
3294 utils.c
3295 (local_hex_string_custom): Rename to hex_string_custom and change
3296 interface. Now uses C format. Move to utils.c
3297 (local_octal_format_custom): Remove.
3298 (local_decimal_format_custom): Remove.
3299 (unknown_language_defn): Remove language-specific number
3300 formatting entries.
3301 (auto_language_defn): Ditto.
3302 (local_language_defn): Ditto.
3303 * language.h (struct language_format_info): Delete declaration.
3304 (struct language_defn): Remove language_format_info fields
3305 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
3306 (local_binary_format): Remove macro.
3307 (local_binary_format_prefix): Remove macro.
3308 (local_binary_format_specifier): Remove macro.
3309 (local_binary_format_suffix): Remove macro.
3310 (local_octal_format): Remove macro.
3311 (local_octal_format_prefix): Remove macro.
3312 (local_octal_format_specifier): Remove macro.
3313 (local_octal_format_suffix): Remove macro.
3314 (local_decimal_format): Remove macro.
3315 (local_decimal_format_prefix): Remove macro.
3316 (local_decimal_format_specifier): Remove macro.
3317 (local_decimal_format_suffix): Remove macro.
3318 (local_hex_format): Remove macro.
3319 (local_hex_format_prefix): Remove macro.
3320 (local_hex_format_specifier): Remove macro.
3321 (local_hex_format_suffix): Remove macro.
3322 (local_decimal_format_custom): Remove.
3323 (local_octal_format_custom): Remove.
3324 (local_hex_format_custom): Remove.
3325 (local_hex_string): Rename to hex_string and move to defs.h.
3326 (local_hex_string_custom): Rename to hex_string_custom, change
3327 interface, and move to defs.h.
3328 * utils.c: (int_string): New function.
3329 (hex_string): New function (from language.c).
3330 (hex_string_custom): New function (from language.c).
3331 (octal2str): New function.
3332 (decimal2str): Add width parameter.
3333 (paddr_u): Use new decimal2str interface.
3334 (paddr_d): Ditto.
3335 * defs.h (hex_string): Declare.
3336 (hex_string_custom): Declare.
3337 (int_string): Declare.
3338 * printcmd.c (print_scalar_formatted): Remove localized binary
3339 formatting.
3340 * valprint.c (print_longest): Use int_string.
3341 (print_floating): Use C hex format.
3342 (print_hex_chars): Ditto.
3343 (print_binary_chars): Remove language-specific formatting.
3344 (print_octal_chars): Use C octal format.
3345 (print_decimal_chars): Delocalize format.
3346 (print_decimal): Remove.
3347 * ada-lang.c (ada_language_defn): Remove language-specific number
3348 formatting entries.
3349 * p-lang.c (pascal_language_defn): Ditto.
3350 * c-lang.c (c_language_defn): Ditto.
3351 (cplus_language_defn): Ditto.
3352 (asm_language_defn): Ditto.
3353 (minimal_language_defn): Ditto.
3354 * f-lang.c (f_language_defn): Ditto.
3355 * jv-lang.c (java_language_defn): Ditto.
3356 * m2-lang.c (m2_language_defn): Ditto.
3357 * scm-lang.c (scm_language_defn): Ditto.
3358 * objc-lang.c (objc_language_defn): Ditto.
3359 * memattr.c (mem_info_command): Use renamed hex_string_custom with
3360 new interface.
3361 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
3362 * ui-out.c (ui_out_field_core_addr): Ditto.
3363 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
3364 * exec.c (print_section_info): Ditto.
3365 * i387-tdep.c (print_i387_status_word): Ditto.
3366 (print_i387_control_word): Ditto.
3367 (i387_print_float_info): Ditto.
3368 * maint.c (maint_print_section_info): Ditto.
3369 * solib.c (info_sharedlibrary_command): Ditto.
3370 * somsolib.c (som_sharedlibrary_info_command): Ditto.
3371 * symtab.c (print_msymbol_info): Ditto.
3372 * tracepoint.c (tracepoints_info): Ditto.
3373 * solib-frv.c (lm_base): Ditto.
3374 (frv_current_sos): Ditto.
3375 (enable_break2): Ditto.
3376 (enable_break): Ditto.
3377 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
3378 (process_one_symbol): Ditto.
3379 * infcmd.c (program_info): Ditto.
3380 * mdebugread.c (parse_partial_symbols): Ditto.
3381 * symfile.c (add_symbol_file_command): Ditto.
3382 * cli/cli-cmds.c (edit_command): Ditto.
3383 (list_command): Ditto.
3384 * infcall.c (call_function_by_hand): Ditto.
3385 * remote-vx.c (vx_run_files_info): Ditto.
3386 (vx_wait): Ditto.
3387 (vx_attach): Ditto.
3388 (vx_detach): Ditto.
3389 (vx_kill): Ditto.
3390 * aix-thread.c (pdc_symbol_addrs): Ditto.
3391 (pdc_read_regs): Ditto.
3392 (pdc_write_regs): Ditto.
3393 (pdc_read_data): Ditto.
3394 (pdc_write_data): Ditto.
3395 * d10v-tdep.c (display_trace): Ditto.
3396 * rs6000-nat.c (find_toc_address): Ditto.
3397 * aix-thread.c: Don't include language.h.
3398 * buildsym.c: Ditto.
3399 * dbxread.c: Ditto.
3400 * mdebugread.c: Ditto.
3401 * rs6000-nat.c: Ditto.
3402 * buildsym.c (make_blockvector): Use renamed hex_string.
3403
3404 2004-09-10 Jason Molenda (jmolenda@apple.com)
3405
3406 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
3407 chars after 'if' or 'while' commands in user-defined commands.
3408
3409 2004-09-08 Jim Blandy <jimb@redhat.com>
3410
3411 Fix bug reported and analyzed by Olivier Crete:
3412 * symfile.c (copy_section_addr_info): New function.
3413 (symbol_file_add_with_addrs_or_offsets): Use it to save the
3414 original set of address arguments, instead of handwritten code
3415 that uses one length to allocate and a different length to
3416 initialize. Use make_cleanup_free_section_addr_info.
3417 * symfile.h (copy_section_addr_info): New declaration.
3418 * utils.c: #include "symfile.h".
3419 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
3420 New functions.
3421 * defs.h (make_cleanup_free_section_addr_info): New declaration.
3422 * Makefile.in (utils.o): Update dependencies.
3423
3424 2004-09-08 Andrew Cagney <cagney@gnu.org>
3425
3426 * thread-db.c (keep_thread_db): Delete.
3427 (thread_db_new_objfile, thread_db_create_inferior)
3428 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
3429
3430 2004-09-08 Mark Kettenis <kettenis@gnu.org>
3431
3432 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
3433 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
3434 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
3435 (i386_frameless_signal_p): Remove prototype.
3436 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
3437 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
3438 I386_SSE_NUM_REGS.
3439 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
3440 instead of FP0_REGNUM.
3441 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
3442 of FP0_REGNUM and FPC_REGNUM.
3443
3444 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
3445 (sunos_solib_create_inferior_hook): Don't call
3446 sunos_relocate_main_executable.
3447
3448 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
3449 solib_svr4_fetch_link_map_offsets to
3450 svr4_ilp32_fetch_link_map_offsets.
3451 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
3452 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
3453 svr4_ilp32_fetch_link_map_offsets.
3454 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
3455
3456 2004-09-07 Jim Blandy <jimb@redhat.com>
3457
3458 * frame.h (frame_register): Doc fix.
3459
3460 2004-09-07 Andrew Cagney <cagney@gnu.org>
3461
3462 * vx-share/wait.h: Delete #ifdef USG.
3463 * utils.c (request_quit): Ditto.
3464 * tui/tui.c (tui_reset): Ditto.
3465 * remote.c: Ditto.
3466 * remote-sds.c: Ditto.
3467 * remote-rdi.c: Ditto.
3468 * mdebugread.c: Ditto.
3469 * m68klinux-nat.c: Ditto.
3470 * infttrace.c: Ditto.
3471 * infptrace.c: Ditto.
3472 * i386v-nat.c: Ditto.
3473 * exec.c: Ditto.
3474 * dbxread.c: Ditto.
3475 * core-aout.c: Ditto.
3476
3477 2004-09-05 Joel Brobecker <brobecker@gnat.com>
3478
3479 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
3480 heuristic_proc_desc.
3481 (mips_insn32_frame_cache): Likewise.
3482
3483 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3484
3485 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
3486 left behind by error.
3487
3488 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3489
3490 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
3491 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
3492
3493 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3494
3495 * config/rs6000/xm-aix4.h: Remove this file.
3496 * config/rs6000/aix4.mh (XM_FILE): Delete.
3497
3498 2004-09-04 Joel Brobecker <brobecker@gnat.com>
3499
3500 * config/rs6000/xm-rs6000.h: Remove this file.
3501 * config/rs6000/rs6000.mh (XM_FILE): Remove.
3502
3503 2004-09-03 Andrew Cagney <cagney@gnu.org>
3504
3505 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
3506 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
3507 only use.
3508
3509 * mips-tdep.c (temp_saved_regs): Delete.
3510 (set_reg_offset): Replace saved_regs parameter with this_cache.
3511 (heuristic_proc_desc, mips16_heuristic_proc_desc)
3512 (mips32_heuristic_proc_desc): Add this_cache parameter.
3513 (mips_insn32_frame_cache, mips_insn16_frame_cache)
3514 (after_prologue): Pass a NULL this_cache.
3515
3516 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
3517 non-kernel trap prologues.
3518
3519 * mips-tdep.c (find_proc_desc): Delete function.
3520 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
3521 simplify.
3522 (mips_insn16_frame_cache): Replace find_proc_desc with code from
3523 mips_insn32_frame_cache.
3524
3525 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
3526 Simplify as NEXT_FRAME is NULL.
3527 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
3528
3529 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
3530 local variable.
3531 (mips_skip_prologue): Update.
3532
3533 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
3534 "cur_frame" parameter.
3535 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
3536 (mips_insn32_frame_cache, find_proc_desc): Update
3537
3538 * config/vax/nm-obsd.h: Delete file.
3539 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3540 * config/vax/nm-nbsd.h: Delete file.
3541 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
3542 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3543 * config/sh/nm-nbsd.h: Delete file.
3544 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3545 * config/rs6000/nm-rs6000ly.h: Delete file.
3546 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
3547 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3548 * config/powerpc/nm-obsd.h: Delete file.
3549 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3550 * config/powerpc/nm-nbsd.h: Delete file.
3551 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3552 * config/pa/nm-obsd.h: Delete file.
3553 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3554 * config/mips/nm-nbsd.h: Delete file.
3555 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
3556 * config/m88k/nm-obsd.h: Delete file.
3557 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
3558 * config/m68k/nm-nbsd.h: Delete file.
3559 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
3560 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3561 * config/i386/nm-nbsd.h: Delete file.
3562 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
3563 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3564 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
3565 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3566 * config/i386/nm-i386lynx.h: Delete file.
3567 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
3568 * config/arm/nm-nbsd.h: Delete file.
3569 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
3570 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
3571
3572 * config/i386/tm-fbsd.h: Delete file.
3573 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
3574 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
3575
3576 * config/rs6000/tm-rs6000-aix4.h: Delete file.
3577 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
3578 * config/rs6000/aix4.mt (TM_FILE): Set to
3579 config/rs6000/tm-rs6000.h.
3580 * config/powerpc/tm-ppc-aix.h: Delete file.
3581 * config/powerpc/aix.mt (TM_FILE): Set to
3582 config/rs6000/tm-rs6000.h.
3583 * config/m68k/tm-linux.h: Delete file.
3584 * config/m68k/linux.mt (TM_FILE): Set to solib.h
3585 * config/i386/tm-linux64.h: Delete file.
3586 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
3587 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
3588
3589 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3590 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
3591 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
3592 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
3593 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
3594 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
3595 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
3596 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3597 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
3598
3599 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
3600 gdb_host_cpu.
3601
3602 2004-09-02 Joel Brobecker <brobecker@gnat.com>
3603
3604 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
3605 Minor reformatting. Some code factoring.
3606
3607 2004-09-02 Andrew Cagney <cagney@gnu.org>
3608
3609 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
3610 * config/vax/tm-nbsd.h: Delete file.
3611 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3612 * config/sparc/tm-vxworks.h: Delete file.
3613 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
3614 * config/sparc/tm-nbsd.h: Delete file.
3615 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
3616 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
3617 * config/sparc/tm-linux.h: Delete file.
3618 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
3619 * config/s390/tm-linux.h: Delete file.
3620 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
3621 * config/pa/tm-bsd.h: Delete file.
3622 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
3623 * config/m68k/tm-obsd.h: Delete file.
3624 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
3625 * config/m68k/tm-nbsd.h: Delete file.
3626 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
3627 * config/i386/tm-vxworks.h: Delete file.
3628 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
3629 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
3630 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
3631 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
3632 * config/i386/tm-nbsd.h: Delete file.
3633 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
3634 * config/i386/tm-i386lynx.h: Delete file.
3635 * config/cris/cris.mt (TM_FILE): Set to solib.h.
3636 * config/cris/tm-cris.h: Delete file.
3637
3638 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
3639 * configure: Re-generate.
3640 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
3641 * config/arm/tm-nbsd.h: Delete file.
3642
3643 * config/powerpc/tm-ppcle-sim.h: Delete.
3644 * config/powerpc/tm-ppcle-eabi.h: Delete.
3645 * config/powerpc/tm-nbsd.h: Delete.
3646 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
3647 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
3648 tm-ppcle-eabi.h.
3649
3650 * config/i386/nto.mh (NAT_FILE): Delete.
3651 * config/i386/nm-nto.h: Delete.
3652
3653 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
3654 * config/m68k/tm-os68k.h: Ditto.
3655 * config/m68k/tm-monitor.h: Ditto.
3656 * config/m68k/tm-cisco.h: Ditto.
3657 * config/m68k/st2000.mt (TM_FILE): Delete.
3658 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
3659 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
3660 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
3661 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
3662
3663 * config/m68k/tm-st2000.h: Delete.
3664 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
3665 * config/sparc/fbsd.mt (TM_FILE): Delete.
3666 * config/sparc/tm-fbsd.h: Delete.
3667
3668 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
3669 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
3670 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
3671
3672 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
3673 GDB_TM_FILE and GDB_XM_FILE.
3674 * gdbarch.c: Re-generate.
3675 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
3676 quotes in macro definition.
3677 * configure.in: Re-generate.
3678
3679 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
3680 validating architecture methods.
3681 * gdbarch.c: Re-generate.
3682
3683 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
3684 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
3685 GDB_MULTI_ARCH_PARTIAL.
3686 * gdbarch.h: Re-generate.
3687
3688 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
3689 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
3690 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
3691 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
3692 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
3693 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
3694 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
3695 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
3696 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
3697 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
3698 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
3699 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
3700
3701 2004-09-01 Andrew Cagney <cagney@gnu.org>
3702
3703 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
3704 and main_func_highpc.
3705 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
3706 * objfiles.c (init_entry_point_info, objfile_relocate): Update
3707 * nlmread.c (nlm_symfile_read): Update.
3708
3709 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3710
3711 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
3712 (mips_insn32_frame_cache): Inline call to find_proc_desc.
3713 (find_proc_desc): Remove dead code.
3714
3715 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3716
3717 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
3718
3719 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
3720
3721 * observer.sh: Add struct so_list declaration.
3722 * Makefile.in: Add dependencies on observer.h for solib.c and
3723 breakpoint.c.
3724 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
3725 function.
3726 (_initialize_breakpoint): Register
3727 disable_breakpoints_in_unloaded_shlib as an observer of the
3728 "solib unloaded" observation event.
3729 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
3730 call decode_line_1 so unfound breakpoint errors are silent.
3731 * solib.c (update_solib_list): When a solib is discovered to have
3732 been unloaded by the program, notify all observers of the
3733 "solib unloaded" observation event.
3734
3735 2004-09-01 Andrew Cagney <cagney@gnu.org>
3736
3737 * frame.c: Include "objfiles.h".
3738 (inside_main_func): New function.
3739 (get_prev_frame): Use new inside_main_func.
3740 * Makefile.in (frame.o): Update dependencies.
3741 * defs.h (inside_main_func): Delete declaration.
3742 * blockframe.c (inside_main_func): Delete function.
3743
3744 2004-08-31 Jim Blandy <jimb@redhat.com>
3745
3746 * dwarf2read.c (is_vtable_name): New function, based on logic from
3747 read_structure_type, but passing the correct length to strncmp,
3748 and using 'sizeof' instead of 'strlen'.
3749 (read_structure_type): Call it.
3750
3751 2004-08-31 Joel Brobecker <brobecker@gnat.com>
3752
3753 * config/powerpc/aix.mh: Add comment.
3754
3755 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
3756
3757 * MAINTAINERS: Add self to Write-After-Approval.
3758
3759 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
3760
3761 * MAINTAINERS: Add self to Write-After-Approval.
3762
3763 2004-08-30 Andrew Cagney <cagney@gnu.org>
3764
3765 Fix PR breakpoints/1757.
3766 * infrun.c (struct execution_control_state): Replace
3767 remove_breakpoints_on_following_step with
3768 step_after_step_resume_breakpoint.
3769 (init_execution_control_state): Update.
3770 (handle_inferior_event): For signals, when stepping off a
3771 breakpoint, set step_after_step_resume_breakpoint. When
3772 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
3773 (keep_going): Delete code handling
3774 remove_breakpoints_on_following_step.
3775
3776 2004-08-29 David Lecomber <david@streamline-computing.com>
3777
3778 Fix PR gdb/648
3779 * language.h (enum array_ordering): New enum.
3780 * language.h (struct language_defn): New la_array_ordering
3781 attribute.
3782 * language.c (unknown_language_defn, auto_language_defn)
3783 (local_language_defn): Ditto.
3784 * ada-lang.c (ada_language_defn): Ditto.
3785 * c-lang.c (c_language_defn, cplus_language_defn)
3786 (asm_language_defn, minimal_language_defn): Ditto.
3787 * f-lang.c (f_language_defn): Ditto.
3788 * jv-lang.c (java_language_defn): Ditto.
3789 * m2-lang.c (f_language_defn): Ditto.
3790 * objc-lang.c (objc_language_defn): Ditto.
3791 * p-lang.c (pascal_language_defn): Ditto.
3792 * scm-lang.c (scm_language_defn): Ditto.
3793 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
3794 oriented large to small in type structure.
3795 * dwarf2read.c (read_array_order): New function.
3796 (read_array_type): Use read_array_order to check row/column
3797 major ordering.
3798
3799 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
3800
3801 * target.c (target_resize_to_sections): Check
3802 current_target.to_sections for an old value when updating.
3803
3804 2004-08-27 Joel Brobecker <brobecker@gnat.com>
3805
3806 * procfs.c (dbx_link_bpt_addr): New static global variable.
3807 (dbx_link_shadow_contents): New static global variable.
3808 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
3809 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
3810 if we just hit it.
3811 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
3812 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
3813 from run to run.
3814 (procfs_create_inferior): Remove syssgi syscall-exit notifications
3815 after the inferior has been forked.
3816 (remove_dbx_link_breakpoint): New function.
3817 (dbx_link_addr): New function.
3818 (insert_dbx_link_bpt_in_file): New function.
3819 (insert_dbx_link_bpt_in_region): New function.
3820 (insert_dbx_link_breakpoint): New function.
3821 (proc_trace_syscalls_1): New function, extracted from
3822 proc_trace_syscalls.
3823 (proc_trace_syscalls): Replace extract code by call to
3824 proc_trace_syscalls_1.
3825 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
3826 is no longer valid.
3827
3828 2004-08-25 Jim Blandy <jimb@redhat.com>
3829
3830 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
3831
3832 2004-08-25 Andrew Cagney <cagney@gnu.org>
3833
3834 * infrun.c (struct execution_control_state): Delete field
3835 "stepping_through_sigtramp".
3836 (init_execution_control_state): Do not set same.
3837 (context_switch): Do not pass same to save_infrun_state and
3838 load_infrun_state.
3839 * gdbthread.h (struct thread_info): Delete field
3840 stepping_through_sigtramp.
3841 (save_infrun_state, load_infrun_state): Delete parameter
3842 stepping_through_sigtramp.
3843 * thread.c (load_infrun_state, save_infrun_state): Update.
3844
3845 * infrun.c: Re-indent. Move expression operators to the beginning
3846 of the line. Remove long disabled #if 0 code.
3847
3848 2004-08-24 Andrew Cagney <cagney@gnu.org>
3849
3850 * doublest.h (floatformat_ieee_quad): Rename
3851 floatformat_ia64_quad.
3852 * doublest.c (floatformat_ieee_quad): Rename
3853 floatformat_ia64_quad.
3854 (_initialize_doublest): Update.
3855
3856 2004-08-24 Jim Blandy <jimb@redhat.com>
3857
3858 * dwarf2expr.h (struct dwarf_expr_context): New members
3859 'num_pieces' and 'pieces', for returning the result of an
3860 expression that uses DW_OP_piece.
3861 (struct dwarf_expr_piece): New struct type.
3862 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
3863 pieces.
3864 (free_dwarf_expr_context): Free pieces, if any.
3865 (add_piece): New function.
3866 (execute_stack_op): Implement DW_OP_piece.
3867 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
3868 expression is a list of pieces, print an error message.
3869 (dwarf2_loc_desc_needs_frame): If the expression yields
3870 pieces, and any piece is in a register, then we need a frame.
3871
3872 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
3873 the stack until we've decided what sort of result the evaluation
3874 has produced. Use separate variables, with more specific names.
3875
3876 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
3877
3878 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
3879 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
3880 (arm_netbsd_init_abi_common): Register them.
3881
3882 2004-08-22 Mark Kettenis <kettenis@gnu.org>
3883
3884 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
3885
3886 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
3887 safe_frame_unwind_memory instead of target_read_memory.
3888
3889 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
3890 Reorder includes.
3891 (fetch_register, store_register): Remove prototypes.
3892 (child_resume): Reorganize code and comments such that it is
3893 grouped a bit more logically.
3894 (attach): Explicitly compare errno against 0.
3895 (detach): Likewise. Use perror_with_name instead of
3896 print_sys_errmsg.
3897 * Makefile.in (infptrace.o): Update dependencies.
3898
3899 * ia64-linux-nat.c: Update copyright year.
3900 (fetch_debug_register, store_debug_register)
3901 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
3902 PTRACE_TYPE_ARG3.
3903 * config/ia64/nm-linux.h: Update copyright year.
3904 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
3905
3906 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
3907 from CORE_ADDR to struct frame_info *. Use
3908 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
3909 (amd64_linux_sigtramp_p): Adjust for changed signature of
3910 and64_linux_sigtramp_start
3911
3912 * gdb_ptrace.h: GNU/Linux.
3913
3914 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3915 Remove defines.
3916
3917 * infptrace.c: Include "gdb_assert.h".
3918 (PTRACE_XFER_TYPE): Remove define.
3919 (offsetof): Only define if U_REGS_OFFSET isn't defined.
3920 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
3921 Tweak comment.
3922 (fetch_inferior_registers, store_inferior_registers): Remove
3923 redundant culry braces. Tweak comment. s/regno/regnum.
3924 * Makefile.in (infptrace.o): Update dependencies.
3925
3926 * configure.in: Change test for return type of ptrace to default
3927 to `long' instead of `int'.
3928 * configure: Regenerate.
3929
3930 2004-08-21 Mark Kettenis <kettenis@gnu.org>
3931
3932 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
3933
3934 * configure.in: Check for ttrace function.
3935 * configure, config.in: Regenerate.
3936
3937 * gdb_ptrace.h: New file.
3938 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
3939 <sys/ptrace.h>.
3940 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
3941 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
3942 (attach): Don't define PT_ATTACH.
3943 (detach): Don't define PT_DETACH.
3944 * Makefile.in (gdb_ptrace_h): New variable.
3945 (infptrace.o): Update dependencies.
3946
3947 2004-08-16 Mark Kettenis <kettenis@gnu.org>
3948
3949 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
3950 instead of `int' if not already defined.
3951 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
3952 PTRACE_TYPE_ARG3.
3953 * infptrace.c (call_ptrace): Revert change that replaced
3954 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3955
3956 2004-08-15 Mark Kettenis <kettenis@gnu.org>
3957
3958 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
3959 Remove defines.
3960
3961 * linux-nat.c (kill_inferior): Add missing third and fourth
3962 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
3963
3964 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
3965 PTRACE_TYPE_RET.
3966
3967 * proc-why.c (proc_prettyfprint_why): Fix format string.
3968
3969 * solib-osf.c (osf_current_sos): Remove unsused label.
3970
3971 * configure.in: Add <ncurses/ncurses.h> to the list of possible
3972 curses headers.
3973 * configure, config.in: Regenerate.
3974 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
3975 <ncurses/ncurses.h>.
3976
3977 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
3978 * config/nm-nbsd.h: Update copyright year.
3979 (PTRACE_ARG3_TYPE): Remove define.
3980
3981 * sparc-nat.c (fetch_inferior_registers)
3982 (store_inferior_registers, sparc_xfer_wcookie):
3983 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3984
3985 * alphabsd-nat.c (fetch_inferior_registers):
3986 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3987 PTRACE_TYPE_ARG3.
3988 * amd64bsd-nat.c (fetch_inferior_registers)
3989 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3990 PTRACE_TYPE_ARG3.
3991 * armnbsd-nat.c: Update copyright year.
3992 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
3993 (store_register, store_regs, store_fp_register, store_fp_regs):
3994 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
3995 * hppabsd-nat.c (fetch_inferior_registers)
3996 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
3997 PTRACE_TYPE_ARG3.
3998 * i386bsd-nat.c (fetch_inferior_registers)
3999 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
4000 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4001 * m68kbsd-nat.c (fetch_inferior_registers)
4002 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4003 PTRACE_TYPE_ARG3.
4004 * m88kbsd-nat.c (fetch_inferior_registers)
4005 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4006 PTRACE_TYPE_ARG3.
4007 * mipsnbsd-nat.c: Update copyright year.
4008 (fetch_inferior_registers, store_inferior_registers):
4009 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4010 * ns32knbsd-nat.c: Update copyright year.
4011 (fetch_inferior_registers, store_inferior_registers):
4012 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4013 * ppcnbsd-nat.c (fetch_inferior_registers):
4014 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4015 PTRACE_TYPE_ARG3.
4016 * ppcobsd-nat.c (fetch_inferior_registers):
4017 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4018 PTRACE_TYPE_ARG3.
4019 * shnbsd-nat.c: Update copyright year.
4020 (fetch_inferior_registers, store_inferior_registers):
4021 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4022 * vaxbsd-nat.c (fetch_inferior_registers)
4023 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
4024 PTRACE_TYPE_ARG3.
4025
4026 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
4027 PTRACE_TYPE_ARG3.
4028 * infptrace.c (call_ptrace, child_resume, attach, detach)
4029 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
4030 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
4031 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
4032 PTRACE_TYPE_ARG3.
4033
4034 2004-08-14 Mark Kettenis <kettenis@gnu.org>
4035
4036 * defs.h: Remove out-of-date comment.
4037 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
4038 [!GETENV_PROVIDED] (getenv): Remove prototype.
4039
4040 * standalone.c: Remove file.
4041 * Makefile.in (standalone.o): Remove dependency.
4042
4043 * i386-linux-nat.c (dummy_sse_values): Remove function and
4044 prototype.
4045 (i386_linux_dr_get): Fix typo in comment.
4046 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
4047
4048 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
4049
4050 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
4051 from declaration.
4052 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
4053 from definition.
4054
4055 2004-08-13 Mark Kettenis <kettenis@gnu.org>
4056
4057 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
4058 parenthesis in definition.
4059 * configure: Regenerated.
4060
4061 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
4062
4063 * PROBLEMS: Mention build/1411.
4064
4065 2004-08-09 Robert Millan <robertmh@gnu.org>
4066
4067 Committed by Nathanael Nerode.
4068 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
4069 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
4070
4071 2004-08-12 Andrew Cagney <cagney@gnu.org>
4072
4073 * NEWS: Mention fixes in GDB 6.2.1.
4074 * PROBLEMS: Remove mention of mips-irix.
4075
4076 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4077
4078 * config/powerpc/xm-aix.h: Delete.
4079 * config/powerpc/aix.mh (MH_FILE): Remove.
4080 * config/powerpc/aix432.mh (MH_FILE): Remove.
4081
4082 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4083
4084 * config/powerpc/aix.mh: Remove obsolete comment.
4085 * config/powerpc/aix432.mh: Likewise.
4086
4087 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4088
4089 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
4090
4091 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4092
4093 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
4094 this file is now empty.
4095 * config/xm-aix4.h: Remove, this file is no longer included
4096 anywhere.
4097
4098 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4099
4100 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
4101 that file is now empty.
4102 (termdef): Remove prototype, function no longer used.
4103
4104 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4105
4106 * doc/gdbint.texinfo (Host Definition): Remove documentation
4107 for USE_O_NOCTTY, no longer used.
4108 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
4109 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
4110
4111 2004-08-11 Joel Brobecker <brobecker@gnat.com>
4112
4113 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
4114 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
4115 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
4116
4117 2004-08-11 Mark Kettenis <kettenis@gnu.org>
4118
4119 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
4120 instead of FIVE_ARG_PTRACE.
4121
4122 * inflow.c (O_NOCTTY): Define to zero if not already defined.
4123 (new_tty): Use O_NOCTTY unconditionally.
4124
4125 2004-08-10 Mark Kettenis <kettenis@gnu.org>
4126
4127 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
4128 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
4129 fflush on stdout.
4130
4131 2004-08-10 Joel Brobecker <brobecker@gnat.com>
4132
4133 * xcoff_symfile_finish: Replace last call to xmfree by call
4134 to xfree.
4135
4136 2004-08-10 Andrew Cagney <cagney@gnu.org>
4137
4138 * main.c (captured_main): Delete call to init_malloc.
4139 * defs.h (init_malloc): Delete declaration.
4140 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
4141 (init_malloc): Delete functions.
4142
4143 * defs.h (xmfree): Delete.
4144 * utils.c (xmfree): Delete function.
4145 (xfree): Inline calls to xmfree and mfree.
4146 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
4147 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
4148 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
4149 * somread.c (som_symfile_finish): Ditto.
4150 * objfiles.c (allocate_objfile, free_objfile):
4151 * nlmread.c (nlm_symfile_finish): Ditto.
4152 * hpread.c (hpread_symfile_finish): Ditto.
4153 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
4154 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
4155 * coffread.c (coff_symfile_finish): Ditto.
4156
4157 * defs.h (xmcalloc): Delete declaration.
4158 * utils.c (xmcalloc): Delete.
4159 (xcalloc): Inline calls to xmcalloc and mcalloc.
4160 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
4161 xcalloc and xfree.
4162 * symtab.c (create_demangled_names_hash): Ditto.
4163
4164 * defs.h (xmrealloc): Delete.
4165 * utils.c (xmrealloc): Delete.
4166 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
4167 * symmisc.c (extend_psymbol_list): Use xrealloc.
4168 * source.c (find_source_lines): Ditto.
4169 * hpread.c (hpread_lookup_type): Ditto.
4170 * dbxread.c (add_bincl_to_list): Ditto.
4171
4172 * utils.c (xmmalloc): Delete.
4173 (xmalloc): Inline xmmalloc and mmalloc calls.
4174 (msavestring): Use xmalloc.
4175 * defs.h (xmmalloc): Delete declaration.
4176 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
4177 xmmalloc.
4178 * symmisc.c (extend_psymbol_list): Ditto.
4179 * symfile.c (init_psymbol_list): Ditto.
4180 * source.c (find_source_lines): Ditto.
4181 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
4182 * elfread.c (elf_symtab_read): Ditto.
4183 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
4184 * coffread.c (coff_symfile_init): Ditto.
4185
4186 2004-08-10 David Carlton <carlton@bactrian.org>
4187
4188 * MAINTAINERS: Remove David Carlton from c++ testsuite
4189 maintainers.
4190
4191 2004-08-10 Jerome Guitton <guitton@gnat.com>
4192
4193 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
4194 print a line feed before the prompt.
4195
4196 2004-08-10 Mark Kettenis <kettenis@gnu.org>
4197
4198 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
4199
4200 2004-08-09 Joel Brobecker <brobecker@gnat.com>
4201
4202 General cleanup of the AIX xm include file:
4203 * config/xm-aix4.h (fd_set): Remove undefine.
4204 Remove include of <sys/select.h>.
4205 (HAVE_TERMIO): Remove define.
4206 (USG): Likewise.
4207 (NULL): Remove redefine.
4208 (alloca): Remove #pragma.
4209 (vfork): Remove define.
4210 (termdef): Remove.
4211 (SIGWINCH_HANDLER): Remove.
4212 (SIGWINCH_HANDLER_BODY): Remove.
4213
4214 2004-08-09 Mark Kettenis <kettenis@gnu.org>
4215
4216 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
4217 GDB_OSABI_OPENBSD_ELF.
4218
4219 2004-08-07 Robert Millan <robertmh@gnu.org>
4220
4221 * bsd-kvm.c: Check for nlist.h before including it.
4222
4223 2004-08-09 Mark Kettenis <kettenis@gnu.org>
4224
4225 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
4226 sigcontext' offset consistency checks for ancient BSD.
4227
4228 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
4229
4230 * configure.in: Check for <sys/types.h>. Check return and
4231 argument types of ptrace.
4232 * configure, config.in: Regenerate.
4233
4234 2004-08-09 Jim Blandy <jimb@redhat.com>
4235
4236 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
4237 rs6000_register_sim_regno): Doc fixes.
4238
4239 2004-08-08 Joel Brobecker <brobecker@gnat.com>
4240
4241 * mips-tdep.c: Include "floatformat.h".
4242 (n32n64_floatformat_always_valid): New function.
4243 (floatformat_n32n64_long_double_big): New constant.
4244 (mips_gdbarch_init): Set size and format of long double
4245 for N32 and N64 ABIs.
4246 * Makefile.in (mips-tdep.o): Update dependencies.
4247
4248 2004-08-08 Andrew Cagney <cagney@gnu.org>
4249
4250 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
4251 print. Improve script's error messages.
4252 * gdbarch.h: Re-generate.
4253
4254 * gdbarch.sh (pformat): New function.
4255 (float_format, double_format, long_double_format): List with bit
4256 members. Use pformat when printing.
4257 * gdbarch.c, gdbarch.h: Re-generate.
4258
4259 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
4260
4261 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
4262 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
4263 (ppcnbsd_supply_pcb): New function.
4264 (_initialize_ppcnbsd_nat): New prototype and function.
4265 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
4266 (LOADLIBES): New variable.
4267 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
4268
4269 2004-08-08 Andrew Cagney <cagney@gnu.org>
4270
4271 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
4272 (builtin_type_ieee_double, builtin_type_ia64_quad)
4273 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
4274 BE/LE floating-point types.
4275 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
4276 (builtin_type_ieee_double, builtin_type_ia64_quad)
4277 (builtin_type_ia64_spill): Declare.
4278 * doublest.c (_initialize_doublest, floatformat_ieee_single)
4279 (floatformat_ieee_double, floatformat_arm_ext)
4280 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
4281 of LE/BE floatformats.
4282 * doublest.h: (struct floatformat, floatformat_ieee_single)
4283 (floatformat_ieee_double, floatformat_arm_ext)
4284 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
4285
4286 2004-08-08 Mark Kettenis <kettenis@gnu.org>
4287
4288 * i386gnu-nat.c (gnu_store_registers): Fix typo.
4289
4290 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
4291 instead of regcache_raw_supply when storing the registers.
4292
4293 * i386gnu-nat.c: Update copyright year.
4294 (gnu_store_registers): Don't use deprecated_registers and
4295 deprecated_registers_valid. Use regcache_valid_p and
4296 regcache_raw_supply instead.
4297
4298 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
4299 frame_pc_unwind.
4300
4301 * procfs.c (procfs_pid_to_str): Remove redundant and unused
4302 variables. Incapitalized "process".
4303
4304 * configure.in: Add cursesX to the list of possible curses libs.
4305 Add cursesX.h to the list of possible curses headers.
4306 * configure, config.in: Regenerate.
4307
4308 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
4309
4310 * configure.in: Test for struct lwp in <sys/lwp.h>.
4311 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
4312 the offset of l_addr in struct lwp.
4313
4314 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
4315
4316 * bsd-kvm.c: Include "gdbcore.h"
4317 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
4318
4319 2004-08-07 Andrew Cagney <cagney@gnu.org>
4320
4321 * gdbtypes.c (build_flt, build_complex): New functions.
4322 (gdbtypes_post_init): Use.
4323
4324 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
4325
4326 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
4327 through to builtin_type_uint128.
4328
4329 * c-exp.y: Use builtin_type function to obtain builtin types.
4330
4331 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
4332 builtin_uint128.
4333 * gdbtypes.c (gdbtypes_post_init): Update.
4334 (build_gdbtypes): Move initialization of builtin_type_int0
4335 through to builtin_type_uint128 from here ...
4336 (_initialize_gdbtypes): ... to here.
4337 * d10v-tdep.c (d10v_register_type): Update.
4338
4339 * doublest.c: Update copyright.
4340 (floatformat_from_length): Call error when floatformat is NULL.
4341 (extract_floating_by_length): Remove NULL fmt check.
4342 (store_floating_by_length): Ditto.
4343
4344 2004-08-07 Andrew Cagney <cagney@gnu.org>
4345
4346 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
4347 that the register is valid.
4348
4349 2004-08-05 Mark Kettenis <kettenis@chello.nl>
4350
4351 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4352 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
4353 struct frame_info *. Use safe_frame_unwind_memory instead of
4354 deprecated_read_memory_nobpt.
4355 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
4356 changed signature of i386_linux_sigtramp_start and
4357 i386_linux_rt_sigtramp_start.
4358
4359 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
4360 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
4361 instead of deprecated_read_memory_nobpt.
4362 (i386nbsd_sigtramp_p): Adjust for changed signature of
4363 i386nbsd_sigtramp_offset.
4364
4365 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
4366 safe_frame_unwind_memory instead of target_read_memory.
4367
4368 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
4369 !NO_SYS_FILE.
4370 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
4371 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
4372 (_initialize_kernel_u_addr): Remove prototype and function.
4373 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
4374 !NO_SYS_FILE.
4375 * xcoffread.c: Likewise.
4376
4377 2004-08-06 Mark Kettenis <kettenis@gnu.org>
4378
4379 * vax-nat.c: New file.
4380 * vaxbsd-nat.c: Tweak comment.
4381 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
4382 vaxnbsd-tdep.c.
4383 (vax-nat.o): New dependency.
4384 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
4385 (vax-*-ultrix2*): Remove.
4386 * config/vax/vax.mh: New file.
4387 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
4388 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
4389 (vax_register_u_addr): New prototype.
4390 (REGISTER_U_ADDR): Define using vax_register_u_addr.
4391 * config/vax/vaxult2.mh: Remove file.
4392 * config/vax/vaxult.mh: Remove file.
4393 * config/vax/vaxbsd.mh: Remove file.
4394 * config/vax/vax.mt (TM_FILE): Remove.
4395 * config/vax/tm-vaxbsd.h: Remove file.
4396
4397 2004-08-06 Joel Brobecker <brobecker@gnat.com>
4398
4399 * aix-thread.c (get_signaled_thread): New function.
4400 (iter_trap): Delete, no longer used.
4401 (iter_tid): New function.
4402 (pd_update): Find the thread that received the SIGTRAP signal
4403 by first locating the kernel thread, and then finding its
4404 associated thread.
4405
4406 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
4407
4408 * lin-lwp.c (child_wait): Continue inferior after processing
4409 PTRACE_EVENT_CLONE event.
4410
4411 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
4412
4413 * MAINTAINERS: Add self to Write-After-Approval.
4414
4415 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
4416
4417 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
4418 libunwind-xxxx.so" where xxxx is UNW_TARGET.
4419
4420 2004-08-05 Andrew Cagney <cagney@gnu.org>
4421
4422 * config/xm-sysv4.h: Delete file.
4423 * config/mips/xm-irix5.h: Delete file.
4424 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
4425 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
4426 * config/ia64/xm-aix.h: Delete file.
4427 * config/ia64/aix.mh (XM_FILE): Delete.
4428 * config/pa/xm-hppah.h: Delete file.
4429 * config/pa/hpux11w.mh (XM_FILE): Delete.
4430 * config/pa/hpux11.mh (XM_FILE): Delete.
4431 * config/pa/hpux1020.mh (XM_FILE): Delete.
4432 * config/pa/hppahpux.mh (XM_FILE): Delete.
4433
4434 * config/alpha/xm-alphalinux.h: Delete file.
4435 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
4436 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
4437 * config/alpha/xm-alphaosf.h: Delete file.
4438 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
4439 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
4440 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
4441 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
4442
4443 * config/i386/xm-i386v.h: Delete file.
4444 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
4445 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
4446 * config/i386/xm-i386sco.h: Delete file.
4447 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
4448 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
4449 * config/i386/xm-i386v4.h: Delete file.
4450 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
4451 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
4452 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
4453 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
4454
4455 * config/vax/xm-vax.h: Delete file.
4456 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
4457 * config/vax/xm-vaxult2.h: Delete file.
4458 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
4459 * config/vax/vaxult2.mh (XM_FILE): Delete.
4460 * config/vax/xm-vaxult.h: Delete file.
4461 * config/vax/vaxult.mh (XM_FILE): Delete.
4462 * config/vax/xm-vaxbsd.h: Delete file.
4463 * config/vax/vaxbsd.mh (XM_FILE): Delete.
4464
4465 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
4466 * gdbarch.h, gdbarch.c: Re-generate.
4467 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
4468 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
4469 * frame.h: Delete deprecated_read_fp from comments.
4470 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
4471 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
4472
4473 2004-08-04 Mark Kettenis <kettenis@gnu.org>
4474
4475 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
4476 trampoline in OpenBSD 3.5-current.
4477
4478 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
4479 SSE registers.
4480
4481 * Makefile.in: Remove embedded page breaks.
4482
4483 2004-08-04 Jim Blandy <jimb@redhat.com>
4484
4485 * regcache.c (regcache_raw_read): Assert that, after calling
4486 target_fetch_registers, the register we're reading is cached.
4487
4488 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
4489 a call to 'internal_error', with a more helpful error message.
4490 * rs6000-tdep.c (e500_pseudo_register_read,
4491 e500_pseudo_register_write, rs6000_store_return_value): Same.
4492
4493 2004-08-04 Andrew Cagney <cagney@gnu.org>
4494
4495 * Makefile.in: Update dependencies.
4496
4497 2004-08-04 Jim Blandy <jimb@redhat.com>
4498
4499 Change the layout of the PowerPC E500 raw register cache to allow
4500 the lower 32-bit halves of the GPRS to be their own raw registers,
4501 not pseudoregisters.
4502 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
4503 add ppc_ev0_upper_regnum flag.
4504 * rs6000-tdep.c: #include "reggroups.h".
4505 (spe_register_p): Recognize the ev upper half registers as SPE
4506 registers.
4507 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
4508 registers.
4509 (e500_move_ev_register): New function.
4510 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
4511 vector registers are the pseudo-registers now, formed by splicing
4512 together the gprs and the upper-half registers.
4513 (e500_register_reggroup_p): New function.
4514 (P): Macro deleted.
4515 (P8, A4): New macro.
4516 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
4517 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
4518 macros.
4519 (registers_e500): Rearrange register set so that the raw register
4520 set contains 32-bit GPRs and upper-half registers, and the SPE
4521 vector registers become pseudo-registers.
4522 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
4523 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
4524 register numbers are now the same for the E500 as they are for
4525 other PowerPC variants. Register e500_register_reggroup_p as the
4526 register group function for the E500.
4527 * Makefile.in (rs6000-tdep.o): Update dependencies.
4528
4529 Adapt PPC E500 native support to the new raw regcache layout.
4530 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
4531 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
4532 (fetch_spe_register, store_spe_register): Handle fetching/storing
4533 all the SPE registers at once, if regno == -1. These now take
4534 over the job of fetch_spe_registers and store_spe_registers.
4535 (fetch_spe_registers, store_spe_registers): Deleted.
4536 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
4537 unconditionally; they're always raw. Fetch/store SPE upper half
4538 registers, if present, instead of ev registers.
4539 (fetch_register, store_register): Remove sanity checks: gprs are
4540 never pseudo-registers now, so we never need to even mention any
4541 registers that are ever pseudoregisters.
4542
4543 Use a fixed register numbering when communicating with the PowerPC
4544 simulator.
4545 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
4546 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
4547 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
4548 New functions.
4549 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
4550 init_sim_regno_table.
4551 * Makefile.in (gdb_sim_ppc_h): New variable.
4552 (rs6000-tdep.o): Update dependencies.
4553
4554 2004-08-02 Andrew Cagney <cagney@gnu.org>
4555
4556 * cris-tdep.c (cris_register_size): Restore function, still used
4557 locally.
4558
4559 * gdbarch.sh (deprecated_target_read_fp)
4560 (deprecated_frame_locals_address, deprecated_frame_args_address)
4561 (deprecated_frame_chain_valid, deprecated_frame_chain)
4562 (deprecated_init_extra_frame_info, deprecated_pop_frame)
4563 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
4564 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
4565 * gdbarch.h, gdbarch.c: Re-generate.
4566 * regcache.c (deprecated_read_fp): Do not call
4567 DEPRECATED_TARGET_READ_FP_P.
4568 * infcmd.c (default_print_registers_info): Do not call
4569 DEPRECATED_DO_REGISTERS_INFO.
4570 * frame-base.c (default_frame_locals_address): Do not call
4571 DEPRECATED_FRAME_LOCALS_ADDRESS.
4572 (default_frame_args_address): Do not call
4573 DEPRECATED_FRAME_ARGS_ADDRESS.
4574
4575 * gdbarch.sh (deprecated_register_raw_size)
4576 (deprecated_register_virtual_size:int): Delete.
4577 * gdbarch.h, gdbarch.c: Re-generate.
4578 * cris-tdep.c (cris_register_size): Delete.
4579 (cris_gdbarch_init): Update.
4580 * alpha-tdep.c (alpha_register_raw_size)
4581 (alpha_register_virtual_size): Delete.
4582 (alpha_gdbarch_init): Update.
4583
4584 * gdbarch.sh (deprecated_register_virtual_type)
4585 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
4586 (deprecated_dummy_write_sp): Delete.
4587 * gdbarch.h, gdbarch.c: Re-generate.
4588
4589 * gdbarch.sh (deprecated_register_bytes): Delete.
4590 * gdbarch.h, gdbarch.c: Re-generate.
4591 * regcache.c (deprecated_register_bytes): New function.
4592 * regcache.h (deprecated_register_bytes): Declare.
4593 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4594 * v850-tdep.c (v850_gdbarch_init): Update.
4595 * sh64-tdep.c (sh64_gdbarch_init): Update.
4596 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4597 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4598 * mcore-tdep.c (mcore_gdbarch_init): Update.
4599 * cris-tdep.c (cris_gdbarch_init): Update.
4600 * arm-tdep.c (arm_gdbarch_init): Update.
4601 * remote.c (init_remote_state): Update.
4602 * remote-vx.c (vx_prepare_to_store): Update.
4603 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
4604 * irix5-nat.c (fetch_core_registers): Update.
4605 * cris-tdep.c (cris_register_bytes_ok): Update.
4606 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4607
4608 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
4609 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
4610 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
4611 (mips_insn16_frame_base_address, mips_insn16_frame_base)
4612 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
4613 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
4614 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
4615 (mips_insn32_frame_base_address, mips_insn32_frame_base)
4616 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
4617 with mips_insn16 and mips_insn32.
4618
4619 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
4620 * rs6000-tdep.c (rs6000_push_dummy_call)
4621 (rs6000_extract_return_value): Use register_size.
4622 * xstormy16-tdep.c (xstormy16_get_saved_register)
4623 (xstormy16_extract_return_value): Ditto.
4624 * valops.c (value_assign): Ditto.
4625 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
4626 * v850-tdep.c (v850_extract_return_value): Ditto.
4627 * tracepoint.c (collect_symbol): Ditto.
4628 * target.c (debug_print_register): Ditto.
4629 * stack.c (frame_info): Ditto.
4630 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
4631 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
4632 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
4633 (store_register_using_P): Ditto.
4634 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
4635 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
4636 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4637 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
4638 * regcache.c (deprecated_read_register_bytes)
4639 (deprecated_write_register_bytes, read_register)
4640 (write_register): Ditto.
4641 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
4642 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
4643 * monitor.c (monitor_supply_register, monitor_fetch_register)
4644 (monitor_store_register): Ditto.
4645 * mn10300-tdep.c (mn10300_pop_frame_regular)
4646 (mn10300_print_register): Ditto.
4647 * mipsv4-nat.c (fill_fpregset): Ditto.
4648 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
4649 (mips64_fill_fpregset): Ditto.
4650 * mi/mi-main.c (register_changed_p, get_register)
4651 (mi_cmd_data_write_register_values): Ditto.
4652 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
4653 * irix5-nat.c (fill_gregset, fetch_core_registers):
4654 * infrun.c (write_inferior_status_register): Ditto.
4655 * infptrace.c (fetch_register, store_register): Ditto.
4656 * infcmd.c (default_print_registers_info): Ditto.
4657 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
4658 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
4659 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
4660 * hpux-thread.c (hpux_thread_fetch_registers)
4661 (hpux_thread_store_registers): Ditto.
4662 * hppah-nat.c (store_inferior_registers, fetch_register):
4663 * findvar.c (value_from_register): Ditto.
4664 * dve3900-rom.c (fetch_bitmapped_register):
4665 * cris-tdep.c (cris_gdbarch_init): Ditto.
4666 * alpha-tdep.h: Ditto.
4667 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
4668
4669 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
4670 DEPRECATED_REGISTER_RAW_SIZE from comments.
4671 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
4672 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
4673 DEPRECATED_REGISTER_RAW_SIZE.
4674 * findvar.c (value_of_register): Simplify by assuming that the
4675 registers raw and virtual sizes are identical.
4676 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
4677 comment.
4678 * arch-utils.c (generic_register_size): Simplify by assuming
4679 register_type.
4680
4681 * regcache.c (legacy_read_register_gen, real_register)
4682 (legacy_write_register_gen): Delete, not used.
4683
4684 * regcache.c (struct regcache_descr): Delete legacy_p.
4685 (init_legacy_regcache_descr): Delete function.
4686 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
4687 Do not use deprecated register functions.
4688 (regcache_raw_read, deprecated_write_register_gen):
4689 (deprecated_read_register_gen, regcache_raw_write): Delete code
4690 predicated on legacy_p.
4691 (register_size): Delete check against register raw size.
4692
4693 * cris-tdep.c (cris_register_type): Replace
4694 cris_register_virtual_type.
4695 (cris_gdbarch_init): Update, set register_type.
4696
4697 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
4698 * gdbarch.h, gdbarch.c: Re-generate.
4699 * arm-tdep.c (arm_frameless_function_invocation): Delete.
4700 (arm_gdbarch_init) Do not set frameless function invocation.
4701 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
4702 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
4703 * frv-tdep.c (frv_frameless_function_invocation): Delete.
4704 (frv_gdbarch_init): Do not set frameless function invocation.
4705 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4706 * sh-tdep.c (sh_gdbarch_init): Ditto.
4707 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
4708 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4709 * avr-tdep.c (avr_gdbarch_init): Ditto.
4710
4711 * blockframe.c (legacy_frame_chain_valid): Delete function.
4712
4713 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
4714 and pc. Update comments.
4715 (pc_in_dummy_frame): Delete function.
4716 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
4717 use the "id".
4718 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
4719 call_hi, top and pc, use the id.
4720 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
4721
4722 * dummy-frame.c: Include "gdb_string.h".
4723 (generic_save_call_dummy_addr, generic_push_dummy_frame)
4724 (generic_save_dummy_frame_tos): Delete.
4725 (dummy_frame_push): New function, replaces above.
4726 * dummy-frame.h: Update copyright.
4727 (dummy_frame_push): Declare.
4728 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
4729 (generic_save_call_dummy_addr): Delete declarations.
4730 * infcall.c: Include "dummy-frame.h".
4731 (call_function_by_hand): Add locals caller_regcache,
4732 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
4733 with call to frame_save_as_regcache plus cleanup. Delete calls to
4734 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
4735 Move clear_proceed_status to just before the resume, add call to
4736 dummy_frame_push (discard cleanup).
4737 * Makefile.in (infcall.o): Add $(dummy_frame_h).
4738 (dummy-frame.o): Add $(gdb_string_h).
4739
4740 2004-08-01 Andrew Cagney <cagney@gnu.org>
4741
4742 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
4743 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
4744 * dummy-frame.c (find_dummy_frame): Delete.
4745 (struct dummy_frame_cache, dummy_frame_sniffer)
4746 (dummy_frame_prev_register, dummy_frame_this_id)
4747 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
4748 frame unwinder using a dummy_frame_cache.
4749
4750 2004-08-01 Andrew Cagney <cagney@gnu.org>
4751
4752 * frame.h (frame_save_as_regcache): Declare.
4753 * frame.c (frame_save_as_regcache): New function.
4754 (do_frame_read_register): Replace do_frame_unwind_register.
4755 (frame_pop): Use frame_save_as_regcache.
4756 * dummy-frame.c (generic_push_dummy_frame): Use
4757 frame_save_as_regcache.
4758
4759 2004-08-01 Joel Brobecker <brobecker@gnat.com>
4760
4761 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
4762 file as included until we record the first line in the linetable.
4763
4764 2004-08-01 Andrew Cagney <cagney@gnu.org>
4765
4766 * frame.h (deprecated_pop_dummy_frame)
4767 (deprecated_read_register_dummy)
4768 (deprecated_generic_find_dummy_frame): Delete.
4769 * dummy-frame.c (deprecated_generic_find_dummy_frame)
4770 (deprecated_read_register_dummy)
4771 (deprecated_find_dummy_frame_regcache)
4772 (discard_innermost_dummy)
4773 (deprecated_pop_dummy_frame): Delete.
4774 (dummy_frame_this_id): Simplify.
4775 (struct dummy_frame): Delete "fp" and "sp".
4776 (find_dummy_frame): Simplify.
4777 (generic_push_dummy_frame): Do not set "fp" or "sp".
4778 (fprint_dummy_frames): Do not print "fp" and "sp"
4779
4780 2004-08-01 Mark Kettenis <kettenis@gnu.org>
4781
4782 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
4783 (struct i386_insn): New structure.
4784 (i386_match_insn): New function.
4785 (i386_frame_setup_skip_insns): New variable.
4786 (i386_analyze_frame_setup): Change to use i386_match_insn and the
4787 array i386_frame_setup_insns of instructions that should be
4788 skipped inside the frame setup sequence.
4789
4790 2004-08-01 Andrew Cagney <cagney@gnu.org>
4791
4792 * frame.h (deprecated_frame_xmalloc_with_cleanup)
4793 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4794 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4795 * stack.c (frame_info): Delete references to
4796 DEPRECATED_FRAME_INIT_SAVED_REGS and
4797 deprecated_get_frame_saved_regs.
4798 * frame.c (struct frame_info): Delete saved_regs and extra_info.
4799 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
4800 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
4801 (frame_unwind_register_signed)
4802 (frame_unwind_register_unsigned)
4803 (frame_unwind_unsigned_register): Use register_size.
4804 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
4805 (deprecated_frame_xmalloc_with_cleanup)
4806 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
4807 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
4808
4809 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
4810 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
4811 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
4812 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
4813
4814 * infcall.c (call_function_by_hand): Do not use
4815 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
4816 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
4817 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
4818 DEPRECATED_STACK_ALIGN.
4819
4820 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
4821
4822 Committed by Andrew Cagney.
4823 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
4824
4825 2004-08-01 Andrew Cagney <cagney@gnu.org>
4826
4827 * mips-tdep.c (mips16_frame_cache)
4828 (mips16_frame_this_id, mips16_frame_prev_register)
4829 (mips16_frame_unwind, mips16_frame_sniffer)
4830 (mips16_frame_base_address, mips16_frame_base)
4831 (mips16_frame_base_sniffer, mips32_frame_cache)
4832 (mips32_frame_this_id, mips32_frame_prev_register)
4833 (mips32_frame_unwind, mips32_frame_sniffer)
4834 (mips32_frame_base_address, mips32_frame_base)
4835 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
4836 separate heuristic mips16 and mips32 unwinders.
4837 (mips_stub_frame_cache, mips_stub_frame_this_id)
4838 (mips_stub_frame_prev_register)
4839 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
4840 (mips_stub_frame_base_address, mips_stub_frame_base)
4841 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
4842 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
4843 match true mdebug frames.
4844 (non_heuristic_proc_desc): Add forward declaration.
4845
4846 2004-08-01 Andrew Cagney <cagney@gnu.org>
4847
4848 * config/mips/tm-irix6.h: Delete file.
4849 * config/mips/tm-irix5.h: Delete file.
4850 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
4851 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
4852
4853 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
4854 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
4855 * config/nm-gnu.h (NO_CORE_OPS): Delete.
4856 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
4857 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
4858 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
4859 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
4860 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
4861 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
4862 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
4863 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
4864 (TARGET_SIGNAL_RAW_VALUES): Delete.
4865 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
4866 Delete.
4867 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
4868 (TARGET_HW_WATCH_LIMIT): Delete.
4869 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
4870 * minimon.h: Delete file.
4871
4872 * trad-frame.c (trad_frame_get_this_base)
4873 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
4874 functions.
4875 * trad-frame.h (trad_frame_set_this_base)
4876 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
4877
4878 2004-07-31 Andrew Cagney <cagney@gnu.org>
4879
4880 * trad-frame.c (trad_frame_get_prev_register): Rename
4881 trad_frame_get_prev_register.
4882 * vax-tdep.c (vax_frame_prev_register): Update.
4883 * trad-frame.h: Update.
4884 * trad-frame.c (trad_frame_get_register): Update.
4885 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
4886 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
4887 Update.
4888 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
4889 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
4890 Update.
4891 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
4892 Update.
4893 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
4894 Update.
4895 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
4896 Update.
4897 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
4898 Update.
4899 * s390-tdep.c (s390_frame_prev_register)
4900 (s390_stub_frame_prev_register)
4901 (s390_sigtramp_frame_prev_register): Update.
4902 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
4903 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
4904 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
4905 * m88k-tdep.c (m88k_frame_prev_register)
4906 * m68hc11-tdep.c (m68hc11_frame_prev_register)
4907 * m32r-tdep.c (m32r_frame_prev_register): Update.
4908 * hppa-tdep.c (hppa_frame_prev_register_helper)
4909 * frv-tdep.c (frv_frame_prev_register): Update.
4910 * d10v-tdep.c (d10v_frame_prev_register): Update.
4911 * cris-tdep.c (cris_frame_prev_register): Update.
4912 * avr-tdep.c (avr_frame_prev_register): Update.
4913 * arm-tdep.c (arm_prologue_prev_register)
4914 (arm_sigtramp_prev_register): Update.
4915
4916 2004-07-31 Andrew Cagney <cagney@gnu.org>
4917
4918 * frame.h (legacy_saved_regs_unwind)
4919 (legacy_frame_chain_valid, legacy_frame_p)
4920 (enum frame_type): Delete UNKNOWN_FRAME.
4921 * dummy-frame.c (dummy_frame_this_id): Simplify.
4922 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
4923 * frame.c (struct frame_info): Delete the field "type".
4924 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
4925 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
4926 (legacy_saved_regs_unwind, legacy_frame_p)
4927 (frame_type_from_pc): Delete.
4928 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
4929 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
4930
4931 2004-07-31 Mark Kettenis <kettenis@gnu.org>
4932
4933 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
4934 indentation.
4935
4936 * mips-nat.c: Remove file.
4937 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
4938 (mips-nat.o): Remove dependency.
4939
4940 * infptrace.c: Update copyright year.
4941 (fetch_register): Pass NULL in regcache_raw_supply call instead of
4942 explicitly setting the buffer to all zeroes.
4943
4944 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
4945 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
4946
4947 2004-07-30 Andrew Cagney <cagney@gnu.org>
4948
4949 * GDB 6.2 released from gdb_6_2-branch.
4950
4951 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
4952
4953 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
4954
4955 * exec.c (exec_file_attach):
4956 * nto-tdep.c (nto_find_and_open_solib):
4957 * pa64solib.c (pa64_solib_sizeof_symbol_table):
4958 * solib.c (solib_open):
4959 * somsolib.c (som_solib_sizeof_symbol_table):
4960 * source.c (is_regular_file, openp, open_source_file):
4961 * symfile.c (symfile_bfd_open):
4962 * wince.c (upload_to_device): Differentiate between the search for
4963 binary and source files.
4964
4965 2004-07-30 Andrew Cagney <cagney@gnu.org>
4966
4967 * complaints.c (_initialize_complaints): Pass NULL to
4968 add_setshow_zinteger_cmd for help_doc.
4969 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
4970
4971 2004-07-30 Andrew Cagney <cagney@gnu.org>
4972
4973 Fix PR i18n/761.
4974 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
4975 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
4976 $(PACKAGE).pot and update-po.
4977 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
4978 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
4979 (update-po): New rules.
4980 (localedir): Define using autoconf.
4981 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
4982 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
4983 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
4984 * configure.in: Generate CATALOGS and LINGUAS from contents of
4985 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
4986 * configure: Re-generate.
4987 * po/gdbtext: New file
4988
4989 2004-07-30 Jerome Guitton <guitton@gnat.com>
4990
4991 * MAINTAINERS: Reorder Write After Approval list in alphabetical
4992 order.
4993
4994 2004-07-30 David Lecomber <dsl@sources.redhat.com>
4995
4996 * dwarf2read.c (read_file_scope): Set producer if attribute
4997 present.
4998 (struct dwarf2_cu): Added new member producer.
4999
5000 2004-07-30 Jerome Guitton <guitton@gnat.com>
5001
5002 * inflow.c (kill_command): release file handles in BFD.
5003 * exec.c (exec_file_attach): Ditto.
5004 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
5005
5006 2004-07-29 Andrew Cagney <cagney@gnu.org>
5007
5008 * PROBLEMS (mips-irix): Note that it is broken.
5009
5010 2004-07-29 Andrew Cagney <cagney@gnu.org>
5011
5012 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
5013 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
5014
5015 * config/xm-nbsd.h: Delete file.
5016 * config/arm/xm-nbsd.h: Delete file.
5017 * config/i386/xm-nbsd.h: Delete file.
5018 * config/ns32k/xm-nbsd.h: Delete file.
5019 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
5020 * config/i386/nbsdelf.mh (XM_FILE): Delete.
5021 * config/i386/nbsdaout.mh (XM_FILE): Delete.
5022 * config/arm/nbsdelf.mh (XM_FILE): Delete.
5023 * config/arm/nbsdaout.mh (XM_FILE): Delete.
5024
5025 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
5026 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
5027 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
5028 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
5029 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
5030 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
5031
5032 * config/powerpc/xm-linux.h: Delete empty file.
5033 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
5034 * config/powerpc/linux.mh (XM_FILE): Delete.
5035 * config/m68k/xm-linux.h: Delete empty file.
5036 * config/m68k/linux.mh (XM_FILE): Delete.
5037 * config/ia64/xm-linux.h: Delete empty file.
5038 * config/ia64/linux.mh (XM_FILE): Delete.
5039 * config/arm/xm-linux.h: Delete empty file.
5040 * config/arm/linux.mh (XM_FILE): Delete.
5041
5042 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
5043 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
5044 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
5045 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
5046 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
5047 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
5048 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
5049 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
5050
5051 * config/m68k/xm-m68k.h: Delete file.
5052 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
5053 copyright.
5054 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
5055 * config/pa/xm-linux.h: Delete empty file.
5056 * config/pa/linux.mh (XM_FILE): Delete.
5057 * config/i386/xm-i386.h: Delete empty file.
5058 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
5059 "i386/xm-i386.h".
5060 * config/i386/obsdaout.mh (XM_FILE): Delete.
5061 * config/i386/obsd64.mh (XM_FILE): Delete.
5062 * config/i386/fbsd64.mh (XM_FILE): Delete.
5063 * config/i386/nto.mh (XM_FILE): Delete.
5064 * config/i386/obsd.mh (XM_FILE): Delete.
5065 * config/i386/linux64.mh (XM_FILE): Delete.
5066 * config/i386/linux.mh (XM_FILE): Delete.
5067 * config/i386/i386sol2.mh (XM_FILE): Delete.
5068 * config/i386/i386gnu.mh (XM_FILE): Delete.
5069 * config/i386/fbsd.mh (XM_FILE): Delete.
5070 * config/i386/nbsd64.mh (XM_FILE): Delete.
5071
5072 2004-07-29 Andrew Cagney <cagney@gnu.org>
5073
5074 * config/pa/xm-linux.h: Do not include "floatformat.h".
5075 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
5076 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
5077 * config/i386/xm-i386.h: Do not include "floatformat.h".
5078 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
5079 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
5080 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
5081 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
5082 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
5083 GDB_HOST_LONG_DOUBLE_FORMAT instead.
5084 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
5085 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
5086 * configure, config.in: Regenerate.
5087 * configure.host (gdb_host_float_format, gdb_host_double_format)
5088 (gdb_host_long_double_format): Set according to the host.
5089
5090 2004-07-29 Andrew Cagney <cagney@gnu.org>
5091
5092 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
5093
5094 2004-07-28 Andrew Cagney <cagney@gnu.org>
5095
5096 * PROBLEMS: Mention threads/1650.
5097 * NEWS: Mention the NPTL fix.
5098
5099 2004-07-28 Andrew Cagney <cagney@gnu.org>
5100
5101 * cli/cli-decode.c (add_setshow_cmd): Delete function.
5102 (add_setshow_cmd_full): Make static.
5103 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
5104 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
5105 * cli/cli-decode.c (add_setshow_filename_cmd)
5106 (add_setshow_string_cmd): New functions.
5107 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
5108 * mips-tdep.c (_initialize_mips_tdep): Update.
5109 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
5110 * cli/cli-logging.c (_initialize_cli_logging): Update.
5111 * complaints.c (_initialize_complaints): Update.
5112 * remote.c (_initialize_remote): Update.
5113
5114 2004-07-28 Andrew Cagney <cagney@gnu.org>
5115
5116 * cli/cli-decode.c (add_setshow_zinteger_cmd)
5117 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
5118 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
5119 print parameters. Make string parameters constant.
5120 * command.h: Update. Update copyright.
5121 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
5122 * observer.c (_initialize_observer): Ditto.
5123 * frame.c (_initialize_frame): Ditto.
5124 * complaints.c (_initialize_complaints): Ditto.
5125 * maint.c (_initialize_maint_cmds): Ditto.
5126 * target.c (initialize_targets): Ditto.
5127 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
5128 * infcall.c (_initialize_infcall): Ditto.
5129 * arm-tdep.c (_initialize_arm_tdep): Ditto.
5130 * m32r-rom.c (_initialize_m32r_rom): Ditto.
5131 * remote-rdi.c (_initialize_remote_rdi): Ditto.
5132 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
5133 * mips-tdep.c (_initialize_mips_tdep): Ditto.
5134
5135 2004-07-28 Andrew Cagney <cagney@gnu.org>
5136
5137 * gdbtypes.c (lookup_primitive_typename): Delete function.
5138 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
5139 * ada-lex.l: Use language_lookup_primitive_type_by_name.
5140 * gdbtypes.c (lookup_typename): Ditto.
5141 * f-exp.y (yylex): Ditto.
5142 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
5143
5144 * scm-lang.c (c_builtin_types): Delete extern declaration.
5145 (scm_language_defn): Replace
5146 string_char_type and primitive_type_vector with
5147 la_language_arch_info.
5148 * jv-lang.c (java_language_defn): Replace
5149 string_char_type and primitive_type_vector with
5150 la_language_arch_info.
5151 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
5152 c_builtin_types in comment.
5153 * c-lang.h (struct language_arch_info): Declare opaque.
5154 (c_language_arch_info): Declare.
5155 (c_builtin_types): Delete declaration.
5156 * c-lang.c (c_language_arch_info): Set string_char_type to
5157 builtin_char, not builtin_true_char. Make global.
5158 (c_builtin_types): Delete array.
5159 (asm_language_defn, minimal_language_defn): Replace
5160 string_char_type and primitive_type_vector with
5161 la_language_arch_info.
5162
5163 2004-07-28 Andrew Cagney <cagney@gnu.org>
5164
5165 * gdbtypes.h (struct builtin_type): Rename true_char to
5166 builtin_true_char.
5167 * gdbtypes.c (gdbtypes_post_init): Update.
5168 * c-lang.c (arch_info): New function.
5169 (enum c_primitive_types): New enum.
5170 (c_language_defn): Instead of string_char_type and
5171 primitive_type_vector set la_language_arch_info.
5172
5173 2004-07-28 Andrew Cagney <cagney@gnu.org>
5174
5175 * language.h (struct language_arch_info): Fix typo
5176 s/primative/primitive/.
5177 * gdbtypes.c (lookup_primitive_typename): Ditto.
5178 * language.c (language_lookup_primitive_type_by_name)
5179 (unknown_language_arch_info): Ditto.
5180
5181 2004-07-27 Andrew Cagney <cagney@gnu.org>
5182
5183 * defs.h (enum language): Add nr_languages.
5184 * language.h (struct language_arch_info): Define.
5185 (struct language_defn): Add la_language_arch_info.
5186 (language_lookup_primative_type_by_name): Declare.
5187 (language_string_char_type): Declare.
5188 * language.c (_initialize_language, language_gdbarch_post_init)
5189 (struct language_gdbarch, language_gdbarch_data): Implement
5190 per-architecture language information.
5191 (unknown_language_arch_info, language_string_char_type)
5192 (language_lookup_primative_type_by_name): New functions.
5193 (unknown_language_defn, auto_language_defn)
5194 (local_language_defn): Set la_language_arch_info to
5195 unknown_language_arch_info.
5196 (unknown_builtin_types): Delete.
5197 * gdbtypes.c (lookup_primitive_typename): Use
5198 language_lookup_primative_type_by_name.
5199 (create_string_type): Use language_string_char_type.
5200 * values.c (value_from_string): Use language_string_char_type.
5201 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
5202 * p-lang.c (pascal_language_defn): Ditto.
5203 * m2-lang.c (m2_language_defn): Ditto.
5204 * jv-lang.c (java_language_defn): Ditto.
5205 * objc-lang.c (objc_language_defn): Ditto.
5206 * f-lang.c (f_language_defn): Ditto.
5207 * c-lang.c (c_language_defn, cplus_language_defn)
5208 (asm_language_defn, minimal_language_defn): Ditto.
5209
5210 2004-07-27 Andrew Cagney <cagney@gnu.org>
5211
5212 * gdbtypes.h (struct builtin_type): Declare.
5213 (builtin_type): Declare.
5214 * d10v-tdep.c (d10v_register_type): Use builtin_type.
5215 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
5216 (gdbtypes_post_init): New function.
5217 (builtin_type): New function.
5218
5219 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
5220
5221 * remote-m32r-sdi.c: Fix breakpoint bug.
5222 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
5223 recv_char_data, recv_long_data): New functions to replace communication
5224 sequences.
5225
5226 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
5227
5228 Document PR threads/1650.
5229 * PROBLEMS (Threads): Document problem with many threads
5230
5231 2004-07-26 Andrew Cagney <cagney@gnu.org>
5232
5233 * gdb-mi.el: Move from here ...
5234 * mi/gdb-mi.el: ... to here.
5235
5236 2004-07-26 Andrew Cagney <cagney@gnu.org>
5237
5238 Problem reported by Ashley Pittman <ashley@quadrics.com>.
5239 * main.c (captured_main): When in batch mode always detach.
5240
5241 2004-07-26 Andrew Cagney <cagney@gnu.org>
5242
5243 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
5244 and h8300 as broken.
5245 * NEWS: END-OF-LIFE frame compatibility module.
5246 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
5247 specific comments.
5248
5249 2004-07-26 Andrew Cagney <cagney@gnu.org>
5250
5251 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
5252 * xcoffsolib.c (_initialize_xcoffsolib): Update.
5253 * wince.c (_initialize_wince): Update.
5254 * win32-nat.c (_initialize_win32_nat): Update.
5255 * varobj.c (_initialize_varobj): Update.
5256 * valops.c (_initialize_valops): Update.
5257 * utils.c (initialize_utils, initialize_utils): Update.
5258 * tui/tui-win.c (_initialize_tui_win): Update.
5259 * top.c (init_main): Update.
5260 * symfile.c (_initialize_symfile): Update.
5261 * source.c (_initialize_source): Update.
5262 * somsolib.c (_initialize_som_solib): Update.
5263 * solib.c (_initialize_solib): Update.
5264 * solib-frv.c (_initialize_frv_solib): Update.
5265 * serial.c (_initialize_serial): Update.
5266 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
5267 * remote.c (_initialize_remote, _initialize_remote): Update.
5268 * remote-vx.c (_initialize_vx): Update.
5269 * remote-utils.c (_initialize_sr_support): Update.
5270 * remote-sds.c (_initialize_remote_sds): Update.
5271 * remote-mips.c (_initialize_remote_mips): Update.
5272 * remote-e7000.c (_initialize_remote_e7000): Update.
5273 * proc-api.c (_initialize_proc_api): Update.
5274 * printcmd.c: Update.
5275 * parse.c (_initialize_parse): Update.
5276 * pa64solib.c (_initialize_pa64_solib): Update.
5277 * p-valprint.c (_initialize_pascal_valprint): Update.
5278 * monitor.c (_initialize_remote_monitors): Update.
5279 * mips-tdep.c (_initialize_mips_tdep): Update.
5280 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5281 * maint.c (_initialize_maint_cmds): Update.
5282 * lin-lwp.c (_initialize_lin_lwp): Update.
5283 * language.c (_initialize_language): Update.
5284 * kod.c (_initialize_kod): Update.
5285 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
5286 * i386-tdep.c (_initialize_i386_tdep): Update.
5287 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
5288 * gdbarch.sh: Update.
5289 * gdbarch.c: Re-generate.
5290 * gdb-events.sh: Update.
5291 * gdb-events.c: Re-generate.
5292 * frame.c (_initialize_frame): Update.
5293 * exec.c: Update.
5294 * demangle.c (_initialize_demangler): Update.
5295 * dcache.c (_initialize_dcache): Update.
5296 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
5297 * cp-valprint.c (_initialize_cp_valprint): Update.
5298 * corefile.c (_initialize_core): Update.
5299 * command.h: Update.
5300 * cli/cli-decode.h: Update.
5301 * cli/cli-cmds.c (init_cli_cmds): Update.
5302 * charset.c (_initialize_charset): Update.
5303 * breakpoint.c (_initialize_breakpoint): Update.
5304 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
5305 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5306 * aix-thread.c (_initialize_aix_thread): Update.
5307
5308 2004-07-24 Mark Kettenis <kettenis@gnu.org>
5309
5310 Partial fix for PR backtrace/1718.
5311 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
5312 that GCC migrates into the prolugue. Don't handle any
5313 instructions that clobber %ebx.
5314
5315 2004-07-23 Andrew Cagney <cagney@gnu.org>
5316
5317 Use regcache_raw_collect instead of regcache_collect.
5318 * regcache.h (regcache_collect): Delete declaration.
5319 * regcache.c (regcache_colect): Delete function.
5320 * win32-nat.c (do_child_store_inferior_registers): Update.
5321 * sol-thread.c (sol_thread_store_registers): Update.
5322 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
5323 * rs6000-nat.c (store_register): Update.
5324 * remote.c (store_register_using_P, remote_store_registers): Update.
5325 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
5326 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
5327 (fill_vrregset, store_spe_registers, fill_gregset)
5328 (fill_gregset): Update.
5329 * nto-procfs.c (procfs_store_registers): Update.
5330 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
5331 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
5332 * m68klinux-nat.c (store_register, fill_gregset): Update.
5333 * m68k-tdep.c (fill_gregset): Update.
5334 * infptrace.c (store_register): Update.
5335 * i386-nto-tdep.c (i386nto_regset_fill): Update.
5336 * i386-linux-nat.c (store_register, fill_gregset): Update.
5337 * hppa-linux-nat.c (fill_gregset): Update.
5338 * go32-nat.c (store_register): Update.
5339 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
5340 (store_fp_regs): Update.
5341 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
5342 (store_nwfpe_extended, store_fpregister, store_fpregs)
5343 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
5344 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
5345 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
5346 (store_regs_user_thread, store_regs_kernel_thread): Update.
5347
5348 2004-07-24 Mark Kettenis <kettenis@gnu.org>
5349
5350 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
5351 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
5352 encoding.
5353 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
5354 member of `struct comp_unit'.
5355
5356 2004-07-23 Andrew Cagney <cagney@gnu.org>
5357
5358 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
5359 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
5360
5361 2004-07-23 Martin Hunt <hunt@redhat.com>
5362 Kevin Buettner <kevinb@redhat.com>
5363
5364 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
5365 alignment was being added to the offset instead of multiplied.
5366
5367 2004-07-23 Mark Kettenis <kettenis@gnu.org>
5368
5369 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
5370 changed signal trampoline in OpenBSD 3.5-current.
5371
5372 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
5373 <machine/pcb.h> and "bsd-kvm.h".
5374 (sparc64nbsd_supply_pcb): New function.
5375 (_initialize_sparc64nbsd_nat): Renamed from
5376 _initialize_sparcnbsd_nat. Enable libkvm interface.
5377 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
5378 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
5379 (LOADLIBES): New variable.
5380
5381 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
5382
5383 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
5384
5385 2004-07-21 Andrew Cagney <cagney@gnu.org>
5386
5387 Use regcache_raw_supply instead of supply_register.
5388 * regcache.h (supply_register): Delete declaration.
5389 * regcache.c (supply_register): Delete function.
5390 * wince.c (do_child_fetch_inferior_registers): Update.
5391 * win32-nat.c (do_child_fetch_inferior_registers)
5392 (fetch_elf_core_registers): Update.
5393 * v850ice.c (v850ice_fetch_registers): Update.
5394 * thread-db.c (thread_db_store_registers): Update.
5395 * sol-thread.c (sol_thread_store_registers): Update.
5396 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
5397 * rs6000-nat.c (fetch_register): Update.
5398 * rom68k-rom.c (rom68k_supply_one_register): Update.
5399 * remote.c (remote_wait, remote_async_wait): Update.
5400 * remote-st.c (get_hex_regs): Update.
5401 * remote-sim.c (gdbsim_fetch_register): Update.
5402 * remote-sds.c (sds_fetch_registers): Update.
5403 * remote-rdp.c (remote_rdp_fetch_register): Update.
5404 * remote-rdi.c (arm_rdi_fetch_registers): Update.
5405 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
5406 * remote-m32r-sdi.c (m32r_fetch_register): Update.
5407 * remote-hms.c (init_hms_cmds): Update.
5408 * remote-est.c (init_est_cmds): Update.
5409 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
5410 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
5411 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
5412 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
5413 (fetch_register, supply_vrregset, supply_vrregset)
5414 (fetch_spe_registers): Update.
5415 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
5416 * monitor.c (monitor_supply_register): Update.
5417 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
5418 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
5419 (mipsnbsd_supply_fpreg): Update.
5420 * mips-nat.c (fetch_inferior_registers)
5421 (fetch_core_registers): Update.
5422 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
5423 (supply_fpregset, mips64_supply_gregset)
5424 (mips64_supply_fpregset): Update.
5425 * m68klinux-nat.c (fetch_register, supply_gregset)
5426 (supply_fpregset): Update.
5427 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
5428 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
5429 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
5430 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
5431 * infptrace.c (fetch_register): Update.
5432 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
5433 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
5434 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
5435 (gnu_fetch_registers, gnu_store_registers): Update.
5436 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
5437 * i386-linux-nat.c (fetch_register, supply_gregset)
5438 (dummy_sse_values): Update.
5439 * hpux-thread.c (hpux_thread_fetch_registers): Update.
5440 * hppah-nat.c (fetch_register): Update.
5441 * hppa-linux-nat.c (fetch_register, supply_gregset)
5442 (supply_fpregset): Update.
5443 * go32-nat.c (fetch_register): Update.
5444 * dve3900-rom.c (fetch_bitmapped_register)
5445 (_initialize_r3900_rom): Update.
5446 * cris-tdep.c (supply_gregset): Update.
5447 * abug-rom.c (init_abug_cmds): Update.
5448 * core-aout.c (fetch_core_registers): Update.
5449 * armnbsd-nat.c (supply_gregset, supply_fparegset)
5450 (fetch_register, fetch_fp_register): Update.
5451 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
5452 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
5453 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
5454 * alphanbsd-tdep.c (fetch_core_registers): Update.
5455 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
5456 * alpha-nat.c (fetch_osf_core_registers)
5457 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
5458 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
5459 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
5460
5461 2004-07-21 Andrew Cagney <cagney@gnu.org>
5462
5463 * PROBLEMS: Mention breakpoints/1702.
5464 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
5465 that is known to work.
5466
5467 2004-07-21 Andrew Cagney <cagney@gnu.org>
5468
5469 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
5470 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
5471 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
5472 (handle_inferior_event): Wrap call to deprecated
5473 IGNORE_HELPER_CALL in #ifdef.
5474 * config/mips/tm-nbsd.h: Update.
5475
5476 2004-07-20 Jim Blandy <jimb@redhat.com>
5477
5478 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
5479 bfd_mach_ppc has no segment registers.
5480
5481 Include PowerPC SPR numbers for special-purpose registers.
5482 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
5483 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
5484 new member in initializer.
5485 (S, S4, SN4, S64): New macros for defining special-purpose
5486 registers.
5487 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
5488 registers_403, registers_403GC, registers_505, registers_860,
5489 registers_601, registers_602, registers_603, registers_604,
5490 registers_750, registers_e500): Use them.
5491
5492 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
5493 replace references with expression used to initialize variable.
5494
5495 2004-07-20 Andrew Cagney <cagney@gnu.org>
5496
5497 * breakpoint.c (deprecated_read_memory_nobpt): Rename
5498 read_memory_nobpt.
5499 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
5500 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
5501 (s390_sigtramp_frame_sniffer): Update.
5502 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
5503 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
5504 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
5505 (mips32_fetch_instruction): Update.
5506 * mcore-tdep.c (get_insn): Update.
5507 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
5508 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
5509 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
5510 * i386-linux-tdep.c (i386_linux_sigtramp_start)
5511 (i386_linux_rt_sigtramp_start): Update.
5512 * i386-linux-nat.c (child_resume): Update.
5513 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
5514 * hppa-linux-tdep.c (insns_match_pattern): Update.
5515 * gdbcore.h: Update.
5516 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
5517 * frame.c (safe_frame_unwind_memory): Update.
5518 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
5519 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
5520 * alpha-tdep.c (alpha_read_insn): Update.
5521
5522 2004-07-20 Andrew Cagney <cagney@gnu.org>
5523
5524 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
5525 containing both bytes and mask. Add "frame_type".
5526 * tramp-frame.c (tramp_frame_start): Update.
5527 (tramp_frame_prepend_unwinder): Update.
5528 * mips-linux-tdep.c (mips_linux_o32_sigframe)
5529 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
5530 (mips_linux_n64_rt_sigframe): Update. Make "static const".
5531 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
5532
5533 2004-07-19 Eli Zaretskii <eliz@gnu.org>
5534
5535 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
5536 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
5537 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
5538 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
5539
5540 2004-07-17 Andrew Cagney <cagney@gnu.org>
5541
5542 * NEWS, PROBLEMS: Update for 6.2.
5543
5544 * README: Update to 6.2.
5545
5546 * utils.c (xvasprintf): Call xstrvprintf.
5547
5548 * parse.c: Update copyright.
5549 (null_post_parser): Eliminate ARGSUSED.
5550
5551 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
5552 * tui/tui-win.c (tui_get_cmd_list): Ditto.
5553 * symfile-mem.c (_initialize_symfile_mem): Ditto.
5554
5555 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
5556 * ppc-linux-nat.c: Use "Linux kernel".
5557 * hppa-linux-tdep.c: Use GNU/Linux.
5558 * hppa-linux-nat.c: Use GNU/Linux.
5559 * dwarfread.c: Add [sic] to use of Linux.
5560
5561 * hppa-linux-nat.c: Do not include <string.h>.
5562 (supply_fpregset): Remove "register" attribute.
5563
5564 * solib-frv.c (fetch_loadmap): Use xfree, not free.
5565
5566 2004-07-17 Mark Kettenis <kettenis@gnu.org>
5567
5568 * configure.in: Define _MSE_INT_H on Solaris 9 too.
5569 * configure, config.in: Regenerated.
5570
5571 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5572 "bsd-kvm.h".
5573 (vaxbsd_supply_pcb): New function.
5574 (_initialize_vaxbsd_nat): New prototype and function.
5575 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
5576 solib-sunos.o.
5577 (LOADLIBES): New variable.
5578 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5579 (LOADLIBES): New variable.
5580 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5581 (LOADLIBES): New variable.
5582 * Makefile.in (vaxbsd-nat.o): Update dependencies.
5583
5584 2004-07-16 Andrew Cagney <cagney@gnu.org>
5585
5586 * defs.h (event_loop_p): Replace variable declaration with macro,
5587 always 1.
5588 * main.c (captured_main): Delete options "-async" and "-noasync".
5589 (event_loop_p): Delete variable.
5590 * NEWS: Mention that "-async" and "-noasync" were removed.
5591
5592 2004-07-16 Andrew Cagney <cagney@gnu.org>
5593
5594 * remote-m32r-sdi.c: Re-indent.
5595
5596 2004-07-16 Jim Blandy <jimb@redhat.com>
5597
5598 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
5599 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
5600 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
5601 missing MPC823 SPRs.
5602 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
5603 incorrect. (This was corrected in GDB's register name tables on
5604 2004-07-14.)
5605
5606 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
5607 should be "esasrr" ("ESA Save and Restore Register").
5608
5609 2004-07-16 Andrew Cagney <cagney@gnu.org>
5610
5611 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
5612 calls, no longer applicable. Update comments and rename parameter
5613 "step_frame" to "return_frame".
5614
5615 2004-07-16 Andrew Cagney <cagney@gnu.org>
5616
5617 * frame.c (fprint_field): New function.
5618 (fprint_frame_id): Use fprint_field.
5619
5620 2004-07-15 Joel Brobecker <brobecker@gnat.com>
5621
5622 * ada-lang.c (ada_language_defn): Remove commented out code.
5623
5624 2004-07-15 Jim Blandy <jimb@redhat.com>
5625
5626 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
5627 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
5628
5629 2004-07-14 Jim Blandy <jimb@redhat.com>
5630
5631 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
5632
5633 * ppc-tdep.h (ppc_num_vrs): New enum constant.
5634
5635 * ppc-tdep.h (ppc_num_srs): New enum constant.
5636
5637 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
5638 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
5639 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
5640 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
5641 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
5642 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
5643 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
5644 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
5645 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
5646 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
5647 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
5648 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
5649 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
5650 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
5651 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
5652 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
5653 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
5654 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
5655 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
5656 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
5657 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
5658 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
5659 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
5660 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
5661 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
5662 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
5663 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
5664 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
5665 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
5666 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
5667 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
5668 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
5669 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
5670 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
5671 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
5672 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
5673 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
5674 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
5675 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
5676 special-purpose register numbers.
5677
5678 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
5679 manual mentions 'md_twb', but many mention 'm_twb', and at that
5680 point in the register list.)
5681
5682 2004-07-14 Andrew Cagney <cagney@gnu.org>
5683
5684 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
5685 instead of "internal-error".
5686
5687 2004-07-10 Joel Brobecker <brobecker@gnat.com>
5688
5689 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
5690 that was inserted inside a comment.
5691
5692 2004-07-10 Randolph Chung <tausq@debian.org>
5693
5694 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
5695 function.
5696 (hppa_hpux_push_dummy_code): New function.
5697 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
5698 Set find_global_pointer method.
5699
5700 2004-07-10 Mark Kettenis <kettenis@gnu.org>
5701
5702 * NEWS: Mention BSD libkvm interface.
5703
5704 2004-07-10 Michael Snyder <msnyder@redhat.com>
5705
5706 * symfile.c (generic_load): Comment typo.
5707 * stack.c (get_selected_block): Ditto.
5708 * regcache.c (regcache_cooked_read): Ditto.
5709 * monitor.c (monitor_debug): Ditto.
5710 * mips-tdep.c (mips_read_pc): Ditto.
5711 * i386-linux-nat.c (ps_get_thread_area): Ditto.
5712 * gdb_mbuild.sh: Ditto.
5713 * gdbarch.sh: Ditto.
5714 * gdbarch.h: Ditto.
5715
5716 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
5717
5718 * ada-tasks.c: Remove file.
5719
5720 Remove ARI problems:
5721
5722 * ada-exp.y (write_var_from_sym): Reformat to put operator at
5723 beginning of line.
5724
5725 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
5726 Add comment.
5727 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
5728 (MIN_OF_SIZE): Rename min_of_size. Add comment.
5729 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
5730 (UMIN_OF_SIZE): Remove.
5731 (max_of_type): New function to replace orphan macro in gdbtypes.h
5732 (min_of_type): Ditto.
5733 (discrete_type_high_bound): Use max_of_type.
5734 (discrete_type_low_bound): Use min_of_type.
5735 (possible_user_operator_p): Move operator to beginning of line.
5736 (ada_is_variant_part): Ditto.
5737 (ensure_lval): Rewrite to avoid deprecated operations.
5738 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
5739 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
5740 (ada_enum_name): Remove assignments in 'if' statements.
5741 (build_ada_types): Add gdbarch parameter.
5742 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
5743 with gdbarch_data_register_post_init.
5744 Use add_setshow_uinteger_cmd rather than add_set_cmd and
5745 add_show_from_set.
5746
5747 * ada-valprint.c (inspect_it): Remove declaration.
5748 (repeat_count_threshold): Remove declaration.
5749 (ada_print_floating): Remove assignments in 'if' statements.
5750 (print_str): Move operator to beginning of line.
5751
5752 2004-07-08 Jim Blandy <jimb@redhat.com>
5753
5754 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
5755
5756 2004-07-08 Bob Rossi <bob@brasko.net>
5757
5758 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
5759
5760 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
5761
5762 * language.h (struct_language_defn): Add new function pointer:
5763 la_class_name_from_physname. Also add new prototype for
5764 language_class_name_from_physname.
5765 * language.c (language_class_name_from_physname): New function.
5766 (unk_lang_class_name): Ditto.
5767 (unknown_language_defn, auto_language_defn): Change
5768 to add unk_lang_class_name function pointer for
5769 la_class_name_from_physname.
5770 (local_language_defn): Ditto.
5771 * dwarf2read.c (guess_structure_name): Change to call
5772 language_class_name_from_physname.
5773 (determine_class_name): Ditto.
5774 * cp-support.c (class_name_from_physname): Renamed.
5775 (cp_class_name_from_physname): New name of function.
5776 * cp-support.h: Ditto.
5777 * c-lang.c (c_language_defn): Change to add NULL
5778 for class_name_from_physname function pointer.
5779 (cplus_language_defn): Change to add cp_class_name_from_physname.
5780 * jv-lang.c (java_class_name_physname): New function.
5781 (java_find_last_component): New static routine.
5782 (java_language_defn): Add java_class_name_from_physname pointer.
5783 * ada-lang.c (ada_language_defn): Change to add NULL
5784 for class_name_from_physname function pointer.
5785 * f-lang.c (f_language_defn): Ditto.
5786 * m2-lang.c (m2_language_defn): Ditto.
5787 * objc-lang.c (objc_language_defn): Ditto.
5788 * p-lang.c (pascal_language_defn): Ditto.
5789 * scm-lang.c (scm_language_defn): Ditto.
5790
5791 2004-07-06 Andrew Cagney <cagney@gnu.org>
5792
5793 Patch from Bart Robinson.
5794 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
5795 (O_LARGEFILE): Define to 0, if not defined.
5796
5797 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5798
5799 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
5800 <machine/pcb.h> and "bsd-kvm.h".
5801 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
5802 (m68kbsd_supply_pcb): New function.
5803 (_initialize_m68kbsd_nat): New prototype and function.
5804 * Makefile.in (m68kbsd-nat.o): Update dependencies.
5805 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5806 (LOADLIBES): New variable.
5807 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
5808 (LOADLIBES): New variable.
5809
5810 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
5811
5812 2004-07-03 Mark Kettenis <kettenis@gnu.org>
5813
5814 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
5815 <sys/proc.h>.
5816 (bsd_kvm_cmdlist): New variable.
5817 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
5818 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
5819 command and "kvm proc" command.
5820 * Makefile.in (bsd-kvm.o): Update dependencies.
5821
5822 2004-07-02 Mark Kettenis <kettenis@gnu.org>
5823
5824 * osabi.c: Update copyright year.
5825 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
5826 notes if EI_OSABI is set to ELFOSABI_HPUX.
5827
5828 2004-07-01 Michael Snyder <msnyder@redhat.com>
5829
5830 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
5831 that seems to have gotten whacked out of line.
5832
5833 2004-07-01 Mark Kettenis <kettenis@gnu.org>
5834
5835 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
5836 code.
5837
5838 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5839
5840 * ada-lang.c (decode_packed_array): Minor change to comment.
5841 (ada_value_slice_ptr): New function.
5842 (ada_value_slice): New function.
5843 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
5844 test. Don't know why it is there.
5845 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
5846 to avoid dereferencing huge arrays from which one is slicing.
5847 (empty_array): Correct to return an array rather than
5848 a subrange value.
5849 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
5850 on empty arrays (let'em use 'FIRST instead).
5851
5852 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
5853
5854 Address complaints from gdb_ari.sh:
5855
5856 * ada-exp.y: Include gdb_string.h rather than string.h.
5857 (convert_char_literal): Reformat declaration.
5858 * ada-lang.h: Include opaque struct declaration for struct frame_info.
5859 * ada-lex.l: Change use of free to xfree (the macro would do so
5860 anyway, but this is harmless).
5861 Include gdb_string.h rather than string.h.
5862 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
5863
5864 * ada-lang.c (parse): Remove K&Rism in parameter list.
5865 (is_name_suffix): Correct Linux => GNU/Linux in comment.
5866
5867 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5868
5869 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
5870 dead code.
5871
5872 2004-06-30 Mark Kettenis <kettenis@gnu.org>
5873
5874 * alphabsd-nat.c: Update copyright year.
5875 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
5876
5877 2004-06-29 Joel Brobecker <brobecker@gnat.com>
5878
5879 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
5880 (i386_cygwin_in_solib_call_trampoline): New function.
5881 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
5882 and skip_trampoline_code gdbarch methods.
5883
5884 2004-06-29 Jim Blandy <jimb@redhat.com>
5885
5886 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
5887 name actually used in the dependency lists.
5888
5889 2004-06-29 Randolph Chung <tausq@debian.org>
5890
5891 * NEWS (New native configurations): Mention GNU/Linux/hppa.
5892
5893 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5894
5895 * win32-nat.c (child_pid_to_exec_file): New function.
5896 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
5897 functionality.
5898
5899 2004-06-28 Andrew Cagney <cagney@gnu.org>
5900
5901 * defs.h (xstrvprintf): Declare.
5902 * utils.c (xstrvprintf): New function.
5903 (internal_vproblem, xstrprintf, xasprintf)
5904 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
5905 * serial.c (serial_printf): Ditto.
5906 * complaints.c (vcomplaint): Ditto.
5907
5908 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
5909
5910 * infcmd.c (attach_command): Move call to target_terminal_inferior
5911 behind loading symbol table.
5912
5913 2004-06-28 Andrew Cagney <cagney@gnu.org>
5914
5915 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
5916 change - add back extern deprecated_ui_loop_hook declaration.
5917
5918 2004-06-28 Andrew Cagney <cagney@gnu.org>
5919
5920 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
5921 xstrprintf.
5922 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
5923 (c_value_of_variable): Ditto.
5924 * utils.c (internal_vproblem): Ditto.
5925 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
5926 * remote.c (add_packet_config_cmd): Ditto.
5927 * remote-rdp.c (rdp_set_command_line): Ditto.
5928 * regcache.c (regcache_dump): Ditto.
5929 * frv-tdep.c (new_variant, new_variant): Ditto.
5930 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
5931 (fbsd_find_memory_regions): Ditto.
5932 * breakpoint.c (create_thread_event_breakpoint)
5933 (create_breakpoints): Ditto.
5934 * aix-thread.c (aix_thread_pid_to_str): Ditto.
5935 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
5936
5937 2004-06-28 Joel Brobecker <brobecker@gnat.com>
5938
5939 * ada-lang.c: Re-indent file, with some massaging to help indent
5940 a bit when the result is otherwise really too ugly.
5941
5942 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5943
5944 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
5945 code_addr_p and special_addr_p to 'unsigned int'.
5946
5947 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5948
5949 * i386v4-nat.c: Update copyright year and tweak comment.
5950 (regmap): Remove trailing comma.
5951 (supply_gregset): Rename local variable i to regnum. Call
5952 regcache_raw_supply instead of supply_register.
5953 (fill_gregset): Rename argument regno to regnum. Call
5954 regcache_raw_collect instead of regcache_collect.
5955
5956 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
5957
5958 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
5959 and special_addr_p.
5960 (frame_id_build, frame_id_build_special): Update comments.
5961 (frame_id_build_wild): New prototype.
5962 * frame.c (frame_id_build, frame_id_build_special): Fill in new
5963 struct frame_id fields.
5964 (frame_id_build_wild): New function.
5965 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
5966
5967 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5968
5969 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
5970 hppabsd-tdep.c.
5971
5972 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5973
5974 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
5975
5976 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5977
5978 * ada-lang.c: Re-indent file.
5979
5980 2004-06-27 Joel Brobecker <brobecker@gnat.com>
5981
5982 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
5983 (no_symtab_msg): Likewise.
5984
5985 2004-06-27 Andreas Schwab <schwab@suse.de>
5986
5987 * source.c: Fix whitespace.
5988
5989 2004-06-27 Mark Kettenis <kettenis@gnu.org>
5990
5991 * configure.in: Include <sys/param.h> for td_pcb test.
5992 * configure: Regenerated.
5993
5994 * i386nbsd-nat.c: New file.
5995 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
5996 i386obsd-nat.c and i386obsd-tdep.c.
5997 (i386nbsd-nat.o): New dependency.
5998 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
5999 bsd-kvm.o.
6000 (LOADLIBES): New variable.
6001 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
6002 bsd-kvm.o.
6003 (LOADLIBES): New variable.
6004
6005 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
6006 (LOADLIBES): New variable.
6007
6008 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
6009 fetching from BSD_KVM_PADDR. Correctly lookup address for
6010 "_thread0".
6011
6012 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
6013 "bsd-kvm.h".
6014 (amd64fbsd_supply_pcb): New funcion.
6015 (_initialize_amd64fbsd_nat): Enable libkvm interface.
6016
6017 2004-06-27 <david@streamline-computing.com>
6018
6019 Partial fix for PR cli/1056.
6020 * valarith.c: Check for zero in division and remainder
6021 evaluation.
6022
6023 2004-06-27 Mark Kettenis <kettenis@gnu.org>
6024
6025 * i387-tdep.c: Remove excessive whitespace.
6026
6027 2004-06-26 Andrew Cagney <cagney@gnu.org>
6028
6029 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
6030 * gdb-events.h, gdb-events.c: Re-generate.
6031 * tui/tui-hooks.c (tui_install_hooks): Update.
6032 (tui_remove_hooks): Update.
6033 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
6034
6035 2004-06-26 Mark Kettenis <kettenis@gnu.org>
6036
6037 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
6038 (gregset_t, fpregset_t): Remove typedefs.
6039 (REG_OFFSET): Rename argument.
6040 (amd64bsd_r_reg_offset): Rename from reg_offset.
6041 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6042 Remove functions.
6043 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
6044 of reg_offset.
6045 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
6046
6047 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
6048
6049 * vax-tdep.c: Tweak comment.
6050
6051 Add OpenBSD/hppa support.
6052 * NEWS (New native configurations): Mention OpenBSD/hppa.
6053 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
6054 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
6055 files.
6056 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
6057 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
6058 * configure.host: Add hppa*-*-openbsd*.
6059 * configure.tgt: Add hppa*-*-openbsd*.
6060
6061 2004-06-25 Andrew Cagney <cagney@gnu.org>
6062
6063 * defs.h (deprecated_ui_loop_hook): Deprecated.
6064 * wince.c (child_wait): Update.
6065 * win32-nat.c (child_wait): Update.
6066 * v850ice.c (v850ice_wait): Update.
6067 * top.c (deprecated_ui_loop_hook): Update.
6068 * serial.h: Update.
6069 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
6070 (do_unix_readchar): Update.
6071 * ser-tcp.c (net_open): Update.
6072 * remote-sim.c (gdb_os_poll_quit): Update.
6073 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
6074
6075 2004-06-24 Andrew Cagney <cagney@gnu.org>
6076
6077 * defs.h (deprecated_pre_add_symbol_hook)
6078 (deprecated_post_add_symbol_hook): Deprecated.
6079 * symfile.c (symbol_file_add_with_addrs_or_offsets)
6080 (symbol_file_add_with_addrs_or_offsets): Update references.
6081
6082 2004-06-24 Andrew Cagney <cagney@gnu.org>
6083
6084 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
6085 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
6086 * wince.c (ui_loop_hook): Delete extern declaration.
6087 * win32-nat.c (ui_loop_hook): Delete extern declaration..
6088 * v850ice.c (ui_loop_hook): Delete extern declaration..
6089 * ser-unix.c (ui_loop_hook): Delete extern declaration..
6090 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
6091 * remote-sim.c (ui_loop_hook): Delete extern declaration..
6092 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
6093 ui_loop_hook declaration.
6094
6095 2004-06-24 Andrew Cagney <cagney@gnu.org>
6096
6097 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
6098 entry_func_highpc fields.
6099 * objfiles.c (init_entry_point_info): Do not clear
6100 entry_func_lowpc and entry_func_highpc.
6101 (objfile_relocate): Do not relocate entry_func_lowpc and
6102 entry_func_highpc.
6103 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
6104 entry_func_highpc.
6105 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
6106 entry_func_highpc.
6107 * blockframe.c (legacy_frame_chain_valid): Replace tests against
6108 entry_func_lowpc and entry_func_highpc with call to
6109 inside_entry_func.
6110
6111 2004-06-24 Mark Kettenis <kettenis@gnu.org>
6112
6113 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
6114 quad-precision floating point arguments in registers.
6115
6116 2004-06-24 Mark Kettenis <kettenis@gnu.org>
6117
6118 From Michael Mueller <m.mueller99@kay-mueller.de>:
6119 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
6120 account.
6121
6122 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
6123
6124 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
6125 to -1.
6126 * breakpoint.c (bpstat_stop_status): Move check for ignoring
6127 untriggered watchpoints to a separate if clause. Update function
6128 comment regarding STOPPED_BY_WATCHPOINT argument.
6129
6130 2004-06-22 Jim Blandy <jimb@redhat.com>
6131
6132 * gdbarch.sh: Doc fix.
6133
6134 2004-06-21 Martin Hunt <hunt@redhat.com>
6135 Kevin Buettner <kevinb@redhat.com>
6136
6137 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
6138 * mips-tdep.h (MIPS_SP_REGNUM): Define.
6139 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
6140 to set_gdbarch_sp_regnum(). Use cooked register number.
6141 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
6142
6143 2004-06-21 Andrew Cagney <cagney@gnu.org>
6144
6145 * gdbarch.sh: When the macro field is empty, do not generate a
6146 macro definition. When the macro field is "=", generate the macro
6147 name from the upper-case function name.
6148 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
6149 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
6150 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
6151 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
6152 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
6153 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
6154 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
6155 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
6156 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
6157 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
6158 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
6159 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
6160 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
6161 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
6162 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
6163 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
6164 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
6165 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
6166 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
6167 (DEPRECATED_USE_STRUCT_CONVENTION)
6168 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6169 (DEPRECATED_FRAME_INIT_SAVED_REGS)
6170 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
6171 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
6172 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
6173 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
6174 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
6175 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
6176 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
6177 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
6178 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
6179 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
6180 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
6181 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
6182 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
6183 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
6184 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
6185 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
6186
6187 2004-06-21 Andrew Cagney <cagney@gnu.org>
6188
6189 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
6190 macro name, and the function rather than macro value. Only wrap
6191 macro print statements in #ifdef. Move format logic to where it
6192 is needed.
6193 * gdbarch.c: Re-generate.
6194
6195 * gdbarch.sh (read): Delete "print_p" and "description", add
6196 "garbage_at_eol". Check for non-empty garbage at end-of-line.
6197 Delete references to print_p.
6198 (TARGET_ARCHITECTURE): Delete print predicate.
6199 * gdbarch.c: Re-generate.
6200
6201 * gdbarch.sh: Check that multi-arch methods do not provide a
6202 macro.
6203 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
6204 (print_registers_info, print_float_info, print_vector_info)
6205 (adjust_breakpoint_address, remote_translate_xfer_address)
6206 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
6207 (address_class_type_flags_to_name, unwind_sp): Remove the macro
6208 name from the multi-arch definition.
6209
6210 2004-06-20 Andrew Cagney <cagney@gnu.org>
6211
6212 * gdbarch.sh: Sort by the function, instead of macro name.
6213 * gdbarch.c: Re-generate.
6214
6215 2004-06-20 Andrew Cagney <cagney@gnu.org>
6216
6217 * gdbarch.sh: Use the function, instead of macro name in
6218 errors and the log file.
6219 (return_value): Remove stray ":" in spec.
6220
6221 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
6222 * gdbarch.h, gdbarch.c: Re-generate.
6223 * Makefile.in (arch-utils.o): Update dependencies.
6224 * values.c (using_struct_return): Move code calling
6225 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
6226 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
6227 to legacy_return_value, simplify.
6228 * infcmd.c (print_return_value): Move code calling
6229 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
6230 to legacy_return_value, simplify.
6231 * infcall.c (call_function_by_hand): Move code calling
6232 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
6233 * arch-utils.c: Update copyright. Include "gdbcore.h".
6234 (legacy_return_value): New function.
6235 * arch-utils.h: Update copyright.
6236 (legacy_return_value): Declare.
6237
6238 2004-06-20 Andrew Cagney <cagney@gnu.org>
6239
6240 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
6241 * gdbarch.h, gdbarch.c: Re-generate.
6242 * values.c (using_struct_return): Update call.
6243 * mcore-tdep.c: Update comment.
6244 * infcall.c (call_function_by_hand): Update comment.
6245 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6246 * arch-utils.h (always_use_struct_convention): Update.
6247 * v850-tdep.c (v850_gdbarch_init): Update.
6248 * sh64-tdep.c (sh64_gdbarch_init): Update.
6249 * sh-tdep.c (sh_gdbarch_init): Update.
6250 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6251 * mips-tdep.c (mips_gdbarch_init): Update.
6252 * mcore-tdep.c (mcore_gdbarch_init): Update.
6253 * m32r-tdep.c (m32r_gdbarch_init): Update.
6254 * ia64-tdep.c (ia64_gdbarch_init): Update.
6255 * h8300-tdep.c (h8300_gdbarch_init): Update.
6256 * frv-tdep.c (frv_gdbarch_init): Update.
6257 * cris-tdep.c (cris_gdbarch_init): Update.
6258 * arm-tdep.c (arm_gdbarch_init): Update.
6259 * alpha-tdep.c (alpha_gdbarch_init): Update.
6260
6261 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
6262
6263 * PROBLEMS: Add more specific information, and a work-around,
6264 for PR gdb/1458.
6265
6266 2004-06-18 Andrew Cagney <cagney@gnu.org>
6267
6268 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
6269 * gdbarch.h, gdbarch.c: Re-generate.
6270 * ada-lang.c (ada_finish_decode_line_1): Update.
6271 * infrun.c (handle_inferior_event): Update.
6272 * infcall.c (find_function_addr): Update.
6273 * linespec.c (minsym_found): Update.
6274 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
6275 Update.
6276 * blockframe.c (legacy_frameless_look_for_prologue): Update.
6277 * cli/cli-cmds.c (disassemble_command): Update.
6278 * vax-tdep.c (vax_gdbarch_init): Update.
6279
6280 2004-06-18 Mark Kettenis <kettenis@gnu.org>
6281
6282 * i386-tdep.c (i386_collect_fpregset): Fix comment.
6283
6284 2004-06-17 Andrew Cagney <cagney@gnu.org>
6285
6286 GDB 6.1.1 released from the GDB 6.1 branch.
6287 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
6288 * PROBLEMS: Ditto.
6289
6290 2004-06-16 Daniel Jacobowitz <dan@debian.org>
6291
6292 PR gdb/1658
6293 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
6294 operation as a uleb128. Found by Michael Coulter.
6295
6296 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
6297
6298 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
6299 make it non-static.
6300 * ada-lang.h (task_control_block): declaration moved from ada-task.c
6301 to ada-lang.h; this is needed to be able to implement the kill command
6302 in multi-task mode.
6303 (task_ptid): Ditto.
6304 (task_entry): Ditto.
6305 (task_list): Ditto.
6306 (ada_build_task_list): Ditto.
6307
6308 * ada-lang.c: Conditionalize routines and data structures related
6309 to breakpoints, exceptions, completion, and symbol caching on
6310 GNAT_GDB, since these are not yet used in the submitted public sources.
6311 (ada_main_name): Editorial: Move definition out of exception-related
6312 code.
6313
6314 2004-06-15 Andrew Cagney <cagney@gnu.org>
6315
6316 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
6317 deprecated_pc_in_call_dummy.
6318
6319 2004-06-15 Alan Modra <amodra@bigpond.net.au>
6320
6321 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
6322 bfd_get_section_size_before_reloc or _raw_size.
6323 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
6324 * dwarf2read.c (dwarf2_locate_sections): Likewise.
6325 (dwarf2_read_section): Likewise.
6326 * elfread.c (elf_locate_sections): Likewise.
6327 * gcore.c (derive_heap_segment): Likewise.
6328 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
6329 * remote-e7000.c (e7000_load): Likewise.
6330 * remote-m32r-sdi.c (m32r_load): Likewise.
6331 * remote-mips.c (mips_load_srec): Likewise.
6332 (pmon_load_fast): Likewise.
6333 * remote.c (compare_sections_command): Likewise.
6334 * symfile.c (add_section_size_callback): Likewise.
6335 (load_section_callback): Likewise.
6336 (pc_in_unmapped_range): Likewise.
6337 (pc_in_mapped_range): Likewise.
6338 (sections_overlap): Likewise.
6339 (list_overlays_command): Likewise.
6340 (simple_overlay_update_1): Likewise.
6341 (simple_overlay_update): Likewise.
6342 * tracepoint.c (remote_set_transparent_ranges): Likewise.
6343 * win32-nat.c (core_section_load_dll_symbols): Likewise.
6344
6345 2004-06-14 Randolph Chung <tausq@debian.org>
6346
6347 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
6348 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
6349 static.
6350 (hppa_hpux_inferior_created): New function.
6351 (hppa_hpux_init_abi): Register observer.
6352 * symfile.c (hp_cxx_exception_support_initialized)
6353 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
6354 (symbol_file_add_main_1, symbol_file_clear): Likewise.
6355
6356 2004-06-14 Randolph Chung <tausq@debian.org>
6357
6358 * MAINTAINERS (Write After Approval): Alphabetize my entry
6359 correctly.
6360
6361 2004-06-14 Andrew Cagney <cagney@gnu.org>
6362
6363 * MAINTAINERS (testsuite): List Michael Chastain as the lead
6364 testsuite maintainer.
6365
6366 2004-06-13 Andrew Cagney <cagney@gnu.org>
6367
6368 * infcmd.c (print_return_value): Fix logic, allow
6369 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
6370
6371 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
6372 defining any macros.
6373 * gdbarch.h: Re-generate.
6374
6375 * gdbarch.sh: Delete "level" attribute. Only check for a macro
6376 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
6377 * gdbarch.h: Re-generate.
6378
6379 * values.c (generic_use_struct_convention): Don't check gcc_p.
6380
6381 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
6382 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
6383 * gdbarch.h, gdbarch.c: Regenerate.
6384 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
6385 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
6386 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6387 deprecated_max_register_raw_size and
6388 deprecated_max_register_virtual_size.
6389 * v850-tdep.c (v850_gdbarch_init): Ditto.
6390 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6391 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6392 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6393 * cris-tdep.c (cris_gdbarch_init): Ditto.
6394
6395 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
6396 * gdbarch.h, gdbarch.c: Re-generate.
6397 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
6398 (m68hc11_use_struct_convention): Delete function.
6399 (m68hc11_extract_struct_value_address): Delete function.
6400 (m68hc11_return_value): New function.
6401 (m68hc11_gdbarch_init): Instead of store_return_value,
6402 extract_return_value, return_value_on_stack,
6403 deprecated_extract_struct_value_address and use_struct_convention,
6404 set return_value.
6405 * values.c (using_struct_return): Do not call
6406 RETURN_VALUE_ON_STACK.
6407 * arch-utils.h (generic_return_value_on_stack_not): Delete
6408 declaration.
6409 * arch-utils.c (generic_return_value_on_stack_not): Delete
6410 function.
6411
6412 2004-06-12 Andrew Cagney <cagney@gnu.org>
6413
6414 * values.c (register_value_being_returned): Delete function.
6415 * infcmd.c (legacy_return_value): Delete function.
6416 * infcall.c (call_function_by_hand): Inline
6417 "register_value_being_returned", simplify.
6418 * values.c (using_struct_return): Update comment, refer to
6419 print_return_value instead of register_value_being_returned.
6420 * infcmd.c (print_return_value): Inline calls to
6421 register_value_being_returned and legacy_return_value. Simplify.
6422
6423 2004-06-11 Randolph Chung <tausq@debian.org>
6424
6425 * somread.c (som_symtab_read): Exclude gcc local symbols.
6426
6427 2004-06-11 Randolph Chung <tausq@debian.org>
6428
6429 * infrun.c (handle_inferior_event): Handle the case when a
6430 trampoline ends up in the runtime resolver, and if the trampoline
6431 has no name. Rearrange the code so that all the trampoline
6432 processing happens before other step-out-of-range handling.
6433
6434 2004-06-11 Martin Hunt <hunt@redhat.com>
6435
6436 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
6437 has no fpu.
6438
6439 2004-06-10 Andrew Cagney <cagney@gnu.org>
6440
6441 * blockframe.c (legacy_inside_entry_func): Delete.
6442 (legacy_frame_chain_valid): Inline call to
6443 legacy_inside_entry_func, simplify.
6444
6445 2004-06-10 Bob Rossi <bob@brasko.net>
6446
6447 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
6448 * dwarf2read.c (partial_die_info): Add dirname field.
6449 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
6450 (read_partial_die): Save away DW_AT_comp_dir.
6451 * defs.h (symtab_to_filename): Removed.
6452 * source.c (find_and_open_source): Added.
6453 (open_source_file): Just calls find_and_open_source.
6454 (symtab_to_filename): Removed.
6455 (symtab_to_fullname, psymtab_to_fullname): Added.
6456 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
6457 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
6458 symtab_to_filename.
6459 * symtab.h (partial_symtab): Add dirname field.
6460 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
6461 (mi_cmd_file_list_exec_source_file): Call new function
6462 symtab_to_fullname to find fullname.
6463 (mi_cmd_file_list_exec_source_files): Added.
6464 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
6465 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
6466
6467 2004-06-10 Andrew Cagney <cagney@gnu.org>
6468
6469 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
6470 to generic_use_struct_convention, the default value.
6471
6472 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
6473 of abort.
6474
6475 * ns32k-tdep.c (ns32k_push_arguments): New function.
6476 (ns32k_gdbarch_init): Set deprecated_push_arguments.
6477 * infcall.c (call_function_by_hand): Call error instead of
6478 legacy_push_arguments.
6479 * value.h (legacy_push_arguments): Delete declaration.
6480 * valops.c (legacy_push_arguments): Delete function.
6481 (value_push): Delete function.
6482
6483 2004-06-10 Brian Ford <ford@vss.fsi.com>
6484
6485 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
6486 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
6487 info.
6488 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
6489
6490 2004-06-10 Andrew Cagney <cagney@gnu.org>
6491
6492 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
6493 * gdbarch.h, gdbarch.c: Re-generate.
6494 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
6495 parameters.
6496 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
6497 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
6498 deprecated_pc_in_call_dummy instead of
6499 DEPRECATED_PC_IN_CALL_DUMMY.
6500 (arm_skip_prologue): Ditto.
6501 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
6502 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
6503 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
6504 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
6505 Ditto.
6506 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
6507 (sh64_init_extra_frame_info, sh64_get_saved_register)
6508 (sh64_pop_frame): Ditto.
6509 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
6510 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
6511 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
6512 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
6513 (h8300_pop_frame): Ditto.
6514 * blockframe.c (legacy_inside_entry_func)
6515 (legacy_frame_chain_valid): Ditto.
6516 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
6517 to deprecated_pc_in_call_dummy.
6518
6519 2004-06-09 Andrew Cagney <cagney@gnu.org>
6520
6521 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
6522 provide a default value.
6523 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
6524 * gdbarch.h, gdbarch.c: Re-generate.
6525 * arch-utils.c (generic_convert_register_p): Rename
6526 legacy_convert_register_p
6527 (legacy_register_to_value, legacy_value_to_register): Delete
6528 functions.
6529 * arch-utils.h (generic_convert_register_p): Rename
6530 legacy_convert_register_p.
6531 (legacy_register_to_value, legacy_value_to_register): Delete
6532 declarations.
6533
6534 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
6535 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
6536 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
6537 * gdbarch.h, gdbarch.c: Re-generate.
6538 * infcmd.c (default_print_registers_info): Simplify.
6539 * findvar.c (value_of_register): Simplify.
6540 * mi/mi-main.c (get_register): Simplify.
6541 * arch-utils.c (legacy_convert_register_p): Always return 0.
6542 (legacy_register_to_value, legacy_value_to_register): Always call
6543 internal_error.
6544
6545 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
6546 #ifdef CLEAR_INSN_CACHE code.
6547 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
6548 Delete #ifdef CLEAR_DEFERRED_STORES code.
6549
6550 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
6551
6552 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
6553 copyright.
6554 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
6555
6556 * config/mips/mipsv4.mh: Delete file.
6557
6558 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
6559 unreferenced macro.
6560 (hpread_adjust_stack_address): Delete declaration.
6561
6562 2004-06-08 Andrew Cagney <cagney@gnu.org>
6563
6564 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6565 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
6566 PTRACE_ATTACH / PTRACE_DETACH available call error.
6567 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
6568 * infttrace.c (update_thread_state_after_attach, attach, detach):
6569 Remove #ifdef wrappers.
6570 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
6571 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
6572 * config/nm-bsd.h (ATTACH_DETACH): Delete.
6573 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
6574 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
6575 * config/nm-linux.h (ATTACH_DETACH): Delete.
6576 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
6577 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
6578 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
6579 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
6580 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
6581
6582 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
6583
6584 * configure.in: Set $configdir to the right OS specific value.
6585 Use value when setting $tcldir and $tkdir.
6586 * configure: Regenerate.
6587
6588 2004-06-06 Paul Brook <paul@codesourcery.com>
6589
6590 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
6591 records.
6592
6593 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
6594
6595 * ada-lang.c (lookup_symbol_in_language): New function to allow
6596 re-use of another language's symbol lookup code. (Placed here
6597 temporarily while Ada support is being integrated into the public
6598 tree).
6599 (restore_language): New auxiliary function for
6600 lookup_symbol_in_language.
6601 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
6602 temporarily while Ada support is being integrated into the public
6603 tree).
6604
6605 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
6606
6607 * Makefile.in (check//%): New.
6608
6609 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
6610 (mn10300_store_return_value): Rewrite.
6611 (mn10300_type_align): New.
6612 (mn10300_use_struct_convention): Rewrite.
6613 (mn10300_return_value): New, using all of the above.
6614 (mn10300_pop_frame_regular): Add saved_regs_size.
6615 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
6616
6617 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
6618 regs if PC is on movm.
6619
6620 2004-06-07 Jim Blandy <jimb@redhat.com>
6621
6622 Add native Linux support for the PowerPC E500.
6623 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
6624 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
6625 all architectures except the E500.
6626 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
6627 #definitions.
6628 (struct gdb_evrregset_t): New type.
6629 (have_ptrace_getsetevrregs): New variable.
6630 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
6631 fetch_spe_registers): New functions.
6632 (fetch_register): Call fetch_spe_register as appropriate.
6633 Assert that we're only passed raw register numbers.
6634 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
6635 Don't fetch gprs if they're pseudoregisters.
6636 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
6637 store_spe_registers): New functions.
6638 (store_register): Call store_spe_register as appropriate.
6639 Assert that we're only passed raw register numbers.
6640 (store_ppc_registers): Call store_spe_registers as appropriate.
6641 Don't store gprs if they're pseudoregisters.
6642
6643 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
6644
6645 * thread-db.c (thread_get_info_callback): Fill in the thread_info
6646 struct if one exists, even if we are dealing with a zombie thread.
6647
6648 2004-06-07 Andrew Cagney <cagney@gnu.org>
6649
6650 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
6651 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
6652 Rename PC_REQUIRES_RUN_BEFORE_USE.
6653 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
6654 #ifdef.
6655
6656 2004-06-07 Randolph Chung <tausq@debian.org>
6657
6658 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
6659 unwinding after sp has been saved to the stack but before the end
6660 of the prologue, and after the fp has been modified but before it has
6661 been saved to the stack.
6662 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
6663 Remove superfluous definitions.
6664 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
6665
6666 2004-06-07 Guy Martin <gmsoft@gentoo.org>
6667
6668 Committed by Randolph Chung.
6669 * hppa-linux-nat.c: Include the correct version of the header file
6670 depending on the kernel version.
6671
6672 2004-06-06 Randolph Chung <tausq@debian.org>
6673
6674 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
6675 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
6676
6677 2004-06-06 Randolph Chung <tausq@debian.org>
6678
6679 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6680 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
6681 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
6682 * hppa-tdep.c (hppa_symbol_address): New function definition.
6683 * hppa-tdep.h (hppa_symbol_address): New function declaration.
6684
6685 2004-06-06 Randolph Chung <tausq@debian.org>
6686
6687 * hppa-tdep.h (struct value): Forward declaration.
6688 (gdbarch_tdep): Define tdep find_global_pointer method.
6689 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
6690 associated with the function we are trying to call, and write it
6691 to the gp register.
6692 (hppa32_convert_from_funct_ptr_addr): New function.
6693 (hppa_find_global_pointer): New function.
6694 (hppa_gdbarch_init): Set default find_global_pointer method; set
6695 convert_from_func_ptr_addr method.
6696 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
6697 (hppa_linux_init_abi): Set find_global_pointer method.
6698 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
6699
6700 2004-06-06 Randolph Chung <tausq@debian.org>
6701
6702 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
6703 to struct value *function.
6704 * gdbarch.c: Regenerate.
6705 * gdbarch.h: Likewise.
6706 * infcall.c (call_function_by_hand): Pass entire function value
6707 to push_dummy_call.
6708
6709 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
6710 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
6711 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
6712 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
6713 * arm-tdep.c (arm_push_dummy_call): Likewise.
6714 * avr-tdep.c (avr_push_dummy_call): Likewise.
6715 * cris-tdep.c (cris_push_dummy_call): Likewise.
6716 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
6717 * frv-tdep.c (frv_push_dummy_call): Likewise.
6718 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
6719 * hppa-tdep.c (hppa32_push_dummy_call)
6720 (hppa64_push_dummy_call): Likewise.
6721 * i386-tdep.c (i386_push_dummy_call): Likewise.
6722 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
6723 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
6724 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
6725 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
6726 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
6727 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6728 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
6729 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
6730 (ppc64_sysv_abi_push_dummy_call): Likewise.
6731 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
6732 (ppc64_sysv_abi_push_dummy_call): Likewise.
6733 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6734 * s390-tdep.c (s390_push_dummy_call): Likewise.
6735 * sh-tdep.c (sh_push_dummy_call_fpu)
6736 (sh_push_dummy_call_nofpu): Likewise.
6737 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
6738 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
6739 * vax-tdep.c (vax_push_dummy_call): Likewise.
6740
6741 2004-06-04 Jim Blandy <jimb@redhat.com>
6742
6743 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
6744 gdbarch argument to register_size.
6745
6746 * rs6000-tdep.c (rs6000_store_return_value): Use
6747 regcache_cooked_write_part instead of
6748 deprecated_write_register_bytes.
6749 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
6750 not gdbarch_deprecated_store_return_value.
6751
6752 * ppc-linux-nat.c (store_register, fetch_register): Remove
6753 incorrect assertions. Simplify and generalize handling of
6754 transfers whose sizes are not multiples of, or less than, sizeof
6755 (PTRACE_XFER_TYPE).
6756
6757 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
6758
6759 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
6760 as a new thread event.
6761 * thread-db.c (thread_get_info_callback): If the thread is a
6762 zombie, return TD_THR_ZOMBIE.
6763 (thread_from_lwp): If thread_get_info_callback returns
6764 TD_THR_ZOMBIE, check if the thread is still on the thread list
6765 and return a -1 ptid if not found.
6766 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
6767 change the status to TARGET_WAITKIND_SPURIOUS.
6768
6769 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
6770
6771 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
6772 double values in little endian mode.
6773
6774 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
6775
6776 Committed by Andrew Cagney.
6777 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
6778 after last enum constant to avoid error from IBM C
6779 compiler.
6780
6781 2004-06-02 Jim Blandy <jimb@redhat.com>
6782
6783 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
6784 to 'message', and make it local to the lone block that uses it.
6785
6786 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
6787
6788 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
6789
6790 * ada-exp.y: Update copyright notice.
6791 Include block.h.
6792
6793 Replace REGNAME, LAST, INTERNAL_VARIABLE with
6794 SPECIAL_VARIABLE and unify the treatment of these cases.
6795
6796 (write_attribute_call0): Remove.
6797 (write_attribute_call1): Remove.
6798 (write_attribute_calln): Remove.
6799 (save_qualifier): Add missing semicolon.
6800
6801 (simple_exp,exp): Decomment (i.e., reactivate) code that was
6802 temporarily disabled to allow compilation with FSF head version.
6803
6804 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
6805 use individual operators (OP_*) for all attributes.
6806 (exp syntax): Use write_int.
6807 Handle STRING literals with OP_STRING.
6808 (variable syntax): Add limit parameter to calls to
6809 write_object_renaming.
6810
6811 (temp_parse_space): New definition to hold entities that need
6812 only live until the next call to ada_parse.
6813 (string_to_operator): Rename fields of ada_opname_table entries.
6814
6815 (write_var_from_sym): Record block.
6816 (write_var_from_name): Minor reformatting.
6817 Make sure saved name is properly encoded in the case of multiple
6818 matches, and set its language to Ada.
6819 Update comment.
6820 Modify to indicate unresolved name as symbol in the UNRESOLVED
6821 namespace, allocated in temp_parse_space.
6822 (write_int): New function.
6823
6824 (write_object_renaming): Add max_depth parameter to limit
6825 chains of object renamings.
6826 Handle case where root of renaming expression is itself a renaming.
6827 Use temp_parse_space for temporary name buffer.
6828 Handle renamings to dereferenced pointers (___XEXA suffices).
6829
6830 (ada_parse, yyerror, string_to_operator,
6831 write_var_from_sym, write_var_from_name, write_attribute_call0,
6832 write_attribute_call1, write_attribute_calln,
6833 write_object_renaming): Protoize.
6834
6835 (_initialize_ada_exp): New function.
6836
6837 * ada-lang.c: Update copyright notice.
6838 General terminology change to conform to GNAT compiler usage:
6839 mangle => encode, demangle => decode
6840 Include gdb_obstack.h.
6841 Include gdb_regex.h
6842 Include frame.h
6843 Include hashtab.h
6844 Include completer.h
6845 Include gdb_stat.h
6846 Include block.h
6847 Include infcall.h
6848
6849 (ADA_RETAIN_DOTS): Make sure this is defined.
6850 (TRUNCATION_TOWARDS_ZERO): Define.
6851 (struct string_vector): Define.
6852 (unresolved_names): Remove definition.
6853 (xnew_string_vector): New function.
6854 (string_vector_append): New function.
6855 (extract_string): Make static.
6856 (ada_unqualified_name): New function.
6857 (add_angle_brackets): New function.
6858 (function_name_from_pc): New function.
6859 (place_on_stack): Rename to ensure_lval.
6860
6861 (ensure_lval): Renamed from place_on_stack.
6862 Make identity on lvals.
6863 Update comment.
6864 (is_nonfunction): New interface.
6865 Only symbols in LOC_CONST class can be enumerals.
6866 (fill_in_ada_prototype): Remove; now independent of language.
6867 (add_defn_to_vec): Add obstack and symtab arguments.
6868 Use obstack to hold collected definitions.
6869 (num_defns_collected): New function.
6870 (defns_collected): New function.
6871 (ada_resolve_subexp): Rename to resolve_subexp.
6872 (resolve_subexp): Renamed from ada_resolve_subexp.
6873 (ada_op_name): Return non-const result.
6874 (ada_decoded_op_name): Renamed from ada_op_name, now used for
6875 other purposes.
6876
6877 (to_fixed_array_type): Add declaration.
6878 (coerce_unspec_val_to_type): Remove offset parameter.
6879 (find_sal_from_funcs_and_line): New interface.
6880 (find_line_in_linetable): Ditto.
6881
6882 (all_sals_for_line): Rename to ada_sals_for_line and make
6883 global.
6884 Add new parameter. When set, do not ask the user to choose the
6885 instance, but use the first one found instead.
6886 Use given line number in returned sals.
6887 Fix comment.
6888 Skip the prologue if funfirstline is set.
6889 Correct for memory leak when 0 lines found.
6890
6891 (value_pos_atr): Use pos_atr.
6892 (pos_atr): New function.
6893 (standard_lookup): Add block parameter.
6894
6895 (makeTimeStart): Remove declaration and uses.
6896 (makeTimeStop): Remove declaration and uses.
6897
6898 (ada_completer_word_break_characters): Allow for VMS.
6899 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
6900 (raise_sym_name): New constant.
6901 (raise_unhandled_sym_name): New constant.
6902 (raise_assert_sym_name): New constant.
6903 (process_raise_exception_name): New constant.
6904 (longest_exception_template): New constant.
6905 (warning_limit): New variable to limit warnings during expression
6906 evaluation.
6907 (warnings_issued): New variable to keep track of warnings issued.
6908 (known_runtime_file_name_patterns): New constant.
6909 (known_auxiliary_function_name_patterns): New constant.
6910 (symbol_list_obstack): New variable.
6911
6912 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
6913 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
6914 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
6915 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
6916 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
6917 ada_variant_discrim_name, field_alignment, dynamic_template_type,
6918 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
6919 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
6920 and strcmp.
6921
6922 (ada_get_field_index): New function.
6923 (lim_warning): New function.
6924 (ada_translate_error_message): New function.
6925 (MAX_OF_SIZE): New function.
6926 (MIN_OF_SIZE): New function.
6927 (UMAX_OF_SIZE): New function.
6928 (UMIN_OF_SIZE): New function.
6929 (discrete_type_high_bound): New function.
6930 (discrete_type_low_bound): New function.
6931 (base_type): New function.
6932 (do_command): Remove.
6933
6934 (ada_update_initial_language): Use language_ada, not language_unknown.
6935 (ada_encode): Renamed from ada_mangle.
6936 Obey ADA_RETAIN_DOTS.
6937 (ada_decode): Renamed from ada_demangle.
6938 Update coding conventions.
6939 (decoded_names_store): New hash table.
6940 (ada_decode_symbol): New function.
6941 (ada_la_decode): New function.
6942
6943 (modify_general_field): Correct computations of offset and bit
6944 position.
6945 (desc_base_type): Handle ref types, too.
6946 (ada_is_direct_array_type): New function.
6947
6948 (ada_is_simple_array): Rename to ada_is_simple_array_type.
6949 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
6950 (ada_is_bogus_array_descriptor,ada_type_of_array,
6951 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
6952 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
6953 ada_is_array_descriptor_type.
6954
6955 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
6956 (ada_is_packed_array_type): Handle pointers or
6957 references to packed arrays as well.
6958 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
6959 (decode_packed_array_type): Search for the packed array type
6960 symbol in the currently selected block and associated
6961 superblocks too.
6962 Use lookup_symbol again.
6963
6964 (decode_packed_array): Handle pointers and references.
6965 Update call to coerce_unspec_val_to_type.
6966 (decode_packed_array_type,value_subscript_packed): Limit warnings.
6967 (ada_value_primitive_packed_val): Improve comment.
6968
6969 (ada_index_type): Substitute int type for "undefined".
6970 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
6971 ada_array_langth, ada_is_string_type): Use renamed
6972 ada_is_simple_array_type.
6973 (empty_array): New function.
6974
6975 (ada_resolve): Rename to resolve.
6976 (resolve): Make static.
6977 Call renamed resolve_subexp.
6978 Update comment.
6979 (ada_resolve_subexp): Rename to resolve_subexp.
6980 (resolve_subexp): Update comment.
6981 Decomment disabled code.
6982 Add LOC_COMPUTED* cases.
6983 Modify to use temporary struct symbols (marked as being in
6984 UNDEF_NAMESPACE) to indicate unresolved names, instead of
6985 OP_UNRESOLVED_VALUE.
6986 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
6987 Add OP_STRING case.
6988 Remove OP_ARRAY.
6989 Use SYMBOL_PRINT_NAME instead of ada_demangle.
6990 Use new ada_lookup_symbol_list interface.
6991 Use new ada_resolve_function interface.
6992 Remove OP_TYPE case.
6993
6994 (ada_args_match): Idiot proof against null actuals.
6995 Use intermediate variables to clarify.
6996 (ada_resolve_function): Update comment and interface.
6997 (mangled_ordered_before): Rename to encoded_ordered_before and
6998 update comment.
6999 (sort_choices): Update comment and interface.
7000 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
7001 (user_select_syms): New interface.
7002 Use new sort_choices interface.
7003 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
7004 (possible_user_operator_p): Idiot-proof against null values.
7005 (ada_simple_renamed_entity): Don't make cleanup; rely on
7006 caller to free result string.
7007 Remove const from return type.
7008 (make_array_descriptor): Rename uses of place_on_stack to
7009 ensure_lval.
7010 Make sure that arrays are on stack.
7011
7012 (HASH_SIZE): Define.
7013 (struct cache_entry): Define.
7014 (cache_space): Define.
7015 (cache): Define.
7016 (clear_ada_sym_cache): New function.
7017 (find_entry): New function.
7018 (lookup_cached_symbol): New function.
7019 (defn_vector_size): Define.
7020 (cache_symbol): New function.
7021 (defn_symbols): Remove.
7022
7023 (standard_lookup): Use lookup_symbol_in_language to get effect of
7024 C lookup.
7025 Cache results.
7026
7027 (symbol_completion_match): New function.
7028 (symbol_completion_add): New function.
7029 (ada_make_symbol_completion_list): New function.
7030
7031 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
7032 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
7033 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
7034 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
7035
7036 (ada_lookup_simple_minsym): New function.
7037 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
7038
7039 (add_symbols_from_enclosing_procs): New interface.
7040 Conditionalize more helpfully.
7041 Don't bother if program isn't running.
7042 Use new interface to get_frame_block.
7043 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
7044
7045 (remove_extra_symbols): New interface.
7046 (xget_renaming_scope): New function.
7047 (is_package_name): New function.
7048 (renaming_is_visible): New function.
7049 (remove_out_of_scope_renamings): New function.
7050
7051 (ada_lookup_symbol_list): New interface.
7052 Properly reinitialize the symbol list obstack.
7053 Don't call add_symbols_from_enclosing_procs if we start from a
7054 static or global block.
7055 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
7056 add_symbols_from_enclosing_procs.
7057 Add symtab data to cached entries.
7058 Handle symbols prefixed with
7059 "standard__" specially; strip prefix and don't look in local symbols.
7060 Do not include out of scope renaming symbols in list of
7061 symbols returned.
7062 Add const to block parameter.
7063 Move check for non-local, non-global symbols earlier.
7064 Remove timing stuff.
7065 (ada_lookup_symbol): New interface.
7066 Find symtab as well.
7067 (ada_lookup_symbol_nonlocal): New function.
7068
7069 (is_name_suffix): Enhance suffix detection to recognize
7070 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
7071 (is_dot_digits_suffix): New function.
7072 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
7073
7074 (ada_add_block_symbols): New interface. Use obstack to return results
7075 in a vector of struct ada_symbol_infos. Add symtab argument.
7076 Use new interface to add_defn_to_vec.
7077 Remove calls to fill_in_ada_prototype.
7078 Use BLOCK_BUCKETS, BLOCK_BUCKET.
7079
7080 (ada_finish_decode_line_1): Add const qualification to local to fix
7081 warning.
7082 Start looking in static block for functions to avoid attempts
7083 to search frame chain for up-level variables.
7084 Adapt to new ada_sals_for_line interface.
7085 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
7086 Handle quoting of the function name inside the spec string.
7087 Skip prologue when funfirstline is set and update the
7088 function documentation to that effect.
7089
7090 (debug_print_lines, debug_print_block, debug_print_blocks,
7091 debug_print_symtab): Remove.
7092
7093 (ada_main_name): New function.
7094 (ada_exception_breakpoint_type): New function.
7095 (is_known_support_routine): New function.
7096 (ada_find_printable_frame): Renamed from find_printable_frame and made
7097 global.
7098 Remove level parameter.
7099 Use new interface to select_frame.
7100
7101 (begin_command): Remove.
7102 (ada_adjust_exception_stop): New function.
7103 (ada_print_exception_stop): New function.
7104 (exception_name_from_cond): New function.
7105 (ada_report_exception_break): Replace disabled code with
7106 conditionalization on GNAT_GDB.
7107 Get the exception name from the condition string.
7108 Remove and move functionality into new functions
7109 ada_print_exception_breakpoint_task and
7110 ada_print_exception_breakpoint_nontask.
7111 (error_breakpoint_runtime_sym_not_found): New function.
7112 (is_runtime_sym_defined): New function.
7113 (ada_breakpoint_rewrite): Uncomment suppressed code.
7114 Use symbolic error-message and runtime-symbol names.
7115 Surround runtime symbol names in quotes.
7116 Allow non-specific breakpoints on exceptions and assertions before
7117 program starts.
7118
7119 (ada_is_tagged_type): Add parameter.
7120 (ada_is_tag_type): New function.
7121 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
7122 (ada_variant_discrim_type): Ditto.
7123 (value_tag_from_contents_and_address): New function.
7124 (type_from_tag): New function.
7125 (struct tag_args): New structure used to communicate with
7126 ada_tag_name_1.
7127 (ada_tag_name_1): New function.
7128 (ada_tag_name): New function.
7129
7130 (ada_scan_number): Update comment.
7131 (find_struct_field): New function.
7132 (ada_search_struct_field): Make static.
7133 (ada_value_struct_elt): New version that returns references when
7134 given pointers or references to structs.
7135 (ada_lookup_struct_elt_type): Add 'refok' parameter.
7136 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
7137 interface.
7138 (ada_value_ind): Use new ada_to_fixed_value interface.
7139 (ada_coerce_ref): Ditto.
7140 (field_offset): Remove.
7141
7142 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
7143 (ada_find_renaming_symbol): New function.
7144 (ada_prefer_type): Prefer named types over unnamed ones.
7145 (variant_field_index): New function.
7146 (contains_variant_part): Removed: subsumed by variant_field_index.
7147 (ada_template_to_fixed_record_type): New function, mostly from
7148 template_to_fixed_record_type.
7149 (template_to_fixed_record_type):
7150 Do not scan the type fields beyond the last one; prevents a
7151 potential SEGV.
7152 Handle case where variant field is listed BEFORE discriminant it
7153 depends on.
7154 Fix calculation of record length when bit length is
7155 not evenly divisible by char length.
7156 Move code to ada_template_to_fixed_record_type and call it.
7157
7158 (template_to_static_fixed_type): Revise comment.
7159 Modify to work on ordinary record types as well as templates,
7160 so as to handle fields that use ___XVE or ___XVU encodings.
7161 (to_record_with_fixed_variant_part): Fill out comment.
7162 Initialize C++ stuff in right type.
7163 Allow case where DVAL is null.
7164 Handle case where variant field is not last.
7165 Fix typo concerning record length.
7166 (to_fixed_record_type): Decomment disabled code.
7167 (to_fixed_record_type): Use variant_field_index instead of
7168 contains_variant_part.
7169 (to_fixed_variant_branch_type): Ditto.
7170 (to_fixed_array_type): Decomment disabled code.
7171 (ada_to_fixed_type): Convert tagged types to the specific type.
7172 Deactivate the size-check for array types in order to avoid
7173 some false size alarms.
7174 (to_static_fixed_type): Decomment disabled code.
7175 Modify to call template_to_static_fixed_type
7176 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
7177 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
7178 Remove valaddr argument, as it is never really used.
7179 (ada_to_fixed_value): Change interface to act on single struct value*
7180 operand.
7181 (adjust_pc_past_prologue): New function.
7182 (ada_attribute_name): Modify to take enum exp_opcode argument.
7183
7184 (ada_enum_name): Recognize new homonym-distinguishing convention.
7185 Adjust local variable's type to remove compiler warning.
7186 Fix a small problem in the part that unqualifies the enumeration name.
7187 (ada_value_binop): New function.
7188 (ada_value_equal): New function.
7189
7190 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
7191 Don't give error message when not doing normal evaluation
7192 and a tagged type doesn't seem to contain a structure member.
7193 Give error message for packed arrays.
7194 For indexing arrays, handle pointers to packed arrays correctly.
7195 Handle case of 'first and 'last attributes of bare integral type
7196 without encoded subtype info.
7197 Remove some unnecessary casts.
7198 Fix uninitialized value of type in computing 'first, 'last, or 'length
7199 of array object.
7200 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
7201 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
7202 calls.
7203 Attributes are now exp_opcode values.
7204 Correct treatment of 'modulus.
7205 Better error message for taking 'length of wrong kind of type;
7206 improve comment.
7207 Change EVAL_NORMAL to noside for consistency.
7208 Use ada_value_binop for DIV, MOD, REM.
7209 Make special case out of array of length 0, since an argument
7210 of 0 upsets some platforms' malloc.
7211 Use OP_STRING instead of OP_ARRAY.
7212 For slice, add check that we have an array type before extracting
7213 a slice out of it. Avoids a SEGV.
7214 When evaluating an array slice, if the array type is a reference to
7215 an aligner type, then replace the aligner type by the actual type.
7216 Decomment disabled code.
7217 Remove some dead code.
7218 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
7219 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
7220 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
7221 and UNOP_MBR to UNOP_IN_RANGE.
7222 If an array type has a parallel ___XVE type, then use it.
7223 Turn arrays into pointers for lvalue arrays.
7224 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
7225 bounds error and handle 0-length slices.
7226 Use lim_warning.
7227 When selecting fields, apply ada_to_fixed_value (because the fields
7228 might have ___XVU or ___XVE encodings even if not dynamic.)
7229 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
7230 (ada_is_system_address_type): New function.
7231
7232 (get_var_value): Use new interface to ada_lookup_symbol_list.
7233 (get_int_var_value): New interface.
7234 (to_fixed_range_type): Allow unknown bound, with warning.
7235 (ada_is_modular_type): Decomment disabled code.
7236 (ADA_OPERATORS): New definition.
7237 (ada_operator_length): New function.
7238 (ada_expr_op_name): New function.
7239 (ada_forward_operator_length): New function.
7240 (ada_dump_subexp_body): New function.
7241 (ada_print_subexp): New function.
7242 (ada_exp_descriptor): New constant.
7243 (ada_op_print_tab): Add 'size. Remove FIXMEs.
7244 (ada_language_defn): Add ada_exp_descriptor entry.
7245 Change ada_parse => parse.
7246 Add post-parser entry.
7247 Use ada-specific non-local symbol lookup.
7248 Don't use C-style arrays.
7249 String lower-bound is 1.
7250 Decomment disabled code.
7251 (parse): New function.
7252 New fields ada_translate_error_message, ada_lookup_symbol,
7253 ada_lookup_minimal_symbol.
7254
7255 * ada-lang.h: Update copyright dates.
7256 Replace the mangle/demangle terminology throughout by the
7257 more appropriate encode/decode one.
7258 Include breakpoint.h.
7259 Forward declare struct partial_symbol, struct block.
7260 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
7261 (EXTRACT_ADDRESS): Remove.
7262 (EXTRACT_INT): Remove.
7263 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
7264 (MAX_ENCLOSING_FRAME_LEVELS): Define.
7265 (MAX_RENAMING_CHAIN_LENGTH): Define.
7266 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
7267
7268 (enum task_states): Remove.
7269 ada_task_states: Remove.
7270 (fat_string): Remove.
7271 (struct entry_call): Remove.
7272 (struct task_fields): Remove.
7273 (struct task_entry): Remove.
7274
7275 (struct ada_symbol_info): Define.
7276 (enum ada_attribute): Remove.
7277 (enum ada_operator): Define.
7278
7279 (ada_get_field_index): Declare.
7280 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
7281 (ada_is_simple_array): Rename to ada_is_simple_array_type.
7282 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
7283 (ada_lookup_symbol_list): New interface.
7284 (ada_decode_symbol): Declare.
7285 (ada_decode): Declare.
7286 (ada_lookup_symbol): New interface.
7287 (ada_update_initial_language): Declare.
7288 (ada_lookup_simple_minsym): Declare.
7289 (user_select_syms): New interface.
7290 (ada_sals_for_line): Declare.
7291 (ada_is_tagged_type): New interface.
7292 (ada_tag_name): Declare.
7293 (ada_lookup_struct_elt_type): Remove declaration.
7294 (ada_search_struct_field): Remove declaration.
7295 (ada_attribute_name): New interface.
7296 (ada_is_system_address_type): Declare.
7297 (ada_to_fixed_value): Remove declaration.
7298 (ada_template_to_fixed_record_type_1): Declare.
7299 (get_int_var_value): New interface.
7300 (ada_find_any_symbol): Declare.
7301 (ada_find_renaming_symbol): Declare.
7302 (ada_mangle): Rename to ada_encode.
7303 (ada_simple_renamed_entity): Remove const.
7304 (ada_main_name): Declare.
7305 (get_current_task): Rename to ada_get_current_task.
7306 (get_entry_number): Remove declaration.
7307 (ada_report_exception_break): Remove declaration.
7308 (ada_print_exception_breakpoint_nontask): Declare.
7309 (ada_print_exception_breakpoint_task): Declare.
7310 (ada_find_printable_frame): Declare.
7311
7312 * ada-lex.l: Update copyright notices.
7313 Use xmalloc and xfree instead of malloc and free.
7314 Use new interface to name_lookup.
7315 Use new interface to
7316 ada_mangle=>ada_encode.
7317 Redo handling of '$...' variable to parallel current treatment
7318 in c-exp.y.
7319 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
7320 digit_to_int, strtoulst, processInt, processReal, processId,
7321 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
7322 yywrap): Protoize.
7323
7324 (processInt): Use cast to remove harmless warning.
7325 (processReal): Modify to get rid of compiler warning on scan formats.
7326
7327 (processId): Replace xmalloc with obstack_alloc for name and remove
7328 call to ada_name_string_cleanup.
7329 Remove obsolete disabled code.
7330 (name_lookup): Ditto.
7331 New interface.
7332 Use obsavestring on temp_parse_space instead of savestring
7333 on name, and remove call to ada_name_string_cleanup.
7334 Free string returned from ada_simple_renamed_entity.
7335 Use new interface to ada_lookup_symbol_list.
7336 Decomment disabled code.
7337 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
7338 not types.
7339 When a type name lookup succeeds as a result of
7340 lookup_primitive_typename, check for regular type entry that has not
7341 yet been read in.
7342 Limit length of chain of renamed symbols we are willing to follow.
7343 Do not break names beginning with "standard__" into segments.
7344 (block_lookup): Use new interface to ada_lookup_symbol_list.
7345
7346 * ada-typeprint.c: Update copyright notice.
7347 (demangled_type_name): Rename to decoded_type_name.
7348 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
7349 (print_range_bound): Correct handling of negative
7350 bounds that make the index type looked unsigned under STABS.
7351 (print_dynamic_range_bound): Use new interface to get_int_var_value.
7352 (print_range_type_named): Use the builtin int type if no type
7353 corresponding to the given type name could be found.
7354 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
7355 Add some bullet-proofing.
7356 (print_variant_clauses): Allow for variant branches with ___XVU
7357 encodings that are not dynamic fields.
7358 Use new interface to ada_is_tagged_type.
7359 (print_record_type): Allow for fields with ___XVE encodings that
7360 are not dynamic fields.
7361 Use new interface to ada_is_tagged_type.
7362 (ada_print_type): ada_is_array_descriptor =>
7363 ada_is_array_descriptor_type.
7364
7365 * ada-valprint.c: Update copyright notice.
7366 Include gdb_string.h
7367 Include infcall.h
7368 (ui_memcpy): New function.
7369 (ada_print_floating): New function.
7370 (ada_print_str): Order arguments correctly.
7371 Correct handling of empty arrays and arrays of 0-length items.
7372 ada_is_array_descriptor => ada_is_array_descriptor_type
7373 Print values of type System.Address in hexadecimal format.
7374 Use ada_print_floating to print floating-point numbers in Ada format.
7375 Print class tag values with type names.
7376 No longer print the address of reference values. Avoids
7377 a potential confusion.
7378 (ada_value_print): Stop printing the object type for reference
7379 values, but preserve that behavior for access types. Avoids
7380 a potential confusion.
7381 Simplify one conditional expression, as the first part is now
7382 necessarily true.
7383 ada_is_array_descriptor => ada_is_array_descriptor_type
7384 Add check for arrays for null records, and print them by hand.
7385
7386 2004-06-01 Jim Blandy <jimb@redhat.com>
7387
7388 * ppc-tdep.h: Delete unused 'regoff' member.
7389 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
7390
7391 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
7392
7393 Fix PR symtab/1661.
7394 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
7395 (hpread_read_struct_type): Likewise.
7396
7397 2004-06-01 Andrew Cagney <cagney@gnu.org>
7398
7399 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
7400 instead of xasprintf.
7401 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
7402 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
7403 (mi_cmd_data_list_register_names)
7404 (mi_cmd_data_list_changed_registers)
7405 (mi_cmd_data_list_register_values)
7406 (get_register, mi_cmd_data_write_register_values)
7407 (mi_cmd_data_write_register_values)
7408 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
7409 (mi_cmd_target_download, mi_cmd_target_select)
7410 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
7411 (mi_execute_cli_command, mi_execute_async_cli_command)
7412 (mi_execute_async_cli_command): Ditto.
7413 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
7414 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
7415
7416 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
7417 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
7418 error_last_message instead of mi_error_last_message.
7419 * mi/mi-main.c (mi_error_last_message): Delete function.
7420
7421 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
7422 "invalid number of columns" error. Delete redundant "out of
7423 memory" check.
7424
7425 2004-05-31 Mark Kettenis <kettenis@gnu.org>
7426
7427 * i386bsd-nat.c: Don't include <sys/procfs.h>.
7428 (gregset_t, fpregset_t): Remove typedefs.
7429 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
7430 (REG_OFFSET): Rename argument.
7431 (i386bsd_r_reg_offset): Rename from reg_offset.
7432 (REG_ADDR): Remove macro.
7433 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
7434 functions.
7435 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
7436 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
7437 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
7438 instead of supply_gregset.
7439 (store_inferior_registers): Use `struct reg' and `struct fpreg'
7440 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
7441 instead of fill_gregset.
7442 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
7443
7444 * i386bsd-nat.c: Don't include "gregset.h".
7445 (supply_gregset, fill_gregset): Make static.
7446 (supply_fpregset, fill_fpregset): Remove.
7447 * Makefile.in (i386bsd-nat.o): Update dependencies.
7448
7449 2004-05-30 Mark Kettenis <kettenis@gnu.org>
7450
7451 * fbsd-proc.c: Include "regcache.h", "regset.h" and
7452 "gdb_assert.h". Con't include "gregset.h".
7453 (fbsd_make_corefile_notes): Use regset-based core file support
7454 instead off fill_gregset and fill_fpregset.
7455 * Makefile.in (fbsd-proc.o): Update dependencies.
7456
7457 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
7458 instructions.
7459 (m88k_frame_prev_register): Simplify code a bit.
7460
7461 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
7462 (amd64_collect_fpregset): New function.
7463 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
7464
7465 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
7466
7467 * i386-tdep.c (i386_supply_gregset): Adjust comment.
7468 (i386_collect_gregset): New function.
7469 (i386_supply_fpregset): Adjust comment.
7470 (i386_collect_fpregset): New function.
7471 (i386_regset_from_core_section): Use i386_collect_gregset and
7472 i386_collect_fpregset.
7473
7474 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
7475 handle VALUEP being null.
7476
7477 * regset.h (collect_regset_ftype): Unconstify fourth argument.
7478
7479 2004-05-29 Mark Kettenis <kettenis@gnu.org>
7480
7481 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
7482
7483 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
7484 assembler in OpenBSD 3.5-current.
7485 (amd64obsd_sigcontext_addr): Likewise.
7486
7487 2004-05-28 Jim Blandy <jimb@redhat.com>
7488
7489 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
7490 register set, so our regcache isn't declared "legacy" and our E500
7491 pseudoregister read and write functions aren't ignored.
7492 (rs6000_register_byte, rs6000_register_raw_size,
7493 rs6000_register_virtual_type, rs6000_register_convertible,
7494 rs6000_register_convert_to_virtual,
7495 rs6000_register_convert_to_raw): Deleted.
7496 (rs6000_register_type, rs6000_convert_register_p,
7497 rs6000_register_to_value, rs6000_value_to_register): New
7498 functions.
7499 (rs6000_gdbarch_init): Don't register
7500 gdbarch_deprecated_register_size,
7501 gdbarch_deprecated_register_bytes,
7502 gdbarch_deprecated_register_byte,
7503 gdbarch_deprecated_register_raw_size,
7504 gdbarch_deprecated_register_virtual_type,
7505 gdbarch_deprecated_register_convertible,
7506 gdbarch_deprecated_register_convert_to_virtual, or
7507 gdbarch_deprecated_register_convert_to_raw methods. Instead,
7508 register gdbarch_register_type, gdbarch_convert_register_p,
7509 gdbarch_register_to_value, and gdbarch_value_to_register methods.
7510
7511 2004-05-26 Jim Blandy <jimb@redhat.com>
7512
7513 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
7514 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
7515 functions, updated to match the register numberings used in GCC.
7516 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
7517 rs6000_dwarf2_reg_to_regnum as register number conversions
7518 functions for STABS and Dwarf2.
7519
7520 2004-05-26 Randolph Chung <tausq@debian.org>
7521
7522 * infttrace.h (target_waitkind): Forward declare type instead of pulling
7523 in header file.
7524
7525 2004-05-25 Joel Brobecker <brobecker@gnat.com>
7526
7527 * NEWS: Document new "start" command.
7528
7529 2004-05-25 Randolph Chung <tausq@debian.org>
7530
7531 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
7532 hppa-linux.
7533
7534 2004-05-25 Randolph Chung <tausq@debian.org>
7535
7536 * hppa-hpux-tdep.c (offsetof): Define.
7537 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
7538 (hppa32_hpux_frame_base_before_sigtramp)
7539 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7540 (hppa64_hpux_frame_saved_pc_in_sigtramp)
7541 (hppa64_hpux_frame_base_before_sigtramp)
7542 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
7543 functions.
7544 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
7545 (hppa_hpux_sigtramp_frame_unwind_cache)
7546 (hppa_hpux_sigtramp_frame_this_id)
7547 (hppa_hpux_sigtramp_frame_prev_register)
7548 (hppa_hpux_sigtramp_frame_unwind)
7549 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
7550 (hppa_hpux_init_abi): Register sigtramp unwinder.
7551 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
7552
7553 2004-05-25 Randolph Chung <tausq@debian.org>
7554
7555 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
7556 and multiple stack unwinds.
7557 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
7558
7559 2004-05-25 Andrew Cagney <cagney@gnu.org>
7560
7561 * symfile.h (symbol_file_add_from_memory): Delete declaration.
7562 * symfile-mem.h: Delete file.
7563 * symfile-mem.c: Do not include "symfile-mem.h".
7564 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
7565 "struct bfd_section". When an error do not bother returning NULL.
7566 (add_symbol_file_from_memory_command): Use "struct bfd" and
7567 "struct bfd_section".
7568 * Makefile.in (symfile_mem_h): Delete.
7569 (symfile-mem.o): Update dependencies.
7570
7571 2004-05-25 Nick Roberts <nickrob@gnu.org>
7572
7573 * gdb-mi.el: New file.
7574
7575 2004-05-25 Andrew Cagney <cagney@gnu.org>
7576
7577 * inftarg.c: Include "observer.h".
7578 (child_attach, child_create_inferior): Notify inferior_created.
7579 * corelow.c: Include "observer.h".
7580 (core_open): Notify inferior_created.
7581 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
7582
7583 2004-05-25 Andrew Cagney <cagney@gnu.org>
7584
7585 * target.h (struct target_ops): Add from_tty to
7586 to_create_inferior.
7587 (target_create_inferior, find_default_create_inferior): Update.
7588 * infcmd.c (run_command): Update.
7589 * wince.c (child_create_inferior): Update.
7590 * win32-nat.c (child_create_inferior): Update.
7591 * uw-thread.c (uw_thread_create_inferior): Update.
7592 * thread-db.c (thread_db_create_inferior): Update.
7593 * target.c (debug_to_create_inferior)
7594 (find_default_create_inferior): Update.
7595 (maybe_kill_then_create_inferior): Update.
7596 * sol-thread.c (sol_thread_create_inferior): Update.
7597 * remote.c (extended_remote_async_create_inferior)
7598 (extended_remote_create_inferior): Update.
7599 * remote-vx.c (vx_create_inferior): Update.
7600 * remote-st.c (st2000_create_inferior): Update.
7601 * remote-sim.c (gdbsim_create_inferior): Update.
7602 * remote-sds.c (sds_create_inferior): Update.
7603 * remote-rdp.c (remote_rdp_create_inferior): Update.
7604 * remote-rdi.c (arm_rdi_create_inferior): Update.
7605 * remote-m32r-sdi.c (m32r_create_inferior): Update.
7606 * remote-e7000.c (e7000_create_inferior): Update.
7607 * procfs.c (procfs_create_inferior): Update.
7608 * ocd.c (ocd_create_inferior): Update.
7609 * ocd.h (ocd_create_inferior): Update.
7610 * nto-procfs.c (procfs_create_inferior): Update.
7611 * monitor.c (monitor_create_inferior): Update.
7612 * lin-lwp.c (lin_lwp_create_inferior): Update.
7613 * inftarg.c (child_create_inferior): Update.
7614 * hpux-thread.c (hpux_thread_create_inferior): Update.
7615 * gnu-nat.c (gnu_create_inferior): Update.
7616
7617 2004-05-25 Andrew Cagney <cagney@gnu.com>
7618
7619 * MAINTAINERS: Update e-mail address.
7620
7621 2004-05-24 Randolph Chung <tausq@debian.org>
7622
7623 * thread.c (info_threads_command, thread_apply_all_command)
7624 (thread_apply_command, thread_command, do_captured_thread_select):
7625 Remove HPUXHPPA-specific code.
7626
7627 2004-05-24 Randolph Chung <tausq@debian.org>
7628
7629 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
7630 unused symbols.
7631 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
7632 references.
7633
7634 2004-05-24 Joel Brobecker <brobecker@gnat.com>
7635
7636 * infcmd.c (kill_if_already_running): New function, extracted
7637 from run_command().
7638 (run_command): Replace extracted code by call to
7639 kill_if_already_running().
7640 (start_command): New function.
7641 (_initialize_infcmd): Add "start" command.
7642
7643 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7644
7645 Add OpenBSD/m88k support.
7646 * NEWS (New native configurations): Mention OpenBSD/m88k.
7647 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
7648 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
7649 * Makefile.in (m88k_tdep_h): New variable.
7650 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
7651 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
7652 * configure.host: Add m88*-*-openbsd*.
7653 * configure.tgt: Add m88*-*-openbsd*.
7654
7655 2004-05-24 Jim Blandy <jimb@redhat.com>
7656
7657 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
7658 to approve changes.
7659
7660 2004-05-24 Kevin Buettner <kevinb@redhat.com>
7661
7662 * symtab.c (fixup_section): Search section table when lookup by
7663 name fails.
7664
7665 2004-05-24 Randolph Chung <tausq@debian.org>
7666
7667 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
7668 be "small_struct".
7669
7670 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7671
7672 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
7673 register number in regcache_raw_collect call.
7674 (m68kbsd_collect_fpregset): Likewise.
7675 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
7676
7677 * regset.h (struct regset): Add back `regset' member.
7678
7679 2004-05-23 Mark Kettenis <kettenis@gnu.org>
7680
7681 * configure.in: Check for td_pcb in `struct thread'.
7682 * configure, config.in: Regenerated.
7683
7684 * dpx2-nat.c: Remove file.
7685 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
7686 (dpx2-nat.o): Remove dependencies.
7687
7688 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
7689 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
7690 (amd64obsd_supply_pcb): New function.
7691 (_initialize_amd64obsd_nat): Enable libkvm interface.
7692 * Makefile.in (amd64obsd-nat.o): Update dependencies.
7693 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
7694 (LOADLIBES): New variable.
7695
7696 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
7697 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
7698 (sparc32nbsd_supply_pcb): New function.
7699 (_initialize_sparcnbsd_nat): Enable libkvm interface.
7700 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
7701 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
7702 (LOADLIBES): New variable.
7703
7704 2004-05-22 Mark Kettenis <kettenis@gnu.org>
7705
7706 * bsd-kvm.c, bsd-kvm.h: New files.
7707 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
7708 "bsd-kvm.h".
7709 (i386fbsd_supply_pcb): New function.
7710 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
7711 (i386fbsd-nat.o): Update dependencies.
7712 (bsd_kvm_h): New variable.
7713 (bsd-kvm.o): New dependency.
7714 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
7715 (LOADLIBES): New variable.
7716
7717 * regset.c: Tweak comment.
7718 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
7719 macro.
7720 * regset.h: Update copyright year.
7721 (struct regset): Remove `descr' member, add `gdbarch' member.
7722 (regset_alloc): Adjust prototype and comment.
7723 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
7724 (i386_supply_fpregset): Likewise.
7725 (i386_regset_from_core_section): Update call to regset_alloc.
7726 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
7727 REGSET->arch.
7728 (i386obsd_aout_regset_from_core_section): Update call to
7729 regset_alloc.
7730 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
7731 REGSET->arch.
7732 (i386nbsd_aout_regset_from_core_section): Update call to
7733 regset_alloc.
7734 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
7735 REGSET->arch.
7736 (amd64_regset_from_core_section): Update call to regset_alloc.
7737 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
7738 REGSET->arch.
7739 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
7740 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
7741 &sparc32nbsd_gregset in sparc32_supply_gregset call.
7742 (sparc32nbsd_init_abi): Update call to regset_alloc.
7743 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
7744 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
7745 (sparc64obsd_init_abi): Update call to regset_alloc.
7746 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
7747 &sparc64nbsd_gregset in sparc64_supply_gregset call.
7748 (sparc64nbsd_init_abi): Update call to regset_alloc.
7749 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
7750 &sparc64fbsd_gregset in sparc64_supply_gregset call.
7751 (sparc64fbsd_init_abi): Update call to regset_alloc.
7752
7753 2004-05-22 Jim Blandy <jimb@redhat.com>
7754
7755 * ppc-tdep.h (spe_register_p): New declaration.
7756 (struct gdbarch_tdep): New members: ppc_acc_regnum and
7757 ppc_spefscr_regnum.
7758 * rs6000-tdep.c (spe_register_p): New function.
7759 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
7760 spefscr.
7761 (rs6000_gdbarch_init): Initialize the new members of the tdep
7762 structure.
7763
7764 2004-05-21 Jim Blandy <jimb@redhat.com>
7765
7766 * ppc-linux-nat.c (fetch_register): Move code back to be next
7767 to the comment that describes it. (Moved code, instead of
7768 comment, for symmetry with store_register.)
7769
7770 Allocate regset structures in the gdbarch's obstack, not using
7771 xmalloc.
7772 * regset.c (regset_alloc): Renamed from regset_xmalloc.
7773 Add 'arch' argument. Allocate the regset on arch's obstack, not
7774 using xmalloc.
7775 * regset.h (regset_alloc): Update declaration.
7776 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
7777 gdbarch argument.
7778 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7779 * i386-tdep.c (i386_regset_from_core_section): Same.
7780 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7781 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7782 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7783 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7784 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7785 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7786
7787 2004-05-21 Joel Brobecker <brobecker@gnat.com>
7788
7789 * config/djgpp/fnchange.lst: Undo previous change, was useless.
7790
7791 2004-05-21 Jim Blandy <jimb@redhat.com>
7792
7793 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
7794 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
7795
7796 2004-05-20 Jim Blandy <jimb@redhat.com>
7797
7798 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
7799
7800 2004-05-20 Mark Kettenis <kettenis@gnu.org>
7801
7802 * regset.h: Make prototype const-correct.
7803 * regset.c (regset_xmalloc): Make const-correct.
7804
7805 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
7806
7807 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
7808 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
7809 (symbol_search_name): Declare.
7810
7811 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
7812 (iter_name_next_hashed): Ditto.
7813 (iter_name_next_linear): Ditto.
7814 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
7815
7816 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
7817 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
7818 (symbol_search_name): New function.
7819
7820 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
7821
7822 * minsyms.c (build_minimal_symbol_hash_tables): Change
7823 test for adding to demangled hash table to check for difference
7824 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
7825
7826 2004-05-19 Jim Blandy <jimb@redhat.com>
7827
7828 Use a constructor function to create regset structures.
7829 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
7830 (struct regset): Use supply_regset_ftype. Add new
7831 'collect_regset' member.
7832 (regset_xmalloc): New declaration.
7833 * regset.c: New file.
7834 * am64-tdep.c (amd64_regset_from_core_section): Use
7835 regset_xmalloc to construct regset structures.
7836 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
7837 * i386-tdep.c (i386_regset_from_core_section): Same.
7838 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
7839 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
7840 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
7841 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
7842 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
7843 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
7844 * Makefile.in (COMMON_OBS): Add regset.o.
7845 (regset.o): New rule.
7846
7847 2004-05-19 Joel Brobecker <brobecker@gnat.com>
7848
7849 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
7850 and pthread_cond_wait.c.
7851
7852 2004-05-18 Jim Blandy <jimb@redhat.com>
7853
7854 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
7855 before the mach-specific switch, and then let the individual cases
7856 override the defaults, rather than leaving them uninitialized
7857 until the switch and then setting them in each case.
7858
7859 2004-05-18 Randolph Chung <tausq@debian.org>
7860
7861 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
7862 millicode functions.
7863
7864 2004-05-18 Randolph Chung <tausq@debian.org>
7865
7866 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
7867 references to dld_flags_buffer consistent.
7868
7869 2004-05-18 Randolph Chung <tausq@debian.org>
7870
7871 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
7872 it for unwinding the stack.
7873
7874 2004-05-18 Randolph Chung <tausq@debian.org>
7875
7876 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
7877 Undefine these so we can overide them using gdbarch.
7878
7879 2004-05-18 Randolph Chung <tausq@debian.org>
7880
7881 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
7882 handling for 64-bit HPUX (elf).
7883
7884 2004-05-18 Daniel Jacobowitz <dan@debian.org>
7885
7886 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
7887 constants.
7888 * amd64-tdep.c (amd64_skip_prologue): Likewise.
7889 * ia64-tdep.c (examine_prologue): Likewise.
7890 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
7891 * v850-tdep.c (v850_fix_call_dummy): Likewise.
7892
7893 2004-05-18 Mark Kettenis <kettenis@gnu.org>
7894
7895 * vax-tdep.c (vax_return_value): Implement
7896 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7897
7898 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7899
7900 * vax-tdep.c (vax_return_value): Fix typo.
7901
7902 2004-05-17 Andrew Cagney <cagney@redhat.com>
7903
7904 * MAINTAINERS: Mark Salter was also responsible for
7905 testsuite/config/
7906
7907 * NEWS: Mention signal fixes.
7908
7909 2004-05-17 Randolph Chung <tausq@debian.org>
7910
7911 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
7912 check to see if we are unwinding an export stub. Export stubs clobber
7913 the %rp in the call path and stores the original rp in a stack slot.
7914
7915 2004-05-17 Jim Blandy <jimb@redhat.com>
7916
7917 * MAINTAINERS: Update address for J.T. Conklin.
7918
7919 2004-05-17 Randolph Chung <tausq@debian.org>
7920
7921 * hppa-tdep.c: Remove superfluous #include's.
7922 * Makefile.in (hppa-tdep.o): Update dependencies.
7923
7924 2004-05-17 Randolph Chung <tausq@debian.org>
7925
7926 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
7927 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
7928 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
7929 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
7930 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
7931 Remove static function declarations.
7932
7933 2004-05-17 Mark Kettenis <kettenis@gnu.org>
7934
7935 * alphabsd-nat.c: Update copyright year.
7936 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
7937
7938 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
7939 and M68K_A2_REGNUM.
7940
7941 * m68k-tdep.c (m68k_svr4_return_value): Implement
7942 RETURN_VALUE_ABI_RETURNS_ADDRESS.
7943
7944 2004-05-16 Mark Kettenis <kettenis@gnu.org>
7945
7946 * sol-thread.c Update copyright year. Fix various coding
7947 standards violations. Tweak a few comments.
7948 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
7949 Delete prototypes.
7950
7951 2004-05-15 Randolph Chung <tausq@debian.org>
7952
7953 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
7954 as pointer instead of array reference since HPUX compiler does
7955 not accept unsized array arguments.
7956 * somsolib.c (dld_flags_buffer): Use constant array size.
7957
7958 2004-05-15 Mark Kettenis <kettenis@gnu.org>
7959
7960 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
7961 offset with decimal offset.
7962 (amd64obsd_sigcontext_addr): Return correct address for entire
7963 signal trampoline.
7964
7965 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
7966 instead of get_frame_base.
7967
7968 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
7969 (fill_gregset): Use regcache_raw_collect.
7970
7971 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
7972 ppcobsd-tdep.c.
7973
7974 * config/sparc/tm-nbsd64.h: Remove file.
7975 * config/tm-sunos.h: Remove file.
7976
7977 2004-05-15 Joel Brobecker <brobecker@gnat.com>
7978
7979 * rs6000-tdep.c (store_param_on_stack_p): New function,
7980 an improved version of some code extracted from skip_prologue().
7981 (skip_prologue): Use store_param_on_stack_p() to detect
7982 instructions saving a parameter on the stack. Detect when r0
7983 is used to save a parameter.
7984 Do not mark "li rx, SIMM" instructions as part of the prologue,
7985 unless the following instruction is also part of the prologue.
7986
7987 2004-05-14 Andrew Cagney <cagney@redhat.com>
7988
7989 * infrun.c (handle_inferior_event): Simplify
7990 STEP_OVER_UNDEBUGGABLE.
7991
7992 * infrun.c (handle_step_into_function): Delete function.
7993 (handle_inferior_event): Inline calls to
7994 handle_step_into_function.
7995
7996 2004-05-14 Jerome Guitton <guitton@gnat.com>
7997
7998 * rs6000-nat.c: Fix a comment.
7999
8000 2004-05-12 David Anderson <davea@sgi.com>
8001
8002 Committed by Jim Blandy <jimb@redhat.com>:
8003 * regcache.c (struct regcache_descr): fix comment spelling.
8004
8005 2004-05-13 J. Brobecker <brobecker@gnat.com>
8006
8007 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
8008 Fixes a link link failure.
8009
8010 2004-05-13 J. Brobecker <brobecker@gnat.com>
8011
8012 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
8013 error that was causing the build to fail.
8014
8015 2004-05-13 J. Brobecker <brobecker@gnat.com>
8016
8017 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
8018 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
8019
8020 2004-05-13 Andrew Cagney <cagney@redhat.com>
8021
8022 * infrun.c (handle_inferior_event): Check for
8023 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
8024 calls. Update comments.
8025
8026 2004-05-13 Jim Blandy <jimb@redhat.com>
8027
8028 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
8029 (fetch_regs_user_thread, fetch_regs_kernel_thread)
8030 (store_regs_user_thread, store_regs_kernel_thread): Use
8031 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
8032 * ppc-linux-nat.c (fill_gregset): Same.
8033 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
8034 (ppc_linux_sigtramp_cache): Same.
8035 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
8036 (ppcnbsd_sigtramp_cache_init): Same.
8037 * rs6000-nat.c (fetch_core_registers): Same.
8038 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
8039 (rs6000_frame_cache): Same.
8040
8041 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
8042 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
8043 of assuming that the gprs are numbered starting with zero.
8044 * ppc-linux-nat.c (fill_gregset): Same.
8045 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
8046 * ppcnbsd-nat.c (getregs_supplies): Same.
8047 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
8048 * rs6000-nat.c (fetch_core_registers): Same.
8049 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
8050
8051 2004-05-07 Michael Snyder <msnyder@redhat.com>
8052
8053 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
8054 LOC_COMPUTED_ARG, and LOC_INDIRECT.
8055
8056 2004-05-13 Andrew Cagney <cagney@redhat.com>
8057
8058 * infrun.c (handle_inferior_event): Use frame_unwind_id.
8059
8060 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
8061
8062 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
8063 base_address for shared libraries.
8064
8065 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
8066
8067 * MAINTAINERS (write after approval): Add myself.
8068
8069 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
8070
8071 * breakpoint.c (bpstat_stop_status): Add new argument
8072 STOPPED_BY_WATCHPOINT. Use it instead of testing
8073 target_stopped_data_address agaist 0 to check whether
8074 or not we stopped due to a hardware watchpoint.
8075 * breakpoint.h (bpstat_stop_status): Adapt prototype.
8076 * infrun.c (handle_inferior_event): Call bpstat_stop_status
8077 with new argument.
8078
8079 2004-05-12 Jim Blandy <jimb@redhat.com>
8080
8081 * configure.in: When checking whether we should use the -bbigtoc
8082 option, don't forget to restore the original value of LDFLAGS.
8083 * configure: Regenerated.
8084
8085 2004-05-12 Andrew Cagney <cagney@redhat.com>
8086
8087 * thread.c (load_infrun_state): Delete step_sp.
8088 * infrun.c (context_switch): Ditto.
8089 * inferior.h (step_sp): Ditto.
8090 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
8091 * gdbthread.h (struct thread_info, save_infrun_state)
8092 (restore_infrun_state): Ditto.
8093
8094 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
8095
8096 * MAINTAINERS (write after approval): Add myself.
8097
8098 2004-05-12 Andrew Cagney <cagney@redhat.com>
8099
8100 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
8101 eliminate reference to step_sp.
8102 (struct execution_control_state, init_execution_control_state)
8103 (handle_inferior_event, keep_going): Delete update_step_sp and
8104 step_sp.
8105 * infcmd.c (step_sp): Note that variable is unused.
8106
8107 2004-05-11 Andrew Cagney <cagney@redhat.com>
8108
8109 * infrun.c (step_over_function): Delete function.
8110 (handle_step_into_function): Use insert_step_resume_breakpoint.
8111 (insert_step_resume_breakpoint): Fix assertion.
8112
8113 2004-05-11 Nick Roberts <nickrob@gnu.org>
8114
8115 * utils.c (defaulted_query): Just use the normal query input type
8116 when printing the annotations.
8117
8118 2004-05-11 Andrew Cagney <cagney@redhat.com>
8119
8120 * infrun.c (handle_inferior_event): Simplify code handling
8121 step-into or return-from a signal trampoline.
8122
8123 2004-05-11 Andrew Cagney <cagney@redhat.com>
8124
8125 * ppcnbsd-tdep.c: Include "gdb_assert.h".
8126 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
8127
8128 2004-05-10 Jim Blandy <jimb@redhat.com>
8129
8130 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
8131 with a call to internal_error.
8132
8133 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
8134 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
8135 processor variant lacks those registers.
8136 (ppc_floating_point_unit_p): Change description to make it clear
8137 that this returns info about the ISA, not the ABI.
8138 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
8139 return true or false by checking tdep->ppc_fp0_regnum and
8140 tdep->ppc_fpscr_regnum. The original code replicated the BFD
8141 arch/mach switching done in rs6000_gdbarch_init; it's better to
8142 keep that logic there, and just check the results here.
8143 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
8144 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
8145 floating-point registers.
8146 (ppc_supply_fpregset, ppc_collect_fpregset)
8147 (rs6000_push_dummy_call, rs6000_extract_return_value)
8148 (rs6000_store_return_value): Assert that we have floating-point
8149 registers.
8150 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
8151 (rs6000_frame_cache): Don't note the locations at which
8152 floating-point registers were saved if we have no fprs.
8153 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
8154 registers.
8155 (fetch_regs_user_thread, fetch_regs_kernel_thread)
8156 (store_regs_user_thread, store_regs_kernel_thread): Only call
8157 supply_fprs / fill_fprs if we actually have floating-point
8158 registers.
8159 (special_register_p): Check ppc_fpscr_regnum before matching
8160 against it.
8161 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
8162 supply / collect fpscr if we don't have it.
8163 * ppc-bdm.c: #include "gdb_assert.h".
8164 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
8165 have floating-point registers, since I can't test this code on
8166 FP-free systems to adapt it.
8167 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
8168 fpscr and floating point register numbers if they don't exist.
8169 (fetch_register): Assert that we have floating-point registers
8170 before we reach the code that handles them.
8171 (store_register): Same. And use tdep instead of calling
8172 gdbarch_tdep again.
8173 (fill_fpregset): Don't try to collect FP registers and fpscr if we
8174 don't have them.
8175 (ppc_linux_sigtramp_cache): Don't record the saved locations of
8176 fprs and fpscr if we don't have them.
8177 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
8178 don't have them.
8179 * ppcnbsd-nat.c: #include "gdb_assert.h".
8180 (getfpregs_supplies): Assert that we have floating-point registers.
8181 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
8182 * ppcobsd-tdep.c: #include "gdb_assert.h".
8183 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
8184 have floating-point registers.
8185 * rs6000-nat.c (regmap): Don't match against the fpscr and
8186 floating point register numbers if they don't exist.
8187 (fetch_inferior_registers, store_inferior_registers,
8188 fetch_core_registers): Only fetch / store / supply the
8189 floating-point registers and the fpscr if we have them.
8190 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
8191 (ppcobsd-tdep.o): Update dependencies.
8192
8193 2004-05-10 Andrew Cagney <cagney@redhat.com>
8194
8195 * infrun.c (through_sigtramp_breakpoint): Delete variable.
8196 (context_switch): Do not switch through_sigtramp_breakpoint.
8197 * gdbthread.h (save_infrun_state, load_infrun_state)
8198 (struct thread_info): Delete through_sigtramp_breakpoint parameter
8199 and structure member.
8200 * thread.c (load_infrun_state, save_infrun_state): Update.
8201
8202 2004-05-10 Mark Kettenis <kettenis@gnu.org>
8203
8204 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
8205
8206 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
8207
8208 * acinclude.m4: Quote macro names being defined by AC_DEFUN
8209 throughout.
8210 * aclocal.m4: Regenerate.
8211
8212 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
8213
8214 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
8215
8216 2004-05-10 Andrew Cagney <cagney@redhat.com>
8217
8218 * infrun.c (check_sigtramp2): Delete function.
8219 (handle_inferior_event): When single stepping, and taking a
8220 signal, set a breakpoint at the signal return address. Delete
8221 redundant calls to check_sigtramp2.
8222 (insert_step_resume_breakpoint): New function.
8223 (through_sigtramp_breakpoint, handle_inferior_event)
8224 (follow_exec, wait_for_inferior, fetch_inferior_event)
8225 (currently_stepping, keep_going): Delete most uses of
8226 through_sigtramp_breakpoint, not that it should be deleted.
8227 (delete_breakpoint_current_contents): Delete function.
8228
8229 2004-05-10 Randolph Chung <tausq@debian.org>
8230
8231 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
8232 target.
8233 * config/pa/tm-linux.h: New file.
8234
8235 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
8236
8237 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
8238 of prefixes. Don't print the prefix twice in the CLI.
8239
8240 2004-05-10 Jim Blandy <jimb@redhat.com>
8241
8242 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
8243 collect all the gprs.
8244
8245 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
8246 loop collecting gprs.
8247
8248 2004-05-09 Andrew Cagney <cagney@redhat.com>
8249
8250 * remote-vx.c (net_step): Delete step-range code.
8251 * remote.c (remote_resume, init_all_packet_configs)
8252 (set_remote_protocol_E_packet_cmd)
8253 (show_remote_protocol_E_packet_cmd)
8254 (remote_protocol_E, show_remote_cmd, _initialize_remote)
8255 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
8256 (show_remote_protocol_e_packet_cmd): Ditto.
8257
8258 2004-05-09 Mark Kettenis <kettenis@gnu.org>
8259
8260 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
8261
8262 * hppa-tdep.h: Update copyright year.
8263 (struct trad_frame_saved_reg): Add opaque declaration.
8264
8265 * amd64-tdep.c (amd64_return_value): Implement
8266 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8267
8268 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
8269 (m68k_value_to_register): New functions.
8270 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
8271 value_to_register.
8272
8273 * defs.h (enum return_value_convention): Add
8274 RETURN_VALUE_ABI_RETURNS_ADDRESS and
8275 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
8276 * infcmd.c (legacy_return_value): New function.
8277 (print_return_value): Rwerite to implement
8278 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8279 * values.c (using_struct_return): Check for inequality to
8280 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
8281 RETURN_VALUE_STRUCT_CONVENTION.
8282 * i386-tdep.c (i386_return_value): Implement
8283 RETURN_VALUE_ABI_RETURNS_ADDRESS.
8284
8285 * vax-tdep.c: Tweak comments. Reorder include files. Don't
8286 include "symtab.h", "opcode/vax.h" and "inferior.h".
8287 (vax_skip_prologue): Replace calls to read_memory_integer by calls
8288 to read_memory_unsigned_integer.
8289 (vax_gdbarch_init): Reorder.
8290 (_initialize_vax_tdep): Spell out prototype.
8291 * Makefile.in (vax-tdep.o): Update dependencies.
8292
8293 2004-05-08 Andrew Cagney <cagney@redhat.com>
8294
8295 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
8296 * target.c (target_detach, target_disconnect): Ditto.
8297
8298 * infcall.c (call_function_by_hand): When no
8299 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
8300 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
8301 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
8302 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8303 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8304
8305 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
8306 * gdbarch.h, gdbarch.c: Re-generate.
8307 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8308 deprecated_fix_call_dummy.
8309 * v850-tdep.c (v850_gdbarch_init): Ditto.
8310 * infcall.c (call_function_by_hand): Do not call
8311 DEPRECATED_FIX_CALL_DUMMY.
8312
8313 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
8314 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
8315 * gdbarch.h, gdbarch.c: Re-generate.
8316 * arm-linux-tdep.c (arm_linux_call_dummy_words)
8317 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
8318 deprecated_sizeof_call_dummy_words.
8319 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
8320 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8321 * v850-tdep.c (v850_gdbarch_init): Ditto.
8322 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
8323 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
8324 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8325 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8326 * arch-utils.h (legacy_call_dummy_words)
8327 (legacy_sizeof_call_dummy_words): Delete declarations.
8328 * arch-utils.c (legacy_call_dummy_words)
8329 (legacy_sizeof_call_dummy_words): Delete variables.
8330
8331 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
8332 * gdbarch.h, gdbarch.c: Re-generate.
8333 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
8334 * infcall.c (call_function_by_hand): Eliminate call to
8335 DEPRECATED_PUSH_DUMMY_FRAME.
8336 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
8337 push_dummy_frame.
8338 (ns32k_push_dummy_frame): Delete function.
8339
8340 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8341 deprecated_call_dummy_breakpoint_offset or
8342 deprecated_call_dummy_start_offset.
8343 * dummy-frame.c, arm-tdep.c: Update comments.
8344 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
8345 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
8346 * gdbarch.h, gdbarch.c: Re-generate.
8347
8348 * infcall.c (legacy_push_dummy_code): Delete function.
8349 (push_dummy_code): Delete call.
8350
8351 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
8352 * gdbarch.h, gdbarch.c: Re-generate.
8353 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
8354 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
8355 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
8356 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
8357
8358 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
8359 (struct frame_info): Delete opaque declaration.
8360 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
8361 * frame.c (get_frame_type): Delete call.
8362
8363 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
8364 pc_in_call_dummy.
8365 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
8366 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
8367
8368 2004-05-08 Mark Kettenis <kettenis@gnu.org>
8369
8370 * alphanbsd-tdep.c: Include "gdb_string.h".
8371 * armnbsd-tdep.c: Update copyright year.
8372 Include "gdb_string.h".
8373 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
8374 dependencies.
8375
8376 * delta68-nat.c: Remove file.
8377 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
8378 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
8379 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
8380 (delta68-nat.o): Remove dependency.
8381
8382 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
8383 function.
8384 (m68k_gdbarch_init): Don't set
8385 deprecated_frameless_function_invocation.
8386
8387 2004-05-07 Randolph Chung <tausq@debian.org>
8388
8389 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
8390 read_memory_nobpt for code reading when doing frame unwinding.
8391 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
8392
8393 2004-05-07 Randolph Chung <tausq@debian.org>
8394
8395 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
8396 instead of sp, handle sigaltstack case.
8397 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
8398 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
8399 signal handler and not that of the caller.
8400 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
8401 hppa_linux_sigtramp_find_sigcontext.
8402
8403 2004-05-07 Randolph Chung <tausq@debian.org>
8404
8405 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
8406 hppa-linux-nat.c.
8407 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
8408 * hppa-linux-nat.c (fetch_register, store_register): Define.
8409 (fetch_inferior_registers, store_inferior_registers): Define.
8410 (supply_gregset): Add comment and clean up some unneeded code.
8411 (fill_gregset): Add comment and fix so that it saves registers in
8412 the right place in the gregset.
8413 (fill_fpregset): Fix buffer overrun problem.
8414 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
8415
8416 2004-05-07 Randolph Chung <tausq@debian.org>
8417
8418 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
8419 do common handling of the pcoqt register.
8420 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
8421 to use helper function.
8422 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
8423 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
8424 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
8425 generic fallback unwinder when all else fails.
8426 (hppa_gdbarch_init): Add fallback sniffer.
8427 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
8428 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
8429 to use helper function.
8430
8431 2004-05-08 Joel Brobecker <brobecker@gnat.com>
8432
8433 * config/djgpp/fnchange.lst: Add translation rules for
8434 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
8435
8436 2004-05-08 Mark Kettenis <kettenis@gnu.org>
8437
8438 * frame.c (get_prev_frame_1): Work around GCC bug.
8439 * frame.h: Add comment about GCC bug.
8440
8441 2004-05-07 Andrew Cagney <cagney@redhat.com>
8442
8443 * observer.c: Include "commands.h" and "gdbcmd.h".
8444 (observer_debug, _initialize_observer): Add the
8445 command "set/show debug observer".
8446 * observer.sh: When observer debugging, log notify calls.
8447 * Makefile.in (observer.o): Update dependencies.
8448
8449 2004-05-07 Jason Molenda (jmolenda@apple.com)
8450
8451 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
8452
8453 2004-05-07 Jim Blandy <jimb@redhat.com>
8454
8455 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
8456 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
8457 to recognize gpr regnums, instead of assuming that
8458 tdep->ppc_fp0_regnum marks the end of the general-purpose
8459 registers.
8460
8461 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
8462 the given architecture has floating-point registers.
8463
8464 2004-05-07 Andrew Cagney <cagney@redhat.com>
8465
8466 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
8467 macro defined to 1.
8468 * gdbarch.h, gdbarch.c: Re-generate.
8469 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
8470 deprecated_use_generic_dummy_frames.
8471
8472 2004-05-07 Brian Ford <ford@vss.fsi.com>
8473
8474 * NEWS: Mention Cygwin DWARF 2 support.
8475
8476 2004-05-07 Andrew Cagney <cagney@redhat.com>
8477
8478 * objfiles.h (struct entry_info): Delete unused fields
8479 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
8480 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
8481 * mipsread.c (mipscoff_symfile_read): Update.
8482 * mdebugread.c (parse_partial_symbols): Update.
8483 * dwarfread.c (read_file_scope): Update.
8484 * dwarf2read.c (read_file_scope): Update.
8485 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
8486 * coffread.c (complete_symtab): Update.
8487
8488 2004-05-07 Mark Kettenis <kettenis@gnu.org>
8489
8490 * infcall.c (_initialize_infcall): Fix typo.
8491
8492 2004-05-07 Andrew Cagney <cagney@redhat.com>
8493
8494 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
8495 * command.h (add_setshow_zinteger_cmd): Declare.
8496
8497 2004-05-06 Randolph Chung <tausq@debian.org>
8498
8499 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
8500 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
8501 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
8502 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
8503 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
8504 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
8505 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
8506 definitions ...
8507 * hppa-tdep.h: ... to here, with HPPA_ prefix.
8508 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
8509 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
8510 (hppa64_hpux_frame_find_saved_regs_in_sig)
8511 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
8512 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
8513 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
8514 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
8515 (hppa_linux_sigtramp_frame_prev_register): Likewise.
8516 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
8517 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
8518 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
8519 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
8520 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
8521 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
8522 (hppa32_register_type, hppa_cannot_store_register)
8523 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
8524 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
8525 * hpread.c (hpread_process_one_debug_symbol): Likewise.
8526 * pa64solib.c (pa64_solib_have_load_event)
8527 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
8528 (pa64_solib_unloaded_library_pathname): Likewise.
8529 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
8530 (som_solib_library_pathname): Likewise.
8531
8532 2004-05-05 Jim Ingham <jingham@apple.com>
8533
8534 * breakpoint.c (create_breakpoints): Copy the ignore count and
8535 thread id over from the pended breakpoint to the actual
8536 breakpoint.
8537
8538 2004-05-05 Andrew Cagney <cagney@redhat.com>
8539
8540 * gdbarch.sh (PARM_BOUNDARY): Delete.
8541 gdbarch.h, gdbarch.c: Re-generate.
8542 * valops.c (PARM_BOUNDARY): Delete macro.
8543 (value_push): Delete PARM_BOUNDARY code.
8544 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
8545
8546 2004-05-04 Jim Blandy <jimb@redhat.com>
8547
8548 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
8549 Don't assume that the gprs, fprs, and UISA sprs are
8550 contiguous, start at register number zero, and end with fpscr.
8551 Instead, use the numbers from the tdep structure.
8552
8553 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
8554 should no longer be used in code specific to the RS6000 and its
8555 derivatives.
8556 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
8557 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
8558 tdep->ppc_fp0_regnum.
8559 (ppc_supply_fpregset, ppc_collect_fpregset)
8560 (rs6000_push_dummy_call, rs6000_extract_return_value)
8561 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
8562 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
8563 FP0_REGNUM.
8564 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
8565 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
8566 Same.
8567 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
8568 bdm_ppc_store_registers): Same.
8569 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
8570 (store_register, fill_fpregset): Same.
8571 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
8572 (ppc_linux_supply_fpregset): Same.
8573 * ppcnbsd-nat.c (getfpregs_supplies): Same.
8574 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
8575 Same.
8576 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
8577 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
8578 ppc64_sysv_abi_return_value): Same.
8579 * rs6000-nat.c (regmap, fetch_inferior_registers)
8580 (store_inferior_registers, fetch_core_registers): Same.
8581
8582 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8583
8584 * m68knbsd-nat.c: Remove file.
8585 * m68knbsd-tdep.c: Remove file.
8586 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
8587 dependencies.
8588 * configure.host: Add m68k-*-netbsdelf*.
8589 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
8590 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
8591 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
8592 (XM_FILE): Remove.
8593 * config/m68k/nbsdelf.mh: New file.
8594 * config/m68k/nbsd.mt: New file.
8595 * config/m68k/nbsdaout.mt: Remove file.
8596 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
8597 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
8598 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
8599 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
8600 (use_struct_convention): Remove prototype.
8601 (USE_STRUCT_CONVENTION): Remove define.
8602 * config/m68k/xm-nbsd.h: Remove file.
8603
8604 2004-05-04 Michael Snyder <msnyder@redhat.com>
8605
8606 * m68k-tdep.c (m68k_gdbarch_init): Default to using
8607 reg_struct_return method (as gcc usually does for cross targets).
8608
8609 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8610
8611 Committed by Andrew Cagney.
8612 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
8613 alignment padding when accessing ucontext struct members.
8614
8615 2004-05-04 Jim Blandy <jimb@redhat.com>
8616
8617 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
8618 'ppc_gplast_regnum' member.
8619 (ppc_num_gprs): New enum constant.
8620 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
8621 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
8622 * rs6000-nat.c (regmap, fetch_inferior_registers,
8623 store_inferior_registers): Same.
8624 * rs6000-tdep.c (e500_pseudo_register_read)
8625 (e500_pseudo_register_write): Same.
8626 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
8627
8628 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
8629 * ppc-tdep.h (ppc_num_fprs): New enum constant.
8630 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
8631 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
8632 FPLAST_REGNUM.
8633 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8634 Same.
8635 * ppc-linux-nat.c (ppc_register_u_addr): Same.
8636 * rs6000-nat.c (regmap, fetch_inferior_registers)
8637 (store_inferior_registers): Same.
8638
8639 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
8640 with FPLAST_REGNUM.
8641
8642 2004-05-03 Joel Brobecker <brobecker@gnat.com>
8643
8644 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
8645 failure detected by recent versions of GCC.
8646 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
8647 to be consistent with the usage in dwarf2_create_include_psymtab.
8648
8649 2004-05-03 Michael Snyder <msnyder@redhat.com>
8650
8651 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
8652 (heuristic_proc_start): Whitespace cleanup.
8653
8654 2004-05-04 Mark Kettenis <kettenis@gnu.org>
8655
8656 * sun3-nat.c: Remove file.
8657 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
8658 dependencies.
8659 (ALLDEPFILES): Remove sun3-nat.c.
8660 (sun3-nat.o): Remove dependencies.
8661
8662 * i386-interix-nat.c, i386-interix-tdep.c,
8663 config/i386/nm-interix.h, config/i386/interix.mh,
8664 config/i386/interix.mt: Remove files.
8665 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
8666 dependencies.
8667
8668 2004-05-03 Mark Kettenis <kettenis@gnu.org>
8669
8670 * m68k-tdep.h (struct gdbarch_tdep): Add member
8671 struct_value_regnum.
8672 (m68k_svr4_init_abi): New prototype.
8673 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
8674 different calling conventions.
8675 (m68k_extract_return_value): Remove code dealing with single-field
8676 structs.
8677 (m68k_store_return_value): Remove code dealing with single-field
8678 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
8679 (m68k_extract_struct_value_address): Remove function.
8680 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
8681 (m68k_reg_struct_return_p, m68k_return_value)
8682 (m68k_svr4_return_value): New functions.
8683 (m68k_use_struct_convention): Remove function.
8684 (m68k_push_dummy_call): Use new struct_value_regnum member of
8685 `struct gdbarch_tdep' instead of hardcoded register number to
8686 store STRUCT_ADDR.
8687 (m68k_svr4_init_abi): New function.
8688 (m68k_gdbarch_init): Don't set extract_return_value,
8689 store_return_values, deprecated_extract_struct_value_address and
8690 use_struct_convention. Set return_value instead. Initialize new
8691 struct_value_regnum member of `struct gdbarch_tdep'.
8692 * m68klinux-tdep.c: Update copyright year.
8693 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
8694 (m68k_linux_extract_struct_value_address): Remove function.
8695 (m68k_linux_init_abi): Don't set extract_return_value,
8696 store_return_values, deprecated_extract_struct_value_address and
8697 use_struct_convention. Call m68k_svr4_init_abi but override the
8698 new struct_value_regnum member of `struct gdbarch_tdep'.
8699 * Makefile.in (m68k-tdep.o): Update dependencies.
8700
8701 2004-05-03 J. Brobecker <brobecker@gnat.com>
8702
8703 * dwarf2read.c (line_header): Add new included_p field in
8704 field file_names.
8705 (partial_die_info): New field has_stmt_list. New field line_offset.
8706 (dwarf2_create_include_psymtab): New function.
8707 (dwarf2_build_include_psymtabs): New function.
8708 (add_file_name): Add forward declaration. Initialize new field.
8709 (dwarf_decode_lines): Add new parameter. Enhance this procedure
8710 to be able to determine the list of files included by the
8711 given unit, and build their associated psymtabs.
8712 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
8713 files as well.
8714 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
8715 (read_file_scope): Update call to dwarf_decode_lines.
8716 (read_partial_die): Handle DW_AT_stmt_list attributes.
8717
8718 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
8719
8720 Unfix PR gdb/1626.
8721 * configure.in: Revert special case for osf5.*.
8722 * configure: Regenerate.
8723
8724 2004-05-02 Jim Blandy <jimb@redhat.com>
8725
8726 Move the symbol-file-from-memory functions into their own file.
8727 * symfile-mem.c, symfile-mem.h: New files.
8728 * symfile.c (symbol_file_add_from_bfd): New function.
8729 (symbol_file_add): Call symbol_file_add_from_bfd.
8730 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
8731 Moved to symfile-mem.c.
8732 (_initialize_symfile): Move definition of
8733 add-symbol-file-from-memory command to symfile-mem.c.
8734 * symfile.h (symbol_file_add_from_bfd): New declaration.
8735 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
8736 * config/powerpc/linux.mt (TDEPFILES): Same.
8737 * Makefile.in (SFILES): Add symfile-mem.c.
8738 (symfile_mem_h): New variable.
8739 (HFILES_NO_SRCDIR): Add symfile-mem.h.
8740 (symfile-mem.o): New rule.
8741
8742 2004-05-01 Andrew Cagney <cagney@redhat.com>
8743
8744 * breakpoint.c (insert_bp_location): Use get_frame_id, and
8745 frame_find_by_id instead of frame_relative_level.
8746 (do_enable_breakpoint): Ditto.
8747 * thread.c: Update copyright.
8748 (info_threads_command): Ditto, simplify.
8749
8750 * frame.c (deprecated_generic_get_saved_register): Delete
8751 function, moved to "xstormy16-tdep.c".
8752 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
8753 deprecated_generic_get_saved_register from "frame.c".
8754 (xstormy16_frame_saved_register): Call
8755 xstormy16_get_saved_register.
8756 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
8757 static.
8758 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
8759 * frame.h (deprecated_generic_get_saved_register): Delete.
8760
8761 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
8762
8763 * dwarfread.c: Update documentation on the state of dwarf-1.
8764
8765 2004-05-01 Andrew Cagney <cagney@redhat.com>
8766
8767 * stack.c (select_frame_command): Delete call to
8768 frame_relative_level.
8769 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
8770 Delete #if0 code.
8771 (frame_info): Do not print FRAMELESS.
8772 (print_block_frame_labels): Replace DEPRECATED_STREQ.
8773 (catch_info): Delete #if0 code.
8774
8775 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
8776 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
8777 of frame_relative_level.
8778 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
8779 to SENTINEL_FRAME.
8780 * frame.h (enum frame_type): Add SENTINEL_FRAME.
8781 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
8782 frame_relative_level.
8783
8784 * frame.h (deprecated_set_frame_type): Delete declaration.
8785 * frame.c (deprecated_set_frame_type): Delete function, update
8786 comments.
8787
8788 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
8789 * gdbarch.h, gdbarch.c: Re-generate.
8790 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
8791 (shnbsd_pc_in_sigtramp): Delete.
8792 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
8793 pc_in_sigtramp.
8794 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
8795 pc_in_sigtramp.
8796 * frame.h: Update comments.
8797 * ppc-linux-tdep.c: Update comments.
8798 * breakpoint.c (bpstat_what): Update comments.
8799
8800 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
8801 m68klinux-tdep.o's dependencies, were previously added to
8802 m68klinux-nat.o.
8803
8804 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
8805 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
8806 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8807 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8808 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8809
8810 * Makefile.in (m68klinux-nat.o): Update dependencies.
8811 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8812 (m68k_linux_sigtramp_frame_cache)
8813 (m68k_linux_sigtramp_frame_this_id)
8814 (m68k_linux_sigtramp_frame_prev_register)
8815 (m68k_linux_sigtramp_frame_unwind)
8816 (m68k_linux_sigtramp_frame_sniffer)
8817 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
8818 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
8819 names, use trad-frame.h.
8820 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
8821 (struct m68k_sigtramp_info): Delete.
8822 * m68k-tdep.c (m68k_sigtramp_frame_cache)
8823 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
8824 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
8825 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
8826 "m68klinux-tdep.c".
8827
8828 * infrun.c (check_sigtramp2): Delete check for
8829 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
8830
8831 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8832
8833 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
8834
8835 2004-05-01 Andrew Cagney <cagney@redhat.com>
8836
8837 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
8838 (frv_linux_sigtramp_frame_cache)
8839 (frv_linux_sigtramp_frame_this_id)
8840 (frv_linux_sigtramp_frame_prev_register)
8841 (frv_linux_sigtramp_frame_unwind)
8842 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
8843 include "linux" in function and variable names, directly call
8844 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
8845 the latest trad-frame code.
8846 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
8847 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
8848 * Makefile.in (frv-linux-tdep.o): Update dependencies.
8849 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
8850 * frv-tdep.c (frv_sigtramp_frame_cache)
8851 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8852 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
8853 frv-linux-tdep.c.
8854 (frv_gdbarch_init): Do not append a sigtramp sniffer.
8855 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
8856 (frv_set_sigcontext_reg_addr): Delete function.
8857
8858 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
8859 (DEPRECATED_SIGTRAMP_END): Delete.
8860 * gdbarch.h, gdbarch.c: Re-generate.
8861 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
8862 * config/vax/tm-vaxbsd.h: Update copyright.
8863 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8864 (DEPRECATED_IN_SIGTRAMP): Define.
8865 * config/m68k/tm-nbsd.h: Update copyright.
8866 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
8867 (DEPRECATED_IN_SIGTRAMP): Define.
8868
8869 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8870
8871 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
8872 encondings. Fixes PR gdb/1628.
8873
8874 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
8875 DW_CFA_restore state without a matching DW_CFA_remember_state
8876 instead of aborting. Fixes PR backtrace/1589.
8877
8878 2004-04-30 Joel Brobecker <brobecker@gnat.com>
8879
8880 * MAINTAINERS: Add self as AIX maintainer.
8881 Update my e-mail address in write-after-approval section.
8882
8883 2004-04-30 Andrew Cagney <cagney@redhat.com>
8884
8885 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
8886 (legacy_get_prev_frame): Ditto.
8887
8888 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
8889 (mips_gdbarch_init): Do not set pc_in_sigtramp.
8890 * mipsread.c (sigtramp_address): Delete extern variable.
8891 (mipscoff_new_init): Delete reference.
8892 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
8893 (fixup_sigtramp): Delete function.
8894 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
8895 (fixup_sigtramp): Delete declarations.
8896
8897 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
8898 deprecated_pc_in_sigtramp.
8899 (ppcnbsd_pc_in_sigtramp): Delete function.
8900
8901 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8902
8903 * config/m68k/nm-nbsd.h: Tweak comments.
8904 * config/m68k/nm-nbsdaout.h: Likewise.
8905
8906 2004-04-30 Andrew Cagney <cagney@redhat.com>
8907
8908 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
8909 legacy_pc_in_sigtramp.
8910 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
8911
8912 2004-05-01 Mark Kettenis <kettenis@gnu.org>
8913
8914 Add OpenBSD/m68k support.
8915 * NEWS (New native configurations): Mention OpenBSD/m68k.
8916 * m68kbsd-tdep.c: New file.
8917 * m68kbsd-nat.c: New file.
8918 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
8919 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
8920 * configure.host: Add m68k-*-openbsd.
8921 * configure.tgt: Add m68k-*-openbsd.
8922 * config/m68k/tm-obsd.h: New file.
8923 * config/m68k/obsd.mt: New file.
8924 * config/m68k/obsd.mh: New file.
8925 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
8926 m68kbsd-tdep.c.
8927
8928 2004-04-30 Andrew Cagney <cagney@redhat.com>
8929
8930 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
8931 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
8932
8933 2004-04-30 Mark Kettenis <kettenis@gnu.org>
8934
8935 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
8936 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
8937
8938 2004-04-30 Brian Ford <ford@vss.fsi.com>
8939
8940 Revert 2004-04-16 change.
8941 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
8942 (i386_coff_init_abi): Remove.
8943 * i386-tdep.h (i386_coff_init_abi): Remove.
8944 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
8945
8946 2004-04-30 Andrew Cagney <cagney@redhat.com>
8947
8948 * blockframe.c (find_pc_partial_function): Delete use of
8949 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
8950 DEPRECATED_SIGTRAMP_END.
8951
8952 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
8953 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
8954 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
8955 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
8956 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
8957
8958 * defs.h (deprecated_inside_entry_file): Delete declaration.
8959 * blockframe.c (deprecated_inside_entry_file): Delete function.
8960 (legacy_frame_chain_valid): Delete call.
8961 * sh64-tdep.c (sh64_frame_chain): Delete call.
8962 * objfiles.h: Update comments.
8963 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
8964 call.
8965 * frame.c (get_prev_frame): Delete call, update comments.
8966
8967 2004-04-30 Brian Ford <ford@vss.fsi.com>
8968
8969 * MAINTAINERS (Write After Approval): Add myself.
8970
8971 2004-04-30 Andrew Cagney <cagney@redhat.com>
8972
8973 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
8974 * gdbarch.h, gdbarch.c: Re-generate.
8975 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
8976 code.
8977
8978 2004-04-30 Andrew Cagney <cagney@redhat.com>
8979
8980 * gdb-events.sh (selected_thread_changed)
8981 (selected_frame_level_changed, target_changed): Delete.
8982 * gdb-events.h, gdb-events.c: Re-generate.
8983 * valops.c (value_assign): Update.
8984 * stack.c (select_frame_command, up_silently_base)
8985 (down_silently_base): Update.
8986
8987 2004-04-29 Andrew Cagney <cagney@redhat.com>
8988
8989 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
8990 registers correctly.
8991 (print_gp_register_row, mips32_heuristic_proc_desc)
8992 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
8993 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
8994 references to mips_isa_regsize.
8995
8996 2004-04-29 Andrew Cagney <cagney@redhat.com>
8997
8998 * mips-tdep.c (struct gdbarch_tdep): Delete
8999 mips_fp_register_double.
9000 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
9001 mips_abi_regsize.
9002 (mips_gdbarch_init): Do not set mips_fp_register_double.
9003 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
9004
9005 2004-04-29 Joel Brobecker <brobecker@gnat.com>
9006
9007 Committed by Andrew Cagney.
9008 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
9009 function calls.
9010
9011 2004-04-29 Andrew Cagney <cagney@redhat.com>
9012
9013 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
9014 gdbarch, use mips_abi, update callers.
9015 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
9016 mips_abi_regsize, update callers.
9017 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
9018 mips_default_abi_regsize.
9019 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
9020 mips_default_abi_regsize.
9021
9022 2004-04-29 Andrew Cagney <cagney@redhat.com>
9023
9024 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
9025 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
9026 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
9027 mips_default_abi_regsize.
9028 (mips_isa_regsize): Rename mips_regisze.
9029 * mipsnbsd-tdep.c: Update.
9030 * mips-linux-tdep.c: Update.
9031 * irix5-nat.c: Update.
9032 * mips-tdep.h (mips_isa_regsize): Update.
9033
9034 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
9035 Delete all disabled code.
9036 * gdb-events.h, gdb-events.c: Re-generate.
9037
9038 2004-04-19 Jerome Guitton <guitton@gnat.com>
9039 Mark Kettenis <kettenis@gnu.org>
9040
9041 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
9042 the function begins with a branch instruction.
9043
9044 2004-04-29 Mark Kettenis <kettenis@gnu.org>
9045
9046 * i386-tdep.c: Fix spelling mistakes.
9047
9048 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9049 Andrew Cagney <cagney@redhat.com>
9050
9051 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
9052 <sys/proc.h>.
9053 * acconfig.h: Provide default _KMEMUSER value.
9054 * config.in, configure: Re-generate.
9055 * NEWS: Mention fix.
9056
9057 2004-04-24 Randolph Chung <tausq@debian.org>
9058
9059 * configure.host (hppa*-*-linux*): New target.
9060 * configure.tgt (hppa*-*-linux*): Likewise.
9061 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
9062 gdbarch_init_osabi() call earlier so that osabi-specific frame
9063 unwinders can be registered first.
9064 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
9065 hppa-linux-nat.c.
9066 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
9067 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
9068 * config/pa/linux.mh: New file.
9069 * config/pa/linux.mt: New file.
9070 * config/pa/nm-linux.h: New file.
9071 * config/pa/xm-linux.h: New file.
9072 * hppa-linux-nat.c: New file.
9073 * hppa-linux-tdep.c: New file.
9074
9075 2004-04-28 Randolph Chung <tausq@debian.org>
9076
9077 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
9078 return values.
9079 (hppa32_push_dummy_call): Fix small struct and floating point argument
9080 passing, and make sure the stack frame is properly aligned.
9081
9082 2004-04-28 Andrew Cagney <cagney@redhat.com>
9083
9084 * stack.c (print_stack_frame): Fix description.
9085
9086 * NEWS: Mention gdb/gdbserver/configure execute permission
9087 changed. PR server/519.
9088
9089 2004-04-28 Andrew Cagney <cagney@redhat.com>
9090
9091 * stack.c (print_stack_frame_stub): Delete declaration.
9092 (struct print_stack_frame_args, print_stack_frame)
9093 (print_frame_info, print_frame): Replace "source" with print what.
9094 Replace "print" with "print_level". Replace "args" with
9095 "print_args".
9096 * frame.h (show_and_print_stack_frame, print_stack_frame)
9097 (print_frame_info): Update declarations.
9098 * stack.c (select_and_print_frame, frame_command)
9099 (current_frame_command, up_command, down_command): Update calls -
9100 use get_selected_frame, pass "enum print_what" for source, do not
9101 call frame_relative_level.
9102 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
9103 * remote-rdp.c (remote_rdp_open): Ditto.
9104 * remote-mips.c (common_open): Ditto.
9105 * remote-e7000.c (e7000_start_remote): Ditto.
9106 * ocd.c (ocd_start_remote): Ditto.
9107 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
9108 * infrun.c (normal_stop): Ditto.
9109 * inflow.c (kill_command): Ditto.
9110 * infcmd.c (finish_command): Ditto.
9111 * corelow.c (core_open): Ditto.
9112 * tracepoint.c (finish_tfind_command): Ditto.
9113 * thread.c (info_threads_command, info_threads_command)
9114 (restore_current_thread, do_captured_thread_select): Ditto.
9115 * ada-tasks.c (task_command): Ditto.
9116
9117 2004-04-26 Orjan Friberg <orjanf@axis.com>
9118
9119 * frame.c: Include "observer.h".
9120 (frame_observer_target_changed): New function.
9121 (_initialize_frame): Attach target_changed observer.
9122 * regcache.c: Include "observer.h".
9123 (regcache_observer_target_changed): New function.
9124 (_initialize_regcache): Attach target_changed observer.
9125 * valops.c: Include "observer.h".
9126 (value_assign): Notify target_changed event when modifying register.
9127 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
9128
9129 2004-04-26 Orjan Friberg <orjanf@axis.com>
9130
9131 From Paul Koning <pkoning@equallogic.com>:
9132 * breakpoint.c (free_valchain): New function.
9133 (insert_bp_location, delete_breakpoint): Use free_valchain.
9134 (remove_breakpoint): Do not remove the valchain.
9135 (bpstat_stop_status): If not stopped by watchpoint, skip
9136 watchpoints when generating stop status list.
9137 * infrun.c (handle_inferior_event): Make
9138 stepped_after_stopped_by_watchpoint a global variable.
9139 * remote.c (remote_stopped_data_address): Return watch data
9140 address rather than zero if stepped_after_stopped_by_watchpoint is
9141 set.
9142
9143 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
9144
9145 Fix PR gdb/1626.
9146 * configure.in: Check for curses after termcap.
9147 On osf5.*, do not check for ncurses.
9148 * configure: Regenerate.
9149
9150 2004-04-25 Mark Kettenis <kettenis@gnu.org>
9151
9152 * ppcobsd-nat.c: Include "ppc-tdep.h".
9153 * Makefile.in (ppcobsd-nat.o): Update dependencies.
9154
9155 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
9156 Fixes PR tdep/1623 and PR tdep/1624.
9157
9158 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
9159
9160 * xmodem.h, xmodem.c: Remove files.
9161 * Makefile.in: Remove references to xmodem.h, xmodem.c.
9162
9163 2004-04-23 Randolph Chung <tausq@debian.org>
9164
9165 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
9166 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
9167 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
9168 for handling stackless frames.
9169 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
9170
9171 2004-04-23 Randolph Chung <tausq@debian.org>
9172
9173 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
9174 starts at a pc before the frame is created.
9175
9176 2004-04-23 Joel Brobecker <brobecker@gnat.com>
9177
9178 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
9179
9180 2004-04-23 Jerome Guitton <guitton@gnat.com>
9181
9182 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
9183 use convert_typed_floating to get the appropriate format.
9184
9185 2004-04-22 Randolph Chung <tausq@debian.org>
9186
9187 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
9188 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
9189 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
9190 (hppa_sign_extend): Add prototype.
9191 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
9192 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
9193 (sign_extend): Rename with hppa_ prefix and make non-static. Other
9194 hppa targets will also use these functions.
9195 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
9196 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
9197 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
9198 (hppa_gdbarch_init): Remove gdbarch setting of
9199 skip_trampoline_code, in_solib_call_trampoline and
9200 in_solib_return_trampoline.
9201 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
9202 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
9203 hppa_in_solib_call_trampoline.
9204 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
9205 Moved from hppa-tdep.c.
9206 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
9207 in_solib_call_trampoline and in_solib_return_trampoline.
9208
9209 2004-04-22 Randolph Chung <tausq@debian.org>
9210
9211 * hppa-tdep.c (hppa_debug): New variable.
9212 (find_unwind_entry, hppa_frame_cache): Add debug output.
9213 (_initialize_hppa_tdep): Add command to set debug flag.
9214
9215 2004-04-22 Andrew Cagney <cagney@redhat.com>
9216
9217 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
9218 "trad-frame.h".
9219 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
9220 signal trampoline unwinder.
9221 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
9222
9223 2004-04-22 Mark Kettenis <kettenis@gnu.org>
9224
9225 Add OpenBSD/powerpc support.
9226 * NEWS (New native configurations): Mention OpenBSD/powerpc.
9227 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
9228 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
9229 (ppc_collect_fpregset): New prototypes.
9230 * ppcobsd-nat.c: New file.
9231 * ppcobsd-tdep.c: New file.
9232 * ppcobsd-tdep.h: New file.
9233 * rs6000-tdep.c: Include "regset.h".
9234 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
9235 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
9236 New functions.
9237 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
9238 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
9239 (rs6000-tdep.o): Update dependencies.
9240 * configure.host: Add powerpc-*-openbsd.
9241 * configure.tgt: Add powerpc-*-openbsd.
9242 * config/powerpc/obsd.mh: New file.
9243 * config/powerpc/nm-obsd.h: New file.
9244 * config/powerpc/obsd.mt: New file.
9245
9246 2004-04-22 Andrew Cagney <cagney@redhat.com>
9247
9248 * frame.h (show_frame_info): Delete declaration.
9249
9250 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
9251 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
9252 * m32r-tdep.c (m32r_frame_this_id): Ditto.
9253 * frv-tdep.c (frv_frame_this_id): Ditto.
9254 * avr-tdep.c (avr_frame_this_id): Ditto.
9255
9256 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
9257
9258 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
9259
9260 2004-04-22 Jim Blandy <jimb@redhat.com>
9261
9262 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
9263 register number zero.
9264
9265 2004-04-21 Michael Snyder <msnyder@redhat.com>
9266
9267 * mips-tdep.c (heuristic_proc_start):
9268 Warning() already prefixes "Warning: ".
9269
9270 2004-04-21 Andrew Cagney <cagney@redhat.com>
9271
9272 * annotate.h (deprecated_annotate_starting_hook)
9273 (deprecated_annotate_stopped_hook)
9274 (deprecated_annotate_exited_hook)
9275 (deprecated_annotate_signal_hook)
9276 (deprecated_annotate_signalled_hook): Deprecate.
9277 * tracepoint.h (deprecated_create_tracepoint_hook)
9278 (deprecated_delete_tracepoint_hook)
9279 (deprecated_modify_tracepoint_hook)
9280 (deprecated_trace_find_hook)
9281 (deprecated_trace_start_stop_hook): Deprecate.
9282 * target.h (deprecated_target_new_objfile_hook): Deprecate.
9283 * remote.h (deprecated_target_resume_hook)
9284 (deprecated_target_wait_loop_hook): Deprecate.
9285 * gdbcore.h (deprecated_exec_file_display_hook)
9286 (deprecated_file_changed_hook): Deprecate.
9287 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
9288 * defs.h (deprecated_modify_breakpoint_hook)
9289 (deprecated_command_loop_hook, deprecated_show_load_progress)
9290 (deprecated_print_frame_info_listing_hook)
9291 (deprecated_query_hook, deprecated_warning_hook)
9292 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
9293 (deprecated_delete_breakpoint_hook)
9294 (deprecated_interactive_hook, deprecated_registers_changed_hook)
9295 (deprecated_readline_begin_hook, deprecated_readline_hook)
9296 (deprecated_readline_end_hook, deprecated_register_changed_hook)
9297 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
9298 (deprecated_context_hook, deprecated_target_wait_hook)
9299 (deprecated_attach_hook, deprecated_detach_hook)
9300 (deprecated_call_command_hook, deprecated_set_hook)
9301 (deprecated_error_hook, deprecated_error_begin_hook)
9302 (deprecated_ui_load_progress_hook): Deprecate.
9303 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
9304 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
9305 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
9306 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
9307 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
9308 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
9309 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
9310 * annotate.c, aix-thread.c: Update.
9311
9312 2004-04-21 Andrew Cagney <cagney@redhat.com>
9313
9314 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
9315 * vaxnbsd-tdep.c: Include "gdb_string.h".
9316
9317 * symfile.c (symbol_file_add_from_memory): #if 0 function.
9318 (add_symbol_file_from_memory_command): #if 0 function body, call
9319 error instead.
9320
9321 2004-04-21 Andrew Cagney <cagney@redhat.com>
9322
9323 * gdbcore.h: Update copyright.
9324 (deprecated_add_core_fns): Rename add_core_fns.
9325 * win32-nat.c (_initialize_core_win32): Update.
9326 * sun3-nat.c (_initialize_core_sun3): Update.
9327 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
9328 * rs6000-nat.c (_initialize_core_rs6000): Update.
9329 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
9330 * nto-tdep.c (_initialize_nto_tdep): Update.
9331 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
9332 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
9333 * mips-nat.c (_initialize_core_mips): Update.
9334 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
9335 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
9336 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
9337 * lynx-nat.c (_initialize_core_lynx): Update.
9338 * irix5-nat.c (_initialize_core_irix5): Update.
9339 * i386-interix-nat.c (_initialize_core_interix): Update.
9340 * cris-tdep.c (_initialize_cris_tdep): Update.
9341 * corelow.c (deprecated_add_core_fns): Update.
9342 * core-regset.c (_initialize_core_regset): Update.
9343 * core-aout.c (_initialize_core_aout): Update.
9344 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
9345 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
9346 * alpha-nat.c (_initialize_core_alpha): Update.
9347
9348 2004-04-21 Jim Blandy <jimb@redhat.com>
9349
9350 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
9351
9352 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
9353
9354 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
9355 Delete.
9356 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
9357 (read_attribute_value): Update calls to dwarf_alloc_block.
9358 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
9359 dwarf2_tmp_obstack.
9360 (psymtab_to_symtab_1): Likewise. Clean up using
9361 free_stack_comp_unit.
9362 (add_to_cu_func_list): Use the comp_unit_obstack.
9363
9364 2004-04-19 Joel Brobecker <brobecker@gnat.com>
9365
9366 * dwarf2read.c (dwarf2_flag_true_p): New function.
9367 (die_is_declaration): Use the function above. Add some comments.
9368
9369 2004-04-19 Mark Kettenis <kettenis@gnu.org>
9370
9371 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
9372 architecture when registering sparcnbsd_core_osabi_sniffer.
9373 Adjust comment.
9374
9375 2004-04-18 Mark Kettenis <kettenis@gnu.org>
9376
9377 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
9378 return value.
9379
9380 Based on a patch from Brian Ford <ford@vss.fsi.com>:
9381 * i386-tdep.c: Correct register numbering scheme comments
9382 throughout.
9383 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
9384 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
9385 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
9386 (i386_gdb_arch_init): Likewise.
9387
9388 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
9389 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
9390 ppcnbsd-tdep.o.
9391
9392 * m68k-tdep.h: Tweak comments.
9393 * m68k-tdep.c: Tweak comment.
9394
9395 2004-04-17 Randolph Chung <tausq@debian.org>
9396
9397 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
9398 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
9399 (hppa_hpux_som_init_abi): Set is_elf to 0.
9400 (hppa_hpux_elf_init_abi): Set is_elf to 1.
9401 * hppa-tdep.c (low_text_segment_address): Remove global.
9402 (record_text_segment_lowaddr): Pass in low address as parameter. Use
9403 section offset to calculate segment address.
9404 (internalize_unwinds): Define low_text_segment_address as local and
9405 pass to record_text_segment_lowaddr for ELF targets.
9406 (hppa_gdbarch_init): Zero fill tdep structure.
9407 (hppa_dump_tdep): Print tdep structure.
9408 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
9409
9410 2004-04-17 Randolph Chung <tausq@debian.org>
9411
9412 * hppa-tdep.c (hppa_pseudo_register_read): Define.
9413 (hppa_gdbarch_init): Set pseudo_register_read.
9414 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
9415 * regcache.c (supply_register): Remove check for
9416 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
9417
9418 2004-04-17 Randolph Chung <tausq@debian.org>
9419
9420 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
9421 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
9422 (hpread_adjust_stack_address): Move to hpread.c.
9423 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
9424 obj_private_struct): Move from tm-hppa.h.
9425 * hpread.c (hppa-tdep.h): Include.
9426 (hpread_adjust_stack_address): Move from hppa-tdep.c.
9427 (hpread_read_function_type, hpread_read_doc_function_type)
9428 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
9429 directly.
9430 * pa64solib.c (hppa-tdep.h): Include.
9431 * somsolib.c (hppa-tdep.h): Include.
9432 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
9433 inferior_status): Remove unused forward declarations.
9434 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
9435 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
9436 obj_private_struct): Move to hppa-tdep.h.
9437 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
9438
9439 2004-04-17 Randolph Chung <tausq@debian.org>
9440
9441 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
9442 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
9443 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
9444 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
9445 Remove forward declaration and make static.
9446 (hppa_reg_struct_has_addr): Remove.
9447
9448 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9449
9450 * observer.sh: Move comments in sed command to first column.
9451
9452 2004-04-16 Jason Molenda (jmolenda@apple.com)
9453
9454 * frame.c: Minor typeo corrections in comments.
9455
9456 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9457
9458 * observer.c (observer_test_first_notification_function): Update
9459 function profile.
9460 (observer_test_second_notification_function): Likewise.
9461 (observer_test_third_notification_function): Likewise.
9462
9463 2004-04-16 Mark Kettenis <kettenis@gnu.org>
9464
9465 From Brian Ford <ford@vss.fsi.com>:
9466 * i386-tdep.c (i386_coff_init_abi): New function.
9467 * i386-tdep.h (i386_coff_init_abi): New prototype.
9468 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
9469 register number translation functions for DWARF and DWARF 2.
9470
9471 2004-04-16 Joel Brobecker <brobecker@gnat.com>
9472
9473 * dwarf2read.c: Back out my previous change, it was incorrect.
9474
9475 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
9476
9477 * dwarf2read.c: Include "hashtab.h".
9478 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
9479 has_namespace_info.
9480 (struct partial_die_info): Add comments. Use bitfields to reduce
9481 memory footprint. Add scope, scope_set, has_specification,
9482 spec_offset, die_parent, die_child, and die_sibling.
9483 (peek_die_abbrev): Add prototype.
9484 (partial_read_comp_unit_head): New function, broken out from
9485 dwarf2_build_psymtabs_hard.
9486 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
9487 Use partial_read_comp_unit_head. Initialize the CU and
9488 comp_unit_obstack. Update calls to read_partial_die and
9489 scan_partial_symbols. Use free_stack_comp_unit and
9490 load_partial_dies.
9491 (scan_partial_symbols): Change PDI to a pointer. Use the child and
9492 sibling pointers to walk partial DIEs. Call fixup_partial_die.
9493 Update calls to helper functions. Remove NAMESPACE argument.
9494 Update comments.
9495 (partial_die_parent_scope, partial_die_full_name): New functions.
9496 (add_partial_symbol): Remove namespace argument. Update call to
9497 pdi_needs_namespace. Use partial_die_full_name. Handle
9498 DW_TAG_namespace. Check has_namespace_info flag.
9499 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
9500 tag. Handle namespaces.
9501 (add_partial_namespace, add_partial_enumeration): Simplify.
9502 (guess_structure_name): New function, derived from
9503 add_partial_structure.
9504 (add_partial_structure): Remove.
9505 (determine_class_name): Update comment.
9506 (dwarf2_read_abbrevs): Set has_namespace_info flag.
9507 (is_type_tag_for_partial, load_partial_dies): New functions.
9508 (read_partial_die): Pass abbrev and abbrev_len as arguments.
9509 Record specifications instead of following them immediately.
9510 (find_partial_die_in_comp_unit, find_partial_die)
9511 (fixup_partial_die, free_stack_comp_unit)
9512 (hashtab_obstack_allocate, dummy_obstack_deallocate)
9513 (partial_die_hash, partial_die_eq): New functions.
9514 * Makefile.in (hashtab_h): Define.
9515 (dwarf2read.o): Update dependencies.
9516 (observer_inc, observer_h): Move to the correct section.
9517
9518 2004-04-15 Joel Brobecker <brobecker@gnat.com>
9519
9520 * dwarf2read.c (dwarf2_attribute_true_p): New function.
9521 (die_is_declaration): Use the function above. Add comment.
9522
9523 2004-04-15 Joel Brobecker <brobecker@gnat.com>
9524
9525 * dwarf2read.c (read_structure_scope): Identify stub types
9526 using die_is_declaration() only.
9527
9528 2004-04-15 Roland McGrath <roland@redhat.com>
9529
9530 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
9531 argument instead of NAME.
9532 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
9533 in call to symbol_file_add_with_addrs_or_offsets.
9534 (build_addr_info): New function, helper for ...
9535 (symbol_file_add_from_memory): New function.
9536 (add_symbol_file_from_memory_command): New function using that.
9537 (_initialize_symfile): Register it for add-symbol-file-from-memory.
9538 (pre_add_symbol_hook): Add const to argument type.
9539 * symfile.h (symbol_file_add_from_memory): Declare it.
9540
9541 2004-04-15 Mark Kettenis <kettenis@gnu.org>
9542
9543 * NEWS (New native configurations): Mention OpenBSD/vax.
9544 * configure.host: Add vax-*-openbsd*.
9545 * config/vax/obsd.mh: New file.
9546 * config/vax/nm-obsd.h: New file.
9547
9548 * vax-tdep.c: Include "regset.h".
9549 (vax_supply_gregset): New function.
9550 (vax_gregset): New variable.
9551 (vax_regset_from_core_section): New function.
9552 (vax_gdbarch_init): Set regset_from_core_section.
9553 * Makefile.in (vax-tdep.o): Update dependencies.
9554
9555 2004-04-15 Andrew Cagney <cagney@redhat.com>
9556
9557 * observer.c (normal_stop_subject, observer_notify_normal_stop)
9558 (observer_normal_stop_notification_stub)
9559 (observer_attach_normal_stop, observer_detach_normal_stop):
9560 Delete, replaced by #include "observer.inc".
9561 * infrun.c (normal_stop): Pass "stop_bpstat" to
9562 observer_notify_normal_stop.
9563 * Makefile.in (observer_inc): Define.
9564 (observer.o): Update dependencies.
9565 (observer.h, observer.inc): New rules.
9566 * observer.h: Delete file.
9567 * observer.sh: New file.
9568
9569 2004-04-15 Mark Kettenis <kettenis@gnu.org>
9570
9571 * vax-tdep.c (vax_frame_cache): Fix typo.
9572
9573 2004-04-14 Mark Kettenis <kettenis@gnu.org>
9574
9575 * NEWS (New native configurations): Mention NetBSD/vax.
9576 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
9577 * config/vax/nbsdelf.mh: New file.
9578 * config/vax/nbsdaout.mh: New file.
9579 * config/vax/nm-nbsd.h: New file.
9580 * config/vax/nm-nbsdaout.h: New file.
9581
9582 * vaxnbsd-tdep.c: New file.
9583 * Makefile.in (vaxnbsd-tdep.o): New dependency.
9584 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
9585 * config/vax/nbsd.mt: New file.
9586 * config/vax/tm-nbsd.h: New file.
9587
9588 * Makefile.in (vaxbsd-nat.o): New dependency.
9589
9590 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
9591 * vax-tdep.c (vax_store_arguments): Remove struct_return and
9592 struct_addr arguments. Don't push return value address.
9593 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
9594 arguments to vax_store_arguments. Store return value address in
9595 R1.
9596 (vax_store_struct_return, vax_extract_return_value)
9597 (vax_store_return_value): Remove functions.
9598 (vax_return_value): New function.
9599 (vax_gdbarch_init): Set return value. Don't set
9600 deprecated_store_struct_return, deprecated_extract_struct_return
9601 and deprecated_store_return_value.
9602
9603 2004-04-14 Andreas Schwab <schwab@suse.de>
9604
9605 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
9606 value buffer.
9607 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
9608
9609 2004-04-14 Mark Kettenis <kettenis@gnu.org>
9610
9611 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
9612 (vax_unwind_dummy_id): New functions.
9613 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
9614 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
9615 variables.
9616 (vax_fix_call_dummy): Remove function.
9617 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
9618 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
9619 call_dummy_location, deprecated_call_dummy_words,
9620 deprecated_sizeof_call_dummy_words,
9621 deprecated_call_dummy_breakpoint_offset,
9622 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
9623 and deprecated_dummy_write_sp.
9624
9625 2004-04-13 David Carlton <carlton@kealia.com>
9626
9627 * MAINTAINERS: Move myself to "paper trail" section.
9628
9629 2004-04-12 Mark Kettenis <kettenis@gnu.org>
9630
9631 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
9632 "trad-frame.h".
9633 (vax_frame_init_saved_regs): Remove function.
9634 (vax_sigtramp_saved_pc): Remove function.
9635 (vax_frame_saved_pc): Remove function.
9636 (vax_frame_args_address): Remove function.
9637 (vax_frame_num_args): Rewrite.
9638 (vax_frame_chain): Remove function.
9639 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
9640 VAX_FP_REGNUM.
9641 (vax_pop_frame): Likewise.
9642 (vax_saved_pc_after_call): Remove function.
9643 (struct vax_frame_cache): New structure.
9644 (vax_frame_cache): New function.
9645 (vax_frame_this_id): New function.
9646 (vax_frame_prev_register): New function.
9647 (vax_frame_unwind): New variable.
9648 (vax_frame_sniffer): New function.
9649 (vax_frame_base_address): New function.
9650 (vax_frame_args_address): New function.
9651 (vax_frame_base): New variable.
9652 (vax_unwind_pc): New function.
9653 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
9654 deprecated_fp_regnum, deprecated_saved_pc_after_call,
9655 deprecated_frame_chain, deprecated_frame_saved_pc,
9656 deprecated_frame_args_address and
9657 deprecated_frame_init_saved_regs.
9658 * Makefile.in (vax-tdep.o): Update dependencies.
9659
9660 * vaxbsd-nat.c: New file.
9661
9662 * vax-tdep.h: Update copyright year. Adjust comments.
9663 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
9664 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
9665 (vax_regnum): New enum. Replacing...
9666 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
9667 (VAX_PS_REGNUM): ... these removed macros.
9668 * vax-tdep.c (vax_register_name): Remove prototype.
9669 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
9670 (vax_register_byte, vax_register_raw_size,
9671 vax_register_virtual_size, vax_register_virtual_type): Remove
9672 functions.
9673 (vax_register_type): New function.
9674 (vax_breakpoint_from_pc): Reorganize.
9675 (vax_gdbarch_init): Set register_type. Don't set
9676 deprecated_register_size, deprecated_register_bytes,
9677 deprecated_register_byte, deprecated_register_raw_size,
9678 deprecated_max_register_raw_size,
9679 deprecated_register_virtual_size,
9680 deprecated_max_register_virtual_size and
9681 deprecated_register_virtual_type. Add comment on stack direction.
9682
9683 2004-04-11 Mark Kettenis <kettenis@gnu.org>
9684
9685 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
9686 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
9687 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
9688
9689 2004-04-10 Randolph Chung <tausq@debian.org>
9690
9691 * MAINTAINERS (write after approval): Add myself.
9692
9693 2004-04-07 Randolph Chung <tausq@debian.org>
9694
9695 * hppa-tdep.c (hppa_inner_than): Remove.
9696 (is_pa_2): Remove unused static variable.
9697 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
9698
9699 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
9700
9701 * language.h (language_defn): Add new la_post_parser field.
9702 * parser-defs.h (null_post_parser): New declaration (default for
9703 la_post_parser).
9704
9705 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
9706 insert call to that function.
9707 (parse_exp_in_context): New function, including code formerly in
9708 parse_exp_1. Calls language-dependent post-parser after
9709 prefixification.
9710 (parse_expression_in_context): New exported function.
9711 (null_post_parser): New definition.
9712 * expression.h (parse_expression_in_context): Add declaration.
9713
9714 * p-lang.c (pascal_language_defn): Add trivial post-parser.
9715 * c-lang.c (c_language_defn): Ditto.
9716 (cplus_language_defn): Ditto.
9717 (asm_language_defn): Ditto.
9718 (minimal_language_defn): Ditto.
9719 * f-lang.c (f_language_defn): Ditto.
9720 * jv-lang.c (java_language_defn): Ditto.
9721 * language.c (unknown_language_defn): Ditto.
9722 (auto_language_defn): Ditto.
9723 (local_language_defn): Ditto.
9724 * m2-lang.c (m2_language_defn): Ditto.
9725 * scm-lang.c (scm_language_defn): Ditto.
9726 * obj-lang.c (objc_language_defn): Ditto.
9727
9728 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9729
9730 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
9731 (amd64nbsd_mcontext_addr): New function.
9732 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
9733 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
9734 with amd64nbsd_r_reg_offset, instead of building it on the fly.
9735
9736 * corelow.c (core_xfer_partial): Fix coding standards violation.
9737 Add support for TARGET_OBJECT_WCOOKIE.
9738
9739 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
9740 deprecated_pc_in_sigtramp.
9741 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
9742 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
9743 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
9744 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9745 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
9746 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9747 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
9748
9749 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
9750 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
9751 Fix typo.
9752
9753 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
9754 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
9755 (amd64_collect_fxsave): Likewise.
9756
9757 * i386-sol2-tdep.c: Include "gdb_string.h".
9758 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
9759 name.
9760 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9761
9762 2004-04-10 Mark Kettenis <kettenis@gnu.org>
9763
9764 * i386-sol2-tdep.c: Include "solib-svr4.h".
9765 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9766 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
9767 * config/i386/tm-i386sol2.h: Include :solib.h".
9768 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
9769 solib-svr4.o and solib-legacy.o.
9770 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
9771 solib-svr4.o.
9772
9773 2004-04-09 Mark Kettenis <kettenis@gnu.org>
9774
9775 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
9776 whether a register is supplied by PTRACE_GETFPREGS.
9777 (store_inferior_registers): Likewise.
9778 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
9779 whether a register is supplied by PT_GETFPREGS.
9780 (store_inferior_registers): Likewise.
9781
9782 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
9783 * config/i386/linux64.mt (TDEPFILES): Likewise.
9784
9785 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
9786
9787 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
9788 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9789 the program counter is in the range specified by `struct
9790 gdbarch_tdep'.
9791 * amd64-linux-tdep.c: Include "symtab.h".
9792 (amd64_linux_pc_in_sigtramp): Remove function.
9793 (amd64_linux_sigtramp_p): New function.
9794 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9795 deprecated_pc_in_sigtramp.
9796 * amd64nbsd-tdep.c: Include "symtab.h".
9797 (amd64nbsd_sigtramp_p): New function.
9798 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9799 deprecated_pc_in_sigtramp.
9800 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
9801 few comments.
9802 (amd64obsd_pc_in_sigtramp): Remove function.
9803 (amd64obsd_sigtramp_p): New function.
9804 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
9805 deprecated_pc_in_sigtramp.
9806 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
9807 (i386bsd_pc_ins_sigtramp): Remove prototype.
9808 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
9809 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
9810 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
9811 the program counter is in the range specified by `struct
9812 gdbarch_tdep'.
9813 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
9814 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
9815 (i386_go32_pc_in_sigtramp): Remove function.
9816 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
9817 Initialize TDEP->sigtramp_p.
9818 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
9819 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
9820 deprecated_pc_in_sigtramp.
9821 * i386-linux-tdep.c: Adjust comments.
9822 (i386_linux_pc_in_sigtramp): Remove function.
9823 (i386_linux_sigtramp_p): New function.
9824 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
9825 deprecated_pc_in_sigtramp.
9826 * i386-nto-tdep.c: Update copyright year.
9827 (i386nto_pc_in_sigtramp): Remove function.
9828 (i386nto_sigtramp_p): New function.
9829 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
9830 SP_REGNUM.
9831 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
9832 deprecated_pc_in_sigtramp.
9833 * i386-sol2-tdep.c: Update copyright year.
9834 (i386_sol2_pc_in_sigtramp): Remove function.
9835 (i386_sol2_sigtramp_p): New function.
9836 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
9837 deprecated_pc_in_sigtramp.
9838 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
9839 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
9840 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9841 deprecated_sigtramp_start and deprecated_sigtramp_end.
9842 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
9843 (i386nbsd_pc_in_sigtramp): Remove function.
9844 (i386nbsd_sigtramp_p): New function.
9845 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9846 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9847 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
9848 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
9849 (i386obsd_pc_in_sigtramp): Remove function.
9850 (i386obsd_sigtramp_p): New function.
9851 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
9852 functions.
9853 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
9854 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
9855 TDEP->sigtramp_p.
9856 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
9857 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
9858 dependencies.
9859
9860 * config/i386/i386aout.mt: Remove file.
9861
9862 * configure.tgt: Remove i[34567]86-*-go32*,
9863 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
9864 and i[34567]86-*-isc*. Set gdb_target to i386 for
9865 i[34567]86-*-netware* and i[34567]86-*-*.
9866 * config/i386/i386.mt: New file.
9867 * config/i386/embed.mt: Remove file.
9868 * config/i386/go32.mt: Remove file.
9869 * config/i386/i386nw.mt: Remove file.
9870 * config/i386/i386v.mt: Remove file.
9871 * config/i386/tm-go32.h: Remove file.
9872
9873 * tui/tui-hooks.c: Include "readline/readline.h" after
9874 "gdb_curses.h" instead of before.
9875 * tui/tui-io.c: Likewise.
9876
9877 * tui/tui.c: Fix typo in comment.
9878
9879 * sparc64-tdep.c (sparc_address_from_register): Remove function.
9880
9881 2004-04-08 Andrew Cagney <cagney@redhat.com>
9882
9883 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
9884 (deprecated_exception_support_initialized): Declare.
9885 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
9886 (initialize_hp_cxx_exception_support)
9887 (child_enable_exception_callback): Update.
9888 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
9889 (deprecated_exception_support_initialized): Rename
9890 deprecated_exception_catchpoints_are_fragile and
9891 deprecated_exception_support_initialized.
9892 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
9893
9894 * symtab.c (deprecated_hp_som_som_object_present): Rename
9895 hp_som_som_object_present.
9896 * symtab.h (deprecated_hp_som_som_object_present): Declare.
9897 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
9898 Update. Delete extern declaration.
9899 * valops.c (hp_som_som_object_present): Ditto.
9900 * parse.c (deprecated_hp_som_som_object_present)
9901 (parse_nested_classes_for_hpacc): Ditto.
9902 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
9903 * hppa-hpux-tdep.c (hp_som_som_object_present)
9904 (initialize_hp_cxx_exception_support): Ditto.
9905 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
9906 * cp-valprint.c (hp_som_som_object_present)
9907 (cp_print_class_method): Ditto.
9908 * c-typeprint.c (hp_som_som_object_present):
9909 (c_type_print_base): Ditto.
9910 * c-exp.y (hp_som_som_object_present): Ditto.
9911
9912 2004-04-08 Andrew Cagney <cagney@redhat.com>
9913
9914 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
9915 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
9916 (frame_unwind_find_by_frame): Re-implement the unwind code so
9917 that it can both prepend and append sniffers. Replace
9918 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
9919 * tramp-frame.c (tramp_frame_append): Use
9920 frame_unwind_prepend_unwinder.
9921 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
9922 frame_unwind_register_unwinder.
9923 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
9924 tramp_frame_append.
9925 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
9926 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
9927 (mips_linux_init_abi): Update.
9928
9929 2004-04-08 Kevin Buettner <kevinb@redhat.com>
9930
9931 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
9932 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
9933 file support.
9934
9935 2004-04-07 Kevin Buettner <kevinb@redhat.com>
9936
9937 * ia64-tdep.c (elf.h): Don't include.
9938 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
9939
9940 2004-04-07 Jason Molenda (jmolenda@apple.com)
9941
9942 * frame.h: Typeo corrections in comments.
9943
9944 2004-04-07 Jim Blandy <jimb@redhat.com>
9945
9946 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
9947 %esp and %ebp
9948
9949 2004-04-07 Mark Kettenis <kettenis@gnu.org>
9950
9951 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
9952 * config/sparc/linux64.mt (TDEPFILES): Likewise.
9953 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9954 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
9955 and solib-legacy.o.
9956 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
9957 solib-svr4.o.
9958 * config/sparc/tm-sol2.h: Update copyright year. Include
9959 "solib.h".
9960
9961 * sparc-sol2-tdep.c: Update copyright year. Include
9962 "solib-svr4.h".
9963 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9964 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
9965 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
9966 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
9967 dependencies.
9968
9969 2004-04-06 Andrew Cagney <cagney@redhat.com>
9970
9971 * infttrace.c: Include "infttrace.h".
9972 * infttrace.h: Include "target.h".
9973 * Makefile.in (infttrace_h): Update.
9974 (infttrace.o): Update.
9975
9976 2004-04-06 Andrew Cagney <cagney@redhat.com>
9977
9978 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
9979 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
9980 move extern declarations from here ...
9981 * infttrace.h: ... to here.
9982 * Makefile.in (hppah-nat.o): Update dependencies.
9983
9984 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
9985 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
9986 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
9987 (hppa_breakpoint_from_pc): Delete.
9988
9989 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
9990
9991 2004-04-05 Andrew Cagney <cagney@redhat.com>
9992
9993 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
9994 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
9995 <sys/file.h>.
9996
9997 2004-04-06 Randolph Chung <tausq@debian.org>
9998
9999 Committed by Andrew Cagney (mechanical change).
10000 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
10001 exception_catchpoints_are_fragile, find_stub_with_shl_get,
10002 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
10003 child_enable_exception_callback, current_ex_event,
10004 null_symtab_and_line, child_get_current_exception_event,
10005 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
10006 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
10007 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
10008 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
10009 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
10010 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
10011 Move hpux-specific definitions ...
10012 * hppa-hpux-tdep.c: ... to here.
10013
10014 2004-04-05 Andrew Cagney <cagney@redhat.com>
10015
10016 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
10017 skip_prologue_using_sal.
10018
10019 2004-04-05 Andrew Cagney <cagney@redhat.com>
10020
10021 * config/i386/tm-i386.h: Delete file.
10022 * config/i386/tm-vxworks.h: Update copyright, do not include
10023 "tm-i386.h".
10024 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
10025 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
10026 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
10027 * config/i386/ncr3000.mt (TM_FILE): Delete.
10028 * config/i386/interix.mt (TM_FILE): Delete.
10029 * config/i386/i386v.mt (TM_FILE): Delete.
10030 * config/i386/i386nw.mt (TM_FILE): Delete.
10031 * config/i386/i386gnu.mt (TM_FILE): Delete.
10032 * config/i386/i386aout.mt (TM_FILE): Delete.
10033 * config/i386/embed.mt (TM_FILE): Delete.
10034
10035 2004-04-05 Kevin Buettner <kevinb@redhat.com>
10036
10037 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
10038 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
10039 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
10040 (accg7_regnum): New constants.
10041 (last_spr_regnum, last_pseudo_regnum): Update.
10042 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
10043 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
10044 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
10045 for accg registers.
10046 (frv_register_sim_regno): Update spr_map[].
10047
10048 2004-04-04 Andrew Cagney <cagney@redhat.com>
10049
10050 * config/mips/xm-riscos.h: Delete.
10051 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
10052 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
10053 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
10054 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
10055 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
10056 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
10057 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
10058 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
10059 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
10060 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
10061 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
10062 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
10063 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
10064 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
10065 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
10066 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
10067 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
10068 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
10069 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
10070 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
10071 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
10072 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
10073 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
10074 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
10075 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
10076 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
10077
10078 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
10079 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
10080 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
10081 * configure.host: Remove m680[01]0-sun-sunos3*,
10082 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
10083 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
10084 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
10085 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
10086 mips-*-riscos*.
10087 * NEWS: Mention removed systems.
10088
10089 2004-04-04 Andrew Cagney <cagney@redhat.com>
10090
10091 GDB 6.1 release created from 6.1 branch.
10092
10093 2004-04-04 Andrew Cagney <cagney@redhat.com>
10094
10095 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
10096 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
10097 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
10098
10099 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
10100 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
10101 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
10102
10103 2004-04-03 Jim Blandy <jimb@redhat.com>
10104
10105 * MAINTAINERS: Chris Faylor has changed employers; add him to
10106 "paper trail" section, and update his E-mail address.
10107
10108 2004-04-03 Andrew Cagney <cagney@redhat.com>
10109
10110 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
10111 generic dummy frames.
10112 * dummy-frame.c: Update copyright.
10113 (dummy_frame_sniffer): Delete check for generic dummy frames.
10114
10115 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
10116 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
10117 (REG_PARM_STACK_SPACE): Delete.
10118 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
10119 Inline reference to REG_PARM_STACK_SPACE.
10120
10121 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
10122 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
10123 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
10124 (FRAME_BASE_BEFORE_SIGTRAMP)
10125 (hppa32_hpux_frame_base_before_sigtramp)
10126 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
10127 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
10128 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
10129 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
10130 (FRAME_BASE_BEFORE_SIGTRAMP)
10131 (hppa64_hpux_frame_base_before_sigtramp)
10132 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
10133
10134 2004-04-03 Andrew Cagney <cagney@redhat.com>
10135
10136 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
10137
10138 2004-04-02 Andrew Cagney <cagney@redhat.com>
10139
10140 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
10141 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
10142 * dummy-frame.h: Delete out-of-date comments.
10143 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
10144 * gdbarch.h, gdbarch.c: Re-generate.
10145
10146 2004-04-02 Joel Brobecker <brobecker@gnat.com>
10147
10148 Committed by Andrew Cagney <cagney@redhat.com>.
10149 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
10150 into account an instruction saving a register if we have already
10151 seen an earlier instruction saving that same register.
10152
10153 2004-04-02 Andrew Cagney <cagney@redhat.com>
10154
10155 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
10156 * gdbarch.h, gdbarch.c: Re-generate.
10157 * frame.c (legacy_get_prev_frame): Delete references to
10158 DEPRECATED_INIT_FRAME_PC_FIRST.
10159
10160 * infrun.c (pc_in_sigtramp): Delete function.
10161 (check_sigtramp2): Inline call to pc_in_sigtramp, use
10162 get_frame_type.
10163
10164 2004-04-02 Andrew Cagney <cagney@redhat.com>
10165
10166 * infrun.c (handle_step_into_function): Delete code conditional on
10167 legacy_frame_p.
10168 (handle_inferior_event, step_over_function): Ditto.
10169
10170 2004-04-02 Andrew Cagney <cagney@redhat.com>
10171
10172 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
10173 "previous frame inner to this frame" test.
10174
10175 2004-04-02 Andrew Cagney <cagney@redhat.com>
10176
10177 * frame.c (safe_frame_unwind_memory): New function.
10178 * frame.h (safe_frame_unwind_memory): Declare. Update description
10179 of /safe_/ methods.
10180 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
10181 "next_frame". Use safe_frame_unwind_memory.
10182 (tramp_frame_sniffer): Update call to tramp_frame_start.
10183
10184 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
10185
10186 * dwarf2read.c (dwarf2_objfile_data_key): New.
10187 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
10188 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
10189 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
10190 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
10191 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
10192 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
10193 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
10194 Remove variables.
10195 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
10196 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
10197 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
10198 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
10199 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
10200 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
10201 Remove macros.
10202 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
10203 data.
10204 (dwarf2_locate_sections, dwarf2_build_psymtabs)
10205 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
10206 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
10207 (read_partial_die, read_full_die, read_indirect_string)
10208 (dwarf_decode_line_header, dwarf_decode_macros)
10209 (dwarf2_symbol_mark_computed): Remove use of removed macros.
10210 Update uses of removed variables.
10211 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
10212 of removed macros.
10213 (_initialize_dwarf2_read): New function.
10214 * symfile.h (dwarf2_has_info): Update prototype.
10215 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
10216 * elfread.c (elf_symfile_read): Likewise.
10217
10218 2004-04-01 Jim Blandy <jimb@redhat.com>
10219
10220 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
10221 function for register numbers on all the rs6000-derived targets.
10222 (rs6000_gdbarch_init): Don't register a separate
10223 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
10224 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
10225 variants.
10226
10227 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
10228 numbering.
10229
10230 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
10231
10232 * valarith.c: Update copyright notice.
10233 (value_add): Handle range types.
10234 (value_sub): Ditto.
10235 (value_equal): Ditto.
10236 (value_less): Ditto.
10237 (value_neg): Ditto.
10238 (value_complement): Ditto.
10239 (value_binop): Simplify slightly by using is_integral_type and
10240 eliminiating unnecessary COERCE_ENUMs.
10241
10242 2004-03-31 Andrew Cagney <cagney@redhat.com>
10243
10244 * frame.h (frame_unwind_id): Declare.
10245 * frame.c (frame_unwind_id): New function.
10246 (get_prev_frame_1): New function.
10247 (frame_debug_got_null_frame): New function.
10248 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
10249 code proper to prev_frame, update description.
10250 * infrun.c (step_over_function): Use frame_unwind_id.
10251
10252 2004-04-31 J. Brobecker <brobecker@gnat.com>
10253
10254 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
10255 (hppa64_push_dummy_call): Likewise.
10256
10257 2004-03-30 Jim Blandy <jimb@redhat.com>
10258
10259 From Ulrich Weigand:
10260 * utils.c (query): Do not use a va_list variable multiple times.
10261
10262 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
10263
10264 * Makefile.in (linux_nat_h): Update dependencies.
10265 * configure.in: Check for <gnu/libc-version.h>.
10266 * configure: Regenerate.
10267 * config.in: Regenerate.
10268 * linux-nat.h: Include "target.h". Add waitstatus field to
10269 struct lwp_info.
10270 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
10271 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
10272 to.
10273 (lin_lwp_handle_extended): New function. Handle clone events.
10274 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
10275 thread exit events.
10276 (child_wait): Handle clone events.
10277 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
10278 * linux-nat.c (linux_enable_event_reporting): Turn on
10279 PTRACE_O_TRACECLONE.
10280 (linux_handle_extended_wait): Handle clone events.
10281 * thread-db.c: Include <gnu/libc-version.h>.
10282 (struct private_thread_info): Add dying flag.
10283 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
10284 higher.
10285 (attach_thread): Update comments. Handle dying threads.
10286 (detach_thread): Set the dying flag.
10287 (check_event): Always call attach_thread.
10288
10289 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
10290
10291 * mips-tdep.c (mips_pdr_data): New.
10292 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
10293 (_initialize_mips_tdep): Initialize mips_pdr_data.
10294
10295 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
10296
10297 * minsyms.c (install_minimal_symbols): Move dropping leading
10298 char from linkage name from here...
10299 (prim_record_minimal_symbol_and_info): ...to here. Simplify
10300 test for "__gnu_compiled*" symbols.
10301
10302 2004-03-28 Jim Blandy <jimb@redhat.com>
10303
10304 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
10305 registers to temp register r0 and byte stores as prologue
10306 instructions.
10307
10308 2004-03-28 Andrew Cagney <cagney@redhat.com>
10309
10310 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
10311 arm*-*-*.
10312
10313 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
10314
10315 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
10316 and switch the layout to force a display of register window.
10317
10318 2004-02-26 J. Brobecker <brobecker@gnat.com>
10319
10320 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
10321 of the INTEGER class.
10322
10323 2004-03-26 Jim Blandy <jimb@redhat.com>
10324
10325 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
10326 bytes long on PPC GNU/Linux.
10327
10328 2004-03-26 David Carlton <carlton@kealia.com>
10329
10330 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
10331
10332 2004-03-25 Andrew Cagney <cagney@redhat.com>
10333
10334 * PROBLEMS: Add general section titles, remove references to
10335 specific releases.
10336
10337 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
10338
10339 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
10340 INT_REGISTER_SIZE.
10341 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
10342 FP_REGISTER_VIRTUAL_SIZE.
10343 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
10344 of DEPRECATED_REGISTER_RAW_SIZE.
10345 (arm_register_type): Add gdbarch argument.
10346 (arm_register_raw_size, arm_register_virtual_size): Delete.
10347 (arm_register_byte, arm_extract_return_value)
10348 (arm_store_return_value, arm_get_longjmp_target): Update references
10349 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
10350 (arm_gdbarch_init): Likewise. Don't set
10351 deprecated_register_raw_size, deprecated_register_virtual_size,
10352 deprecated_max_register_raw_size,
10353 deprecated_max_register_virtual_size, or
10354 deprecated_max_register_virtual_type. Do set register_type.
10355 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
10356 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
10357 (FP_REGISTER_VIRTUAL_SIZE): Delete.
10358 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
10359 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
10360 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
10361 INT_REGISTER_SIZE.
10362 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
10363 (remote_rdp_store_register): Likewise.
10364
10365 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
10366
10367 * Makefile.in (mips-linux-tdep.o): Update dependencies.
10368 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
10369 to after osabi initialization.
10370 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
10371 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
10372 functions.
10373 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
10374 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
10375 variables.
10376 (mips_linux_init_abi): Append signal trampoline unwinders.
10377
10378 2004-03-24 Andrew Cagney <cagney@redhat.com>
10379
10380 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
10381 * tramp-frame.c: Include "gdb_assert.h".
10382 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
10383 correct sizeof.
10384 (tramp_frame_append): Validate the tramp frame's instructions.
10385 * Makefile.in (tramp-frame.o): Update dependencies.
10386
10387 2004-03-23 Andrew Cagney <cagney@redhat.com>
10388
10389 * trad-frame.h (trad_frame_set_reg_addr): Declare.
10390
10391 2004-03-23 Andrew Cagney <cagney@redhat.com>
10392
10393 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
10394 Nasser as past testsuite/lib/ (and other) maintainers.
10395
10396 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
10397
10398 * infcmd.c (attach_command): Reread symbols if we already have
10399 an exec file.
10400
10401 2004-03-23 Andrew Cagney <cagney@redhat.com>
10402
10403 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
10404
10405 2004-03-23 Andrew Cagney <cagney@redhat.com>
10406
10407 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
10408 * gdbarch.h, gdbarch.c: Re-generate.
10409 * i386obsd-tdep.c (i386obsd_init_abi): Update.
10410 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10411 * i386bsd-tdep.c (i386bsd_init_abi): Update.
10412 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
10413 (DEPRECATED_SIGTRAMP_START): Update.
10414 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
10415 (DEPRECATED_SIGTRAMP_START): Update.
10416 * blockframe.c (find_pc_sect_partial_function): Update.
10417 * arch-utils.c (legacy_pc_in_sigtramp): Update.
10418
10419 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
10420
10421 * remote.c (remote_open_1): Reopen the exec file and reread symbols
10422 if necessary.
10423
10424 2004-03-23 Andrew Cagney <cagney@redhat.com>
10425
10426 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
10427 predicate, deprecate.
10428 * gdbarch.h, gdbarch.c: Re-generate.
10429 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
10430 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
10431 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
10432 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
10433 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
10434 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
10435 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
10436 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
10437 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
10438 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
10439 * blockframe.c (find_pc_partial_function): Update.
10440 * breakpoint.c (bpstat_what): Update.
10441 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
10442 * frv-linux-tdep.c (frv_linux_init_abi): Update.
10443 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
10444 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
10445 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10446 * i386-linux-tdep.c (i386_linux_init_abi): Update.
10447 * i386-nto-tdep.c (i386nto_init_abi): Update.
10448 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
10449 * i386-tdep.c (i386_sigtramp_frame_sniffer)
10450 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
10451 * i386bsd-tdep.c (i386bsd_init_abi): Update.
10452 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
10453 * i386obsd-tdep.c (i386obsd_init_abi): Update.
10454 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
10455 * infrun.c (pc_in_sigtramp): Update.
10456 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
10457 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10458 * mips-tdep.c (mips_gdbarch_init): Update.
10459 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
10460 * ppc-linux-tdep.c: Update comment.
10461 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
10462 * shnbsd-tdep.c (shnbsd_init_abi): Update.
10463 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
10464 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
10465 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
10466 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
10467 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
10468 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
10469 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
10470 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
10471
10472 2004-03-23 Andrew Cagney <cagney@redhat.com>
10473
10474 * tramp-frame.h, tramp-frame.h: New files.
10475 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
10476 Update rules to include "tramp-frame.h" and "tramp-frame.c".
10477
10478 * Makefile.in: Update all dependencies.
10479
10480 2004-03-23 Andrew Cagney <cagney@redhat.com>
10481
10482 * Makefile.in (trad_frame_h): Add $(frame_h).
10483 * trad-frame.h: Update copyright. Include "frame.h".
10484 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
10485 (trad_frame_set_id, trad_frame_get_id): Declare.
10486 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
10487 * trad-frame.c: Update copyright.
10488 (struct trad_frame_cache): Define.
10489 (trad_frame_cache_zalloc): New function.
10490 (trad_frame_set_id, trad_frame_get_id): New functions.
10491 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
10492
10493 2004-03-22 Andrew Cagney <cagney@redhat.com>
10494
10495 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
10496 s390_pltstub_unwind_cache.
10497 (s390_stub_frame_unwind_cache): Rename
10498 s390_pltstub_frame_unwind_cache.
10499 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
10500 (s390_stub_frame_prev_register): Rename
10501 s390_pltstub_frame_prev_register.
10502 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
10503 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
10504
10505 From Ulrich Weigand:
10506 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
10507 pointer calls like PLT calls.
10508
10509 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
10510
10511 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
10512 PC rather than the partial function start address. Use the start
10513 address to sanity check the found PDR.
10514
10515 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
10516
10517 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
10518 linux_handle_extended_wait.
10519
10520 2004-03-22 Andrew Cagney <cagney@redhat.com>
10521
10522 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
10523 function.
10524
10525 * frame.h (generic_pop_current_frame): Delete declaration.
10526 (deprecate_pop_dummy_frame): Deprecate
10527 generic_pop_dummy_frame.
10528 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
10529 (generic_pop_current_frame): Delete function.
10530 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
10531 generic_pop_current_frame.
10532 * v850-tdep.c (v850_pop_frame): Update.
10533 * mcore-tdep.c (mcore_pop_frame): Update.
10534 * sh64-tdep.c (sh64_pop_frame): Update.
10535 * h8300-tdep.c (h8300_pop_frame): Update.
10536
10537 2004-03-22 Andrew Cagney <cagney@redhat.com>
10538
10539 * frame.h (deprecated_pc_in_call_dummy): Rename
10540 generic_pc_in_call_dummy.
10541 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
10542 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
10543 generic_pc_in_call_dummy.
10544 (pc_in_dummy_frame): Make static.
10545 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
10546 * gdbarch.h, gdbarch.c: Re-generate.
10547 * dummy-frame.c (dummy_frame_sniffer): Simplify.
10548 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
10549 (legacy_get_prev_frame): Ditto.
10550 * inferior.h: Delete reference to generic_pc_in_call_dummy in
10551 comment.
10552
10553 2004-03-21 Andrew Cagney <cagney@redhat.com>
10554
10555 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
10556 declaration and out-of-date comment.
10557 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10558 Delete function.
10559 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
10560 deprecated_pc_in_call_dummy.
10561
10562 * infrun.c (handle_inferior_event): For non legacy frames, use the
10563 frame ID and frame type to identify a signal trampoline. Update
10564 comments.
10565
10566 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
10567
10568 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
10569 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
10570
10571 2004-03-21 Andrew Cagney <cagney@redhat.com>
10572
10573 * frame-unwind.h: Update copyright.
10574 (struct frame_data): Add opaque declaration.
10575 (frame_sniffer_ftype): Declare.
10576 (struct frame_unwind): Add "unwind_data" and "sniffer".
10577 (frame_unwind_register_unwinder): Declare.
10578 (frame_unwind_find_by_frame): Add parameter "this_cache".
10579 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
10580 (legacy_get_prev_frame, legacy_get_prev_frame)
10581 (get_frame_type): Pass the prologue_cache to
10582 frame_unwind_find_by_frame.
10583 * frame-unwind.c (struct frame_unwind_table_entry): Add field
10584 "unwinder".
10585 (frame_unwind_register_unwinder): New function.
10586 (frame_unwind_find_by_frame): Handle an unwind sniffer.
10587
10588 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
10589
10590 * bcache.c (print_percentage): Use floating point to avoid
10591 incorrect results when portion*100 overflows.
10592
10593 2004-03-19 Kevin Buettner <kevinb@redhat.com>
10594
10595 * ppc_tdep.h (ppc_linux_frame_saved_pc)
10596 (ppc_linux_init_extra_frame_info)
10597 (ppc_linux_frameless_function_invocation)
10598 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
10599 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
10600 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
10601 (rs6000_frame_chain): Delete declarations.
10602 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
10603 (ppc_linux_init_extra_frame_info)
10604 (ppc_linux_frameless_function_invocation)
10605 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
10606 (ppc_linux_init_abi): Remove registration of above deleted functions.
10607 * rs6000-tdep.c (rs6000_init_extra_frame_info)
10608 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
10609 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
10610 (rs6000_pop_frame, rs6000_frameless_function_invocation)
10611 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
10612 (rs6000_gdbarch_init): Remove registration of above deleted functions.
10613 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
10614 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
10615 frame management for all OSABIs.
10616
10617 2004-03-19 Andrew Cagney <cagney@redhat.com>
10618
10619 Committed by Kevin Buettner <kevinb@redhat.com>.
10620
10621 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
10622 Update copyright.
10623 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
10624 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
10625 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
10626 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
10627 unwinders. #ifdef legacy frame code.
10628 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
10629 "frame-base.h".
10630 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
10631 (struct rs6000_frame_cache, rs6000_frame_cache)
10632 (rs6000_frame_this_id, rs6000_frame_prev_register)
10633 (rs6000_frame_sniffer, rs6000_frame_unwind)
10634 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
10635 (rs6000_frame_base): Implement a traditional frame unwinder.
10636 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
10637 frame unwinder.
10638
10639 2004-03-19 Kevin Buettner <kevinb@redhat.com>
10640
10641 * breakpoint.c (adjust_breakpoint_address): Don't adjust
10642 breakpoint address for watchpoints or the catch eventpoints.
10643 Add new paramter ``bptype''. Adjust all callers.
10644
10645 2004-03-19 Andrew Cagney <cagney@redhat.com>
10646
10647 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
10648
10649 * PROBLEMS: Delete note that ARM does not use frame code, problem
10650 fixed.
10651
10652 2004-03-18 Andrew Cagney <cagney@redhat.com>
10653
10654 * stack.c (return_command): Delete code wrapped in #ifdef
10655 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
10656
10657 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
10658
10659 2004-03-18 Andrew Cagney <cagney@redhat.com>
10660
10661 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
10662 DEPRECATED_IN_SIGTRAMP.
10663 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10664 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
10665 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10666 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10667 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10668 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10669 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10670 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
10671 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
10672 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
10673
10674 2004-03-18 Andrew Cagney <cagney@redhat.com>
10675
10676 * frame-base.c: Update copyright. Include "gdb_obstack.h".
10677 (struct frame_base_table_entry): Define.
10678 (struct frame_base_table): Re-implement as a linked list.
10679 (frame_base_init): Re-implement.
10680 (frame_base_table): Delete function.
10681 (append_predicate): Delete function.
10682 (frame_base_append_sniffer): Update.
10683 (frame_base_set_default): Update.
10684 (frame_base_find_by_frame): Update.
10685 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
10686 * Makefile.in (frame-base.o): Update dependencies.
10687
10688 2004-03-17 Andrew Cagney <cagney@redhat.com>
10689
10690 * frame.c (legacy_get_prev_frame): Pass correct frame to
10691 frame_unwind_find_by_frame.
10692
10693 2004-03-17 David Carlton <carlton@kealia.com>
10694
10695 * NEWS: Mention C++ nested types and namespaces
10696
10697 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
10698
10699 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
10700 and "Regressions since gdb 5.3.". Add known regressions since
10701 gdb 6.0.
10702
10703 2004-03-16 David Carlton <carlton@kealia.com>
10704
10705 * dwarf2read.c (process_structure_scope): Process children even
10706 when we're a declaration.
10707
10708 2004-03-16 Andrew Cagney <cagney@redhat.com>
10709
10710 * symtab.h (find_pc_sect_partial_function): Delete declaration.
10711 * blockframe.c (find_pc_partial_function)
10712 (find_pc_sect_partial_function): Merge into a single
10713 find_pc_partial_function.
10714
10715 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10716
10717 * i386bsd-nat.c: s/regno/regnum/g.
10718 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
10719 FP0_REGNUM.
10720 (store_inferior_registers): Likewise.
10721
10722 2004-03-16 Mark Kettenis <kettenis@gnu.org>
10723
10724 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
10725 of i387_fill_fsave.
10726 (store_inferior_registers): Call i387_collect_fsave and
10727 i387_collect_fxsave instead of i387_fill_fsave and
10728 i387_fill_fxsave.
10729
10730 2004-03-15 Andrew Cagney <cagney@redhat.com>
10731
10732 * Makefile.in (frame-unwind.o): Update dependencies.
10733 * frame-unwind.c: Include "gdb_obstack.h".
10734 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
10735 parameter.
10736 (append_predicate): Delete function.
10737 (struct frame_unwind_table_entry): New structure.
10738 (struct frame_unwind_table): Replace "sniffer" with "head" and
10739 "tail".
10740 (frame_unwind_append_sniffer): Update.
10741 (frame_unwind_find_by_frame): Update.
10742 (_initialize_frame_unwind): Registe frame_unwind_init using
10743 gdbarch_data_register_pre_init.
10744
10745 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10746
10747 * i386bsd-nat.c: Update copyright year.
10748 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
10749 define unconditionally.
10750
10751 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10752
10753 * i387-tdep.h (i387_collect_fsave): New prototype.
10754 * i387-tdep.c (i387_collect_fsave): New function containing most
10755 of the code from i387_fill_fsave.
10756 (i387_fill_fsave): Call i387_collect_fsave.
10757
10758 2004-03-15 Mark Kettenis <kettenis@gnu.org>
10759
10760 * i386-linux-tdep.c: Update copyright year.
10761 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
10762 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
10763 svr4_ilp32_link_map_offsets instead of
10764 i386_linux_svr4_fetch_link_map_offsets.
10765
10766 2004-03-15 David Carlton <carlton@kealia.com>
10767
10768 Fix for PR c++/1553:
10769 * dwarf2read.c (read_structure_type): Determine type name by
10770 calling determine_class_name.
10771 (determine_class_name): New.
10772 (determine_prefix): Look at TYPE_TAG_NAME and call
10773 determine_class_name when appropriate.
10774 (determine_prefix_aux, class_name): Delete.
10775 (read_namespace): Set die->type.
10776
10777 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10778
10779 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
10780 unused macro definition. The definition in target.h (or perhaps
10781 elsewhere) takes precedence.
10782
10783 2004-03-15 Andrew Cagney <cagney@redhat.com>
10784
10785 * ppc-tdep.h: Update copyright.
10786 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
10787 function signatures to match "regsets.h".
10788 * ppc-linux-tdep.c: Include "regset.h".
10789 (ELF_GREGSET_SIZE): Delete.
10790 (right_supply_register): New function.
10791 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
10792 using right_supply_register.
10793 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
10794 functions.
10795 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
10796 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
10797 (_initialize_ppc_linux_tdep): Do not register
10798 ppc_linux_regset_core_fns.
10799 (ppc_linux_regset_from_core_section): Replace
10800 fetch_core_registers.
10801 (ppc_linux_regset_core_fns): Delete.
10802 * ppc-linux-nat.c: (right_fill_reg): New function.
10803 (supply_gregset): Update call to ppc_linux_supply_gregset.
10804 (fill_gregset): Clear the register set, use right_fill_reg.
10805 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
10806 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
10807
10808 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
10809 unsigned.
10810
10811 2004-03-15 Andrew Cagney <cagney@redhat.com>
10812
10813 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
10814 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
10815 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
10816 and register_gdbarch_data.
10817 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
10818 (struct gdbarch_data): Replace "init" by "pre_init" and
10819 "post_init".
10820 * gdbarch.h, gdbarch.c: Re-generate.
10821 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
10822 with"obstack", use OBSTACK_ZALLOC.
10823 (dwarf2_frame_ops): Delete.
10824 (dwarf2_frame_set_init_reg): Use gdbarch_data.
10825 (dwarf2_frame_init_reg): Use gdbarch_data.
10826 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
10827 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
10828 (_initialize_svr4_solib): Update.
10829 * user-regs.c (_initialize_user_regs): Update.
10830 * reggroups.c (_initialize_reggroup): Update.
10831 * regcache.c (_initialize_regcache): Update.
10832 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
10833 * libunwind-frame.c (_initialize_libunwind_frame): Update.
10834 * gnu-v3-abi.c (init_gnuv3_ops): Update.
10835 * frame-unwind.c (_initialize_frame_unwind): Update.
10836 * frame-base.c (_initialize_frame_base): Update.
10837 * user-regs.c (user_reg_add): Update.
10838 * reggroups.c (reggroup_add): Update.
10839 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
10840 * libunwind-frame.c (libunwind_frame_set_descr): Update.
10841 * frame-unwind.c (frame_unwind_append_sniffer): Update.
10842 * frame-base.c (frame_base_table): Update.
10843 * remote.c (_initialize_remote): Update.
10844 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
10845
10846 2004-03-15 Andrew Cagney <cagney@redhat.com>
10847
10848 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
10849
10850 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10851
10852 * Makefile.in (frv-linux-tdep.o): Add dependencies.
10853 * frv-linux-tdep.c: New file.
10854 * frv-tdep.c (struct gdbarch_tdep): Add new field
10855 ``sigcontext_reg_addr''.
10856 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
10857 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
10858 (frv_sigramp_frame_sniffer): New functions.
10859 (frv_sigtramp_frame_unwind): New static global.
10860 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
10861 sniffers.
10862 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
10863 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
10864
10865 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10866
10867 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
10868 but not via a call to error(), when unable to read memory.
10869
10870 2004-03-15 Kevin Buettner <kevinb@redhat.com>
10871
10872 * frv-tdep.c (frv_call_dummy_words): Delete.
10873 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
10874
10875 2004-03-15 Andrew Cagney <cagney@redhat.com>
10876
10877 * infrun.c (handle_step_into_function, step_over_function): Only
10878 update and use STEP_FRAME_ID when the system is using legacy
10879 frames. Update comments.
10880
10881 2004-03-14 Mark Kettenis <kettenis@gnu.org>
10882
10883 * amd64-linux-tdep.h: Remove file.
10884 * amd64-linux-tdep.c: Don't include "inferior.h" and
10885 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
10886 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
10887 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
10888 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
10889 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
10890 macros.
10891 (user_to_gdb_regmap): Remove variable.
10892 (amd64_linux_gregset_reg_offset): New variable.
10893 (amd64_core_fns): Remove variable.
10894 (fetch_core_registers): Remove function.
10895 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
10896 functions.
10897 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
10898 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
10899 * Makefile.in (amd64_linux_tdep_h): Remove.
10900 (amd64-linux-nat.o): Update dependencies.
10901 (amd64-linux-tdep.o): Update dependencies.
10902
10903 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
10904 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
10905 functions.
10906 (fetch_inferior_registers, store_inferior_registers): Rewrite.
10907
10908 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
10909 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
10910
10911 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
10912
10913 * dwarf2read.c (read_structure_type): Rename from
10914 read_structure_scope. Don't create a symbol or call process_die.
10915 Return immediately if die->type is set. Call read_type_die before
10916 dwarf2_add_member_fn.
10917 (process_structure_scope): New function.
10918 (read_enumeration_type, process_enumeration_scope): New functions,
10919 broken out from read_enumeration. Don't create the enumeration
10920 type if it has already been created.
10921 (read_enumeration): Removed.
10922 (process_die): Call read_structure_type, process_structure_scope,
10923 read_enumeration_type, and process_enumeration_scope. Just call
10924 new_symbol for base and subrange types. Add a comment about other
10925 type dies.
10926 (read_type_die): Call read_enumeration_type.
10927 (add_partial_structure, new_symbol): Update comments.
10928
10929 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10930
10931 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
10932
10933 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
10934
10935 * tui/tui-win.h (tui_get_cmd_list): Declare.
10936 * tui/tui-win.c (tui_command): New function.
10937 (tui_get_cmd_list): New function.
10938 (_initialize_tui_win): Moved initialization of tui command in
10939 tui_get_cmd_list.
10940
10941 * tui/tui-data.c (init_content_element): Setup new data members.
10942 (init_win_info): Likewise.
10943 (free_content_elements): Free it.
10944 * tui/tui-data.h (struct tui_data_element): Store the register
10945 content to print.
10946 (struct tui_data_info): Keep the current register group.
10947
10948 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
10949
10950 * tui/tui-regs.h (tui_show_registers): Update prototype.
10951 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
10952 (tui_resize_all): No need to calculate anything for register window.
10953 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
10954 (tui_set_register_element, tui_set_general_regs_content): Remove.
10955 (tui_set_special_regs_content): Remove.
10956 (tui_set_general_and_special_regs_content): Remove.
10957 (tui_set_float_regs_content): Remove.
10958 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
10959 (tui_set_regs_content): Remove.
10960 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
10961 (tui_v_show_registers_command_support): Remove.
10962 (tui_show_registers): Use a reggroup to specify the registers to show.
10963 (tui_show_register_group): New function.
10964 (tui_display_registers_from): Compute the layout of register window
10965 and refresh with new API; be sure to delete old register windows.
10966 (tui_check_register_values): Update to use tui_get_register and
10967 tui_display_data.
10968 (tui_display_register): Just refresh the register window part.
10969 (tui_register_format): Format registers and save in tui_data_element.
10970 (tui_get_register): New to combine tui_reg_value_has_changed and
10971 tui_get_register_raw_value; fix to use the new gdb API.
10972 (tui_show_float_command): Renamed tui_reg_float_command.
10973 (tui_show_general_command): Renamed tui_reg_general_command.
10974 (tui_show_special_command): Renamed tui_reg_system_command.
10975 (_initialize_tui_regs): Remove unused commands.
10976
10977 2004-03-13 Mark Kettenis <kettenis@gnu.org>
10978
10979 * NEWS (New native configurations): Mention OpenBSD/amd64.
10980
10981 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
10982 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
10983 Remove defines.
10984 * config/i386/nm-fbsd64.h: Likewise.
10985 * config/i386/nm-obsd.h: Likewise.
10986 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
10987 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
10988
10989 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10990
10991 * frv-tdep.c (set_variant_scratch_registers): New function.
10992 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
10993 New constants.
10994
10995 From Richard Sandiford <rsandifo@redhat.com>:
10996 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
10997
10998 2004-03-12 Kevin Buettner <kevinb@redhat.com>
10999
11000 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
11001 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
11002 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
11003 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
11004 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
11005 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
11006 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
11007 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
11008 definitions from frv-tdep.c to frv-tdep.h.
11009
11010 2004-03-12 Kevin Buettner <kevinb@redhat.com>
11011
11012 Add shared library support for FR-V FDPIC ABI:
11013 * Makefile.in (solib-frv.o): Add dependencies.
11014 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
11015 New functions.
11016 (frv_push_dummy_call): Add support for FDPIC ABI.
11017 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
11018 for FDPIC ABI.
11019 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
11020 (frv_fdpic_find_canonical_descriptor): Declare.
11021 * solib-frv.c: New file.
11022 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
11023 * config/frv/tm-frv.h (solib.h): Include.
11024
11025 2004-03-12 Kevin Buettner <kevinb@redhat.com>
11026
11027 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
11028 (frv-tdep.o): Update dependencies.
11029 * frv-tdep.h: New file.
11030 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
11031 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
11032 constants.
11033 (struct gdbarch_tdep): Add new member ``frv_abi''.
11034 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
11035 functions.
11036 (new_variant): Set ``frv_abi'' field.
11037 (gdb_arch_init): Detect FDPIC executables.
11038
11039 2004-03-12 Mark Kettenis <kettenis@gnu.org>
11040
11041 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
11042 wrapper.
11043
11044 2004-03-11 Andrew Cagney <cagney@redhat.com>
11045
11046 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
11047
11048 2004-03-11 Kevin Buettner <kevinb@redhat.com>
11049
11050 * solist.h (master_so_list): New function.
11051 * solib.c (master_so_list): Likewise.
11052 * solib-svr4.c (enable_break): Iterate over so_list entries
11053 obtained from master list instead of entries obtained directly
11054 via svr4_current_sos().
11055
11056 2004-03-10 Ben Elliston <bje@gnu.org>
11057
11058 * MAINTAINERS: Update my mail address.
11059
11060 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
11061
11062 * remote-m32r-sdi.c: Support hardware watchpoint.
11063
11064 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11065
11066 * user-regs.c: Update copyright years.
11067 (struct user_regs): Rename to gdb_user_regs.
11068 (append_user_reg, builtin_user_regs, user_regs_init)
11069 (user_reg_add, user_reg_map_name_to_regnum)
11070 (usernum_to_user_reg): Update.
11071
11072 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11073
11074 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
11075 (skip_children): New functions.
11076 (locate_pdi_sibling): Call skip_children.
11077
11078 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11079
11080 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
11081 * gdbtypes.c (check_typedef): Update comments.
11082
11083 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11084
11085 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
11086 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
11087 pointer. Update comment about comp_unit_head.
11088 (struct abbrev_info): Shorten two int flags.
11089 (dwarf_alloc_abbrev): Take a CU argument.
11090 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
11091 each time through the loop. Update cleanup argument.
11092 (psymtab_to_symtab_1): Update cleanup call.
11093 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
11094 abbrev_obstack.
11095 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
11096 Just call obstack_free and clear the pointer.
11097
11098 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11099
11100 * infrun.c (handle_inferior_event): Remove short-circuit code for
11101 events in a different thread.
11102
11103 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11104
11105 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
11106 print the whole transfer.
11107 (initialize_targets): Update description of "set debug target".
11108
11109 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
11110
11111 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
11112
11113 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
11114
11115 * MAINTAINERS (write after approval): Add myself.
11116
11117 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
11118
11119 * sh-tdep.c (sh_print_registers_info): Use for loop.
11120 Don't skip multiple registers when a float register is encountered.
11121
11122 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
11123
11124 Fix PR tdep/1291.
11125 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
11126 to official SH documentation.
11127
11128 2004-03-07 Andrew Cagney <cagney@redhat.com>
11129
11130 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
11131 unused function.
11132
11133 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
11134
11135 * arm-tdep.c (thumb_get_next_pc): Handle BX.
11136 (arm_get_next_pc): Handle BX and BLX.
11137
11138 2004-03-07 Andrew Cagney <cagney@redhat.com>
11139
11140 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
11141 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
11142 HPPA_SP_REGNUM.
11143 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
11144 (hppa_target_read_fp): Delete.
11145 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
11146 register_virtual_size, max_register_raw_size,
11147 max_register_virtual_size, register_byte, register_size,
11148 target_read_fp, fp_regnum, and register_bytes. Set register_type
11149 instead of register_virtual_type.
11150 (hppa32_register_type, hppa64_register_type): Replace
11151 hppa32_register_virtual_type and hppa64_register_virtual_type.
11152 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
11153 (HPPA_FP_REGNUM): Define.
11154
11155 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
11156
11157 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
11158 (pa_do_registers_info): Delete.
11159 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
11160 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
11161 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
11162
11163 * infcall.c (legacy_push_dummy_code): Delete #ifdef
11164 GDB_TARGET_IS_HPPA code.
11165 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
11166 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
11167 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
11168 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
11169 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
11170 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
11171 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
11172 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
11173 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
11174 (hppa_frameless_function_invocation, hppa64_store_return_value)
11175 (hppa_store_struct_return, hppa64_extract_return_value)
11176 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
11177 (hppa32_call_dummy_length, hppa64_call_dummy_length)
11178 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
11179 (find_proc_framesize, deposit_21, restore_pc_queue)
11180 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
11181 (rp_saved, pc_in_linker_stub): Delete.
11182
11183 Unconditionally enable 64-bit frame and ABI code.
11184 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
11185 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
11186 push_dummy_frame, fix_call_dummy, push_arguments,
11187 call_dummy_location, extract_return_value, use_struct_convention,
11188 store_return_value, store_struct_return, saved_pc_after_call,
11189 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
11190 frame_chain, frame_chain_valid, frameless_function_invocation,
11191 frame_saved_pc, and pop_frame.
11192
11193 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
11194 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
11195 (hppa_gdbarch_init): Do not set PC_REGNUM.
11196
11197 2004-03-06 Mark Kettenis <kettenis@gnu.org>
11198
11199 * config/alpha/tm-fbsd.h: Remove file.
11200 * config/alpha/fbsd.mt: Tweak comment.
11201 (TM_FILE): Set to tm-alpha.h.
11202
11203 2004-03-05 Andrew Cagney <cagney@redhat.com>
11204
11205 * infrun.c (step_over_function): When non-legacy code, and no
11206 step_frame_id, use the unwinder to get the caller's frame ID.
11207
11208 2004-03-05 Mark Kettenis <kettenis@gnu.org>
11209
11210 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
11211 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
11212 bfd_arch_unknown. Adjust comment.
11213
11214 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
11215 * i386obsd-tdep.c: Correct spelling in comment.
11216 * i386nbsd-tdep.c: Correct spelling in comment.
11217 * sparc-tdep.c: Correct spelling in comments.
11218
11219 2004-03-05 David Carlton <carlton@kealia.com>
11220
11221 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
11222 bug.
11223
11224 2004-03-05 Mark Kettenis <kettenis@gnu.org>
11225
11226 * sparc-tdep.c: Fix typo in comment.
11227
11228 2004-03-04 J. Brobecker <brobecker@gnat.com>
11229
11230 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
11231
11232 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
11233
11234 * dwarf2read.c: Add comment describing memory lifetimes.
11235 (struct dwarf2_pinfo): Update comment.
11236 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
11237 (read_enumeration, new_symbol): Don't use obsavestring.
11238
11239 2004-03-04 Mark Kettenis <kettenis@gnu.org>
11240
11241 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
11242 instead of amd64_fill_fxsave.
11243 * amd64bsd-nat.c (store_inferior_registers): Likewise.
11244 * amd64fbsd-nat.c (fill_fpregset): Likewise.
11245
11246 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
11247 Reorganize code a bit.
11248
11249 2004-03-04 Orjan Friberg <orjanf@axis.com>
11250
11251 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
11252 when the frame pointer is pushed. Don't set the frame pointer's
11253 address on the stack unless it's actually located there.
11254 Set the SRP's address on the stack correctly when the PC is still in
11255 the prologue.
11256 (cris_return_value): New function.
11257 (cris_gdbarch_init): Clear deprecated store_return_value,
11258 extract_return_value.
11259
11260 2004-03-02 Jim Blandy <jimb@redhat.com>
11261
11262 * stabsread.c (reg_value_complaint): The maximum register number
11263 is one less than the number of registers.
11264
11265 2004-03-02 Andrew Cagney <cagney@redhat.com>
11266
11267 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
11268 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
11269 trailing comma and redundant assignment of I386_ST0_REGNUM.
11270 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
11271 32-bit segment registers.
11272
11273 2004-03-01 Andrew Cagney <cagney@redhat.com>
11274
11275 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
11276 use frame_relative_level and get_next_frame.
11277
11278 2004-02-29 Andrew Cagney <cagney@redhat.com>
11279
11280 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
11281 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
11282 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
11283 Delete macro.
11284
11285 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
11286
11287 * inflow.c (terminal_inferior): Don't give up the terminal if we
11288 previously couldn't get the inferior's terminal state.
11289
11290 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
11291
11292 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
11293 PC_REGNUM.
11294
11295 2004-02-28 Andrew Cagney <cagney@redhat.com>
11296
11297 * NEWS: Refer to GDB 6.1.
11298 * README: Refer to GDB 6.1.
11299 * PROBLEMS: Refer to GDB 6.1.
11300
11301 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
11302
11303 * thread-db.c (disable_thread_signals): Remove unused function.
11304
11305 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11306
11307 * amd64-nat.c: Include "gdb_string.h".
11308 (amd64_collect_native_gregset): Zero-extend the 32-bit
11309 general-purpose registers and %eip.
11310
11311 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
11312 * amd64-tdep.c (amd64_collect_fxsave): New function.
11313 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
11314
11315 * i387-tdep.h: Update copyright year.
11316 (i387_collect_fxsave): New prototype.
11317 * i387-tdep.c: Update copyright year.
11318 (i387_collect_fxsave): New function containing most of the code
11319 from i387_fill_fxsave.
11320 (i387_fill_fxsave): Call i387_collect_fxsave.
11321
11322 2004-02-28 Andrew Cagney <cagney@redhat.com>
11323
11324 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
11325 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
11326
11327 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11328
11329 * amd64-tdep.c (amd64_frame_cache): Fix comment.
11330
11331 2004-02-28 Andrew Cagney <cagney@redhat.com>
11332
11333 * utils.c: Use "", instead of <>, to include readline.
11334 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
11335 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
11336 * source.c, solib.c, exec.c, event-top.c: Ditto.
11337 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
11338 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
11339 * Makefile.in: Update all dependencies.
11340 (readline_tilde_h, readline_history_h): Define.
11341 (readline_headers): Delete.
11342
11343 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11344
11345 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
11346 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
11347 "config/i386/tm-lx64.h".
11348
11349 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
11350 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
11351 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
11352
11353 2004-02-28 Andrew Cagney <cagney@redhat.com>
11354
11355 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
11356
11357 * breakpoint.c (_initialize_breakpoint): Use
11358 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
11359 Add help to show command.
11360
11361 2004-02-28 Mark Kettenis <kettenis@gnu.org>
11362
11363 * i386-nat.c: Reformat to be closer to coding standards.
11364 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
11365 `retval'. Make variables `align' and `size' local to while-loop.
11366 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
11367 (_initialize_i386_nat): New prototype.
11368
11369 * tui/tui.c: Include <readline/readline.h> instead of
11370 "readline/readline.h". Include it after <term.h> and
11371 "gdb_curses.h".
11372
11373 2004-02-27 Andrew Cagney <cagney@redhat.com>
11374
11375 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
11376 the new frame unwind code.
11377 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
11378 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
11379 PCOQ_HEAD_REGNUM.
11380
11381 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
11382 "return_value" and "push_dummy_call".
11383 (hppa32_use_struct_convention): Delete unused function.
11384 (hppa32_store_return_value): Delete unused function.
11385 (hppa32_extract_return_value): Delete unused function.
11386 (hppa32_stack_align): Delete function.
11387
11388 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
11389
11390 * coffread.c (enter_linenos): Don't let rawptr reference memory
11391 outside linetab[]'s limits.
11392
11393 2004-02-27 Andrew Cagney <cagney@redhat.com>
11394
11395 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
11396 inferior stack space - the stack needs to grow upwards.
11397 (hppa32_frame_align): New function.
11398 (hppa64_frame_align): Replace hppa_frame_align.
11399 (hppa_gdbarch_init): Update.
11400
11401 2004-02-26 Orjan Friberg <orjanf@axis.com>
11402
11403 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
11404 (dwarf2-frame.h): Include.
11405 (enum cris_regnums): New enum CRIS_FP_REGNUM.
11406 Remove static variables related to ABI setting.
11407 (struct gdbarch_tdep): Remove cris_abi member.
11408 (struct frame_extra_info): Remove.
11409 (cris_unwind_cache, stack_item): New structs.
11410 (cris_frame_unwind, cris_frame_base): New variables.
11411 (push_stack_item, pop_stack_item)
11412 (cris_frame_unwind_cache, cris_frame_this_id)
11413 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
11414 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
11415 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
11416 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
11417 (cris_reg_struct_has_addr): New functions.
11418 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
11419 (cris_frame_saved_pc, cris_saved_pc_after_call,
11420 (cris_store_struct_return, cris_frameless_function_invocation)
11421 (cris_pop_frame, cris_skip_prologue_main)
11422 (cris_abi_original_store_return_value)
11423 (cris_abi_v2_store_return_value)
11424 (cris_abi_original_extract_return_value)
11425 (cris_abi_v2_extract_return_value)
11426 (cris_abi_original_reg_struct_has_addr)
11427 (cris_abi_v2_reg_struct_has_addr)
11428 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
11429 (cris_push_return_address, cris_abi_update): Remove.
11430 (_initialize_cris_tdep): Remove ABI command.
11431 (cris_dump_tdep): Ditto.
11432 (cris_gdbarch_init): Remove ABI command.
11433 Set store_return_value, extract_return_value, push_dummy_code,
11434 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
11435 frame_unwind_append_sniffer, frame_base_set_default.
11436 Clear deprecated init_frame_pc, push_arguments, store_return_value,
11437 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
11438 sizeof_call_dummy_words, get_saved_register, push_return_address,
11439 pop_frame, store_struct_return, frame_init_saved_regs,
11440 init_extra_frame_info, frameless_function_invocation, frame_chain,
11441 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
11442 dummy_write_sp.
11443
11444 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
11445
11446 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
11447 * valprint.c (print_hex_chars): Change from static to external.
11448 (print_char_chars): New function.
11449 * printcmd.c (print_scalar_formatted): For integer and enum types
11450 that are longer than LONGEST, perform processing via appropriate
11451 print_*_chars routines.
11452
11453 2004-02-26 Andrew Cagney <cagney@redhat.com>
11454
11455 * Makefile.in: Update dependencies.
11456 Changes from Ulrich Weigand,
11457 * s390-tdep.c: Include "dwarf2-frame.h".
11458 (s390_dwarf2_frame_init_reg): New function.
11459 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
11460 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
11461
11462 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
11463
11464 * breakpoint.c (pending_break_support): New setting variable.
11465 (break_command_1): Account for pending_break_support setting
11466 when creating pending breakpoints.
11467 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
11468 (_initialize_breakpoint): Add "set breakpoint pending" and
11469 "show breakpoint pending" commands.
11470
11471 2004-02-26 Andrew Cagney <cagney@redhat.com>
11472
11473 Fix PR i18n/1570.
11474 * charset.c (backslashable, backslashed, represented): Remove 'e'
11475 from list of escaped characters, not part of ISO-C.
11476
11477 2004-02-25 J. Brobecker <brobecker@gnat.com>
11478
11479 From Peter Schauer <schauer@pdf.de>:
11480 * tui/tui.c: Move system header includes after local includes.
11481 Fixes a build failure on solaris systems.
11482
11483 2004-02-25 J. Brobecker <brobecker@gnat.com>
11484
11485 * configure.in: Refine the previous change.
11486 * configure: Regenerate.
11487
11488 2004-02-25 Mark Kettenis <kettenis@gnu.org>
11489
11490 * amd64-tdep.h: Renamed from x86-64-tdep.h.
11491 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
11492 "amd64-tdep.h" instead of "x86-64-tdep.h".
11493 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11494 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
11495 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
11496 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11497 and "x86-64-tdep.c".
11498 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
11499 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
11500 and "x86-64-tdep.c".
11501 * amd64bsd-nat.c: Update copyright year.
11502 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
11503 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
11504 "x86-64-tdep.h".
11505 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
11506 "x86-64-tdep.h".
11507 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
11508 "x86-64-tdep.h".
11509 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
11510 "x86-64-tdep.h".
11511 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
11512 "x86-64-tdep.h".
11513 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
11514 "x86-64-tdep.h".
11515 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
11516 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
11517 * Makefile.in (amd64_linux_tdep_h): Renamed from
11518 x86_64_linux_tdep_h.
11519 (amd64_tdep_h): Renamed from x86_64_tdep_h.
11520 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
11521 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
11522 (amd64obsd-tdep.o): Update dependencies.
11523 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
11524 dependencies.
11525 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
11526 dependencies.
11527 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
11528 amd64-linux-nat.c amd64-linux-tdep.c.
11529 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
11530 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
11531 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
11532 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
11533 amd64-tdep.o and amd64-linux-tdep.o.
11534 (TM_FILE): Set to tm-linux64.h.
11535 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
11536 (NAT_FILE): Set to nm-linux64.h.
11537 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
11538 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11539 amd64-tdep.o.
11540 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11541 amd64-tdep.o.
11542 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
11543 amd64-tdep.o.
11544
11545 2004-02-25 Roland McGrath <roland@redhat.com>
11546
11547 * remote.c (remote_protocol_qPart_auxv): New variable.
11548 (init_all_packet_configs): Initialize it.
11549 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
11550 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
11551 (show_remote_cmd): Call it.
11552 (_initialize_remote): Initialize commands.
11553 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
11554 service TARGET_OBJECT_AUXV requests.
11555
11556 2004-02-25 J. Brobecker <brobecker@gnat.com>
11557
11558 * configure.in: Make sure that the wborder function is available.
11559 Otherwise, search for it in the cur_colr library.
11560 * configure: Regenerate.
11561
11562 2004-02-25 Andrew Cagney <cagney@redhat.com>
11563
11564 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
11565
11566 2004-02-25 Mark Kettenis <kettenis@gnu.org>
11567
11568 * config/i386/tm-x86-64linux.h: Tweak comments.
11569
11570 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
11571
11572 * MAINTAINERS: Add self to write-after-approval list.
11573
11574 2004-02-25 Andrew Cagney <cagney@redhat.com>
11575
11576 PR cli/1566. Problem found, and fix suggested by David Allan.
11577 * cli/cli-script.c (execute_control_command): Unconditionally
11578 install a cleanup. Default "ret" to "invalid_control". Use
11579 "break" instead of "return" to escape from the switch.
11580
11581 2004-02-24 J. Brobecker <brobecker@gnat.com>
11582
11583 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
11584 with the lines macro defined in term.h on AiX.
11585 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
11586 a collision with the label_width macro defined in term.h on AiX.
11587
11588 2004-02-23 David Mosberger <davidm@hpl.hp.com>
11589
11590 Committed by Kevin Buettner <kevinb@redhat.com>.
11591
11592 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
11593 * ia64-tdep.c (ia64_write_pc): Make it a global function.
11594 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
11595 instead of ia64_write_pc().
11596 * ia64-linux-tdep.c (regcache.h): Include.
11597 (ia64_linux_write_pc): New function.
11598
11599 2004-02-23 Roland McGrath <roland@redhat.com>
11600
11601 * auxv.c (info_auxv_command): Fix typos in error messages.
11602
11603 2004-02-23 Mark Kettenis <kettenis@gnu.org>
11604
11605 * x86-64-tdep.h: Tweak comment.
11606 (enum amd64_regnum): New.
11607 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
11608 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
11609 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
11610 (X86_64_XMM1_REGNUM): Removed.
11611 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
11612 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
11613 prototypes for renamed functions.
11614 * x86-64-tdep.c: Fix typo.
11615 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
11616 register numbers.
11617 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
11618 Use constants from `enum amd64_regnum' for register numbers.
11619 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
11620 (amd64_analyze_prologue, amd64_frame_cache,
11621 amd64_sigtramp_frame_cache): Use constants from `enum
11622 amd64_regnum' for register numbers.
11623 (amd64_supply_fpregset): Adjust for renamed functions.
11624 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
11625 `enum amd64_regnum' for register numbers.
11626 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
11627 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
11628 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
11629 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
11630 (amd64_linux_fill_gregset): Adjust for renamed macros.
11631 (fetch_core_registers): Adjust for renamed functions.
11632 (amd64_linux_init_abi): Adjust for renamed functions.
11633 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
11634 renamed functions.
11635 * amd64-nat.c: Adjust for renamed macros.
11636 * amd64bsd-nat.c (fetch_inferior_registers)
11637 (store_inferior_registers): Use constants from `enum amd64_regnum'
11638 for register numbers. Adjust for renamed variables.
11639 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
11640 renamed variables.
11641 (_initialize_amd64fbsd_nat): Use constants from `enum
11642 amd64_regnum' for register numbers.
11643 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
11644 `enum amd64_regnum' for register numbers.
11645 (amd64fbsd_init_abi): Adjust for renamed functions.
11646 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
11647 `enum amd64_regnum' for register numbers.
11648 (amd64nbsd_init_abi): Adjust for renamed functions.
11649 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
11650 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
11651 `enum amd64_regnum' for register numbers.
11652 (amd64obsd_init_abi): Adjust for renamed functions.
11653 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
11654
11655 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11656
11657 * breakpoint.c (print_one_breakpoint): Do not output spaces
11658 after printing <PENDING> for a pending breakpoint.
11659
11660 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11661
11662 * printcmd.c (print_scalar_formatted): Initialize val_long
11663 to remove compiler warning message.
11664
11665 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
11666
11667 * defs.h (nquery, yquery): New prototypes.
11668 * breakpoint.c (break_command_1): Use new nquery interface.
11669 * utils.c (defaulted_query, nquery, yquery): New functions.
11670
11671 2004-02-23 Andrew Cagney <cagney@redhat.com>
11672
11673 * hppa-tdep.c (hppa_frame_align): New function.
11674 (hppa32_push_dummy_call): New function.
11675 (hppa64_push_dummy_call): New function.
11676 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
11677 disabled.
11678
11679 * infcall.c (legacy_push_dummy_code): Don't call deprecated
11680 FIX_CALL_DUMMY when push_dummy_call is available.
11681 (call_function_by_hand, push_dummy_code): Ditto.
11682
11683 2004-02-22 Andrew Cagney <cagney@redhat.com>
11684
11685 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
11686 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
11687 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
11688 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
11689 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
11690 call_dummy_location to ON_STACK.
11691
11692 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11693
11694 * x86-64-linux-tdep.c: Tweak comment.
11695 (amd64_linux_supply_gregset): Renamed from
11696 x86_64_linux_supply_gresget.
11697 (amd64_linux_fill_gregset): Renamed from
11698 x86_64_linux_fill_gregset.
11699 (fetch_core_registers): Adjust for renamed functions.
11700 (amd64_core_fns): Renamed from x86_64_core_fns.
11701 (amd64_linux_sigtramp_start): Renamed from
11702 x86_64_linux_sigtramp_start.
11703 (amd64_linux_pc_in_sigtramp): Renamed from
11704 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
11705 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
11706 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
11707 (amd64_linux_sigcontext_addr): Renamed from
11708 x86_64_linux_sigcontext_addr.
11709 (amd64_linux_sc_reg_offset): Renamed from
11710 x86_64_linux_sc_reg_offset.
11711 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
11712 Adjust for renamed functions and variables.
11713 (_initialize_amd64_linux_tdep): Renamed from
11714 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
11715 variables.
11716 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
11717 Adjust for renamed functions.
11718
11719 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
11720 from x86_64_linux_gregset64_reg_offset.
11721 (amd64_linux_gregset32_reg_offset): Rename from
11722 x86_64_linux_gregset64_reg_offset.
11723 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
11724 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
11725 (amd64_linux_dr_set_control): Renamed from
11726 x86_64_linux_dr_set_control. Adjust for renamed functions.
11727 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
11728 Adjust for renamed functions.
11729 (amd64_linux_dr_reset_addr): Renamed from
11730 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
11731 (amd64_linux_dr_get_status): Renamed from
11732 x86_64_linux_dr_get_status. Adjust for renamed functions.
11733 (_initialize_amd64_linux_nat): Renamed from
11734 _initialize_x86_64_linux_nat. Adjust for renamed variables and
11735 functions.
11736 * config/i386/nm-x86-64linux.h: Update copyright year.
11737 Adjust for renamed functions.
11738
11739 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
11740 amd64fbsd_sigtramp_start.
11741 (amd64fbsd_sigtramp_end_addr): Renamed from
11742 amd64fbsd_sigtramp_end.
11743 (amd64fbsd_init_abi): Adjust for renamed variables.
11744 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
11745 variables.
11746 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
11747 amd64fbsd_sigtramp_start.
11748 (amd64fbsd_sigtramp_end_addr): Renamed from
11749 amd64fbsd_sigtramp_end.
11750
11751 2004-02-22 Andrew Cagney <cagney@redhat.com>
11752
11753 * hppa-tdep.c (hppa32_return_value): New function.
11754 (hppa64_return_value): New function.
11755 (hppa_gdbarch_init): Set return_value; keep disabled.
11756
11757 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
11758 struct-return and inferior function call methods.
11759
11760 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
11761 "frame-base.h".
11762 (struct hppa_frame_cache): Define.
11763 (hppa_frame_cache, hppa_frame_this_id): New functions.
11764 (hppa_frame_prev_register): New function.
11765 (hppa_frame_unwind, hppa_frame_base): New variables.
11766 (hppa_frame_unwind_sniffer): New function.
11767 (hppa_frame_base_address, hppa_unwind_pc): New function.
11768 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
11769 sniffer, and frame base sniffer; keep disabled.
11770 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
11771 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
11772
11773 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
11774 to predicates for "seriously old code".
11775
11776 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
11777 runtime if(0).
11778
11779 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
11780 unsigned.
11781 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
11782
11783 * config/pa/tm-hppa.h: Update copyright.
11784 (DEPRECATED_INIT_FRAME_PC): Delete macro.
11785 (deprecated_init_frame_pc_default): Delete declaration.
11786 (hppa_frame_init_saved_regs): Delete declaration.
11787 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11788 * hppa-tdep.c: Include "arch-utils.h".
11789 (hppa_gdbarch_init): Set deprecated init_frame_pc
11790 and deprecated frame_init_saved_regs.
11791 (hppa_frame_init_saved_regs): Make static.
11792
11793 2004-02-22 Mark Kettenis <kettenis@gnu.org>
11794
11795 Remove old 386BSD support.
11796 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
11797 * configure.host: Remove i[34567]86-*-bsd*.
11798 * configure.tgt: Remove i[34567]86-*-bsd*.
11799 * i386b-nat.c: Removed.
11800 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
11801 (i386b-nat.o): Remove dependencies.
11802
11803 * config/i386/i386bsd.mh: Removed.
11804 * config/i386/i386bsd.mt: Removed.
11805 * config/i386/nm-i386bsd.h: Removed.
11806 * config/i386/tm-i386bsd.h: Removed.
11807 * config/i386/xm-i386bsd.h: Removed.
11808
11809 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
11810
11811 * amd64fbsd-tdep.c: Include "solib-svr4.h".
11812 (amd64fbsd_init_abi): Set link map offsets.
11813 * amd64nbsd-tdep.c: Include "slib-svr4.h".
11814 (amd64nbsd_init_abi): Set link map offsets.
11815 * amd64obsd-tdep.c: Include "solib-svr4.h".
11816 (amd64obsd_init_abi): Set link map offsets.
11817 * i386fbsd-tdep.c: Include "solib-svr4.h".
11818 (i386fbsd_init_abi): Set link map offsets.
11819 * i386nbsd-tdep.c: Include "solib-svr4.h".
11820 (i386nbsdelf_init_abi): Set link map offsets.
11821 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
11822 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
11823 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
11824 solib-legacy.o and core-aout.o. Reformat.
11825 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
11826 solib-svr4.o, solib-legacy.o. Reformat.
11827 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
11828 * config/i386/nbsdelf.mh: Reformat.
11829 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
11830 solib-svr4.o, solib-legacy.o and corelow.o.
11831 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
11832 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
11833 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
11834 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11835 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
11836 (TM_FILE): Set to tm-fbsd.h.
11837 * config/i386/nbsd.mt (TDEPFILES): Reformat.
11838 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
11839 solib-svr4.o.
11840 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
11841 solib-svr4.o.
11842 (TM_FILE): Set to nm-nbsd.h.
11843 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
11844 Simplify shared library support. Don't include "elf/common.h".
11845 (SVR4_SHARED_LIBS): Don't define.
11846 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
11847 "solib.h".
11848 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
11849 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
11850 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
11851 Don't include "i386/tm-i386.h". Include "solib.h".
11852 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
11853 Don't include "i386/tm-i386.h".
11854 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
11855 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
11856 Include "i386/xm-i386.h".
11857 (HOST_LONG_DOUBLE_FORMAT): Remove.
11858
11859 Fix OpenBSD/i386 sigtramp recognition.
11860 * i386-tdep.h: Update copyright year.
11861 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
11862 (i386bsd_sigtramp_end): New prototypes.
11863 (i386fbsd_sigtramp_start_addr): Renamed from
11864 i386fbsd_sigtramp_start.
11865 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11866 (i386obsd_sigtramp_start_addr): Renamed from
11867 i386obsd_sigtramp_start.
11868 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11869 * i386bsd-tdep.c: Update copyright year.
11870 (i386bsd_pc_in_sigtramp): Make public.
11871 * i386fbsd-nat.c: Update copyright year.
11872 (_initialize_i386fbsd_nat): Adjust for renamed variables.
11873 * i386fbsd-tdep.c: Update copyright year.
11874 (i386fbsd_sigtramp_start_addr): Renamed from
11875 i386fbsd_sigtramp_start.
11876 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
11877 (i386fbsdaout_init_abi): Adjust for renamed variables.
11878 * i386obsd-nat.c: Update copyright year.
11879 (_initialize_i386obsd_nat): Adjust for renamed variables.
11880 * i386obsd-tdep.c: Include "target.h".
11881 (i386obsd_page_size): New variable.
11882 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
11883 (i386obsd_sigtramp_end): New functions.
11884 (i386obsd_sigtramp_start_addr): Renamed from
11885 i386obsd_sigtramp_start.
11886 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
11887 (i386obsd_init_abi): Adjust for renamed variables. Set
11888 pc_in_sigtramp, sigtramp_start and sigtramp_end.
11889 * Makefile.in (i386obsd-tdep.o): Update dependencies.
11890
11891 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
11892 trampoline change in OpenBSD kernel.
11893
11894 * amd64-nat.c: Update copyright year.
11895 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
11896 architecture from REGCACHE.
11897
11898 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
11899 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
11900
11901 2004-02-21 Mark Kettenis <kettenis@gnu.org>
11902
11903 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
11904 i[34567]86-*-openbsd3.[0-3].
11905 * config/i386/obsdaout.mh: New file.
11906
11907 * config/i386/obsd.mh (MH_FLAGS): Remove.
11908
11909 Fix PR build/1549.
11910 * i386obsd-tdep.c: Update copyright years. Include
11911 "solib-svr4.h".
11912 (i386obsd_init_abi): Don't set regset_from_core_section here.
11913 (i386obsd_aout_init_abi): New function. Set
11914 regset_from_core_section here.
11915 (i386obsd_elf_init_abi): New function.
11916 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
11917 * Makefile.in (i386obsd-tdep.o): Update dependecies.
11918 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
11919 (TM_FILE): Set to tm-nbsd.h.
11920
11921 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
11922 solib-sunos.o.
11923
11924 * solib-svr4.h: Update copyright year.
11925 (svr4_ilp32_fetch_link_map_offsets)
11926 (svr4_lp64_fetch_link_map_offsets): New prototype.
11927 * solib-svr4.c: Update copyright year.
11928 (svr4_ilp32_fetch_link_map_offsets)
11929 (svr4_lp64_fetch_link_map_offsets): New function.
11930
11931 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
11932
11933 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
11934 to the partial symbol table.
11935
11936 2004-02-20 J. brobecker <brobecker@gnat.com>
11937
11938 * PROBLEMS: Add description of problem documented under gdb/1560.
11939
11940 2004-02-20 Mark Kettenis <kettenis@gnu.org>
11941
11942 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
11943 comments.
11944 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
11945 functions.
11946 (amd64obsd_init_abi): Reorder initializations. Use
11947 amd64obsd_r_reg_offset to initialize the general-purpose register
11948 set details. Set regset_from_core_section.
11949 (_initialize_amd64obsd_tdep): Rename from
11950 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
11951 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
11952 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
11953
11954 * NEWS (New native configurations): Mention OpenBSD/alpha.
11955 * configure.tgt: Add alpha*-*-openbsd*.
11956 * configure.host: Add alpha*-*-openbsd*.
11957 * alphanbsd-tdep.c: Update copyright year.
11958 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
11959
11960 2004-02-20 Andrew Cagney <cagney@redhat.com>
11961
11962 Fix PR tdep/1372.
11963 * configure.tgt: Delete target "none-*-*".
11964 * configure.host: Delete host "none-*-*".
11965 * config/none/none.mh: Delete file.
11966 * config/none/none.mt: Delete file.
11967 * config/none/xm-none.h: Delete file.
11968 * config/none/tm-none.h: Delete file.
11969 * config/none/nm-none.h: Delete file.
11970
11971 2004-02-19 Fred Fish <fnf@redhat.com>
11972
11973 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
11974 cache->uses_fp prior to setting it.
11975
11976 2004-02-19 Fred Fish <fnf@redhat.com>
11977
11978 Fix for PR breakpoint/1558.
11979 * sh-tdep.c (IS_JSR): New macro.
11980 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
11981
11982 2004-02-19 Jim Blandy <jimb@redhat.com>
11983
11984 * findvar.c (value_from_register): Doc fix.
11985
11986 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
11987
11988 * printcmd.c (print_scalar_formatted): Do not check for sizeof
11989 type being greater than sizeof of host's LONGEST. Always use
11990 unpack_long() unless format 'f' chosen.
11991
11992 2004-02-19 Joel Brobecker <brobecker@gnat.com>
11993
11994 Committed by Elena Zannoni <ezannoni@redhat.com>
11995
11996 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
11997 contains a symbol wich is the best, non-exact match for the given
11998 pc. Update comments.
11999
12000 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
12001
12002 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
12003 macro, which was part of the now removed Mach 3 port.
12004 * utils.c (request_quit): Ditto.
12005
12006 2004-02-18 Mark Kettenis <kettenis@gnu.org>
12007
12008 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
12009 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
12010
12011 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12012
12013 Committed by Mark Kettenis <kettenis@gnu.org>.
12014
12015 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
12016 Define.
12017
12018 2004-02-18 Andrew Cagney <cagney@redhat.com>
12019
12020 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
12021 CONFIG_INSTALL and CONFIG_UNINSTALL.
12022 * configure: Re-generate.
12023 * interps.h (INTERP_TUI): Define.
12024 * Makefile.in: Update dependencies.
12025 (TUI): New macro.
12026 (tui-main.o): Specify dependencies.
12027 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
12028 * tui/tui-main.c: New file.
12029
12030 2004-02-18 Mark Kettenis <kettenis@gnu.org>
12031
12032 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
12033 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
12034 dependencies.
12035 * configure.host: Add x86_64-*-openbsd*.
12036 * configure.tgt: Add x86_64-*-openbsd*.
12037 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
12038
12039 * tui/tui.c: Don't include <malloc.h>.
12040
12041 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
12042 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
12043 amd64nbsd-tdep.c.
12044
12045 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
12046 static. Remove extraneous whitespace.
12047 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
12048 static.
12049
12050 2004-02-17 Jim Blandy <jimb@redhat.com>
12051
12052 * findvar.c (value_from_register): Doc fix.
12053
12054 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12055
12056 Committed by Jim Blandy <jimb@redhat.com>.
12057
12058 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
12059 CORE_ADDR as type for selectors. Correct types for GNU run time
12060 message lookup function to use double indirection.
12061 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
12062 * objc-lang.h (lookup_child_selector): Adapt prototype.
12063
12064 * s390-nat.c (SUBOFF): New macro.
12065 (supply_gregset, fill_gregset): Use it to handle debugging
12066 of 32-bit exectuables running under a 64-bit kernel.
12067 * s390-tdep.c: Include "solib-svr4.h".
12068 (s390_svr4_fetch_link_map_offset): New function.
12069 (s390x_svr_fetch_link_map_offset): Likewise.
12070 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
12071 * Makefile.in (s390-tdep.o): Update dependencies.
12072
12073 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
12074 "frame-unwind.h".
12075 (s390_readinstruction): Reformat. Use read_memory_nobpt.
12076 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
12077 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
12078 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
12079 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
12080 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
12081 S390_SIGNAL_FRAMESIZE,
12082 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
12083 (struct frame_extra_info): Remove.
12084 (s390_memset_extra_info): Remove.
12085 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
12086 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
12087 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
12088 (is_rse): Renamed to ...
12089 (is_rsy): ... this. Support long displacements.
12090 (is_rxe): Renamed to ...
12091 (is_rxy): ... this. Support long displacements.
12092 (compute_x_addr): Support long displacements.
12093 (struct s390_prologue_data): New data type.
12094 (s390_on_stack): Change API to use struct s390_prologue_data.
12095 (s390_store): Reimplement.
12096 (s390_load): New function.
12097 (s390_get_signal_frame_info): Remove.
12098 (s390_get_frame_info): Remove, replace by ...
12099 (s390_analyze_prolog): ... this new function.
12100 (s390_check_function_end): Remove.
12101 (s390_function_start): Remove.
12102 (s390_frameless_function_invokation): Remove.
12103 (s390_is_sigreturn): Remove.
12104 (s390_init_frame_pc_first): Remove.
12105 (s390_init_frame_extra_info): Remove.
12106 (s390_frame_init_saved_regs): Remove.
12107 (s390_frame_saved_pc_nofix): Remove.
12108 (s390_frame_saved_pc): Remove.
12109 (s390_frame_chain): Remove.
12110 (s390_fp_regnum, s390_read_fp): Remove.
12111 (s390_pop_frame_regular, s390_pop_frame): Remove.
12112 (s390_saved_pc_after_call): Remove.
12113 (s390_skip_prologue): Reimplement.
12114 (s390_in_function_epilogue_p): Support long displacements.
12115 (struct s390_unwind_cache): New data structure.
12116 (s390_frame_unwind_cache): New function.
12117 (s390_prologue_frame_unwind_cache): Likewise.
12118 (s390_backchain_frame_unwind_cache): Likewise.
12119 (s390_frame_this_id, s390_frame_prev_register): Likewise.
12120 (s390_frame_unwind): Define.
12121 (s390_frame_sniffer): New function.
12122 (struct s390_pltstub_unwind_cache): New data structure.
12123 (s390_pltstub_frame_unwind_cache): New function.
12124 (s390_pltstub_frame_this_id): Likewise.
12125 (s390_pltstub_frame_prev_register): Likewise.
12126 (s390_pltstub_frame_unwind): Define.
12127 (s390_pltstub_frame_sniffer): New function.
12128 (struct s390_sigtramp_unwind_cache): New data structure.
12129 (s390_sigtramp_frame_unwind_cache): New function.
12130 (s390_sigtramp_frame_this_id): Likewise.
12131 (s390_sigtramp_frame_prev_register): Likewise.
12132 (s390_sigtramp_frame_unwind): Define.
12133 (s390_sigtramp_frame_sniffer): New function.
12134 (s390_frame_base_address, s390_local_base_address): New functions.
12135 (s390_frame_base): Define.
12136 (s390_unwind_pc, s390_unwind_sp): New function.
12137 (s390_push_dummy_call): Use new frame base location.
12138 (s390_unwind_dummy_id): Likewise.
12139 (s390_gdbarch_init): Remove calls to:
12140 set_gdbarch_frameless_function_invocation,
12141 set_gdbarch_deprecated_init_frame_pc,
12142 set_gdbarch_deprecated_frame_chain,
12143 set_gdbarch_deprecated_frame_init_saved_regs,
12144 set_gdbarch_deprecated_pop_frame,
12145 set_gdbarch_deprecated_init_extra_frame_info,
12146 set_gdbarch_deprecated_init_frame_pc_first,
12147 set_gdbarch_deprecated_target_read_fp,
12148 set_gdbarch_deprecated_frame_saved_pc,
12149 set_gdbarch_deprecated_saved_pc_after_call,
12150 set_gdbarch_deprecated_fp_regnum.
12151 Add calls to:
12152 set_gdbarch_in_solib_call_trampoline,
12153 frame_unwind_append_sniffer,
12154 frame_base_set_default,
12155 set_gdbarch_unwind_pc,
12156 set_gdbarch_unwind_sp.
12157 * Makefile.in (s390-tdep.o): Update dependencies.
12158
12159 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
12160 (S390_STACK_FRAME_OVERHEAD): Remove.
12161 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
12162 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
12163 (s390_promote_integer_argument): Remove.
12164 (s390_cannot_extract_struct_value_address): Remove.
12165 (s390_use_struct_convention, s390_store_struct_return): Remove.
12166 (s390_extract_return_value, s390_store_return_value): Remove.
12167 (s390_return_value_convention, s390_return_value): New functions.
12168 (is_float_singleton): Handle typedefs.
12169 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
12170 Remove, replace by ...
12171 (s390_function_arg_pass_by_reference, s390_function_arg_float,
12172 s390_function_arg_integer): ... these new functions.
12173 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
12174 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
12175 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
12176 Fill in tdep->abi.
12177 Remove calls to:
12178 set_gdbarch_deprecated_store_struct_return,
12179 set_gdbarch_deprecated_extract_return_value,
12180 set_gdbarch_deprecated_store_return_value,
12181 set_gdbarch_use_struct_convention,
12182 set_gdbarch_extract_struct_value_address,
12183 set_gdbarch_deprecated_pc_in_call_dummy,
12184 set_gdbarch_deprecated_push_arguments,
12185 set_gdbarch_deprecated_save_dummy_frame_tos,
12186 set_gdbarch_deprecated_push_return_address,
12187 set_gdbarch_deprecated_sizeof_call_dummy_words,
12188 set_gdbarch_deprecated_call_dummy_words,
12189 set_gdbarch_deprecated_dummy_write_sp.
12190 Add calls to:
12191 set_gdbarch_push_dummy_call,
12192 set_gdbarch_unwind_dummy_id,
12193 set_gdbarch_return_value.
12194
12195 * config/s390/nm-linux.h: Update comments.
12196 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
12197 (STOPPED_BY_WATCHPOINT): Redefine.
12198 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
12199 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
12200 (s390_stopped_by_watchpoint): Likewise.
12201 (watch_area_cnt): Remove.
12202 * s390-nat.c: Update comments.
12203 (watch_area): Remove typedef.
12204 Global replace watch_area by struct watch_area.
12205 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
12206 (s390_stopped_by_watchpoint): Remove pid argument,
12207 use s390_inferior_tid. Add short-cut for the no watchpoint case.
12208 (s390_fix_watch_points): Remove pid argument,
12209 use s390_inferior_tid. Recompute area spanned by watchpoints.
12210 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
12211 argument. Reimplement.
12212
12213 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
12214 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
12215 (FETCH_INFERIOR_REGISTERS): Define.
12216 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
12217 core-regset.o.
12218 * config/s390/s390x.mt: Remove.
12219 * config/s390/tm-s390.h: Remove.
12220 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
12221 (TARGET_ELF64): Remove.
12222 (SKIP_TRAMPOLINE_CODE): Do not undefine.
12223 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
12224 s390*-*-* case; always set gdb_target to s390.
12225 * regformats/reg-s390.dat: Remove control registers.
12226 * regformats/reg-s390x.dat: Likewise.
12227 * s390-tdep.h: New file.
12228 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
12229 Include "inferior.h" and "s390-tdep.h".
12230 Remove private definition of offsetof.
12231 (s390_register_u_addr): Remove.
12232 (regmap_gregset, regmap_fpregset): Define.
12233 (supply_gregset, fill_gregset): Reimplement.
12234 (supply_fpregset, fill_fpregset): Likewise.
12235 (s390_inferior_tid): New function.
12236 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
12237 (fetch_inferior_registers, store_inferior_registers): Likewise.
12238 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
12239 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
12240 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
12241 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
12242 (struct gdbarch_tdep): Define.
12243 (struct s390_register_info): Define.
12244 (s390_register_info): New variable.
12245 (s390_register_name): Reimplement.
12246 (s390_register_type): New function.
12247 (s390_register_raw_size, s390x_register_raw_size): Remove.
12248 (s390_cannot_fetch_register): Remove.
12249 (s390_register_byte): Remove.
12250 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
12251 (s390_dwarf_regmap): New variable.
12252 (s390_dwarf_reg_to_regnum): New function.
12253 (s390_stab_reg_to_regnum): Remove.
12254 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
12255 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
12256 (s390_convert_register_p): Likewise.
12257 (s390_register_to_value, s390_value_to_register): Likewise.
12258 (s390_register_reggroup_p): Likewise.
12259 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
12260 s390_gregset, s390x_gregset, s390_fpregset): New variables.
12261 (s390_supply_regset, s390_regset_from_core_section): New functions.
12262 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
12263 (S390_FPR_SIZE): Likewise.
12264 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
12265 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
12266 (S390_NUM_GPRS): Move here from tm-s390.h.
12267 (S390_NUM_FPRS): Likewise.
12268 (s390_in_function_epilogue_p): New function.
12269 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
12270 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
12271 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
12272 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
12273 Replace S390_FP_REGNUM by S390_SP_REGNUM.
12274 Remove calls to:
12275 set_gdbarch_deprecated_max_register_raw_size,
12276 set_gdbarch_deprecated_max_register_virtual_size,
12277 set_gdbarch_deprecated_register_byte,
12278 set_gdbarch_cannot_fetch_register,
12279 set_gdbarch_cannot_store_register,
12280 set_gdbarch_deprecated_register_size,
12281 set_gdbarch_deprecated_register_raw_size,
12282 set_gdbarch_deprecated_register_virtual_size,
12283 set_gdbarch_deprecated_register_virtual_type,
12284 set_gdbarch_deprecated_register_bytes.
12285 Add calls to:
12286 set_gdbarch_num_pseudo_regs,
12287 set_gdbarch_register_type,
12288 set_gdbarch_convert_register_p,
12289 set_gdbarch_register_to_value,
12290 set_gdbarch_value_to_register,
12291 set_gdbarch_register_reggroup_p,
12292 set_gdbarch_regset_from_core_section,
12293 set_gdbarch_pseudo_register_read,
12294 set_gdbarch_pseudo_register_write,
12295 set_gdbarch_in_function_epilogue_p.
12296 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
12297 (s390_tdep_h): New variable.
12298
12299 2004-02-17 Jim Blandy <jimb@redhat.com>
12300
12301 * findvar.c (value_from_register): If the type has no length, just
12302 return an acceptable value --- don't report an internal error.
12303
12304 * stabsread.c (read_type): If we find any type numbers that are
12305 forward references, complain if the references aren't resolved by
12306 the time we're finished reading.
12307 (cleanup_undefined_types): Make error message more appropriate for
12308 a complaint.
12309
12310 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
12311
12312 * Makefile.in (defs_h): Remove dependency on progress_h.
12313 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
12314 progress.h.
12315 * main.c (captured_main): Delete use of START_PROGRESS and
12316 END_PROGRESS.
12317
12318 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
12319
12320 * objfiles.c (terminate_minimal_symbol_table): Add back
12321 initialization of MSYMBOL_TYPE.
12322
12323 2004-02-17 David Mosberger <davidm@hpl.hp.com>
12324
12325 Committed by Andrew Cagney.
12326 * Makefile.in (ia64_tdep_h): New macro.
12327 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
12328 (ia64-tdep.o): Likewise.
12329 * ia64-tdep.h: New file.
12330 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
12331 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
12332 (ia64_aix_sigcontext_register_address): Likewise.
12333 (ia64_linux_getunwind_table): Delete declaration.
12334 * ia64-linux-tdep.c: Likewise.
12335
12336 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
12337
12338 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
12339 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
12340 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
12341
12342 2004-02-17 Andrew Cagney <cagney@redhat.com>
12343
12344 * symtab.c (skip_prologue_using_sal): New function.
12345 * symtab.h (skip_prologue_using_sal): Declare.
12346 * frv-tdep.c: Include "symtab.h".
12347 (skip_prologue_using_sal): Delete function.
12348 * mips-tdep.c (skip_prologue_using_sal): Delete function.
12349 * rs6000-tdep.c (refine_prologue_limit): Mention
12350 skip_prologue_using_sal.
12351 * ia64-tdep.c (refine_prologue_limit): Ditto.
12352 * Makefile.in: Update dependencies.
12353
12354 2004-02-16 Andrew Cagney <cagney@redhat.com>
12355
12356 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
12357 START_INFERIOR_TRAPS_EXPECTED.
12358 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
12359 START_INFERIOR_TRAPS_EXPECTED.
12360 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
12361 Delete macro.
12362 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
12363 macro, moved to "nm-osf.h". Update copyright.
12364 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
12365 update copyright.
12366
12367 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
12368 and function replacing FRAMELESS_FUNCTION_INVOCATION.
12369 * blockframe.c (legacy_frameless_look_for_prologue): Rename
12370 frameless_look_for_prologue.
12371 * frame.h (legacy_frameless_look_for_prologue): Rename
12372 frameless_look_for_prologue.
12373 * gdbarch.h, gdbarch.c: Re-generate.
12374 * sh64-tdep.c (sh64_gdbarch_init): Update.
12375 * sh-tdep.c (sh_gdbarch_init): Update.
12376 * s390-tdep.c (s390_gdbarch_init): Update.
12377 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12378 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12379 * m68k-tdep.c (m68k_gdbarch_init): Update.
12380 (delta68_frame_args_address): Update.
12381 * m32r-tdep.c (m32r_gdbarch_init): Update.
12382 * hppa-tdep.c (hppa_gdbarch_init): Update.
12383 * h8300-tdep.c (h8300_gdbarch_init): Update.
12384 * frv-tdep.c (frv_gdbarch_init): Update.
12385 (frv_frameless_function_invocation): Update.
12386 * cris-tdep.c (cris_gdbarch_init): Update.
12387 (cris_frameless_function_invocation): Update.
12388 * avr-tdep.c (avr_gdbarch_init): Update.
12389 * arm-tdep.c (arm_gdbarch_init): Update.
12390 * stack.c (frame_info): Update, call predicate.
12391 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
12392 * frame.c (legacy_get_prev_frame): Update, call predicate..
12393 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
12394 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
12395 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
12396 invocation.
12397 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12398 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12399 * vax-tdep.c (vax_gdbarch_init): Ditto.
12400
12401 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
12402 function.
12403
12404 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
12405
12406 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
12407 initializations.
12408
12409 2004-02-16 Andrew Cagney <cagney@redhat.com>
12410
12411 * tui/tui-windata.c: Include "gdb_string.h".
12412 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
12413 * tui/tui-layout.c, tui/tui-command.c: Ditto.
12414 * Makefile.in: Update dependencies.
12415
12416 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
12417
12418 * Makefile.in (infrun.o): Add $(gdb_assert_h).
12419 * infrun.c: Include "gdb_assert.h".
12420 (singlestep_ptid, saved_singlestep_ptid)
12421 (stepping_past_singlestep_breakpoint): New variables.
12422 (resume): Set singlestep_ptid. Check for singlestep thread
12423 hop.
12424 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
12425 (handle_inferior_event): Handle singlestep thread hop.
12426
12427 2004-02-16 Andrew Cagney <cagney@redhat.com>
12428
12429 * dwarf2-frame.c (dwarf2_frame_ops): New function.
12430 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
12431 (dwarf2_frame_init_reg): Ditto.
12432
12433 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
12434 suggested by Joshua Neuheisel
12435
12436 * configure.in: Always check for curses, including pdcurses.
12437 Warn, instead of error, when no curses are found. Enable TUI when
12438 curses is available.
12439 * configure: Re-generate.
12440
12441 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
12442
12443 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
12444 sh_sh4_register_convert_to_virtual.
12445 (sh_register_convert_to_raw): Rename from
12446 sh_sh4_register_convert_to_raw.
12447 (sh_pseudo_register_read): Accomodate above name change.
12448 (sh_pseudo_register_write): Ditto.
12449
12450 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
12451
12452 * sh-tdep.c (sh_generic_register_name): Remove.
12453 (sh_gdbarch_init): Use sh_sh_register_name in default case.
12454
12455 2004-02-15 Andrew Cagney <cagney@redhat.com>
12456
12457 * configure.in (build_warnings): Add -Wunused-function.
12458 * configure: Re-generate.
12459
12460 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
12461 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
12462
12463 * procfs.c (procfs_init_inferior): Assume that
12464 START_INFERIOR_TRAPS_EXPECTED is defined.
12465 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
12466 * config/ns32k/tm-nbsd.h: Delete file,
12467 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
12468
12469 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
12470 * config/vax/tm-vax.h: Delete file.
12471
12472 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12473 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12474 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12475 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12476 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
12477 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
12478 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
12479
12480 2004-02-15 Mark Kettenis <kettenis@gnu.org>
12481
12482 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
12483 * dwarf2-frame.c (dwarf2_frame_data): New variable.
12484 (struct dwarf2_frame_ops): New.
12485 (dwarf2_frame_default_init_reg): New function, based on
12486 dwarf2_frame_init_reg.
12487 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
12488 (dwarf2_frame_init_reg): Call architecture-specific function.
12489 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
12490 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
12491 instead of dwarf2_frame_data.
12492 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
12493 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
12494
12495 2004-02-15 Andrew Cagney <cagney@redhat.com>
12496
12497 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
12498 register_gdbarch_swap.
12499 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
12500 * f-lang.c (_initialize_f_language): Update, use
12501 DEPRECATED_REGISTER_GDBARCH_SWAP.
12502 * remote.c (_initialize_remote): Ditto.
12503 * regcache.c (_initialize_regcache): Ditto.
12504 * parse.c (_initialize_parse): Ditto.
12505 * infrun.c (_initialize_infrun): Ditto.
12506 * mi/mi-main.c (_initialize_mi_main): Ditto.
12507 * gdbtypes.c (_initialize_gdbtypes): Ditto.
12508
12509 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
12510 poking .cacheable directly.
12511 * symfile.c (symfile_bfd_open): Ditto.
12512
12513 * Makefile.in: Update all dependencies.
12514
12515 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
12516 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
12517 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
12518 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
12519 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
12520
12521 2004-02-14 Andrew Cagney <cagney@redhat.com>
12522
12523 * arch-utils.c (legacy_convert_register_p): Check
12524 DEPRECATED_REGISTER_CONVERTIBLE_P.
12525 * findvar.c (value_of_register): Ditto.
12526
12527 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
12528 * gdbarch.h, gdbarch.c: Re-generate.
12529 * arch-utils.c (deprecated_register_convertible_not): Delete.
12530 * arch-utils.h (deprecated_register_convertible_not): Delete.
12531 * mi/mi-main.c (get_register): Update. Update copyright.
12532 * infcmd.c (default_print_registers_info): Update.
12533
12534 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
12535 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
12536 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
12537 * gdbarch.h, gdbarch.c: Re-generate.
12538 * frame.c (deprecated_get_next_frame_hack): Delete function.
12539 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
12540 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
12541 Update.
12542 * infcall.c (call_function_by_hand): Update.
12543
12544 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
12545
12546 * symfile.c (init_entry_point_info, entry_point_address): Move
12547 from here...
12548 * objfiles.c (init_entry_point_info, entry_point_address):..to
12549 here.
12550 * symfile.h (init_entry_point_info, entry_point_address): Remove
12551 prototypes.
12552 * objfiles.h (init_entry_point_info, entry_point_address):Add
12553 prototypes.
12554 * cris-tdep.c: Remove include of symfile.h. Add include of
12555 objfiles.h.
12556 * infcall.c: Ditto.
12557 * mcore-tdep.c: Ditto.
12558 * mn10300-tdep.c: Ditto.
12559 * sh64-tdep.c: Ditto.
12560 * v850-tdep.c: Ditto.
12561 * arm-tdep.c: Remove include of symfile.h.
12562 * blockframe.c: Ditto.
12563 * coffread.c: Ditto.
12564 * dbxread.c: Ditto.
12565 * dwarf2read.c: Ditto.
12566 * dwarfread.c: Ditto.
12567 * frv-tdep.c: Ditto.
12568 * ia64-tdep.c: Ditto.
12569 * mdebugread.c: Ditto.
12570 * mipsread.c: Ditto.
12571 * rs6000-tdep.c: Ditto.
12572 * s390-tdep.c: Ditto.
12573 * sh-tdep.c: Ditto.
12574 * xstormy16-tdep.c: Ditto.
12575 * gdbarch.sh: Remove include of symfile.h.
12576 * gdbarch.c: Regenerate.
12577 * solib-irix.c (enable_break): Use entry_point_address().
12578 Add comment about include file.
12579 * xcoffread.c: Add comment about include file.
12580 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
12581 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
12582 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
12583 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
12584 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
12585
12586 2004-02-13 Andrew Cagney <cagney@redhat.com>
12587
12588 * corelow.c (core_xfer_partial): Use "struct bfd_section".
12589 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
12590 copyright.
12591 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
12592
12593 2004-02-12 Fred Fish <fnf@redhat.com>
12594
12595 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
12596 set_gdbarch_store_return_value.
12597
12598 2004-02-12 Andrew Cagney <cagney@redhat.com>
12599
12600 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
12601 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
12602 (interrupt_query): Ditto.
12603 (ofunc): Delete unused variable.
12604 * cris-tdep.c (cris_abi): Delete unused function.
12605 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
12606 (cris_get_wide_opcode, cris_get_short_size): Ditto.
12607 (cris_get_asr_quick_shift_steps): Ditto.
12608 (cris_skip_prologue_frameless_p): Ditto.
12609 * arm-tdep.c (arm_push_return_address): Delete unused function.
12610 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
12611 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
12612 * s390-tdep.c (s390_function_start): Delete unused function.
12613
12614 2004-02-12 Andrew Cagney <cagney@redhat.com>
12615
12616 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
12617 gdbarch.h, gdbarch.c: Re-generate.
12618 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
12619 to generic_prologue_frameless_p.
12620 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
12621 * arch-utils.c (generic_prologue_frameless_p): Delete function.
12622
12623 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
12624
12625 * mips-linux-tdep.c: Include "frame.h".
12626 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
12627 (mips_linux_skip_resolver): New functions.
12628 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
12629 and set_gdbarch_in_solib_call_trampoline.
12630 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
12631 to after set_gdbarch_in_solib_return_trampoline. Only set the
12632 solib hooks to mips16 functions if the OS ABI is unknown.
12633 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
12634 including "config/tm-linux.h".
12635 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
12636 * Makefile.in (mips-linux-tdep.o): Update.
12637
12638 2004-02-11 David Carlton <carlton@kealia.com>
12639
12640 * linespec.c (decode_compound): Only look for a class symbol when
12641 considering all but the rightmost component.
12642
12643 2004-02-11 Andrew Cagney <cagney@redhat.com>
12644
12645 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
12646 abi code are are separatly grouped.
12647
12648 2004-02-11 Andrew Cagney <cagney@redhat.com>
12649
12650 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
12651 * gdbarch.h, gdbarch.c: Re-generate.
12652 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12653 * v850-tdep.c (v850_gdbarch_init): Update.
12654 * sh64-tdep.c (sh64_gdbarch_init): Update.
12655 * sh-tdep.c (sh_gdbarch_init): Update.
12656 * s390-tdep.c (s390_gdbarch_init): Update.
12657 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12658 * mips-tdep.c (mips_gdbarch_init): Update.
12659 * mcore-tdep.c (mcore_gdbarch_init): Update.
12660 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12661 * m32r-tdep.c (m32r_gdbarch_init): Update.
12662 * ia64-tdep.c (ia64_gdbarch_init): Update.
12663 * hppa-tdep.c (hppa_gdbarch_init): Update.
12664 * h8300-tdep.c (h8300_gdbarch_init): Update.
12665 * frv-tdep.c (frv_gdbarch_init): Update.
12666 * d10v-tdep.c (d10v_gdbarch_init): Update.
12667 * cris-tdep.c (cris_gdbarch_init): Update.
12668 * avr-tdep.c (avr_gdbarch_init): Update.
12669 * arm-tdep.c (arm_gdbarch_init): Update.
12670 * alpha-tdep.c (alpha_gdbarch_init): Update.
12671
12672 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
12673
12674 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
12675 comma.
12676 (sh_sh4al_dsp_register_name): Ditto.
12677
12678 2004-02-10 Andrew Cagney <cagney@redhat.com>
12679
12680 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
12681 (mips_init_frame_pc_first): Delete function.
12682 (mips_frame_saved_pc): Delete function.
12683 (mips_frame_chain): Delete function.
12684 (mips_init_extra_frame_info): Delete function.
12685 (mips_xfer_register): Delete unused variable "reg".
12686 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
12687 (mips_n32n64_return_value): Delete unused variable "reg".
12688 (mips_n32n64_return_value): Delete unused variable "pos".
12689 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
12690 (mips_o32_return_value): Delete unused variable "pos".
12691 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
12692 (mips_print_fp_register): Delete unused variable "namelen"
12693 (mips_print_fp_register): Delete unused variable "flt2"
12694 (get_frame_pointer): Delete function.
12695 (cached_proc_desc): Delete static variable.
12696 (mips_pop_frame): Delete function.
12697 (mips_find_saved_regs): Delete function.
12698 (mips_get_saved_register): Delete function.
12699 (mips_saved_pc_after_call): Delete function.
12700 (SIGFRAME_BASE): Delete macro.
12701 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
12702 (SIGFRAME_PC_OFF): Delete macro.
12703 (SIGFRAME_REGSAVE_OFF): Delete macro.
12704 (mips_dump_tdep): Do not print deleted macro definitions.
12705
12706 2004-02-10 Andrew Cagney <cagney@redhat.com>
12707
12708 * Makefile.in (SFILES): Remove explictly listed tui files.
12709 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
12710
12711 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
12712
12713 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
12714 to use paddr functions to format ia64 addresses and long values.
12715 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
12716 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
12717 (get_kernel_table, ia64_find_proc_info_x): Ditto.
12718 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
12719 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
12720
12721 2004-02-10 Andrew Cagney <cagney@redhat.com>
12722
12723 * defs.h: Do not include "tui.h".
12724 * gdb_curses.h: New file.
12725 * tui/tui-hooks.h: New file.
12726 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
12727 (tui_install_hooks, tui_remove_hooks): Delete declarations.
12728 (tui_initialize_io): Delete declaration.
12729 (tui_initialize_readline: Delete redundant declaration.
12730 (struct tui_point): Delete definition.
12731 * tui/tui-data.h (struct tui_point): Define.
12732 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
12733 * utils.c: Include "tui/tui.h".
12734 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
12735 * printcmd.c [TUI]: Include "tui/tui.h".
12736 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
12737 * tui/tui-command.c: Include "gdb_curses.h".
12738 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
12739 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
12740 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
12741 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
12742 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
12743 * Makefile.in: Update all dependencies.
12744 (tui_hooks_h, gdb_curses_h): Define.
12745 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
12746
12747 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
12748
12749 * objfiles.h (struct objfile): Remove unused fields auxf1 and
12750 auxf2. Add comments about some other rarely used fields.
12751
12752 2004-02-10 Andrew Cagney <cagney@redhat.com>
12753
12754 * Makefile.in (init.c): Fix script removing duplicates. Problem
12755 reported by Peter Schauer.
12756
12757 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12758
12759 * bcache.c (bcache_xmalloc): Use obstack_init instead of
12760 obstack_specify_allocation.
12761 * objfiles.c (allocate_objfile): Ditto.
12762 * solib-sunos.c (solib_add_common_symbols)
12763 (allocate_rt_common_objfile): Ditto.
12764 * symfile.c (reread_symbols): Ditto.
12765 * gdb_obstack.h: Add comment.
12766
12767 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
12768
12769 * linespec.c (decode_line_1, locate_first_half)
12770 (decode_compound, lookup_prefix_sym): Update comments. Delete old
12771 commented out code.
12772
12773 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
12774
12775 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
12776 obstack_free.
12777
12778 2004-02-09 Andrew Cagney <cagney@redhat.com>
12779
12780 * blockframe.c (find_pc_partial_function): If find_pc_overlay
12781 fails, try find_pc_section. Fix PR c++/1267.
12782 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
12783 instead of find_pc_mapped_section.
12784 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
12785 not default to the section containing PC. Fix PR symtab/1519.
12786
12787 2004-02-09 Andrew Cagney <cagney@redhat.com>
12788
12789 * Makefile.in (mips-tdep.o): Update dependencies.
12790 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
12791 "trad-frame.h".
12792 (mips_unwind_pc): Return the pseudo PC register.
12793 (mips_unwind_dummy_id): New function.
12794 (mips16_fetch_instruction): New function.
12795 (mips32_fetch_instruction): New function.
12796 (struct mips_frame_cache): Define.
12797 (mips_mdebug_frame_cache): New function.
12798 (mips_mdebug_frame_this_id): New function.
12799 (mips_mdebug_frame_prev_register): New function.
12800 (mips_mdebug_frame_unwind): Define.
12801 (mips_mdebug_frame_sniffer): New function.
12802 (mips_mdebug_frame_base_address): New function.
12803 (mips_mdebug_frame_base): Define.
12804 (mips_mdebug_frame_base_sniffer): New function.
12805 (mips_gdbarch_init): Append unwind and base sniffers. Set
12806 unwind_dummy_id.
12807
12808 2004-02-08 Andrew Cagney <cagney@redhat.com>
12809
12810 * frame.c: Print both the register number and name.
12811
12812 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
12813 and a sed into a single sed. Make .c and .o patterns more robust.
12814 (OBS): Delete.
12815 (INIT_FILES): Replace OBS with COMMON_OBS.
12816 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
12817
12818 2004-02-08 Mark Kettenis <kettenis@gnu.org>
12819
12820 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
12821 the PT_WCOOKIE request.
12822
12823 2004-02-08 Andrew Cagney <cagney@redhat.com>
12824
12825 * mips-tdep.c (mips_unwind_pc): New function.
12826 (mips_gdbarch_init): Set mips_unwind_pc.
12827
12828 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
12829 (get_frame_id): Allow the UNKNOWN_FRAME.
12830 (frame_register_unwind, get_frame_type): Ditto.
12831
12832 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
12833 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
12834 unwind_dummy_id indicates a legacy frame.
12835
12836 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
12837 * configure: Re-generate.
12838
12839 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
12840 methods.
12841
12842 2004-02-08 Andrew Cagney <cagney@redhat.com>
12843
12844 * configure.in (CONFIG_ALL): Set to Makefile target, and not
12845 makefile macro.
12846 * configure: Re-generate.
12847 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
12848 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
12849 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
12850 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
12851 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
12852 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
12853 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
12854 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
12855 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
12856 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
12857
12858 2004-02-07 Andrew Cagney <cagney@redhat.com>
12859
12860 * Makefile.in: Update all dependencies.
12861
12862 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
12863 * configure: Re-generate.
12864 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
12865 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
12866 (COMMON_OBS): Add "main.o" and "annotate.o".
12867 (ANNOTATE_OBS): Delete.
12868 (OBS): Remove ANNOTATE_OBS.
12869 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
12870 CONFIG_INITS.
12871 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
12872 against CONFIG_OBS and "main.o".
12873 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
12874 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
12875
12876 * tui/tui-command.c: Include "gdb_string.h", delete register
12877 attribute, use ISO-C function signatures.
12878 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
12879 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12880 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
12881 * tui/tui.c: Ditto.
12882
12883 * tui/tui-command.c: Change variable and function names to lower
12884 case.
12885 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
12886 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
12887 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
12888 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12889 * tui/tui-winsource.c, tui/tui.c: Ditto.
12890
12891 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
12892
12893 * buildsym.c (free_pending_blocks, finish_block)
12894 (record_pending_block, make_blockvector, end_symtab): Replace
12895 symbol_obstack with objfile_obstack.
12896 * coffread.c (process_coff_symbol, coff_read_struct_type)
12897 (coff_read_enum_type): Ditto.
12898 * cp-namespace.c (initialize_namespace_symtab)
12899 (check_one_possible_namespace_symbol): Ditto.
12900 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
12901 (dwarf2_symbol_mark_computed): Ditto.
12902 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
12903 * elfread.c (elf_symtab_read): Ditto.
12904 * hpread.c (hpread_symfile_init, hpread_symfile_init)
12905 (hpread_read_enum_type, hpread_read_function_type)
12906 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
12907 Ditto.
12908 * jv-lang.c (get_java_class_symtab, add_class_symbol)
12909 (java_link_class_type): Ditto.
12910 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
12911 (new_symbol): Ditto.
12912 * minsyms.c (install_minimal_symbols): Ditto.
12913 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
12914 (terminate_minimal_symbol_table): Replace symbol_obstack with
12915 objfile_obstack.
12916 (free_objfile): Remove freeing of symbol_obstack.
12917 * objfiles.h: Remove symbol_obstack field.
12918 * pa64solib.c (add_to_solist): Replace symbol_obstack with
12919 objfile_obstack.
12920 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
12921 symbol_obstack.
12922 (solib_add_common_symbols): Replace symbol_obstack with
12923 objfile_obstack.
12924 * somsolib.c (som_solib_add): Ditto.
12925 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
12926 (common_block_start, common_block_end): Ditto.
12927 * symfile.c (reread_symbols): Remove freeing and init of
12928 symbol_obstack.
12929 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
12930 * symfile.h: Update comment.
12931 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
12932 stats printing.
12933 * symtab.c (symbol_set_names): Replace symbol_obstack with
12934 objfile_obstack.
12935 * symtab.h (struct general_symbol_info, struct minimal_symbol):
12936 Update comments.
12937 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
12938 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
12939 objfile_obstack.
12940
12941 2004-02-07 Andrew Cagney <cagney@redhat.com>
12942
12943 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
12944 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
12945 fields and variables.
12946 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
12947 (m_beInvisible): Delete macro.
12948 * tui/tui-data.h: Fix case case fields and variables.
12949 (m_genWinPtrIsNull): Delete macro.
12950 (tui_win_list): Rename winList.
12951 (TUI_SRC_WIN): Rename srcWin.
12952 (TUI_DISASM_WIN): Rename disassemWin.
12953 (TUI_DATA_WIN): Rename dataWin.
12954 (TUI_CMD_WIN): Rename cmdWin.
12955 (m_genWinPtrNotNull): Delete macro.
12956 (m_winPtrIsNull): Delete macro.
12957 (m_winPtrNotNull): Delete macro.
12958 (tui_win_is_source_type): Replace m_winIsSourceType
12959 (tui_win_is_auxillary): Replace m_winIsAuzillary.
12960 (tui_win_has_locator): Replace m_hasLocator.
12961 (tui_set_win_highlight): Replace m_setWinHighlightOn and
12962 m_setWinHighlightOff.
12963 * tui/tui-data.c: Update references.
12964 (tui_win_is_source_type, tui_set_win_highlight): New functions.
12965 (tui_win_has_locator, tui_win_is_auxillary): New functions.
12966 * tui/tui-command.c, tui/tui-disasm.c: Update references.
12967 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
12968 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
12969 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
12970 * tui/tui-winsource.c, tui/tui.c: Ditto.
12971
12972 2004-02-07 Mark Kettenis <kettenis@gnu.org>
12973
12974 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
12975 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
12976 StackGhost.
12977
12978 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
12979 variable `i6' to `i7'.
12980 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
12981
12982 2004-02-07 Andrew Cagney <cagney@redhat.com>
12983
12984 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
12985 (TuiPoint, TuiPointPtr): Ditto.
12986 (TuiStatus, TuiStatusPtr): Ditto.
12987 (TuiWinType, TuiWinTypePtr): Ditto.
12988 (struct tui_point): Rename _TuiPoint.
12989 (tui_get_low_disassembly_address): Rename
12990 tuiGetLowDisassemblyAddress.
12991 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
12992 (tuiFree): Delete declaration.
12993 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
12994 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
12995 * tui/tui.c (tuiFree): Delete function.
12996 * cli/cli-cmds.c (disassemble_command): Update references.
12997 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
12998 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
12999 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
13000 * tui/tui-winsource.c: Ditto.
13001
13002 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
13003
13004 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
13005 coffstab_build_psymtabs, elfstab_build_psymtabs)
13006 (stabsect_build_psymtabs): Replace psymbol_obstack with
13007 objfile_obstack.
13008 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
13009 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
13010 Ditto.
13011 * dwarfread.c (scan_compilation_units): Ditto.
13012 * elfread.c (elfstab_offset_sections): Ditto.
13013 * hppa-tdep.c (read_unwind_info): Ditto.
13014 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
13015 (hpread_end_psymtab): Ditto.
13016 * mdebugread.c (mdebug_build_psymtabs, add_pending)
13017 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
13018 Ditto.
13019 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
13020 * objfiles.c (add_to_objfile_sections)
13021 (build_objfile_section_table): Ditto.
13022 (allocate_objfile): Remove init of psymbol_obstack.
13023 (free_objfile): Remove freeing of psymbol_obstack.
13024 * objfiles.h (struct objfile): Remove field
13025 psymbol_obstack. Update comments.
13026 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
13027 psymbol_obstack with objfile_obstack.
13028 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
13029 psymbol_obstack.
13030 * somread.c (som_symfile_offsets, init_import_symbols)
13031 (init_export_symbols): Replace psymbol_obstack with
13032 objfile_obstack.
13033 * somsolib.c (som_solib_add_solib_objfile): Ditto.
13034 * symfile.c (default_symfile_offsets, syms_from_objfile)
13035 (reread_symbols): Remove freeing and init of psymbol_obstack.
13036 (cashier_psymtab): Update comment.
13037 * symmisc.c (print_objfile_statistics): Don't report stats for
13038 psymbol obstack.
13039 * symtab.h (struct general_symbol_info, struct partial_symtab):
13040 Update comments.
13041 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
13042 (xcoff_symfile_offsets): Replace psymbol_obstack with
13043 objfile_obstack.
13044
13045 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
13046
13047 * objfiles.h (struct objfile): Add objfile_obstack field.
13048 Remove type_obstack field.
13049
13050 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
13051 read_structure_scope read_enumeration, new_symbol): Replace
13052 type_obstack with objfile_obstack.
13053 * dwarfread.c (struct_type, enum_type): Ditto.
13054 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
13055 (lookup_fundamental_type): Ditto.
13056 * gdbtypes.h (TYPE_ALLOC): Ditto.
13057 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
13058 (hpread_read_doc_function_type, hpread_read_struct_type)
13059 (fix_static_member_physnames, hpread_read_array_type)
13060 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
13061 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
13062 (java_link_class_type): Ditto.
13063 * mdebugread.c (parse_type): Ditto.
13064 * objfiles.c (allocate_objfile, free_objfile): Ditto.
13065 * solib-sunos.c (solib_add_common_symbols): Ditto.
13066 * stabsread.c (define_symbol, read_type, read_member_functions,
13067 read_cpp_abbrev, read_one_struct_field): Ditto.
13068 * symfile.c (reread_symbols): Ditto.
13069 * symmisc.c (print_objfile_statistics): Ditto.
13070
13071 2004-02-07 Andrew Cagney <cagney@redhat.com>
13072
13073 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
13074 (tui_exec_info_content): Rename TuiExecInfoContent.
13075 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
13076 (TuiWinInfo, TuiWinInfoPtr): Ditto.
13077 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
13078 (TuiList, TuiListPtr): Ditto.
13079 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
13080 (TuiDataType, TuiDataTypePtr): Ditto.
13081 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
13082 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
13083 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
13084 (TuiSourceElement, TuiSourceElementPtr): Ditto.
13085 (TuiDataElement, TuiDataElementPtr): Ditto.
13086 (TuiWinElement, TuiWinElementPtr): Ditto.
13087 (TuiDataInfo, TuiDataInfoPtr): Ditto.
13088 (TuiCommandElement, TuiCommandElementPtr): Ditto.
13089 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
13090 (TuiWhichElement, TuiWhichElementPtr): Ditto.
13091 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
13092 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
13093 * tui/tui-command.c, tui/tui-data.c: Update references.
13094 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
13095 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
13096 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
13097 * tui/tui-winsource.c, tui/tui.c: Ditto.
13098
13099 2004-02-07 Mark Kettenis <kettenis@gnu.org>
13100
13101 * dwarf2-frame.h: Update copyright.
13102 (enum dwarf2_frame_reg_rule): New.
13103 (struct dwarf2_frame_state_reg): New.
13104 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
13105 * dwarf2-frame.c: Update copyright.
13106 (enum dwarf2_reg_rule): Remove.
13107 (struct dwarf2_frame_state): Remove defenition of `struct
13108 dwarf2_frame_state_reg'.
13109 (read_reg): Call get_frame_arch to get the architecture instead of
13110 using CURRENT_GDBARCH.
13111 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
13112 DWARF2_FRAME_.
13113 (dwarf2_frame_init_reg): New function.
13114 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
13115 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
13116 initialize the register state. Prefix old `enum dwarf2_reg_rule'
13117 tags with DWARF2_FRAME_.
13118 (dwarf2_frame_prev_register): Call get_frame_arch to get the
13119 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
13120 dwarf2_reg_rule' tags with DWARF2_FRAME_.
13121
13122 2004-02-06 Andrew Cagney <cagney@redhat.com>
13123
13124 * tui/tui-data.h (struct tui_list): Rename _TuiList.
13125 (enum tui_data_type): Rename _TuiDataType.
13126 (struct tui_layout_def): Rename _TuiLayoutDef.
13127 (struct tui_source_element): Rename _TuiSourceElement.
13128 (struct tui_data_element): Rename _TuiDataElement.
13129 (struct tui_command_element): Rename _TuiCommandElement.
13130 (struct tui_locator_element): Rename _TuiLocatorElement.
13131 (union tui_which_element): Define.
13132 (struct tui_win_element): Rename _TuiWinElement.
13133 (struct tui_data_info): Rename _TuiDataInfo.
13134 (struct tui_source_info): Rename _TuiSourceInfo.
13135 (struct tui_command_info): Rename _TuiCommandInfo.
13136 (tui_initialize_static_data): Rename initializeStaticData.
13137 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
13138 (tui_alloc_win_info): Rename allocWinInfo.
13139 (tui_init_generic_part): Rename initGenericPart.
13140 (tui_init_win_info): Rename initWinInfo.
13141 (tui_alloc_content): Rename allocContent.
13142 (tui_add_content_elements): Rename addContentElements.
13143 (tui_init_content_element): Rename initContentElement.
13144 (tui_free_window): Rename freeWindow.
13145 (tui_free_win_content): Rename freeWinContent.
13146 (tui_free_data_content): Rename freeDataContent.
13147 (tui_free_all_source_wins_content): Rename
13148 freeAllSourceWinsContent.
13149 (tui_del_window): Rename tuiDelWindow.
13150 (tui_del_data_windows): Rename tuiDelDataWindows.
13151 (tui_partial_win_by_name): Rename partialWinByName.
13152 (tui_win_name): Rename winName.
13153 (tui_current_layout): Rename currentLayout.
13154 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
13155 (tui_term_height): Rename termHeight.
13156 (tui_set_term_height_to): Rename setTermHeightTo.
13157 (tui_term_width): Rename termWidth.
13158 (tui_set_term_width_to): Rename setTermWidthTo.
13159 (tui_set_gen_win_origin): Rename setGenWinOrigin.
13160 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
13161 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
13162 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
13163 (tui_source_windows): Rename sourceWindows.
13164 (tui_clear_source_windows): Rename clearSourceWindows.
13165 (tui_clear_source_windows_detail): Rename
13166 clearSourceWindowsDetail.
13167 (tui_clear_win_detail): Rename clearWinDetail.
13168 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
13169 (tui_default_tab_len): Rename tuiDefaultTabLen.
13170 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
13171 (tui_win_with_focus): Rename tuiWinWithFocus.
13172 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
13173 (tui_layout_def): Rename tuiLayoutDef.
13174 (tui_win_resized): Rename tuiWinResized.
13175 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
13176 (tui_next_win): Rename tuiNextWin.
13177 (tui_prev_win): Rename tuiPrevWin.
13178 (tui_add_to_source_windows): Rename addToSourceWindows.
13179 * tui/tui-winsource.c, tui/tui-win.c: Update references.
13180 * tui/tui-layout.c, tui/tui-source.c: Ditto.
13181 * tui/tui-stack.c, tui/tui-io.c: Ditto.
13182 * tui/tui.c, tui/tui-data.c: Ditto.
13183 * tui/tui-interp.c, tui/tui-data.c: Ditto.
13184 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
13185
13186 * tui/tui-source.h: Update copyright. Include "tui-data.h".
13187 (struct symtab): Declare.
13188 (tui_set_source_content): Rename tuiSetSourceContent.
13189 (tui_show_symtab_source): Rename tuiShowSource.
13190 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
13191 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
13192 * tui/tui-source.c: Update copyright. Update references.
13193 * tui/tui-win.c, tui/tui-winsource.c: Update references.
13194 * tui/tui-stack.c: Update references.
13195
13196 * tui/tui-win.h: Update copyright. Include "tui-data.h".
13197 (struct tui_win_info): Declare.
13198 (tui_scroll_forward): Rename tuiScrollForward.
13199 (tui_scroll_backward): Rename tuiScrollBackward.
13200 (tui_scroll_left): Rename tuiScrollLeft.
13201 (tui_scroll_right): Rename tuiScrollRight.
13202 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
13203 (tui_resize_all): Rename tuiResizeAll.
13204 (tui_refresh_all_win): Rename tuiRefreshAll.
13205 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
13206 * tui/tui-layout.c, * tui/tui-io.c: Update references.
13207 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
13208 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
13209
13210 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
13211 (tui_erase_data_content): Rename tuiEraseDataContent.
13212 (tui_display_all_data): Rename tuiDisplayAllData.
13213 (tui_check_data_values): Rename tuiCheckDataValues.
13214 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
13215 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
13216 (tui_first_data_element_no_in_line): Rename
13217 tuiFirstDataElementNoInLine.
13218 (tui_delete_data_content_windows): Rename
13219 tuiDeleteDataContentWindows.
13220 (tui_refresh_data_win): Rename tuiRefreshDataWin.
13221 (tui_display_data_from): Rename tuiDisplayDataFrom.
13222 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
13223 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
13224 * tui/tui-win.c, tui/tui-regs.c: Update references.
13225 * tui/tui-layout.c, tui/tui.c: Update references.
13226
13227 * tui/tui-wingeneral.h: Update copyright.
13228 (m_allBeVisible): Delete macro.
13229 (m_allBeInvisible): Delete macro.
13230 (struct tui_gen_win_info): Declare.
13231 (struct tui_win_info): Declare.
13232 (tui_unhighlight_win): Rename unhighlightWin.
13233 (tui_make_visible, tui_make_invisible): Replace makeVisible.
13234 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
13235 (tui_make_window): Rename makeWindow.
13236 (tui_copy_win): Rename copyWin.
13237 (tui_box_win): Rename boxWin.
13238 (tui_highlight_win): Rename highlightWin.
13239 (tui_check_and_display_highlight_if_needed): Rename
13240 checkAndDisplayHighlightIfNeeded.
13241 (tui_refresh_all): Rename refreshAll.
13242 (tui_delete_win): Rename tuiDelwin.
13243 (tui_refresh_win): Rename tuiRefreshWin.
13244 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
13245 (tui_make_visible, tui_make_invisible): New functions.
13246 (tui_make_all_visible, tui_make_all_invisible): New functions.
13247 (make_all_visible): Rename makeAllVisible.
13248 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
13249 * tui/tui-data.c, tui/tui-winsource.c: Update references.
13250 * tui/tui-windata.c, tui/tui-win.c: Update references.
13251 * tui/tui-regs.c, tui/tui-layout.c: Update references.
13252 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
13253
13254 2004-02-06 Mark Kettenis <kettenis@gnu.org>
13255
13256 * proc-api.c (write_with_trace): Initialize local variable to
13257 silence compiler warning.
13258
13259 2004-02-06 Andrew Cagney <cagney@redhat.com>
13260
13261 * tui/tui-source.h: Do not include "defs.h".
13262 (struct tui_win_info): Declare.
13263 (tui_set_source_content_nil): Declare.
13264 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
13265 (union tui_line_or_address): Rename _TuiLineOrAddress.
13266 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
13267 (tui_update_source_window): Rename tuiUpdateSourceWindow.
13268 (tui_update_source_window_as_is): Rename
13269 tuiUpdateSourceWindowAsIs.
13270 (tui_update_source_windows_with_addr): Rename
13271 tuiUpdateSourceWindowsWithAddr.
13272 (tui_update_source_windows_with_line): Rename
13273 tuiUpdateSourceWindowsWithLine.
13274 (tui_clear_source_content): Rename tuiClearSourceContent.
13275 (tui_erase_source_content): Rename tuiEraseSourceContent.
13276 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
13277 (tui_show_source_content): Rename tuiShowSourceContent.
13278 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
13279 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
13280 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
13281 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
13282 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
13283 (tui_update_exec_info): Rename tuiUpdateExecInfo.
13284 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
13285 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
13286 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
13287 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
13288 (struct tui_win_info): Declare.
13289 * tui/tui-stack.c: Update references.
13290 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
13291 * tui/tui-win.c, tui/tui-source.c: Ditto.
13292 * tui/tui.c, tui/tui-disasm.c: Ditto.
13293
13294 2004-02-06 Mark Kettenis <kettenis@gnu.org>
13295
13296 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
13297 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
13298
13299 2004-02-05 Mark Kettenis <kettenis@gnu.org>
13300
13301 * infrun.c (handle_inferior_event): Allow for breakpoint
13302 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
13303 and SIGEMT. Update comments.
13304 * NEWS (Revised SPARC target): Mention support for non-executable
13305 stack.
13306
13307 2004-02-04 Mark Kettenis <kettenis@gnu.org>
13308
13309 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
13310 * inftarg.c: Update copyright year.
13311 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
13312 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
13313 (sparc_xfer_wcookie): New function.
13314 * sparc-tdep.c (sparc_fetch_wcookie): New function.
13315 * Makefile.in (sparc-nat.o): Update dependencies.
13316 * config/sparc/nm-nbsd.h: Include "target.h".
13317 (NATIVE_XFER_WCOOKIE): New define.
13318 (sparc_xfer_wcookie): New prototype.
13319
13320 2004-02-04 Andrew Cagney <cagney@redhat.com>
13321
13322 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
13323 SYSCALL_TRAP function.
13324 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
13325
13326 2004-02-04 Andrew Cagney <cagney@redhat.com>
13327 Daniel Jacobowitz <drow@mvista.com>
13328
13329 * objfiles.h: Delete comments refering to inside_entry_func and
13330 DEPRECATED_FRAME_CHAIN_VALID.
13331 * defs.h (inside_entry_func): Update prototype..
13332 * blockframe.c (inside_entry_func): Rename to
13333 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
13334 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
13335
13336 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
13337
13338 * breakpoint.c (struct captured_parse_breakpoint_args): Move
13339 outside of #ifdef SOLIB_ADD region.
13340 (do_restore_lang_radix_cleanup): Ditto.
13341 (resolve_pending_breakpoint): Ditto.
13342
13343 2004-02-03 Andrew Cagney <cagney@redhat.com>
13344
13345 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
13346 (process_note_abi_tag_sections): Delete unused function.
13347 (ia64_read_fp): Delete unused function.
13348 (gdbarch_extract_struct_value_address): Delete declaration.
13349
13350 2004-02-02 Andrew Cagney <cagney@redhat.com>
13351
13352 * vax-tdep.c (vax_frame_chain): Delete call to
13353 deprecated_inside_entry_file.
13354 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
13355
13356 2004-02-02 Mark Kettenis <kettenis@gnu.org>
13357
13358 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
13359 column that's "empty" or "same value" when eliminating REG_RA
13360 rules.
13361
13362 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
13363
13364 * NEWS: Add information about new pending breakpoint support.
13365
13366 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
13367
13368 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
13369 and pending fields for pending breakpoint support.
13370 * breakpoint.c (breakpoint_enabled): Add check for not pending.
13371 (condition_command): Only parse condition if not a pending
13372 breakpoint.
13373 (print_one_breakpoint): Add support for pending breakpoints.
13374 (describe_other_breakpoints): Add checks to verify we are not
13375 dealing with pending breakpoints.
13376 (check_duplicates): Don't check pending breakpoints.
13377 (set_raw_breakpoint): Initialize pending flag.
13378 (do_restore_lang_radix_cleanup): New cleanup routine.
13379 (resolve_pending_breakpoint): New function.
13380 (re_enable_breakpoints_in_shlibs): Try and resolve any
13381 pending breakpoints via resolve_pending_breakpoint.
13382 (mention): Add pending breakpoint support.
13383 (parse_breakpoint_sals): Add new parameter to pass to
13384 decode_line_1 to indicate silent errors when files or functions
13385 are not found. Change all callers.
13386 (do_captured_parse_breakpoint): New function.
13387 (break_command_1): Change prototype to return an rc value and to
13388 take an optional pending breakpoint pointer. Support creating
13389 a pending breakpoint if a "not found" form of error occurs when
13390 parsing the breakpoint. Also support resolving an existing pending
13391 breakpoint and be silent if the resolution fails.
13392 (create_breakpoints): Change prototype to take pending breakpoint
13393 pointer. When resolving a pending breakpoint, use the new pointer
13394 to provide a conditional or commands added by the end-user.
13395 (delete_breakpoint): Add appropriate check for pending.
13396 (breakpoint_re_set_one): Ditto.
13397 (do_enable_breakpoint): Ditto.
13398
13399 2004-02-02 David Carlton <carlton@kealia.com>
13400
13401 * valops.c (enum oload_classification): New.
13402 (find_overload_match): Break implementation into separate
13403 functions; delete #if 0'd code; look for symbols within
13404 namespaces.
13405 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
13406 (find_oload_champ,oload_method_static,classify_oload_match): New.
13407 * cp-support.h: Add declaration for cp_func_name; update
13408 declaration for make_symbol_overload_list.
13409 * cp-support.c (cp_func_name): New.
13410 (overload_list_add_symbol): Fix comment, use
13411 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
13412 (make_symbol_overload_list): Take a function name and a namespace
13413 instead of a symbol; change implementation.
13414 (make_symbol_overload_list_using): New.
13415 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
13416
13417 2004-02-02 Fred Fish <fnf@redhat.com>
13418
13419 * main.c (gdb_stdtarg): Move definition to group with other
13420 gdb_stdtarg definitions and update copyright years.
13421 * remote-sim.c (gdb_os_write_stderr): Write output to
13422 gdb_stdtargerr stream instead of gdb_stdtarg stream.
13423 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
13424 gdb_stderr stream and update copyright years.
13425
13426 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13427
13428 * Makefile.in (mips-linux-nat.o): Update dependencies.
13429 * mips-linux-nat.c: Include mips-tdep.h.
13430
13431 2004-02-01 Roland McGrath <roland@redhat.com>
13432
13433 * sol-thread.c (sol_thread_xfer_partial): New function.
13434 (init_sol_thread_ops): Use that for to_xfer_partial hook.
13435 (init_sol_core_ops): Likewise.
13436
13437 * procfs.c (procfs_xfer_partial): New function.
13438 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
13439 * Makefile.in (procfs.o): Add $(auxv_h) dep.
13440
13441 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
13442 procfs_xfer_auxv function.
13443
13444 * procfs.c (procfs_make_note_section): If we can read
13445 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
13446 * linux-proc.c (linux_make_note_section): Likewise.
13447
13448 * auxv.h: New file.
13449 * auxv.c: New file.
13450 * Makefile.in (auxv_h): New variable.
13451 (COMMON_OBS): Add auxv.o here.
13452 (auxv.o): New target.
13453
13454 * corelow.c (core_xfer_partial): New function.
13455 (init_core_ops): Use it for core_ops.to_xfer_partial.
13456
13457 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
13458 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
13459 macro if that is defined.
13460
13461 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13462
13463 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
13464 and check the specified thread for each breakpoint.
13465 * breakpoint.h (bpstat_stop_status): Update prototype.
13466 * infrun.c (handle_inferior_event): Update calls to
13467 bpstat_stop_status.
13468
13469 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13470
13471 * Makefile.in (cli-cmds.o): Add $(readline_h).
13472
13473 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
13474
13475 * cli/cli-cmds.c: Include readline.h.
13476 (complete_command): Pass the start of the last word to
13477 complete_line.
13478
13479 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13480
13481 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
13482 argument, and change first argument to a CORE_ADDR.
13483 * breakpoint.h (bpstat_stop_status): Update prototype.
13484 * infrun.c (adjust_pc_after_break): Add a new comment.
13485 (handle_inferior_event): Update calls to bpstat_stop_status.
13486
13487 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13488
13489 * breakpoint.h: Update copyright years.
13490
13491 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13492
13493 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
13494 (bpstat_stop_status): Don't decrement PC.
13495 * breakpoint.h (software_breakpoint_inserted_here_p): Add
13496 prototype.
13497 * infrun.c (adjust_pc_after_break): New function.
13498 (handle_inferior_event): Call it, early. Remove later references
13499 to DECR_PC_AFTER_BREAK.
13500 (normal_stop): Add commentary.
13501
13502 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
13503
13504 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
13505 2004-01-27 double-free fix.
13506
13507 2004-01-31 Mark Kettenis <kettenis@gnu.org>
13508
13509 * sparc-tdep.c (sparc_fetch_wcookie): New function.
13510 (sparc32_frame_prev_register): Handle StackGhost.
13511 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
13512
13513 2004-01-29 Roland McGrath <roland@redhat.com>
13514
13515 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
13516 * configure: Regenerated.
13517
13518 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
13519 * Makefile.in (procfs.o): Add dep.
13520
13521 2004-01-28 Andrew Cagney <cagney@redhat.com>
13522
13523 * tui/tui-stack.h: Update copyright.
13524 (struct frame_info): Add opaque declaration.
13525 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
13526 (tui_show_locator_content): Rename tuiShowLocatorContent.
13527 (tui_show_frame_info): Rename tuiShowFrameInfo.
13528 * tui/tui-stack.c: Update copyright. Update references.
13529 * tui/tui-winsource.c: Update references.
13530 * tui/tui-win.c: Update references.
13531 * tui/tui-layout.c: Update references.
13532 * tui/tui-hooks.c: Update copyright, update references.
13533 * tui/tui.c: Update copyright, update references.
13534 * tui/tui-disasm.c: Update references.
13535
13536 2004-01-28 David Carlton <carlton@kealia.com>
13537
13538 * dwarf2read.c (add_partial_structure): Use demangled name if
13539 namespace equals "".
13540
13541 2004-01-27 Jim Blandy <jimb@redhat.com>
13542
13543 Clean up misapplied patch:
13544 * dwarf2read.c (determine_prefix): Change one of the two forward
13545 declarations for 'determine_prefix_aux' to a declaration for this.
13546 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
13547 argument to 'die_specification'.
13548
13549 * dwarf2read.c (read_func_scope): Re-indent comment.
13550
13551 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
13552
13553 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
13554 b->exp to NULL after freeing so that error during re-parsing or
13555 evaluation of expressions associated with breakpoint don't
13556 eventually lead to re-freeing of storage.
13557 Committed by Andrew Cagney.
13558
13559 2004-01-27 Andrew Cagney <cagney@redhat.com>
13560
13561 * source.c (ambiguous_line_spec): Delete undefined declaration.
13562 * m32r-rom.c (m32r_set_board_address): Delete unused function.
13563 (m32r_set_server_address, m32r_set_download_path): Ditto.
13564 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
13565
13566 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
13567
13568 * dwarf2read.c: Update calls to changed and renamed functions, and
13569 references to moved variables.
13570
13571 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
13572 language, language_defn, list_in_scope, and ftypes members.
13573 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
13574 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
13575 (baseaddr): Remove globals.
13576
13577 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
13578 (set_cu_language, die_is_declaration, die_specification)
13579 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
13580 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
13581 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
13582 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
13583
13584 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
13585 cu.list_in_scope. Don't initialize cu_header_offset.
13586 (add_partial_symbol): Add local baseaddr.
13587 (psymtab_to_symtab_1): Add local baseaddr. Use
13588 objfile->section_offsets for consistency. Don't initialize
13589 cu_header_offset; do initialize cu.header.offset and
13590 cu.list_in_scope.
13591 (read_file_scope, read_func_scope, read_lexical_block_scope)
13592 (dwarf_decode_lines, new_symbol): Add local baseaddr.
13593
13594 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
13595
13596 * PROBLEMS: Add gdb/1516.
13597
13598 2003-12-29 Robert Millan <robertmh@gnu.org>
13599
13600 Patch committed by Andrw Cagney.
13601 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
13602 * configure.tgt: Match knetbsd*-gnu.
13603
13604 2004-01-26 Andrew Cagney <cagney@redhat.com>
13605
13606 * breakpoint.c (catch_command_1): Delete #ifdef code.
13607 (catch_fork_command_1): Delete #ifdef wrapper.
13608 (catch_exec_command_1): Ditto.
13609 (catch_load_command_1): Ditto.
13610 (catch_unload_command_1): Ditto.
13611
13612 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
13613 (catch_breakpoint): Delete #if0ed function.
13614 (disable_catch_breakpoint): Ditto.
13615 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
13616 (disable_catch, enable_catch, delete_catch): Ditto.
13617
13618 2004-01-26 Andrew Cagney <cagney@redhat.com>
13619
13620 * remote.c (echo_check, quit_flag): Delete variables.
13621 (cisco_kernel_mode): Delete variable.
13622 (minitelnet_return, tty_input, escape_count): Delete variables.
13623 (remote_cisco_mode): Delete variable.
13624 (remote_cisco_open, remote_cisco_close): Delete function.
13625 (remote_cisco_mourn, remote_cisco_wait): Delete function.
13626 (init_remote_cisco_ops): Delete function.
13627 (_initialize_remote): Do not install "remote cisco" code.
13628 (read_frame): Delete cisco specific code.
13629 (remote_info_process): Delete function.
13630 (remote_wait): Delete cisco specific code.
13631 (remote_cisco_section_offsets): Delete function.
13632 (remote_cisco_objfile_relocate): Delete function.
13633 (remote_async_wait): Delete cisco specific code.
13634 (minitelnet, readtty, readsocket): Delete function.
13635
13636 2004-01-26 Andrew Cagney <cagney@redhat.com>
13637
13638 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
13639 comments mentioning extract_returned_value_address.
13640 * infcmd.c (print_return_value): Update. Add comments on
13641 extract_returned_value_address.
13642 * stack.c (return_command): Add comments on
13643 extract_returned_value_address.
13644 * values.c: Update comment.
13645 * m32r-tdep.c: Update comment.
13646 * sparc-tdep.c: Update comment.
13647 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
13648 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
13649 * sh64-tdep.c (sh64_gdbarch_init): Update.
13650 * sh-tdep.c (sh_gdbarch_init): Update.
13651 * s390-tdep.c (s390_gdbarch_init): Update.
13652 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
13653 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
13654 * m68k-tdep.c (m68k_gdbarch_init): Update.
13655 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
13656 * m32r-tdep.c (m32r_gdbarch_init): Update.
13657 * ia64-tdep.c (ia64_gdbarch_init): Update.
13658 * h8300-tdep.c (h8300_gdbarch_init): Update.
13659 * frv-tdep.c (frv_gdbarch_init): Update.
13660 * arm-tdep.c (arm_gdbarch_init): Update.
13661 * alpha-tdep.c (alpha_gdbarch_init): Update.
13662
13663 2004-01-26 Andrew Cagney <cagney@redhat.com>
13664
13665 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
13666 SYMBOL_LOCATION_FUNCS
13667 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
13668 "struct symbol_ops".
13669 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
13670 type to "struct symbol_ops".
13671 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
13672 (struct symbol): Replace ".aux_value.loc.funcs" and
13673 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
13674 (SYMBOL_OBJFILE): Delete macro.
13675 (SYMBOL_LOCATION_FUNCS): Delete macro.
13676 (SYMBOL_LOCATION_BATON): Update.
13677 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
13678 intead of SYMBOL_LOCATION_FUNCS.
13679 * ax-gdb.c (gen_var_ref): Ditto.
13680 * printcmd.c (address_info): Ditto.
13681 * findvar.c (read_var_value): Ditto.
13682 (symbol_read_needs_frame): Ditto.
13683
13684 2004-01-26 Andrew Cagney <cagney@redhat.com>
13685
13686 * dwarf2read.c (read_func_scope): Document frame-base hack.
13687
13688 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13689
13690 * infcmd.c (print_return_value): Plug memory leak; delete
13691 ui_stream object. Rename argument `structure_return' to
13692 `struct_return'.
13693
13694 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13695
13696 * infcmd.c (print_return_value): Wrap long lines.
13697 (finish_command_continuation, finish_command): Remove unused
13698 variable `funcaddr'. Fix some coding-standards problems.
13699
13700 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
13701 SECT_SIZE is large enough, not whether it's exactly the right size.
13702 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
13703 TDEP->fpregset to zero.
13704
13705 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
13706 floating-point registers for traditional NetBSD core files.
13707 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
13708 TDEP->sizeof_fpregset here.
13709
13710 2004-01-25 Mark Kettenis <kettenis@gnu.org>
13711
13712 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
13713 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
13714 function with code split out from
13715 sparc32nbsd_sigcontext_frame_cache.
13716 (sparc32nbsd_sigcontext_frame_cache): Use
13717 sparc32nbsd_sigcontext_saved_regs.
13718 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
13719 OpenBSD.
13720 * sparcobsd-tdep.c: New file.
13721 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
13722 (sparcobsd-tdep.o): New dependency.
13723 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
13724 * config/sparc/obsd.mt: New file.
13725
13726 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
13727 TDEP->fpregset to be initialized to enable core file register
13728 sets.
13729
13730 2004-01-24 Mark Kettenis <kettenis@gnu.org>
13731
13732 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
13733 Add opaque declarations.
13734 (sparc64nbsd_sigcontext_saved_regs): New prototype.
13735 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
13736 function with code split out from
13737 sparc64nbsd_sigcontext_frame_cache.
13738 (sparc64nbsd_sigcontext_frame_cache): Use
13739 sparc64nbsd_sigcontext_saved_regs.
13740 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
13741 OpenBSD.
13742 * sparc64obsd-tdep.c: New file.
13743 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
13744 (sparc64obsd-tdep.o): New dependency.
13745 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
13746 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
13747 * config/sparc/obsd64.mt: New file.
13748
13749 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
13750 read the instruction at PC.
13751
13752 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
13753 value of GDB_OSABI_DEFAULT.
13754 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
13755 instead of GDB_OSABI_NETBSD_AOUT.
13756
13757 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
13758
13759 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
13760 copyright.
13761
13762 2004-01-23 Andrew Cagney <cagney@redhat.com>
13763
13764 * printcmd.c (display_command): Replace tui_set_display call with
13765 tui_set_layout_for_display_command.
13766 * tui/tui.h (enum tui_win_type): Define.
13767 (tui_set_layout): Delete declaration.
13768 (tui_set_layout_for_display_command): Rename set_tui_layout.
13769 * tui/tui-data.h (enum tui_layout_type): Define.
13770 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
13771 "tui.h".
13772 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
13773 (tui_default_win_height): Rename tuiDefaultWinHeight.
13774 (tui_default_win_viewport_height): Rename
13775 tuiDefaultWinViewportHeight.
13776 (tui_set_layout): RenametuiSetLayout.
13777 * tui/tui-layout.c: Update references.
13778 * tui/tui.c: Update references.
13779 * tui/tui-disasm.c: Update references.
13780
13781 2004-01-23 David Carlton <carlton@kealia.com>
13782
13783 Partial workaround for PR c++/1511:
13784 * cp-namespace.c: Include frame.h.
13785 (cp_lookup_transparent_type): New
13786 (cp_lookup_transparent_type_loop): New.
13787 * cp-support.h: Declare cp_lookup_transparent_type.
13788 * symtab.c (basic_lookup_transparent_type): Renamed from
13789 lookup_transparent_type.
13790 (lookup_transparent_type): Replace old body by a call to
13791 current_language->la_lookup_transparent_type.
13792 * symtab.h: Update copyright. Declare
13793 basic_lookup_transparent_type.
13794 * language.h: Update copyright.
13795 (struct language_defn): Add la_lookup_transparent_type.
13796 * language.c: Update copyright.
13797 (unknown_language_defn): Add basic_lookup_transparent_type.
13798 (auto_language_defn): Add basic_lookup_transparent_type.
13799 (local_language_defn): Add basic_lookup_transparent_type.
13800 * ada-lang.c: Update copyright.
13801 (ada_language_defn): Add basic_lookup_transparent_type.
13802 * c-lang.c: Update copyright.
13803 (c_language_defn): Add basic_lookup_transparent_type.
13804 (cplus_language_defn): Add basic_lookup_transparent_type.
13805 (asm_language_defn): Add basic_lookup_transparent_type.
13806 (minimal_language_defn): Add basic_lookup_transparent_type.
13807 * f-lang.c: Update copyright.
13808 (f_language_defn): Add basic_lookup_transparent_type.
13809 * jv-lang.c: Update copyright.
13810 (java_language_defn): Add basic_lookup_transparent_type.
13811 * m2-lang.c: Update copyright.
13812 (m2_language_defn): Add basic_lookup_transparent_type.
13813 * objc-lang.c: Update copyright.
13814 (objc_language_defn): Add basic_lookup_transparent_type.
13815 * p-lang.c: Update copyright.
13816 (p_language_defn): Add basic_lookup_transparent_type.
13817 * scm-lang.c: Update copyright.
13818 (scm_language_defn): Add basic_lookup_transparent_type.
13819 * Makefile.in (cp-namespace.o): Depend on frame.h.
13820
13821 2004-01-23 David Carlton <carlton@kealia.com>
13822
13823 Patch for PR c++/1520:
13824 * dwarf2read.c (read_func_scope): Set processing_current_prefix
13825 properly if we have a specification die.
13826 (determine_prefix_aux): Rename from determine_prefix.
13827 (determine_prefix): Like the old determine_prefix, but never
13828 returns NULL.
13829
13830 2004-01-23 Theodore A. Roth <troth@openavr.org>
13831
13832 * avr-tdep.c: Update copyright.
13833 (avr_iaddr_p): Delete unused function.
13834 (avr_saddr_p): Delete unused function.
13835
13836 2004-01-23 David Carlton <carlton@kealia.com>
13837
13838 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
13839 Fix for PR symtab/1534.
13840
13841 2004-01-23 Mark Kettenis <kettenis@gnu.org>
13842
13843 * NEWS (New native configurations): Mention OpenBSD/sparc and
13844 OpenBSD/sparc64.
13845 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
13846 * configure.host: Likewise.
13847 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
13848 handler for OpenBSD.
13849 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
13850
13851 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13852
13853 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
13854 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
13855
13856 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
13857 * cli/cli-cmds.c (shell_escape): Likewise.
13858
13859 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
13860 OpenBSD .note.openbsd.ident sections.
13861
13862 2004-01-22 David Carlton <carlton@kealia.com>
13863
13864 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
13865 get_scope_pc_bounds.
13866 (read_file_scope): Ditto.
13867 (get_scope_pc_bounds): New function, produced by extracting code
13868 from the above two functions, consolidating it, and adding support
13869 for DW_TAG_namespace.
13870
13871 2004-01-22 Mark Kettenis <kettenis@gnu.org>
13872
13873 * osabi.c (MAX_NOTESZ): New define.
13874 (check_note): New function.
13875 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
13876 check_note.
13877
13878 2004-01-21 Roland McGrath <roland@redhat.com>
13879
13880 * MAINTAINERS (write after approval): Add myself.
13881
13882 2004-01-21 Eli Zaretskii <eliz@gnu.org>
13883
13884 * utils.c (init_page_info): Move declarations of `rows' and
13885 `cols' before the __GO32__-specific code. Move the closing brace
13886 outside the #ifdef __GO32__..#endif block.
13887 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
13888
13889 2004-01-21 Paul Brook <paul@codesourcery.com>
13890
13891 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
13892 BPSTAT_WHAT_CHECK_SHLIBS.
13893
13894 2004-01-21 Paul Brook <paul@codesourcery.com>
13895
13896 * MAINTAINERS: Add myself to write-after-approval.
13897
13898 2004-01-20 Andrew Cagney <cagney@redhat.com>
13899
13900 * ax-gdb.c (print_axs_value): Delete unused function.
13901 * jv-lang.c (java_lookup_type): Delete unused function.
13902 * cli/cli-dump.c (dump_filetype): Delete unused function.
13903 * remote-mips.c (remote_mips_insert_hw_breakpoint)
13904 (remote_mips_remove_hw_breakpoint): Delete unused functions.
13905 (mips_getstring): Delete unused function.
13906 (pmon_insert_breakpoint): Delete #if0ed function.
13907 (PMON_MAX_BP): Delete #if0ed MACRO.
13908 (mips_pmon_bp_info): Delete #if0ed variable.
13909 (pmon_remove_breakpoint): Delete #if0ed function.
13910 * monitor.c (monitor_write_even_block): Delete unused function.
13911 (monitor_write_memory_block): Delete #if0ed code.
13912 * dink32-rom.c (dink32_load): Delete unused function.
13913 (_initialize_dink32_rom): Delete #if0ed code.
13914 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
13915
13916 * tui/tui-command.c: Update references.
13917 * tui/tui-io.c: Update references.
13918 * tui/tui-command.h: Update copyright.
13919 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
13920
13921 * source.c (ambiguous_line_spec): Delete never-defined function.
13922 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
13923 * gdbtypes.c (add_name, add_mangled_type): Ditto.
13924 * cli/cli-cmds.c (validate_comname): Ditto.
13925
13926 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
13927 "tui-data.h".
13928 (tui_set_disassem_content): Rename tuiSetDisassemContent.
13929 (tui_show_disassem): Rename tuiShowDisassem.
13930 (tui_show_disassem_and_update_source): Rename
13931 tuiVerticalDisassemScroll.
13932 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
13933 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
13934 * tui/tui.h: Update copyright.
13935 (enum tui_status): Define.
13936 * tui/tui-data.h (enum tui_scroll_direction): Define.
13937 * tui/tui-disasm.c: Update copyright. Update references.
13938 * tui/tui-winsource.c: Update copyright. Update references.
13939 * tui/tui-win.c: Update references.
13940 * tui/tui-layout.c: Update references.
13941
13942 2004-01-20 Andrew Cagney <cagney@redhat.com>
13943
13944 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
13945 sym2 to start of block.
13946
13947 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
13948
13949 * MAINTAINERS: Delete mmalloc.
13950 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
13951 * NEWS: Mention removal of --with-malloc.
13952 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
13953 * config.in: Regenerate.
13954 * configure: Regenerate.
13955 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
13956 USE_MMALLOC, MMCHECK_FORCE.
13957 * gdbinit.in: Remove mmalloc.
13958 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
13959 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
13960 * config/i386/go32.mh: Likewise.
13961 * config/i386/interix.mh: Likewise.
13962 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
13963
13964 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
13965
13966 * linespec.c (decode_variable, symtab_from_filename): Call
13967 error_silent with error message instead of throwing an exception
13968 directly.
13969 * defs.h (error_silent, error_output_message): Add prototypes.
13970 (catch_exceptions_with_msg): Ditto.
13971 * utils.c (error_silent, error_output_message): New functions.
13972 * top.c (catch_exceptions_with_msg): New function.
13973
13974 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
13975
13976 * mi/mi-cmds.h (enum print_values): Add definition.
13977
13978 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
13979 type and value for simple data types and just the name and type
13980 for complex ones, if required.
13981
13982 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
13983 children, if required.
13984
13985 2004-01-19 Kevin Buettner <kevinb@redhat.com>
13986
13987 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
13988 unused declarations.
13989
13990 2004-01-19 Andrew Cagney <cagney@redhat.com>
13991
13992 * top.h (mapped_symbol_files): Delete declaration.
13993 * main.c (captured_main): Delete option "m" and "mapped".
13994 * objfiles.c (mapped_symbol_files): Delete variable.
13995 * symfile.c (symbol_file_command): Delete mmap code.
13996 (symbol_file_add_with_addrs_or_offsets): Ditto.
13997 (add_symbol_file_command, reread_separate_symbols): Ditto.
13998 * objfiles.h (OBJF_MAPPED): Delete.
13999 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
14000 (free_objfile) [USE_MMALLOC]: Ditto.
14001 (open_existing_mapped_file): Delete function.
14002 (open_mapped_file): Delete function.
14003 (map_to_file): Delete function.
14004
14005 2004-01-19 Kevin Buettner <kevinb@redhat.com>
14006
14007 * infrun.c (step_into_function): Account for possible breakpoint
14008 adjustment when computing ``stop_func_start''.
14009
14010 2004-01-19 Kevin Buettner <kevinb@redhat.com>
14011
14012 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
14013 the region size against the size of a pointer, not the size of
14014 a register as given by DEPRECATED_REGISTER_SIZE.
14015
14016 2004-01-19 Andrew Cagney <cagney@redhat.com>
14017
14018 * tui/tui-regs.h: Include "tui-data.h".
14019 (tuiFirstRegElementNoInLine): Delete declaration.
14020 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
14021 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
14022 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
14023 (tui_calculate_regs_column_count): Rename
14024 tuiCalculateRegsColumnCount.
14025 (tui_check_register_values): Rename tuiCheckRegisterValues.
14026 (tui_show_registers): Rename tuiShowRegisters.
14027 (tui_display_registers_from_line): Rename
14028 tuiDisplayRegistersFromLine.
14029 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
14030 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
14031 (tui_first_reg_element_no_inline): Rename
14032 tuiFirstRegElementNoInLine.
14033 * tui/tui-data.h: Update copyright.
14034 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
14035 * tui/tui-windata.c: Update copyright, update references.
14036 * tui/tui-regs.c: Update copyright, update references.
14037 * tui/tui-win.c: Update copyright, update references.
14038 * tui/tui-layout.c: Update copyright, update references.
14039
14040 2004-01-18 Andrew Cagney <cagney@redhat.com>
14041
14042 * tui/tui-io.c: Update copyright.
14043 (key_is_end_sequence, key_is_backspace): New functions.
14044 (key_is_command_char, key_is_start_sequence): New function.
14045 (tui_getc): Update references.
14046 * tui/tui-io.h: Update copyright.
14047 (m_tuiStartNewLine): Delete macro.
14048 (m_isBackspace, m_isDeleteChar): Delete macros.
14049 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
14050 (m_isNextPage, m_isPrevPage): Delete macros.
14051 (m_isLeftArrow, m_isRightArrow): Delete macros.
14052 (m_isXdbStyleCommandChar): Delete macro.
14053 (key_is_start_sequence): Declare, replace m_isStartSequence.
14054 (key_is_end_sequence): Declare, replace m_isEndSequence.
14055 (key_is_backspace): Declare ,replace m_isBackspace.
14056 (key_is_command_char): Declare, replace m_isCommandChar.
14057 * tui/tui-command.c: Update copyright.
14058 (tuiDispatchCtrlChar): Update references.
14059
14060 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
14061 tuiSourceWin.h.
14062
14063 * tui/tui-command.c: Rename tui/tuiCommand.c.
14064 * tui/tui-command.h: Rename tui/tuiCommand.h.
14065 * tui/tui-data.c: Rename tui/tuiData.c.
14066 * tui/tui-data.h: Rename tui/tuiData.h.
14067 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
14068 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
14069 * tui/tui-io.c: Rename tui/tuiIO.c.
14070 * tui/tui-io.h: Rename tui/tuiIO.h.
14071 * tui/tui-layout.c: Rename tui/tuiLayout.c.
14072 * tui/tui-layout.h: Rename tui/tuiLayout.h.
14073 * tui/tui-regs.c: Rename tui/tuiRegs.c.
14074 * tui/tui-regs.h: Rename tui/tuiRegs.h.
14075 * tui/tui-source.c: Rename tui/tuiSource.c.
14076 * tui/tui-source.h: Rename tui/tuiSource.h.
14077 * tui/tui-stack.c: Rename tui/tuiStack.c.
14078 * tui/tui-stack.h: Rename tui/tuiStack.h.
14079 * tui/tui-win.c: Rename tui/tuiWin.c.
14080 * tui/tui-win.h: Rename tui/tuiWin.h.
14081 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
14082 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
14083 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
14084 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
14085 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
14086 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
14087 * tui/tui-file.c: Update includes.
14088 * tui/tui-hooks.c: Update includes.
14089 * tui/tui-interp.c: Update includes.
14090 * tui/tui.c: Update includes.
14091 * Makefile.in: Update all tui/ dependencies.
14092 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
14093
14094 * Makefile.in: Update copyright. Update dependencies.
14095
14096 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
14097 problem.
14098
14099 2004-01-18 Andrew Cagney <cagney@redhat.com>
14100
14101 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
14102 instead of register_gdbarch_init.
14103
14104 * remote-sds.c (tohex): Delete unused function. Update copyright.
14105 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
14106 * v850-tdep.c (v850_register_virtual_size): Ditto.
14107 * target.c (normal_target_post_startup_inferior): Ditto.
14108 * source.c (ambiguous_line_spec): Ditto.
14109 * remote.c (adapt_remote_get_threadinfo): Ditto.
14110 * mi/mi-out.c (out_field_fmt): Ditto.
14111 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
14112 (output_control_change_notification): Ditto.
14113 * m68k-tdep.c (m68k_register_byte): Ditto.
14114 (m68k_remote_breakpoint_from_pc): Ditto.
14115 * ui-out.c (init_ui_out_state): Delete unused declaration.
14116 * stabsread.c (search_value): Ditto.
14117 * mi/mi-cmd-env.c (env_cli_command): Ditto.
14118 * maint.c (print_section_table): Ditto.
14119 * infrun.c (set_follow_fork_mode_command): Ditto.
14120
14121 2004-01-18 Mark Kettenis <kettenis@gnu.org>
14122
14123 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
14124 DW_CFA_def_cfa_exporession. Add support for
14125 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
14126 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
14127
14128 2004-01-18 Andrew Cagney <cagney@redhat.com>
14129
14130 * ocd.c: Update copyright.
14131 (bdm_read_register_command): Delete unused function.
14132 (_initialize_remote_ocd): Delete commented out reference.
14133 (get_quoted_char, reset_packet): Delete #if0ed function.
14134 (output_packet, put_quoted_char): Delete #if0ed function.
14135 (stu_put_packet, stu_get_packet): Delete #if0ed function.
14136 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
14137 (BDM_BREAKPOINT): Delete #if0ed macro.
14138 (remote_timeout): Delete #if0ed variable.
14139
14140 2004-01-18 Mark Kettenis <kettenis@gnu.org>
14141
14142 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
14143 (core-sol2.o): Remove dependency.
14144 * core-sol2.c: Remove file.
14145
14146 2004-01-17 Andrew Cagney <cagney@redhat.com>
14147
14148 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
14149 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
14150 enums.
14151
14152 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14153
14154 * remote.c: Update copyright years.
14155
14156 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14157
14158 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
14159
14160 2004-01-17 Andrew Cagney <cagney@redhat.com>
14161
14162 * mdebugread.c: Update copyright.
14163 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
14164 (parse_type, parse_procedure): Ditto.
14165 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
14166
14167 * cris-tdep.c (cris_store_struct_return): Put back accidently
14168 deleted function.
14169
14170 * gdbarch.sh: Update copyright year.
14171 * gdbarch.h, gdbarch.c: Re-generate.
14172
14173 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14174
14175 Suggested by George Anzinger.
14176 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
14177 correct stack offset. Include unknown opcode numbers in the error
14178 message.
14179
14180 2004-01-17 Andrew Cagney <cagney@redhat.com>
14181
14182 * x86-64-tdep.c (x86_64_init_abi): No need to clear
14183 extract_struct_value_address, i386 does not set it.
14184 * sparc64-tdep.c (sparc64_init_abi): Do not set
14185 extract_struct_value_address, never called.
14186 (sparc64_extract_struct_value_address): Delete function.
14187 * m68hc11-tdep.c: Update copyright.
14188 (m68hc11_gdbarch_init): Delete redundant assignment of
14189 extract_struct_value_address.
14190 * i386-tdep.c: Update copyright.
14191 (i386_gdbarch_init): Do not set extract_struct_value_address,
14192 never called.
14193 (i386_extract_struct_value_address): Delete function.
14194 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
14195 extract_struct_value_address, never called.
14196 (sparc32_extract_struct_value_address): #if 0 function. Add
14197 comments explaining its future.
14198
14199 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14200
14201 * arm-tdep.c (arm_write_pc): New function.
14202 (arm_gdbarch_init): Call set_gdbarch_write_pc.
14203
14204 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
14205
14206 * breakpoint.c (must_shift_inst_regs): Delete.
14207 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
14208 and SHIFT_INST_REGS.
14209 * infcmd.c (step_1, step_1_continuation): Delete references to
14210 SHIFT_INST_REGS.
14211 * infrun.c (keep_going): Likewise.
14212 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
14213 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
14214
14215 2004-01-17 Andrew Cagney <cagney@redhat.com>
14216
14217 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
14218 * gdbarch.h, gdbarch.c: Re-generate.
14219 * infcmd.c (print_return_value): Delete reference to
14220 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
14221
14222 * cris-tdep.c (cris_gdbarch_init): Do not set
14223 deprecated_extract_struct_value_address.
14224
14225 * xstormy16-tdep.c: Update copyright.
14226 (xstormy16_extract_struct_value_address): Update to current
14227 extract struct value address interface.
14228 (xstormy16_gdbarch_init): Set extract_struct_value_address.
14229 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
14230 current extract struct value address interface.
14231 (sh64_gdbarch_init): Set extract_struct_value_address.
14232
14233 * cris-tdep.c: Update copyright.
14234 (cris_extract_struct_value_address): Delete function.
14235 (struct_return_address): Delete variable.
14236 (cris_store_struct_return): Do not set struct_return_address.
14237
14238 * mcore-tdep.c: Update copyright.
14239 (mcore_extract_struct_value_address): Delete function. Update
14240 comments.
14241 (mcore_gdbarch_init): Update.
14242 * mn10300-tdep.c: Update copyright.
14243 (mn10300_extract_struct_value_address): Delete function.
14244 (mn10300_gdbarch_init): Update.
14245 * v850-tdep.c: Update copyright.
14246 (v850_extract_struct_value_address): Delete.
14247 (v850_gdbarch_init): Update.
14248 * ns32k-tdep.c: Update copyright.
14249 (ns32k_extract_struct_value_address): Delete.
14250 (ns32k_gdbarch_init): Update.
14251 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
14252 (hppa_gdbarch_init): Update.
14253 * vax-tdep.c: Update copyright.
14254 (vax_extract_struct_value_address): Delete.
14255 (vax_gdbarch_init): Update.
14256
14257 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
14258 * gdbarch.h, gdbarch.c: Re-generate.
14259 * procfs.c (procfs_fetch_registers): Delete reference to
14260 DEPRECATED_NPC_REGNUM.
14261 (procfs_store_registers): Ditto.
14262 * regcache.c (generic_target_write_pc): Simplify.
14263 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
14264
14265 * core-sol2.c (fetch_core_registers): Replace
14266 DEPRECATED_NPC_REGNUM with equivalent tdep value.
14267
14268 * hppa-tdep.c: Update copyright year.
14269 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
14270 NPC_REGNUM.
14271 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
14272
14273 * mips-tdep.c (mips_write_pc): New function.
14274 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
14275 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
14276 (mips_find_saved_regs, mips_software_single_step: Ditto.
14277 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
14278 mips_init_extra_frame_info, mips_pop_frame): Ditto.
14279
14280 2004-01-17 Andrew Cagney <cagney@redhat.com>
14281
14282 * mips-tdep.c: Re-indent. Group functions by ABI.
14283
14284 2004-01-17 Andrew Cagney <cagney@redhat.com>
14285
14286 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
14287 * gdbarch.c: Re-generate.
14288 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
14289 DECR_PC_AFTER_BREAK to zero.
14290 * vax-tdep.c (vax_gdbarch_init): Ditto.
14291 * v850-tdep.c (v850_gdbarch_init): Ditto.
14292 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
14293 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
14294 * sh-tdep.c (sh_gdbarch_init): Ditto.
14295 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
14296 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
14297 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
14298 * mips-tdep.c (mips_gdbarch_init): Ditto.
14299 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
14300 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14301 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
14302 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
14303 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
14304 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
14305 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
14306 * frv-tdep.c (frv_gdbarch_init): Ditto.
14307 * cris-tdep.c (cris_gdbarch_init): Ditto.
14308 * avr-tdep.c (avr_gdbarch_init): Ditto.
14309 * arm-tdep.c (arm_gdbarch_init): Ditto.
14310 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
14311
14312 2004-01-17 J. Brobecker <brobecker@gnat.com>
14313
14314 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
14315 Delete, no longer used.
14316 (read_subrange_type): New function, mostly extracted from
14317 read_array_type().
14318 (read_array_type): Replace extracted code by call to
14319 read_subrange_type().
14320 (dwarf2_get_attr_constant_value): New function.
14321 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
14322 (add_partial_symbol): Likewise.
14323 (process_die): Likewise.
14324 (new_symbol): Likewise.
14325 (read_type_die): Likewise.
14326
14327 2004-01-16 Andrew Cagney <cagney@redhat.com>
14328
14329 * symfile.c: Update copyright year.
14330 (compare_symbols): Delete unused function.
14331 * stabsread.c: Update copyright year.
14332 (lrs_general_complaint): Delete unused function.
14333 (ref_search_value): Ditto.
14334 (get_substring): Delete declaration.
14335 * sh64-tdep.c: Update copyright year.
14336 (sh64_get_gdb_regnum): Delete unused function.
14337 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
14338 Delete unused function.
14339
14340 2004-01-17 Mark Kettenis <kettenis@gnu.org>
14341
14342 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
14343 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
14344
14345 2004-01-16 Andrew Cagney <cagney@redhat.com>
14346
14347 Changes from Peter Schauer.
14348 * rs6000-tdep.c: Update copyright year.
14349 (rs6000_push_dummy_call): Update the stack pointer before
14350 accessing the corresponding stack region.
14351 * rs6000-nat.c: Update copyright year.
14352 (set_host_arch): Set "info.abfd" to "exec_bfd".
14353
14354 2004-01-15 Mark Kettenis <kettenis@gnu.org>
14355
14356 * blockframe.c: Update copyright year.
14357 (inside_entry_func): Don't treat a zero PC specially.
14358
14359 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
14360
14361 * gcore.c (gcore_copy_callback): Use paddr_d to print size
14362 variable.
14363 (gcore_create_callback): Ditto. Skip any memory segment that has
14364 no permissions set.
14365
14366 2004-01-14 David Carlton <carlton@kealia.com>
14367
14368 Change symbols for C++ nested types to contain the fully qualified
14369 name, if possible. (At least in the DWARF-2 case.) Partial fix
14370 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
14371 c++/895.
14372 * c-exp.y (qualified_type): Handle types nested within classes.
14373 * cp-namespace.c: Update comments.
14374 (cp_set_block_scope): Delete #if 0.
14375 (cp_lookup_nested_type): Handle types nested within classes.
14376 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
14377 when appropriate.
14378 (add_partial_symbol): Add the name of the enclosing namespace to
14379 types.
14380 (pdi_needs_namespace): New.
14381 (add_partial_namespace): Tweak comment.
14382 (add_partial_structure): New.
14383 (psymtab_to_symtab_1): Initialize processing_current_prefix
14384 here...
14385 (process_die): instead of here.
14386 (read_structure_scope): Try to figure out the name of the class or
14387 namespace that the structure might be defined within.
14388 (read_enumeration): Generate fully-qualified names, if possible.
14389 (read_namespace): Don't set name to NULL.
14390 (die_specification): New.
14391 (new_symbol): Generate fully-qualified names for types.
14392 (read_type_die): Determine appropriate prefix.
14393 (determine_prefix): New.
14394 (typename_concat): New.
14395 (class_name): New.
14396 * valops.c (value_aggregate_elt): Pass NOSIDE to
14397 value_struct_elt_for_reference.
14398 (value_struct_elt_for_reference): Make static, add NOSIDE
14399 parameter, call value_maybe_namespace_elt as a last resort.
14400 (value_namespace_elt): Break out code into
14401 value_maybe_namespace_elt.
14402 (value_maybe_namespace_elt): New.
14403
14404 2004-01-12 Andrew Cagney <cagney@redhat.com>
14405
14406 * mips-tdep.c (mips_convert_register_p): Handle both raw and
14407 cooked floating-point registers.
14408 (mips_gdbarch_init): Set convert_register_p, register_to_value,
14409 and value_to_register.
14410
14411 2004-01-13 Andrew Cagney <cagney@redhat.com>
14412
14413 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
14414 * gdbarch.c: Re-generate.
14415 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
14416 FUNCTION_START_OFFSET.
14417 * v850-tdep.c (v850_gdbarch_init): Ditto.
14418 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
14419 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
14420 * sh-tdep.c (sh_gdbarch_init): Ditto.
14421 * s390-tdep.c (s390_gdbarch_init): Ditto.
14422 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
14423 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
14424 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
14425 * mips-tdep.c (mips_gdbarch_init): Ditto.
14426 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
14427 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
14428 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14429 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
14430 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
14431 * i386-tdep.c (i386_gdbarch_init): Ditto.
14432 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
14433 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
14434 * frv-tdep.c (frv_gdbarch_init): Ditto.
14435 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
14436 * cris-tdep.c (cris_gdbarch_init): Ditto.
14437 * avr-tdep.c (avr_gdbarch_init): Ditto.
14438 * arm-tdep.c (arm_gdbarch_init): Ditto.
14439 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
14440
14441 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
14442
14443 * infrun.c (follow_fork_mode_ask): Remove.
14444 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
14445 (follow_fork): Simplify and remove internal error for
14446 follow_fork_mode_ask.
14447 (_initialize_infrun): Update "set follow-fork-mode" help text.
14448
14449 2004-01-13 Andrew Cagney <cagney@redhat.com>
14450
14451 * configure.in: Update copyright year.
14452 (build_warnings): Add -Wunused-label.
14453 * configure: Re-generate.
14454
14455 2004-01-12 Andrew Cagney <cagney@redhat.com>
14456
14457 * exec.h (exec_ops): Make "extern".
14458
14459 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
14460 the function is void.
14461 (mips_pseudo_register_write): Ditto.
14462
14463 2004-01-12 Andrew Cagney <cagney@redhat.com>
14464
14465 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
14466 call. Never defined.
14467 * sparc-tdep.h (struct frame_info): Add opaque declaration.
14468 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
14469 (struct sparc_gregset, struct regcache): Ditto.
14470 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
14471
14472 2004-01-12 Andrew Cagney <cagney@redhat.com>
14473
14474 * mi/ChangeLog: Delete file. Renamed to ...
14475 * mi/ChangeLog-1999-2003: New file.
14476 * tui/ChangeLog: Delete file. Renamed to ...
14477 * tui/ChangeLog-1998-2003: New file.
14478
14479 2004-01-11 Mark Kettenis <kettenis@gnu.org>
14480
14481 * sparc64nbsd-tdep.c: Include "regset.h".
14482 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
14483 Remove variables.
14484 (fetch_core_registers): Remove function.
14485 (sparc64nbsd_core_fns): Remove variable.
14486 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
14487 functions.
14488 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
14489 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14490 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
14491
14492 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
14493 sparc_extract_struct_value_address.
14494 (sparc32_gdbarch_init): Set extract_struct_value_address.
14495 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
14496 function.
14497 (sparc64_init_abi): Set extract_struct_value_address. Don't set
14498 return_value_on_stack.
14499
14500 * NEWS: Mention that %cs and %ss have been added to the AMD64
14501 configurations
14502
14503 * frame.c: Update copyright year.
14504 (get_prev_frame): Improve comment.
14505
14506 * sparc64fbsd-tdep.c: Include "regset.h".
14507 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14508 Remove variables.
14509 (fetch_core_registers): Remove function.
14510 (sparc64fbsd_core_fns): Remove variable.
14511 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
14512 functions.
14513 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
14514 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
14515 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
14516
14517 * sparcnbsd-tdep.c: Include "regset.h".
14518 (fetch_core_registers): Remove function.
14519 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
14520 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
14521 functions.
14522 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
14523 TDEP->fpregset.
14524 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
14525
14526 * sparc-tdep.h (struct regset): Provide opaque declaration.
14527 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
14528 fpregset and sizeof_fpregset members.
14529 * sparc-tdep.c (struct regset): Provide opaque declaration.
14530 (sparc_regset_from_core_section): New function.
14531 (sparc32_gdbarch_init): Initialize TDEP->gregset,
14532 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
14533 Set regset_from_core_section when appropriate.
14534
14535 2004-01-10 Mark Kettenis <kettenis@gnu.org>
14536
14537 * x86-64-tdep.c (amd64_non_pod_p): New function.
14538 (amd64_classify_aggregate): Return class memory for non-POD
14539 C++ structure types.
14540
14541 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
14542 argument. Use it to reserve a register if necessary.
14543 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
14544 amd64_push_arguments.
14545
14546 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
14547
14548 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
14549 register numbers in comments.
14550 * x86-64-tdep.h: Update copyright year.
14551 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
14552 Adjust for addition of %cs and %ss.
14553 * amd64fbsd-nat.c: Update copyright year.
14554 (reg_offset): Add register offsets for %cs and %ss.
14555 * amd64fbsd-tdep.c: Update copyright year.
14556 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
14557 (amd64fbsd_sc_reg_offset): Likewise.
14558 * x86-64-linux-nat.c: Update copyright year.
14559 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
14560 and %ss.
14561 * amd64nbsd-nat.c: Update copyright year.
14562 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
14563 * amd64nbsd-tdep.c: Update copyright year.
14564 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
14565 * x86-64-linux-tdep.c: Update copyright year.
14566 (user_to_gdb_regmap): Add mapping for %cs and %ss.
14567 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
14568 * regformats/reg-x86-64.dat: Add %cs and %ss.
14569
14570 * blockframe.c (inside_entry_func): Reformat. Introduce new local
14571 variables to prevent long lines. Update comments to reflect
14572 reality.
14573
14574 2004-01-09 David Carlton <carlton@kealia.com>
14575
14576 Checked in by Elena Zannoni <ezannoni@redhat.com>.
14577 * dwarf2read.c (read_namespace): Pull out name-generating code
14578 into namespace_name. Rename previous_namespace to previous_prefix
14579 and processing_current_namespace to processing_current_prefix..
14580 (namespace_name): New function.
14581 (add_partial_symbol): Substitute uses of pdi->name with
14582 actual_name.
14583 * cp-support.h: Rename processing_current_namespace to
14584 processing_current_prefix.
14585 Update copyright year.
14586 * cp-namespace.c: Rename processing_current_namespace to
14587 processing_current_prefix.
14588 Update copyright year.
14589
14590 2004-01-09 Andrew Cagney <cagney@redhat.com>
14591
14592 * jv-valprint.c, ser-unix.c: Add missing copyright years.
14593
14594 2004-01-09 Mark Kettenis <kettenis@gnu.org>
14595
14596 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
14597 complaining.
14598 (process_one_symbol): Deal with N_PATCH stabs.
14599
14600 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
14601
14602 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
14603 ifdeffed code.
14604 Update copyright year.
14605
14606 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14607
14608 * config/pa/tm-hppa.h: Update extern declarations for
14609 hppa32_hpux_frame_saved_pc_in_sigtramp,
14610 hppa32_hpux_frame_base_before_sigtramp, and
14611 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
14612
14613 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
14614
14615 * config/pa/tm-hppah.h: Update copyright years.
14616
14617 2004-01-08 Andrew Cagney <cagney@redhat.com>
14618
14619 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
14620 (mips_o32_reg_struct_has_addr): Delete function.
14621 (mips_gdbarch_init): Update.
14622 (mips_extract_struct_value_address): Delete function.
14623
14624 2004-01-08 David Mosberger <davidm@hpl.hp.com>
14625
14626 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
14627 reality.
14628
14629 2004-01-07 Andrew Cagney <cagney@redhat.com>
14630
14631 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
14632 architecture's elf flags (when available).
14633
14634 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
14635 FPU to the start, check the MIPS FPU when looking for an old
14636 architecture.
14637 (set_mipsfpu_single_command): Update the architecture.
14638 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
14639
14640 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
14641 (mips_mask_address_p): Add "tdep" parameter.
14642 (show_mask_address, mips_addr_bits_remove): Update.
14643 (mips_dump_tdep): Update.
14644 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
14645 (MIPS_STACK_ARGSIZE): Delete macro.
14646 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
14647 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
14648 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
14649 (mips_dump_tdep): Update.
14650 (MIPS_SAVED_REGSIZE): Delete macro.
14651 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
14652 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
14653 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
14654 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
14655 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
14656 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
14657 (mips_pop_frame, return_value_location): Update.
14658 (mips_n32n64_return_value, mips_dump_tdep): Update.
14659
14660 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
14661 MIPS ABI.
14662
14663 * mips-tdep.c: Update copyright.
14664 (mips_gdbarch_init): Merge two code blocks handling the register
14665 name and number layout.
14666
14667 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
14668
14669 * tracepoint.c (validate_actionline): Fix segv at EOF
14670
14671 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
14672
14673 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
14674 properly for static fields.
14675
14676 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
14677 Jason Molenda <jmolenda@apple.com>
14678
14679 * disasm.c: Update copyright to include 2004.
14680 (do_mixed_source_and_assembly): For uiout asm list
14681 and tuple cleanups, initialize to null_cleanup instead of
14682 NULL and do so prior to loop. Only reset when we close off
14683 the tuple/list. Move check for whether to close off the
14684 asm tuple/list to after dump_insns call where it will be run
14685 on each loop iteration.
14686
14687 2004-01-05 Andrew Cagney <cagney@redhat.com>
14688
14689 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
14690 should be a switch case and not a label.
14691 * mips-tdep.c (mips32_next_pc): Delete unused labels
14692 "greater_equal_branch" and "less_zero_branch".
14693 * jv-valprint.c (java_print_value_fields): Delete unused label
14694 "flush_it".
14695
14696 * target.c (unpush_target): Only close a target that is in the
14697 target stack.
14698
14699 2004-01-05 Mark Kettenis <kettenis@gnu.org>
14700
14701 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
14702 address from [sp + 64] instead of %o2.
14703
14704 * frame.c (get_prev_frame): Don't try to unwind the PC. This
14705 fixes PR backtrace/1476.
14706
14707 2004-01-05 Andrew Cagney <cagney@redhat.com>
14708
14709 * libunwind-frame.h (struct frame_id): Add opaque declaration,
14710 move to start of file.
14711 * i386-tdep.h (struct regcache): Add opaque declaration.
14712 * config/ia64/nm-linux.h (struct target_ops): Add opaque
14713 declaration.
14714 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
14715 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
14716 * win32-nat.c (fake_create_process): Use ISO C style definition.
14717 * stabsread.c (define_symbol): Delete #ifndef
14718 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
14719 stabs_argument_has_addr call, macro never defined.
14720
14721 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
14722
14723 * op50-rom.c: Delete.
14724 * w89k-rom.c: Delete.
14725 * Makefile.in: Remove references.
14726
14727 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14728
14729 * x86-64-tdep.c: Update copyright year.
14730 (struct amd64_register_info): Rename from x86_64_register_info.
14731 (amd64_register_info): Rename from x86_64_register_info.
14732 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
14733 (amd64_register_name): Rename from x86_64_register_name.
14734 (amd64_register_type): Rename from x86_64_register_type.
14735 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
14736 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
14737 (amd64_dwarf_reg_to_regnum): Rename from
14738 x86_64_dwarf_reg_to_regnum.
14739 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
14740 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
14741 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
14742 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
14743 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
14744 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
14745 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
14746 (amd64_frame_cache): Rename from x86_64_frame_cache.
14747 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
14748 (amd64_frame_prev_register): Rename from
14749 x86_64_frame_prev_register.
14750 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
14751 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
14752 (amd64_sigtramp_frame_cache): Rename from
14753 x86_64_sigtramp_frame_cache.
14754 (amd64_sigtramp_frame_prev_register): Rename from
14755 x86_64_sigtramp_frame_prev_register.
14756 (amd64_sigtramp_frame_unwind): Rename from
14757 x86_64_sigtramp_frame_unwind.
14758 (amd64_sigtramp_frame_sniffer): Rename from
14759 x86_64_sigtramp_frame_sniffer.
14760 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
14761 (amd64_frame_base): Rename from x86_64_frame_base.
14762 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
14763 (amd64_frame_align): Rename from x86_64_frame_align.
14764 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
14765 (amd64_regset_from_core_section): Rename from
14766 x86_64_regset_from_core_section.
14767 (x86_64_init_abi): Update comments.
14768
14769 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
14770
14771 * MAINTAINERS (write after approval): Add myself.
14772
14773 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14774
14775 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
14776 `float' arguments.
14777
14778 2004-01-04 Mark Kettenis <kettenis@gnu.org>
14779
14780 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
14781 such that it mentions a specific version of GCC that exhibits this
14782 bug.
14783
14784 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14785
14786 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
14787 structure that has a single `float' member, store it in %f1 in
14788 addition to %f0.
14789
14790 * sparc-sol2-nat.c: Add missing '\'.
14791
14792 * sparc-tdep.c (sparc32_return_value): New function.
14793 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
14794 Remove functions.
14795 (sparc32_gdbarch_init): Set return_value, don't set
14796 extract_return_value, store_return_value, use_struct_convention
14797 and return_value_on_stack.
14798
14799 * sparc-sol2-nat.c: Add missing ')'.
14800
14801 2004-01-03 J. Brobecker <brobecker@gnat.com>
14802
14803 * infrun.c (handle_step_into_function): New function.
14804 (handle_inferior_event): Extract out some code into the new
14805 function above.
14806
14807 2004-01-03 J. Brobecker <brobecker@gnat.com>
14808
14809 * infrun.c (handle_inferior_event): Move the declaration of
14810 real_stop_pc inside the if blocks where it is used.
14811
14812 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14813
14814 * sparc64-tdep.c (sparc64_16_byte_align_p)
14815 (sparc64_store_floating_fields, sparc64_store_floating_fields):
14816 Use check_typedef to get subtypes of structures and unions.
14817 (sparc64_store_return_value): Fix calculation of the appropriate
14818 offset into VALBUF when storing a structure or union.
14819 (sparc64_return_value): New function.
14820 (sparc64_use_struct_convention): Remove function.
14821 (sparc64_init_abi): Set return_value, don't set
14822 extract_return_value, store_return_value and
14823 use_struct_convention.
14824
14825 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
14826
14827 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
14828 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
14829 gdb/config/alpha/xm-alphaosf.h,
14830 gdb/config/powerpc/tm-ppcle-eabi.h,
14831 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
14832 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
14833 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
14834 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
14835 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
14836 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
14837 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
14838 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
14839 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
14840 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
14841 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
14842 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
14843 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
14844 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
14845 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
14846 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
14847 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
14848 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
14849 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
14850 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
14851 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
14852 Remove lines for .cvsignore files.
14853
14854 2004-01-03 J. Brobecker <brobecker@gnat.com>
14855
14856 * infrun.c: Back out the previous change.
14857
14858 2004-01-03 Mark Kettenis <kettenis@gnu.org>
14859
14860 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
14861 sparc-*-sunos4* to the list of REMOVED configurations.
14862
14863 * configure.tgt: Add back sparc-*-vxworks*.
14864 * remote-vxsparc.c: Remove all includes except for "defs.h",
14865 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
14866 Include "sparc-tdep.h".
14867 (SPARC_R_G1): New define.
14868 (vxsparc_gregset): New variable.
14869 (ext_format_sparc): Remove extern declaration.
14870 (vx_read_register): Rewrite to use sparc32_supply_gregset and
14871 sparc32_supply_fpregset.
14872 (vx_write_register): Rewrite to use sparc32_collect_gregset,
14873 sparc_collect_rwindow and sparc32_collect_fpregset.
14874 * config/sparc/tm-vxworks.h: New file, based on recently removed
14875 tm-vxsparc.h.
14876 * config/sparc/vxworks.mt: New file, based on recently removed
14877 vxworks.mt.
14878
14879 2004-01-03 J. Brobecker <brobecker@gnat.com>
14880
14881 * infrun.c (handle_step_into_function): New function.
14882 (handle_inferior_event): Extract out some code into the new
14883 function above.
14884
14885 2004-01-02 Mark Kettenis <kettenis@gnu.org>
14886
14887 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
14888 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
14889 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
14890 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
14891 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
14892 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
14893 (sparc_nat_h): New variable.
14894 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
14895 (tm-sun4os4.h): Remove dependency.
14896 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
14897 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
14898 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
14899 sparc-tdep.o): Update dependencies.
14900 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
14901 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
14902 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
14903 dependencies.
14904 * configure.host: Remove existing sparc-*-lynxos*,
14905 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
14906 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
14907 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
14908 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
14909 triplets.
14910 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
14911 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
14912 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
14913 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
14914 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
14915 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
14916 sparc64-*-solaris2* and sparc64-*-* triplets.
14917 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
14918 "symtab.h" and "objfiles.h".
14919 (BIAS): Remove define.
14920 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
14921 (X_DISP19): Remove macros.
14922 (sparc_fetch_instruction): Remove function.
14923 (struct gdbarch_tdep): Remove definition.
14924 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
14925 (sparc_breakpoint_from_pc): Remove function.
14926 (struct sparc64_frame_cache): Remove definition.
14927 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
14928 sparc64_unwind_pc): Remove functions.
14929 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
14930 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
14931 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
14932 (sparc64_frame_cache): Change return type to `struct
14933 sparc_frame_cache *'. Simply call sparc_frame_cache.
14934 (sparc64_frame_this_id, sparc64_frame_prev_register,
14935 sparc64_frame_base_address): Use `struct sparc_frame_cache'
14936 instead of `struct sparc64_frame_cache.
14937 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
14938 sparc_analyze_control_transfer, sparc_software_single_step,
14939 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
14940 _initialize_sparc64_tdep): Remove functions.
14941 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
14942 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
14943 macros.
14944 (sparc64_supply_gregset, sparc64_collect_gregset,
14945 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
14946 (sparc64_init_abi): New function.
14947 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
14948 inclusion guard. Include "sparc-tdep.h".
14949 (BIAS): Define.
14950 (r_tstate_offset, r_fprs_offset): New defines.
14951 (enum sparc_regnum): Remove defenition.
14952 (enum sparc64_regnum): Reformat.
14953 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
14954 (sparc64_init_abi, sparc64_supply_gregset,
14955 sparc64_collect_gregset, sparc64_supply_fpregset,
14956 sparc64_collect_fpregset): New prototypes.
14957 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
14958 Add extern declarations.
14959 (sparc64_sol2_init_abi): New prototype.
14960 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14961 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14962 prototypes.
14963 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
14964 "sparnbsd-nat.h".
14965 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
14966 functions.
14967 (_initialize_sparc64fbsd_nat): Remove initialization of
14968 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
14969 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
14970 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
14971 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
14972 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
14973 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
14974 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
14975 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
14976 (sparc64fbsd_r_y_offset): Remove variables.
14977 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
14978 Make static and const.
14979 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
14980 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
14981 functions.
14982 (sparc64fbsd_gregset): New variable.
14983 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
14984 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
14985 and sparc64_supply_fpregset.
14986 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
14987 (sparc64fbsd_sigtramp_frame_this_id)
14988 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
14989 (sparc64fbsd_sigtramp_frame_unwind): New variable.
14990 (sparc64fbsd_sigtramp_frame_sniffer): New function.
14991 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
14992 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
14993 * sparcnbsd-tdep.c: Update copyright year. Include
14994 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
14995 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
14996 "value.h" and "sparcnbsd-tdep.h".
14997 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
14998 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
14999 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
15000 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
15001 defines.
15002 (sparcnbsd_gregset): New variable.
15003 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
15004 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
15005 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
15006 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
15007 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
15008 variables.
15009 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
15010 (sparc32nbsd_sigcontext_frame_this_id)
15011 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
15012 (sparc32nbsd_sigcontext_frame_unwind): New variable.
15013 (sparc32nbsd_sigtramp_frame_sniffer): New function.
15014 (sparcnbsd_get_longjmp_target_32,
15015 sparcnbsd_get_longjmp_target_64): Remove functions.
15016 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
15017 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
15018 sparcnbsd_init_elf): Remove.
15019 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
15020 (sparcnbsd_elf_init_abi): New functions.
15021 (_initialize_sparcnbsd_tdep): New prototype.
15022 (_initialize_sparnbsd_tdep): Update.
15023 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
15024 corelow.o. Add sparc64-nat.o and sparc-nat.o.
15025 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
15026 * config/sparc/linux.mh: Update comment.
15027 (XM_FILE, HOST_IPC): Remove variables.
15028 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
15029 sparc-linux-nat.o.
15030 * config/sparc/linux.mt: Update comment.
15031 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
15032 * config/sparc/nbsd.mt: Reformat.
15033 * config/sparc/nbsd64.mh: Update comment.
15034 (NATDEPFILES): Add sparc-nat.o.
15035 * config/sparc/nbsd64.mt: Update comment.
15036 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
15037 (TM_FILE): Set to tm-nbsd.h.
15038 * config/sparc/nbsdelf.mh: Update comment.
15039 (NATDEPFILES): Add sparc-nat.o.
15040 (XM_FILE): Delete.
15041 * config/sparc/nbsdaout.mh: Update comment.
15042 (NATDEPFILES): Add sparc-nat.o
15043 (XM_FILE): Delete.
15044 * config/sparc/nm-linux.h: Update copyright year. Don't include
15045 "config/nm-svr4.h" and "solib.h". Add protection against multiple
15046 inclusion.
15047 (KERNEL_U_SIZE): Remove define.
15048 (kernel_u_size): Remove prototype.
15049 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
15050 * config/sparc/nm-nbsd.h: Update copyright. Don't include
15051 "regcache.h".
15052 (CHILD_PREPARE_TO_STORE): Remove define.
15053 * config/sparc/nm-nbsdaout.h: Tweak some comments.
15054 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
15055 sparcnbsd-nat.c: Rewrite files.
15056 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
15057 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
15058 sparcnbsd-tdep.h: Remove files.
15059 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
15060 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
15061 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
15062 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
15063 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
15064 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
15065 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
15066 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
15067 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
15068 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
15069 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
15070 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
15071 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
15072 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
15073 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
15074 * config/sparc/linux64.mh, config/sparc/linux64.mt,
15075 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
15076 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
15077 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
15078
15079 2004-01-02 Andrew Cagney <cagney@redhat.com>
15080
15081 From 2003-12-18 Kazuhiro Inaoka:
15082 * configure.host: Add m32r-linux target.
15083
15084 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
15085
15086 * top.c (print_gdb_version): Update year to 2004.
15087
15088 2004-01-02 Mark Mitchell <mark@codesourcery.com>
15089
15090 * MAINTAINERS: Add myself to the write-after-approval category.
15091
15092 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
15093
15094 From Bernardo Innocenti <bernie@develer.com>:
15095 * configure.tgt: Add uClinux target.
15096
15097 2004-01-02 Andrew Cagney <cagney@redhat.com>
15098
15099 * utils.c (do_my_cleanups): Make static, add forward declaration.
15100 * defs.h (do_my_cleanups): Delete declaration.
15101
15102 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
15103
15104 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
15105 bfd/ChangeLog-0203.
15106
15107 2004-01-02 Mark Kettenis <kettenis@gnu.org>
15108
15109 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
15110 in <machine/reg.h>.
15111 * configure, config.in: Regenerate.
15112
15113 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
15114 tui/ChangeLog-1998-2003.
15115 \f
15116 Local Variables:
15117 mode: change-log
15118 left-margin: 8
15119 fill-column: 74
15120 version-control: never
15121 End:
This page took 0.319148 seconds and 5 git commands to generate.