2004-09-28 Andrew Cagney <cagney@gnu.org>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
dba24537
AC
12004-09-28 Andrew Cagney <cagney@gnu.org>
2
3 * linux-proc.c: Delete file.
4 * Makefile.in: Update.
5 * config/sparc/linux64.mh (NATDEPFILES):
6 * config/sparc/linux.mh (NATDEPFILES): Update.
7 * config/s390/s390.mh (NATDEPFILES): Update.
8 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
9 * config/powerpc/linux.mh (NATDEPFILES): Update.
10 * config/pa/linux.mh (NATDEPFILES): Update.
11 * config/mips/linux.mh (NATDEPFILES): Update.
12 * config/m68k/linux.mh (NATDEPFILES): Update.
13 * config/ia64/linux.mh (NATDEPFILES): Update.
14 * config/i386/linux64.mh (NATDEPFILES): Update.
15 * config/i386/linux.mh (NATDEPFILES): Update.
16 * config/arm/linux.mh (NATDEPFILES): Update.
17 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
18 * linux-nat.c: Update copyright. Include <sys/param.h>,
19 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
20 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
21 (O_LARGEFILE): Possibly define.
22 (_initialize_linux_nat, linux_proc_pending_signals)
23 (add_line_to_sigset, linux_proc_xfer_memory)
24 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
25 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
26 (struct linux_corefile_thread_data)
27 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
28 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
29
d6b0e80f
AC
302004-09-16 Andrew Cagney <cagney@gnu.org>
31
32 * lin-lwp.c: Delete file.
33 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
34 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
35 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
36 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
37 (linux_nat_attach, detach_callback, linux_nat_detach)
38 (resume_callback, resume_clear_callback, linux_nat_resume)
39 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
40 (stop_wait_callback, linux_nat_has_pending, flush_callback)
41 (status_callback, running_callback, count_events_callback)
42 (select_singlestep_lwp_callback, select_event_lwp_callback)
43 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
44 (child_wait, stop_and_resume_callback, linux_nat_wait)
45 (kill_callback, kill_wait_callback, linux_nat_kill)
46 (linux_nat_create_inferior, linux_nat_mourn_inferior)
47 (linux_nat_xfer_memory, linux_nat_thread_alive)
48 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
49 (_initialize_linux_nat): New functions.
50 * Makefile.in: Update all dependencies.
51 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
52 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
53 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
54 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
55 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
56 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
57 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
58 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
59 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
60 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
61 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
62 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
63 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
64
5a174d79
MK
652004-09-27 Mark Kettenis <kettenis@gnu.org>
66
2f604c28
MK
67 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
68 config/i386/obsd64.mh (NAT_FILE): Remove variable.
69
5a174d79
MK
70 * configure.in: Don't comment out NATDEPFILES in the generated
71 Makefile if NAT_FILE is unset.
72 * configure: Regenerate.
73
b2ed1746
AC
742004-09-27 Andrew Cagney <cagney@gnu.org>
75
44cbf7b5
AC
76 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
77 (insert_step_resume_breakpoint): Delete.
78 (insert_step_resume_breakpoint_at_frame): New function.
79 (insert_step_resume_breakpoint_at_sal): New function.
80 (handle_inferior_event, step_into_function)
81 (insert_step_resume_breakpoint): Simplify by using same.
82
b2ed1746
AC
83 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
84
3691b3be
MK
852004-09-26 Mark Kettenis <kettenis@gnu.org>
86
36f391e8
MK
87 * fbsd-proc.c: Remove file.
88 * Makefile.in (fbsd-proc.o): Remove dependency.
89
771e236c
MK
90 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
91 code together.
92
3691b3be
MK
93 * config/i386/nm-fbsd64.h: Remove file.
94 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
95
6a5c78a3
MK
962004-09-26 Mark Kettenis <kettenis@gnu.org>
97
98 * amd64-nat.h: Update copyright year.
99 (amd64bsd_target): New prototype.
100 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
101 (amd64bsd_target): New function.
102 (amd64bsd_fetch_inferior_registers): Rename from
103 fetch_inferior_registers. Make static.
104 (amd64bsd_store_inferior_registers): Rename from
105 store_inferior_registers. Make static.
106 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
107 (_initialize_amd64fbsd_nat): Construct and add target vector.
108 * amd64nbsd-nat.o: Include "target.h".
109 (_initialize_amd64nbsd_nat): Construct and add target vector.
110 * amd64obsd-nat.c: Include "target.h".
111 (_initialize_amd64obsd_nat): Construct and add target vector.
112 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
113 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
114 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
115 fbsd-nat.o.
116 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
117 Remove infptrace.o and inftarg.o. Add inf-child.o and
118 inf-ptrace.o.
119 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
120 (amd64obsd-nat.o): Update dependencies.
121
27acbe61
MK
1222004-09-25 Mark Kettenis <kettenis@gnu.org>
123
509a5e7d
MK
124 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
125 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
126 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
127 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
128 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
129
6e1e94ea
MK
130 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
131 Inline attach call.
132 (inf_ptrace_detach): Inline detach call.
133
8b9cf735
MK
134 * configure.in: Check for waddstr instead of mvwaddstr when
135 searching for curses library. Check for wborder.
136 * configure, config.in: Regenerate.
137 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
138 available.
139
27acbe61
MK
140 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
141
b96ec7ac
AC
1422004-09-24 Robert Picco <Robert.Picco@hp.com>
143
144 Committed by Andrew Cagney.
145 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
146 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
147 configuration.
148 (fetch_register_using_p): Implement 'p' packet. Based on code by
149 Fernando Nasser.
150 (remote_fetch_registers): Call fetch_register_using_p.
151 (init_all_packet_configs, show_remote_cmd)
152 (_initialize_remote): Add p-packet.
153
62ece330
MK
1542004-09-24 Mark Kettenis <kettenis@gnu.org>
155
156 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
157 instead of call_ptrace. Call wait directly instead of
158 ptrace_wait.
159 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
160 (inf_ptrace_wait): Inline ptrace_wait call.
161
00937274
PH
1622004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
163
164 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
165 rolled back instead.
166
3f2c7a45
PH
1672004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
168
169 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
170 the new argument order.
171
b6fcb393
CV
1722004-09-23 Corinna Vinschen <vinschen@redhat.com>
173
174 * MAINTAINERS: Remove "broken" from XStormy16 entry.
175 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
176 (struct gdbarch_tdep): Remove.
177 (struct xstormy16_frame_cache): New frame cache structure.
178 (xstormy16_register_byte, xstormy16_register_raw_size)
179 (xstormy16_reg_virtual_type, xstormy16_register_type)
180 (xstormy16_push_arguments, xstormy16_push_return_address)
181 (xstormy16_pop_frame, xstormy16_store_struct_return)
182 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
183 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
184 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
185 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
186 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
187 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
188 (xstormy16_use_struct_convention): Drop gcc_p parameter.
189 (xstormy16_extract_return_value, xstormy16_store_return_value):
190 Regcachify. Drop useless struct convention handling.
191 (xstormy16_register_type, xstormy16_return_value)
192 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
193 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
194 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
195 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
196 (xstormy16_unwind_sp, xstormy16_unwind_pc)
197 (xstormy16_unwind_dummy_id) : New functions.
198 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
199 of xstormy16_scan_prologue.
200 (xstormy16_frame_unwind): New frame_unwind structure.
201 (xstormy16_frame_base): New frame_base structure.
202 (xstormy16_gdbarch_init): Accomodate all of the above changes.
203 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
204
1285b746
MK
2052004-09-22 Mark Kettenis <kettenis@gnu.org>
206
207 * language.c (language_gdbarch_post_init): Fix off-by one error.
208
1c379e20
DJ
2092004-09-21 Daniel Jacobowitz <dan@debian.org>
210
211 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
212 (struct dwarf2_offset_and_type): New.
213 (set_die_type, reset_die_and_siblings_types, get_die_type)
214 (offset_and_type_hash, offset_and_type_eq): New functions.
215 (read_structure_type, read_enumeration_type, read_array_type)
216 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
217 (read_tag_reference_type, read_tag_const_type)
218 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
219 (read_typedef, read_base_type, read_subrange_type): Use
220 set_die_type.
221
ae038cb0
DJ
2222004-09-20 Daniel Jacobowitz <dan@debian.org>
223
224 * Makefile.in (dwarf2read.o): Update dependencies.
225 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
226 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
227 and read_in_chain.
228 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
229 mark, and has_form_ref_addr.
230 (struct dwarf2_per_cu_data): New.
231 (dwarf2_max_cache_age): New.
232 (dwarf2_build_psymtabs_hard): Free cached compilation units
233 after loading. Create and manage the list of compilation units.
234 Remove unnecessary NULL initialization. Fix indentation.
235 (psymtab_to_symtab_1): Initialize all of CU.
236 (dwarf2_read_abbrevs): Set has_form_ref_addr.
237 (find_partial_die): Use dwarf2_find_containing_comp_unit
238 and load_comp_unit.
239 (free_stack_comp_unit): Update comments. Clear the per-cu
240 pointer. Handle aging.
241 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
242 (age_cached_comp_units, free_one_cached_comp_unit)
243 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
244 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
245 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
246 (show_dwarf2_cmd): New.
247 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
248 and "maint show dwarf2 max-cache-age".
249 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
250 externs.
251 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
252 global.
253
987504bb
JJ
2542004-09-20 Jeff Johnston <jjohnstn@redhat.com>
255
256 * dwarf2read.c (typename_concat): Change prototype to accept obstack
257 and dwarf2_cu struct pointer as arguments. Change function to use
258 obstack if provided and use dwarf2_cu to determine language-specific
259 separator.
260 (partial_die_parent_scope): Change comment to include java. Use
261 new version of typename_concat instead of obconcat.
262 (partial_die_full_name): Use typename_concat.
263 (read_namespace): Ditto.
264 (read_enumeration_type): Use typename_concat instead of obconcat.
265 (new_symbol): Ditto.
266 (add_partial_symbol): Enhance tests for C++ to also test for Java.
267 (guess_structure_name): Ditto.
268 (read_subroutine_type): Ditto.
269 (read_structure_type): Ditto.
270 (is_vtable_name): Add Java support.
271 (determine_class_name): Switch to new typename_concat call.
272 (determine_prefix): Switch to new typename_concat call.
273 * jv-exp.y (FuncStart): New pattern.
274 (MethodInvocation): Add support for simple function calls. Change
275 warning message for other forms of inferior call currently not
276 supported.
277 * valarith.c (value_subscript): Treat an array with upper-bound
278 of -1 as unknown size.
279
d9c8471e
DJ
2802004-09-20 Daniel Jacobowitz <dan@debian.org>
281
282 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
283 (lookup_partial_symtab): Use symtab_to_fullname.
284
d73f140a
JB
2852004-09-19 Jim Blandy <jimb@redhat.com>
286
287 * minsyms.c (lookup_minimal_symbol): Doc fix.
288
adbef1f0
AC
2892004-09-20 Andrew Cagney <cagney@gnu.org>
290
291 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
292 CHILD_RESUME.
293 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
294 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
295 KILL_INFERIOR.
296 * infptrace.c: Update.
297
d092d1a2
DJ
2982004-09-19 Daniel Jacobowitz <dan@debian.org>
299
300 * symtab.c (output_source_filename): Mark first argument as const.
301 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
302 for "info sources" output.
303
86d9e1d7
MK
3042004-09-20 Mark Kettenis <kettenis@gnu.org>
305
306 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
307 <machine/vmparam.h>.
308 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
309 (register_u_addr): Remove prototype.
310
9a6c8ef4
MK
3112004-09-19 Mark Kettenis <kettenis@gnu.org>
312
9692934b
MK
313 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
314 (i386bsd_fetch_inferior_registers): Rename from
315 fetch_inferior_registers. Make static.
316 (i386bsd_store_inferior_registers): Rename from
317 store_inferior_registers. Make static.
318 (i386bsd_target): New function.
319 * i386bsd-nat.h: New file.
320 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
321 "i386bsd-nat.h".
322 (i386fbsd_resume): Rename from child_resume. Make static.
323 (_initialize_i386fbsd_nat): Construct and add target vector.
324 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
325 (_initialize_i386nbsd_nat): Construct and add target vector.
326 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
327 Remove defines.
328 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
329 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
330 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
331 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
332 (LOADLIBES): New variable.
333 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
334 inf-ptrace.o. Remove inftarg.o.
335 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
336 inf-ptrace.o. Remove inftarg.o.
337 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
338 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
339 (LOADLIBES): New variable.
340 * Makefile.in (i386bsd_nat_h): New variable.
341 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
342 dependencies.
343
3510d1f2
MK
344 * sparc64nbsd-tdep.c: Include "objfiles.h".
345 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
346 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
347 svr4_lp64_fetch_link_map_offsets.
348 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
349 "nbsd-tdep.h".
350 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
351 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
352 svr4_lp64_fetch_link_map_offsets.
353 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
354 dependencies.
355
578c1c03
MK
356 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
357 * fbsd-nat.h: New file.
358 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
359 (fbsd_nat_h): New variable.
360 (fbsd-nat.o): New dependency.
361
7a7b73b7
MK
362 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
363 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
364
9a6c8ef4
MK
365 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
366 comment.
367
72d5681a
PH
3682004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
369
370 * ada-exp.y (type_int): New function to add layer of abstraction
371 around references to expression types.
372 (type_long): Ditto.
373 (type_long_long): Ditto.
374 (type_float): Ditto.
375 (type_double): Ditto.
376 (type_long_double): Ditto.
377 (type_char): Ditto.
378 (type_system_address): Ditto.
379 (simple_exp): Use type_* functions in place of builtin_*
380 variables.
381 (exp): Ditto.
382 (write_var_from_name): Ditto.
383 (write_object_renaming): Ditto.
384 * ada-lang.c (ada_create_fundamental_type): Remove redundant
385 declaration.
386 (build_ada_types): Remove, replacing with...
387 (ada_language_arch_info): New function to initialize primitive
388 type vector in language_arch_info.
389 (ada_array_length): Remove use of builtin_type_ada_int.
390 (value_pos_atr): Ditto.
391 (ada_evaluate_subexp): Ditto.
392 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
393 builtin_type_ada_long_long, builtin_type_ada_char,
394 builtin_type_ada_float, builtin_type_ada_double,
395 builtin_type_ada_long_double, builtin_type_ada_natural,
396 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
397 (ada_builtin_types): Remove.
398 (ada_language_defn): Remove entries for la_builtin_type_vector and
399 string_char_type and use ada_language_arch_info.
400 (_initialize_ada_language): Do type-vector initialization along
401 the lines of c-lang.c.
402 (ada_create_fundamental_type): Break up line.
403 (ada_dump_symtab): Remove unused function.
404 (enum ada_primitive_types): Define.
405 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
406 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
407 builtin_type_ada_float, builtin_type_ada_double,
408 builtin_type_ada_long_double, builtin_type_ada_natural,
409 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
410 * ada-lex.l: Use type_* functions in place of builtin_* variables.
411 (processInt): Ditto.
412 (processReal): Ditto.
413 (name_lookup): Ditto.
414 * ada-typeprint.c (print_range): Use builtin_type_int, not
415 builtin_type_ada_int.
416
4f0be353
MK
4172004-09-18 Mark Kettenis <kettenis@gnu.org>
418
30b0e2d8
MK
419 * i386-tdep.c (i386_register_name): Rename regno to regnum.
420
4f0be353
MK
421 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
422 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
423 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
424 * configure.in: Improve checks for curses library by checking for
425 mvwaddstr instead of initscr. Drop HP curses in favour of
426 standard curses on HP-UX.
427 * configure: Regenerated.
428
72d5681a 4292004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
6c038f32
PH
430
431 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
432 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
433 Minor formatting changes.
434 (empty_array): Slight rewrite for formatting.
435 (emit_char,parse,ada_language_defn,build_ada_types,
436 ada_is_exception_sym, _initialize_ada_language): Move
437 definitions around.
438 (ada_dump_symtab): Remove unused definition.
439 (ada_maybe_exception_partial_symbol): Remove unused definition.
440
1c8c7407
AC
4412004-09-16 Andrew Cagney <cagney@gnu.org>
442
7681f339
AC
443 * inf-child.c: Include "gdb_string.h".
444 (inf_child_core_file_to_sym_file): Delete.
445 (inf_child_target): Set to_fetch_registers and to_store_registers.
446 * inf-ptrace.c: Include "gdb_string.h".
447 * Makefile.in: Update all dependencies.
448
1c8c7407
AC
449 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
450 problem.
451
65596487
JB
4522004-09-14 Joel Brobecker <brobecker@gnat.com>
453
454 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
455 call to heuristic_proc_desc. Remove code that became redundant
456 as a consequence.
457 (read_next_frame_reg): Remove special case for SP_REGNUM.
458 (set_reg_offset): Fix small typo.
459 (reset_saved_regs): New procedure.
460 (mips32_heuristic_proc_desc): No longer compute a fake
461 procedure descriptor. Compute the full frame cache instead.
462 Some minor comment reformatting.
463
95575b2e
AC
4642004-09-14 Andrew Cagney <cagney@gnu.org>
465
f200c492
AC
466 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
467 maintainer.
468
95575b2e
AC
469 * thread-db.c (thread_db_new_objfile): Assume that there is a
470 child process.
471
69657671
JB
4722004-09-13 Jim Blandy <jimb@redhat.com>
473
474 * valops.c (value_assign): Move 'buffer' to the enclosing block,
475 so that its storage isn't referenced after its lifetime ends.
476
6c4182dd
JB
477 * valops.c (value_assign): 'use_buffer' is initialized to zero,
478 and never assigned to. Delete it, and the 'if (use_buffer)'
479 clauses. Delete 'raw_buffer', since it is now unused.
480
ee31a58d
AC
4812004-09-13 Andrew Cagney <cagney@gnu.org>
482
2c0fc042
AC
483 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
484 * configure: Re-generate.
485 * nlm/Makefile.in (TAGS): Update.
486 * Makefile.in (TAGS): Update.
487 * config/vax/nbsd.mt (TM_FILE): Update.
488 * config/sparc/vxworks.mt (TM_FILE): Update.
489 * config/sparc/sol2.mt (TM_FILE): Update.
490 * config/sparc/sol2-64.mt (TM_FILE): Update.
491 * config/sparc/obsd64.mt (TM_FILE): Update.
492 * config/sparc/obsd.mt (TM_FILE): Update.
493 * config/sparc/nbsd64.mt (TM_FILE): Update.
494 * config/sparc/nbsd.mt (TM_FILE): Update.
495 * config/sparc/linux64.mt (TM_FILE): Update.
496 * config/sparc/linux.mt (TM_FILE): Update.
497 * config/sparc/fbsd.mt (TM_FILE): Update.
498 * config/sh/wince.mt (TM_FILE): Update.
499 * config/sh/nbsd.mt (TM_FILE): Update.
500 * config/sh/linux.mt (TM_FILE): Update.
501 * config/sh/embed.mt (TM_FILE): Update.
502 * config/s390/s390.mt (TM_FILE): Update.
503 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
504 * config/rs6000/rs6000.mt (TM_FILE): Update.
505 * config/rs6000/aix4.mt (TM_FILE): Update.
506 * config/powerpc/vxworks.mt (TM_FILE): Update.
507 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
508 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
509 * config/powerpc/obsd.mt (TM_FILE): Update.
510 * config/powerpc/nbsd.mt (TM_FILE): Update.
511 * config/powerpc/linux.mt (TM_FILE): Update.
512 * config/powerpc/aix.mt (TM_FILE): Update.
513 * config/pa/obsd.mt (TM_FILE): Update.
514 * config/pa/linux.mt (TM_FILE): Update.
515 * config/pa/hppahpux.mt (TM_FILE): Update.
516 * config/pa/hppa64.mt (TM_FILE): Update.
517 * config/pa/hppa.mt (TM_FILE): Update.
518 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
519 * config/mips/wince.mt (TM_FILE): Update.
520 * config/mips/vxmips.mt (TM_FILE): Update.
521 * config/mips/nbsd.mt (TM_FILE): Update.
522 * config/mips/linux.mt (TM_FILE): Update.
523 * config/mips/irix6.mt (TM_FILE): Update.
524 * config/mips/irix5.mt (TM_FILE): Update.
525 * config/mips/embed.mt (TM_FILE): Update.
526 * config/m68k/vxworks68.mt (TM_FILE): Update.
527 * config/m68k/st2000.mt (TM_FILE): Update.
528 * config/m68k/os68k.mt (TM_FILE): Update.
529 * config/m68k/obsd.mt (TM_FILE): Update.
530 * config/m68k/nbsd.mt (TM_FILE): Update.
531 * config/m68k/monitor.mt (TM_FILE): Update.
532 * config/m68k/linux.mt (TM_FILE): Update.
533 * config/m68k/cisco.mt (TM_FILE): Update.
534 * config/ia64/linux.mt (TM_FILE): Update.
535 * config/ia64/aix.mt (TM_FILE): Update.
536 * config/ia64/ia64.mt (TM_FILE): Update.
537 * config/i386/vxworks.mt (TM_FILE): Update.
538 * config/i386/obsd64.mt (TM_FILE): Update.
539 * config/i386/obsd.mt (TM_FILE): Update.
540 * config/i386/nto.mt (TM_FILE): Update.
541 * config/i386/nbsd64.mt (TM_FILE): Update.
542 * config/i386/nbsd.mt (TM_FILE): Update.
543 * config/i386/linux64.mt (TM_FILE): Update.
544 * config/i386/linux.mt (TM_FILE): Update.
545 * config/i386/i386sol2.mt (TM_FILE): Update.
546 * config/i386/i386lynx.mt (TM_FILE): Update.
547 * config/i386/fbsd64.mt (TM_FILE): Update.
548 * config/i386/fbsd.mt (TM_FILE): Update.
549 * config/i386/cygwin.mt (TM_FILE): Update.
550 * config/h8300/h8300.mt (TM_FILE): Update.
551 * config/frv/frv.mt (TM_FILE): Update.
552 * config/cris/cris.mt (TM_FILE): Update.
553 * config/arm/wince.mt (TM_FILE): Update.
554 * config/arm/nbsd.mt (TM_FILE): Update.
555 * config/arm/linux.mt (TM_FILE): Update.
556 * config/arm/embed.mt (TM_FILE): Update.
557 * config/alpha/nbsd.mt (TM_FILE): Update.
558 * config/alpha/fbsd.mt (TM_FILE): Update.
559 * config/alpha/alpha.mt (TM_FILE): Update.
560 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
561 * config/alpha/alpha-linux.mt (TM_FILE): Update.
562
362646f5
AC
563 Eliminate event_loop_p, always has the value 1.
564 * defs.h (event_loop_p): Delete macro.
565 * breakpoint.c (until_break_command): Simplify.
566 * utils.c (prompt_for_continue): Simplify.
567 * tracepoint.c (read_actions): Simplify.
568 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
569 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
570 (set_prompt, init_main): Simplify.
571 (init_signals, disconnect): Delete, unused.
572 * remote.c (remote_async_resume)
573 (extended_remote_async_create_inferior): Simplify.
574 * mi/mi-interp.c (mi_input): Delete, unused.
575 (mi_interpreter_resume, mi_command_loop): Simplify.
576 * interps.c (current_interp_command_loop): Simplify.
577 * infrun.c (proceed): Simplify.
578 * infcmd.c (run_command, continue_command, step_1, jump_command)
579 (until_command, advance_command, finish_command)
580 (interrupt_target_command): Simplify.
581 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
582
ee31a58d
AC
583 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
584 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
585 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
586 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
587 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
588 * mips-tdep.c (mips_dump_tdep): Do not print same.
589
b7ffc4a8
AC
5902004-09-12 Andrew Cagney <cagney@gnu.org>
591
2bfb72ee
AC
592 * valprint.c (print_longest): Use fputs_filtered. Make "val"
593 const.
594 * Makefile.in (valprint.o): Delete explict rule.
595
4f17c3c1
AC
596 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
597 reported by Dave Anderson.
598
f810308b
AC
599 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
600
b7ffc4a8
AC
601 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
602
28b41c52
AC
6032004-09-12 Salvador E. Tropea <set@users.sf.net>
604 Andrew Cagney <cagney@gnu.org>
605
606 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
607 (mi_cmd_data_list_register_values)
608 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
609 the register number computation.
610
5bf970f9
AC
6112004-09-12 Andrew Cagney <cagney@gnu.org>
612
613 * ppcnbsd-nat.c: Include "inf-ptrace.h".
614 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
615 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
616 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
617 target.
618 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
619 inf-ptrace.o and inf-child.o.
620 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
621 * Makefile.in: Update dependencies.
622
0759e0bf
AC
6232004-09-11 Andrew Cagney <cagney@gnu.org>
624
625 * language.c (hex_string, hex_string_custom): Move from here ...
626 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
627 (CELLSIZE): Increase to 50.
628 * language.h (hex_string, hex_string_custom): Move from here ...
629 * defs.h: ... to here.
630 * Makefile.in: Update all dependencies.
631
bb599908
PH
6322004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
633
634 * language.c (local_hex_format_custom): Remove.
635 (local_hex_string): Rename to hex_string, use C format, and move to
636 utils.c
637 (local_hex_string_custom): Rename to hex_string_custom and change
638 interface. Now uses C format. Move to utils.c
639 (local_octal_format_custom): Remove.
640 (local_decimal_format_custom): Remove.
641 (unknown_language_defn): Remove language-specific number
642 formatting entries.
643 (auto_language_defn): Ditto.
644 (local_language_defn): Ditto.
645 * language.h (struct language_format_info): Delete declaration.
646 (struct language_defn): Remove language_format_info fields
647 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
648 (local_binary_format): Remove macro.
649 (local_binary_format_prefix): Remove macro.
650 (local_binary_format_specifier): Remove macro.
651 (local_binary_format_suffix): Remove macro.
652 (local_octal_format): Remove macro.
653 (local_octal_format_prefix): Remove macro.
654 (local_octal_format_specifier): Remove macro.
655 (local_octal_format_suffix): Remove macro.
656 (local_decimal_format): Remove macro.
657 (local_decimal_format_prefix): Remove macro.
658 (local_decimal_format_specifier): Remove macro.
659 (local_decimal_format_suffix): Remove macro.
660 (local_hex_format): Remove macro.
661 (local_hex_format_prefix): Remove macro.
662 (local_hex_format_specifier): Remove macro.
663 (local_hex_format_suffix): Remove macro.
664 (local_decimal_format_custom): Remove.
665 (local_octal_format_custom): Remove.
666 (local_hex_format_custom): Remove.
667 (local_hex_string): Rename to hex_string and move to defs.h.
668 (local_hex_string_custom): Rename to hex_string_custom, change
669 interface, and move to defs.h.
670 * utils.c: (int_string): New function.
671 (hex_string): New function (from language.c).
672 (hex_string_custom): New function (from language.c).
673 (octal2str): New function.
674 (decimal2str): Add width parameter.
675 (paddr_u): Use new decimal2str interface.
676 (paddr_d): Ditto.
677 * defs.h (hex_string): Declare.
678 (hex_string_custom): Declare.
679 (int_string): Declare.
680 * printcmd.c (print_scalar_formatted): Remove localized binary
681 formatting.
682 * valprint.c (print_longest): Use int_string.
683 (print_floating): Use C hex format.
684 (print_hex_chars): Ditto.
685 (print_binary_chars): Remove language-specific formatting.
686 (print_octal_chars): Use C octal format.
687 (print_decimal_chars): Delocalize format.
688 (print_decimal): Remove.
689 * ada-lang.c (ada_language_defn): Remove language-specific number
690 formatting entries.
691 * p-lang.c (pascal_language_defn): Ditto.
692 * c-lang.c (c_language_defn): Ditto.
693 (cplus_language_defn): Ditto.
694 (asm_language_defn): Ditto.
695 (minimal_language_defn): Ditto.
696 * f-lang.c (f_language_defn): Ditto.
697 * jv-lang.c (java_language_defn): Ditto.
698 * m2-lang.c (m2_language_defn): Ditto.
699 * scm-lang.c (scm_language_defn): Ditto.
700 * objc-lang.c (objc_language_defn): Ditto.
701 * memattr.c (mem_info_command): Use renamed hex_string_custom with
702 new interface.
703 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
704 * ui-out.c (ui_out_field_core_addr): Ditto.
705 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
706 * exec.c (print_section_info): Ditto.
707 * i387-tdep.c (print_i387_status_word): Ditto.
708 (print_i387_control_word): Ditto.
709 (i387_print_float_info): Ditto.
710 * maint.c (maint_print_section_info): Ditto.
711 * solib.c (info_sharedlibrary_command): Ditto.
712 * somsolib.c (som_sharedlibrary_info_command): Ditto.
713 * symtab.c (print_msymbol_info): Ditto.
714 * tracepoint.c (tracepoints_info): Ditto.
715 * solib-frv.c (lm_base): Ditto.
716 (frv_current_sos): Ditto.
717 (enable_break2): Ditto.
718 (enable_break): Ditto.
719 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
720 (process_one_symbol): Ditto.
721 * infcmd.c (program_info): Ditto.
722 * mdebugread.c (parse_partial_symbols): Ditto.
723 * symfile.c (add_symbol_file_command): Ditto.
724 * cli/cli-cmds.c (edit_command): Ditto.
725 (list_command): Ditto.
726 * infcall.c (call_function_by_hand): Ditto.
727 * remote-vx.c (vx_run_files_info): Ditto.
728 (vx_wait): Ditto.
729 (vx_attach): Ditto.
730 (vx_detach): Ditto.
731 (vx_kill): Ditto.
732 * aix-thread.c (pdc_symbol_addrs): Ditto.
733 (pdc_read_regs): Ditto.
734 (pdc_write_regs): Ditto.
735 (pdc_read_data): Ditto.
736 (pdc_write_data): Ditto.
737 * d10v-tdep.c (display_trace): Ditto.
738 * rs6000-nat.c (find_toc_address): Ditto.
739 * aix-thread.c: Don't include language.h.
740 * buildsym.c: Ditto.
741 * dbxread.c: Ditto.
742 * mdebugread.c: Ditto.
743 * rs6000-nat.c: Ditto.
744 * buildsym.c (make_blockvector): Use renamed hex_string.
745
33f2d567
JM
7462004-09-10 Jason Molenda (jmolenda@apple.com)
747
748 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
749 chars after 'if' or 'while' commands in user-defined commands.
750
7b90c3f9
JB
7512004-09-08 Jim Blandy <jimb@redhat.com>
752
753 Fix bug reported and analyzed by Olivier Crete:
754 * symfile.c (copy_section_addr_info): New function.
755 (symbol_file_add_with_addrs_or_offsets): Use it to save the
756 original set of address arguments, instead of handwritten code
757 that uses one length to allocate and a different length to
758 initialize. Use make_cleanup_free_section_addr_info.
759 * symfile.h (copy_section_addr_info): New declaration.
760 * utils.c: #include "symfile.h".
761 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
762 New functions.
763 * defs.h (make_cleanup_free_section_addr_info): New declaration.
764 * Makefile.in (utils.o): Update dependencies.
765
b26a6851
AC
7662004-09-08 Andrew Cagney <cagney@gnu.org>
767
768 * thread-db.c (keep_thread_db): Delete.
769 (thread_db_new_objfile, thread_db_create_inferior)
770 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
771
be24b061
MK
7722004-09-08 Mark Kettenis <kettenis@gnu.org>
773
f6792ef4
MK
774 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
775 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
776 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
777 (i386_frameless_signal_p): Remove prototype.
778 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
779 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
780 I386_SSE_NUM_REGS.
781 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
782 instead of FP0_REGNUM.
783 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
784 of FP0_REGNUM and FPC_REGNUM.
785
eeefdaa7
MK
786 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
787 (sunos_solib_create_inferior_hook): Don't call
788 sunos_relocate_main_executable.
789
be24b061
MK
790 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
791 solib_svr4_fetch_link_map_offsets to
792 svr4_ilp32_fetch_link_map_offsets.
793 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
794 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
795 svr4_ilp32_fetch_link_map_offsets.
796 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
797
7c679d16
JB
7982004-09-07 Jim Blandy <jimb@redhat.com>
799
800 * frame.h (frame_register): Doc fix.
801
1f04aa62
AC
8022004-09-07 Andrew Cagney <cagney@gnu.org>
803
804 * vx-share/wait.h: Delete #ifdef USG.
805 * utils.c (request_quit): Ditto.
806 * tui/tui.c (tui_reset): Ditto.
807 * remote.c: Ditto.
808 * remote-sds.c: Ditto.
809 * remote-rdi.c: Ditto.
810 * mdebugread.c: Ditto.
811 * m68klinux-nat.c: Ditto.
812 * infttrace.c: Ditto.
813 * infptrace.c: Ditto.
814 * i386v-nat.c: Ditto.
815 * exec.c: Ditto.
816 * dbxread.c: Ditto.
817 * core-aout.c: Ditto.
818
90edbfbc
JB
8192004-09-05 Joel Brobecker <brobecker@gnat.com>
820
821 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
822 heuristic_proc_desc.
823 (mips_insn32_frame_cache): Likewise.
824
01f4bf2b
JB
8252004-09-04 Joel Brobecker <brobecker@gnat.com>
826
827 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
828 left behind by error.
829
8511a048
JB
8302004-09-04 Joel Brobecker <brobecker@gnat.com>
831
832 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
833 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
834
649dfe9f
JB
8352004-09-04 Joel Brobecker <brobecker@gnat.com>
836
837 * config/rs6000/xm-aix4.h: Remove this file.
838 * config/rs6000/aix4.mh (XM_FILE): Delete.
839
6e50f889
JB
8402004-09-04 Joel Brobecker <brobecker@gnat.com>
841
842 * config/rs6000/xm-rs6000.h: Remove this file.
843 * config/rs6000/rs6000.mh (XM_FILE): Remove.
844
b8c4aece
AC
8452004-09-03 Andrew Cagney <cagney@gnu.org>
846
fb603883
AC
847 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
848 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
849 only use.
850
c9343fd1
AC
851 * mips-tdep.c (temp_saved_regs): Delete.
852 (set_reg_offset): Replace saved_regs parameter with this_cache.
853 (heuristic_proc_desc, mips16_heuristic_proc_desc)
854 (mips32_heuristic_proc_desc): Add this_cache parameter.
855 (mips_insn32_frame_cache, mips_insn16_frame_cache)
856 (after_prologue): Pass a NULL this_cache.
857
9733cfe1
AC
858 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
859 non-kernel trap prologues.
860
0d5febcc
AC
861 * mips-tdep.c (find_proc_desc): Delete function.
862 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
863 simplify.
864 (mips_insn16_frame_cache): Replace find_proc_desc with code from
865 mips_insn32_frame_cache.
866
9733cfe1 867 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
283be873
AC
868 Simplify as NEXT_FRAME is NULL.
869 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
870
177f84a3
AC
871 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
872 local variable.
873 (mips_skip_prologue): Update.
874
465f7520
AC
875 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
876 "cur_frame" parameter.
177f84a3
AC
877 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
878 (mips_insn32_frame_cache, find_proc_desc): Update
465f7520 879
e38b8658
AC
880 * config/vax/nm-obsd.h: Delete file.
881 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
882 * config/vax/nm-nbsd.h: Delete file.
883 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
884 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
885 * config/sh/nm-nbsd.h: Delete file.
886 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
887 * config/rs6000/nm-rs6000ly.h: Delete file.
888 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
889 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
890 * config/powerpc/nm-obsd.h: Delete file.
891 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
892 * config/powerpc/nm-nbsd.h: Delete file.
893 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
894 * config/pa/nm-obsd.h: Delete file.
895 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
896 * config/mips/nm-nbsd.h: Delete file.
897 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
898 * config/m88k/nm-obsd.h: Delete file.
899 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
900 * config/m68k/nm-nbsd.h: Delete file.
901 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
902 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
903 * config/i386/nm-nbsd.h: Delete file.
904 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
905 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
906 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
907 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
908 * config/i386/nm-i386lynx.h: Delete file.
909 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
910 * config/arm/nm-nbsd.h: Delete file.
911 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
912 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
913
be1ed680
AC
914 * config/i386/tm-fbsd.h: Delete file.
915 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
916 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
917
4b392b26
AC
918 * config/rs6000/tm-rs6000-aix4.h: Delete file.
919 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
920 * config/rs6000/aix4.mt (TM_FILE): Set to
921 config/rs6000/tm-rs6000.h.
922 * config/powerpc/tm-ppc-aix.h: Delete file.
923 * config/powerpc/aix.mt (TM_FILE): Set to
924 config/rs6000/tm-rs6000.h.
925 * config/m68k/tm-linux.h: Delete file.
926 * config/m68k/linux.mt (TM_FILE): Set to solib.h
927 * config/i386/tm-linux64.h: Delete file.
928 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
929 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
930
f3219c75
AC
931 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
932 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
933 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
934 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
935 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
936 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
937 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
938 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
939 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
940
b8c4aece
AC
941 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
942 gdb_host_cpu.
943
8ac2e020
JB
9442004-09-02 Joel Brobecker <brobecker@gnat.com>
945
946 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
947 Minor reformatting. Some code factoring.
948
c185a355
AC
9492004-09-02 Andrew Cagney <cagney@gnu.org>
950
63f22f0d
AC
951 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
952 * config/vax/tm-nbsd.h: Delete file.
953 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
954 * config/sparc/tm-vxworks.h: Delete file.
955 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
956 * config/sparc/tm-nbsd.h: Delete file.
957 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
958 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
959 * config/sparc/tm-linux.h: Delete file.
960 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
961 * config/s390/tm-linux.h: Delete file.
962 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
963 * config/pa/tm-bsd.h: Delete file.
964 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
965 * config/m68k/tm-obsd.h: Delete file.
966 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
967 * config/m68k/tm-nbsd.h: Delete file.
968 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
969 * config/i386/tm-vxworks.h: Delete file.
970 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
971 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
972 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
973 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
974 * config/i386/tm-nbsd.h: Delete file.
975 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
976 * config/i386/tm-i386lynx.h: Delete file.
977 * config/cris/cris.mt (TM_FILE): Set to solib.h.
978 * config/cris/tm-cris.h: Delete file.
979
0f475e27
AC
980 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
981 * configure: Re-generate.
982 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
983 * config/arm/tm-nbsd.h: Delete file.
984
458ed000
AC
985 * config/powerpc/tm-ppcle-sim.h: Delete.
986 * config/powerpc/tm-ppcle-eabi.h: Delete.
987 * config/powerpc/tm-nbsd.h: Delete.
988 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
989 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
990 tm-ppcle-eabi.h.
991
f14375f3
AC
992 * config/i386/nto.mh (NAT_FILE): Delete.
993 * config/i386/nm-nto.h: Delete.
994
c34d127c
AC
995 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
996 * config/m68k/tm-os68k.h: Ditto.
997 * config/m68k/tm-monitor.h: Ditto.
998 * config/m68k/tm-cisco.h: Ditto.
999 * config/m68k/st2000.mt (TM_FILE): Delete.
1000 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
1001 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
1002 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
1003 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
1004
f7f0fe03
AC
1005 * config/m68k/tm-st2000.h: Delete.
1006 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
1007 * config/sparc/fbsd.mt (TM_FILE): Delete.
1008 * config/sparc/tm-fbsd.h: Delete.
1009
a2558533
AC
1010 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
1011 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
1012 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
1013
b78960be
AC
1014 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
1015 GDB_TM_FILE and GDB_XM_FILE.
1016 * gdbarch.c: Re-generate.
1017 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
1018 quotes in macro definition.
1019 * configure.in: Re-generate.
1020
4d60522e
AC
1021 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
1022 validating architecture methods.
1023 * gdbarch.c: Re-generate.
1024
5010d38b
AC
1025 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
1026 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
1027 GDB_MULTI_ARCH_PARTIAL.
1028 * gdbarch.h: Re-generate.
1029
c185a355
AC
1030 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
1031 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
1032 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
1033 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
1034 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
1035 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
1036 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
1037 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
1038 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
1039 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
1040 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
1041 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
1042
14aaa6ab
AC
10432004-09-01 Andrew Cagney <cagney@gnu.org>
1044
1045 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
1046 and main_func_highpc.
1047 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
1048 * objfiles.c (init_entry_point_info, objfile_relocate): Update
1049 * nlmread.c (nlm_symfile_read): Update.
1050
a343eb3c
JB
10512004-09-01 Joel Brobecker <brobecker@gnat.com>
1052
1053 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
1054 (mips_insn32_frame_cache): Inline call to find_proc_desc.
1055 (find_proc_desc): Remove dead code.
1056
4fbbbd07
JB
10572004-09-01 Joel Brobecker <brobecker@gnat.com>
1058
1059 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
1060
84acb35a
JJ
10612004-09-01 Jeff Johnston <jjohnstn@redhat.com>
1062
1063 * observer.sh: Add struct so_list declaration.
1064 * Makefile.in: Add dependencies on observer.h for solib.c and
1065 breakpoint.c.
1066 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
1067 function.
1068 (_initialize_breakpoint): Register
1069 disable_breakpoints_in_unloaded_shlib as an observer of the
1070 "solib unloaded" observation event.
1071 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
1072 call decode_line_1 so unfound breakpoint errors are silent.
1073 * solib.c (update_solib_list): When a solib is discovered to have
1074 been unloaded by the program, notify all observers of the
1075 "solib unloaded" observation event.
1076
c8cd9f6c
AC
10772004-09-01 Andrew Cagney <cagney@gnu.org>
1078
1079 * frame.c: Include "objfiles.h".
1080 (inside_main_func): New function.
1081 (get_prev_frame): Use new inside_main_func.
1082 * Makefile.in (frame.o): Update dependencies.
1083 * defs.h (inside_main_func): Delete declaration.
1084 * blockframe.c (inside_main_func): Delete function.
1085
1168df01
JB
10862004-08-31 Jim Blandy <jimb@redhat.com>
1087
1088 * dwarf2read.c (is_vtable_name): New function, based on logic from
1089 read_structure_type, but passing the correct length to strncmp,
1090 and using 'sizeof' instead of 'strlen'.
1091 (read_structure_type): Call it.
1092
f14f9744
JB
10932004-08-31 Joel Brobecker <brobecker@gnat.com>
1094
1095 * config/powerpc/aix.mh: Add comment.
1096
386d4518
PG
10972004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
1098
1099 * MAINTAINERS: Add self to Write-After-Approval.
1100
7d97d5e2
MI
11012004-08-30 Manoj Iyer <manjo@austin.ibm.com>
1102
1103 * MAINTAINERS: Add self to Write-After-Approval.
1104
68f53502
AC
11052004-08-30 Andrew Cagney <cagney@gnu.org>
1106
1107 Fix PR breakpoints/1757.
1108 * infrun.c (struct execution_control_state): Replace
1109 remove_breakpoints_on_following_step with
1110 step_after_step_resume_breakpoint.
1111 (init_execution_control_state): Update.
1112 (handle_inferior_event): For signals, when stepping off a
1113 breakpoint, set step_after_step_resume_breakpoint. When
1114 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
1115 (keep_going): Delete code handling
1116 remove_breakpoints_on_following_step.
1117
7ca2d3a3
DL
11182004-08-29 David Lecomber <david@streamline-computing.com>
1119
1120 Fix PR gdb/648
1121 * language.h (enum array_ordering): New enum.
1122 * language.h (struct language_defn): New la_array_ordering
1123 attribute.
1124 * language.c (unknown_language_defn, auto_language_defn)
1125 (local_language_defn): Ditto.
1126 * ada-lang.c (ada_language_defn): Ditto.
1127 * c-lang.c (c_language_defn, cplus_language_defn)
1128 (asm_language_defn, minimal_language_defn): Ditto.
1129 * f-lang.c (f_language_defn): Ditto.
1130 * jv-lang.c (java_language_defn): Ditto.
1131 * m2-lang.c (f_language_defn): Ditto.
1132 * objc-lang.c (objc_language_defn): Ditto.
1133 * p-lang.c (pascal_language_defn): Ditto.
1134 * scm-lang.c (scm_language_defn): Ditto.
1135 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
1136 oriented large to small in type structure.
1137 * dwarf2read.c (read_array_order): New function.
1138 (read_array_type): Use read_array_order to check row/column
1139 major ordering.
1140
e354df01
NW
11412004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
1142
1143 * target.c (target_resize_to_sections): Check
1144 current_target.to_sections for an old value when updating.
1145
9185ddce
JB
11462004-08-27 Joel Brobecker <brobecker@gnat.com>
1147
1148 * procfs.c (dbx_link_bpt_addr): New static global variable.
1149 (dbx_link_shadow_contents): New static global variable.
1150 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
1151 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
1152 if we just hit it.
1153 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
1154 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
1155 from run to run.
1156 (procfs_create_inferior): Remove syssgi syscall-exit notifications
1157 after the inferior has been forked.
1158 (remove_dbx_link_breakpoint): New function.
1159 (dbx_link_addr): New function.
1160 (insert_dbx_link_bpt_in_file): New function.
1161 (insert_dbx_link_bpt_in_region): New function.
1162 (insert_dbx_link_breakpoint): New function.
1163 (proc_trace_syscalls_1): New function, extracted from
1164 proc_trace_syscalls.
1165 (proc_trace_syscalls): Replace extract code by call to
1166 proc_trace_syscalls_1.
1167 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
1168 is no longer valid.
1169
e6742ace
JB
11702004-08-25 Jim Blandy <jimb@redhat.com>
1171
1172 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
1173
8fb3e588
AC
11742004-08-25 Andrew Cagney <cagney@gnu.org>
1175
629a41ee
AC
1176 * infrun.c (struct execution_control_state): Delete field
1177 "stepping_through_sigtramp".
1178 (init_execution_control_state): Do not set same.
1179 (context_switch): Do not pass same to save_infrun_state and
1180 load_infrun_state.
1181 * gdbthread.h (struct thread_info): Delete field
1182 stepping_through_sigtramp.
1183 (save_infrun_state, load_infrun_state): Delete parameter
1184 stepping_through_sigtramp.
1185 * thread.c (load_infrun_state, save_infrun_state): Update.
1186
8fb3e588
AC
1187 * infrun.c: Re-indent. Move expression operators to the beginning
1188 of the line. Remove long disabled #if 0 code.
1189
49c54768
AC
11902004-08-24 Andrew Cagney <cagney@gnu.org>
1191
1192 * doublest.h (floatformat_ieee_quad): Rename
1193 floatformat_ia64_quad.
1194 * doublest.c (floatformat_ieee_quad): Rename
1195 floatformat_ia64_quad.
1196 (_initialize_doublest): Update.
1197
5ca2e327
JB
11982004-08-24 Jim Blandy <jimb@redhat.com>
1199
87808bd6
JB
1200 * dwarf2expr.h (struct dwarf_expr_context): New members
1201 'num_pieces' and 'pieces', for returning the result of an
1202 expression that uses DW_OP_piece.
1203 (struct dwarf_expr_piece): New struct type.
1204 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
1205 pieces.
1206 (free_dwarf_expr_context): Free pieces, if any.
1207 (add_piece): New function.
1208 (execute_stack_op): Implement DW_OP_piece.
1209 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
1210 expression is a list of pieces, print an error message.
1211 (dwarf2_loc_desc_needs_frame): If the expression yields
1212 pieces, and any piece is in a register, then we need a frame.
1213
5ca2e327
JB
1214 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
1215 the stack until we've decided what sort of result the evaluation
1216 has produced. Use separate variables, with more specific names.
1217
2afeb6b8
RE
12182004-08-23 Richard Earnshaw <rearnsha@arm.com>
1219
1220 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
1221 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
1222 (arm_netbsd_init_abi_common): Register them.
1223
5885ab49
MK
12242004-08-22 Mark Kettenis <kettenis@gnu.org>
1225
fda820a6
MK
1226 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
1227
1c5bf419
MK
1228 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
1229 safe_frame_unwind_memory instead of target_read_memory.
1230
8cbba7c8
MK
1231 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
1232 Reorder includes.
1233 (fetch_register, store_register): Remove prototypes.
1234 (child_resume): Reorganize code and comments such that it is
1235 grouped a bit more logically.
1236 (attach): Explicitly compare errno against 0.
1237 (detach): Likewise. Use perror_with_name instead of
1238 print_sys_errmsg.
1239 * Makefile.in (infptrace.o): Update dependencies.
1240
c5fa4245
MK
1241 * ia64-linux-nat.c: Update copyright year.
1242 (fetch_debug_register, store_debug_register)
1243 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
1244 PTRACE_TYPE_ARG3.
1245 * config/ia64/nm-linux.h: Update copyright year.
1246 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
1247
387c058c
MK
1248 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
1249 from CORE_ADDR to struct frame_info *. Use
1250 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
1251 (amd64_linux_sigtramp_p): Adjust for changed signature of
1252 and64_linux_sigtramp_start
1253
277215a6
MK
1254 * gdb_ptrace.h: GNU/Linux.
1255
25f6178e
MK
1256 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1257 Remove defines.
1258
652fc137
MK
1259 * infptrace.c: Include "gdb_assert.h".
1260 (PTRACE_XFER_TYPE): Remove define.
1261 (offsetof): Only define if U_REGS_OFFSET isn't defined.
1262 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
1263 Tweak comment.
1264 (fetch_inferior_registers, store_inferior_registers): Remove
1265 redundant culry braces. Tweak comment. s/regno/regnum.
1266 * Makefile.in (infptrace.o): Update dependencies.
1267
5885ab49
MK
1268 * configure.in: Change test for return type of ptrace to default
1269 to `long' instead of `int'.
1270 * configure: Regenerate.
1271
11003ae3
MK
12722004-08-21 Mark Kettenis <kettenis@gnu.org>
1273
6b95110c
MK
1274 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
1275
bcb3dc3d
MK
1276 * configure.in: Check for ttrace function.
1277 * configure, config.in: Regenerate.
1278
11003ae3
MK
1279 * gdb_ptrace.h: New file.
1280 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
1281 <sys/ptrace.h>.
1282 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
1283 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
1284 (attach): Don't define PT_ATTACH.
1285 (detach): Don't define PT_DETACH.
1286 * Makefile.in (gdb_ptrace_h): New variable.
1287 (infptrace.o): Update dependencies.
1288
f8707cac
MK
12892004-08-16 Mark Kettenis <kettenis@gnu.org>
1290
1291 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
1292 instead of `int' if not already defined.
1293 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
1294 PTRACE_TYPE_ARG3.
1295 * infptrace.c (call_ptrace): Revert change that replaced
1296 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1297
655c5466
MK
12982004-08-15 Mark Kettenis <kettenis@gnu.org>
1299
156e5ba7
MK
1300 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1301 Remove defines.
1302
de9a9e51
MK
1303 * linux-nat.c (kill_inferior): Add missing third and fourth
1304 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
1305
88800403
MK
1306 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
1307 PTRACE_TYPE_RET.
1308
849a1d7c
MK
1309 * proc-why.c (proc_prettyfprint_why): Fix format string.
1310
61ad16d1
MK
1311 * solib-osf.c (osf_current_sos): Remove unsused label.
1312
a6ed5501
MK
1313 * configure.in: Add <ncurses/ncurses.h> to the list of possible
1314 curses headers.
1315 * configure, config.in: Regenerate.
1316 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
1317 <ncurses/ncurses.h>.
1318
016ddeca
MK
1319 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
1320 * config/nm-nbsd.h: Update copyright year.
1321 (PTRACE_ARG3_TYPE): Remove define.
1322
49ec097f
MK
1323 * sparc-nat.c (fetch_inferior_registers)
1324 (store_inferior_registers, sparc_xfer_wcookie):
1325 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1326
9f8e0089
MK
1327 * alphabsd-nat.c (fetch_inferior_registers):
1328 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1329 PTRACE_TYPE_ARG3.
1330 * amd64bsd-nat.c (fetch_inferior_registers)
1331 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1332 PTRACE_TYPE_ARG3.
1333 * armnbsd-nat.c: Update copyright year.
1334 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
1335 (store_register, store_regs, store_fp_register, store_fp_regs):
1336 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1337 * hppabsd-nat.c (fetch_inferior_registers)
1338 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1339 PTRACE_TYPE_ARG3.
1340 * i386bsd-nat.c (fetch_inferior_registers)
1341 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
1342 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1343 * m68kbsd-nat.c (fetch_inferior_registers)
1344 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1345 PTRACE_TYPE_ARG3.
1346 * m88kbsd-nat.c (fetch_inferior_registers)
1347 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1348 PTRACE_TYPE_ARG3.
1349 * mipsnbsd-nat.c: Update copyright year.
1350 (fetch_inferior_registers, store_inferior_registers):
1351 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1352 * ns32knbsd-nat.c: Update copyright year.
1353 (fetch_inferior_registers, store_inferior_registers):
1354 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1355 * ppcnbsd-nat.c (fetch_inferior_registers):
1356 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1357 PTRACE_TYPE_ARG3.
1358 * ppcobsd-nat.c (fetch_inferior_registers):
1359 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1360 PTRACE_TYPE_ARG3.
1361 * shnbsd-nat.c: Update copyright year.
1362 (fetch_inferior_registers, store_inferior_registers):
1363 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1364 * vaxbsd-nat.c (fetch_inferior_registers)
1365 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1366 PTRACE_TYPE_ARG3.
1367
655c5466
MK
1368 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
1369 PTRACE_TYPE_ARG3.
1370 * infptrace.c (call_ptrace, child_resume, attach, detach)
1371 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
1372 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1373 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
1374 PTRACE_TYPE_ARG3.
1375
c40d0d10
MK
13762004-08-14 Mark Kettenis <kettenis@gnu.org>
1377
5cb0ff31
MK
1378 * defs.h: Remove out-of-date comment.
1379 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
1380 [!GETENV_PROVIDED] (getenv): Remove prototype.
1381
5f0f34cb
MK
1382 * standalone.c: Remove file.
1383 * Makefile.in (standalone.o): Remove dependency.
1384
7532965f
MK
1385 * i386-linux-nat.c (dummy_sse_values): Remove function and
1386 prototype.
1387 (i386_linux_dr_get): Fix typo in comment.
1388 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
1389
1bdc6c53
MK
1390 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
1391
c40d0d10
MK
1392 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1393 from declaration.
1394 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1395 from definition.
1396
64218d3e
MK
13972004-08-13 Mark Kettenis <kettenis@gnu.org>
1398
1399 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
1400 parenthesis in definition.
1401 * configure: Regenerated.
1402
926c94e7
MC
14032004-08-12 Michael Chastain <mec.gnu@mindspring.com>
1404
1405 * PROBLEMS: Mention build/1411.
1406
69489883
NN
14072004-08-09 Robert Millan <robertmh@gnu.org>
1408
1409 Committed by Nathanael Nerode.
1410 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
1411 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
1412
ebb7c577
AC
14132004-08-12 Andrew Cagney <cagney@gnu.org>
1414
1415 * NEWS: Mention fixes in GDB 6.2.1.
1416 * PROBLEMS: Remove mention of mips-irix.
1417
232d697c
JB
14182004-08-11 Joel Brobecker <brobecker@gnat.com>
1419
1420 * config/powerpc/xm-aix.h: Delete.
1421 * config/powerpc/aix.mh (MH_FILE): Remove.
1422 * config/powerpc/aix432.mh (MH_FILE): Remove.
1423
72f4e82b
JB
14242004-08-11 Joel Brobecker <brobecker@gnat.com>
1425
1426 * config/powerpc/aix.mh: Remove obsolete comment.
1427 * config/powerpc/aix432.mh: Likewise.
1428
0687ccb2
JB
14292004-08-11 Joel Brobecker <brobecker@gnat.com>
1430
1431 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
1432
dbf3ada7
JB
14332004-08-11 Joel Brobecker <brobecker@gnat.com>
1434
e08e1886
JB
1435 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
1436 this file is now empty.
1437 * config/xm-aix4.h: Remove, this file is no longer included
1438 anywhere.
1439
14402004-08-11 Joel Brobecker <brobecker@gnat.com>
1441
1442 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
1443 that file is now empty.
dbf3ada7
JB
1444 (termdef): Remove prototype, function no longer used.
1445
4c525ef6
JB
14462004-08-11 Joel Brobecker <brobecker@gnat.com>
1447
1448 * doc/gdbint.texinfo (Host Definition): Remove documentation
1449 for USE_O_NOCTTY, no longer used.
1450 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
1451 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
1452
82e0b968
JB
14532004-08-11 Joel Brobecker <brobecker@gnat.com>
1454
1455 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
1456 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
1457 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
1458
f2acbe1c
MK
14592004-08-11 Mark Kettenis <kettenis@gnu.org>
1460
daa98270
MK
1461 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
1462 instead of FIVE_ARG_PTRACE.
1463
f2acbe1c
MK
1464 * inflow.c (O_NOCTTY): Define to zero if not already defined.
1465 (new_tty): Use O_NOCTTY unconditionally.
1466
cc377e6b
MK
14672004-08-10 Mark Kettenis <kettenis@gnu.org>
1468
1469 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
1470 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
1471 fflush on stdout.
1472
3bcc18fa
JB
14732004-08-10 Joel Brobecker <brobecker@gnat.com>
1474
1475 * xcoff_symfile_finish: Replace last call to xmfree by call
1476 to xfree.
1477
7936743b
AC
14782004-08-10 Andrew Cagney <cagney@gnu.org>
1479
cc503c8a
AC
1480 * main.c (captured_main): Delete call to init_malloc.
1481 * defs.h (init_malloc): Delete declaration.
1482 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
1483 (init_malloc): Delete functions.
1484
2dc74dc1
AC
1485 * defs.h (xmfree): Delete.
1486 * utils.c (xmfree): Delete function.
1487 (xfree): Inline calls to xmfree and mfree.
1488 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
1489 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
1490 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
1491 * somread.c (som_symfile_finish): Ditto.
1492 * objfiles.c (allocate_objfile, free_objfile):
1493 * nlmread.c (nlm_symfile_finish): Ditto.
1494 * hpread.c (hpread_symfile_finish): Ditto.
1495 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
1496 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
1497 * coffread.c (coff_symfile_finish): Ditto.
1498
aa2ee5f6
AC
1499 * defs.h (xmcalloc): Delete declaration.
1500 * utils.c (xmcalloc): Delete.
1501 (xcalloc): Inline calls to xmcalloc and mcalloc.
1502 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
1503 xcalloc and xfree.
1504 * symtab.c (create_demangled_names_hash): Ditto.
1505
0efffb96
AC
1506 * defs.h (xmrealloc): Delete.
1507 * utils.c (xmrealloc): Delete.
1508 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
1509 * symmisc.c (extend_psymbol_list): Use xrealloc.
1510 * source.c (find_source_lines): Ditto.
1511 * hpread.c (hpread_lookup_type): Ditto.
1512 * dbxread.c (add_bincl_to_list): Ditto.
1513
7936743b
AC
1514 * utils.c (xmmalloc): Delete.
1515 (xmalloc): Inline xmmalloc and mmalloc calls.
1516 (msavestring): Use xmalloc.
1517 * defs.h (xmmalloc): Delete declaration.
1518 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
1519 xmmalloc.
1520 * symmisc.c (extend_psymbol_list): Ditto.
1521 * symfile.c (init_psymbol_list): Ditto.
1522 * source.c (find_source_lines): Ditto.
1523 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
1524 * elfread.c (elf_symtab_read): Ditto.
1525 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
1526 * coffread.c (coff_symfile_init): Ditto.
1527
252ab814
DC
15282004-08-10 David Carlton <carlton@bactrian.org>
1529
1530 * MAINTAINERS: Remove David Carlton from c++ testsuite
1531 maintainers.
1532
8f5ba92b
JG
15332004-08-10 Jerome Guitton <guitton@gnat.com>
1534
1535 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
1536 print a line feed before the prompt.
1537
21749010
MK
15382004-08-10 Mark Kettenis <kettenis@gnu.org>
1539
1540 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
1541
1f011ce2
JB
15422004-08-09 Joel Brobecker <brobecker@gnat.com>
1543
1544 General cleanup of the AIX xm include file:
1545 * config/xm-aix4.h (fd_set): Remove undefine.
1546 Remove include of <sys/select.h>.
1547 (HAVE_TERMIO): Remove define.
1548 (USG): Likewise.
1549 (NULL): Remove redefine.
1550 (alloca): Remove #pragma.
1551 (vfork): Remove define.
1552 (termdef): Remove.
1553 (SIGWINCH_HANDLER): Remove.
1554 (SIGWINCH_HANDLER_BODY): Remove.
1555
cf4e7692
MK
15562004-08-09 Mark Kettenis <kettenis@gnu.org>
1557
1558 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
1559 GDB_OSABI_OPENBSD_ELF.
1560
ac5754fa
MK
15612004-08-07 Robert Millan <robertmh@gnu.org>
1562
1563 * bsd-kvm.c: Check for nlist.h before including it.
1564
086ec9eb
MK
15652004-08-09 Mark Kettenis <kettenis@gnu.org>
1566
bbe06c74
MK
1567 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
1568 sigcontext' offset consistency checks for ancient BSD.
1569
3aa7b3b3
MK
1570 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
1571
086ec9eb
MK
1572 * configure.in: Check for <sys/types.h>. Check return and
1573 argument types of ptrace.
1574 * configure, config.in: Regenerate.
1575
09991fa0
JB
15762004-08-09 Jim Blandy <jimb@redhat.com>
1577
1578 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
1579 rs6000_register_sim_regno): Doc fixes.
1580
fed7ba43
JB
15812004-08-08 Joel Brobecker <brobecker@gnat.com>
1582
1583 * mips-tdep.c: Include "floatformat.h".
1584 (n32n64_floatformat_always_valid): New function.
1585 (floatformat_n32n64_long_double_big): New constant.
1586 (mips_gdbarch_init): Set size and format of long double
1587 for N32 and N64 ABIs.
1588 * Makefile.in (mips-tdep.o): Update dependencies.
1589
456fcf94
AC
15902004-08-08 Andrew Cagney <cagney@gnu.org>
1591
2f9b146e
AC
1592 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
1593 print. Improve script's error messages.
1594 * gdbarch.h: Re-generate.
1595
456fcf94
AC
1596 * gdbarch.sh (pformat): New function.
1597 (float_format, double_format, long_double_format): List with bit
1598 members. Use pformat when printing.
1599 * gdbarch.c, gdbarch.h: Re-generate.
1600
69e9e646
NW
16012004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
1602
1603 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
1604 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
1605 (ppcnbsd_supply_pcb): New function.
1606 (_initialize_ppcnbsd_nat): New prototype and function.
1607 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
1608 (LOADLIBES): New variable.
1609 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
1610
5ef2d0aa
AC
16112004-08-08 Andrew Cagney <cagney@gnu.org>
1612
1613 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
1614 (builtin_type_ieee_double, builtin_type_ia64_quad)
1615 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
1616 BE/LE floating-point types.
1617 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
1618 (builtin_type_ieee_double, builtin_type_ia64_quad)
1619 (builtin_type_ia64_spill): Declare.
1620 * doublest.c (_initialize_doublest, floatformat_ieee_single)
1621 (floatformat_ieee_double, floatformat_arm_ext)
1622 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
1623 of LE/BE floatformats.
1624 * doublest.h: (struct floatformat, floatformat_ieee_single)
1625 (floatformat_ieee_double, floatformat_arm_ext)
1626 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
1627
5c7f2947
MK
16282004-08-08 Mark Kettenis <kettenis@gnu.org>
1629
ecac404d
MK
1630 * i386gnu-nat.c (gnu_store_registers): Fix typo.
1631
9b8607ce
MK
1632 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
1633 instead of regcache_raw_supply when storing the registers.
1634
f6052080
MK
1635 * i386gnu-nat.c: Update copyright year.
1636 (gnu_store_registers): Don't use deprecated_registers and
1637 deprecated_registers_valid. Use regcache_valid_p and
1638 regcache_raw_supply instead.
1639
17777823
MK
1640 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
1641 frame_pc_unwind.
1642
5240ceac
MK
1643 * procfs.c (procfs_pid_to_str): Remove redundant and unused
1644 variables. Incapitalized "process".
1645
5c7f2947
MK
1646 * configure.in: Add cursesX to the list of possible curses libs.
1647 Add cursesX.h to the list of possible curses headers.
1648 * configure, config.in: Regenerate.
1649
da7d81e3
NW
16502004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
1651
1652 * configure.in: Test for struct lwp in <sys/lwp.h>.
1653 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
1654 the offset of l_addr in struct lwp.
1655
7f245d65
NW
16562004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
1657
1658 * bsd-kvm.c: Include "gdbcore.h"
1659 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
1660
47b3f456
AC
16612004-08-07 Andrew Cagney <cagney@gnu.org>
1662
70bd8e24
AC
1663 * gdbtypes.c (build_flt, build_complex): New functions.
1664 (gdbtypes_post_init): Use.
1665
9b0dea39
AC
1666 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
1667
5cf7abac
AC
1668 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
1669 through to builtin_type_uint128.
1670
64d2b26d
AC
1671 * c-exp.y: Use builtin_type function to obtain builtin types.
1672
7ad6570d
AC
1673 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
1674 builtin_uint128.
1675 * gdbtypes.c (gdbtypes_post_init): Update.
1676 (build_gdbtypes): Move initialization of builtin_type_int0
1677 through to builtin_type_uint128 from here ...
1678 (_initialize_gdbtypes): ... to here.
1679 * d10v-tdep.c (d10v_register_type): Update.
1680
47b3f456
AC
1681 * doublest.c: Update copyright.
1682 (floatformat_from_length): Call error when floatformat is NULL.
1683 (extract_floating_by_length): Remove NULL fmt check.
1684 (store_floating_by_length): Ditto.
1685
0a8146bf
AC
16862004-08-07 Andrew Cagney <cagney@gnu.org>
1687
1688 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
1689 that the register is valid.
1690
c0ccb908
MK
16912004-08-05 Mark Kettenis <kettenis@chello.nl>
1692
8e6bed05
MK
1693 * i386-linux-tdep.c (i386_linux_sigtramp_start)
1694 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
1695 struct frame_info *. Use safe_frame_unwind_memory instead of
1696 deprecated_read_memory_nobpt.
1697 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
1698 changed signature of i386_linux_sigtramp_start and
1699 i386_linux_rt_sigtramp_start.
1700
24f9f5e3
MK
1701 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
1702 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
1703 instead of deprecated_read_memory_nobpt.
1704 (i386nbsd_sigtramp_p): Adjust for changed signature of
1705 i386nbsd_sigtramp_offset.
1706
c822af0c
MK
1707 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
1708 safe_frame_unwind_memory instead of target_read_memory.
1709
c0ccb908
MK
1710 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
1711 !NO_SYS_FILE.
1712 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
1713 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
1714 (_initialize_kernel_u_addr): Remove prototype and function.
1715 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
1716 !NO_SYS_FILE.
1717 * xcoffread.c: Likewise.
1718
b9e1c0d6
MK
17192004-08-06 Mark Kettenis <kettenis@gnu.org>
1720
1721 * vax-nat.c: New file.
1722 * vaxbsd-nat.c: Tweak comment.
1723 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
1724 vaxnbsd-tdep.c.
1725 (vax-nat.o): New dependency.
1726 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
1727 (vax-*-ultrix2*): Remove.
1728 * config/vax/vax.mh: New file.
1729 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
1730 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
1731 (vax_register_u_addr): New prototype.
1732 (REGISTER_U_ADDR): Define using vax_register_u_addr.
1733 * config/vax/vaxult2.mh: Remove file.
1734 * config/vax/vaxult.mh: Remove file.
1735 * config/vax/vaxbsd.mh: Remove file.
1736 * config/vax/vax.mt (TM_FILE): Remove.
1737 * config/vax/tm-vaxbsd.h: Remove file.
1738
9ad7bec7
JB
17392004-08-06 Joel Brobecker <brobecker@gnat.com>
1740
1741 * aix-thread.c (get_signaled_thread): New function.
1742 (iter_trap): Delete, no longer used.
1743 (iter_tid): New function.
1744 (pd_update): Find the thread that received the SIGTRAP signal
1745 by first locating the kernel thread, and then finding its
1746 associated thread.
1747
bf0d233d
UW
17482004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
1749
1750 * lin-lwp.c (child_wait): Continue inferior after processing
1751 PTRACE_EVENT_CLONE event.
1752
d0f853e1
NN
17532004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
1754
1755 * MAINTAINERS: Add self to Write-After-Approval.
1756
ab14aeb0
JJ
17572004-08-05 Jeff Johnston <jjohnstn@redhat.com>
1758
1759 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
1760 libunwind-xxxx.so" where xxxx is UNW_TARGET.
1761
9c8dbfa9
AC
17622004-08-05 Andrew Cagney <cagney@gnu.org>
1763
c8f3ca46
AC
1764 * config/xm-sysv4.h: Delete file.
1765 * config/mips/xm-irix5.h: Delete file.
1766 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
1767 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
1768 * config/ia64/xm-aix.h: Delete file.
1769 * config/ia64/aix.mh (XM_FILE): Delete.
1770 * config/pa/xm-hppah.h: Delete file.
1771 * config/pa/hpux11w.mh (XM_FILE): Delete.
1772 * config/pa/hpux11.mh (XM_FILE): Delete.
1773 * config/pa/hpux1020.mh (XM_FILE): Delete.
1774 * config/pa/hppahpux.mh (XM_FILE): Delete.
1775
5f7daaff
AC
1776 * config/alpha/xm-alphalinux.h: Delete file.
1777 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
1778 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
1779 * config/alpha/xm-alphaosf.h: Delete file.
1780 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
1781 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
1782 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
1783 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
1784
69babf95
AC
1785 * config/i386/xm-i386v.h: Delete file.
1786 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
1787 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
1788 * config/i386/xm-i386sco.h: Delete file.
1789 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
1790 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
1791 * config/i386/xm-i386v4.h: Delete file.
1792 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
1793 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
1794 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
1795 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
1796
6f009c8a
AC
1797 * config/vax/xm-vax.h: Delete file.
1798 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
1799 * config/vax/xm-vaxult2.h: Delete file.
1800 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
1801 * config/vax/vaxult2.mh (XM_FILE): Delete.
1802 * config/vax/xm-vaxult.h: Delete file.
1803 * config/vax/vaxult.mh (XM_FILE): Delete.
1804 * config/vax/xm-vaxbsd.h: Delete file.
1805 * config/vax/vaxbsd.mh (XM_FILE): Delete.
1806
9c8dbfa9
AC
1807 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
1808 * gdbarch.h, gdbarch.c: Re-generate.
1809 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
1810 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
1811 * frame.h: Delete deprecated_read_fp from comments.
1812 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
1813 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
1814
84367a3e
MK
18152004-08-04 Mark Kettenis <kettenis@gnu.org>
1816
9c8e3411
MK
1817 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
1818 trampoline in OpenBSD 3.5-current.
1819
b87bc0d8
MK
1820 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
1821 SSE registers.
1822
84367a3e
MK
1823 * Makefile.in: Remove embedded page breaks.
1824
a44bddec
JB
18252004-08-04 Jim Blandy <jimb@redhat.com>
1826
7ab3286f
JB
1827 * regcache.c (regcache_raw_read): Assert that, after calling
1828 target_fetch_registers, the register we're reading is cached.
1829
a44bddec
JB
1830 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
1831 a call to 'internal_error', with a more helpful error message.
1832 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 1833 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 1834
35124113
AC
18352004-08-04 Andrew Cagney <cagney@gnu.org>
1836
1837 * Makefile.in: Update dependencies.
1838
9f643768
JB
18392004-08-04 Jim Blandy <jimb@redhat.com>
1840
6ced10dd
JB
1841 Change the layout of the PowerPC E500 raw register cache to allow
1842 the lower 32-bit halves of the GPRS to be their own raw registers,
1843 not pseudoregisters.
1844 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
1845 add ppc_ev0_upper_regnum flag.
1846 * rs6000-tdep.c: #include "reggroups.h".
1847 (spe_register_p): Recognize the ev upper half registers as SPE
1848 registers.
1849 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
1850 registers.
1851 (e500_move_ev_register): New function.
1852 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
1853 vector registers are the pseudo-registers now, formed by splicing
1854 together the gprs and the upper-half registers.
1855 (e500_register_reggroup_p): New function.
1856 (P): Macro deleted.
1857 (P8, A4): New macro.
1858 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
1859 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
1860 macros.
1861 (registers_e500): Rearrange register set so that the raw register
1862 set contains 32-bit GPRs and upper-half registers, and the SPE
1863 vector registers become pseudo-registers.
1864 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
1865 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
1866 register numbers are now the same for the E500 as they are for
1867 other PowerPC variants. Register e500_register_reggroup_p as the
1868 register group function for the E500.
1869 * Makefile.in (rs6000-tdep.o): Update dependencies.
1870
1871 Adapt PPC E500 native support to the new raw regcache layout.
1872 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
1873 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
1874 (fetch_spe_register, store_spe_register): Handle fetching/storing
1875 all the SPE registers at once, if regno == -1. These now take
1876 over the job of fetch_spe_registers and store_spe_registers.
1877 (fetch_spe_registers, store_spe_registers): Deleted.
1878 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
1879 unconditionally; they're always raw. Fetch/store SPE upper half
1880 registers, if present, instead of ev registers.
1881 (fetch_register, store_register): Remove sanity checks: gprs are
1882 never pseudo-registers now, so we never need to even mention any
1883 registers that are ever pseudoregisters.
1884
9f643768
JB
1885 Use a fixed register numbering when communicating with the PowerPC
1886 simulator.
1887 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
1888 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
1889 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
1890 New functions.
1891 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
1892 init_sim_regno_table.
1893 * Makefile.in (gdb_sim_ppc_h): New variable.
1894 (rs6000-tdep.o): Update dependencies.
1895
1e2279c8
AC
18962004-08-02 Andrew Cagney <cagney@gnu.org>
1897
1d94326f
AC
1898 * cris-tdep.c (cris_register_size): Restore function, still used
1899 locally.
1900
331ae7ed
AC
1901 * gdbarch.sh (deprecated_target_read_fp)
1902 (deprecated_frame_locals_address, deprecated_frame_args_address)
1903 (deprecated_frame_chain_valid, deprecated_frame_chain)
1904 (deprecated_init_extra_frame_info, deprecated_pop_frame)
1905 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
1906 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
1907 * gdbarch.h, gdbarch.c: Re-generate.
1908 * regcache.c (deprecated_read_fp): Do not call
1909 DEPRECATED_TARGET_READ_FP_P.
1910 * infcmd.c (default_print_registers_info): Do not call
1911 DEPRECATED_DO_REGISTERS_INFO.
1912 * frame-base.c (default_frame_locals_address): Do not call
1913 DEPRECATED_FRAME_LOCALS_ADDRESS.
1914 (default_frame_args_address): Do not call
1915 DEPRECATED_FRAME_ARGS_ADDRESS.
1916
1e2279c8
AC
1917 * gdbarch.sh (deprecated_register_raw_size)
1918 (deprecated_register_virtual_size:int): Delete.
1919 * gdbarch.h, gdbarch.c: Re-generate.
1920 * cris-tdep.c (cris_register_size): Delete.
1921 (cris_gdbarch_init): Update.
1922 * alpha-tdep.c (alpha_register_raw_size)
1923 (alpha_register_virtual_size): Delete.
1924 (alpha_gdbarch_init): Update.
1925
a90c06b4
AC
1926 * gdbarch.sh (deprecated_register_virtual_type)
1927 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
1928 (deprecated_dummy_write_sp): Delete.
1929 * gdbarch.h, gdbarch.c: Re-generate.
1930
f42accbe
AC
1931 * gdbarch.sh (deprecated_register_bytes): Delete.
1932 * gdbarch.h, gdbarch.c: Re-generate.
1933 * regcache.c (deprecated_register_bytes): New function.
1934 * regcache.h (deprecated_register_bytes): Declare.
1935 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1936 * v850-tdep.c (v850_gdbarch_init): Update.
1937 * sh64-tdep.c (sh64_gdbarch_init): Update.
1938 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
1939 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1940 * mcore-tdep.c (mcore_gdbarch_init): Update.
1941 * cris-tdep.c (cris_gdbarch_init): Update.
1942 * arm-tdep.c (arm_gdbarch_init): Update.
1943 * remote.c (init_remote_state): Update.
1944 * remote-vx.c (vx_prepare_to_store): Update.
1945 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
1946 * irix5-nat.c (fetch_core_registers): Update.
1947 * cris-tdep.c (cris_register_bytes_ok): Update.
1948 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
1949
45c9dd44
AC
1950 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
1951 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
1952 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
1953 (mips_insn16_frame_base_address, mips_insn16_frame_base)
1954 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
1955 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
1956 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
1957 (mips_insn32_frame_base_address, mips_insn32_frame_base)
1958 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
1959 with mips_insn16 and mips_insn32.
1960
3acba339
AC
1961 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
1962 * rs6000-tdep.c (rs6000_push_dummy_call)
1963 (rs6000_extract_return_value): Use register_size.
1964 * xstormy16-tdep.c (xstormy16_get_saved_register)
1965 (xstormy16_extract_return_value): Ditto.
1966 * valops.c (value_assign): Ditto.
1967 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
1968 * v850-tdep.c (v850_extract_return_value): Ditto.
1969 * tracepoint.c (collect_symbol): Ditto.
1970 * target.c (debug_print_register): Ditto.
1971 * stack.c (frame_info): Ditto.
1972 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
1973 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
1974 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
1975 (store_register_using_P): Ditto.
1976 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
1977 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
1978 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
1979 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
1980 * regcache.c (deprecated_read_register_bytes)
1981 (deprecated_write_register_bytes, read_register)
1982 (write_register): Ditto.
1983 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
1984 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
1985 * monitor.c (monitor_supply_register, monitor_fetch_register)
1986 (monitor_store_register): Ditto.
1987 * mn10300-tdep.c (mn10300_pop_frame_regular)
1988 (mn10300_print_register): Ditto.
1989 * mipsv4-nat.c (fill_fpregset): Ditto.
1990 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
1991 (mips64_fill_fpregset): Ditto.
1992 * mi/mi-main.c (register_changed_p, get_register)
1993 (mi_cmd_data_write_register_values): Ditto.
1994 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
1995 * irix5-nat.c (fill_gregset, fetch_core_registers):
1996 * infrun.c (write_inferior_status_register): Ditto.
1997 * infptrace.c (fetch_register, store_register): Ditto.
1998 * infcmd.c (default_print_registers_info): Ditto.
1999 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
2000 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
2001 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
2002 * hpux-thread.c (hpux_thread_fetch_registers)
2003 (hpux_thread_store_registers): Ditto.
2004 * hppah-nat.c (store_inferior_registers, fetch_register):
2005 * findvar.c (value_from_register): Ditto.
2006 * dve3900-rom.c (fetch_bitmapped_register):
2007 * cris-tdep.c (cris_gdbarch_init): Ditto.
2008 * alpha-tdep.h: Ditto.
2009 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
2010
01e1877c
AC
2011 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
2012 DEPRECATED_REGISTER_RAW_SIZE from comments.
2013 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
2014 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
2015 DEPRECATED_REGISTER_RAW_SIZE.
2016 * findvar.c (value_of_register): Simplify by assuming that the
2017 registers raw and virtual sizes are identical.
2018 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
2019 comment.
2020 * arch-utils.c (generic_register_size): Simplify by assuming
2021 register_type.
2022
73f458fb
AC
2023 * regcache.c (legacy_read_register_gen, real_register)
2024 (legacy_write_register_gen): Delete, not used.
2025
336a3131
AC
2026 * regcache.c (struct regcache_descr): Delete legacy_p.
2027 (init_legacy_regcache_descr): Delete function.
2028 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
2029 Do not use deprecated register functions.
2030 (regcache_raw_read, deprecated_write_register_gen):
2031 (deprecated_read_register_gen, regcache_raw_write): Delete code
2032 predicated on legacy_p.
2033 (register_size): Delete check against register raw size.
2034
c1d546cd
AC
2035 * cris-tdep.c (cris_register_type): Replace
2036 cris_register_virtual_type.
2037 (cris_gdbarch_init): Update, set register_type.
2038
48c2c0a6
AC
2039 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
2040 * gdbarch.h, gdbarch.c: Re-generate.
2041 * arm-tdep.c (arm_frameless_function_invocation): Delete.
2042 (arm_gdbarch_init) Do not set frameless function invocation.
2043 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
2044 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
2045 * frv-tdep.c (frv_frameless_function_invocation): Delete.
2046 (frv_gdbarch_init): Do not set frameless function invocation.
2047 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
2048 * sh-tdep.c (sh_gdbarch_init): Ditto.
2049 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
2050 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2051 * avr-tdep.c (avr_gdbarch_init): Ditto.
2052
474093a6
AC
2053 * blockframe.c (legacy_frame_chain_valid): Delete function.
2054
3c109c8b
AC
2055 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
2056 and pc. Update comments.
2057 (pc_in_dummy_frame): Delete function.
2058 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
2059 use the "id".
2060 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
2061 call_hi, top and pc, use the id.
2062 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
2063
96860204
AC
2064 * dummy-frame.c: Include "gdb_string.h".
2065 (generic_save_call_dummy_addr, generic_push_dummy_frame)
2066 (generic_save_dummy_frame_tos): Delete.
2067 (dummy_frame_push): New function, replaces above.
2068 * dummy-frame.h: Update copyright.
2069 (dummy_frame_push): Declare.
2070 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
2071 (generic_save_call_dummy_addr): Delete declarations.
2072 * infcall.c: Include "dummy-frame.h".
2073 (call_function_by_hand): Add locals caller_regcache,
2074 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
2075 with call to frame_save_as_regcache plus cleanup. Delete calls to
2076 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
2077 Move clear_proceed_status to just before the resume, add call to
2078 dummy_frame_push (discard cleanup).
2079 * Makefile.in (infcall.o): Add $(dummy_frame_h).
2080 (dummy-frame.o): Add $(gdb_string_h).
2081
d67ec5db
AC
20822004-08-01 Andrew Cagney <cagney@gnu.org>
2083
2084 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
2085 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
2086 * dummy-frame.c (find_dummy_frame): Delete.
2087 (struct dummy_frame_cache, dummy_frame_sniffer)
2088 (dummy_frame_prev_register, dummy_frame_this_id)
2089 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
2090 frame unwinder using a dummy_frame_cache.
2091
a81dcb05
AC
20922004-08-01 Andrew Cagney <cagney@gnu.org>
2093
2094 * frame.h (frame_save_as_regcache): Declare.
2095 * frame.c (frame_save_as_regcache): New function.
2096 (do_frame_read_register): Replace do_frame_unwind_register.
2097 (frame_pop): Use frame_save_as_regcache.
2098 * dummy-frame.c (generic_push_dummy_frame): Use
2099 frame_save_as_regcache.
2100
aa495d11
JB
21012004-08-01 Joel Brobecker <brobecker@gnat.com>
2102
2103 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
2104 file as included until we record the first line in the linetable.
2105
ff65ac78
AC
21062004-08-01 Andrew Cagney <cagney@gnu.org>
2107
2108 * frame.h (deprecated_pop_dummy_frame)
2109 (deprecated_read_register_dummy)
2110 (deprecated_generic_find_dummy_frame): Delete.
2111 * dummy-frame.c (deprecated_generic_find_dummy_frame)
2112 (deprecated_read_register_dummy)
2113 (deprecated_find_dummy_frame_regcache)
2114 (discard_innermost_dummy)
2115 (deprecated_pop_dummy_frame): Delete.
2116 (dummy_frame_this_id): Simplify.
2117 (struct dummy_frame): Delete "fp" and "sp".
2118 (find_dummy_frame): Simplify.
2119 (generic_push_dummy_frame): Do not set "fp" or "sp".
2120 (fprint_dummy_frames): Do not print "fp" and "sp"
2121
37bdc87e
MK
21222004-08-01 Mark Kettenis <kettenis@gnu.org>
2123
2124 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
2125 (struct i386_insn): New structure.
2126 (i386_match_insn): New function.
2127 (i386_frame_setup_skip_insns): New variable.
2128 (i386_analyze_frame_setup): Change to use i386_match_insn and the
2129 array i386_frame_setup_insns of instructions that should be
2130 skipped inside the frame setup sequence.
2131
8241eaa6
AC
21322004-08-01 Andrew Cagney <cagney@gnu.org>
2133
5bc602c7
AC
2134 * frame.h (deprecated_frame_xmalloc_with_cleanup)
2135 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2136 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2137 * stack.c (frame_info): Delete references to
2138 DEPRECATED_FRAME_INIT_SAVED_REGS and
2139 deprecated_get_frame_saved_regs.
2140 * frame.c (struct frame_info): Delete saved_regs and extra_info.
2141 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
2142 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
2143 (frame_unwind_register_signed)
2144 (frame_unwind_register_unsigned)
2145 (frame_unwind_unsigned_register): Use register_size.
2146 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
2147 (deprecated_frame_xmalloc_with_cleanup)
2148 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2149 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2150
03d363a1
AC
2151 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
2152 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
2153 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
2154 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
2155
8241eaa6
AC
2156 * infcall.c (call_function_by_hand): Do not use
2157 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
2158 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
2159 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
2160 DEPRECATED_STACK_ALIGN.
2161
f00df8b7
AC
21622004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
2163
2164 Committed by Andrew Cagney.
2165 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
2166
eec63939
AC
21672004-08-01 Andrew Cagney <cagney@gnu.org>
2168
2169 * mips-tdep.c (mips16_frame_cache)
2170 (mips16_frame_this_id, mips16_frame_prev_register)
2171 (mips16_frame_unwind, mips16_frame_sniffer)
2172 (mips16_frame_base_address, mips16_frame_base)
2173 (mips16_frame_base_sniffer, mips32_frame_cache)
2174 (mips32_frame_this_id, mips32_frame_prev_register)
2175 (mips32_frame_unwind, mips32_frame_sniffer)
2176 (mips32_frame_base_address, mips32_frame_base)
2177 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
2178 separate heuristic mips16 and mips32 unwinders.
2179 (mips_stub_frame_cache, mips_stub_frame_this_id)
2180 (mips_stub_frame_prev_register)
2181 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
2182 (mips_stub_frame_base_address, mips_stub_frame_base)
2183 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
2184 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
2185 match true mdebug frames.
2186 (non_heuristic_proc_desc): Add forward declaration.
2187
e66299b3
AC
21882004-08-01 Andrew Cagney <cagney@gnu.org>
2189
83cbbf3e
AC
2190 * config/mips/tm-irix6.h: Delete file.
2191 * config/mips/tm-irix5.h: Delete file.
2192 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
2193 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
2194
22d41b37
AC
2195 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
2196 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
2197 * config/nm-gnu.h (NO_CORE_OPS): Delete.
2198 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
2199 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
2200 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
2201 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
2202 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
2203 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
2204 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
2205 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
2206 (TARGET_SIGNAL_RAW_VALUES): Delete.
2207 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
2208 Delete.
2209 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
2210 (TARGET_HW_WATCH_LIMIT): Delete.
2211 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
2212 * minimon.h: Delete file.
2213
e66299b3
AC
2214 * trad-frame.c (trad_frame_get_this_base)
2215 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
2216 functions.
2217 * trad-frame.h (trad_frame_set_this_base)
2218 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
2219
1f67027d
AC
22202004-07-31 Andrew Cagney <cagney@gnu.org>
2221
2222 * trad-frame.c (trad_frame_get_prev_register): Rename
2223 trad_frame_get_prev_register.
2224 * vax-tdep.c (vax_frame_prev_register): Update.
2225 * trad-frame.h: Update.
2226 * trad-frame.c (trad_frame_get_register): Update.
2227 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
2228 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
2229 Update.
2230 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
2231 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
2232 Update.
2233 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
2234 Update.
2235 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
2236 Update.
2237 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
2238 Update.
2239 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
2240 Update.
2241 * s390-tdep.c (s390_frame_prev_register)
2242 (s390_stub_frame_prev_register)
2243 (s390_sigtramp_frame_prev_register): Update.
2244 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
2245 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
2246 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
2247 * m88k-tdep.c (m88k_frame_prev_register)
2248 * m68hc11-tdep.c (m68hc11_frame_prev_register)
2249 * m32r-tdep.c (m32r_frame_prev_register): Update.
2250 * hppa-tdep.c (hppa_frame_prev_register_helper)
2251 * frv-tdep.c (frv_frame_prev_register): Update.
2252 * d10v-tdep.c (d10v_frame_prev_register): Update.
2253 * cris-tdep.c (cris_frame_prev_register): Update.
2254 * avr-tdep.c (avr_frame_prev_register): Update.
2255 * arm-tdep.c (arm_prologue_prev_register)
2256 (arm_sigtramp_prev_register): Update.
2257
c1bf6f65
AC
22582004-07-31 Andrew Cagney <cagney@gnu.org>
2259
2260 * frame.h (legacy_saved_regs_unwind)
2261 (legacy_frame_chain_valid, legacy_frame_p)
2262 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
2263 * dummy-frame.c (dummy_frame_this_id): Simplify.
2264 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
2265 * frame.c (struct frame_info): Delete the field "type".
2266 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
2267 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
2268 (legacy_saved_regs_unwind, legacy_frame_p)
2269 (frame_type_from_pc): Delete.
2270 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
2271 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
2272
dc856692
MK
22732004-07-31 Mark Kettenis <kettenis@gnu.org>
2274
5a5effe1
MK
2275 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
2276 indentation.
2277
d4fd50a6
MK
2278 * mips-nat.c: Remove file.
2279 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
2280 (mips-nat.o): Remove dependency.
2281
2689df5a
MK
2282 * infptrace.c: Update copyright year.
2283 (fetch_register): Pass NULL in regcache_raw_supply call instead of
2284 explicitly setting the buffer to all zeroes.
2285
dc856692
MK
2286 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
2287 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
2288
763910e0
AC
22892004-07-30 Andrew Cagney <cagney@gnu.org>
2290
2291 * GDB 6.2 released from gdb_6_2-branch.
2292
0b66e38c
EZ
22932004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
2294
2295 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
2296
2297 * exec.c (exec_file_attach):
2298 * nto-tdep.c (nto_find_and_open_solib):
2299 * pa64solib.c (pa64_solib_sizeof_symbol_table):
2300 * solib.c (solib_open):
2301 * somsolib.c (som_solib_sizeof_symbol_table):
2302 * source.c (is_regular_file, openp, open_source_file):
2303 * symfile.c (symfile_bfd_open):
2304 * wince.c (upload_to_device): Differentiate between the search for
2305 binary and source files.
2306
be7d7357
AC
23072004-07-30 Andrew Cagney <cagney@gnu.org>
2308
2309 * complaints.c (_initialize_complaints): Pass NULL to
2310 add_setshow_zinteger_cmd for help_doc.
2311 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
2312
ddc9cd0f
AC
23132004-07-30 Andrew Cagney <cagney@gnu.org>
2314
2315 Fix PR i18n/761.
2316 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
2317 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
2318 $(PACKAGE).pot and update-po.
2319 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
2320 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
2321 (update-po): New rules.
2322 (localedir): Define using autoconf.
2323 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
2324 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
2325 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
2326 * configure.in: Generate CATALOGS and LINGUAS from contents of
2327 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
2328 * configure: Re-generate.
2329 * po/gdbtext: New file
2330
e92f3704
JG
23312004-07-30 Jerome Guitton <guitton@gnat.com>
2332
2333 * MAINTAINERS: Reorder Write After Approval list in alphabetical
2334 order.
2335
b0f35d58
DL
23362004-07-30 David Lecomber <dsl@sources.redhat.com>
2337
2338 * dwarf2read.c (read_file_scope): Set producer if attribute
2339 present.
2340 (struct dwarf2_cu): Added new member producer.
2341
ce7d4522
JG
23422004-07-30 Jerome Guitton <guitton@gnat.com>
2343
2344 * inflow.c (kill_command): release file handles in BFD.
2345 * exec.c (exec_file_attach): Ditto.
2346 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
2347
05ee07c7
AC
23482004-07-29 Andrew Cagney <cagney@gnu.org>
2349
2350 * PROBLEMS (mips-irix): Note that it is broken.
2351
62eceb47
AC
23522004-07-29 Andrew Cagney <cagney@gnu.org>
2353
e57b8d41
AC
2354 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
2355 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
2356
d334389b
AC
2357 * config/xm-nbsd.h: Delete file.
2358 * config/arm/xm-nbsd.h: Delete file.
2359 * config/i386/xm-nbsd.h: Delete file.
2360 * config/ns32k/xm-nbsd.h: Delete file.
2361 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
2362 * config/i386/nbsdelf.mh (XM_FILE): Delete.
2363 * config/i386/nbsdaout.mh (XM_FILE): Delete.
2364 * config/arm/nbsdelf.mh (XM_FILE): Delete.
2365 * config/arm/nbsdaout.mh (XM_FILE): Delete.
2366
e910f676
AC
2367 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
2368 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
2369 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
2370 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
2371 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
2372 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
2373
6fa856b9
AC
2374 * config/powerpc/xm-linux.h: Delete empty file.
2375 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
2376 * config/powerpc/linux.mh (XM_FILE): Delete.
2377 * config/m68k/xm-linux.h: Delete empty file.
2378 * config/m68k/linux.mh (XM_FILE): Delete.
2379 * config/ia64/xm-linux.h: Delete empty file.
2380 * config/ia64/linux.mh (XM_FILE): Delete.
2381 * config/arm/xm-linux.h: Delete empty file.
2382 * config/arm/linux.mh (XM_FILE): Delete.
2383
471ae5ae
AC
2384 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2385 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
2386 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2387 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
2388 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2389 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
2390 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2391 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
2392
62eceb47
AC
2393 * config/m68k/xm-m68k.h: Delete file.
2394 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
2395 copyright.
2396 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
2397 * config/pa/xm-linux.h: Delete empty file.
2398 * config/pa/linux.mh (XM_FILE): Delete.
2399 * config/i386/xm-i386.h: Delete empty file.
2400 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
2401 "i386/xm-i386.h".
2402 * config/i386/obsdaout.mh (XM_FILE): Delete.
2403 * config/i386/obsd64.mh (XM_FILE): Delete.
2404 * config/i386/fbsd64.mh (XM_FILE): Delete.
2405 * config/i386/nto.mh (XM_FILE): Delete.
2406 * config/i386/obsd.mh (XM_FILE): Delete.
2407 * config/i386/linux64.mh (XM_FILE): Delete.
2408 * config/i386/linux.mh (XM_FILE): Delete.
2409 * config/i386/i386sol2.mh (XM_FILE): Delete.
2410 * config/i386/i386gnu.mh (XM_FILE): Delete.
2411 * config/i386/fbsd.mh (XM_FILE): Delete.
2412 * config/i386/nbsd64.mh (XM_FILE): Delete.
2413
c35f4ffc
AC
24142004-07-29 Andrew Cagney <cagney@gnu.org>
2415
2416 * config/pa/xm-linux.h: Do not include "floatformat.h".
2417 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2418 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
2419 * config/i386/xm-i386.h: Do not include "floatformat.h".
2420 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2421 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
2422 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2423 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
2424 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
2425 GDB_HOST_LONG_DOUBLE_FORMAT instead.
2426 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
2427 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
2428 * configure, config.in: Regenerate.
2429 * configure.host (gdb_host_float_format, gdb_host_double_format)
2430 (gdb_host_long_double_format): Set according to the host.
2431
624a44a3
AC
24322004-07-29 Andrew Cagney <cagney@gnu.org>
2433
2434 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
2435
0dea2468
AC
24362004-07-28 Andrew Cagney <cagney@gnu.org>
2437
2438 * PROBLEMS: Mention threads/1650.
2439 * NEWS: Mention the NPTL fix.
2440
b3f42336
AC
24412004-07-28 Andrew Cagney <cagney@gnu.org>
2442
2443 * cli/cli-decode.c (add_setshow_cmd): Delete function.
2444 (add_setshow_cmd_full): Make static.
2445 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
2446 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
2447 * cli/cli-decode.c (add_setshow_filename_cmd)
2448 (add_setshow_string_cmd): New functions.
2449 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
2450 * mips-tdep.c (_initialize_mips_tdep): Update.
2451 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
2452 * cli/cli-logging.c (_initialize_cli_logging): Update.
2453 * complaints.c (_initialize_complaints): Update.
2454 * remote.c (_initialize_remote): Update.
2455
3b64bf98
AC
24562004-07-28 Andrew Cagney <cagney@gnu.org>
2457
2458 * cli/cli-decode.c (add_setshow_zinteger_cmd)
2459 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
2460 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
2461 print parameters. Make string parameters constant.
2462 * command.h: Update. Update copyright.
2463 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
2464 * observer.c (_initialize_observer): Ditto.
2465 * frame.c (_initialize_frame): Ditto.
2466 * complaints.c (_initialize_complaints): Ditto.
2467 * maint.c (_initialize_maint_cmds): Ditto.
2468 * target.c (initialize_targets): Ditto.
2469 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
2470 * infcall.c (_initialize_infcall): Ditto.
2471 * arm-tdep.c (_initialize_arm_tdep): Ditto.
2472 * m32r-rom.c (_initialize_m32r_rom): Ditto.
2473 * remote-rdi.c (_initialize_remote_rdi): Ditto.
2474 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
2475 * mips-tdep.c (_initialize_mips_tdep): Ditto.
2476
e9667a65
AC
24772004-07-28 Andrew Cagney <cagney@gnu.org>
2478
54a5b07d
AC
2479 * gdbtypes.c (lookup_primitive_typename): Delete function.
2480 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
2481 * ada-lex.l: Use language_lookup_primitive_type_by_name.
2482 * gdbtypes.c (lookup_typename): Ditto.
2483 * f-exp.y (yylex): Ditto.
2484 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
2485
e9667a65
AC
2486 * scm-lang.c (c_builtin_types): Delete extern declaration.
2487 (scm_language_defn): Replace
2488 string_char_type and primitive_type_vector with
2489 la_language_arch_info.
2490 * jv-lang.c (java_language_defn): Replace
2491 string_char_type and primitive_type_vector with
2492 la_language_arch_info.
2493 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
2494 c_builtin_types in comment.
2495 * c-lang.h (struct language_arch_info): Declare opaque.
2496 (c_language_arch_info): Declare.
2497 (c_builtin_types): Delete declaration.
2498 * c-lang.c (c_language_arch_info): Set string_char_type to
2499 builtin_char, not builtin_true_char. Make global.
2500 (c_builtin_types): Delete array.
2501 (asm_language_defn, minimal_language_defn): Replace
2502 string_char_type and primitive_type_vector with
2503 la_language_arch_info.
2504
685419e2
AC
25052004-07-28 Andrew Cagney <cagney@gnu.org>
2506
2507 * gdbtypes.h (struct builtin_type): Rename true_char to
2508 builtin_true_char.
2509 * gdbtypes.c (gdbtypes_post_init): Update.
2510 * c-lang.c (arch_info): New function.
2511 (enum c_primitive_types): New enum.
2512 (c_language_defn): Instead of string_char_type and
2513 primitive_type_vector set la_language_arch_info.
2514
5a44ea29
AC
25152004-07-28 Andrew Cagney <cagney@gnu.org>
2516
2517 * language.h (struct language_arch_info): Fix typo
2518 s/primative/primitive/.
2519 * gdbtypes.c (lookup_primitive_typename): Ditto.
2520 * language.c (language_lookup_primitive_type_by_name)
2521 (unknown_language_arch_info): Ditto.
2522
f290d38e
AC
25232004-07-27 Andrew Cagney <cagney@gnu.org>
2524
2525 * defs.h (enum language): Add nr_languages.
2526 * language.h (struct language_arch_info): Define.
2527 (struct language_defn): Add la_language_arch_info.
2528 (language_lookup_primative_type_by_name): Declare.
2529 (language_string_char_type): Declare.
2530 * language.c (_initialize_language, language_gdbarch_post_init)
2531 (struct language_gdbarch, language_gdbarch_data): Implement
2532 per-architecture language information.
2533 (unknown_language_arch_info, language_string_char_type)
2534 (language_lookup_primative_type_by_name): New functions.
2535 (unknown_language_defn, auto_language_defn)
2536 (local_language_defn): Set la_language_arch_info to
2537 unknown_language_arch_info.
2538 (unknown_builtin_types): Delete.
2539 * gdbtypes.c (lookup_primitive_typename): Use
2540 language_lookup_primative_type_by_name.
2541 (create_string_type): Use language_string_char_type.
2542 * values.c (value_from_string): Use language_string_char_type.
2543 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
2544 * p-lang.c (pascal_language_defn): Ditto.
2545 * m2-lang.c (m2_language_defn): Ditto.
2546 * jv-lang.c (java_language_defn): Ditto.
2547 * objc-lang.c (objc_language_defn): Ditto.
2548 * f-lang.c (f_language_defn): Ditto.
2549 * c-lang.c (c_language_defn, cplus_language_defn)
2550 (asm_language_defn, minimal_language_defn): Ditto.
2551
000177f0
AC
25522004-07-27 Andrew Cagney <cagney@gnu.org>
2553
2554 * gdbtypes.h (struct builtin_type): Declare.
2555 (builtin_type): Declare.
2556 * d10v-tdep.c (d10v_register_type): Use builtin_type.
2557 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
2558 (gdbtypes_post_init): New function.
2559 (builtin_type): New function.
2560
e22f895c
KI
25612004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
2562
2563 * remote-m32r-sdi.c: Fix breakpoint bug.
2564 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
2565 recv_char_data, recv_long_data): New functions to replace communication
2566 sequences.
2567
536517dd
MC
25682004-07-26 Michael Chastain <mec.gnu@mindspring.com>
2569
2570 Document PR threads/1650.
2571 * PROBLEMS (Threads): Document problem with many threads
2572
a0a44d18
AC
25732004-07-26 Andrew Cagney <cagney@gnu.org>
2574
2575 * gdb-mi.el: Move from here ...
2576 * mi/gdb-mi.el: ... to here.
2577
7ac4ac06
AC
25782004-07-26 Andrew Cagney <cagney@gnu.org>
2579
2580 Problem reported by Ashley Pittman <ashley@quadrics.com>.
2581 * main.c (captured_main): When in batch mode always detach.
2582
a1b461bf
AC
25832004-07-26 Andrew Cagney <cagney@gnu.org>
2584
2585 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
2586 and h8300 as broken.
2587 * NEWS: END-OF-LIFE frame compatibility module.
2588 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
2589 specific comments.
2590
cb1a6d5f
AC
25912004-07-26 Andrew Cagney <cagney@gnu.org>
2592
2593 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
2594 * xcoffsolib.c (_initialize_xcoffsolib): Update.
2595 * wince.c (_initialize_wince): Update.
2596 * win32-nat.c (_initialize_win32_nat): Update.
2597 * varobj.c (_initialize_varobj): Update.
2598 * valops.c (_initialize_valops): Update.
2599 * utils.c (initialize_utils, initialize_utils): Update.
2600 * tui/tui-win.c (_initialize_tui_win): Update.
2601 * top.c (init_main): Update.
2602 * symfile.c (_initialize_symfile): Update.
2603 * source.c (_initialize_source): Update.
2604 * somsolib.c (_initialize_som_solib): Update.
2605 * solib.c (_initialize_solib): Update.
2606 * solib-frv.c (_initialize_frv_solib): Update.
2607 * serial.c (_initialize_serial): Update.
2608 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
2609 * remote.c (_initialize_remote, _initialize_remote): Update.
2610 * remote-vx.c (_initialize_vx): Update.
2611 * remote-utils.c (_initialize_sr_support): Update.
2612 * remote-sds.c (_initialize_remote_sds): Update.
2613 * remote-mips.c (_initialize_remote_mips): Update.
2614 * remote-e7000.c (_initialize_remote_e7000): Update.
2615 * proc-api.c (_initialize_proc_api): Update.
2616 * printcmd.c: Update.
2617 * parse.c (_initialize_parse): Update.
2618 * pa64solib.c (_initialize_pa64_solib): Update.
2619 * p-valprint.c (_initialize_pascal_valprint): Update.
2620 * monitor.c (_initialize_remote_monitors): Update.
2621 * mips-tdep.c (_initialize_mips_tdep): Update.
2622 * mcore-tdep.c (_initialize_mcore_tdep): Update.
2623 * maint.c (_initialize_maint_cmds): Update.
2624 * lin-lwp.c (_initialize_lin_lwp): Update.
2625 * language.c (_initialize_language): Update.
2626 * kod.c (_initialize_kod): Update.
2627 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
2628 * i386-tdep.c (_initialize_i386_tdep): Update.
2629 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
2630 * gdbarch.sh: Update.
2631 * gdbarch.c: Re-generate.
2632 * gdb-events.sh: Update.
2633 * gdb-events.c: Re-generate.
2634 * frame.c (_initialize_frame): Update.
2635 * exec.c: Update.
2636 * demangle.c (_initialize_demangler): Update.
2637 * dcache.c (_initialize_dcache): Update.
2638 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
2639 * cp-valprint.c (_initialize_cp_valprint): Update.
2640 * corefile.c (_initialize_core): Update.
2641 * command.h: Update.
2642 * cli/cli-decode.h: Update.
2643 * cli/cli-cmds.c (init_cli_cmds): Update.
2644 * charset.c (_initialize_charset): Update.
2645 * breakpoint.c (_initialize_breakpoint): Update.
2646 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
2647 * alpha-tdep.c (_initialize_alpha_tdep): Update.
2648 * aix-thread.c (_initialize_aix_thread): Update.
2649
b4632131
MK
26502004-07-24 Mark Kettenis <kettenis@gnu.org>
2651
2652 Partial fix for PR backtrace/1718.
2653 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
2654 that GCC migrates into the prolugue. Don't handle any
2655 instructions that clobber %ebx.
2656
822c9732
AC
26572004-07-23 Andrew Cagney <cagney@gnu.org>
2658
2659 Use regcache_raw_collect instead of regcache_collect.
2660 * regcache.h (regcache_collect): Delete declaration.
2661 * regcache.c (regcache_colect): Delete function.
2662 * win32-nat.c (do_child_store_inferior_registers): Update.
2663 * sol-thread.c (sol_thread_store_registers): Update.
2664 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
2665 * rs6000-nat.c (store_register): Update.
2666 * remote.c (store_register_using_P, remote_store_registers): Update.
2667 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
2668 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
2669 (fill_vrregset, store_spe_registers, fill_gregset)
2670 (fill_gregset): Update.
2671 * nto-procfs.c (procfs_store_registers): Update.
2672 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
2673 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
2674 * m68klinux-nat.c (store_register, fill_gregset): Update.
2675 * m68k-tdep.c (fill_gregset): Update.
2676 * infptrace.c (store_register): Update.
2677 * i386-nto-tdep.c (i386nto_regset_fill): Update.
2678 * i386-linux-nat.c (store_register, fill_gregset): Update.
2679 * hppa-linux-nat.c (fill_gregset): Update.
2680 * go32-nat.c (store_register): Update.
2681 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
2682 (store_fp_regs): Update.
2683 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
2684 (store_nwfpe_extended, store_fpregister, store_fpregs)
2685 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
2686 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
2687 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
2688 (store_regs_user_thread, store_regs_kernel_thread): Update.
2689
32b05c07
MK
26902004-07-24 Mark Kettenis <kettenis@gnu.org>
2691
2692 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
2693 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
2694 encoding.
2695 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
2696 member of `struct comp_unit'.
2697
8567c30f
AC
26982004-07-23 Andrew Cagney <cagney@gnu.org>
2699
2700 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
2701 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
2702
f6da8dd8
MH
27032004-07-23 Martin Hunt <hunt@redhat.com>
2704 Kevin Buettner <kevinb@redhat.com>
2705
2706 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
2707 alignment was being added to the offset instead of multiplied.
2708
bd921882
MK
27092004-07-23 Mark Kettenis <kettenis@gnu.org>
2710
24f033e8
MK
2711 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
2712 changed signal trampoline in OpenBSD 3.5-current.
2713
90f3cecd
MK
2714 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
2715 <machine/pcb.h> and "bsd-kvm.h".
2716 (sparc64nbsd_supply_pcb): New function.
2717 (_initialize_sparc64nbsd_nat): Renamed from
2718 _initialize_sparcnbsd_nat. Enable libkvm interface.
2719 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
2720 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
2721 (LOADLIBES): New variable.
2722
a4954a62
MK
2723 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
2724
bd921882
MK
2725 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
2726
23a6d369
AC
27272004-07-21 Andrew Cagney <cagney@gnu.org>
2728
2729 Use regcache_raw_supply instead of supply_register.
2730 * regcache.h (supply_register): Delete declaration.
2731 * regcache.c (supply_register): Delete function.
2732 * wince.c (do_child_fetch_inferior_registers): Update.
2733 * win32-nat.c (do_child_fetch_inferior_registers)
2734 (fetch_elf_core_registers): Update.
2735 * v850ice.c (v850ice_fetch_registers): Update.
2736 * thread-db.c (thread_db_store_registers): Update.
2737 * sol-thread.c (sol_thread_store_registers): Update.
2738 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
2739 * rs6000-nat.c (fetch_register): Update.
2740 * rom68k-rom.c (rom68k_supply_one_register): Update.
2741 * remote.c (remote_wait, remote_async_wait): Update.
2742 * remote-st.c (get_hex_regs): Update.
2743 * remote-sim.c (gdbsim_fetch_register): Update.
2744 * remote-sds.c (sds_fetch_registers): Update.
2745 * remote-rdp.c (remote_rdp_fetch_register): Update.
2746 * remote-rdi.c (arm_rdi_fetch_registers): Update.
2747 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
2748 * remote-m32r-sdi.c (m32r_fetch_register): Update.
2749 * remote-hms.c (init_hms_cmds): Update.
2750 * remote-est.c (init_est_cmds): Update.
2751 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
2752 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
2753 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
2754 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
2755 (fetch_register, supply_vrregset, supply_vrregset)
2756 (fetch_spe_registers): Update.
2757 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
2758 * monitor.c (monitor_supply_register): Update.
2759 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
2760 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
2761 (mipsnbsd_supply_fpreg): Update.
2762 * mips-nat.c (fetch_inferior_registers)
2763 (fetch_core_registers): Update.
2764 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
2765 (supply_fpregset, mips64_supply_gregset)
2766 (mips64_supply_fpregset): Update.
2767 * m68klinux-nat.c (fetch_register, supply_gregset)
2768 (supply_fpregset): Update.
2769 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
2770 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
2771 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
2772 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
2773 * infptrace.c (fetch_register): Update.
2774 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
2775 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
2776 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
2777 (gnu_fetch_registers, gnu_store_registers): Update.
2778 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
2779 * i386-linux-nat.c (fetch_register, supply_gregset)
2780 (dummy_sse_values): Update.
2781 * hpux-thread.c (hpux_thread_fetch_registers): Update.
2782 * hppah-nat.c (fetch_register): Update.
2783 * hppa-linux-nat.c (fetch_register, supply_gregset)
2784 (supply_fpregset): Update.
2785 * go32-nat.c (fetch_register): Update.
2786 * dve3900-rom.c (fetch_bitmapped_register)
2787 (_initialize_r3900_rom): Update.
2788 * cris-tdep.c (supply_gregset): Update.
2789 * abug-rom.c (init_abug_cmds): Update.
2790 * core-aout.c (fetch_core_registers): Update.
2791 * armnbsd-nat.c (supply_gregset, supply_fparegset)
2792 (fetch_register, fetch_fp_register): Update.
2793 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
2794 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
2795 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
2796 * alphanbsd-tdep.c (fetch_core_registers): Update.
2797 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
2798 * alpha-nat.c (fetch_osf_core_registers)
2799 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
2800 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
2801 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
2802
73cc75f3
AC
28032004-07-21 Andrew Cagney <cagney@gnu.org>
2804
2805 * PROBLEMS: Mention breakpoints/1702.
2806 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
2807 that is known to work.
2808
a53c66de
AC
28092004-07-21 Andrew Cagney <cagney@gnu.org>
2810
2811 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
2812 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
2813 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
2814 (handle_inferior_event): Wrap call to deprecated
2815 IGNORE_HELPER_CALL in #ifdef.
2816 * config/mips/tm-nbsd.h: Update.
2817
708ff411
JB
28182004-07-20 Jim Blandy <jimb@redhat.com>
2819
412b3060
JB
2820 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
2821 bfd_mach_ppc has no segment registers.
2822
13ac140c
JB
2823 Include PowerPC SPR numbers for special-purpose registers.
2824 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
2825 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
2826 new member in initializer.
2827 (S, S4, SN4, S64): New macros for defining special-purpose
2828 registers.
2829 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
2830 registers_403, registers_403GC, registers_505, registers_860,
2831 registers_601, registers_602, registers_603, registers_604,
2832 registers_750, registers_e500): Use them.
2833
708ff411
JB
2834 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
2835 replace references with expression used to initialize variable.
2836
1f602b35
AC
28372004-07-20 Andrew Cagney <cagney@gnu.org>
2838
2839 * breakpoint.c (deprecated_read_memory_nobpt): Rename
2840 read_memory_nobpt.
2841 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
2842 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
2843 (s390_sigtramp_frame_sniffer): Update.
2844 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
2845 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
2846 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
2847 (mips32_fetch_instruction): Update.
2848 * mcore-tdep.c (get_insn): Update.
2849 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
2850 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
2851 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
2852 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2853 (i386_linux_rt_sigtramp_start): Update.
2854 * i386-linux-nat.c (child_resume): Update.
2855 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
2856 * hppa-linux-tdep.c (insns_match_pattern): Update.
2857 * gdbcore.h: Update.
2858 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
2859 * frame.c (safe_frame_unwind_memory): Update.
2860 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
2861 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
2862 * alpha-tdep.c (alpha_read_insn): Update.
2863
2cd8546d
AC
28642004-07-20 Andrew Cagney <cagney@gnu.org>
2865
2866 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
2867 containing both bytes and mask. Add "frame_type".
2868 * tramp-frame.c (tramp_frame_start): Update.
2869 (tramp_frame_prepend_unwinder): Update.
2870 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2871 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2872 (mips_linux_n64_rt_sigframe): Update. Make "static const".
2873 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
2874
f928dd62
EZ
28752004-07-19 Eli Zaretskii <eliz@gnu.org>
2876
2877 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
2878 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
2879 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
2880 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
2881
d5c560f7
AC
28822004-07-17 Andrew Cagney <cagney@gnu.org>
2883
860660cb
AC
2884 * NEWS, PROBLEMS: Update for 6.2.
2885
8c266f54
AC
2886 * README: Update to 6.2.
2887
a552edd9
AC
2888 * utils.c (xvasprintf): Call xstrvprintf.
2889
c4a172b5
AC
2890 * parse.c: Update copyright.
2891 (null_post_parser): Eliminate ARGSUSED.
2892
da745b36
AC
2893 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
2894 * tui/tui-win.c (tui_get_cmd_list): Ditto.
2895 * symfile-mem.c (_initialize_symfile_mem): Ditto.
2896
9cbc6ef0
AC
2897 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
2898 * ppc-linux-nat.c: Use "Linux kernel".
2899 * hppa-linux-tdep.c: Use GNU/Linux.
2900 * hppa-linux-nat.c: Use GNU/Linux.
2901 * dwarfread.c: Add [sic] to use of Linux.
2902
1b89295f
AC
2903 * hppa-linux-nat.c: Do not include <string.h>.
2904 (supply_fpregset): Remove "register" attribute.
2905
d5c560f7
AC
2906 * solib-frv.c (fetch_loadmap): Use xfree, not free.
2907
7ddd7709
MK
29082004-07-17 Mark Kettenis <kettenis@gnu.org>
2909
b1d19a62
MK
2910 * configure.in: Define _MSE_INT_H on Solaris 9 too.
2911 * configure, config.in: Regenerated.
2912
7ddd7709
MK
2913 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
2914 "bsd-kvm.h".
2915 (vaxbsd_supply_pcb): New function.
2916 (_initialize_vaxbsd_nat): New prototype and function.
2917 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
2918 solib-sunos.o.
2919 (LOADLIBES): New variable.
2920 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2921 (LOADLIBES): New variable.
2922 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2923 (LOADLIBES): New variable.
2924 * Makefile.in (vaxbsd-nat.o): Update dependencies.
2925
2c07db7a
AC
29262004-07-16 Andrew Cagney <cagney@gnu.org>
2927
2928 * defs.h (event_loop_p): Replace variable declaration with macro,
2929 always 1.
2930 * main.c (captured_main): Delete options "-async" and "-noasync".
2931 (event_loop_p): Delete variable.
2932 * NEWS: Mention that "-async" and "-noasync" were removed.
2933
717eb1cf
AC
29342004-07-16 Andrew Cagney <cagney@gnu.org>
2935
2936 * remote-m32r-sdi.c: Re-indent.
2937
c101bc14
JB
29382004-07-16 Jim Blandy <jimb@redhat.com>
2939
5109a438
JB
2940 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
2941 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
2942 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
2943 missing MPC823 SPRs.
2944 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
2945 incorrect. (This was corrected in GDB's register name tables on
2946 2004-07-14.)
2947
c101bc14
JB
2948 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
2949 should be "esasrr" ("ESA Save and Restore Register").
2950
7ce450bd
AC
29512004-07-16 Andrew Cagney <cagney@gnu.org>
2952
2953 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
2954 calls, no longer applicable. Update comments and rename parameter
2955 "step_frame" to "return_frame".
2956
ca73dd9d
AC
29572004-07-16 Andrew Cagney <cagney@gnu.org>
2958
2959 * frame.c (fprint_field): New function.
2960 (fprint_frame_id): Use fprint_field.
2961
31941f6d
JB
29622004-07-15 Joel Brobecker <brobecker@gnat.com>
2963
2964 * ada-lang.c (ada_language_defn): Remove commented out code.
2965
f86a7158
JB
29662004-07-15 Jim Blandy <jimb@redhat.com>
2967
2968 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
2969 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
2970
c24791ec
JB
29712004-07-14 Jim Blandy <jimb@redhat.com>
2972
29bb1356
JB
2973 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
2974
cc98b5cc
JB
2975 * ppc-tdep.h (ppc_num_vrs): New enum constant.
2976
8f088af7
JB
2977 * ppc-tdep.h (ppc_num_srs): New enum constant.
2978
0ea0ec5f
JB
2979 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
2980 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
2981 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
2982 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
2983 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
2984 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
2985 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
2986 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
2987 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
2988 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
2989 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
2990 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
2991 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
2992 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
2993 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
2994 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
2995 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
2996 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
2997 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
2998 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
2999 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
3000 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
3001 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
3002 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
3003 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
3004 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
3005 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
3006 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
3007 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
3008 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
3009 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
3010 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
3011 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
3012 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
3013 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
3014 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
3015 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
3016 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
3017 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
3018 special-purpose register numbers.
3019
c24791ec
JB
3020 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
3021 manual mentions 'md_twb', but many mention 'm_twb', and at that
3022 point in the register list.)
3023
d833db3b
AC
30242004-07-14 Andrew Cagney <cagney@gnu.org>
3025
3026 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
3027 instead of "internal-error".
3028
080228b2
JB
30292004-07-10 Joel Brobecker <brobecker@gnat.com>
3030
3031 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
3032 that was inserted inside a comment.
3033
c268433a
RC
30342004-07-10 Randolph Chung <tausq@debian.org>
3035
3036 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
3037 function.
3038 (hppa_hpux_push_dummy_code): New function.
3039 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
3040 Set find_global_pointer method.
3041
71009278
MK
30422004-07-10 Mark Kettenis <kettenis@gnu.org>
3043
3044 * NEWS: Mention BSD libkvm interface.
3045
b2fa5097
MS
30462004-07-10 Michael Snyder <msnyder@redhat.com>
3047
3048 * symfile.c (generic_load): Comment typo.
3049 * stack.c (get_selected_block): Ditto.
3050 * regcache.c (regcache_cooked_read): Ditto.
3051 * monitor.c (monitor_debug): Ditto.
3052 * mips-tdep.c (mips_read_pc): Ditto.
3053 * i386-linux-nat.c (ps_get_thread_area): Ditto.
3054 * gdb_mbuild.sh: Ditto.
3055 * gdbarch.sh: Ditto.
3056 * gdbarch.h: Ditto.
3057
c3e5cd34
PH
30582004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
3059
8a2225b2
PH
3060 * ada-tasks.c: Remove file.
3061
c3e5cd34
PH
3062 Remove ARI problems:
3063
3064 * ada-exp.y (write_var_from_sym): Reformat to put operator at
3065 beginning of line.
3066
3067 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
3068 Add comment.
3069 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
3070 (MIN_OF_SIZE): Rename min_of_size. Add comment.
3071 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
3072 (UMIN_OF_SIZE): Remove.
3073 (max_of_type): New function to replace orphan macro in gdbtypes.h
3074 (min_of_type): Ditto.
3075 (discrete_type_high_bound): Use max_of_type.
3076 (discrete_type_low_bound): Use min_of_type.
3077 (possible_user_operator_p): Move operator to beginning of line.
3078 (ada_is_variant_part): Ditto.
3079 (ensure_lval): Rewrite to avoid deprecated operations.
3080 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
3081 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
3082 (ada_enum_name): Remove assignments in 'if' statements.
3083 (build_ada_types): Add gdbarch parameter.
3084 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
3085 with gdbarch_data_register_post_init.
3086 Use add_setshow_uinteger_cmd rather than add_set_cmd and
3087 add_show_from_set.
3088
3089 * ada-valprint.c (inspect_it): Remove declaration.
3090 (repeat_count_threshold): Remove declaration.
3091 (ada_print_floating): Remove assignments in 'if' statements.
3092 (print_str): Move operator to beginning of line.
3093
61ce229a
JB
30942004-07-08 Jim Blandy <jimb@redhat.com>
3095
3096 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
3097
09bcec80
BR
30982004-07-08 Bob Rossi <bob@brasko.net>
3099
3100 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
3101
31c27f77
JJ
31022004-07-06 Jeff Johnston <jjohnstn@redhat.com>
3103
3104 * language.h (struct_language_defn): Add new function pointer:
3105 la_class_name_from_physname. Also add new prototype for
3106 language_class_name_from_physname.
3107 * language.c (language_class_name_from_physname): New function.
3108 (unk_lang_class_name): Ditto.
3109 (unknown_language_defn, auto_language_defn): Change
3110 to add unk_lang_class_name function pointer for
3111 la_class_name_from_physname.
3112 (local_language_defn): Ditto.
3113 * dwarf2read.c (guess_structure_name): Change to call
3114 language_class_name_from_physname.
3115 (determine_class_name): Ditto.
3116 * cp-support.c (class_name_from_physname): Renamed.
3117 (cp_class_name_from_physname): New name of function.
3118 * cp-support.h: Ditto.
3119 * c-lang.c (c_language_defn): Change to add NULL
3120 for class_name_from_physname function pointer.
3121 (cplus_language_defn): Change to add cp_class_name_from_physname.
3122 * jv-lang.c (java_class_name_physname): New function.
3123 (java_find_last_component): New static routine.
3124 (java_language_defn): Add java_class_name_from_physname pointer.
3125 * ada-lang.c (ada_language_defn): Change to add NULL
3126 for class_name_from_physname function pointer.
3127 * f-lang.c (f_language_defn): Ditto.
3128 * m2-lang.c (m2_language_defn): Ditto.
3129 * objc-lang.c (objc_language_defn): Ditto.
3130 * p-lang.c (pascal_language_defn): Ditto.
3131 * scm-lang.c (scm_language_defn): Ditto.
3132
ee28ca0f
AC
31332004-07-06 Andrew Cagney <cagney@gnu.org>
3134
3135 Patch from Bart Robinson.
3136 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
3137 (O_LARGEFILE): Define to 0, if not defined.
3138
fdb1bf9d
MK
31392004-07-03 Mark Kettenis <kettenis@gnu.org>
3140
cb162ff6
MK
3141 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
3142 <machine/pcb.h> and "bsd-kvm.h".
3143 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
3144 (m68kbsd_supply_pcb): New function.
3145 (_initialize_m68kbsd_nat): New prototype and function.
3146 * Makefile.in (m68kbsd-nat.o): Update dependencies.
3147 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3148 (LOADLIBES): New variable.
3149 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3150 (LOADLIBES): New variable.
3151
fdb1bf9d
MK
3152 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
3153
963c4174
MK
31542004-07-03 Mark Kettenis <kettenis@gnu.org>
3155
3156 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
3157 <sys/proc.h>.
3158 (bsd_kvm_cmdlist): New variable.
3159 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
3160 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
3161 command and "kvm proc" command.
3162 * Makefile.in (bsd-kvm.o): Update dependencies.
3163
533f1d8f
MK
31642004-07-02 Mark Kettenis <kettenis@gnu.org>
3165
3166 * osabi.c: Update copyright year.
3167 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
3168 notes if EI_OSABI is set to ELFOSABI_HPUX.
3169
6780dcde
MS
31702004-07-01 Michael Snyder <msnyder@redhat.com>
3171
3172 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
3173 that seems to have gotten whacked out of line.
3174
67bebe79
MK
31752004-07-01 Mark Kettenis <kettenis@gnu.org>
3176
3177 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
3178 code.
3179
0b5d8877
PH
31802004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3181
3182 * ada-lang.c (decode_packed_array): Minor change to comment.
3183 (ada_value_slice_ptr): New function.
3184 (ada_value_slice): New function.
3185 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
3186 test. Don't know why it is there.
3187 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
3188 to avoid dereferencing huge arrays from which one is slicing.
3189 (empty_array): Correct to return an array rather than
3190 a subrange value.
3191 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
3192 on empty arrays (let'em use 'FIRST instead).
3193
19c1ef65
PH
31942004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3195
3196 Address complaints from gdb_ari.sh:
3197
3198 * ada-exp.y: Include gdb_string.h rather than string.h.
3199 (convert_char_literal): Reformat declaration.
3200 * ada-lang.h: Include opaque struct declaration for struct frame_info.
3201 * ada-lex.l: Change use of free to xfree (the macro would do so
3202 anyway, but this is harmless).
3203 Include gdb_string.h rather than string.h.
3204 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
3205
3206 * ada-lang.c (parse): Remove K&Rism in parameter list.
3207 (is_name_suffix): Correct Linux => GNU/Linux in comment.
3208
d81cbc94
MK
32092004-06-30 Mark Kettenis <kettenis@gnu.org>
3210
3211 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
3212 dead code.
3213
07681759
MK
32142004-06-30 Mark Kettenis <kettenis@gnu.org>
3215
3216 * alphabsd-nat.c: Update copyright year.
3217 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
3218
f7948b5f
JB
32192004-06-29 Joel Brobecker <brobecker@gnat.com>
3220
6e0cdd28 3221 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
3222 (i386_cygwin_in_solib_call_trampoline): New function.
3223 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
3224 and skip_trampoline_code gdbarch methods.
3225
8f113c9a
JB
32262004-06-29 Jim Blandy <jimb@redhat.com>
3227
3228 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
3229 name actually used in the dependency lists.
3230
97dc871c
RC
32312004-06-29 Randolph Chung <tausq@debian.org>
3232
3233 * NEWS (New native configurations): Mention GNU/Linux/hppa.
3234
47216e51
CV
32352004-06-29 Corinna Vinschen <vinschen@redhat.com>
3236
3237 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 3238 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
3239 functionality.
3240
e623b504
AC
32412004-06-28 Andrew Cagney <cagney@gnu.org>
3242
3243 * defs.h (xstrvprintf): Declare.
3244 * utils.c (xstrvprintf): New function.
3245 (internal_vproblem, xstrprintf, xasprintf)
3246 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
3247 * serial.c (serial_printf): Ditto.
3248 * complaints.c (vcomplaint): Ditto.
3249
79acc9b3
CV
32502004-06-29 Corinna Vinschen <vinschen@redhat.com>
3251
3252 * infcmd.c (attach_command): Move call to target_terminal_inferior
3253 behind loading symbol table.
3254
1daf35d9
AC
32552004-06-28 Andrew Cagney <cagney@gnu.org>
3256
3257 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
3258 change - add back extern deprecated_ui_loop_hook declaration.
3259
b435e160
AC
32602004-06-28 Andrew Cagney <cagney@gnu.org>
3261
3262 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
3263 xstrprintf.
3264 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
3265 (c_value_of_variable): Ditto.
3266 * utils.c (internal_vproblem): Ditto.
3267 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
3268 * remote.c (add_packet_config_cmd): Ditto.
3269 * remote-rdp.c (rdp_set_command_line): Ditto.
3270 * regcache.c (regcache_dump): Ditto.
3271 * frv-tdep.c (new_variant, new_variant): Ditto.
3272 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
3273 (fbsd_find_memory_regions): Ditto.
3274 * breakpoint.c (create_thread_event_breakpoint)
3275 (create_breakpoints): Ditto.
3276 * aix-thread.c (aix_thread_pid_to_str): Ditto.
3277 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
3278
06d5cf63
JB
32792004-06-28 Joel Brobecker <brobecker@gnat.com>
3280
3281 * ada-lang.c: Re-indent file, with some massaging to help indent
3282 a bit when the result is otherwise really too ugly.
3283
35809fad
UW
32842004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3285
3286 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
3287 code_addr_p and special_addr_p to 'unsigned int'.
3288
40e20472
MK
32892004-06-27 Mark Kettenis <kettenis@gnu.org>
3290
3291 * i386v4-nat.c: Update copyright year and tweak comment.
3292 (regmap): Remove trailing comma.
3293 (supply_gregset): Rename local variable i to regnum. Call
3294 regcache_raw_supply instead of supply_register.
3295 (fill_gregset): Rename argument regno to regnum. Call
3296 regcache_raw_collect instead of regcache_collect.
3297
12b0b6de
UW
32982004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3299
3300 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
3301 and special_addr_p.
3302 (frame_id_build, frame_id_build_special): Update comments.
3303 (frame_id_build_wild): New prototype.
3304 * frame.c (frame_id_build, frame_id_build_special): Fill in new
3305 struct frame_id fields.
3306 (frame_id_build_wild): New function.
3307 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
3308
47b42a3e
MK
33092004-06-27 Mark Kettenis <kettenis@gnu.org>
3310
3311 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
3312 hppabsd-tdep.c.
3313
1265e4aa
JB
33142004-06-27 Joel Brobecker <brobecker@gnat.com>
3315
3316 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
3317
76a01679
JB
33182004-06-27 Joel Brobecker <brobecker@gnat.com>
3319
3320 * ada-lang.c: Re-indent file.
3321
7aca490a
JB
33222004-06-27 Joel Brobecker <brobecker@gnat.com>
3323
3324 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
3325 (no_symtab_msg): Likewise.
3326
5e987968
AS
33272004-06-27 Andreas Schwab <schwab@suse.de>
3328
3329 * source.c: Fix whitespace.
3330
315c4276
MK
33312004-06-27 Mark Kettenis <kettenis@gnu.org>
3332
d15be926
MK
3333 * configure.in: Include <sys/param.h> for td_pcb test.
3334 * configure: Regenerated.
3335
9062529b
MK
3336 * i386nbsd-nat.c: New file.
3337 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
3338 i386obsd-nat.c and i386obsd-tdep.c.
3339 (i386nbsd-nat.o): New dependency.
3340 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
3341 bsd-kvm.o.
3342 (LOADLIBES): New variable.
3343 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
3344 bsd-kvm.o.
3345 (LOADLIBES): New variable.
3346
8010310e
MK
3347 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
3348 (LOADLIBES): New variable.
3349
efe1d7b9
MK
3350 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
3351 fetching from BSD_KVM_PADDR. Correctly lookup address for
3352 "_thread0".
3353
315c4276
MK
3354 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
3355 "bsd-kvm.h".
3356 (amd64fbsd_supply_pcb): New funcion.
3357 (_initialize_amd64fbsd_nat): Enable libkvm interface.
3358
399cfac6
DL
33592004-06-27 <david@streamline-computing.com>
3360
3361 Partial fix for PR cli/1056.
3362 * valarith.c: Check for zero in division and remainder
3363 evaluation.
3364
6235f9c8
MK
33652004-06-27 Mark Kettenis <kettenis@gnu.org>
3366
3367 * i387-tdep.c: Remove excessive whitespace.
3368
2726dafc
AC
33692004-06-26 Andrew Cagney <cagney@gnu.org>
3370
3371 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
3372 * gdb-events.h, gdb-events.c: Re-generate.
3373 * tui/tui-hooks.c (tui_install_hooks): Update.
3374 (tui_remove_hooks): Update.
3375 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
3376
0e56aeaf
MK
33772004-06-26 Mark Kettenis <kettenis@gnu.org>
3378
cb461069
MK
3379 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
3380 (gregset_t, fpregset_t): Remove typedefs.
3381 (REG_OFFSET): Rename argument.
3382 (amd64bsd_r_reg_offset): Rename from reg_offset.
3383 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
3384 Remove functions.
3385 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
3386 of reg_offset.
3387 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
3388
ecba89de
MK
3389 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
3390
4cd80476
MK
3391 * vax-tdep.c: Tweak comment.
3392
0e56aeaf
MK
3393 Add OpenBSD/hppa support.
3394 * NEWS (New native configurations): Mention OpenBSD/hppa.
3395 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
3396 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
3397 files.
3398 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
3399 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
3400 * configure.host: Add hppa*-*-openbsd*.
3401 * configure.tgt: Add hppa*-*-openbsd*.
3402
98bbd631
AC
34032004-06-25 Andrew Cagney <cagney@gnu.org>
3404
3405 * defs.h (deprecated_ui_loop_hook): Deprecated.
3406 * wince.c (child_wait): Update.
3407 * win32-nat.c (child_wait): Update.
3408 * v850ice.c (v850ice_wait): Update.
3409 * top.c (deprecated_ui_loop_hook): Update.
3410 * serial.h: Update.
3411 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
3412 (do_unix_readchar): Update.
3413 * ser-tcp.c (net_open): Update.
3414 * remote-sim.c (gdb_os_poll_quit): Update.
3415 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
3416
769d7dc4
AC
34172004-06-24 Andrew Cagney <cagney@gnu.org>
3418
3419 * defs.h (deprecated_pre_add_symbol_hook)
3420 (deprecated_post_add_symbol_hook): Deprecated.
3421 * symfile.c (symbol_file_add_with_addrs_or_offsets)
3422 (symbol_file_add_with_addrs_or_offsets): Update references.
3423
11c949aa
AC
34242004-06-24 Andrew Cagney <cagney@gnu.org>
3425
3426 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
3427 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
3428 * wince.c (ui_loop_hook): Delete extern declaration.
3429 * win32-nat.c (ui_loop_hook): Delete extern declaration..
3430 * v850ice.c (ui_loop_hook): Delete extern declaration..
3431 * ser-unix.c (ui_loop_hook): Delete extern declaration..
3432 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
3433 * remote-sim.c (ui_loop_hook): Delete extern declaration..
3434 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
3435 ui_loop_hook declaration.
3436
eedc19af
AC
34372004-06-24 Andrew Cagney <cagney@gnu.org>
3438
3439 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
3440 entry_func_highpc fields.
3441 * objfiles.c (init_entry_point_info): Do not clear
3442 entry_func_lowpc and entry_func_highpc.
3443 (objfile_relocate): Do not relocate entry_func_lowpc and
3444 entry_func_highpc.
3445 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
3446 entry_func_highpc.
3447 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
3448 entry_func_highpc.
3449 * blockframe.c (legacy_frame_chain_valid): Replace tests against
3450 entry_func_lowpc and entry_func_highpc with call to
3451 inside_entry_func.
3452
d47079be
MK
34532004-06-24 Mark Kettenis <kettenis@gnu.org>
3454
3455 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
3456 quad-precision floating point arguments in registers.
3457
2107e348
MK
34582004-06-24 Mark Kettenis <kettenis@gnu.org>
3459
3460 From Michael Mueller <m.mueller99@kay-mueller.de>:
3461 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
3462 account.
3463
46587c42
JJ
34642004-06-22 Jeff Johnston <jjohnstn@redhat.com>
3465
3466 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
3467 to -1.
3468 * breakpoint.c (bpstat_stop_status): Move check for ignoring
3469 untriggered watchpoints to a separate if clause. Update function
3470 comment regarding STOPPED_BY_WATCHPOINT argument.
3471
226f5cf4
JB
34722004-06-22 Jim Blandy <jimb@redhat.com>
3473
3474 * gdbarch.sh: Doc fix.
3475
f10683bb
MH
34762004-06-21 Martin Hunt <hunt@redhat.com>
3477 Kevin Buettner <kevinb@redhat.com>
3478
3479 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
3480 * mips-tdep.h (MIPS_SP_REGNUM): Define.
3481 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
3482 to set_gdbarch_sp_regnum(). Use cooked register number.
3483 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
3484
412d5987
AC
34852004-06-21 Andrew Cagney <cagney@gnu.org>
3486
3487 * gdbarch.sh: When the macro field is empty, do not generate a
3488 macro definition. When the macro field is "=", generate the macro
3489 name from the upper-case function name.
3490 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
3491 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
3492 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
3493 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
3494 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
3495 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
3496 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
3497 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
3498 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
3499 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
3500 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
3501 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
3502 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
3503 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
3504 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
3505 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
3506 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
3507 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
3508 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
3509 (DEPRECATED_USE_STRUCT_CONVENTION)
3510 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3511 (DEPRECATED_FRAME_INIT_SAVED_REGS)
3512 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
3513 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
3514 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
3515 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
3516 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
3517 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
3518 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
3519 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
3520 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
3521 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
3522 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
3523 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
3524 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
3525 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
3526 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
3527 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
3528
68908a3e
AC
35292004-06-21 Andrew Cagney <cagney@gnu.org>
3530
48f7351b
AC
3531 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
3532 macro name, and the function rather than macro value. Only wrap
3533 macro print statements in #ifdef. Move format logic to where it
3534 is needed.
3535 * gdbarch.c: Re-generate.
3536
283354d8
AC
3537 * gdbarch.sh (read): Delete "print_p" and "description", add
3538 "garbage_at_eol". Check for non-empty garbage at end-of-line.
3539 Delete references to print_p.
3540 (TARGET_ARCHITECTURE): Delete print predicate.
3541 * gdbarch.c: Re-generate.
3542
68908a3e
AC
3543 * gdbarch.sh: Check that multi-arch methods do not provide a
3544 macro.
3545 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
3546 (print_registers_info, print_float_info, print_vector_info)
3547 (adjust_breakpoint_address, remote_translate_xfer_address)
3548 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
3549 (address_class_type_flags_to_name, unwind_sp): Remove the macro
3550 name from the multi-arch definition.
3551
a2428dbe
AC
35522004-06-20 Andrew Cagney <cagney@gnu.org>
3553
3554 * gdbarch.sh: Sort by the function, instead of macro name.
3555 * gdbarch.c: Re-generate.
3556
750eb019
AC
35572004-06-20 Andrew Cagney <cagney@gnu.org>
3558
66d659b1
AC
3559 * gdbarch.sh: Use the function, instead of macro name in
3560 errors and the log file.
3561 (return_value): Remove stray ":" in spec.
3562
750eb019
AC
3563 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
3564 * gdbarch.h, gdbarch.c: Re-generate.
3565 * Makefile.in (arch-utils.o): Update dependencies.
3566 * values.c (using_struct_return): Move code calling
3567 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
3568 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
3569 to legacy_return_value, simplify.
3570 * infcmd.c (print_return_value): Move code calling
3571 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
3572 to legacy_return_value, simplify.
3573 * infcall.c (call_function_by_hand): Move code calling
3574 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
3575 * arch-utils.c: Update copyright. Include "gdbcore.h".
3576 (legacy_return_value): New function.
3577 * arch-utils.h: Update copyright.
3578 (legacy_return_value): Declare.
3579
b5622e8d
AC
35802004-06-20 Andrew Cagney <cagney@gnu.org>
3581
3582 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
3583 * gdbarch.h, gdbarch.c: Re-generate.
3584 * values.c (using_struct_return): Update call.
3585 * mcore-tdep.c: Update comment.
3586 * infcall.c (call_function_by_hand): Update comment.
3587 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3588 * arch-utils.h (always_use_struct_convention): Update.
3589 * v850-tdep.c (v850_gdbarch_init): Update.
3590 * sh64-tdep.c (sh64_gdbarch_init): Update.
3591 * sh-tdep.c (sh_gdbarch_init): Update.
3592 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3593 * mips-tdep.c (mips_gdbarch_init): Update.
3594 * mcore-tdep.c (mcore_gdbarch_init): Update.
3595 * m32r-tdep.c (m32r_gdbarch_init): Update.
3596 * ia64-tdep.c (ia64_gdbarch_init): Update.
3597 * h8300-tdep.c (h8300_gdbarch_init): Update.
3598 * frv-tdep.c (frv_gdbarch_init): Update.
3599 * cris-tdep.c (cris_gdbarch_init): Update.
3600 * arm-tdep.c (arm_gdbarch_init): Update.
3601 * alpha-tdep.c (alpha_gdbarch_init): Update.
3602
5191de37
MC
36032004-06-18 Michael Chastain <mec.gnu@mindspring.com>
3604
3605 * PROBLEMS: Add more specific information, and a work-around,
3606 for PR gdb/1458.
3607
782263ab
AC
36082004-06-18 Andrew Cagney <cagney@gnu.org>
3609
3610 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
3611 * gdbarch.h, gdbarch.c: Re-generate.
3612 * ada-lang.c (ada_finish_decode_line_1): Update.
3613 * infrun.c (handle_inferior_event): Update.
3614 * infcall.c (find_function_addr): Update.
3615 * linespec.c (minsym_found): Update.
3616 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
3617 Update.
3618 * blockframe.c (legacy_frameless_look_for_prologue): Update.
3619 * cli/cli-cmds.c (disassemble_command): Update.
3620 * vax-tdep.c (vax_gdbarch_init): Update.
3621
2f305df1
MK
36222004-06-18 Mark Kettenis <kettenis@gnu.org>
3623
3624 * i386-tdep.c (i386_collect_fpregset): Fix comment.
3625
e5fe55f7
AC
36262004-06-17 Andrew Cagney <cagney@gnu.org>
3627
3628 GDB 6.1.1 released from the GDB 6.1 branch.
3629 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
3630 * PROBLEMS: Ditto.
3631
473b7be6
DJ
36322004-06-16 Daniel Jacobowitz <dan@debian.org>
3633
3634 PR gdb/1658
3635 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
3636 operation as a uleb128. Found by Michael Coulter.
3637
96d887e8
PH
36382004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
3639
3640 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
3641 make it non-static.
3642 * ada-lang.h (task_control_block): declaration moved from ada-task.c
3643 to ada-lang.h; this is needed to be able to implement the kill command
3644 in multi-task mode.
3645 (task_ptid): Ditto.
3646 (task_entry): Ditto.
3647 (task_list): Ditto.
3648 (ada_build_task_list): Ditto.
3649
3650 * ada-lang.c: Conditionalize routines and data structures related
3651 to breakpoints, exceptions, completion, and symbol caching on
3652 GNAT_GDB, since these are not yet used in the submitted public sources.
3653 (ada_main_name): Editorial: Move definition out of exception-related
3654 code.
3655
31eef181
AC
36562004-06-15 Andrew Cagney <cagney@gnu.org>
3657
3658 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
3659 deprecated_pc_in_call_dummy.
3660
2c500098
AM
36612004-06-15 Alan Modra <amodra@bigpond.net.au>
3662
3663 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
3664 bfd_get_section_size_before_reloc or _raw_size.
3665 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3666 * dwarf2read.c (dwarf2_locate_sections): Likewise.
3667 (dwarf2_read_section): Likewise.
3668 * elfread.c (elf_locate_sections): Likewise.
3669 * gcore.c (derive_heap_segment): Likewise.
3670 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
3671 * remote-e7000.c (e7000_load): Likewise.
3672 * remote-m32r-sdi.c (m32r_load): Likewise.
3673 * remote-mips.c (mips_load_srec): Likewise.
3674 (pmon_load_fast): Likewise.
3675 * remote.c (compare_sections_command): Likewise.
3676 * symfile.c (add_section_size_callback): Likewise.
3677 (load_section_callback): Likewise.
3678 (pc_in_unmapped_range): Likewise.
3679 (pc_in_mapped_range): Likewise.
3680 (sections_overlap): Likewise.
3681 (list_overlays_command): Likewise.
3682 (simple_overlay_update_1): Likewise.
3683 (simple_overlay_update): Likewise.
3684 * tracepoint.c (remote_set_transparent_ranges): Likewise.
3685 * win32-nat.c (core_section_load_dll_symbols): Likewise.
3686
90f943f1
RC
36872004-06-14 Randolph Chung <tausq@debian.org>
3688
3689 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
3690 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
3691 static.
3692 (hppa_hpux_inferior_created): New function.
3693 (hppa_hpux_init_abi): Register observer.
3694 * symfile.c (hp_cxx_exception_support_initialized)
3695 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
3696 (symbol_file_add_main_1, symbol_file_clear): Likewise.
3697
700c15aa
RC
36982004-06-14 Randolph Chung <tausq@debian.org>
3699
3973a7d3
AC
3700 * MAINTAINERS (Write After Approval): Alphabetize my entry
3701 correctly.
700c15aa 3702
cea4838c
AC
37032004-06-14 Andrew Cagney <cagney@gnu.org>
3704
3705 * MAINTAINERS (testsuite): List Michael Chastain as the lead
3706 testsuite maintainer.
3707
97092415
AC
37082004-06-13 Andrew Cagney <cagney@gnu.org>
3709
e8c3165b
AC
3710 * infcmd.c (print_return_value): Fix logic, allow
3711 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
3712
bceabdd8
AC
3713 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
3714 defining any macros.
3715 * gdbarch.h: Re-generate.
3716
57010b1c
AC
3717 * gdbarch.sh: Delete "level" attribute. Only check for a macro
3718 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
3719 * gdbarch.h: Re-generate.
3720
bc87dfa0
AC
3721 * values.c (generic_use_struct_convention): Don't check gcc_p.
3722
15ac804d
AC
3723 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
3724 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
3725 * gdbarch.h, gdbarch.c: Regenerate.
3726 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
3727 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
3728 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3729 deprecated_max_register_raw_size and
3730 deprecated_max_register_virtual_size.
3731 * v850-tdep.c (v850_gdbarch_init): Ditto.
3732 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
3733 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3734 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3735 * cris-tdep.c (cris_gdbarch_init): Ditto.
3736
97092415
AC
3737 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
3738 * gdbarch.h, gdbarch.c: Re-generate.
3739 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
3740 (m68hc11_use_struct_convention): Delete function.
3741 (m68hc11_extract_struct_value_address): Delete function.
3742 (m68hc11_return_value): New function.
3743 (m68hc11_gdbarch_init): Instead of store_return_value,
3744 extract_return_value, return_value_on_stack,
3745 deprecated_extract_struct_value_address and use_struct_convention,
3746 set return_value.
3747 * values.c (using_struct_return): Do not call
3748 RETURN_VALUE_ON_STACK.
3749 * arch-utils.h (generic_return_value_on_stack_not): Delete
3750 declaration.
3751 * arch-utils.c (generic_return_value_on_stack_not): Delete
3752 function.
3753
44e5158b
AC
37542004-06-12 Andrew Cagney <cagney@gnu.org>
3755
3756 * values.c (register_value_being_returned): Delete function.
3757 * infcmd.c (legacy_return_value): Delete function.
3758 * infcall.c (call_function_by_hand): Inline
3759 "register_value_being_returned", simplify.
3760 * values.c (using_struct_return): Update comment, refer to
3761 print_return_value instead of register_value_being_returned.
3762 * infcmd.c (print_return_value): Inline calls to
3763 register_value_being_returned and legacy_return_value. Simplify.
3764
b887c273
RC
37652004-06-11 Randolph Chung <tausq@debian.org>
3766
3767 * somread.c (som_symtab_read): Exclude gcc local symbols.
3768
1b2bfbb9
RC
37692004-06-11 Randolph Chung <tausq@debian.org>
3770
3973a7d3
AC
3771 * infrun.c (handle_inferior_event): Handle the case when a
3772 trampoline ends up in the runtime resolver, and if the trampoline
3773 has no name. Rearrange the code so that all the trampoline
3774 processing happens before other step-out-of-range handling.
1b2bfbb9 3775
a9d61c86
MH
37762004-06-11 Martin Hunt <hunt@redhat.com>
3777
3778 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
3779 has no fpu.
3780
2c87cf5a
AC
37812004-06-10 Andrew Cagney <cagney@gnu.org>
3782
3783 * blockframe.c (legacy_inside_entry_func): Delete.
3784 (legacy_frame_chain_valid): Inline call to
3785 legacy_inside_entry_func, simplify.
3786
0b67b468 37872004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
3788
3789 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
3790 * dwarf2read.c (partial_die_info): Add dirname field.
3791 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
3792 (read_partial_die): Save away DW_AT_comp_dir.
3793 * defs.h (symtab_to_filename): Removed.
3794 * source.c (find_and_open_source): Added.
57c22c6c 3795 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
3796 (symtab_to_filename): Removed.
3797 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
3798 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
3799 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
3800 symtab_to_filename.
3801 * symtab.h (partial_symtab): Add dirname field.
3802 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
3803 (mi_cmd_file_list_exec_source_file): Call new function
3804 symtab_to_fullname to find fullname.
57c22c6c 3805 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 3806 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
3807 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
3808
9a1dd1ad
AC
38092004-06-10 Andrew Cagney <cagney@gnu.org>
3810
239ae8c7
AC
3811 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
3812 to generic_use_struct_convention, the default value.
3813
fc720350
AC
3814 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
3815 of abort.
3816
9a1dd1ad
AC
3817 * ns32k-tdep.c (ns32k_push_arguments): New function.
3818 (ns32k_gdbarch_init): Set deprecated_push_arguments.
3819 * infcall.c (call_function_by_hand): Call error instead of
3820 legacy_push_arguments.
3821 * value.h (legacy_push_arguments): Delete declaration.
3822 * valops.c (legacy_push_arguments): Delete function.
3823 (value_push): Delete function.
3824
fea25152
BF
38252004-06-10 Brian Ford <ford@vss.fsi.com>
3826
3827 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
3828 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
3829 info.
3830 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
3831
30a4a8e0
AC
38322004-06-10 Andrew Cagney <cagney@gnu.org>
3833
3834 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
3835 * gdbarch.h, gdbarch.c: Re-generate.
3836 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
3837 parameters.
3838 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
3839 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
3840 deprecated_pc_in_call_dummy instead of
3841 DEPRECATED_PC_IN_CALL_DUMMY.
3842 (arm_skip_prologue): Ditto.
3843 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
3844 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
3845 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
3846 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
3847 Ditto.
3848 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
3849 (sh64_init_extra_frame_info, sh64_get_saved_register)
3850 (sh64_pop_frame): Ditto.
3851 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
3852 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
3853 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
3854 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
3855 (h8300_pop_frame): Ditto.
3856 * blockframe.c (legacy_inside_entry_func)
3857 (legacy_frame_chain_valid): Ditto.
3858 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
3859 to deprecated_pc_in_call_dummy.
3860
81cfbe54
AC
38612004-06-09 Andrew Cagney <cagney@gnu.org>
3862
a1f4a1b6
AC
3863 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
3864 provide a default value.
3865 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
3866 * gdbarch.h, gdbarch.c: Re-generate.
3867 * arch-utils.c (generic_convert_register_p): Rename
3868 legacy_convert_register_p
3869 (legacy_register_to_value, legacy_value_to_register): Delete
3870 functions.
3871 * arch-utils.h (generic_convert_register_p): Rename
3872 legacy_convert_register_p.
3873 (legacy_register_to_value, legacy_value_to_register): Delete
3874 declarations.
3875
9730f241
AC
3876 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
3877 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
3878 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
3879 * gdbarch.h, gdbarch.c: Re-generate.
3880 * infcmd.c (default_print_registers_info): Simplify.
3881 * findvar.c (value_of_register): Simplify.
3882 * mi/mi-main.c (get_register): Simplify.
3883 * arch-utils.c (legacy_convert_register_p): Always return 0.
3884 (legacy_register_to_value, legacy_value_to_register): Always call
3885 internal_error.
3886
8a1bf479
AC
3887 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
3888 #ifdef CLEAR_INSN_CACHE code.
3889 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
3890 Delete #ifdef CLEAR_DEFERRED_STORES code.
3891
4b38d6f1
AC
3892 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
3893
2d62ecc7
AC
3894 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
3895 copyright.
3896 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
3897
be4f7469
AC
3898 * config/mips/mipsv4.mh: Delete file.
3899
81cfbe54
AC
3900 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
3901 unreferenced macro.
3902 (hpread_adjust_stack_address): Delete declaration.
3903
d966f0cb
AC
39042004-06-08 Andrew Cagney <cagney@gnu.org>
3905
3906 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
3907 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
3908 PTRACE_ATTACH / PTRACE_DETACH available call error.
3909 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
3910 * infttrace.c (update_thread_state_after_attach, attach, detach):
3911 Remove #ifdef wrappers.
3912 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
3913 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
3914 * config/nm-bsd.h (ATTACH_DETACH): Delete.
3915 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
3916 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
3917 * config/nm-linux.h (ATTACH_DETACH): Delete.
3918 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
3919 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
3920 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
3921 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
3922 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
3923
d91670b9
CV
39242004-06-08 Corinna Vinschen <vinschen@redhat.com>
3925
3926 * configure.in: Set $configdir to the right OS specific value.
3927 Use value when setting $tcldir and $tkdir.
3928 * configure: Regenerate.
3929
28ba0b33
PB
39302004-06-06 Paul Brook <paul@codesourcery.com>
3931
3932 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
3933 records.
3934
f26caa11
PH
39352004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
3936
3937 * ada-lang.c (lookup_symbol_in_language): New function to allow
3938 re-use of another language's symbol lookup code. (Placed here
3939 temporarily while Ada support is being integrated into the public
3940 tree).
3941 (restore_language): New auxiliary function for
3942 lookup_symbol_in_language.
3943 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
3944 temporarily while Ada support is being integrated into the public
3945 tree).
3946
d560a54b
AO
39472004-06-08 Alexandre Oliva <aoliva@redhat.com>
3948
e75d110c
AO
3949 * Makefile.in (check//%): New.
3950
d560a54b
AO
3951 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
3952 (mn10300_store_return_value): Rewrite.
3953 (mn10300_type_align): New.
3954 (mn10300_use_struct_convention): Rewrite.
3955 (mn10300_return_value): New, using all of the above.
3956 (mn10300_pop_frame_regular): Add saved_regs_size.
3957 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
3958
a72fbdb7
AO
3959 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
3960 regs if PC is on movm.
3961
01904826
JB
39622004-06-07 Jim Blandy <jimb@redhat.com>
3963
3964 Add native Linux support for the PowerPC E500.
3965 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
3966 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
3967 all architectures except the E500.
3968 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
3969 #definitions.
3970 (struct gdb_evrregset_t): New type.
3971 (have_ptrace_getsetevrregs): New variable.
3972 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
3973 fetch_spe_registers): New functions.
3974 (fetch_register): Call fetch_spe_register as appropriate.
3975 Assert that we're only passed raw register numbers.
3976 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
3977 Don't fetch gprs if they're pseudoregisters.
3978 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
3979 store_spe_registers): New functions.
3980 (store_register): Call store_spe_register as appropriate.
3981 Assert that we're only passed raw register numbers.
3982 (store_ppc_registers): Call store_spe_registers as appropriate.
3983 Don't store gprs if they're pseudoregisters.
3984
f90ef764
JJ
39852004-06-07 Jeff Johnston <jjohnstn@redhat.com>
3986
3987 * thread-db.c (thread_get_info_callback): Fill in the thread_info
3988 struct if one exists, even if we are dealing with a zombie thread.
3989
45b75230
AC
39902004-06-07 Andrew Cagney <cagney@gnu.org>
3991
3992 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
3993 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
3994 Rename PC_REQUIRES_RUN_BEFORE_USE.
3995 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
3996 #ifdef.
3997
1658da49
RC
39982004-06-07 Randolph Chung <tausq@debian.org>
3999
4000 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
4001 unwinding after sp has been saved to the stack but before the end
4002 of the prologue, and after the fp has been modified but before it has
4003 been saved to the stack.
4004 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
4005 Remove superfluous definitions.
4006 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
4007
9a727a3c
RC
40082004-06-07 Guy Martin <gmsoft@gentoo.org>
4009
4010 Committed by Randolph Chung.
4011 * hppa-linux-nat.c: Include the correct version of the header file
4012 depending on the kernel version.
4013
9e500012
RC
40142004-06-06 Randolph Chung <tausq@debian.org>
4015
4016 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
4017 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
4018
3388d7ff
RC
40192004-06-06 Randolph Chung <tausq@debian.org>
4020
4021 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
4022 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
4023 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
4024 * hppa-tdep.c (hppa_symbol_address): New function definition.
4025 * hppa-tdep.h (hppa_symbol_address): New function declaration.
4026
d49771ef
RC
40272004-06-06 Randolph Chung <tausq@debian.org>
4028
4029 * hppa-tdep.h (struct value): Forward declaration.
4030 (gdbarch_tdep): Define tdep find_global_pointer method.
4031 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
4032 associated with the function we are trying to call, and write it
4033 to the gp register.
4034 (hppa32_convert_from_funct_ptr_addr): New function.
4035 (hppa_find_global_pointer): New function.
4036 (hppa_gdbarch_init): Set default find_global_pointer method; set
4037 convert_from_func_ptr_addr method.
4038 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
4039 (hppa_linux_init_abi): Set find_global_pointer method.
4040 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
4041
7d9b040b
RC
40422004-06-06 Randolph Chung <tausq@debian.org>
4043
4044 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
4045 to struct value *function.
4046 * gdbarch.c: Regenerate.
4047 * gdbarch.h: Likewise.
4048 * infcall.c (call_function_by_hand): Pass entire function value
4049 to push_dummy_call.
4050
4051 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
4052 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
4053 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
4054 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
4055 * arm-tdep.c (arm_push_dummy_call): Likewise.
4056 * avr-tdep.c (avr_push_dummy_call): Likewise.
4057 * cris-tdep.c (cris_push_dummy_call): Likewise.
4058 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
4059 * frv-tdep.c (frv_push_dummy_call): Likewise.
4060 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
4061 * hppa-tdep.c (hppa32_push_dummy_call)
4062 (hppa64_push_dummy_call): Likewise.
4063 * i386-tdep.c (i386_push_dummy_call): Likewise.
4064 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
4065 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
4066 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
4067 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
4068 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
4069 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4070 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
4071 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
4072 (ppc64_sysv_abi_push_dummy_call): Likewise.
4073 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
4074 (ppc64_sysv_abi_push_dummy_call): Likewise.
4075 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4076 * s390-tdep.c (s390_push_dummy_call): Likewise.
4077 * sh-tdep.c (sh_push_dummy_call_fpu)
4078 (sh_push_dummy_call_nofpu): Likewise.
4079 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
4080 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
4081 * vax-tdep.c (vax_push_dummy_call): Likewise.
4082
4a19ea35
JB
40832004-06-04 Jim Blandy <jimb@redhat.com>
4084
8327ccee
JB
4085 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
4086 gdbarch argument to register_size.
4087
a3c001ce
JB
4088 * rs6000-tdep.c (rs6000_store_return_value): Use
4089 regcache_cooked_write_part instead of
4090 deprecated_write_register_bytes.
4091 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
4092 not gdbarch_deprecated_store_return_value.
4093
4a19ea35
JB
4094 * ppc-linux-nat.c (store_register, fetch_register): Remove
4095 incorrect assertions. Simplify and generalize handling of
4096 transfers whose sizes are not multiples of, or less than, sizeof
4097 (PTRACE_XFER_TYPE).
4098
b9b5d7ea
JJ
40992004-06-04 Jeff Johnston <jjohnstn@redhat.com>
4100
4101 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
4102 as a new thread event.
720c7d64 4103 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 4104 zombie, return TD_THR_ZOMBIE.
720c7d64 4105 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
4106 TD_THR_ZOMBIE, check if the thread is still on the thread list
4107 and return a -1 ptid if not found.
4108 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
4109 change the status to TARGET_WAITKIND_SPURIOUS.
4110
c8a3b559
CV
41112004-06-03 Corinna Vinschen <vinschen@redhat.com>
4112
4113 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
4114 double values in little endian mode.
4115
20605361
AC
41162004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
4117
4118 Committed by Andrew Cagney.
4119 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
4120 after last enum constant to avoid error from IBM C
4121 compiler.
4122
bc97b3ba
JB
41232004-06-02 Jim Blandy <jimb@redhat.com>
4124
4125 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
4126 to 'message', and make it local to the lone block that uses it.
4127
1da28ab0
JB
4128 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
4129
4c4b4cd2
PH
41302004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
4131
8a2225b2
PH
4132 * ada-exp.y: Update copyright notice.
4133 Include block.h.
4134
4135 Replace REGNAME, LAST, INTERNAL_VARIABLE with
4136 SPECIAL_VARIABLE and unify the treatment of these cases.
4137
4138 (write_attribute_call0): Remove.
4139 (write_attribute_call1): Remove.
4140 (write_attribute_calln): Remove.
4141 (save_qualifier): Add missing semicolon.
4142
4143 (simple_exp,exp): Decomment (i.e., reactivate) code that was
4144 temporarily disabled to allow compilation with FSF head version.
4145
4146 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
4147 use individual operators (OP_*) for all attributes.
4148 (exp syntax): Use write_int.
4149 Handle STRING literals with OP_STRING.
4150 (variable syntax): Add limit parameter to calls to
4151 write_object_renaming.
4152
4153 (temp_parse_space): New definition to hold entities that need
4154 only live until the next call to ada_parse.
4155 (string_to_operator): Rename fields of ada_opname_table entries.
4156
4157 (write_var_from_sym): Record block.
4158 (write_var_from_name): Minor reformatting.
4159 Make sure saved name is properly encoded in the case of multiple
4160 matches, and set its language to Ada.
4161 Update comment.
4162 Modify to indicate unresolved name as symbol in the UNRESOLVED
4163 namespace, allocated in temp_parse_space.
4164 (write_int): New function.
4165
4166 (write_object_renaming): Add max_depth parameter to limit
4167 chains of object renamings.
4168 Handle case where root of renaming expression is itself a renaming.
4169 Use temp_parse_space for temporary name buffer.
4170 Handle renamings to dereferenced pointers (___XEXA suffices).
4171
4172 (ada_parse, yyerror, string_to_operator,
4173 write_var_from_sym, write_var_from_name, write_attribute_call0,
4174 write_attribute_call1, write_attribute_calln,
4175 write_object_renaming): Protoize.
4176
4177 (_initialize_ada_exp): New function.
4178
4179 * ada-lang.c: Update copyright notice.
4180 General terminology change to conform to GNAT compiler usage:
4181 mangle => encode, demangle => decode
4182 Include gdb_obstack.h.
4183 Include gdb_regex.h
4184 Include frame.h
4185 Include hashtab.h
4186 Include completer.h
4187 Include gdb_stat.h
4188 Include block.h
4189 Include infcall.h
4190
4191 (ADA_RETAIN_DOTS): Make sure this is defined.
4192 (TRUNCATION_TOWARDS_ZERO): Define.
4193 (struct string_vector): Define.
4194 (unresolved_names): Remove definition.
4195 (xnew_string_vector): New function.
4196 (string_vector_append): New function.
4197 (extract_string): Make static.
4198 (ada_unqualified_name): New function.
4199 (add_angle_brackets): New function.
4200 (function_name_from_pc): New function.
4201 (place_on_stack): Rename to ensure_lval.
4202
4203 (ensure_lval): Renamed from place_on_stack.
4204 Make identity on lvals.
4205 Update comment.
4206 (is_nonfunction): New interface.
4207 Only symbols in LOC_CONST class can be enumerals.
4208 (fill_in_ada_prototype): Remove; now independent of language.
4209 (add_defn_to_vec): Add obstack and symtab arguments.
4210 Use obstack to hold collected definitions.
4211 (num_defns_collected): New function.
4212 (defns_collected): New function.
4213 (ada_resolve_subexp): Rename to resolve_subexp.
4214 (resolve_subexp): Renamed from ada_resolve_subexp.
4215 (ada_op_name): Return non-const result.
4216 (ada_decoded_op_name): Renamed from ada_op_name, now used for
4217 other purposes.
4218
4219 (to_fixed_array_type): Add declaration.
4220 (coerce_unspec_val_to_type): Remove offset parameter.
4221 (find_sal_from_funcs_and_line): New interface.
4222 (find_line_in_linetable): Ditto.
4223
4224 (all_sals_for_line): Rename to ada_sals_for_line and make
4225 global.
4226 Add new parameter. When set, do not ask the user to choose the
4227 instance, but use the first one found instead.
4228 Use given line number in returned sals.
4229 Fix comment.
4230 Skip the prologue if funfirstline is set.
4231 Correct for memory leak when 0 lines found.
4232
4233 (value_pos_atr): Use pos_atr.
4234 (pos_atr): New function.
4235 (standard_lookup): Add block parameter.
4236
4237 (makeTimeStart): Remove declaration and uses.
4238 (makeTimeStop): Remove declaration and uses.
4239
4240 (ada_completer_word_break_characters): Allow for VMS.
4241 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
4242 (raise_sym_name): New constant.
4243 (raise_unhandled_sym_name): New constant.
4244 (raise_assert_sym_name): New constant.
4245 (process_raise_exception_name): New constant.
4246 (longest_exception_template): New constant.
4247 (warning_limit): New variable to limit warnings during expression
4248 evaluation.
4249 (warnings_issued): New variable to keep track of warnings issued.
4250 (known_runtime_file_name_patterns): New constant.
4251 (known_auxiliary_function_name_patterns): New constant.
4252 (symbol_list_obstack): New variable.
4253
4254 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
4255 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
4256 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
4257 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
4258 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
4259 ada_variant_discrim_name, field_alignment, dynamic_template_type,
4260 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
4261 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
4262 and strcmp.
4263
4264 (ada_get_field_index): New function.
4265 (lim_warning): New function.
4266 (ada_translate_error_message): New function.
4267 (MAX_OF_SIZE): New function.
4268 (MIN_OF_SIZE): New function.
4269 (UMAX_OF_SIZE): New function.
4270 (UMIN_OF_SIZE): New function.
4271 (discrete_type_high_bound): New function.
4272 (discrete_type_low_bound): New function.
4273 (base_type): New function.
4274 (do_command): Remove.
4275
4276 (ada_update_initial_language): Use language_ada, not language_unknown.
4277 (ada_encode): Renamed from ada_mangle.
4278 Obey ADA_RETAIN_DOTS.
4279 (ada_decode): Renamed from ada_demangle.
4280 Update coding conventions.
4281 (decoded_names_store): New hash table.
4282 (ada_decode_symbol): New function.
4283 (ada_la_decode): New function.
4284
4285 (modify_general_field): Correct computations of offset and bit
4286 position.
4287 (desc_base_type): Handle ref types, too.
4288 (ada_is_direct_array_type): New function.
4289
4290 (ada_is_simple_array): Rename to ada_is_simple_array_type.
4291 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
4292 (ada_is_bogus_array_descriptor,ada_type_of_array,
4293 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
4294 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
4295 ada_is_array_descriptor_type.
4296
4297 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
4298 (ada_is_packed_array_type): Handle pointers or
4299 references to packed arrays as well.
4300 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
4301 (decode_packed_array_type): Search for the packed array type
4302 symbol in the currently selected block and associated
4303 superblocks too.
4304 Use lookup_symbol again.
4305
4306 (decode_packed_array): Handle pointers and references.
4307 Update call to coerce_unspec_val_to_type.
4308 (decode_packed_array_type,value_subscript_packed): Limit warnings.
4309 (ada_value_primitive_packed_val): Improve comment.
4310
4311 (ada_index_type): Substitute int type for "undefined".
4312 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
4313 ada_array_langth, ada_is_string_type): Use renamed
4314 ada_is_simple_array_type.
4315 (empty_array): New function.
4316
4317 (ada_resolve): Rename to resolve.
4318 (resolve): Make static.
4319 Call renamed resolve_subexp.
4320 Update comment.
4321 (ada_resolve_subexp): Rename to resolve_subexp.
4322 (resolve_subexp): Update comment.
4323 Decomment disabled code.
4324 Add LOC_COMPUTED* cases.
4325 Modify to use temporary struct symbols (marked as being in
4326 UNDEF_NAMESPACE) to indicate unresolved names, instead of
4327 OP_UNRESOLVED_VALUE.
4328 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
4329 Add OP_STRING case.
4330 Remove OP_ARRAY.
4331 Use SYMBOL_PRINT_NAME instead of ada_demangle.
4332 Use new ada_lookup_symbol_list interface.
4333 Use new ada_resolve_function interface.
4334 Remove OP_TYPE case.
4335
4336 (ada_args_match): Idiot proof against null actuals.
4337 Use intermediate variables to clarify.
4338 (ada_resolve_function): Update comment and interface.
4339 (mangled_ordered_before): Rename to encoded_ordered_before and
4340 update comment.
4341 (sort_choices): Update comment and interface.
4342 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
4343 (user_select_syms): New interface.
4344 Use new sort_choices interface.
4345 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
4346 (possible_user_operator_p): Idiot-proof against null values.
4347 (ada_simple_renamed_entity): Don't make cleanup; rely on
4348 caller to free result string.
4349 Remove const from return type.
4350 (make_array_descriptor): Rename uses of place_on_stack to
4351 ensure_lval.
4352 Make sure that arrays are on stack.
4353
4354 (HASH_SIZE): Define.
4355 (struct cache_entry): Define.
4356 (cache_space): Define.
4357 (cache): Define.
4358 (clear_ada_sym_cache): New function.
4359 (find_entry): New function.
4360 (lookup_cached_symbol): New function.
4361 (defn_vector_size): Define.
4362 (cache_symbol): New function.
4363 (defn_symbols): Remove.
4364
4365 (standard_lookup): Use lookup_symbol_in_language to get effect of
4366 C lookup.
4367 Cache results.
4368
4369 (symbol_completion_match): New function.
4370 (symbol_completion_add): New function.
4371 (ada_make_symbol_completion_list): New function.
4372
4373 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
4374 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
4375 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
4376 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
4377
4378 (ada_lookup_simple_minsym): New function.
4379 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
4380
4381 (add_symbols_from_enclosing_procs): New interface.
4382 Conditionalize more helpfully.
4383 Don't bother if program isn't running.
4384 Use new interface to get_frame_block.
4385 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
4386
4387 (remove_extra_symbols): New interface.
4388 (xget_renaming_scope): New function.
4389 (is_package_name): New function.
4390 (renaming_is_visible): New function.
4391 (remove_out_of_scope_renamings): New function.
4392
4393 (ada_lookup_symbol_list): New interface.
4394 Properly reinitialize the symbol list obstack.
4395 Don't call add_symbols_from_enclosing_procs if we start from a
4396 static or global block.
4397 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
4398 add_symbols_from_enclosing_procs.
4399 Add symtab data to cached entries.
4400 Handle symbols prefixed with
4401 "standard__" specially; strip prefix and don't look in local symbols.
4402 Do not include out of scope renaming symbols in list of
4403 symbols returned.
4404 Add const to block parameter.
4405 Move check for non-local, non-global symbols earlier.
4406 Remove timing stuff.
4407 (ada_lookup_symbol): New interface.
4408 Find symtab as well.
4409 (ada_lookup_symbol_nonlocal): New function.
4410
4411 (is_name_suffix): Enhance suffix detection to recognize
4412 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
4413 (is_dot_digits_suffix): New function.
4414 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
4415
4416 (ada_add_block_symbols): New interface. Use obstack to return results
4417 in a vector of struct ada_symbol_infos. Add symtab argument.
4418 Use new interface to add_defn_to_vec.
4419 Remove calls to fill_in_ada_prototype.
4420 Use BLOCK_BUCKETS, BLOCK_BUCKET.
4421
4422 (ada_finish_decode_line_1): Add const qualification to local to fix
4423 warning.
4424 Start looking in static block for functions to avoid attempts
4425 to search frame chain for up-level variables.
4426 Adapt to new ada_sals_for_line interface.
4427 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
4428 Handle quoting of the function name inside the spec string.
4429 Skip prologue when funfirstline is set and update the
4430 function documentation to that effect.
4431
4432 (debug_print_lines, debug_print_block, debug_print_blocks,
4433 debug_print_symtab): Remove.
4434
4435 (ada_main_name): New function.
4436 (ada_exception_breakpoint_type): New function.
4437 (is_known_support_routine): New function.
4438 (ada_find_printable_frame): Renamed from find_printable_frame and made
4439 global.
4440 Remove level parameter.
4441 Use new interface to select_frame.
4442
4443 (begin_command): Remove.
4444 (ada_adjust_exception_stop): New function.
4445 (ada_print_exception_stop): New function.
4446 (exception_name_from_cond): New function.
4447 (ada_report_exception_break): Replace disabled code with
4448 conditionalization on GNAT_GDB.
4449 Get the exception name from the condition string.
4450 Remove and move functionality into new functions
4451 ada_print_exception_breakpoint_task and
4452 ada_print_exception_breakpoint_nontask.
4453 (error_breakpoint_runtime_sym_not_found): New function.
4454 (is_runtime_sym_defined): New function.
4455 (ada_breakpoint_rewrite): Uncomment suppressed code.
4456 Use symbolic error-message and runtime-symbol names.
4457 Surround runtime symbol names in quotes.
4458 Allow non-specific breakpoints on exceptions and assertions before
4459 program starts.
4460
4461 (ada_is_tagged_type): Add parameter.
4462 (ada_is_tag_type): New function.
4463 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
4464 (ada_variant_discrim_type): Ditto.
4465 (value_tag_from_contents_and_address): New function.
4466 (type_from_tag): New function.
4467 (struct tag_args): New structure used to communicate with
4468 ada_tag_name_1.
4469 (ada_tag_name_1): New function.
4470 (ada_tag_name): New function.
4471
4472 (ada_scan_number): Update comment.
4473 (find_struct_field): New function.
4474 (ada_search_struct_field): Make static.
4475 (ada_value_struct_elt): New version that returns references when
4476 given pointers or references to structs.
4477 (ada_lookup_struct_elt_type): Add 'refok' parameter.
4478 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
4479 interface.
4480 (ada_value_ind): Use new ada_to_fixed_value interface.
4481 (ada_coerce_ref): Ditto.
4482 (field_offset): Remove.
4483
4484 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
4485 (ada_find_renaming_symbol): New function.
4486 (ada_prefer_type): Prefer named types over unnamed ones.
4487 (variant_field_index): New function.
4488 (contains_variant_part): Removed: subsumed by variant_field_index.
4489 (ada_template_to_fixed_record_type): New function, mostly from
4490 template_to_fixed_record_type.
4491 (template_to_fixed_record_type):
4492 Do not scan the type fields beyond the last one; prevents a
4493 potential SEGV.
4494 Handle case where variant field is listed BEFORE discriminant it
4495 depends on.
4496 Fix calculation of record length when bit length is
4497 not evenly divisible by char length.
4498 Move code to ada_template_to_fixed_record_type and call it.
4499
4500 (template_to_static_fixed_type): Revise comment.
4501 Modify to work on ordinary record types as well as templates,
4502 so as to handle fields that use ___XVE or ___XVU encodings.
4503 (to_record_with_fixed_variant_part): Fill out comment.
4504 Initialize C++ stuff in right type.
4505 Allow case where DVAL is null.
4506 Handle case where variant field is not last.
4507 Fix typo concerning record length.
4508 (to_fixed_record_type): Decomment disabled code.
4509 (to_fixed_record_type): Use variant_field_index instead of
4510 contains_variant_part.
4511 (to_fixed_variant_branch_type): Ditto.
4512 (to_fixed_array_type): Decomment disabled code.
4513 (ada_to_fixed_type): Convert tagged types to the specific type.
4514 Deactivate the size-check for array types in order to avoid
4515 some false size alarms.
4516 (to_static_fixed_type): Decomment disabled code.
4517 Modify to call template_to_static_fixed_type
4518 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
4519 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
4520 Remove valaddr argument, as it is never really used.
4521 (ada_to_fixed_value): Change interface to act on single struct value*
4522 operand.
4523 (adjust_pc_past_prologue): New function.
4524 (ada_attribute_name): Modify to take enum exp_opcode argument.
4525
4526 (ada_enum_name): Recognize new homonym-distinguishing convention.
4527 Adjust local variable's type to remove compiler warning.
4528 Fix a small problem in the part that unqualifies the enumeration name.
4529 (ada_value_binop): New function.
4530 (ada_value_equal): New function.
4531
4532 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
4533 Don't give error message when not doing normal evaluation
4534 and a tagged type doesn't seem to contain a structure member.
4535 Give error message for packed arrays.
4536 For indexing arrays, handle pointers to packed arrays correctly.
4537 Handle case of 'first and 'last attributes of bare integral type
4538 without encoded subtype info.
4539 Remove some unnecessary casts.
4540 Fix uninitialized value of type in computing 'first, 'last, or 'length
4541 of array object.
4542 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
4543 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
4544 calls.
4545 Attributes are now exp_opcode values.
4546 Correct treatment of 'modulus.
4547 Better error message for taking 'length of wrong kind of type;
4548 improve comment.
4549 Change EVAL_NORMAL to noside for consistency.
4550 Use ada_value_binop for DIV, MOD, REM.
4551 Make special case out of array of length 0, since an argument
4552 of 0 upsets some platforms' malloc.
4553 Use OP_STRING instead of OP_ARRAY.
4554 For slice, add check that we have an array type before extracting
4555 a slice out of it. Avoids a SEGV.
4556 When evaluating an array slice, if the array type is a reference to
4557 an aligner type, then replace the aligner type by the actual type.
4558 Decomment disabled code.
4559 Remove some dead code.
4560 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
4561 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
4562 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
4563 and UNOP_MBR to UNOP_IN_RANGE.
4564 If an array type has a parallel ___XVE type, then use it.
4565 Turn arrays into pointers for lvalue arrays.
4566 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
4567 bounds error and handle 0-length slices.
4568 Use lim_warning.
4569 When selecting fields, apply ada_to_fixed_value (because the fields
4570 might have ___XVU or ___XVE encodings even if not dynamic.)
4571 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
4572 (ada_is_system_address_type): New function.
4573
4574 (get_var_value): Use new interface to ada_lookup_symbol_list.
4575 (get_int_var_value): New interface.
4576 (to_fixed_range_type): Allow unknown bound, with warning.
4577 (ada_is_modular_type): Decomment disabled code.
4578 (ADA_OPERATORS): New definition.
4579 (ada_operator_length): New function.
4580 (ada_expr_op_name): New function.
4581 (ada_forward_operator_length): New function.
4582 (ada_dump_subexp_body): New function.
4583 (ada_print_subexp): New function.
4584 (ada_exp_descriptor): New constant.
4585 (ada_op_print_tab): Add 'size. Remove FIXMEs.
4586 (ada_language_defn): Add ada_exp_descriptor entry.
4587 Change ada_parse => parse.
4588 Add post-parser entry.
4589 Use ada-specific non-local symbol lookup.
4590 Don't use C-style arrays.
4591 String lower-bound is 1.
4592 Decomment disabled code.
4593 (parse): New function.
4594 New fields ada_translate_error_message, ada_lookup_symbol,
4595 ada_lookup_minimal_symbol.
4596
4597 * ada-lang.h: Update copyright dates.
4598 Replace the mangle/demangle terminology throughout by the
4599 more appropriate encode/decode one.
4600 Include breakpoint.h.
4601 Forward declare struct partial_symbol, struct block.
4602 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
4603 (EXTRACT_ADDRESS): Remove.
4604 (EXTRACT_INT): Remove.
4605 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
4606 (MAX_ENCLOSING_FRAME_LEVELS): Define.
4607 (MAX_RENAMING_CHAIN_LENGTH): Define.
4608 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
4609
4610 (enum task_states): Remove.
4611 ada_task_states: Remove.
4612 (fat_string): Remove.
4613 (struct entry_call): Remove.
4614 (struct task_fields): Remove.
4615 (struct task_entry): Remove.
4616
4617 (struct ada_symbol_info): Define.
4618 (enum ada_attribute): Remove.
4619 (enum ada_operator): Define.
4620
4621 (ada_get_field_index): Declare.
4622 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
4623 (ada_is_simple_array): Rename to ada_is_simple_array_type.
4624 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
4625 (ada_lookup_symbol_list): New interface.
4626 (ada_decode_symbol): Declare.
4627 (ada_decode): Declare.
4628 (ada_lookup_symbol): New interface.
4629 (ada_update_initial_language): Declare.
4630 (ada_lookup_simple_minsym): Declare.
4631 (user_select_syms): New interface.
4632 (ada_sals_for_line): Declare.
4633 (ada_is_tagged_type): New interface.
4634 (ada_tag_name): Declare.
4635 (ada_lookup_struct_elt_type): Remove declaration.
4636 (ada_search_struct_field): Remove declaration.
4637 (ada_attribute_name): New interface.
4638 (ada_is_system_address_type): Declare.
4639 (ada_to_fixed_value): Remove declaration.
4640 (ada_template_to_fixed_record_type_1): Declare.
4641 (get_int_var_value): New interface.
4642 (ada_find_any_symbol): Declare.
4643 (ada_find_renaming_symbol): Declare.
4644 (ada_mangle): Rename to ada_encode.
4645 (ada_simple_renamed_entity): Remove const.
4646 (ada_main_name): Declare.
4647 (get_current_task): Rename to ada_get_current_task.
4648 (get_entry_number): Remove declaration.
4649 (ada_report_exception_break): Remove declaration.
4650 (ada_print_exception_breakpoint_nontask): Declare.
4651 (ada_print_exception_breakpoint_task): Declare.
4652 (ada_find_printable_frame): Declare.
4653
4654 * ada-lex.l: Update copyright notices.
4655 Use xmalloc and xfree instead of malloc and free.
4656 Use new interface to name_lookup.
4657 Use new interface to
4658 ada_mangle=>ada_encode.
4659 Redo handling of '$...' variable to parallel current treatment
4660 in c-exp.y.
4661 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
4662 digit_to_int, strtoulst, processInt, processReal, processId,
4663 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
4664 yywrap): Protoize.
4665
4666 (processInt): Use cast to remove harmless warning.
4667 (processReal): Modify to get rid of compiler warning on scan formats.
4668
4669 (processId): Replace xmalloc with obstack_alloc for name and remove
4670 call to ada_name_string_cleanup.
4671 Remove obsolete disabled code.
4672 (name_lookup): Ditto.
4673 New interface.
4674 Use obsavestring on temp_parse_space instead of savestring
4675 on name, and remove call to ada_name_string_cleanup.
4676 Free string returned from ada_simple_renamed_entity.
4677 Use new interface to ada_lookup_symbol_list.
4678 Decomment disabled code.
4679 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
4680 not types.
4681 When a type name lookup succeeds as a result of
4682 lookup_primitive_typename, check for regular type entry that has not
4683 yet been read in.
4684 Limit length of chain of renamed symbols we are willing to follow.
4685 Do not break names beginning with "standard__" into segments.
4686 (block_lookup): Use new interface to ada_lookup_symbol_list.
4687
4688 * ada-typeprint.c: Update copyright notice.
4689 (demangled_type_name): Rename to decoded_type_name.
4690 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
4691 (print_range_bound): Correct handling of negative
4692 bounds that make the index type looked unsigned under STABS.
4693 (print_dynamic_range_bound): Use new interface to get_int_var_value.
4694 (print_range_type_named): Use the builtin int type if no type
4695 corresponding to the given type name could be found.
4696 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
4697 Add some bullet-proofing.
4698 (print_variant_clauses): Allow for variant branches with ___XVU
4699 encodings that are not dynamic fields.
4700 Use new interface to ada_is_tagged_type.
4701 (print_record_type): Allow for fields with ___XVE encodings that
4702 are not dynamic fields.
4703 Use new interface to ada_is_tagged_type.
4704 (ada_print_type): ada_is_array_descriptor =>
4705 ada_is_array_descriptor_type.
4706
4707 * ada-valprint.c: Update copyright notice.
4708 Include gdb_string.h
4709 Include infcall.h
4710 (ui_memcpy): New function.
4711 (ada_print_floating): New function.
4712 (ada_print_str): Order arguments correctly.
4713 Correct handling of empty arrays and arrays of 0-length items.
4714 ada_is_array_descriptor => ada_is_array_descriptor_type
4715 Print values of type System.Address in hexadecimal format.
4716 Use ada_print_floating to print floating-point numbers in Ada format.
4717 Print class tag values with type names.
4718 No longer print the address of reference values. Avoids
4719 a potential confusion.
4720 (ada_value_print): Stop printing the object type for reference
4721 values, but preserve that behavior for access types. Avoids
4722 a potential confusion.
4723 Simplify one conditional expression, as the first part is now
4724 necessarily true.
4725 ada_is_array_descriptor => ada_is_array_descriptor_type
4726 Add check for arrays for null records, and print them by hand.
4c4b4cd2 4727
f65f91b5
JB
47282004-06-01 Jim Blandy <jimb@redhat.com>
4729
4730 * ppc-tdep.h: Delete unused 'regoff' member.
4731 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
4732
d4687fa0
MC
47332004-06-01 Michael Chastain <mec.gnu@mindspring.com>
4734
4735 Fix PR symtab/1661.
4736 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
4737 (hpread_read_struct_type): Likewise.
4738
de169ec9
AC
47392004-06-01 Andrew Cagney <cagney@gnu.org>
4740
c6902d46
AC
4741 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
4742 instead of xasprintf.
4743 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
4744 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
4745 (mi_cmd_data_list_register_names)
4746 (mi_cmd_data_list_changed_registers)
4747 (mi_cmd_data_list_register_values)
4748 (get_register, mi_cmd_data_write_register_values)
4749 (mi_cmd_data_write_register_values)
4750 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
4751 (mi_cmd_target_download, mi_cmd_target_select)
4752 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
4753 (mi_execute_cli_command, mi_execute_async_cli_command)
4754 (mi_execute_async_cli_command): Ditto.
4755 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
4756 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
4757
6085fc2d
AC
4758 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
4759 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
4760 error_last_message instead of mi_error_last_message.
4761 * mi/mi-main.c (mi_error_last_message): Delete function.
4762
de169ec9
AC
4763 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
4764 "invalid number of columns" error. Delete redundant "out of
4765 memory" check.
4766
1fc7d519
MK
47672004-05-31 Mark Kettenis <kettenis@gnu.org>
4768
6cfb2041
MK
4769 * i386bsd-nat.c: Don't include <sys/procfs.h>.
4770 (gregset_t, fpregset_t): Remove typedefs.
4771 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
4772 (REG_OFFSET): Rename argument.
4773 (i386bsd_r_reg_offset): Rename from reg_offset.
4774 (REG_ADDR): Remove macro.
4775 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
4776 functions.
4777 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
4778 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
4779 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
4780 instead of supply_gregset.
4781 (store_inferior_registers): Use `struct reg' and `struct fpreg'
4782 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
4783 instead of fill_gregset.
4784 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
4785
1fc7d519
MK
4786 * i386bsd-nat.c: Don't include "gregset.h".
4787 (supply_gregset, fill_gregset): Make static.
4788 (supply_fpregset, fill_fpregset): Remove.
4789 * Makefile.in (i386bsd-nat.o): Update dependencies.
4790
2c34abbe
MK
47912004-05-30 Mark Kettenis <kettenis@gnu.org>
4792
448724fb
MK
4793 * fbsd-proc.c: Include "regcache.h", "regset.h" and
4794 "gdb_assert.h". Con't include "gregset.h".
4795 (fbsd_make_corefile_notes): Use regset-based core file support
4796 instead off fill_gregset and fill_fpregset.
4797 * Makefile.in (fbsd-proc.o): Update dependencies.
4798
5ca8ca7c
MK
4799 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
4800 instructions.
4801 (m88k_frame_prev_register): Simplify code a bit.
4802
593adc23
MK
4803 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
4804 (amd64_collect_fpregset): New function.
4805 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
4806
8d1b517b
MK
4807 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
4808
7fdafb5a
MK
4809 * i386-tdep.c (i386_supply_gregset): Adjust comment.
4810 (i386_collect_gregset): New function.
4811 (i386_supply_fpregset): Adjust comment.
4812 (i386_collect_fpregset): New function.
4813 (i386_regset_from_core_section): Use i386_collect_gregset and
4814 i386_collect_fpregset.
4815
8693c419
MK
4816 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
4817 handle VALUEP being null.
4818
2c34abbe
MK
4819 * regset.h (collect_regset_ftype): Unconstify fourth argument.
4820
45d134d8
MK
48212004-05-29 Mark Kettenis <kettenis@gnu.org>
4822
1698f4e7
MK
4823 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
4824
45d134d8
MK
4825 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
4826 assembler in OpenBSD 3.5-current.
4827 (amd64obsd_sigcontext_addr): Likewise.
4828
691d145a
JB
48292004-05-28 Jim Blandy <jimb@redhat.com>
4830
4831 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
4832 register set, so our regcache isn't declared "legacy" and our E500
4833 pseudoregister read and write functions aren't ignored.
4834 (rs6000_register_byte, rs6000_register_raw_size,
4835 rs6000_register_virtual_type, rs6000_register_convertible,
4836 rs6000_register_convert_to_virtual,
4837 rs6000_register_convert_to_raw): Deleted.
4838 (rs6000_register_type, rs6000_convert_register_p,
4839 rs6000_register_to_value, rs6000_value_to_register): New
4840 functions.
4841 (rs6000_gdbarch_init): Don't register
4842 gdbarch_deprecated_register_size,
4843 gdbarch_deprecated_register_bytes,
4844 gdbarch_deprecated_register_byte,
4845 gdbarch_deprecated_register_raw_size,
4846 gdbarch_deprecated_register_virtual_type,
4847 gdbarch_deprecated_register_convertible,
4848 gdbarch_deprecated_register_convert_to_virtual, or
4849 gdbarch_deprecated_register_convert_to_raw methods. Instead,
4850 register gdbarch_register_type, gdbarch_convert_register_p,
4851 gdbarch_register_to_value, and gdbarch_value_to_register methods.
4852
18ed0c4e
JB
48532004-05-26 Jim Blandy <jimb@redhat.com>
4854
4855 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
4856 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
4857 functions, updated to match the register numberings used in GCC.
4858 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
4859 rs6000_dwarf2_reg_to_regnum as register number conversions
4860 functions for STABS and Dwarf2.
4861
779af9e3
RC
48622004-05-26 Randolph Chung <tausq@debian.org>
4863
4864 * infttrace.h (target_waitkind): Forward declare type instead of pulling
4865 in header file.
4866
c23968a2
JB
48672004-05-25 Joel Brobecker <brobecker@gnat.com>
4868
4869 * NEWS: Document new "start" command.
4870
3a7d1c27
RC
48712004-05-25 Randolph Chung <tausq@debian.org>
4872
4873 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
4874 hppa-linux.
4875
43613416
RC
48762004-05-25 Randolph Chung <tausq@debian.org>
4877
4878 * hppa-hpux-tdep.c (offsetof): Define.
4879 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
4880 (hppa32_hpux_frame_base_before_sigtramp)
4881 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
4882 (hppa64_hpux_frame_saved_pc_in_sigtramp)
4883 (hppa64_hpux_frame_base_before_sigtramp)
4884 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
4885 functions.
4886 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
4887 (hppa_hpux_sigtramp_frame_unwind_cache)
4888 (hppa_hpux_sigtramp_frame_this_id)
4889 (hppa_hpux_sigtramp_frame_prev_register)
4890 (hppa_hpux_sigtramp_frame_unwind)
4891 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
4892 (hppa_hpux_init_abi): Register sigtramp unwinder.
4893 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
4894
6d1be3f1
RC
48952004-05-25 Randolph Chung <tausq@debian.org>
4896
4897 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
4898 and multiple stack unwinds.
4899 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
4900
97c34f65
AC
49012004-05-25 Andrew Cagney <cagney@gnu.org>
4902
4903 * symfile.h (symbol_file_add_from_memory): Delete declaration.
4904 * symfile-mem.h: Delete file.
4905 * symfile-mem.c: Do not include "symfile-mem.h".
4906 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
4907 "struct bfd_section". When an error do not bother returning NULL.
4908 (add_symbol_file_from_memory_command): Use "struct bfd" and
4909 "struct bfd_section".
4910 * Makefile.in (symfile_mem_h): Delete.
4911 (symfile-mem.o): Update dependencies.
4912
e23cbd82
NR
49132004-05-25 Nick Roberts <nickrob@gnu.org>
4914
4915 * gdb-mi.el: New file.
4916
20d2ca3e
AC
49172004-05-25 Andrew Cagney <cagney@gnu.org>
4918
4919 * inftarg.c: Include "observer.h".
4920 (child_attach, child_create_inferior): Notify inferior_created.
4921 * corelow.c: Include "observer.h".
4922 (core_open): Notify inferior_created.
4923 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
4924
c27cda74
AC
49252004-05-25 Andrew Cagney <cagney@gnu.org>
4926
4927 * target.h (struct target_ops): Add from_tty to
4928 to_create_inferior.
4929 (target_create_inferior, find_default_create_inferior): Update.
4930 * infcmd.c (run_command): Update.
4931 * wince.c (child_create_inferior): Update.
4932 * win32-nat.c (child_create_inferior): Update.
4933 * uw-thread.c (uw_thread_create_inferior): Update.
4934 * thread-db.c (thread_db_create_inferior): Update.
4935 * target.c (debug_to_create_inferior)
4936 (find_default_create_inferior): Update.
4937 (maybe_kill_then_create_inferior): Update.
4938 * sol-thread.c (sol_thread_create_inferior): Update.
4939 * remote.c (extended_remote_async_create_inferior)
4940 (extended_remote_create_inferior): Update.
4941 * remote-vx.c (vx_create_inferior): Update.
4942 * remote-st.c (st2000_create_inferior): Update.
4943 * remote-sim.c (gdbsim_create_inferior): Update.
4944 * remote-sds.c (sds_create_inferior): Update.
4945 * remote-rdp.c (remote_rdp_create_inferior): Update.
4946 * remote-rdi.c (arm_rdi_create_inferior): Update.
4947 * remote-m32r-sdi.c (m32r_create_inferior): Update.
4948 * remote-e7000.c (e7000_create_inferior): Update.
4949 * procfs.c (procfs_create_inferior): Update.
4950 * ocd.c (ocd_create_inferior): Update.
4951 * ocd.h (ocd_create_inferior): Update.
4952 * nto-procfs.c (procfs_create_inferior): Update.
4953 * monitor.c (monitor_create_inferior): Update.
4954 * lin-lwp.c (lin_lwp_create_inferior): Update.
4955 * inftarg.c (child_create_inferior): Update.
4956 * hpux-thread.c (hpux_thread_create_inferior): Update.
4957 * gnu-nat.c (gnu_create_inferior): Update.
4958
1db2a798
AC
49592004-05-25 Andrew Cagney <cagney@gnu.com>
4960
4961 * MAINTAINERS: Update e-mail address.
4962
007d08bb
RC
49632004-05-24 Randolph Chung <tausq@debian.org>
4964
4965 * thread.c (info_threads_command, thread_apply_all_command)
4966 (thread_apply_command, thread_command, do_captured_thread_select):
4967 Remove HPUXHPPA-specific code.
4968
69e7b95e
RC
49692004-05-24 Randolph Chung <tausq@debian.org>
4970
4971 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
4972 unused symbols.
4973 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
4974 references.
4975
a4d5f2e0
JB
49762004-05-24 Joel Brobecker <brobecker@gnat.com>
4977
4978 * infcmd.c (kill_if_already_running): New function, extracted
4979 from run_command().
4980 (run_command): Replace extracted code by call to
4981 kill_if_already_running().
4982 (start_command): New function.
4983 (_initialize_infcmd): Add "start" command.
4984
bf2ca189
MK
49852004-05-24 Mark Kettenis <kettenis@gnu.org>
4986
4987 Add OpenBSD/m88k support.
4988 * NEWS (New native configurations): Mention OpenBSD/m88k.
4989 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
4990 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
4991 * Makefile.in (m88k_tdep_h): New variable.
4992 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
4993 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
4994 * configure.host: Add m88*-*-openbsd*.
4995 * configure.tgt: Add m88*-*-openbsd*.
4996
80fadb11
JB
49972004-05-24 Jim Blandy <jimb@redhat.com>
4998
4999 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
5000 to approve changes.
5001
19e2d14b
KB
50022004-05-24 Kevin Buettner <kevinb@redhat.com>
5003
5004 * symtab.c (fixup_section): Search section table when lookup by
5005 name fails.
5006
1b07b470
RC
50072004-05-24 Randolph Chung <tausq@debian.org>
5008
5009 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
5010 be "small_struct".
5011
368702b1
MK
50122004-05-24 Mark Kettenis <kettenis@gnu.org>
5013
5df97fde
MK
5014 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
5015 register number in regcache_raw_collect call.
5016 (m68kbsd_collect_fpregset): Likewise.
5017 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
5018
368702b1
MK
5019 * regset.h (struct regset): Add back `regset' member.
5020
a770d4ec
MK
50212004-05-23 Mark Kettenis <kettenis@gnu.org>
5022
70f9f479
MK
5023 * configure.in: Check for td_pcb in `struct thread'.
5024 * configure, config.in: Regenerated.
5025
2e16d79e
MK
5026 * dpx2-nat.c: Remove file.
5027 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
5028 (dpx2-nat.o): Remove dependencies.
5029
492cf391
MK
5030 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
5031 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
5032 (amd64obsd_supply_pcb): New function.
5033 (_initialize_amd64obsd_nat): Enable libkvm interface.
5034 * Makefile.in (amd64obsd-nat.o): Update dependencies.
5035 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
5036 (LOADLIBES): New variable.
5037
a770d4ec
MK
5038 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
5039 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
5040 (sparc32nbsd_supply_pcb): New function.
5041 (_initialize_sparcnbsd_nat): Enable libkvm interface.
5042 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
5043 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5044 (LOADLIBES): New variable.
5045
9ea75c57
MK
50462004-05-22 Mark Kettenis <kettenis@gnu.org>
5047
2e0c3539
MK
5048 * bsd-kvm.c, bsd-kvm.h: New files.
5049 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5050 "bsd-kvm.h".
5051 (i386fbsd_supply_pcb): New function.
5052 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
5053 (i386fbsd-nat.o): Update dependencies.
5054 (bsd_kvm_h): New variable.
5055 (bsd-kvm.o): New dependency.
5056 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
5057 (LOADLIBES): New variable.
5058
9ea75c57
MK
5059 * regset.c: Tweak comment.
5060 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
5061 macro.
5062 * regset.h: Update copyright year.
5063 (struct regset): Remove `descr' member, add `gdbarch' member.
5064 (regset_alloc): Adjust prototype and comment.
5065 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
5066 (i386_supply_fpregset): Likewise.
5067 (i386_regset_from_core_section): Update call to regset_alloc.
5068 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
5069 REGSET->arch.
5070 (i386obsd_aout_regset_from_core_section): Update call to
5071 regset_alloc.
5072 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
5073 REGSET->arch.
5074 (i386nbsd_aout_regset_from_core_section): Update call to
5075 regset_alloc.
5076 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
5077 REGSET->arch.
5078 (amd64_regset_from_core_section): Update call to regset_alloc.
5079 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
5080 REGSET->arch.
5081 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
5082 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
5083 &sparc32nbsd_gregset in sparc32_supply_gregset call.
5084 (sparc32nbsd_init_abi): Update call to regset_alloc.
5085 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
5086 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
5087 (sparc64obsd_init_abi): Update call to regset_alloc.
5088 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
5089 &sparc64nbsd_gregset in sparc64_supply_gregset call.
5090 (sparc64nbsd_init_abi): Update call to regset_alloc.
5091 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
5092 &sparc64fbsd_gregset in sparc64_supply_gregset call.
5093 (sparc64fbsd_init_abi): Update call to regset_alloc.
5094
867e2dc5
JB
50952004-05-22 Jim Blandy <jimb@redhat.com>
5096
5097 * ppc-tdep.h (spe_register_p): New declaration.
5098 (struct gdbarch_tdep): New members: ppc_acc_regnum and
5099 ppc_spefscr_regnum.
5100 * rs6000-tdep.c (spe_register_p): New function.
5101 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
5102 spefscr.
5103 (rs6000_gdbarch_init): Initialize the new members of the tdep
5104 structure.
5105
617a4cba
JB
51062004-05-21 Jim Blandy <jimb@redhat.com>
5107
0397dee1
JB
5108 * ppc-linux-nat.c (fetch_register): Move code back to be next
5109 to the comment that describes it. (Moved code, instead of
5110 comment, for symmetry with store_register.)
5111
617a4cba
JB
5112 Allocate regset structures in the gdbarch's obstack, not using
5113 xmalloc.
5114 * regset.c (regset_alloc): Renamed from regset_xmalloc.
5115 Add 'arch' argument. Allocate the regset on arch's obstack, not
5116 using xmalloc.
5117 * regset.h (regset_alloc): Update declaration.
5118 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
5119 gdbarch argument.
5120 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5121 * i386-tdep.c (i386_regset_from_core_section): Same.
5122 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5123 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5124 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5125 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5126 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5127 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5128
9aa3914d
JB
51292004-05-21 Joel Brobecker <brobecker@gnat.com>
5130
5131 * config/djgpp/fnchange.lst: Undo previous change, was useless.
5132
99c87dab
JB
51332004-05-21 Jim Blandy <jimb@redhat.com>
5134
5135 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
5136 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
5137
c2b6b4aa
JB
51382004-05-20 Jim Blandy <jimb@redhat.com>
5139
5140 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
5141
144529d0
MK
51422004-05-20 Mark Kettenis <kettenis@gnu.org>
5143
5144 * regset.h: Make prototype const-correct.
5145 * regset.c (regset_xmalloc): Make const-correct.
5146
4725b721
PH
51472004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
5148
5149 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
5150 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
5151 (symbol_search_name): Declare.
5152
5153 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
5154 (iter_name_next_hashed): Ditto.
5155 (iter_name_next_linear): Ditto.
5156 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
5157
5158 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
5159 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
5160 (symbol_search_name): New function.
5161
5162 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
5163
5164 * minsyms.c (build_minimal_symbol_hash_tables): Change
5165 test for adding to demangled hash table to check for difference
5166 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
5167
be07a590
JB
51682004-05-19 Jim Blandy <jimb@redhat.com>
5169
5170 Use a constructor function to create regset structures.
5171 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
5172 (struct regset): Use supply_regset_ftype. Add new
5173 'collect_regset' member.
5174 (regset_xmalloc): New declaration.
5175 * regset.c: New file.
5176 * am64-tdep.c (amd64_regset_from_core_section): Use
5177 regset_xmalloc to construct regset structures.
5178 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5179 * i386-tdep.c (i386_regset_from_core_section): Same.
5180 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5181 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5182 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5183 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5184 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5185 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5186 * Makefile.in (COMMON_OBS): Add regset.o.
5187 (regset.o): New rule.
5188
604368f5
JB
51892004-05-19 Joel Brobecker <brobecker@gnat.com>
5190
5191 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
5192 and pthread_cond_wait.c.
5193
82d69f8b
JB
51942004-05-18 Jim Blandy <jimb@redhat.com>
5195
5196 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
5197 before the mach-specific switch, and then let the individual cases
5198 override the defaults, rather than leaving them uninitialized
5199 until the switch and then setting them in each case.
5200
5859efe5
RC
52012004-05-18 Randolph Chung <tausq@debian.org>
5202
5203 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
5204 millicode functions.
5205
9ca80cf8
RC
52062004-05-18 Randolph Chung <tausq@debian.org>
5207
5208 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
5209 references to dld_flags_buffer consistent.
5210
ed70ba00
RC
52112004-05-18 Randolph Chung <tausq@debian.org>
5212
5213 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
5214 it for unwinding the stack.
5215
63100632
RC
52162004-05-18 Randolph Chung <tausq@debian.org>
5217
5218 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
5219 Undefine these so we can overide them using gdbarch.
5220
090ccbb7
RC
52212004-05-18 Randolph Chung <tausq@debian.org>
5222
5223 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
5224 handling for 64-bit HPUX (elf).
5225
594706e6
DJ
52262004-05-18 Daniel Jacobowitz <dan@debian.org>
5227
5228 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
5229 constants.
5230 * amd64-tdep.c (amd64_skip_prologue): Likewise.
5231 * ia64-tdep.c (examine_prologue): Likewise.
5232 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
5233 * v850-tdep.c (v850_fix_call_dummy): Likewise.
5234
e5483145
MK
52352004-05-18 Mark Kettenis <kettenis@gnu.org>
5236
5237 * vax-tdep.c (vax_return_value): Implement
5238 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5239
caed1a45
MK
52402004-05-17 Mark Kettenis <kettenis@gnu.org>
5241
5242 * vax-tdep.c (vax_return_value): Fix typo.
5243
3c0b7db2
AC
52442004-05-17 Andrew Cagney <cagney@redhat.com>
5245
5aae53e5
AC
5246 * MAINTAINERS: Mark Salter was also responsible for
5247 testsuite/config/
5248
3c0b7db2
AC
5249 * NEWS: Mention signal fixes.
5250
22b0923d
RC
52512004-05-17 Randolph Chung <tausq@debian.org>
5252
5253 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
5254 check to see if we are unwinding an export stub. Export stubs clobber
5255 the %rp in the call path and stores the original rp in a stack slot.
5256
22f2b2f3
JB
52572004-05-17 Jim Blandy <jimb@redhat.com>
5258
5259 * MAINTAINERS: Update address for J.T. Conklin.
5260
cea96d64
RC
52612004-05-17 Randolph Chung <tausq@debian.org>
5262
5263 * hppa-tdep.c: Remove superfluous #include's.
5264 * Makefile.in (hppa-tdep.o): Update dependencies.
5265
f08f6a4a
RC
52662004-05-17 Randolph Chung <tausq@debian.org>
5267
5268 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
5269 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
5270 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
5271 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
5272 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
5273 Remove static function declarations.
5274
51da707a
MK
52752004-05-17 Mark Kettenis <kettenis@gnu.org>
5276
caed1a45
MK
5277 * alphabsd-nat.c: Update copyright year.
5278 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
5279
c0c2b0db
MK
5280 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
5281 and M68K_A2_REGNUM.
5282
51da707a
MK
5283 * m68k-tdep.c (m68k_svr4_return_value): Implement
5284 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5285
8d027a04
MK
52862004-05-16 Mark Kettenis <kettenis@gnu.org>
5287
5288 * sol-thread.c Update copyright year. Fix various coding
5289 standards violations. Tweak a few comments.
5290 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
5291 Delete prototypes.
5292
0d99fdb9
RC
52932004-05-15 Randolph Chung <tausq@debian.org>
5294
5295 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
5296 as pointer instead of array reference since HPUX compiler does
5297 not accept unsized array arguments.
5298 * somsolib.c (dld_flags_buffer): Use constant array size.
5299
f7e3843a
MK
53002004-05-15 Mark Kettenis <kettenis@gnu.org>
5301
0fe85704
MK
5302 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
5303 offset with decimal offset.
5304 (amd64obsd_sigcontext_addr): Return correct address for entire
5305 signal trampoline.
5306
a54f9a00
MK
5307 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
5308 instead of get_frame_base.
5309
feae6502
MK
5310 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
5311 (fill_gregset): Use regcache_raw_collect.
5312
0382d099
MK
5313 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
5314 ppcobsd-tdep.c.
5315
f7e3843a
MK
5316 * config/sparc/tm-nbsd64.h: Remove file.
5317 * config/tm-sunos.h: Remove file.
5318
773df3e5
JB
53192004-05-15 Joel Brobecker <brobecker@gnat.com>
5320
5321 * rs6000-tdep.c (store_param_on_stack_p): New function,
5322 an improved version of some code extracted from skip_prologue().
5323 (skip_prologue): Use store_param_on_stack_p() to detect
5324 instructions saving a parameter on the stack. Detect when r0
5325 is used to save a parameter.
5326 Do not mark "li rx, SIMM" instructions as part of the prologue,
5327 unless the following instruction is also part of the prologue.
5328
95918acb
AC
53292004-05-14 Andrew Cagney <cagney@redhat.com>
5330
06f32659
AC
5331 * infrun.c (handle_inferior_event): Simplify
5332 STEP_OVER_UNDEBUGGABLE.
5333
95918acb
AC
5334 * infrun.c (handle_step_into_function): Delete function.
5335 (handle_inferior_event): Inline calls to
5336 handle_step_into_function.
5337
40711ff1 53382004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
5339
5340 * rs6000-nat.c: Fix a comment.
5341
02f60eae
JB
53422004-05-12 David Anderson <davea@sgi.com>
5343
5344 Committed by Jim Blandy <jimb@redhat.com>:
5345 * regcache.c (struct regcache_descr): fix comment spelling.
5346
552e377b
JB
53472004-05-13 J. Brobecker <brobecker@gnat.com>
5348
5349 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
5350 Fixes a link link failure.
5351
349766b2
JB
53522004-05-13 J. Brobecker <brobecker@gnat.com>
5353
5354 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
5355 error that was causing the build to fail.
5356
0d4d5484
JB
53572004-05-13 J. Brobecker <brobecker@gnat.com>
5358
5359 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
5360 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
5361
0b30808c
AC
53622004-05-13 Andrew Cagney <cagney@redhat.com>
5363
5364 * infrun.c (handle_inferior_event): Check for
5365 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
5366 calls. Update comments.
5367
cdf2c5f5
JB
53682004-05-13 Jim Blandy <jimb@redhat.com>
5369
063715bf
JB
5370 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
5371 (fetch_regs_user_thread, fetch_regs_kernel_thread)
5372 (store_regs_user_thread, store_regs_kernel_thread): Use
5373 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
5374 * ppc-linux-nat.c (fill_gregset): Same.
5375 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
5376 (ppc_linux_sigtramp_cache): Same.
5377 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
5378 (ppcnbsd_sigtramp_cache_init): Same.
5379 * rs6000-nat.c (fetch_core_registers): Same.
5380 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
5381 (rs6000_frame_cache): Same.
5382
cdf2c5f5
JB
5383 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
5384 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
5385 of assuming that the gprs are numbered starting with zero.
5386 * ppc-linux-nat.c (fill_gregset): Same.
5387 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
5388 * ppcnbsd-nat.c (getregs_supplies): Same.
5389 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
5390 * rs6000-nat.c (fetch_core_registers): Same.
5391 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
5392
450bd37b
MS
53932004-05-07 Michael Snyder <msnyder@redhat.com>
5394
5395 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
5396 LOC_COMPUTED_ARG, and LOC_INDIRECT.
5397
4a72a2a6
AC
53982004-05-13 Andrew Cagney <cagney@redhat.com>
5399
5400 * infrun.c (handle_inferior_event): Use frame_unwind_id.
5401
8edfa926
BM
54022004-05-13 Bryce McKinlay <mckinlay@redhat.com>
5403
5404 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
5405 base_address for shared libraries.
5406
723e0e3d
BM
54072004-05-13 Bryce McKinlay <mckinlay@redhat.com>
5408
5409 * MAINTAINERS (write after approval): Add myself.
5410
00d4360e
UW
54112004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
5412
5413 * breakpoint.c (bpstat_stop_status): Add new argument
5414 STOPPED_BY_WATCHPOINT. Use it instead of testing
5415 target_stopped_data_address agaist 0 to check whether
5416 or not we stopped due to a hardware watchpoint.
5417 * breakpoint.h (bpstat_stop_status): Adapt prototype.
5418 * infrun.c (handle_inferior_event): Call bpstat_stop_status
5419 with new argument.
5420
ec76baa5
JB
54212004-05-12 Jim Blandy <jimb@redhat.com>
5422
5423 * configure.in: When checking whether we should use the -bbigtoc
5424 option, don't forget to restore the original value of LDFLAGS.
5425 * configure: Regenerated.
5426
f2c9ca08
AC
54272004-05-12 Andrew Cagney <cagney@redhat.com>
5428
5429 * thread.c (load_infrun_state): Delete step_sp.
5430 * infrun.c (context_switch): Ditto.
5431 * inferior.h (step_sp): Ditto.
5432 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
5433 * gdbthread.h (struct thread_info, save_infrun_state)
5434 (restore_infrun_state): Ditto.
5435
090ddb2a
UW
54362004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
5437
5438 * MAINTAINERS (write after approval): Add myself.
5439
8aad930b
AC
54402004-05-12 Andrew Cagney <cagney@redhat.com>
5441
5442 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
5443 eliminate reference to step_sp.
5444 (struct execution_control_state, init_execution_control_state)
5445 (handle_inferior_event, keep_going): Delete update_step_sp and
5446 step_sp.
5447 * infcmd.c (step_sp): Note that variable is unused.
5448
922d5ae0
AC
54492004-05-11 Andrew Cagney <cagney@redhat.com>
5450
5451 * infrun.c (step_over_function): Delete function.
5452 (handle_step_into_function): Use insert_step_resume_breakpoint.
5453 (insert_step_resume_breakpoint): Fix assertion.
5454
017c5ca5
NR
54552004-05-11 Nick Roberts <nickrob@gnu.org>
5456
5457 * utils.c (defaulted_query): Just use the normal query input type
5458 when printing the annotations.
5459
42edda50
AC
54602004-05-11 Andrew Cagney <cagney@redhat.com>
5461
5462 * infrun.c (handle_inferior_event): Simplify code handling
5463 step-into or return-from a signal trampoline.
5464
d28b44a7
AC
54652004-05-11 Andrew Cagney <cagney@redhat.com>
5466
5467 * ppcnbsd-tdep.c: Include "gdb_assert.h".
5468 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
5469
383f0f5b
JB
54702004-05-10 Jim Blandy <jimb@redhat.com>
5471
d0b57c3a
JB
5472 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
5473 with a call to internal_error.
5474
383f0f5b
JB
5475 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
5476 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
5477 processor variant lacks those registers.
5478 (ppc_floating_point_unit_p): Change description to make it clear
5479 that this returns info about the ISA, not the ABI.
5480 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
5481 return true or false by checking tdep->ppc_fp0_regnum and
5482 tdep->ppc_fpscr_regnum. The original code replicated the BFD
5483 arch/mach switching done in rs6000_gdbarch_init; it's better to
5484 keep that logic there, and just check the results here.
5485 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
5486 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
5487 floating-point registers.
5488 (ppc_supply_fpregset, ppc_collect_fpregset)
5489 (rs6000_push_dummy_call, rs6000_extract_return_value)
5490 (rs6000_store_return_value): Assert that we have floating-point
5491 registers.
5492 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
5493 (rs6000_frame_cache): Don't note the locations at which
5494 floating-point registers were saved if we have no fprs.
5495 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
5496 registers.
5497 (fetch_regs_user_thread, fetch_regs_kernel_thread)
5498 (store_regs_user_thread, store_regs_kernel_thread): Only call
5499 supply_fprs / fill_fprs if we actually have floating-point
5500 registers.
5501 (special_register_p): Check ppc_fpscr_regnum before matching
5502 against it.
5503 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
5504 supply / collect fpscr if we don't have it.
5505 * ppc-bdm.c: #include "gdb_assert.h".
5506 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
5507 have floating-point registers, since I can't test this code on
5508 FP-free systems to adapt it.
5509 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
5510 fpscr and floating point register numbers if they don't exist.
5511 (fetch_register): Assert that we have floating-point registers
5512 before we reach the code that handles them.
5513 (store_register): Same. And use tdep instead of calling
5514 gdbarch_tdep again.
5515 (fill_fpregset): Don't try to collect FP registers and fpscr if we
5516 don't have them.
5517 (ppc_linux_sigtramp_cache): Don't record the saved locations of
5518 fprs and fpscr if we don't have them.
5519 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
5520 don't have them.
5521 * ppcnbsd-nat.c: #include "gdb_assert.h".
5522 (getfpregs_supplies): Assert that we have floating-point registers.
5523 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
5524 * ppcobsd-tdep.c: #include "gdb_assert.h".
5525 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
5526 have floating-point registers.
5527 * rs6000-nat.c (regmap): Don't match against the fpscr and
5528 floating point register numbers if they don't exist.
5529 (fetch_inferior_registers, store_inferior_registers,
5530 fetch_core_registers): Only fetch / store / supply the
5531 floating-point registers and the fpscr if we have them.
5532 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
5533 (ppcobsd-tdep.o): Update dependencies.
5534
15960608
AC
55352004-05-10 Andrew Cagney <cagney@redhat.com>
5536
5537 * infrun.c (through_sigtramp_breakpoint): Delete variable.
5538 (context_switch): Do not switch through_sigtramp_breakpoint.
5539 * gdbthread.h (save_infrun_state, load_infrun_state)
5540 (struct thread_info): Delete through_sigtramp_breakpoint parameter
5541 and structure member.
5542 * thread.c (load_infrun_state, save_infrun_state): Update.
5543
5ab5aa0f
MK
55442004-05-10 Mark Kettenis <kettenis@gnu.org>
5545
5546 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
5547
da78b0e7
DJ
55482004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5549
5550 * acinclude.m4: Quote macro names being defined by AC_DEFUN
5551 throughout.
5552 * aclocal.m4: Regenerate.
5553
cca0d3b0
NW
55542004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
5555
5556 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
5557
d303a6c7
AC
55582004-05-10 Andrew Cagney <cagney@redhat.com>
5559
5560 * infrun.c (check_sigtramp2): Delete function.
5561 (handle_inferior_event): When single stepping, and taking a
5562 signal, set a breakpoint at the signal return address. Delete
5563 redundant calls to check_sigtramp2.
5564 (insert_step_resume_breakpoint): New function.
5565 (through_sigtramp_breakpoint, handle_inferior_event)
5566 (follow_exec, wait_for_inferior, fetch_inferior_event)
5567 (currently_stepping, keep_going): Delete most uses of
5568 through_sigtramp_breakpoint, not that it should be deleted.
5569 (delete_breakpoint_current_contents): Delete function.
5570
03f4cc20
RC
55712004-05-10 Randolph Chung <tausq@debian.org>
5572
5573 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
5574 target.
5575 * config/pa/tm-linux.h: New file.
5576
37fc812e
DJ
55772004-05-10 Daniel Jacobowitz <drow@mvista.com>
5578
5579 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
5580 of prefixes. Don't print the prefix twice in the CLI.
5581
26c0b942
JB
55822004-05-10 Jim Blandy <jimb@redhat.com>
5583
2e56e9c1
JB
5584 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
5585 collect all the gprs.
5586
26c0b942
JB
5587 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
5588 loop collecting gprs.
5589
dc497459
AC
55902004-05-09 Andrew Cagney <cagney@redhat.com>
5591
5592 * remote-vx.c (net_step): Delete step-range code.
5593 * remote.c (remote_resume, init_all_packet_configs)
5594 (set_remote_protocol_E_packet_cmd)
5595 (show_remote_protocol_E_packet_cmd)
5596 (remote_protocol_E, show_remote_cmd, _initialize_remote)
5597 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
5598 (show_remote_protocol_e_packet_cmd): Ditto.
5599
0543f387
MK
56002004-05-09 Mark Kettenis <kettenis@gnu.org>
5601
c481d1ca
MK
5602 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
5603
f626a069
MK
5604 * hppa-tdep.h: Update copyright year.
5605 (struct trad_frame_saved_reg): Add opaque declaration.
5606
6fa57a7d
MK
5607 * amd64-tdep.c (amd64_return_value): Implement
5608 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5609
e47577ab
MK
5610 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
5611 (m68k_value_to_register): New functions.
5612 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
5613 value_to_register.
5614
31db7b6c
MK
5615 * defs.h (enum return_value_convention): Add
5616 RETURN_VALUE_ABI_RETURNS_ADDRESS and
5617 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
5618 * infcmd.c (legacy_return_value): New function.
5619 (print_return_value): Rwerite to implement
5620 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5621 * values.c (using_struct_return): Check for inequality to
5622 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
5623 RETURN_VALUE_STRUCT_CONVENTION.
5624 * i386-tdep.c (i386_return_value): Implement
5625 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5626
0543f387
MK
5627 * vax-tdep.c: Tweak comments. Reorder include files. Don't
5628 include "symtab.h", "opcode/vax.h" and "inferior.h".
5629 (vax_skip_prologue): Replace calls to read_memory_integer by calls
5630 to read_memory_unsigned_integer.
5631 (vax_gdbarch_init): Reorder.
5632 (_initialize_vax_tdep): Spell out prototype.
5633 * Makefile.in (vax-tdep.o): Update dependencies.
5634
0c93b7b6
AC
56352004-05-08 Andrew Cagney <cagney@redhat.com>
5636
e6b55ae2
AC
5637 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
5638 * target.c (target_detach, target_disconnect): Ditto.
5639
1ac839b8
AC
5640 * infcall.c (call_function_by_hand): When no
5641 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
5642 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
5643 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
5644 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5645 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5646
28954179
AC
5647 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
5648 * gdbarch.h, gdbarch.c: Re-generate.
5649 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5650 deprecated_fix_call_dummy.
5651 * v850-tdep.c (v850_gdbarch_init): Ditto.
5652 * infcall.c (call_function_by_hand): Do not call
5653 DEPRECATED_FIX_CALL_DUMMY.
5654
434b87dd
AC
5655 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
5656 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
5657 * gdbarch.h, gdbarch.c: Re-generate.
5658 * arm-linux-tdep.c (arm_linux_call_dummy_words)
5659 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
5660 deprecated_sizeof_call_dummy_words.
5661 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
5662 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
5663 * v850-tdep.c (v850_gdbarch_init): Ditto.
5664 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
5665 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
5666 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5667 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5668 * arch-utils.h (legacy_call_dummy_words)
5669 (legacy_sizeof_call_dummy_words): Delete declarations.
5670 * arch-utils.c (legacy_call_dummy_words)
5671 (legacy_sizeof_call_dummy_words): Delete variables.
5672
58d28df8
AC
5673 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
5674 * gdbarch.h, gdbarch.c: Re-generate.
5675 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
5676 * infcall.c (call_function_by_hand): Eliminate call to
5677 DEPRECATED_PUSH_DUMMY_FRAME.
5678 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
5679 push_dummy_frame.
5680 (ns32k_push_dummy_frame): Delete function.
5681
e4a2df64
AC
5682 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5683 deprecated_call_dummy_breakpoint_offset or
5684 deprecated_call_dummy_start_offset.
5685 * dummy-frame.c, arm-tdep.c: Update comments.
5686 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
5687 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
5688 * gdbarch.h, gdbarch.c: Re-generate.
5689
d3712828
AC
5690 * infcall.c (legacy_push_dummy_code): Delete function.
5691 (push_dummy_code): Delete call.
5692
7a882905
AC
5693 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
5694 * gdbarch.h, gdbarch.c: Re-generate.
5695 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
5696 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
5697 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
5698 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
5699
0ec5872b
AC
5700 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
5701 (struct frame_info): Delete opaque declaration.
5702 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
5703 * frame.c (get_frame_type): Delete call.
5704
0c93b7b6
AC
5705 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
5706 pc_in_call_dummy.
5707 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
5708 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
5709
75536971
MK
57102004-05-08 Mark Kettenis <kettenis@gnu.org>
5711
527ca6bb
MK
5712 * alphanbsd-tdep.c: Include "gdb_string.h".
5713 * armnbsd-tdep.c: Update copyright year.
5714 Include "gdb_string.h".
5715 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
5716 dependencies.
5717
d39fdc61
MK
5718 * delta68-nat.c: Remove file.
5719 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
5720 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
5721 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
5722 (delta68-nat.o): Remove dependency.
5723
75536971
MK
5724 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
5725 function.
5726 (m68k_gdbarch_init): Don't set
5727 deprecated_frameless_function_invocation.
5728
f4ca1d1f
RC
57292004-05-07 Randolph Chung <tausq@debian.org>
5730
5731 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
5732 read_memory_nobpt for code reading when doing frame unwinding.
5733 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
5734
2f0e8c7a
RC
57352004-05-07 Randolph Chung <tausq@debian.org>
5736
5737 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
5738 instead of sp, handle sigaltstack case.
5739 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
5740 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
5741 signal handler and not that of the caller.
5742 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
5743 hppa_linux_sigtramp_find_sigcontext.
5744
959464ff
RC
57452004-05-07 Randolph Chung <tausq@debian.org>
5746
5747 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
5748 hppa-linux-nat.c.
5749 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
5750 * hppa-linux-nat.c (fetch_register, store_register): Define.
5751 (fetch_inferior_registers, store_inferior_registers): Define.
5752 (supply_gregset): Add comment and clean up some unneeded code.
5753 (fill_gregset): Add comment and fix so that it saves registers in
5754 the right place in the gregset.
5755 (fill_fpregset): Fix buffer overrun problem.
5756 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
5757
0da28f8a
RC
57582004-05-07 Randolph Chung <tausq@debian.org>
5759
5760 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
5761 do common handling of the pcoqt register.
5762 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
5763 to use helper function.
5764 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
5765 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
5766 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
5767 generic fallback unwinder when all else fails.
5768 (hppa_gdbarch_init): Add fallback sniffer.
5769 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
5770 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
5771 to use helper function.
5772
b9ec757a
JB
57732004-05-08 Joel Brobecker <brobecker@gnat.com>
5774
5775 * config/djgpp/fnchange.lst: Add translation rules for
5776 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
5777
756e95f1
MK
57782004-05-08 Mark Kettenis <kettenis@gnu.org>
5779
5780 * frame.c (get_prev_frame_1): Work around GCC bug.
5781 * frame.h: Add comment about GCC bug.
5782
2b4855ab
AC
57832004-05-07 Andrew Cagney <cagney@redhat.com>
5784
5785 * observer.c: Include "commands.h" and "gdbcmd.h".
5786 (observer_debug, _initialize_observer): Add the
5787 command "set/show debug observer".
5788 * observer.sh: When observer debugging, log notify calls.
5789 * Makefile.in (observer.o): Update dependencies.
5790
ba3e8e46
JM
57912004-05-07 Jason Molenda (jmolenda@apple.com)
5792
5793 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
5794
16796152
JB
57952004-05-07 Jim Blandy <jimb@redhat.com>
5796
daf6dc85
JB
5797 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
5798 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
5799 to recognize gpr regnums, instead of assuming that
5800 tdep->ppc_fp0_regnum marks the end of the general-purpose
5801 registers.
5802
16796152
JB
5803 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
5804 the given architecture has floating-point registers.
5805
c69b8bfc
AC
58062004-05-07 Andrew Cagney <cagney@redhat.com>
5807
5808 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
5809 macro defined to 1.
5810 * gdbarch.h, gdbarch.c: Re-generate.
5811 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5812 deprecated_use_generic_dummy_frames.
5813
7243600a
BF
58142004-05-07 Brian Ford <ford@vss.fsi.com>
5815
5816 * NEWS: Mention Cygwin DWARF 2 support.
5817
73c1e0a1
AC
58182004-05-07 Andrew Cagney <cagney@redhat.com>
5819
5820 * objfiles.h (struct entry_info): Delete unused fields
5821 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
5822 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
5823 * mipsread.c (mipscoff_symfile_read): Update.
5824 * mdebugread.c (parse_partial_symbols): Update.
5825 * dwarfread.c (read_file_scope): Update.
5826 * dwarf2read.c (read_file_scope): Update.
5827 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
5828 * coffread.c (complete_symtab): Update.
5829
1d3056ac
MK
58302004-05-07 Mark Kettenis <kettenis@gnu.org>
5831
5832 * infcall.c (_initialize_infcall): Fix typo.
5833
15170568
AC
58342004-05-07 Andrew Cagney <cagney@redhat.com>
5835
5836 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
5837 * command.h (add_setshow_zinteger_cmd): Declare.
5838
34f75cc1
RC
58392004-05-06 Randolph Chung <tausq@debian.org>
5840
5841 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
5842 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
5843 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
5844 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
5845 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
5846 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
5847 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
5848 definitions ...
5849 * hppa-tdep.h: ... to here, with HPPA_ prefix.
5850 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
5851 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
5852 (hppa64_hpux_frame_find_saved_regs_in_sig)
5853 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
5854 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
5855 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
5856 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
5857 (hppa_linux_sigtramp_frame_prev_register): Likewise.
5858 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
5859 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
5860 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
5861 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
5862 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
5863 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
5864 (hppa32_register_type, hppa_cannot_store_register)
5865 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
5866 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
5867 * hpread.c (hpread_process_one_debug_symbol): Likewise.
5868 * pa64solib.c (pa64_solib_have_load_event)
5869 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
5870 (pa64_solib_unloaded_library_pathname): Likewise.
5871 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
5872 (som_solib_library_pathname): Likewise.
5873
0a5e7efe
JI
58742004-05-05 Jim Ingham <jingham@apple.com>
5875
5876 * breakpoint.c (create_breakpoints): Copy the ignore count and
5877 thread id over from the pended breakpoint to the actual
5878 breakpoint.
5879
10a4b113
AC
58802004-05-05 Andrew Cagney <cagney@redhat.com>
5881
5882 * gdbarch.sh (PARM_BOUNDARY): Delete.
5883 gdbarch.h, gdbarch.c: Re-generate.
5884 * valops.c (PARM_BOUNDARY): Delete macro.
5885 (value_push): Delete PARM_BOUNDARY code.
5886 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
5887
366f009f
JB
58882004-05-04 Jim Blandy <jimb@redhat.com>
5889
32b99774
JB
5890 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
5891 Don't assume that the gprs, fprs, and UISA sprs are
5892 contiguous, start at register number zero, and end with fpscr.
5893 Instead, use the numbers from the tdep structure.
5894
366f009f
JB
5895 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
5896 should no longer be used in code specific to the RS6000 and its
5897 derivatives.
5898 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
5899 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
5900 tdep->ppc_fp0_regnum.
5901 (ppc_supply_fpregset, ppc_collect_fpregset)
5902 (rs6000_push_dummy_call, rs6000_extract_return_value)
5903 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
5904 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
5905 FP0_REGNUM.
5906 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
5907 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
5908 Same.
5909 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
5910 bdm_ppc_store_registers): Same.
5911 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
5912 (store_register, fill_fpregset): Same.
5913 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
5914 (ppc_linux_supply_fpregset): Same.
5915 * ppcnbsd-nat.c (getfpregs_supplies): Same.
5916 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
5917 Same.
5918 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
5919 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
5920 ppc64_sysv_abi_return_value): Same.
5921 * rs6000-nat.c (regmap, fetch_inferior_registers)
5922 (store_inferior_registers, fetch_core_registers): Same.
5923
827f338d
MK
59242004-05-01 Mark Kettenis <kettenis@gnu.org>
5925
5926 * m68knbsd-nat.c: Remove file.
5927 * m68knbsd-tdep.c: Remove file.
5928 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
5929 dependencies.
5930 * configure.host: Add m68k-*-netbsdelf*.
5931 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
5932 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
5933 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
5934 (XM_FILE): Remove.
5935 * config/m68k/nbsdelf.mh: New file.
5936 * config/m68k/nbsd.mt: New file.
5937 * config/m68k/nbsdaout.mt: Remove file.
5938 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
5939 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
5940 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
5941 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
5942 (use_struct_convention): Remove prototype.
5943 (USE_STRUCT_CONVENTION): Remove define.
5944 * config/m68k/xm-nbsd.h: Remove file.
5945
66894781
MS
59462004-05-04 Michael Snyder <msnyder@redhat.com>
5947
5948 * m68k-tdep.c (m68k_gdbarch_init): Default to using
5949 reg_struct_return method (as gcc usually does for cross targets).
5950
f0f63663
AC
59512004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5952
5953 Committed by Andrew Cagney.
5954 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
5955 alignment padding when accessing ucontext struct members.
5956
edf61169
JB
59572004-05-04 Jim Blandy <jimb@redhat.com>
5958
8bf659e8
JB
5959 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
5960 'ppc_gplast_regnum' member.
5961 (ppc_num_gprs): New enum constant.
5962 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
5963 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
5964 * rs6000-nat.c (regmap, fetch_inferior_registers,
5965 store_inferior_registers): Same.
5966 * rs6000-tdep.c (e500_pseudo_register_read)
5967 (e500_pseudo_register_write): Same.
5968 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
5969
b967e06f
JB
5970 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
5971 * ppc-tdep.h (ppc_num_fprs): New enum constant.
5972 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
5973 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
5974 FPLAST_REGNUM.
5975 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
5976 Same.
5977 * ppc-linux-nat.c (ppc_register_u_addr): Same.
5978 * rs6000-nat.c (regmap, fetch_inferior_registers)
5979 (store_inferior_registers): Same.
5980
edf61169
JB
5981 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
5982 with FPLAST_REGNUM.
5983
58a9656e
JB
59842004-05-03 Joel Brobecker <brobecker@gnat.com>
5985
5986 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
5987 failure detected by recent versions of GCC.
5988 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
5989 to be consistent with the usage in dwarf2_create_include_psymtab.
5990
dc305454
MS
59912004-05-03 Michael Snyder <msnyder@redhat.com>
5992
5993 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
5994 (heuristic_proc_start): Whitespace cleanup.
5995
29972665
MK
59962004-05-04 Mark Kettenis <kettenis@gnu.org>
5997
6b57680d
MK
5998 * sun3-nat.c: Remove file.
5999 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
6000 dependencies.
6001 (ALLDEPFILES): Remove sun3-nat.c.
6002 (sun3-nat.o): Remove dependencies.
6003
29972665
MK
6004 * i386-interix-nat.c, i386-interix-tdep.c,
6005 config/i386/nm-interix.h, config/i386/interix.mh,
6006 config/i386/interix.mt: Remove files.
6007 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
6008 dependencies.
6009
f595cb19
MK
60102004-05-03 Mark Kettenis <kettenis@gnu.org>
6011
6012 * m68k-tdep.h (struct gdbarch_tdep): Add member
6013 struct_value_regnum.
6014 (m68k_svr4_init_abi): New prototype.
6015 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
6016 different calling conventions.
6017 (m68k_extract_return_value): Remove code dealing with single-field
6018 structs.
6019 (m68k_store_return_value): Remove code dealing with single-field
6020 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
6021 (m68k_extract_struct_value_address): Remove function.
6022 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
6023 (m68k_reg_struct_return_p, m68k_return_value)
6024 (m68k_svr4_return_value): New functions.
6025 (m68k_use_struct_convention): Remove function.
6026 (m68k_push_dummy_call): Use new struct_value_regnum member of
6027 `struct gdbarch_tdep' instead of hardcoded register number to
6028 store STRUCT_ADDR.
6029 (m68k_svr4_init_abi): New function.
6030 (m68k_gdbarch_init): Don't set extract_return_value,
6031 store_return_values, deprecated_extract_struct_value_address and
6032 use_struct_convention. Set return_value instead. Initialize new
6033 struct_value_regnum member of `struct gdbarch_tdep'.
6034 * m68klinux-tdep.c: Update copyright year.
6035 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
6036 (m68k_linux_extract_struct_value_address): Remove function.
6037 (m68k_linux_init_abi): Don't set extract_return_value,
6038 store_return_values, deprecated_extract_struct_value_address and
6039 use_struct_convention. Call m68k_svr4_init_abi but override the
6040 new struct_value_regnum member of `struct gdbarch_tdep'.
6041 * Makefile.in (m68k-tdep.o): Update dependencies.
6042
aaa75496
JB
60432004-05-03 J. Brobecker <brobecker@gnat.com>
6044
6045 * dwarf2read.c (line_header): Add new included_p field in
6046 field file_names.
6047 (partial_die_info): New field has_stmt_list. New field line_offset.
6048 (dwarf2_create_include_psymtab): New function.
6049 (dwarf2_build_include_psymtabs): New function.
6050 (add_file_name): Add forward declaration. Initialize new field.
6051 (dwarf_decode_lines): Add new parameter. Enhance this procedure
6052 to be able to determine the list of files included by the
6053 given unit, and build their associated psymtabs.
6054 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
6055 files as well.
6056 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
6057 (read_file_scope): Update call to dwarf_decode_lines.
6058 (read_partial_die): Handle DW_AT_stmt_list attributes.
6059
c848556f
MC
60602004-05-02 Michael Chastain <mec.gnu@mindspring.com>
6061
6062 Unfix PR gdb/1626.
6063 * configure.in: Revert special case for osf5.*.
6064 * configure: Regenerate.
6065
eb4556d7
JB
60662004-05-02 Jim Blandy <jimb@redhat.com>
6067
6068 Move the symbol-file-from-memory functions into their own file.
6069 * symfile-mem.c, symfile-mem.h: New files.
6070 * symfile.c (symbol_file_add_from_bfd): New function.
6071 (symbol_file_add): Call symbol_file_add_from_bfd.
6072 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
6073 Moved to symfile-mem.c.
6074 (_initialize_symfile): Move definition of
6075 add-symbol-file-from-memory command to symfile-mem.c.
6076 * symfile.h (symbol_file_add_from_bfd): New declaration.
6077 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
6078 * config/powerpc/linux.mt (TDEPFILES): Same.
6079 * Makefile.in (SFILES): Add symfile-mem.c.
6080 (symfile_mem_h): New variable.
6081 (HFILES_NO_SRCDIR): Add symfile-mem.h.
6082 (symfile-mem.o): New rule.
6083
80bb239e
AC
60842004-05-01 Andrew Cagney <cagney@redhat.com>
6085
7789d0fa
AC
6086 * breakpoint.c (insert_bp_location): Use get_frame_id, and
6087 frame_find_by_id instead of frame_relative_level.
6088 (do_enable_breakpoint): Ditto.
6089 * thread.c: Update copyright.
6090 (info_threads_command): Ditto, simplify.
6091
80bb239e
AC
6092 * frame.c (deprecated_generic_get_saved_register): Delete
6093 function, moved to "xstormy16-tdep.c".
6094 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
6095 deprecated_generic_get_saved_register from "frame.c".
6096 (xstormy16_frame_saved_register): Call
6097 xstormy16_get_saved_register.
6098 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
6099 static.
6100 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
6101 * frame.h (deprecated_generic_get_saved_register): Delete.
6102
b2a871dd
MC
61032004-05-01 Michael Chastain <mec.gnu@mindspring.com>
6104
6105 * dwarfread.c: Update documentation on the state of dwarf-1.
6106
0e100dab
AC
61072004-05-01 Andrew Cagney <cagney@redhat.com>
6108
acd8056e
AC
6109 * stack.c (select_frame_command): Delete call to
6110 frame_relative_level.
6111 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
6112 Delete #if0 code.
6113 (frame_info): Do not print FRAMELESS.
6114 (print_block_frame_labels): Replace DEPRECATED_STREQ.
6115 (catch_info): Delete #if0 code.
6116
0e100dab
AC
6117 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
6118 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
6119 of frame_relative_level.
6120 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
6121 to SENTINEL_FRAME.
6122 * frame.h (enum frame_type): Add SENTINEL_FRAME.
6123 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
6124 frame_relative_level.
6125
55699d59
AC
6126 * frame.h (deprecated_set_frame_type): Delete declaration.
6127 * frame.c (deprecated_set_frame_type): Delete function, update
6128 comments.
6129
fcf70625
AC
6130 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
6131 * gdbarch.h, gdbarch.c: Re-generate.
6132 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
6133 (shnbsd_pc_in_sigtramp): Delete.
6134 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
6135 pc_in_sigtramp.
6136 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
6137 pc_in_sigtramp.
6138 * frame.h: Update comments.
6139 * ppc-linux-tdep.c: Update comments.
6140 * breakpoint.c (bpstat_what): Update comments.
6141
ac5eccb7
AC
6142 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
6143 m68klinux-tdep.o's dependencies, were previously added to
6144 m68klinux-nat.o.
6145
f2524b93
AC
6146 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
6147 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
6148 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6149 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6150 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6151
17e20bce
AC
6152 * Makefile.in (m68klinux-nat.o): Update dependencies.
6153 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6154 (m68k_linux_sigtramp_frame_cache)
6155 (m68k_linux_sigtramp_frame_this_id)
6156 (m68k_linux_sigtramp_frame_prev_register)
6157 (m68k_linux_sigtramp_frame_unwind)
6158 (m68k_linux_sigtramp_frame_sniffer)
6159 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
6160 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
6161 names, use trad-frame.h.
6162 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
6163 (struct m68k_sigtramp_info): Delete.
6164 * m68k-tdep.c (m68k_sigtramp_frame_cache)
6165 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
6166 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
6167 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
6168 "m68klinux-tdep.c".
6169
c8864fa2
AC
6170 * infrun.c (check_sigtramp2): Delete check for
6171 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
6172
511dd2cd
MK
61732004-05-01 Mark Kettenis <kettenis@gnu.org>
6174
6175 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
6176
8c6b0e06
AC
61772004-05-01 Andrew Cagney <cagney@redhat.com>
6178
9df0bb3f
AC
6179 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6180 (frv_linux_sigtramp_frame_cache)
6181 (frv_linux_sigtramp_frame_this_id)
6182 (frv_linux_sigtramp_frame_prev_register)
6183 (frv_linux_sigtramp_frame_unwind)
6184 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
6185 include "linux" in function and variable names, directly call
6186 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
6187 the latest trad-frame code.
6188 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
6189 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
6190 * Makefile.in (frv-linux-tdep.o): Update dependencies.
6191 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
6192 * frv-tdep.c (frv_sigtramp_frame_cache)
6193 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
6194 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
6195 frv-linux-tdep.c.
6196 (frv_gdbarch_init): Do not append a sigtramp sniffer.
6197 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
6198 (frv_set_sigcontext_reg_addr): Delete function.
6199
8c6b0e06
AC
6200 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
6201 (DEPRECATED_SIGTRAMP_END): Delete.
6202 * gdbarch.h, gdbarch.c: Re-generate.
6203 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
6204 * config/vax/tm-vaxbsd.h: Update copyright.
6205 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6206 (DEPRECATED_IN_SIGTRAMP): Define.
6207 * config/m68k/tm-nbsd.h: Update copyright.
6208 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6209 (DEPRECATED_IN_SIGTRAMP): Define.
6210
50ea7769
MK
62112004-05-01 Mark Kettenis <kettenis@gnu.org>
6212
03ac2a74
MK
6213 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
6214 encondings. Fixes PR gdb/1628.
6215
50ea7769
MK
6216 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
6217 DW_CFA_restore state without a matching DW_CFA_remember_state
6218 instead of aborting. Fixes PR backtrace/1589.
6219
9a5d7be1
JB
62202004-04-30 Joel Brobecker <brobecker@gnat.com>
6221
6222 * MAINTAINERS: Add self as AIX maintainer.
6223 Update my e-mail address in write-after-approval section.
6224
2593d1cd
AC
62252004-04-30 Andrew Cagney <cagney@redhat.com>
6226
ce12bbf9
AC
6227 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
6228 (legacy_get_prev_frame): Ditto.
6229
36710c63
AC
6230 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
6231 (mips_gdbarch_init): Do not set pc_in_sigtramp.
6232 * mipsread.c (sigtramp_address): Delete extern variable.
6233 (mipscoff_new_init): Delete reference.
6234 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
6235 (fixup_sigtramp): Delete function.
6236 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
6237 (fixup_sigtramp): Delete declarations.
6238
2593d1cd
AC
6239 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
6240 deprecated_pc_in_sigtramp.
6241 (ppcnbsd_pc_in_sigtramp): Delete function.
6242
2a25f91c
MK
62432004-05-01 Mark Kettenis <kettenis@gnu.org>
6244
6245 * config/m68k/nm-nbsd.h: Tweak comments.
6246 * config/m68k/nm-nbsdaout.h: Likewise.
6247
0b281939
AC
62482004-04-30 Andrew Cagney <cagney@redhat.com>
6249
6250 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
6251 legacy_pc_in_sigtramp.
6252 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
6253
8f2d3ea0
MK
62542004-05-01 Mark Kettenis <kettenis@gnu.org>
6255
6256 Add OpenBSD/m68k support.
6257 * NEWS (New native configurations): Mention OpenBSD/m68k.
6258 * m68kbsd-tdep.c: New file.
6259 * m68kbsd-nat.c: New file.
6260 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
6261 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
6262 * configure.host: Add m68k-*-openbsd.
6263 * configure.tgt: Add m68k-*-openbsd.
6264 * config/m68k/tm-obsd.h: New file.
6265 * config/m68k/obsd.mt: New file.
6266 * config/m68k/obsd.mh: New file.
6267 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
6268 m68kbsd-tdep.c.
6269
c40f49a4
AC
62702004-04-30 Andrew Cagney <cagney@redhat.com>
6271
6272 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
6273 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
6274
e81554cd
MK
62752004-04-30 Mark Kettenis <kettenis@gnu.org>
6276
6277 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
6278 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
6279
d4dc1a91
BF
62802004-04-30 Brian Ford <ford@vss.fsi.com>
6281
6282 Revert 2004-04-16 change.
6283 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
6284 (i386_coff_init_abi): Remove.
6285 * i386-tdep.h (i386_coff_init_abi): Remove.
6286 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
6287
2f72f850
AC
62882004-04-30 Andrew Cagney <cagney@redhat.com>
6289
e492f9d6
AC
6290 * blockframe.c (find_pc_partial_function): Delete use of
6291 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
6292 DEPRECATED_SIGTRAMP_END.
6293
7b7adad0
AC
6294 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
6295 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
6296 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
6297 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
6298 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
6299
2f72f850
AC
6300 * defs.h (deprecated_inside_entry_file): Delete declaration.
6301 * blockframe.c (deprecated_inside_entry_file): Delete function.
6302 (legacy_frame_chain_valid): Delete call.
6303 * sh64-tdep.c (sh64_frame_chain): Delete call.
6304 * objfiles.h: Update comments.
6305 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
6306 call.
6307 * frame.c (get_prev_frame): Delete call, update comments.
6308
283f90a7
BF
63092004-04-30 Brian Ford <ford@vss.fsi.com>
6310
6311 * MAINTAINERS (Write After Approval): Add myself.
6312
8ee56bcf
AC
63132004-04-30 Andrew Cagney <cagney@redhat.com>
6314
6315 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
6316 * gdbarch.h, gdbarch.c: Re-generate.
6317 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
6318 code.
6319
ee27e1b6
AC
63202004-04-30 Andrew Cagney <cagney@redhat.com>
6321
6322 * gdb-events.sh (selected_thread_changed)
6323 (selected_frame_level_changed, target_changed): Delete.
6324 * gdb-events.h, gdb-events.c: Re-generate.
6325 * valops.c (value_assign): Update.
6326 * stack.c (select_frame_command, up_silently_base)
6327 (down_silently_base): Update.
6328
d5ac5a39
AC
63292004-04-29 Andrew Cagney <cagney@redhat.com>
6330
6331 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
6332 registers correctly.
6333 (print_gp_register_row, mips32_heuristic_proc_desc)
6334 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
6335 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
6336 references to mips_isa_regsize.
6337
ceae6e75
AC
63382004-04-29 Andrew Cagney <cagney@redhat.com>
6339
6340 * mips-tdep.c (struct gdbarch_tdep): Delete
6341 mips_fp_register_double.
6342 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
6343 mips_abi_regsize.
6344 (mips_gdbarch_init): Do not set mips_fp_register_double.
6345 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
6346
a587af0b
AC
63472004-04-29 Joel Brobecker <brobecker@gnat.com>
6348
6349 Committed by Andrew Cagney.
6350 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
6351 function calls.
6352
13326b4e
AC
63532004-04-29 Andrew Cagney <cagney@redhat.com>
6354
6355 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
6356 gdbarch, use mips_abi, update callers.
6357 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
6358 mips_abi_regsize, update callers.
6359 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
6360 mips_default_abi_regsize.
6361 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
6362 mips_default_abi_regsize.
6363
711cc5cd
AC
63642004-04-29 Andrew Cagney <cagney@redhat.com>
6365
1b13c4f6
AC
6366 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
6367 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
6368 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
6369 mips_default_abi_regsize.
6370 (mips_isa_regsize): Rename mips_regisze.
6371 * mipsnbsd-tdep.c: Update.
6372 * mips-linux-tdep.c: Update.
6373 * irix5-nat.c: Update.
6374 * mips-tdep.h (mips_isa_regsize): Update.
6375
711cc5cd
AC
6376 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
6377 Delete all disabled code.
6378 * gdb-events.h, gdb-events.c: Re-generate.
6379
e63bbc88
MK
63802004-04-19 Jerome Guitton <guitton@gnat.com>
6381 Mark Kettenis <kettenis@gnu.org>
6382
6383 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
6384 the function begins with a branch instruction.
6385
fd35795f
MK
63862004-04-29 Mark Kettenis <kettenis@gnu.org>
6387
6388 * i386-tdep.c: Fix spelling mistakes.
6389
c960c18f
AC
63902004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6391 Andrew Cagney <cagney@redhat.com>
6392
6393 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
6394 <sys/proc.h>.
6395 * acconfig.h: Provide default _KMEMUSER value.
6396 * config.in, configure: Re-generate.
6397 * NEWS: Mention fix.
6398
50306a9d
RC
63992004-04-24 Randolph Chung <tausq@debian.org>
6400
6401 * configure.host (hppa*-*-linux*): New target.
6402 * configure.tgt (hppa*-*-linux*): Likewise.
6403 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
6404 gdbarch_init_osabi() call earlier so that osabi-specific frame
6405 unwinders can be registered first.
6406 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
6407 hppa-linux-nat.c.
6408 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
6409 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
6410 * config/pa/linux.mh: New file.
6411 * config/pa/linux.mt: New file.
6412 * config/pa/nm-linux.h: New file.
6413 * config/pa/xm-linux.h: New file.
6414 * hppa-linux-nat.c: New file.
6415 * hppa-linux-tdep.c: New file.
6416
2a6228ef
RC
64172004-04-28 Randolph Chung <tausq@debian.org>
6418
6419 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
6420 return values.
6421 (hppa32_push_dummy_call): Fix small struct and floating point argument
6422 passing, and make sure the stack frame is properly aligned.
6423
82c10df6
AC
64242004-04-28 Andrew Cagney <cagney@redhat.com>
6425
d762c46a
AC
6426 * stack.c (print_stack_frame): Fix description.
6427
82c10df6
AC
6428 * NEWS: Mention gdb/gdbserver/configure execute permission
6429 changed. PR server/519.
6430
0faf0076
AC
64312004-04-28 Andrew Cagney <cagney@redhat.com>
6432
6433 * stack.c (print_stack_frame_stub): Delete declaration.
6434 (struct print_stack_frame_args, print_stack_frame)
6435 (print_frame_info, print_frame): Replace "source" with print what.
6436 Replace "print" with "print_level". Replace "args" with
6437 "print_args".
6438 * frame.h (show_and_print_stack_frame, print_stack_frame)
6439 (print_frame_info): Update declarations.
6440 * stack.c (select_and_print_frame, frame_command)
6441 (current_frame_command, up_command, down_command): Update calls -
6442 use get_selected_frame, pass "enum print_what" for source, do not
6443 call frame_relative_level.
6444 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
6445 * remote-rdp.c (remote_rdp_open): Ditto.
6446 * remote-mips.c (common_open): Ditto.
6447 * remote-e7000.c (e7000_start_remote): Ditto.
6448 * ocd.c (ocd_start_remote): Ditto.
6449 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
6450 * infrun.c (normal_stop): Ditto.
6451 * inflow.c (kill_command): Ditto.
6452 * infcmd.c (finish_command): Ditto.
6453 * corelow.c (core_open): Ditto.
6454 * tracepoint.c (finish_tfind_command): Ditto.
6455 * thread.c (info_threads_command, info_threads_command)
6456 (restore_current_thread, do_captured_thread_select): Ditto.
6457 * ada-tasks.c (task_command): Ditto.
6458
f4c5303c
OF
64592004-04-26 Orjan Friberg <orjanf@axis.com>
6460
6461 * frame.c: Include "observer.h".
6462 (frame_observer_target_changed): New function.
6463 (_initialize_frame): Attach target_changed observer.
6464 * regcache.c: Include "observer.h".
6465 (regcache_observer_target_changed): New function.
6466 (_initialize_regcache): Attach target_changed observer.
6467 * valops.c: Include "observer.h".
6468 (value_assign): Notify target_changed event when modifying register.
6469 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
6470
7270d8f2
OF
64712004-04-26 Orjan Friberg <orjanf@axis.com>
6472
6473 From Paul Koning <pkoning@equallogic.com>:
6474 * breakpoint.c (free_valchain): New function.
6475 (insert_bp_location, delete_breakpoint): Use free_valchain.
6476 (remove_breakpoint): Do not remove the valchain.
6477 (bpstat_stop_status): If not stopped by watchpoint, skip
6478 watchpoints when generating stop status list.
6479 * infrun.c (handle_inferior_event): Make
6480 stepped_after_stopped_by_watchpoint a global variable.
6481 * remote.c (remote_stopped_data_address): Return watch data
6482 address rather than zero if stepped_after_stopped_by_watchpoint is
6483 set.
6484
02d62932
MC
64852004-04-25 Michael Chastain <mec.gnu@mindspring.com>
6486
6487 Fix PR gdb/1626.
6488 * configure.in: Check for curses after termcap.
6489 On osf5.*, do not check for ncurses.
6490 * configure: Regenerate.
6491
3e9a183c
MK
64922004-04-25 Mark Kettenis <kettenis@gnu.org>
6493
c79ac407
MK
6494 * ppcobsd-nat.c: Include "ppc-tdep.h".
6495 * Makefile.in (ppcobsd-nat.o): Update dependencies.
6496
3e9a183c
MK
6497 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
6498 Fixes PR tdep/1623 and PR tdep/1624.
6499
38cc9c28
MC
65002004-04-24 Michael Chastain <mec.gnu@mindspring.com>
6501
6502 * xmodem.h, xmodem.c: Remove files.
6503 * Makefile.in: Remove references to xmodem.h, xmodem.c.
6504
7f07c5b6
RC
65052004-04-23 Randolph Chung <tausq@debian.org>
6506
6507 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
6508 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
6509 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
6510 for handling stackless frames.
6511 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
6512
9f7194c3
RC
65132004-04-23 Randolph Chung <tausq@debian.org>
6514
6515 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
6516 starts at a pc before the frame is created.
6517
dcff6009
JB
65182004-04-23 Joel Brobecker <brobecker@gnat.com>
6519
6520 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
6521
40711ff1 65222004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
6523
6524 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
6525 use convert_typed_floating to get the appropriate format.
6526
abc485a1
RC
65272004-04-22 Randolph Chung <tausq@debian.org>
6528
6529 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
6530 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
6531 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
6532 (hppa_sign_extend): Add prototype.
6533 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
6534 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
6535 (sign_extend): Rename with hppa_ prefix and make non-static. Other
6536 hppa targets will also use these functions.
6537 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
6538 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
6539 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
6540 (hppa_gdbarch_init): Remove gdbarch setting of
6541 skip_trampoline_code, in_solib_call_trampoline and
6542 in_solib_return_trampoline.
6543 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6544 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
6545 hppa_in_solib_call_trampoline.
6546 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
6547 Moved from hppa-tdep.c.
6548 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
6549 in_solib_call_trampoline and in_solib_return_trampoline.
6550
369aa520
RC
65512004-04-22 Randolph Chung <tausq@debian.org>
6552
6553 * hppa-tdep.c (hppa_debug): New variable.
6554 (find_unwind_entry, hppa_frame_cache): Add debug output.
6555 (_initialize_hppa_tdep): Add command to set debug flag.
6556
476be15e
AC
65572004-04-22 Andrew Cagney <cagney@redhat.com>
6558
6559 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
6560 "trad-frame.h".
6561 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
6562 signal trampoline unwinder.
6563 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
6564
d195bc9f
MK
65652004-04-22 Mark Kettenis <kettenis@gnu.org>
6566
6567 Add OpenBSD/powerpc support.
6568 * NEWS (New native configurations): Mention OpenBSD/powerpc.
6569 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
6570 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
6571 (ppc_collect_fpregset): New prototypes.
6572 * ppcobsd-nat.c: New file.
6573 * ppcobsd-tdep.c: New file.
6574 * ppcobsd-tdep.h: New file.
6575 * rs6000-tdep.c: Include "regset.h".
6576 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
6577 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
6578 New functions.
6579 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
6580 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
6581 (rs6000-tdep.o): Update dependencies.
6582 * configure.host: Add powerpc-*-openbsd.
6583 * configure.tgt: Add powerpc-*-openbsd.
6584 * config/powerpc/obsd.mh: New file.
6585 * config/powerpc/nm-obsd.h: New file.
6586 * config/powerpc/obsd.mt: New file.
6587
6f14cc33
AC
65882004-04-22 Andrew Cagney <cagney@redhat.com>
6589
fcf29e5f
AC
6590 * frame.h (show_frame_info): Delete declaration.
6591
6f14cc33
AC
6592 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
6593 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
6594 * m32r-tdep.c (m32r_frame_this_id): Ditto.
6595 * frv-tdep.c (frv_frame_this_id): Ditto.
6596 * avr-tdep.c (avr_frame_this_id): Ditto.
6597
e5786a5c
EZ
65982004-04-22 Elena Zannoni <ezannoni@redhat.com>
6599
6600 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
6601
26e75e5c
JB
66022004-04-22 Jim Blandy <jimb@redhat.com>
6603
6604 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
6605 register number zero.
6606
d8d65dd3
MS
66072004-04-21 Michael Snyder <msnyder@redhat.com>
6608
6609 * mips-tdep.c (heuristic_proc_start):
6610 Warning() already prefixes "Warning: ".
6611
9a4105ab
AC
66122004-04-21 Andrew Cagney <cagney@redhat.com>
6613
6614 * annotate.h (deprecated_annotate_starting_hook)
6615 (deprecated_annotate_stopped_hook)
6616 (deprecated_annotate_exited_hook)
6617 (deprecated_annotate_signal_hook)
6618 (deprecated_annotate_signalled_hook): Deprecate.
6619 * tracepoint.h (deprecated_create_tracepoint_hook)
6620 (deprecated_delete_tracepoint_hook)
6621 (deprecated_modify_tracepoint_hook)
6622 (deprecated_trace_find_hook)
6623 (deprecated_trace_start_stop_hook): Deprecate.
6624 * target.h (deprecated_target_new_objfile_hook): Deprecate.
6625 * remote.h (deprecated_target_resume_hook)
6626 (deprecated_target_wait_loop_hook): Deprecate.
6627 * gdbcore.h (deprecated_exec_file_display_hook)
6628 (deprecated_file_changed_hook): Deprecate.
6629 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
6630 * defs.h (deprecated_modify_breakpoint_hook)
6631 (deprecated_command_loop_hook, deprecated_show_load_progress)
6632 (deprecated_print_frame_info_listing_hook)
6633 (deprecated_query_hook, deprecated_warning_hook)
6634 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
6635 (deprecated_delete_breakpoint_hook)
6636 (deprecated_interactive_hook, deprecated_registers_changed_hook)
6637 (deprecated_readline_begin_hook, deprecated_readline_hook)
6638 (deprecated_readline_end_hook, deprecated_register_changed_hook)
6639 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
6640 (deprecated_context_hook, deprecated_target_wait_hook)
6641 (deprecated_attach_hook, deprecated_detach_hook)
6642 (deprecated_call_command_hook, deprecated_set_hook)
6643 (deprecated_error_hook, deprecated_error_begin_hook)
6644 (deprecated_ui_load_progress_hook): Deprecate.
6645 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
6646 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
6647 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
6648 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
6649 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
6650 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
6651 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
6652 * annotate.c, aix-thread.c: Update.
6653
62cf13cc
AC
66542004-04-21 Andrew Cagney <cagney@redhat.com>
6655
b2e31a62
AC
6656 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
6657 * vaxnbsd-tdep.c: Include "gdb_string.h".
6658
62cf13cc
AC
6659 * symfile.c (symbol_file_add_from_memory): #if 0 function.
6660 (add_symbol_file_from_memory_command): #if 0 function body, call
6661 error instead.
6662
00e32a35
AC
66632004-04-21 Andrew Cagney <cagney@redhat.com>
6664
6665 * gdbcore.h: Update copyright.
6666 (deprecated_add_core_fns): Rename add_core_fns.
6667 * win32-nat.c (_initialize_core_win32): Update.
6668 * sun3-nat.c (_initialize_core_sun3): Update.
6669 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
6670 * rs6000-nat.c (_initialize_core_rs6000): Update.
6671 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
6672 * nto-tdep.c (_initialize_nto_tdep): Update.
6673 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
6674 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
6675 * mips-nat.c (_initialize_core_mips): Update.
6676 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
6677 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
6678 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
6679 * lynx-nat.c (_initialize_core_lynx): Update.
6680 * irix5-nat.c (_initialize_core_irix5): Update.
6681 * i386-interix-nat.c (_initialize_core_interix): Update.
6682 * cris-tdep.c (_initialize_cris_tdep): Update.
6683 * corelow.c (deprecated_add_core_fns): Update.
6684 * core-regset.c (_initialize_core_regset): Update.
6685 * core-aout.c (_initialize_core_aout): Update.
6686 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
6687 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
6688 * alpha-nat.c (_initialize_core_alpha): Update.
6689
13c7b1ca
JB
66902004-04-21 Jim Blandy <jimb@redhat.com>
6691
6692 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
6693
7b5a2f43
DJ
66942004-04-19 Daniel Jacobowitz <drow@mvista.com>
6695
6696 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
6697 Delete.
6698 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
6699 (read_attribute_value): Update calls to dwarf_alloc_block.
6700 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
6701 dwarf2_tmp_obstack.
6702 (psymtab_to_symtab_1): Likewise. Clean up using
6703 free_stack_comp_unit.
6704 (add_to_cu_func_list): Use the comp_unit_obstack.
6705
05cf31d1
JB
67062004-04-19 Joel Brobecker <brobecker@gnat.com>
6707
6708 * dwarf2read.c (dwarf2_flag_true_p): New function.
6709 (die_is_declaration): Use the function above. Add some comments.
6710
adf93a2f
MK
67112004-04-19 Mark Kettenis <kettenis@gnu.org>
6712
6713 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
6714 architecture when registering sparcnbsd_core_osabi_sniffer.
6715 Adjust comment.
6716
748894bf
MK
67172004-04-18 Mark Kettenis <kettenis@gnu.org>
6718
f622ad42
MK
6719 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
6720 return value.
6721
c4fc7f1b
MK
6722 Based on a patch from Brian Ford <ford@vss.fsi.com>:
6723 * i386-tdep.c: Correct register numbering scheme comments
6724 throughout.
6725 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
6726 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
6727 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
6728 (i386_gdb_arch_init): Likewise.
6729
b4ead1bd
MK
6730 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
6731 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
6732 ppcnbsd-tdep.o.
6733
748894bf
MK
6734 * m68k-tdep.h: Tweak comments.
6735 * m68k-tdep.c: Tweak comment.
6736
fdd72f95
RC
67372004-04-17 Randolph Chung <tausq@debian.org>
6738
6739 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
6740 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
6741 (hppa_hpux_som_init_abi): Set is_elf to 0.
6742 (hppa_hpux_elf_init_abi): Set is_elf to 1.
6743 * hppa-tdep.c (low_text_segment_address): Remove global.
6744 (record_text_segment_lowaddr): Pass in low address as parameter. Use
6745 section offset to calculate segment address.
6746 (internalize_unwinds): Define low_text_segment_address as local and
6747 pass to record_text_segment_lowaddr for ELF targets.
6748 (hppa_gdbarch_init): Zero fill tdep structure.
6749 (hppa_dump_tdep): Print tdep structure.
6750 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
6751
0f8d9d59
RC
67522004-04-17 Randolph Chung <tausq@debian.org>
6753
6754 * hppa-tdep.c (hppa_pseudo_register_read): Define.
6755 (hppa_gdbarch_init): Set pseudo_register_read.
6756 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
6757 * regcache.c (supply_register): Remove check for
6758 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
6759
7c46b9fb
RC
67602004-04-17 Randolph Chung <tausq@debian.org>
6761
6762 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
6763 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
6764 (hpread_adjust_stack_address): Move to hpread.c.
6765 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
6766 obj_private_struct): Move from tm-hppa.h.
6767 * hpread.c (hppa-tdep.h): Include.
6768 (hpread_adjust_stack_address): Move from hppa-tdep.c.
6769 (hpread_read_function_type, hpread_read_doc_function_type)
6770 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
6771 directly.
6772 * pa64solib.c (hppa-tdep.h): Include.
6773 * somsolib.c (hppa-tdep.h): Include.
6774 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
6775 inferior_status): Remove unused forward declarations.
6776 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
6777 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
6778 obj_private_struct): Move to hppa-tdep.h.
6779 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
6780
8d153463
RC
67812004-04-17 Randolph Chung <tausq@debian.org>
6782
6783 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
6784 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
6785 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
6786 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
6787 Remove forward declaration and make static.
6788 (hppa_reg_struct_has_addr): Remove.
6789
350c2e5b
JB
67902004-04-16 Joel Brobecker <brobecker@gnat.com>
6791
6792 * observer.sh: Move comments in sed command to first column.
6793
bbde78fa
JM
67942004-04-16 Jason Molenda (jmolenda@apple.com)
6795
6796 * frame.c: Minor typeo corrections in comments.
6797
e0270fd9
JB
67982004-04-16 Joel Brobecker <brobecker@gnat.com>
6799
6800 * observer.c (observer_test_first_notification_function): Update
6801 function profile.
6802 (observer_test_second_notification_function): Likewise.
6803 (observer_test_third_notification_function): Likewise.
6804
3d049254
MK
68052004-04-16 Mark Kettenis <kettenis@gnu.org>
6806
6807 From Brian Ford <ford@vss.fsi.com>:
6808 * i386-tdep.c (i386_coff_init_abi): New function.
6809 * i386-tdep.h (i386_coff_init_abi): New prototype.
6810 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
6811 register number translation functions for DWARF and DWARF 2.
6812
7867684d
JB
68132004-04-16 Joel Brobecker <brobecker@gnat.com>
6814
6815 * dwarf2read.c: Back out my previous change, it was incorrect.
6816
72bf9492
DJ
68172004-04-16 Daniel Jacobowitz <drow@mvista.com>
6818
6819 * dwarf2read.c: Include "hashtab.h".
6820 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
6821 has_namespace_info.
6822 (struct partial_die_info): Add comments. Use bitfields to reduce
6823 memory footprint. Add scope, scope_set, has_specification,
6824 spec_offset, die_parent, die_child, and die_sibling.
6825 (peek_die_abbrev): Add prototype.
6826 (partial_read_comp_unit_head): New function, broken out from
6827 dwarf2_build_psymtabs_hard.
6828 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
6829 Use partial_read_comp_unit_head. Initialize the CU and
6830 comp_unit_obstack. Update calls to read_partial_die and
6831 scan_partial_symbols. Use free_stack_comp_unit and
6832 load_partial_dies.
6833 (scan_partial_symbols): Change PDI to a pointer. Use the child and
6834 sibling pointers to walk partial DIEs. Call fixup_partial_die.
6835 Update calls to helper functions. Remove NAMESPACE argument.
6836 Update comments.
6837 (partial_die_parent_scope, partial_die_full_name): New functions.
6838 (add_partial_symbol): Remove namespace argument. Update call to
6839 pdi_needs_namespace. Use partial_die_full_name. Handle
6840 DW_TAG_namespace. Check has_namespace_info flag.
6841 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
6842 tag. Handle namespaces.
6843 (add_partial_namespace, add_partial_enumeration): Simplify.
6844 (guess_structure_name): New function, derived from
6845 add_partial_structure.
6846 (add_partial_structure): Remove.
6847 (determine_class_name): Update comment.
6848 (dwarf2_read_abbrevs): Set has_namespace_info flag.
6849 (is_type_tag_for_partial, load_partial_dies): New functions.
6850 (read_partial_die): Pass abbrev and abbrev_len as arguments.
6851 Record specifications instead of following them immediately.
6852 (find_partial_die_in_comp_unit, find_partial_die)
6853 (fixup_partial_die, free_stack_comp_unit)
6854 (hashtab_obstack_allocate, dummy_obstack_deallocate)
6855 (partial_die_hash, partial_die_eq): New functions.
6856 * Makefile.in (hashtab_h): Define.
6857 (dwarf2read.o): Update dependencies.
6858 (observer_inc, observer_h): Move to the correct section.
6859
fdc860a3
JB
68602004-04-15 Joel Brobecker <brobecker@gnat.com>
6861
6862 * dwarf2read.c (dwarf2_attribute_true_p): New function.
6863 (die_is_declaration): Use the function above. Add comment.
6864
dc718098
JB
68652004-04-15 Joel Brobecker <brobecker@gnat.com>
6866
6867 * dwarf2read.c (read_structure_scope): Identify stub types
6868 using die_is_declaration() only.
6869
8718a420
RM
68702004-04-15 Roland McGrath <roland@redhat.com>
6871
6872 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
6873 argument instead of NAME.
6874 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
6875 in call to symbol_file_add_with_addrs_or_offsets.
6876 (build_addr_info): New function, helper for ...
6877 (symbol_file_add_from_memory): New function.
6878 (add_symbol_file_from_memory_command): New function using that.
6879 (_initialize_symfile): Register it for add-symbol-file-from-memory.
6880 (pre_add_symbol_hook): Add const to argument type.
6881 * symfile.h (symbol_file_add_from_memory): Declare it.
6882
8b910bab
MK
68832004-04-15 Mark Kettenis <kettenis@gnu.org>
6884
9f076e7a
MK
6885 * NEWS (New native configurations): Mention OpenBSD/vax.
6886 * configure.host: Add vax-*-openbsd*.
6887 * config/vax/obsd.mh: New file.
6888 * config/vax/nm-obsd.h: New file.
6889
8b910bab
MK
6890 * vax-tdep.c: Include "regset.h".
6891 (vax_supply_gregset): New function.
6892 (vax_gregset): New variable.
6893 (vax_regset_from_core_section): New function.
6894 (vax_gdbarch_init): Set regset_from_core_section.
6895 * Makefile.in (vax-tdep.o): Update dependencies.
6896
7a464420
AC
68972004-04-15 Andrew Cagney <cagney@redhat.com>
6898
6899 * observer.c (normal_stop_subject, observer_notify_normal_stop)
6900 (observer_normal_stop_notification_stub)
6901 (observer_attach_normal_stop, observer_detach_normal_stop):
6902 Delete, replaced by #include "observer.inc".
6903 * infrun.c (normal_stop): Pass "stop_bpstat" to
6904 observer_notify_normal_stop.
6905 * Makefile.in (observer_inc): Define.
6906 (observer.o): Update dependencies.
6907 (observer.h, observer.inc): New rules.
6908 * observer.h: Delete file.
6909 * observer.sh: New file.
6910
e36ad527
MK
69112004-04-15 Mark Kettenis <kettenis@gnu.org>
6912
6913 * vax-tdep.c (vax_frame_cache): Fix typo.
6914
67b441e1
MK
69152004-04-14 Mark Kettenis <kettenis@gnu.org>
6916
6f606e1c
MK
6917 * NEWS (New native configurations): Mention NetBSD/vax.
6918 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
6919 * config/vax/nbsdelf.mh: New file.
6920 * config/vax/nbsdaout.mh: New file.
6921 * config/vax/nm-nbsd.h: New file.
6922 * config/vax/nm-nbsdaout.h: New file.
6923
9c5519a5
MK
6924 * vaxnbsd-tdep.c: New file.
6925 * Makefile.in (vaxnbsd-tdep.o): New dependency.
6926 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
6927 * config/vax/nbsd.mt: New file.
6928 * config/vax/tm-nbsd.h: New file.
6929
4844a614
MK
6930 * Makefile.in (vaxbsd-nat.o): New dependency.
6931
67b441e1
MK
6932 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
6933 * vax-tdep.c (vax_store_arguments): Remove struct_return and
6934 struct_addr arguments. Don't push return value address.
6935 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
6936 arguments to vax_store_arguments. Store return value address in
6937 R1.
6938 (vax_store_struct_return, vax_extract_return_value)
6939 (vax_store_return_value): Remove functions.
6940 (vax_return_value): New function.
6941 (vax_gdbarch_init): Set return value. Don't set
6942 deprecated_store_struct_return, deprecated_extract_struct_return
6943 and deprecated_store_return_value.
6944
6672f2ae
AS
69452004-04-14 Andreas Schwab <schwab@suse.de>
6946
6947 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
6948 value buffer.
6949 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
6950
7346c184
MK
69512004-04-14 Mark Kettenis <kettenis@gnu.org>
6952
6953 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
6954 (vax_unwind_dummy_id): New functions.
6955 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
6956 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
6957 variables.
6958 (vax_fix_call_dummy): Remove function.
6959 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
6960 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
6961 call_dummy_location, deprecated_call_dummy_words,
6962 deprecated_sizeof_call_dummy_words,
6963 deprecated_call_dummy_breakpoint_offset,
6964 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
6965 and deprecated_dummy_write_sp.
6966
58e23df4
DC
69672004-04-13 David Carlton <carlton@kealia.com>
6968
6969 * MAINTAINERS: Move myself to "paper trail" section.
6970
5e6b39ff
MK
69712004-04-12 Mark Kettenis <kettenis@gnu.org>
6972
7def7fef
MK
6973 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
6974 "trad-frame.h".
6975 (vax_frame_init_saved_regs): Remove function.
6976 (vax_sigtramp_saved_pc): Remove function.
6977 (vax_frame_saved_pc): Remove function.
6978 (vax_frame_args_address): Remove function.
6979 (vax_frame_num_args): Rewrite.
6980 (vax_frame_chain): Remove function.
6981 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
6982 VAX_FP_REGNUM.
6983 (vax_pop_frame): Likewise.
6984 (vax_saved_pc_after_call): Remove function.
6985 (struct vax_frame_cache): New structure.
6986 (vax_frame_cache): New function.
6987 (vax_frame_this_id): New function.
6988 (vax_frame_prev_register): New function.
6989 (vax_frame_unwind): New variable.
6990 (vax_frame_sniffer): New function.
6991 (vax_frame_base_address): New function.
6992 (vax_frame_args_address): New function.
6993 (vax_frame_base): New variable.
6994 (vax_unwind_pc): New function.
6995 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
6996 deprecated_fp_regnum, deprecated_saved_pc_after_call,
6997 deprecated_frame_chain, deprecated_frame_saved_pc,
6998 deprecated_frame_args_address and
6999 deprecated_frame_init_saved_regs.
7000 * Makefile.in (vax-tdep.o): Update dependencies.
7001
53284fc1
MK
7002 * vaxbsd-nat.c: New file.
7003
5e6b39ff
MK
7004 * vax-tdep.h: Update copyright year. Adjust comments.
7005 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
7006 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
7007 (vax_regnum): New enum. Replacing...
7008 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
7009 (VAX_PS_REGNUM): ... these removed macros.
7010 * vax-tdep.c (vax_register_name): Remove prototype.
7011 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
7012 (vax_register_byte, vax_register_raw_size,
7013 vax_register_virtual_size, vax_register_virtual_type): Remove
7014 functions.
7015 (vax_register_type): New function.
7016 (vax_breakpoint_from_pc): Reorganize.
7017 (vax_gdbarch_init): Set register_type. Don't set
7018 deprecated_register_size, deprecated_register_bytes,
7019 deprecated_register_byte, deprecated_register_raw_size,
7020 deprecated_max_register_raw_size,
7021 deprecated_register_virtual_size,
7022 deprecated_max_register_virtual_size and
7023 deprecated_register_virtual_type. Add comment on stack direction.
7024
e9c71e9f
MK
70252004-04-11 Mark Kettenis <kettenis@gnu.org>
7026
7027 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
7028 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 7029 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 7030
d46f1176 70312004-04-10 Randolph Chung <tausq@debian.org>
8718a420 7032
d46f1176
RC
7033 * MAINTAINERS (write after approval): Add myself.
7034
a2a84a72
RC
70352004-04-07 Randolph Chung <tausq@debian.org>
7036
7037 * hppa-tdep.c (hppa_inner_than): Remove.
7038 (is_pa_2): Remove unused static variable.
8718a420 7039 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 7040
e85c3284
PH
70412004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
7042
7043 * language.h (language_defn): Add new la_post_parser field.
7044 * parser-defs.h (null_post_parser): New declaration (default for
7045 la_post_parser).
8718a420 7046
e85c3284
PH
7047 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
7048 insert call to that function.
7049 (parse_exp_in_context): New function, including code formerly in
8718a420 7050 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
7051 prefixification.
7052 (parse_expression_in_context): New exported function.
7053 (null_post_parser): New definition.
7054 * expression.h (parse_expression_in_context): Add declaration.
8718a420 7055
e85c3284
PH
7056 * p-lang.c (pascal_language_defn): Add trivial post-parser.
7057 * c-lang.c (c_language_defn): Ditto.
7058 (cplus_language_defn): Ditto.
7059 (asm_language_defn): Ditto.
7060 (minimal_language_defn): Ditto.
7061 * f-lang.c (f_language_defn): Ditto.
7062 * jv-lang.c (java_language_defn): Ditto.
7063 * language.c (unknown_language_defn): Ditto.
7064 (auto_language_defn): Ditto.
7065 (local_language_defn): Ditto.
7066 * m2-lang.c (m2_language_defn): Ditto.
7067 * scm-lang.c (scm_language_defn): Ditto.
7068 * obj-lang.c (objc_language_defn): Ditto.
8718a420 7069
d9f8c85b
MK
70702004-04-10 Mark Kettenis <kettenis@gnu.org>
7071
fa34704a
MK
7072 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
7073 (amd64nbsd_mcontext_addr): New function.
7074 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
7075 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
7076 with amd64nbsd_r_reg_offset, instead of building it on the fly.
7077
403e1656
MK
7078 * corelow.c (core_xfer_partial): Fix coding standards violation.
7079 Add support for TARGET_OBJECT_WCOOKIE.
7080
a57e5a95
MK
7081 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
7082 deprecated_pc_in_sigtramp.
7083 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
7084 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
7085 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
7086 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7087 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
7088 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7089 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
7090
377d9ebd
MK
7091 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
7092 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
7093 Fix typo.
7094
f0ef85a5
MK
7095 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
7096 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
7097 (amd64_collect_fxsave): Likewise.
7098
d9f8c85b
MK
7099 * i386-sol2-tdep.c: Include "gdb_string.h".
7100 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
7101 name.
7102 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7103
75f501b5
MK
71042004-04-10 Mark Kettenis <kettenis@gnu.org>
7105
7106 * i386-sol2-tdep.c: Include "solib-svr4.h".
7107 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7108 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7109 * config/i386/tm-i386sol2.h: Include :solib.h".
7110 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
7111 solib-svr4.o and solib-legacy.o.
7112 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
7113 solib-svr4.o.
7114
b31bc724
MK
71152004-04-09 Mark Kettenis <kettenis@gnu.org>
7116
18bbbd9e
MK
7117 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
7118 whether a register is supplied by PTRACE_GETFPREGS.
7119 (store_inferior_registers): Likewise.
7120 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
7121 whether a register is supplied by PT_GETFPREGS.
7122 (store_inferior_registers): Likewise.
7123
3c30bf1b
MK
7124 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
7125 * config/i386/linux64.mt (TDEPFILES): Likewise.
7126
a4194092
MK
7127 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
7128
911bc6ee
MK
7129 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
7130 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
7131 the program counter is in the range specified by `struct
7132 gdbarch_tdep'.
7133 * amd64-linux-tdep.c: Include "symtab.h".
7134 (amd64_linux_pc_in_sigtramp): Remove function.
7135 (amd64_linux_sigtramp_p): New function.
7136 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
7137 deprecated_pc_in_sigtramp.
7138 * amd64nbsd-tdep.c: Include "symtab.h".
7139 (amd64nbsd_sigtramp_p): New function.
7140 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
7141 deprecated_pc_in_sigtramp.
7142 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
7143 few comments.
7144 (amd64obsd_pc_in_sigtramp): Remove function.
7145 (amd64obsd_sigtramp_p): New function.
7146 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
7147 deprecated_pc_in_sigtramp.
7148 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
7149 (i386bsd_pc_ins_sigtramp): Remove prototype.
7150 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
7151 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
7152 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
7153 the program counter is in the range specified by `struct
7154 gdbarch_tdep'.
7155 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
7156 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
7157 (i386_go32_pc_in_sigtramp): Remove function.
7158 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
7159 Initialize TDEP->sigtramp_p.
7160 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
7161 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
7162 deprecated_pc_in_sigtramp.
7163 * i386-linux-tdep.c: Adjust comments.
7164 (i386_linux_pc_in_sigtramp): Remove function.
7165 (i386_linux_sigtramp_p): New function.
7166 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
7167 deprecated_pc_in_sigtramp.
7168 * i386-nto-tdep.c: Update copyright year.
7169 (i386nto_pc_in_sigtramp): Remove function.
7170 (i386nto_sigtramp_p): New function.
7171 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
7172 SP_REGNUM.
7173 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
7174 deprecated_pc_in_sigtramp.
7175 * i386-sol2-tdep.c: Update copyright year.
7176 (i386_sol2_pc_in_sigtramp): Remove function.
7177 (i386_sol2_sigtramp_p): New function.
7178 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
7179 deprecated_pc_in_sigtramp.
7180 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
7181 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
7182 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7183 deprecated_sigtramp_start and deprecated_sigtramp_end.
7184 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
7185 (i386nbsd_pc_in_sigtramp): Remove function.
7186 (i386nbsd_sigtramp_p): New function.
7187 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7188 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
7189 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
7190 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
7191 (i386obsd_pc_in_sigtramp): Remove function.
7192 (i386obsd_sigtramp_p): New function.
7193 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
7194 functions.
7195 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7196 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
7197 TDEP->sigtramp_p.
7198 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
7199 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
7200 dependencies.
7201
e083e6ec
MK
7202 * config/i386/i386aout.mt: Remove file.
7203
bd153b94
MK
7204 * configure.tgt: Remove i[34567]86-*-go32*,
7205 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
7206 and i[34567]86-*-isc*. Set gdb_target to i386 for
7207 i[34567]86-*-netware* and i[34567]86-*-*.
7208 * config/i386/i386.mt: New file.
7209 * config/i386/embed.mt: Remove file.
7210 * config/i386/go32.mt: Remove file.
7211 * config/i386/i386nw.mt: Remove file.
7212 * config/i386/i386v.mt: Remove file.
7213 * config/i386/tm-go32.h: Remove file.
7214
4a1bcc8c
MK
7215 * tui/tui-hooks.c: Include "readline/readline.h" after
7216 "gdb_curses.h" instead of before.
7217 * tui/tui-io.c: Likewise.
7218
f9a79064
MK
7219 * tui/tui.c: Fix typo in comment.
7220
b31bc724
MK
7221 * sparc64-tdep.c (sparc_address_from_register): Remove function.
7222
f83f82bc
AC
72232004-04-08 Andrew Cagney <cagney@redhat.com>
7224
7225 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
7226 (deprecated_exception_support_initialized): Declare.
8718a420 7227 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
7228 (initialize_hp_cxx_exception_support)
7229 (child_enable_exception_callback): Update.
7230 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
7231 (deprecated_exception_support_initialized): Rename
7232 deprecated_exception_catchpoints_are_fragile and
7233 deprecated_exception_support_initialized.
7234 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
7235
7236 * symtab.c (deprecated_hp_som_som_object_present): Rename
7237 hp_som_som_object_present.
7238 * symtab.h (deprecated_hp_som_som_object_present): Declare.
7239 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
7240 Update. Delete extern declaration.
7241 * valops.c (hp_som_som_object_present): Ditto.
8718a420 7242 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
7243 (parse_nested_classes_for_hpacc): Ditto.
7244 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 7245 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
7246 (initialize_hp_cxx_exception_support): Ditto.
7247 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 7248 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 7249 (cp_print_class_method): Ditto.
8718a420 7250 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
7251 (c_type_print_base): Ditto.
7252 * c-exp.y (hp_som_som_object_present): Ditto.
7253
fb2be677
AC
72542004-04-08 Andrew Cagney <cagney@redhat.com>
7255
7256 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
7257 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
7258 (frame_unwind_find_by_frame): Re-implement the unwind code so
7259 that it can both prepend and append sniffers. Replace
7260 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
7261 * tramp-frame.c (tramp_frame_append): Use
7262 frame_unwind_prepend_unwinder.
7263 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
7264 frame_unwind_register_unwinder.
7265 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
7266 tramp_frame_append.
7267 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 7268 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
7269 (mips_linux_init_abi): Update.
7270
67faf007
KB
72712004-04-08 Kevin Buettner <kevinb@redhat.com>
7272
7273 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
7274 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
7275 file support.
7276
8973ff21
KB
72772004-04-07 Kevin Buettner <kevinb@redhat.com>
7278
7279 * ia64-tdep.c (elf.h): Don't include.
7280 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
7281
4a0e2f88
JM
72822004-04-07 Jason Molenda (jmolenda@apple.com)
7283
7284 * frame.h: Typeo corrections in comments.
7285
9872ad24
JB
72862004-04-07 Jim Blandy <jimb@redhat.com>
7287
7288 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
7289 %esp and %ebp
7290
70b216c8
MK
72912004-04-07 Mark Kettenis <kettenis@gnu.org>
7292
11d5789c
MK
7293 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
7294 * config/sparc/linux64.mt (TDEPFILES): Likewise.
7295 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
7296 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
7297 and solib-legacy.o.
7298 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
7299 solib-svr4.o.
7300 * config/sparc/tm-sol2.h: Update copyright year. Include
7301 "solib.h".
7302
70b216c8
MK
7303 * sparc-sol2-tdep.c: Update copyright year. Include
7304 "solib-svr4.h".
7305 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7306 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
7307 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 7308 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
7309 dependencies.
7310
6339dc9e
AC
73112004-04-06 Andrew Cagney <cagney@redhat.com>
7312
7313 * infttrace.c: Include "infttrace.h".
7314 * infttrace.h: Include "target.h".
7315 * Makefile.in (infttrace_h): Update.
7316 (infttrace.o): Update.
8718a420 7317
93449403
AC
73182004-04-06 Andrew Cagney <cagney@redhat.com>
7319
6d518969
AC
7320 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
7321 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
7322 move extern declarations from here ...
7323 * infttrace.h: ... to here.
7324 * Makefile.in (hppah-nat.o): Update dependencies.
7325
85f4f2d8
AC
7326 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
7327 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 7328 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
7329 (hppa_breakpoint_from_pc): Delete.
7330
93449403
AC
7331 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
7332
71456ec6
AC
73332004-04-05 Andrew Cagney <cagney@redhat.com>
7334
7335 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
7336 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
7337 <sys/file.h>.
8718a420 7338
4c02c60c
AC
73392004-04-06 Randolph Chung <tausq@debian.org>
7340
7341 Committed by Andrew Cagney (mechanical change).
7342 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
7343 exception_catchpoints_are_fragile, find_stub_with_shl_get,
7344 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
7345 child_enable_exception_callback, current_ex_event,
7346 null_symtab_and_line, child_get_current_exception_event,
7347 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
7348 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
7349 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
7350 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
7351 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
7352 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
7353 Move hpux-specific definitions ...
7354 * hppa-hpux-tdep.c: ... to here.
7355
3a515653
AC
73562004-04-05 Andrew Cagney <cagney@redhat.com>
7357
7358 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
7359 skip_prologue_using_sal.
7360
c1730d02
AC
73612004-04-05 Andrew Cagney <cagney@redhat.com>
7362
7363 * config/i386/tm-i386.h: Delete file.
7364 * config/i386/tm-vxworks.h: Update copyright, do not include
7365 "tm-i386.h".
7366 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
7367 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
7368 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
7369 * config/i386/ncr3000.mt (TM_FILE): Delete.
7370 * config/i386/interix.mt (TM_FILE): Delete.
7371 * config/i386/i386v.mt (TM_FILE): Delete.
7372 * config/i386/i386nw.mt (TM_FILE): Delete.
7373 * config/i386/i386gnu.mt (TM_FILE): Delete.
7374 * config/i386/i386aout.mt (TM_FILE): Delete.
7375 * config/i386/embed.mt (TM_FILE): Delete.
7376
8b67aa36
KB
73772004-04-05 Kevin Buettner <kevinb@redhat.com>
7378
7379 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
7380 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
7381 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
7382 (accg7_regnum): New constants.
7383 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
7384 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
7385 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
7386 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
7387 for accg registers.
7388 (frv_register_sim_regno): Update spr_map[].
7389
3c7012f5
AC
73902004-04-04 Andrew Cagney <cagney@redhat.com>
7391
7392 * config/mips/xm-riscos.h: Delete.
7393 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
7394 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
7395 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
7396 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
7397 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
7398 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
7399 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
7400 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
7401 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
7402 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
7403 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
7404 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
7405 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
7406 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
7407 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
7408 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
7409 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
7410 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
7411 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
7412 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
7413 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
7414 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
7415 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
7416 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
7417 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
7418 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 7419
3c7012f5
AC
7420 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
7421 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
7422 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
7423 * configure.host: Remove m680[01]0-sun-sunos3*,
7424 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
7425 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
7426 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
7427 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
7428 mips-*-riscos*.
7429 * NEWS: Mention removed systems.
7430
99d16a21
AC
74312004-04-04 Andrew Cagney <cagney@redhat.com>
7432
7433 GDB 6.1 release created from 6.1 branch.
7434
6cdf9d98
AC
74352004-04-04 Andrew Cagney <cagney@redhat.com>
7436
98d346c3
AC
7437 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
7438 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
7439 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
7440
6cdf9d98
AC
7441 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
7442 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
7443 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
7444
859a326d
JB
74452004-04-03 Jim Blandy <jimb@redhat.com>
7446
7447 * MAINTAINERS: Chris Faylor has changed employers; add him to
7448 "paper trail" section, and update his E-mail address.
7449
b87178c3
AC
74502004-04-03 Andrew Cagney <cagney@redhat.com>
7451
4ea2acf0
AC
7452 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
7453 generic dummy frames.
7454 * dummy-frame.c: Update copyright.
7455 (dummy_frame_sniffer): Delete check for generic dummy frames.
7456
d0bd2d18 7457 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 7458 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
7459 (REG_PARM_STACK_SPACE): Delete.
7460 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
7461 Inline reference to REG_PARM_STACK_SPACE.
7462
b87178c3
AC
7463 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
7464 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
7465 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7466 (FRAME_BASE_BEFORE_SIGTRAMP)
7467 (hppa32_hpux_frame_base_before_sigtramp)
7468 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
7469 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
7470 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
7471 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
7472 (FRAME_BASE_BEFORE_SIGTRAMP)
7473 (hppa64_hpux_frame_base_before_sigtramp)
7474 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
7475
43e2e1a0
AC
74762004-04-03 Andrew Cagney <cagney@redhat.com>
7477
7478 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
7479
ddc135a4
AC
74802004-04-02 Andrew Cagney <cagney@redhat.com>
7481
7482 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
7483 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
7484 * dummy-frame.h: Delete out-of-date comments.
7485 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
7486 * gdbarch.h, gdbarch.c: Re-generate.
7487
d15bfd3a 74882004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 7489
d15bfd3a
AC
7490 Committed by Andrew Cagney <cagney@redhat.com>.
7491 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
7492 into account an instruction saving a register if we have already
7493 seen an earlier instruction saving that same register.
7494
f04ceafa
AC
74952004-04-02 Andrew Cagney <cagney@redhat.com>
7496
08be3abd
AC
7497 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
7498 * gdbarch.h, gdbarch.c: Re-generate.
7499 * frame.c (legacy_get_prev_frame): Delete references to
7500 DEPRECATED_INIT_FRAME_PC_FIRST.
7501
f04ceafa
AC
7502 * infrun.c (pc_in_sigtramp): Delete function.
7503 (check_sigtramp2): Inline call to pc_in_sigtramp, use
7504 get_frame_type.
7505
08e69816
AC
75062004-04-02 Andrew Cagney <cagney@redhat.com>
7507
7508 * infrun.c (handle_step_into_function): Delete code conditional on
7509 legacy_frame_p.
7510 (handle_inferior_event, step_over_function): Ditto.
7511
adb54772
AC
75122004-04-02 Andrew Cagney <cagney@redhat.com>
7513
7514 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
7515 "previous frame inner to this frame" test.
7516
304396fb
AC
75172004-04-02 Andrew Cagney <cagney@redhat.com>
7518
7519 * frame.c (safe_frame_unwind_memory): New function.
7520 * frame.h (safe_frame_unwind_memory): Declare. Update description
7521 of /safe_/ methods.
7522 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
7523 "next_frame". Use safe_frame_unwind_memory.
7524 (tramp_frame_sniffer): Update call to tramp_frame_start.
7525
6502dd73
DJ
75262004-04-01 Daniel Jacobowitz <drow@mvista.com>
7527
7528 * dwarf2read.c (dwarf2_objfile_data_key): New.
7529 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
7530 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
7531 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
7532 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
7533 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
7534 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
7535 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
7536 Remove variables.
7537 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
7538 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
7539 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
7540 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
7541 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
7542 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
7543 Remove macros.
7544 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
7545 data.
7546 (dwarf2_locate_sections, dwarf2_build_psymtabs)
7547 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
7548 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
7549 (read_partial_die, read_full_die, read_indirect_string)
7550 (dwarf_decode_line_header, dwarf_decode_macros)
7551 (dwarf2_symbol_mark_computed): Remove use of removed macros.
7552 Update uses of removed variables.
7553 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
7554 of removed macros.
7555 (_initialize_dwarf2_read): New function.
7556 * symfile.h (dwarf2_has_info): Update prototype.
7557 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
7558 * elfread.c (elf_symfile_read): Likewise.
7559
408752b0
JB
75602004-04-01 Jim Blandy <jimb@redhat.com>
7561
9f744501
JB
7562 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
7563 function for register numbers on all the rs6000-derived targets.
7564 (rs6000_gdbarch_init): Don't register a separate
7565 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
7566 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
7567 variants.
7568
408752b0
JB
7569 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
7570 numbering.
7571
2de41bce
PH
75722004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
7573
7574 * valarith.c: Update copyright notice.
7575 (value_add): Handle range types.
7576 (value_sub): Ditto.
7577 (value_equal): Ditto.
7578 (value_less): Ditto.
7579 (value_neg): Ditto.
7580 (value_complement): Ditto.
8718a420 7581 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 7582 eliminiating unnecessary COERCE_ENUMs.
8718a420 7583
5613d8d3
AC
75842004-03-31 Andrew Cagney <cagney@redhat.com>
7585
7586 * frame.h (frame_unwind_id): Declare.
7587 * frame.c (frame_unwind_id): New function.
7588 (get_prev_frame_1): New function.
7589 (frame_debug_got_null_frame): New function.
7590 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
7591 code proper to prev_frame, update description.
7592 * infrun.c (step_over_function): Use frame_unwind_id.
7593
c4557624
JB
75942004-04-31 J. Brobecker <brobecker@gnat.com>
7595
7596 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
7597 (hppa64_push_dummy_call): Likewise.
7598
3e6bb910
JB
75992004-03-30 Jim Blandy <jimb@redhat.com>
7600
7601 From Ulrich Weigand:
7602 * utils.c (query): Do not use a va_list variable multiple times.
7603
a2f23071
DJ
76042004-03-29 Daniel Jacobowitz <drow@mvista.com>
7605
7606 * Makefile.in (linux_nat_h): Update dependencies.
7607 * configure.in: Check for <gnu/libc-version.h>.
7608 * configure: Regenerate.
7609 * config.in: Regenerate.
7610 * linux-nat.h: Include "target.h". Add waitstatus field to
7611 struct lwp_info.
7612 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
7613 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
7614 to.
7615 (lin_lwp_handle_extended): New function. Handle clone events.
7616 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
7617 thread exit events.
7618 (child_wait): Handle clone events.
7619 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
7620 * linux-nat.c (linux_enable_event_reporting): Turn on
7621 PTRACE_O_TRACECLONE.
7622 (linux_handle_extended_wait): Handle clone events.
7623 * thread-db.c: Include <gnu/libc-version.h>.
7624 (struct private_thread_info): Add dying flag.
7625 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
7626 higher.
7627 (attach_thread): Update comments. Handle dying threads.
7628 (detach_thread): Set the dying flag.
7629 (check_event): Always call attach_thread.
7630
8d5f9dcb
DJ
76312004-03-29 Daniel Jacobowitz <drow@mvista.com>
7632
7633 * mips-tdep.c (mips_pdr_data): New.
7634 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
7635 (_initialize_mips_tdep): Initialize mips_pdr_data.
7636
66337bb1
CV
76372004-03-29 Corinna Vinschen <vinschen@redhat.com>
7638
7639 * minsyms.c (install_minimal_symbols): Move dropping leading
7640 char from linkage name from here...
7641 (prim_record_minimal_symbol_and_info): ...to here. Simplify
7642 test for "__gnu_compiled*" symbols.
7643
e802b915
JB
76442004-03-28 Jim Blandy <jimb@redhat.com>
7645
7646 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
7647 registers to temp register r0 and byte stores as prologue
7648 instructions.
7649
72b56458
AC
76502004-03-28 Andrew Cagney <cagney@redhat.com>
7651
7652 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
7653 arm*-*-*.
7654
0bfbda3b
SC
76552004-03-28 Stephane Carrez <stcarrez@nerim.fr>
7656
7657 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
7658 and switch the layout to force a display of register window.
7659
5a7225ed
JB
76602004-02-26 J. Brobecker <brobecker@gnat.com>
7661
7662 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
7663 of the INTEGER class.
7664
81a07a45
JB
76652004-03-26 Jim Blandy <jimb@redhat.com>
7666
7667 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
7668 bytes long on PPC GNU/Linux.
7669
8c691c7a
DC
76702004-03-26 David Carlton <carlton@kealia.com>
7671
7672 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
7673
103a0089
AC
76742004-03-25 Andrew Cagney <cagney@redhat.com>
7675
7676 * PROBLEMS: Add general section titles, remove references to
7677 specific releases.
7678
7a5ea0d4
DJ
76792004-03-25 Daniel Jacobowitz <drow@mvista.com>
7680
7681 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
7682 INT_REGISTER_SIZE.
7683 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
7684 FP_REGISTER_VIRTUAL_SIZE.
7685 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
7686 of DEPRECATED_REGISTER_RAW_SIZE.
7687 (arm_register_type): Add gdbarch argument.
7688 (arm_register_raw_size, arm_register_virtual_size): Delete.
7689 (arm_register_byte, arm_extract_return_value)
7690 (arm_store_return_value, arm_get_longjmp_target): Update references
7691 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
7692 (arm_gdbarch_init): Likewise. Don't set
7693 deprecated_register_raw_size, deprecated_register_virtual_size,
7694 deprecated_max_register_raw_size,
7695 deprecated_max_register_virtual_size, or
7696 deprecated_max_register_virtual_type. Do set register_type.
7697 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
7698 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
7699 (FP_REGISTER_VIRTUAL_SIZE): Delete.
7700 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
7701 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
7702 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
7703 INT_REGISTER_SIZE.
7704 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
7705 (remote_rdp_store_register): Likewise.
7706
5792a79b
DJ
77072004-03-24 Daniel Jacobowitz <drow@mvista.com>
7708
7709 * Makefile.in (mips-linux-tdep.o): Update dependencies.
7710 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
7711 to after osabi initialization.
7712 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
7713 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
7714 functions.
7715 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
7716 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
7717 variables.
7718 (mips_linux_init_abi): Append signal trampoline unwinders.
7719
1196bfda
AC
77202004-03-24 Andrew Cagney <cagney@redhat.com>
7721
7722 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
7723 * tramp-frame.c: Include "gdb_assert.h".
7724 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
7725 correct sizeof.
7726 (tramp_frame_append): Validate the tramp frame's instructions.
7727 * Makefile.in (tramp-frame.o): Update dependencies.
7728
4be282b4
AC
77292004-03-23 Andrew Cagney <cagney@redhat.com>
7730
7731 * trad-frame.h (trad_frame_set_reg_addr): Declare.
7732
69aec09b
AC
77332004-03-23 Andrew Cagney <cagney@redhat.com>
7734
7735 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
7736 Nasser as past testsuite/lib/ (and other) maintainers.
7737
63ed89b4
DJ
77382004-03-23 Daniel Jacobowitz <drow@mvista.com>
7739
7740 * infcmd.c (attach_command): Reread symbols if we already have
7741 an exec file.
7742
f3b36427
AC
77432004-03-23 Andrew Cagney <cagney@redhat.com>
7744
7745 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
7746
aa2a3f87
AC
77472004-03-23 Andrew Cagney <cagney@redhat.com>
7748
7749 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
7750 * gdbarch.h, gdbarch.c: Re-generate.
7751 * i386obsd-tdep.c (i386obsd_init_abi): Update.
7752 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
7753 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 7754 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 7755 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 7756 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
7757 (DEPRECATED_SIGTRAMP_START): Update.
7758 * blockframe.c (find_pc_sect_partial_function): Update.
7759 * arch-utils.c (legacy_pc_in_sigtramp): Update.
7760
00cac895
DJ
77612004-03-23 Daniel Jacobowitz <drow@mvista.com>
7762
7763 * remote.c (remote_open_1): Reopen the exec file and reread symbols
7764 if necessary.
7765
f561f026
AC
77662004-03-23 Andrew Cagney <cagney@redhat.com>
7767
7768 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
7769 predicate, deprecate.
7770 * gdbarch.h, gdbarch.c: Re-generate.
7771 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
7772 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
7773 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
7774 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
7775 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
7776 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
7777 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
7778 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
7779 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
7780 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
7781 * blockframe.c (find_pc_partial_function): Update.
7782 * breakpoint.c (bpstat_what): Update.
7783 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
7784 * frv-linux-tdep.c (frv_linux_init_abi): Update.
7785 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
7786 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
7787 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7788 * i386-linux-tdep.c (i386_linux_init_abi): Update.
7789 * i386-nto-tdep.c (i386nto_init_abi): Update.
7790 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
7791 * i386-tdep.c (i386_sigtramp_frame_sniffer)
7792 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
7793 * i386bsd-tdep.c (i386bsd_init_abi): Update.
7794 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
7795 * i386obsd-tdep.c (i386obsd_init_abi): Update.
7796 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
7797 * infrun.c (pc_in_sigtramp): Update.
7798 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
7799 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
7800 * mips-tdep.c (mips_gdbarch_init): Update.
7801 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
7802 * ppc-linux-tdep.c: Update comment.
7803 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
7804 * shnbsd-tdep.c (shnbsd_init_abi): Update.
7805 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
7806 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
7807 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
7808 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
7809 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
7810 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
7811 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
7812 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 7813
8050c72f
AC
78142004-03-23 Andrew Cagney <cagney@redhat.com>
7815
d2259dd3
AC
7816 * tramp-frame.h, tramp-frame.h: New files.
7817 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
7818 Update rules to include "tramp-frame.h" and "tramp-frame.c".
7819
8050c72f
AC
7820 * Makefile.in: Update all dependencies.
7821
0db9b4b7
AC
78222004-03-23 Andrew Cagney <cagney@redhat.com>
7823
7824 * Makefile.in (trad_frame_h): Add $(frame_h).
7825 * trad-frame.h: Update copyright. Include "frame.h".
7826 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
7827 (trad_frame_set_id, trad_frame_get_id): Declare.
7828 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
7829 * trad-frame.c: Update copyright.
7830 (struct trad_frame_cache): Define.
7831 (trad_frame_cache_zalloc): New function.
7832 (trad_frame_set_id, trad_frame_get_id): New functions.
7833 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 7834
8e645ae7
AC
78352004-03-22 Andrew Cagney <cagney@redhat.com>
7836
7837 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
7838 s390_pltstub_unwind_cache.
7839 (s390_stub_frame_unwind_cache): Rename
7840 s390_pltstub_frame_unwind_cache.
7841 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
7842 (s390_stub_frame_prev_register): Rename
7843 s390_pltstub_frame_prev_register.
7844 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
7845 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
7846
7847 From Ulrich Weigand:
7848 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
7849 pointer calls like PLT calls.
7850
34fcf120
DJ
78512004-03-22 Daniel Jacobowitz <drow@mvista.com>
7852
7853 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
7854 PC rather than the partial function start address. Use the start
7855 address to sanity check the found PDR.
7856
5b917078
DJ
78572004-03-22 Daniel Jacobowitz <drow@mvista.com>
7858
7859 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
7860 linux_handle_extended_wait.
7861
8adf9e78
AC
78622004-03-22 Andrew Cagney <cagney@redhat.com>
7863
c3122434
AC
7864 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
7865 function.
7866
8adf9e78
AC
7867 * frame.h (generic_pop_current_frame): Delete declaration.
7868 (deprecate_pop_dummy_frame): Deprecate
7869 generic_pop_dummy_frame.
7870 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
7871 (generic_pop_current_frame): Delete function.
7872 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
7873 generic_pop_current_frame.
7874 * v850-tdep.c (v850_pop_frame): Update.
7875 * mcore-tdep.c (mcore_pop_frame): Update.
7876 * sh64-tdep.c (sh64_pop_frame): Update.
7877 * h8300-tdep.c (h8300_pop_frame): Update.
7878
90ba813f
AC
78792004-03-22 Andrew Cagney <cagney@redhat.com>
7880
7881 * frame.h (deprecated_pc_in_call_dummy): Rename
7882 generic_pc_in_call_dummy.
7883 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
7884 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
7885 generic_pc_in_call_dummy.
7886 (pc_in_dummy_frame): Make static.
7887 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
7888 * gdbarch.h, gdbarch.c: Re-generate.
7889 * dummy-frame.c (dummy_frame_sniffer): Simplify.
7890 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
7891 (legacy_get_prev_frame): Ditto.
7892 * inferior.h: Delete reference to generic_pc_in_call_dummy in
7893 comment.
8718a420 7894
ca4bb888
AC
78952004-03-21 Andrew Cagney <cagney@redhat.com>
7896
244675f9
AC
7897 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
7898 declaration and out-of-date comment.
7899 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
7900 Delete function.
7901 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
7902 deprecated_pc_in_call_dummy.
7903
ca4bb888
AC
7904 * infrun.c (handle_inferior_event): For non legacy frames, use the
7905 frame ID and frame type to identify a signal trampoline. Update
7906 comments.
7907
1777c7b4
NW
79082004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
7909
7910 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
7911 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
7912
82417da5
AC
79132004-03-21 Andrew Cagney <cagney@redhat.com>
7914
7915 * frame-unwind.h: Update copyright.
7916 (struct frame_data): Add opaque declaration.
7917 (frame_sniffer_ftype): Declare.
7918 (struct frame_unwind): Add "unwind_data" and "sniffer".
7919 (frame_unwind_register_unwinder): Declare.
7920 (frame_unwind_find_by_frame): Add parameter "this_cache".
7921 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
7922 (legacy_get_prev_frame, legacy_get_prev_frame)
7923 (get_frame_type): Pass the prologue_cache to
7924 frame_unwind_find_by_frame.
7925 * frame-unwind.c (struct frame_unwind_table_entry): Add field
7926 "unwinder".
7927 (frame_unwind_register_unwinder): New function.
7928 (frame_unwind_find_by_frame): Handle an unwind sniffer.
7929
b2ba182e
PH
79302004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
7931
7932 * bcache.c (print_percentage): Use floating point to avoid
7933 incorrect results when portion*100 overflows.
7934
81332287
KB
79352004-03-19 Kevin Buettner <kevinb@redhat.com>
7936
7937 * ppc_tdep.h (ppc_linux_frame_saved_pc)
7938 (ppc_linux_init_extra_frame_info)
7939 (ppc_linux_frameless_function_invocation)
7940 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
7941 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
7942 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
7943 (rs6000_frame_chain): Delete declarations.
7944 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
7945 (ppc_linux_init_extra_frame_info)
7946 (ppc_linux_frameless_function_invocation)
7947 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
7948 (ppc_linux_init_abi): Remove registration of above deleted functions.
7949 * rs6000-tdep.c (rs6000_init_extra_frame_info)
7950 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
7951 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
7952 (rs6000_pop_frame, rs6000_frameless_function_invocation)
7953 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
7954 (rs6000_gdbarch_init): Remove registration of above deleted functions.
7955 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
7956 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
7957 frame management for all OSABIs.
7958
61a65099
KB
79592004-03-19 Andrew Cagney <cagney@redhat.com>
7960
7961 Committed by Kevin Buettner <kevinb@redhat.com>.
7962
7963 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
7964 Update copyright.
7965 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
7966 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
7967 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
7968 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
7969 unwinders. #ifdef legacy frame code.
7970 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
7971 "frame-base.h".
7972 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
7973 (struct rs6000_frame_cache, rs6000_frame_cache)
7974 (rs6000_frame_this_id, rs6000_frame_prev_register)
7975 (rs6000_frame_sniffer, rs6000_frame_unwind)
7976 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
7977 (rs6000_frame_base): Implement a traditional frame unwinder.
7978 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
7979 frame unwinder.
7980
88f7da05
KB
79812004-03-19 Kevin Buettner <kevinb@redhat.com>
7982
7983 * breakpoint.c (adjust_breakpoint_address): Don't adjust
7984 breakpoint address for watchpoints or the catch eventpoints.
7985 Add new paramter ``bptype''. Adjust all callers.
7986
f826dce1
AC
79872004-03-19 Andrew Cagney <cagney@redhat.com>
7988
33cb8b0f
AC
7989 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
7990
f826dce1
AC
7991 * PROBLEMS: Delete note that ARM does not use frame code, problem
7992 fixed.
7993
43b1ab88
AC
79942004-03-18 Andrew Cagney <cagney@redhat.com>
7995
292ab034
AC
7996 * stack.c (return_command): Delete code wrapped in #ifdef
7997 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
7998
43b1ab88
AC
7999 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
8000
dbfe4626
AC
80012004-03-18 Andrew Cagney <cagney@redhat.com>
8002
8003 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
8004 DEPRECATED_IN_SIGTRAMP.
8005 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8006 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
8007 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8008 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8009 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8010 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8011 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8012 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8013 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
8014 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
8015
0cad6aec
AC
80162004-03-18 Andrew Cagney <cagney@redhat.com>
8017
8018 * frame-base.c: Update copyright. Include "gdb_obstack.h".
8019 (struct frame_base_table_entry): Define.
8020 (struct frame_base_table): Re-implement as a linked list.
8021 (frame_base_init): Re-implement.
8022 (frame_base_table): Delete function.
8023 (append_predicate): Delete function.
8024 (frame_base_append_sniffer): Update.
8025 (frame_base_set_default): Update.
8026 (frame_base_find_by_frame): Update.
8027 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
8028 * Makefile.in (frame-base.o): Update dependencies.
8029
9982c2e7
AC
80302004-03-17 Andrew Cagney <cagney@redhat.com>
8031
8032 * frame.c (legacy_get_prev_frame): Pass correct frame to
8033 frame_unwind_find_by_frame.
8034
8dfe8985
DC
80352004-03-17 David Carlton <carlton@kealia.com>
8036
8037 * NEWS: Mention C++ nested types and namespaces
8038
ed47347a
MC
80392004-03-16 Michael Chastain <mec.gnu@mindspring.com>
8040
8041 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
8042 and "Regressions since gdb 5.3.". Add known regressions since
8043 gdb 6.0.
8044
90aeadfc
DC
80452004-03-16 David Carlton <carlton@kealia.com>
8046
8047 * dwarf2read.c (process_structure_scope): Process children even
8048 when we're a declaration.
8049
73912b9b
AC
80502004-03-16 Andrew Cagney <cagney@redhat.com>
8051
8052 * symtab.h (find_pc_sect_partial_function): Delete declaration.
8053 * blockframe.c (find_pc_partial_function)
8054 (find_pc_sect_partial_function): Merge into a single
8055 find_pc_partial_function.
8056
283accbc
MK
80572004-03-16 Mark Kettenis <kettenis@gnu.org>
8058
8059 * i386bsd-nat.c: s/regno/regnum/g.
8060 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
8061 FP0_REGNUM.
8062 (store_inferior_registers): Likewise.
8063
f5b1afdf
MK
80642004-03-16 Mark Kettenis <kettenis@gnu.org>
8065
8066 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
8067 of i387_fill_fsave.
8068 (store_inferior_registers): Call i387_collect_fsave and
8069 i387_collect_fxsave instead of i387_fill_fsave and
8070 i387_fill_fxsave.
8071
41fe5eb3
AC
80722004-03-15 Andrew Cagney <cagney@redhat.com>
8073
8074 * Makefile.in (frame-unwind.o): Update dependencies.
8075 * frame-unwind.c: Include "gdb_obstack.h".
8076 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
8077 parameter.
8078 (append_predicate): Delete function.
8079 (struct frame_unwind_table_entry): New structure.
8080 (struct frame_unwind_table): Replace "sniffer" with "head" and
8081 "tail".
8082 (frame_unwind_append_sniffer): Update.
8083 (frame_unwind_find_by_frame): Update.
8084 (_initialize_frame_unwind): Registe frame_unwind_init using
8085 gdbarch_data_register_pre_init.
8086
3f63813d
MK
80872004-03-15 Mark Kettenis <kettenis@gnu.org>
8088
8089 * i386bsd-nat.c: Update copyright year.
8090 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
8091 define unconditionally.
8092
3248c325 80932004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
8094
8095 * i387-tdep.h (i387_collect_fsave): New prototype.
8096 * i387-tdep.c (i387_collect_fsave): New function containing most
8097 of the code from i387_fill_fsave.
3248c325 8098 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 8099
871fbe6a
MK
81002004-03-15 Mark Kettenis <kettenis@gnu.org>
8101
8102 * i386-linux-tdep.c: Update copyright year.
8103 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
8104 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
8105 svr4_ilp32_link_map_offsets instead of
8106 i386_linux_svr4_fetch_link_map_offsets.
8107
8176b9b8
DC
81082004-03-15 David Carlton <carlton@kealia.com>
8109
8110 Fix for PR c++/1553:
8111 * dwarf2read.c (read_structure_type): Determine type name by
8112 calling determine_class_name.
8113 (determine_class_name): New.
8114 (determine_prefix): Look at TYPE_TAG_NAME and call
8115 determine_class_name when appropriate.
8116 (determine_prefix_aux, class_name): Delete.
9d58e29d 8117 (read_namespace): Set die->type.
8176b9b8 8118
fe8bf7d7
KB
81192004-03-15 Kevin Buettner <kevinb@redhat.com>
8120
8121 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
8122 unused macro definition. The definition in target.h (or perhaps
8123 elsewhere) takes precedence.
8124
ed6edd9b
AC
81252004-03-15 Andrew Cagney <cagney@redhat.com>
8126
f9be684a
AC
8127 * ppc-tdep.h: Update copyright.
8128 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
8129 function signatures to match "regsets.h".
8130 * ppc-linux-tdep.c: Include "regset.h".
8131 (ELF_GREGSET_SIZE): Delete.
8132 (right_supply_register): New function.
8133 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
8134 using right_supply_register.
8135 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
8136 functions.
8137 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
8138 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
8139 (_initialize_ppc_linux_tdep): Do not register
8140 ppc_linux_regset_core_fns.
8141 (ppc_linux_regset_from_core_section): Replace
8142 fetch_core_registers.
8143 (ppc_linux_regset_core_fns): Delete.
8144 * ppc-linux-nat.c: (right_fill_reg): New function.
8145 (supply_gregset): Update call to ppc_linux_supply_gregset.
8146 (fill_gregset): Clear the register set, use right_fill_reg.
8147 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
8148 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
8149
ed6edd9b
AC
8150 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
8151 unsigned.
8152
030f20e1
AC
81532004-03-15 Andrew Cagney <cagney@redhat.com>
8154
8155 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
8156 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
8157 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
8158 and register_gdbarch_data.
8159 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
8160 (struct gdbarch_data): Replace "init" by "pre_init" and
8161 "post_init".
8162 * gdbarch.h, gdbarch.c: Re-generate.
8163 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
8164 with"obstack", use OBSTACK_ZALLOC.
8165 (dwarf2_frame_ops): Delete.
8166 (dwarf2_frame_set_init_reg): Use gdbarch_data.
8167 (dwarf2_frame_init_reg): Use gdbarch_data.
8168 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 8169 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
8170 (_initialize_svr4_solib): Update.
8171 * user-regs.c (_initialize_user_regs): Update.
8172 * reggroups.c (_initialize_reggroup): Update.
8173 * regcache.c (_initialize_regcache): Update.
8174 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8175 * libunwind-frame.c (_initialize_libunwind_frame): Update.
8176 * gnu-v3-abi.c (init_gnuv3_ops): Update.
8177 * frame-unwind.c (_initialize_frame_unwind): Update.
8178 * frame-base.c (_initialize_frame_base): Update.
8179 * user-regs.c (user_reg_add): Update.
8180 * reggroups.c (reggroup_add): Update.
8181 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
8182 * libunwind-frame.c (libunwind_frame_set_descr): Update.
8183 * frame-unwind.c (frame_unwind_append_sniffer): Update.
8184 * frame-base.c (frame_base_table): Update.
8185 * remote.c (_initialize_remote): Update.
8186 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 8187
3111a3fc
AC
81882004-03-15 Andrew Cagney <cagney@redhat.com>
8189
8190 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
8191
5ecb7103
KB
81922004-03-15 Kevin Buettner <kevinb@redhat.com>
8193
8194 * Makefile.in (frv-linux-tdep.o): Add dependencies.
8195 * frv-linux-tdep.c: New file.
8196 * frv-tdep.c (struct gdbarch_tdep): Add new field
8197 ``sigcontext_reg_addr''.
8198 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
8199 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8200 (frv_sigramp_frame_sniffer): New functions.
8201 (frv_sigtramp_frame_unwind): New static global.
8202 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
8203 sniffers.
8204 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
8205 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
8206
1ccda5e9
KB
82072004-03-15 Kevin Buettner <kevinb@redhat.com>
8208
8209 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
8210 but not via a call to error(), when unable to read memory.
8211
b375a0a5
KB
82122004-03-15 Kevin Buettner <kevinb@redhat.com>
8213
8214 * frv-tdep.c (frv_call_dummy_words): Delete.
8215 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
8216
4fdf6121
AC
82172004-03-15 Andrew Cagney <cagney@redhat.com>
8218
8219 * infrun.c (handle_step_into_function, step_over_function): Only
8220 update and use STEP_FRAME_ID when the system is using legacy
8221 frames. Update comments.
8222
34021503
MK
82232004-03-14 Mark Kettenis <kettenis@gnu.org>
8224
187e21d1
MK
8225 * amd64-linux-tdep.h: Remove file.
8226 * amd64-linux-tdep.c: Don't include "inferior.h" and
8227 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
8228 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
8229 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
8230 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
8231 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
8232 macros.
8233 (user_to_gdb_regmap): Remove variable.
8234 (amd64_linux_gregset_reg_offset): New variable.
8235 (amd64_core_fns): Remove variable.
8236 (fetch_core_registers): Remove function.
8237 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
8238 functions.
8239 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
8240 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
8241 * Makefile.in (amd64_linux_tdep_h): Remove.
8242 (amd64-linux-nat.o): Update dependencies.
8243 (amd64-linux-tdep.o): Update dependencies.
8244
99679982
MK
8245 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
8246 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
8247 functions.
8248 (fetch_inferior_registers, store_inferior_registers): Rewrite.
8249
34021503
MK
8250 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
8251 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
8252
134d01f1
DJ
82532004-03-14 Daniel Jacobowitz <drow@mvista.com>
8254
8255 * dwarf2read.c (read_structure_type): Rename from
8718a420 8256 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
8257 Return immediately if die->type is set. Call read_type_die before
8258 dwarf2_add_member_fn.
8259 (process_structure_scope): New function.
8260 (read_enumeration_type, process_enumeration_scope): New functions,
8261 broken out from read_enumeration. Don't create the enumeration
8262 type if it has already been created.
8263 (read_enumeration): Removed.
8264 (process_die): Call read_structure_type, process_structure_scope,
8265 read_enumeration_type, and process_enumeration_scope. Just call
8266 new_symbol for base and subrange types. Add a comment about other
8267 type dies.
8268 (read_type_die): Call read_enumeration_type.
8269 (add_partial_structure, new_symbol): Update comments.
8270
65760afb
SC
82712004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8272
8273 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
8274
10f59415
SC
82752004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8276
8277 * tui/tui-win.h (tui_get_cmd_list): Declare.
8278 * tui/tui-win.c (tui_command): New function.
8279 (tui_get_cmd_list): New function.
8280 (_initialize_tui_win): Moved initialization of tui command in
8281 tui_get_cmd_list.
8282
8283 * tui/tui-data.c (init_content_element): Setup new data members.
8284 (init_win_info): Likewise.
8285 (free_content_elements): Free it.
8286 * tui/tui-data.h (struct tui_data_element): Store the register
8287 content to print.
8288 (struct tui_data_info): Keep the current register group.
8289
8290 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
8291
8292 * tui/tui-regs.h (tui_show_registers): Update prototype.
8293 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
8294 (tui_resize_all): No need to calculate anything for register window.
8295 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
8296 (tui_set_register_element, tui_set_general_regs_content): Remove.
8297 (tui_set_special_regs_content): Remove.
8298 (tui_set_general_and_special_regs_content): Remove.
8299 (tui_set_float_regs_content): Remove.
8300 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
8301 (tui_set_regs_content): Remove.
8302 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
8303 (tui_v_show_registers_command_support): Remove.
8304 (tui_show_registers): Use a reggroup to specify the registers to show.
8305 (tui_show_register_group): New function.
8306 (tui_display_registers_from): Compute the layout of register window
8307 and refresh with new API; be sure to delete old register windows.
8308 (tui_check_register_values): Update to use tui_get_register and
8309 tui_display_data.
8310 (tui_display_register): Just refresh the register window part.
8311 (tui_register_format): Format registers and save in tui_data_element.
8312 (tui_get_register): New to combine tui_reg_value_has_changed and
8313 tui_get_register_raw_value; fix to use the new gdb API.
8314 (tui_show_float_command): Renamed tui_reg_float_command.
8315 (tui_show_general_command): Renamed tui_reg_general_command.
8316 (tui_show_special_command): Renamed tui_reg_system_command.
8317 (_initialize_tui_regs): Remove unused commands.
8318
c3364ea4
MK
83192004-03-13 Mark Kettenis <kettenis@gnu.org>
8320
27d1e716
MK
8321 * NEWS (New native configurations): Mention OpenBSD/amd64.
8322
c3364ea4
MK
8323 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
8324 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
8325 Remove defines.
8326 * config/i386/nm-fbsd64.h: Likewise.
8327 * config/i386/nm-obsd.h: Likewise.
8328 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
8329 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
8330
b2d6d697
KB
83312004-03-12 Kevin Buettner <kevinb@redhat.com>
8332
8333 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
8334 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
8335 New constants.
8336
76e43199
KB
8337 From Richard Sandiford <rsandifo@redhat.com>:
8338 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
8339
34ce532e
KB
83402004-03-12 Kevin Buettner <kevinb@redhat.com>
8341
8342 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
8343 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
8344 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
8345 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
8346 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
8347 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
8348 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
8349 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
8350 definitions from frv-tdep.c to frv-tdep.h.
8351
c4d10515
KB
83522004-03-12 Kevin Buettner <kevinb@redhat.com>
8353
8354 Add shared library support for FR-V FDPIC ABI:
8355 * Makefile.in (solib-frv.o): Add dependencies.
8356 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
8357 New functions.
8358 (frv_push_dummy_call): Add support for FDPIC ABI.
8359 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
8360 for FDPIC ABI.
8361 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
8362 (frv_fdpic_find_canonical_descriptor): Declare.
8363 * solib-frv.c: New file.
8364 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
8365 * config/frv/tm-frv.h (solib.h): Include.
8366
ed1bd989
KB
83672004-03-12 Kevin Buettner <kevinb@redhat.com>
8368
8369 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
8370 (frv-tdep.o): Update dependencies.
8371 * frv-tdep.h: New file.
8372 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
8373 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
8374 constants.
8375 (struct gdbarch_tdep): Add new member ``frv_abi''.
8376 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
8377 functions.
8378 (new_variant): Set ``frv_abi'' field.
8379 (gdb_arch_init): Detect FDPIC executables.
8380
82b38f72
MK
83812004-03-12 Mark Kettenis <kettenis@gnu.org>
8382
8383 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
8384 wrapper.
8385
db1ea9ba
AC
83862004-03-11 Andrew Cagney <cagney@redhat.com>
8387
8388 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
8389
f8766ec1
KB
83902004-03-11 Kevin Buettner <kevinb@redhat.com>
8391
8392 * solist.h (master_so_list): New function.
8393 * solib.c (master_so_list): Likewise.
8394 * solib-svr4.c (enable_break): Iterate over so_list entries
8395 obtained from master list instead of entries obtained directly
8396 via svr4_current_sos().
8397
523f6a27
BE
83982004-03-10 Ben Elliston <bje@gnu.org>
8399
8400 * MAINTAINERS: Update my mail address.
8401
37814c18
KI
84022004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
8403
8404 * remote-m32r-sdi.c: Support hardware watchpoint.
8405
8b9740d8
DJ
84062004-03-09 Daniel Jacobowitz <drow@mvista.com>
8407
8408 * user-regs.c: Update copyright years.
8409 (struct user_regs): Rename to gdb_user_regs.
8410 (append_user_reg, builtin_user_regs, user_regs_init)
8411 (user_reg_add, user_reg_map_name_to_regnum)
8412 (usernum_to_user_reg): Update.
8413
4bb7a0a7
DJ
84142004-03-09 Daniel Jacobowitz <drow@mvista.com>
8415
8416 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
8417 (skip_children): New functions.
8418 (locate_pdi_sibling): Call skip_children.
8419
44e1a9eb
DJ
84202004-03-09 Daniel Jacobowitz <drow@mvista.com>
8421
8422 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
8423 * gdbtypes.c (check_typedef): Update comments.
8424
f3dd6933
DJ
84252004-03-09 Daniel Jacobowitz <drow@mvista.com>
8426
8427 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
8428 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
8429 pointer. Update comment about comp_unit_head.
8430 (struct abbrev_info): Shorten two int flags.
8431 (dwarf_alloc_abbrev): Take a CU argument.
8432 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
8433 each time through the loop. Update cleanup argument.
8434 (psymtab_to_symtab_1): Update cleanup call.
8435 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
8436 abbrev_obstack.
8437 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
8438 Just call obstack_free and clear the pointer.
8439
b40c7d58
DJ
84402004-03-09 Daniel Jacobowitz <drow@mvista.com>
8441
8442 * infrun.c (handle_inferior_event): Remove short-circuit code for
8443 events in a different thread.
8444
333dabeb
DJ
84452004-03-09 Daniel Jacobowitz <drow@mvista.com>
8446
8447 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
8448 print the whole transfer.
8449 (initialize_targets): Update description of "set debug target".
8450
aa17d93e
DJ
84512004-03-09 Daniel Jacobowitz <drow@mvista.com>
8452
8453 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
8454
0b71f08f
NW
84552004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
8456
8457 * MAINTAINERS (write after approval): Add myself.
8458
3930f270
CV
84592004-03-08 Corinna Vinschen <vinschen@redhat.com>
8460
8461 * sh-tdep.c (sh_print_registers_info): Use for loop.
8462 Don't skip multiple registers when a float register is encountered.
8463
a2b4a96c
CV
84642004-03-08 Corinna Vinschen <vinschen@redhat.com>
8465
8466 Fix PR tdep/1291.
8467 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
8468 to official SH documentation.
8469
f15a4bc0
AC
84702004-03-07 Andrew Cagney <cagney@redhat.com>
8471
8472 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
8473 unused function.
8474
9498281f
DJ
84752004-03-07 Daniel Jacobowitz <drow@mvista.com>
8476
8477 * arm-tdep.c (thumb_get_next_pc): Handle BX.
8478 (arm_get_next_pc): Handle BX and BLX.
8479
449e1137
AC
84802004-03-07 Andrew Cagney <cagney@redhat.com>
8481
eded0a31
AC
8482 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
8483 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
8484 HPPA_SP_REGNUM.
8485 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
8486 (hppa_target_read_fp): Delete.
8487 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
8488 register_virtual_size, max_register_raw_size,
8489 max_register_virtual_size, register_byte, register_size,
8490 target_read_fp, fp_regnum, and register_bytes. Set register_type
8491 instead of register_virtual_type.
8492 (hppa32_register_type, hppa64_register_type): Replace
8493 hppa32_register_virtual_type and hppa64_register_virtual_type.
8494 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
8495 (HPPA_FP_REGNUM): Define.
8496
f5f907e2
AC
8497 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
8498
69b4bbe4
AC
8499 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
8500 (pa_do_registers_info): Delete.
8501 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 8502 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 8503 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 8504
78161e48
AC
8505 * infcall.c (legacy_push_dummy_code): Delete #ifdef
8506 GDB_TARGET_IS_HPPA code.
8507 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 8508 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
8509 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
8510 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
8511 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
8512 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
8513 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 8514 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
8515 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
8516 (hppa_frameless_function_invocation, hppa64_store_return_value)
8517 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 8518 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 8519 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 8520 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
8521 (find_proc_framesize, deposit_21, restore_pc_queue)
8522 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 8523 (rp_saved, pc_in_linker_stub): Delete.
78161e48 8524
782eae8b
AC
8525 Unconditionally enable 64-bit frame and ABI code.
8526 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
8527 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
8528 push_dummy_frame, fix_call_dummy, push_arguments,
8529 call_dummy_location, extract_return_value, use_struct_convention,
8530 store_return_value, store_struct_return, saved_pc_after_call,
8531 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
8532 frame_chain, frame_chain_valid, frameless_function_invocation,
8533 frame_saved_pc, and pop_frame.
78161e48 8534
449e1137
AC
8535 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
8536 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
8537 (hppa_gdbarch_init): Do not set PC_REGNUM.
8538
12507572
MK
85392004-03-06 Mark Kettenis <kettenis@gnu.org>
8540
8541 * config/alpha/tm-fbsd.h: Remove file.
8542 * config/alpha/fbsd.mt: Tweak comment.
8543 (TM_FILE): Set to tm-alpha.h.
8544
c107cc1b
AC
85452004-03-05 Andrew Cagney <cagney@redhat.com>
8546
8547 * infrun.c (step_over_function): When non-legacy code, and no
8548 step_frame_id, use the unwinder to get the caller's frame ID.
8549
f2e7c15d
MK
85502004-03-05 Mark Kettenis <kettenis@gnu.org>
8551
8b0c3633
MK
8552 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
8553 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
8554 bfd_arch_unknown. Adjust comment.
8555
f2e7c15d
MK
8556 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
8557 * i386obsd-tdep.c: Correct spelling in comment.
8558 * i386nbsd-tdep.c: Correct spelling in comment.
8559 * sparc-tdep.c: Correct spelling in comments.
8560
1198ecbe
DC
85612004-03-05 David Carlton <carlton@kealia.com>
8562
8563 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
8564 bug.
8565
9eb42ed1
MK
85662004-03-05 Mark Kettenis <kettenis@gnu.org>
8567
8568 * sparc-tdep.c: Fix typo in comment.
8569
52b5e991
JB
85702004-03-04 J. Brobecker <brobecker@gnat.com>
8571
8572 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
8573
d8151005
DJ
85742004-03-04 Daniel Jacobowitz <drow@mvista.com>
8575
8576 * dwarf2read.c: Add comment describing memory lifetimes.
8577 (struct dwarf2_pinfo): Update comment.
8578 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
8579 (read_enumeration, new_symbol): Don't use obsavestring.
8580
cbeae229
MK
85812004-03-04 Mark Kettenis <kettenis@gnu.org>
8582
722d18c2
MK
8583 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
8584 instead of amd64_fill_fxsave.
8585 * amd64bsd-nat.c (store_inferior_registers): Likewise.
8586 * amd64fbsd-nat.c (fill_fpregset): Likewise.
8587
cbeae229
MK
8588 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
8589 Reorganize code a bit.
8590
b4206d25
OF
85912004-03-04 Orjan Friberg <orjanf@axis.com>
8592
8593 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
8594 when the frame pointer is pushed. Don't set the frame pointer's
8595 address on the stack unless it's actually located there.
b4206d25
OF
8596 Set the SRP's address on the stack correctly when the PC is still in
8597 the prologue.
8598 (cris_return_value): New function.
8599 (cris_gdbarch_init): Clear deprecated store_return_value,
8600 extract_return_value.
8601
49b0b195
JB
86022004-03-02 Jim Blandy <jimb@redhat.com>
8603
8604 * stabsread.c (reg_value_complaint): The maximum register number
8605 is one less than the number of registers.
8606
e9ff708b
AC
86072004-03-02 Andrew Cagney <cagney@redhat.com>
8608
8609 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
8610 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
8611 trailing comma and redundant assignment of I386_ST0_REGNUM.
8612 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
8613 32-bit segment registers.
8614
d4715e41
AC
86152004-03-01 Andrew Cagney <cagney@redhat.com>
8616
8617 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
8618 use frame_relative_level and get_next_frame.
8619
3ce2bf18
AC
86202004-02-29 Andrew Cagney <cagney@redhat.com>
8621
8622 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
8623 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
8624 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
8625 Delete macro.
8626
2da6aac3
DJ
86272004-02-29 Daniel Jacobowitz <drow@mvista.com>
8628
8629 * inflow.c (terminal_inferior): Don't give up the terminal if we
8630 previously couldn't get the inferior's terminal state.
8631
6ba34a8d
DJ
86322004-02-29 Daniel Jacobowitz <drow@mvista.com>
8633
8634 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
8635 PC_REGNUM.
8636
faae5abe
AC
86372004-02-28 Andrew Cagney <cagney@redhat.com>
8638
8639 * NEWS: Refer to GDB 6.1.
8640 * README: Refer to GDB 6.1.
8641 * PROBLEMS: Refer to GDB 6.1.
8642
2227a3c5
DJ
86432004-02-28 Daniel Jacobowitz <drow@mvista.com>
8644
8645 * thread-db.c (disable_thread_signals): Remove unused function.
8646
80571bff
MK
86472004-02-28 Mark Kettenis <kettenis@gnu.org>
8648
041bd74b
MK
8649 * amd64-nat.c: Include "gdb_string.h".
8650 (amd64_collect_native_gregset): Zero-extend the 32-bit
8651 general-purpose registers and %eip.
8652
3c017e40
MK
8653 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
8654 * amd64-tdep.c (amd64_collect_fxsave): New function.
8655 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
8656
80571bff
MK
8657 * i387-tdep.h: Update copyright year.
8658 (i387_collect_fxsave): New prototype.
8659 * i387-tdep.c: Update copyright year.
8660 (i387_collect_fxsave): New function containing most of the code
8661 from i387_fill_fxsave.
8662 (i387_fill_fxsave): Call i387_collect_fxsave.
8663
50d71875
AC
86642004-02-28 Andrew Cagney <cagney@redhat.com>
8665
8666 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
8667 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
8668
4a28816e
MK
86692004-02-28 Mark Kettenis <kettenis@gnu.org>
8670
8671 * amd64-tdep.c (amd64_frame_cache): Fix comment.
8672
dbda9972
AC
86732004-02-28 Andrew Cagney <cagney@redhat.com>
8674
8675 * utils.c: Use "", instead of <>, to include readline.
8676 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
8677 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
8678 * source.c, solib.c, exec.c, event-top.c: Ditto.
8679 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
8680 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
8681 * Makefile.in: Update all dependencies.
8682 (readline_tilde_h, readline_history_h): Define.
8683 (readline_headers): Delete.
8684
83277a99
MK
86852004-02-28 Mark Kettenis <kettenis@gnu.org>
8686
91ae4303
MK
8687 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
8688 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
8689 "config/i386/tm-lx64.h".
8690
83277a99
MK
8691 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
8692 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
8693 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
8694
6e1d7d6c
AC
86952004-02-28 Andrew Cagney <cagney@redhat.com>
8696
ecc9ac84
AC
8697 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
8698
6e1d7d6c
AC
8699 * breakpoint.c (_initialize_breakpoint): Use
8700 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
8701 Add help to show command.
8702
9671aeef
MK
87032004-02-28 Mark Kettenis <kettenis@gnu.org>
8704
7fa2737c
MK
8705 * i386-nat.c: Reformat to be closer to coding standards.
8706 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
8707 `retval'. Make variables `align' and `size' local to while-loop.
8708 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
8709 (_initialize_i386_nat): New prototype.
8710
9671aeef
MK
8711 * tui/tui.c: Include <readline/readline.h> instead of
8712 "readline/readline.h". Include it after <term.h> and
8713 "gdb_curses.h".
8714
fca7aa43
AC
87152004-02-27 Andrew Cagney <cagney@redhat.com>
8716
412275d5
AC
8717 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
8718 the new frame unwind code.
8719 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
8720 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
8721 PCOQ_HEAD_REGNUM.
8722
fca7aa43
AC
8723 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
8724 "return_value" and "push_dummy_call".
8725 (hppa32_use_struct_convention): Delete unused function.
8726 (hppa32_store_return_value): Delete unused function.
8727 (hppa32_extract_return_value): Delete unused function.
8728 (hppa32_stack_align): Delete function.
8729
e6a8a7d2
EZ
87302004-02-27 Eli Zaretskii <eliz@elta.co.il>
8731
8732 * coffread.c (enter_linenos): Don't let rawptr reference memory
8733 outside linetab[]'s limits.
8734
1797a8f6
AC
87352004-02-27 Andrew Cagney <cagney@redhat.com>
8736
8737 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
8738 inferior stack space - the stack needs to grow upwards.
8739 (hppa32_frame_align): New function.
8740 (hppa64_frame_align): Replace hppa_frame_align.
8741 (hppa_gdbarch_init): Update.
8742
2e4b5889
OF
87432004-02-26 Orjan Friberg <orjanf@axis.com>
8744
8745 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
8746 (dwarf2-frame.h): Include.
8747 (enum cris_regnums): New enum CRIS_FP_REGNUM.
8748 Remove static variables related to ABI setting.
8749 (struct gdbarch_tdep): Remove cris_abi member.
8750 (struct frame_extra_info): Remove.
8751 (cris_unwind_cache, stack_item): New structs.
8752 (cris_frame_unwind, cris_frame_base): New variables.
8753 (push_stack_item, pop_stack_item)
8754 (cris_frame_unwind_cache, cris_frame_this_id)
8755 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
8756 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
8757 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
8758 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
8759 (cris_reg_struct_has_addr): New functions.
8760 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 8761 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
8762 (cris_store_struct_return, cris_frameless_function_invocation)
8763 (cris_pop_frame, cris_skip_prologue_main)
8764 (cris_abi_original_store_return_value)
8765 (cris_abi_v2_store_return_value)
8766 (cris_abi_original_extract_return_value)
8767 (cris_abi_v2_extract_return_value)
8768 (cris_abi_original_reg_struct_has_addr)
8769 (cris_abi_v2_reg_struct_has_addr)
8770 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
8771 (cris_push_return_address, cris_abi_update): Remove.
8772 (_initialize_cris_tdep): Remove ABI command.
8773 (cris_dump_tdep): Ditto.
8718a420 8774 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
8775 Set store_return_value, extract_return_value, push_dummy_code,
8776 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
8777 frame_unwind_append_sniffer, frame_base_set_default.
8778 Clear deprecated init_frame_pc, push_arguments, store_return_value,
8779 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
8780 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 8781 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
8782 init_extra_frame_info, frameless_function_invocation, frame_chain,
8783 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
8784 dummy_write_sp.
8718a420 8785
6b9acc27
JJ
87862004-02-26 Jeff Johnston <jjohnstn@redhat.com>
8787
8788 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
8789 * valprint.c (print_hex_chars): Change from static to external.
8790 (print_char_chars): New function.
8791 * printcmd.c (print_scalar_formatted): For integer and enum types
8792 that are longer than LONGEST, perform processing via appropriate
8793 print_*_chars routines.
8794
a431654a
AC
87952004-02-26 Andrew Cagney <cagney@redhat.com>
8796
8797 * Makefile.in: Update dependencies.
8798 Changes from Ulrich Weigand,
8799 * s390-tdep.c: Include "dwarf2-frame.h".
8800 (s390_dwarf2_frame_init_reg): New function.
8801 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
8802 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
8803
fa8d40ab
JJ
88042004-02-26 Jeff Johnston <jjohnstn@redhat.com>
8805
8806 * breakpoint.c (pending_break_support): New setting variable.
8807 (break_command_1): Account for pending_break_support setting
8808 when creating pending breakpoints.
8809 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
8810 (_initialize_breakpoint): Add "set breakpoint pending" and
8811 "show breakpoint pending" commands.
8812
0dcd613f
AC
88132004-02-26 Andrew Cagney <cagney@redhat.com>
8814
8815 Fix PR i18n/1570.
8816 * charset.c (backslashable, backslashed, represented): Remove 'e'
8817 from list of escaped characters, not part of ISO-C.
8818
479272a3
JB
88192004-02-25 J. Brobecker <brobecker@gnat.com>
8820
8821 From Peter Schauer <schauer@pdf.de>:
8822 * tui/tui.c: Move system header includes after local includes.
8823 Fixes a build failure on solaris systems.
8824
7613d933
JB
88252004-02-25 J. Brobecker <brobecker@gnat.com>
8826
8827 * configure.in: Refine the previous change.
8828 * configure: Regenerate.
8829
9c1488cb
MK
88302004-02-25 Mark Kettenis <kettenis@gnu.org>
8831
8832 * amd64-tdep.h: Renamed from x86-64-tdep.h.
8833 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
8834 "amd64-tdep.h" instead of "x86-64-tdep.h".
8835 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
8836 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
8837 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
8838 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
8839 and "x86-64-tdep.c".
8840 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
8841 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
8842 and "x86-64-tdep.c".
8843 * amd64bsd-nat.c: Update copyright year.
8844 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
8845 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
8846 "x86-64-tdep.h".
8847 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
8848 "x86-64-tdep.h".
8849 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
8850 "x86-64-tdep.h".
8851 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
8852 "x86-64-tdep.h".
8853 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
8854 "x86-64-tdep.h".
8855 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
8856 "x86-64-tdep.h".
8718a420 8857 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
8858 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
8859 * Makefile.in (amd64_linux_tdep_h): Renamed from
8860 x86_64_linux_tdep_h.
8861 (amd64_tdep_h): Renamed from x86_64_tdep_h.
8862 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
8863 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
8864 (amd64obsd-tdep.o): Update dependencies.
8865 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
8866 dependencies.
8867 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
8868 dependencies.
8869 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
8870 amd64-linux-nat.c amd64-linux-tdep.c.
8871 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
8872 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
8873 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
8874 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
8875 amd64-tdep.o and amd64-linux-tdep.o.
8876 (TM_FILE): Set to tm-linux64.h.
8877 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
8878 (NAT_FILE): Set to nm-linux64.h.
8879 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
8880 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8881 amd64-tdep.o.
8882 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8883 amd64-tdep.o.
8884 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
8885 amd64-tdep.o.
8886
4b8dad4a
RM
88872004-02-25 Roland McGrath <roland@redhat.com>
8888
8889 * remote.c (remote_protocol_qPart_auxv): New variable.
8890 (init_all_packet_configs): Initialize it.
8891 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
8892 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
8893 (show_remote_cmd): Call it.
8894 (_initialize_remote): Initialize commands.
8895 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
8896 service TARGET_OBJECT_AUXV requests.
8897
66745969
JB
88982004-02-25 J. Brobecker <brobecker@gnat.com>
8899
8900 * configure.in: Make sure that the wborder function is available.
8901 Otherwise, search for it in the cur_colr library.
8902 * configure: Regenerate.
8903
79508e1e
AC
89042004-02-25 Andrew Cagney <cagney@redhat.com>
8905
8906 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
8907
571ee600
MK
89082004-02-25 Mark Kettenis <kettenis@gnu.org>
8909
8910 * config/i386/tm-x86-64linux.h: Tweak comments.
8911
2b1b322f 89122004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
8913
8914 * MAINTAINERS: Add self to write-after-approval list.
8915
4d2acc65
AC
89162004-02-25 Andrew Cagney <cagney@redhat.com>
8917
4b8dad4a 8918 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
8919 * cli/cli-script.c (execute_control_command): Unconditionally
8920 install a cleanup. Default "ret" to "invalid_control". Use
8921 "break" instead of "return" to escape from the switch.
8922
4cfcaf21
JB
89232004-02-24 J. Brobecker <brobecker@gnat.com>
8924
8925 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
8926 with the lines macro defined in term.h on AiX.
8927 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
8928 a collision with the label_width macro defined in term.h on AiX.
8929
54a5c8d8
KB
89302004-02-23 David Mosberger <davidm@hpl.hp.com>
8931
8932 Committed by Kevin Buettner <kevinb@redhat.com>.
8933
8934 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
8935 * ia64-tdep.c (ia64_write_pc): Make it a global function.
8936 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
8937 instead of ia64_write_pc().
8938 * ia64-linux-tdep.c (regcache.h): Include.
8939 (ia64_linux_write_pc): New function.
4b8dad4a 8940
8a1dac83
RM
89412004-02-23 Roland McGrath <roland@redhat.com>
8942
8943 * auxv.c (info_auxv_command): Fix typos in error messages.
8944
90f90721
MK
89452004-02-23 Mark Kettenis <kettenis@gnu.org>
8946
8a1dac83 8947 * x86-64-tdep.h: Tweak comment.
90f90721
MK
8948 (enum amd64_regnum): New.
8949 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
8950 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
8951 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
8952 (X86_64_XMM1_REGNUM): Removed.
8953 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
8954 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
8955 prototypes for renamed functions.
8956 * x86-64-tdep.c: Fix typo.
8957 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
8958 register numbers.
8959 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
8960 Use constants from `enum amd64_regnum' for register numbers.
8961 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
8962 (amd64_analyze_prologue, amd64_frame_cache,
8963 amd64_sigtramp_frame_cache): Use constants from `enum
8964 amd64_regnum' for register numbers.
8965 (amd64_supply_fpregset): Adjust for renamed functions.
8966 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
8967 `enum amd64_regnum' for register numbers.
8968 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
8969 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
8970 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
8971 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
8972 (amd64_linux_fill_gregset): Adjust for renamed macros.
8973 (fetch_core_registers): Adjust for renamed functions.
8974 (amd64_linux_init_abi): Adjust for renamed functions.
8975 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
8976 renamed functions.
8977 * amd64-nat.c: Adjust for renamed macros.
8978 * amd64bsd-nat.c (fetch_inferior_registers)
8979 (store_inferior_registers): Use constants from `enum amd64_regnum'
8980 for register numbers. Adjust for renamed variables.
8981 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
8982 renamed variables.
8983 (_initialize_amd64fbsd_nat): Use constants from `enum
8984 amd64_regnum' for register numbers.
8985 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
8986 `enum amd64_regnum' for register numbers.
8987 (amd64fbsd_init_abi): Adjust for renamed functions.
8988 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
8989 `enum amd64_regnum' for register numbers.
8990 (amd64nbsd_init_abi): Adjust for renamed functions.
8991 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
8992 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
8993 `enum amd64_regnum' for register numbers.
8994 (amd64obsd_init_abi): Adjust for renamed functions.
8995 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
8996
d5479188
JJ
89972004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8998
8999 * breakpoint.c (print_one_breakpoint): Do not output spaces
9000 after printing <PENDING> for a pending breakpoint.
9001
81cb7cc9
JJ
90022004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9003
9004 * printcmd.c (print_scalar_formatted): Initialize val_long
9005 to remove compiler warning message.
9006
cbdeadca
JJ
90072004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9008
9009 * defs.h (nquery, yquery): New prototypes.
9010 * breakpoint.c (break_command_1): Use new nquery interface.
9011 * utils.c (defaulted_query, nquery, yquery): New functions.
9012
da6bab63
AC
90132004-02-23 Andrew Cagney <cagney@redhat.com>
9014
2f690297
AC
9015 * hppa-tdep.c (hppa_frame_align): New function.
9016 (hppa32_push_dummy_call): New function.
9017 (hppa64_push_dummy_call): New function.
9018 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
9019 disabled.
8a1dac83 9020
da6bab63
AC
9021 * infcall.c (legacy_push_dummy_code): Don't call deprecated
9022 FIX_CALL_DUMMY when push_dummy_call is available.
9023 (call_function_by_hand, push_dummy_code): Ditto.
9024
abf9b42d
AC
90252004-02-22 Andrew Cagney <cagney@redhat.com>
9026
9027 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
9028 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
9029 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
9030 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
9031 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
9032 call_dummy_location to ON_STACK.
9033
10fc94a4
MK
90342004-02-22 Mark Kettenis <kettenis@gnu.org>
9035
51433e4b
MK
9036 * x86-64-linux-tdep.c: Tweak comment.
9037 (amd64_linux_supply_gregset): Renamed from
9038 x86_64_linux_supply_gresget.
9039 (amd64_linux_fill_gregset): Renamed from
9040 x86_64_linux_fill_gregset.
9041 (fetch_core_registers): Adjust for renamed functions.
9042 (amd64_core_fns): Renamed from x86_64_core_fns.
9043 (amd64_linux_sigtramp_start): Renamed from
9044 x86_64_linux_sigtramp_start.
9045 (amd64_linux_pc_in_sigtramp): Renamed from
9046 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
9047 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
9048 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
9049 (amd64_linux_sigcontext_addr): Renamed from
9050 x86_64_linux_sigcontext_addr.
9051 (amd64_linux_sc_reg_offset): Renamed from
9052 x86_64_linux_sc_reg_offset.
9053 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
9054 Adjust for renamed functions and variables.
9055 (_initialize_amd64_linux_tdep): Renamed from
9056 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
9057 variables.
9058 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
9059 Adjust for renamed functions.
9060
430eaf2e
MK
9061 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
9062 from x86_64_linux_gregset64_reg_offset.
9063 (amd64_linux_gregset32_reg_offset): Rename from
9064 x86_64_linux_gregset64_reg_offset.
9065 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
9066 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
9067 (amd64_linux_dr_set_control): Renamed from
9068 x86_64_linux_dr_set_control. Adjust for renamed functions.
9069 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
9070 Adjust for renamed functions.
9071 (amd64_linux_dr_reset_addr): Renamed from
9072 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
9073 (amd64_linux_dr_get_status): Renamed from
9074 x86_64_linux_dr_get_status. Adjust for renamed functions.
9075 (_initialize_amd64_linux_nat): Renamed from
9076 _initialize_x86_64_linux_nat. Adjust for renamed variables and
9077 functions.
9078 * config/i386/nm-x86-64linux.h: Update copyright year.
9079 Adjust for renamed functions.
9080
10fc94a4
MK
9081 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
9082 amd64fbsd_sigtramp_start.
9083 (amd64fbsd_sigtramp_end_addr): Renamed from
9084 amd64fbsd_sigtramp_end.
9085 (amd64fbsd_init_abi): Adjust for renamed variables.
9086 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
9087 variables.
9088 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
9089 amd64fbsd_sigtramp_start.
9090 (amd64fbsd_sigtramp_end_addr): Renamed from
9091 amd64fbsd_sigtramp_end.
9092
343af405
AC
90932004-02-22 Andrew Cagney <cagney@redhat.com>
9094
537987fc
AC
9095 * hppa-tdep.c (hppa32_return_value): New function.
9096 (hppa64_return_value): New function.
9097 (hppa_gdbarch_init): Set return_value; keep disabled.
9098
fad850b2
AC
9099 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
9100 struct-return and inferior function call methods.
9101
26d08f08
AC
9102 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9103 "frame-base.h".
9104 (struct hppa_frame_cache): Define.
9105 (hppa_frame_cache, hppa_frame_this_id): New functions.
9106 (hppa_frame_prev_register): New function.
9107 (hppa_frame_unwind, hppa_frame_base): New variables.
9108 (hppa_frame_unwind_sniffer): New function.
9109 (hppa_frame_base_address, hppa_unwind_pc): New function.
9110 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
9111 sniffer, and frame base sniffer; keep disabled.
9112 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
9113 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
9114
e7d7bd65
AC
9115 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
9116 to predicates for "seriously old code".
9117
e963316f
AC
9118 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
9119 runtime if(0).
9120
56132691
AC
9121 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
9122 unsigned.
9123 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 9124
343af405
AC
9125 * config/pa/tm-hppa.h: Update copyright.
9126 (DEPRECATED_INIT_FRAME_PC): Delete macro.
9127 (deprecated_init_frame_pc_default): Delete declaration.
9128 (hppa_frame_init_saved_regs): Delete declaration.
9129 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9130 * hppa-tdep.c: Include "arch-utils.h".
9131 (hppa_gdbarch_init): Set deprecated init_frame_pc
9132 and deprecated frame_init_saved_regs.
9133 (hppa_frame_init_saved_regs): Make static.
9134
f5859b4d
MK
91352004-02-22 Mark Kettenis <kettenis@gnu.org>
9136
86f6f8e7 9137 Remove old 386BSD support.
cf7c5c23 9138 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
9139 * configure.host: Remove i[34567]86-*-bsd*.
9140 * configure.tgt: Remove i[34567]86-*-bsd*.
9141 * i386b-nat.c: Removed.
9142 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
9143 (i386b-nat.o): Remove dependencies.
9144
86f6f8e7
MK
9145 * config/i386/i386bsd.mh: Removed.
9146 * config/i386/i386bsd.mt: Removed.
9147 * config/i386/nm-i386bsd.h: Removed.
9148 * config/i386/tm-i386bsd.h: Removed.
9149 * config/i386/xm-i386bsd.h: Removed.
9150
971218cd
MK
9151 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
9152
7e654c37
MK
9153 * amd64fbsd-tdep.c: Include "solib-svr4.h".
9154 (amd64fbsd_init_abi): Set link map offsets.
9155 * amd64nbsd-tdep.c: Include "slib-svr4.h".
9156 (amd64nbsd_init_abi): Set link map offsets.
9157 * amd64obsd-tdep.c: Include "solib-svr4.h".
9158 (amd64obsd_init_abi): Set link map offsets.
9159 * i386fbsd-tdep.c: Include "solib-svr4.h".
9160 (i386fbsd_init_abi): Set link map offsets.
9161 * i386nbsd-tdep.c: Include "solib-svr4.h".
9162 (i386nbsdelf_init_abi): Set link map offsets.
9163 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
9164 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
9165 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
9166 solib-legacy.o and core-aout.o. Reformat.
9167 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
9168 solib-svr4.o, solib-legacy.o. Reformat.
9169 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
9170 * config/i386/nbsdelf.mh: Reformat.
9171 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
9172 solib-svr4.o, solib-legacy.o and corelow.o.
9173 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
9174 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
9175 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
9176 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9177 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9178 (TM_FILE): Set to tm-fbsd.h.
9179 * config/i386/nbsd.mt (TDEPFILES): Reformat.
9180 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
9181 solib-svr4.o.
9182 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
9183 solib-svr4.o.
9184 (TM_FILE): Set to nm-nbsd.h.
9185 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
9186 Simplify shared library support. Don't include "elf/common.h".
9187 (SVR4_SHARED_LIBS): Don't define.
9188 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
9189 "solib.h".
9190 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
9191 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
9192 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
9193 Don't include "i386/tm-i386.h". Include "solib.h".
9194 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
9195 Don't include "i386/tm-i386.h".
9196 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
9197 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
9198 Include "i386/xm-i386.h".
9199 (HOST_LONG_DOUBLE_FORMAT): Remove.
9200
5d93ae8c
MK
9201 Fix OpenBSD/i386 sigtramp recognition.
9202 * i386-tdep.h: Update copyright year.
9203 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
9204 (i386bsd_sigtramp_end): New prototypes.
9205 (i386fbsd_sigtramp_start_addr): Renamed from
9206 i386fbsd_sigtramp_start.
9207 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9208 (i386obsd_sigtramp_start_addr): Renamed from
9209 i386obsd_sigtramp_start.
9210 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9211 * i386bsd-tdep.c: Update copyright year.
9212 (i386bsd_pc_in_sigtramp): Make public.
9213 * i386fbsd-nat.c: Update copyright year.
9214 (_initialize_i386fbsd_nat): Adjust for renamed variables.
9215 * i386fbsd-tdep.c: Update copyright year.
9216 (i386fbsd_sigtramp_start_addr): Renamed from
9217 i386fbsd_sigtramp_start.
9218 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9219 (i386fbsdaout_init_abi): Adjust for renamed variables.
9220 * i386obsd-nat.c: Update copyright year.
9221 (_initialize_i386obsd_nat): Adjust for renamed variables.
9222 * i386obsd-tdep.c: Include "target.h".
9223 (i386obsd_page_size): New variable.
9224 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
9225 (i386obsd_sigtramp_end): New functions.
9226 (i386obsd_sigtramp_start_addr): Renamed from
9227 i386obsd_sigtramp_start.
9228 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9229 (i386obsd_init_abi): Adjust for renamed variables. Set
9230 pc_in_sigtramp, sigtramp_start and sigtramp_end.
9231 * Makefile.in (i386obsd-tdep.o): Update dependencies.
9232
84d04465
MK
9233 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
9234 trampoline change in OpenBSD kernel.
9235
b053aceb
MK
9236 * amd64-nat.c: Update copyright year.
9237 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
9238 architecture from REGCACHE.
9239
f5859b4d
MK
9240 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
9241 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
9242
e4bbbda8
MK
92432004-02-21 Mark Kettenis <kettenis@gnu.org>
9244
ba361932
MK
9245 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
9246 i[34567]86-*-openbsd3.[0-3].
9247 * config/i386/obsdaout.mh: New file.
9248
d3e48264
MK
9249 * config/i386/obsd.mh (MH_FLAGS): Remove.
9250
60a6eeb6
MK
9251 Fix PR build/1549.
9252 * i386obsd-tdep.c: Update copyright years. Include
9253 "solib-svr4.h".
9254 (i386obsd_init_abi): Don't set regset_from_core_section here.
9255 (i386obsd_aout_init_abi): New function. Set
9256 regset_from_core_section here.
9257 (i386obsd_elf_init_abi): New function.
9258 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
9259 * Makefile.in (i386obsd-tdep.o): Update dependecies.
9260 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9261 (TM_FILE): Set to tm-nbsd.h.
9262
9263 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
9264 solib-sunos.o.
9265
e4bbbda8
MK
9266 * solib-svr4.h: Update copyright year.
9267 (svr4_ilp32_fetch_link_map_offsets)
9268 (svr4_lp64_fetch_link_map_offsets): New prototype.
9269 * solib-svr4.c: Update copyright year.
9270 (svr4_ilp32_fetch_link_map_offsets)
9271 (svr4_lp64_fetch_link_map_offsets): New function.
9272
f6fe98ef
DJ
92732004-02-20 Daniel Jacobowitz <drow@mvista.com>
9274
9275 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
9276 to the partial symbol table.
9277
589ca796
JB
92782004-02-20 J. brobecker <brobecker@gnat.com>
9279
9280 * PROBLEMS: Add description of problem documented under gdb/1560.
9281
2031c21a
MK
92822004-02-20 Mark Kettenis <kettenis@gnu.org>
9283
30b344b1
MK
9284 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
9285 comments.
9286 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
9287 functions.
9288 (amd64obsd_init_abi): Reorder initializations. Use
9289 amd64obsd_r_reg_offset to initialize the general-purpose register
9290 set details. Set regset_from_core_section.
9291 (_initialize_amd64obsd_tdep): Rename from
9292 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
9293 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
9294 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
9295
2031c21a
MK
9296 * NEWS (New native configurations): Mention OpenBSD/alpha.
9297 * configure.tgt: Add alpha*-*-openbsd*.
9298 * configure.host: Add alpha*-*-openbsd*.
9299 * alphanbsd-tdep.c: Update copyright year.
9300 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
9301
42471775
AC
93022004-02-20 Andrew Cagney <cagney@redhat.com>
9303
9304 Fix PR tdep/1372.
9305 * configure.tgt: Delete target "none-*-*".
9306 * configure.host: Delete host "none-*-*".
9307 * config/none/none.mh: Delete file.
9308 * config/none/none.mt: Delete file.
9309 * config/none/xm-none.h: Delete file.
9310 * config/none/tm-none.h: Delete file.
9311 * config/none/nm-none.h: Delete file.
9312
960ccd7d
FF
93132004-02-19 Fred Fish <fnf@redhat.com>
9314
9315 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
9316 cache->uses_fp prior to setting it.
9317
5f883edd
FF
93182004-02-19 Fred Fish <fnf@redhat.com>
9319
9320 Fix for PR breakpoint/1558.
9321 * sh-tdep.c (IS_JSR): New macro.
9322 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
9323
f98c22d5
JB
93242004-02-19 Jim Blandy <jimb@redhat.com>
9325
9326 * findvar.c (value_from_register): Doc fix.
9327
95051d27
JJ
93282004-02-19 Jeff Johnston <jjohnstn@redhat.com>
9329
9330 * printcmd.c (print_scalar_formatted): Do not check for sizeof
9331 type being greater than sizeof of host's LONGEST. Always use
9332 unpack_long() unless format 'f' chosen.
9333
ccefbec3
EZ
93342004-02-19 Joel Brobecker <brobecker@gnat.com>
9335
9336 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 9337
ccefbec3
EZ
9338 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
9339 contains a symbol wich is the best, non-exact match for the given
9340 pc. Update comments.
9341
93422004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 9343
2ede629f
EZ
9344 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
9345 macro, which was part of the now removed Mach 3 port.
9346 * utils.c (request_quit): Ditto.
9347
567ee972
MK
93482004-02-18 Mark Kettenis <kettenis@gnu.org>
9349
9350 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
9351 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
9352
50cca7bb
MK
93532004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9354
9355 Committed by Mark Kettenis <kettenis@gnu.org>.
9356
9357 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
9358 Define.
9359
226361c4
AC
93602004-02-18 Andrew Cagney <cagney@redhat.com>
9361
9362 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
9363 CONFIG_INSTALL and CONFIG_UNINSTALL.
9364 * configure: Re-generate.
9365 * interps.h (INTERP_TUI): Define.
9366 * Makefile.in: Update dependencies.
9367 (TUI): New macro.
9368 (tui-main.o): Specify dependencies.
9369 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
9370 * tui/tui-main.c: New file.
9371
49cfa46f
MK
93722004-02-18 Mark Kettenis <kettenis@gnu.org>
9373
e2879ccb
MK
9374 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
9375 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
9376 dependencies.
9377 * configure.host: Add x86_64-*-openbsd*.
9378 * configure.tgt: Add x86_64-*-openbsd*.
9379 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
9380
c43f4bec
MK
9381 * tui/tui.c: Don't include <malloc.h>.
9382
09ae75b6
MK
9383 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
9384 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
9385 amd64nbsd-tdep.c.
9386
49cfa46f 9387 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 9388 static. Remove extraneous whitespace.
49cfa46f
MK
9389 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
9390 static.
9391
05957fdb
JB
93922004-02-17 Jim Blandy <jimb@redhat.com>
9393
9394 * findvar.c (value_from_register): Doc fix.
9395
d0f54f9d
JB
93962004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9397
9398 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 9399
8a1dac83 9400 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
9401 CORE_ADDR as type for selectors. Correct types for GNU run time
9402 message lookup function to use double indirection.
9403 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
9404 * objc-lang.h (lookup_child_selector): Adapt prototype.
9405
9cbd5950
JB
9406 * s390-nat.c (SUBOFF): New macro.
9407 (supply_gregset, fill_gregset): Use it to handle debugging
9408 of 32-bit exectuables running under a 64-bit kernel.
9409 * s390-tdep.c: Include "solib-svr4.h".
9410 (s390_svr4_fetch_link_map_offset): New function.
9411 (s390x_svr_fetch_link_map_offset): Likewise.
9412 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
9413 * Makefile.in (s390-tdep.o): Update dependencies.
9414
a8c99f38
JB
9415 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
9416 "frame-unwind.h".
9417 (s390_readinstruction): Reformat. Use read_memory_nobpt.
9418 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
9419 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
9420 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
9421 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
9422 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 9423 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
9424 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
9425 (struct frame_extra_info): Remove.
9426 (s390_memset_extra_info): Remove.
f73b1eff
JB
9427 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
9428 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
9429 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
9430 (is_rse): Renamed to ...
9431 (is_rsy): ... this. Support long displacements.
9432 (is_rxe): Renamed to ...
9433 (is_rxy): ... this. Support long displacements.
9434 (compute_x_addr): Support long displacements.
9435 (struct s390_prologue_data): New data type.
9436 (s390_on_stack): Change API to use struct s390_prologue_data.
9437 (s390_store): Reimplement.
9438 (s390_load): New function.
9439 (s390_get_signal_frame_info): Remove.
9440 (s390_get_frame_info): Remove, replace by ...
9441 (s390_analyze_prolog): ... this new function.
9442 (s390_check_function_end): Remove.
9443 (s390_function_start): Remove.
9444 (s390_frameless_function_invokation): Remove.
9445 (s390_is_sigreturn): Remove.
9446 (s390_init_frame_pc_first): Remove.
9447 (s390_init_frame_extra_info): Remove.
9448 (s390_frame_init_saved_regs): Remove.
9449 (s390_frame_saved_pc_nofix): Remove.
9450 (s390_frame_saved_pc): Remove.
9451 (s390_frame_chain): Remove.
9452 (s390_fp_regnum, s390_read_fp): Remove.
9453 (s390_pop_frame_regular, s390_pop_frame): Remove.
9454 (s390_saved_pc_after_call): Remove.
9455 (s390_skip_prologue): Reimplement.
9456 (s390_in_function_epilogue_p): Support long displacements.
9457 (struct s390_unwind_cache): New data structure.
9458 (s390_frame_unwind_cache): New function.
9459 (s390_prologue_frame_unwind_cache): Likewise.
9460 (s390_backchain_frame_unwind_cache): Likewise.
9461 (s390_frame_this_id, s390_frame_prev_register): Likewise.
9462 (s390_frame_unwind): Define.
9463 (s390_frame_sniffer): New function.
9464 (struct s390_pltstub_unwind_cache): New data structure.
9465 (s390_pltstub_frame_unwind_cache): New function.
9466 (s390_pltstub_frame_this_id): Likewise.
9467 (s390_pltstub_frame_prev_register): Likewise.
9468 (s390_pltstub_frame_unwind): Define.
9469 (s390_pltstub_frame_sniffer): New function.
9470 (struct s390_sigtramp_unwind_cache): New data structure.
9471 (s390_sigtramp_frame_unwind_cache): New function.
9472 (s390_sigtramp_frame_this_id): Likewise.
9473 (s390_sigtramp_frame_prev_register): Likewise.
9474 (s390_sigtramp_frame_unwind): Define.
9475 (s390_sigtramp_frame_sniffer): New function.
9476 (s390_frame_base_address, s390_local_base_address): New functions.
9477 (s390_frame_base): Define.
9478 (s390_unwind_pc, s390_unwind_sp): New function.
9479 (s390_push_dummy_call): Use new frame base location.
9480 (s390_unwind_dummy_id): Likewise.
9481 (s390_gdbarch_init): Remove calls to:
9482 set_gdbarch_frameless_function_invocation,
9483 set_gdbarch_deprecated_init_frame_pc,
9484 set_gdbarch_deprecated_frame_chain,
9485 set_gdbarch_deprecated_frame_init_saved_regs,
9486 set_gdbarch_deprecated_pop_frame,
9487 set_gdbarch_deprecated_init_extra_frame_info,
9488 set_gdbarch_deprecated_init_frame_pc_first,
9489 set_gdbarch_deprecated_target_read_fp,
9490 set_gdbarch_deprecated_frame_saved_pc,
9491 set_gdbarch_deprecated_saved_pc_after_call,
9492 set_gdbarch_deprecated_fp_regnum.
9493 Add calls to:
9494 set_gdbarch_in_solib_call_trampoline,
9495 frame_unwind_append_sniffer,
9496 frame_base_set_default,
9497 set_gdbarch_unwind_pc,
9498 set_gdbarch_unwind_sp.
9499 * Makefile.in (s390-tdep.o): Update dependencies.
9500
b0cf273e
JB
9501 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
9502 (S390_STACK_FRAME_OVERHEAD): Remove.
9503 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
9504 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
9505 (s390_promote_integer_argument): Remove.
9506 (s390_cannot_extract_struct_value_address): Remove.
9507 (s390_use_struct_convention, s390_store_struct_return): Remove.
9508 (s390_extract_return_value, s390_store_return_value): Remove.
9509 (s390_return_value_convention, s390_return_value): New functions.
9510 (is_float_singleton): Handle typedefs.
8a1dac83 9511 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
9512 Remove, replace by ...
9513 (s390_function_arg_pass_by_reference, s390_function_arg_float,
9514 s390_function_arg_integer): ... these new functions.
9515 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
9516 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
9517 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
9518 Fill in tdep->abi.
9519 Remove calls to:
9520 set_gdbarch_deprecated_store_struct_return,
9521 set_gdbarch_deprecated_extract_return_value,
9522 set_gdbarch_deprecated_store_return_value,
9523 set_gdbarch_use_struct_convention,
9524 set_gdbarch_extract_struct_value_address,
9525 set_gdbarch_deprecated_pc_in_call_dummy,
9526 set_gdbarch_deprecated_push_arguments,
9527 set_gdbarch_deprecated_save_dummy_frame_tos,
9528 set_gdbarch_deprecated_push_return_address,
9529 set_gdbarch_deprecated_sizeof_call_dummy_words,
9530 set_gdbarch_deprecated_call_dummy_words,
9531 set_gdbarch_deprecated_dummy_write_sp.
9532 Add calls to:
9533 set_gdbarch_push_dummy_call,
9534 set_gdbarch_unwind_dummy_id,
9535 set_gdbarch_return_value.
8a1dac83 9536
e1457d83
JB
9537 * config/s390/nm-linux.h: Update comments.
9538 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
9539 (STOPPED_BY_WATCHPOINT): Redefine.
9540 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
9541 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
9542 (s390_stopped_by_watchpoint): Likewise.
9543 (watch_area_cnt): Remove.
9544 * s390-nat.c: Update comments.
9545 (watch_area): Remove typedef.
9546 Global replace watch_area by struct watch_area.
9547 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 9548 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
9549 use s390_inferior_tid. Add short-cut for the no watchpoint case.
9550 (s390_fix_watch_points): Remove pid argument,
9551 use s390_inferior_tid. Recompute area spanned by watchpoints.
9552 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
9553 argument. Reimplement.
9554
d0f54f9d
JB
9555 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
9556 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
9557 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 9558 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
9559 core-regset.o.
9560 * config/s390/s390x.mt: Remove.
9561 * config/s390/tm-s390.h: Remove.
9562 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
9563 (TARGET_ELF64): Remove.
9564 (SKIP_TRAMPOLINE_CODE): Do not undefine.
9565 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
9566 s390*-*-* case; always set gdb_target to s390.
9567 * regformats/reg-s390.dat: Remove control registers.
9568 * regformats/reg-s390x.dat: Likewise.
9569 * s390-tdep.h: New file.
8a1dac83 9570 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
9571 Include "inferior.h" and "s390-tdep.h".
9572 Remove private definition of offsetof.
9573 (s390_register_u_addr): Remove.
9574 (regmap_gregset, regmap_fpregset): Define.
9575 (supply_gregset, fill_gregset): Reimplement.
9576 (supply_fpregset, fill_fpregset): Likewise.
9577 (s390_inferior_tid): New function.
9578 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
9579 (fetch_inferior_registers, store_inferior_registers): Likewise.
9580 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
9581 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
9582 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
9583 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
9584 (struct gdbarch_tdep): Define.
9585 (struct s390_register_info): Define.
9586 (s390_register_info): New variable.
9587 (s390_register_name): Reimplement.
9588 (s390_register_type): New function.
9589 (s390_register_raw_size, s390x_register_raw_size): Remove.
9590 (s390_cannot_fetch_register): Remove.
9591 (s390_register_byte): Remove.
9592 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
9593 (s390_dwarf_regmap): New variable.
9594 (s390_dwarf_reg_to_regnum): New function.
9595 (s390_stab_reg_to_regnum): Remove.
9596 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
9597 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
9598 (s390_convert_register_p): Likewise.
9599 (s390_register_to_value, s390_value_to_register): Likewise.
9600 (s390_register_reggroup_p): Likewise.
9601 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
9602 s390_gregset, s390x_gregset, s390_fpregset): New variables.
9603 (s390_supply_regset, s390_regset_from_core_section): New functions.
9604 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
9605 (S390_FPR_SIZE): Likewise.
9606 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
9607 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
9608 (S390_NUM_GPRS): Move here from tm-s390.h.
9609 (S390_NUM_FPRS): Likewise.
9610 (s390_in_function_epilogue_p): New function.
9611 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
9612 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
9613 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
9614 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
9615 Replace S390_FP_REGNUM by S390_SP_REGNUM.
9616 Remove calls to:
9617 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
9618 set_gdbarch_deprecated_max_register_virtual_size,
9619 set_gdbarch_deprecated_register_byte,
d0f54f9d 9620 set_gdbarch_cannot_fetch_register,
8a1dac83 9621 set_gdbarch_cannot_store_register,
d0f54f9d
JB
9622 set_gdbarch_deprecated_register_size,
9623 set_gdbarch_deprecated_register_raw_size,
9624 set_gdbarch_deprecated_register_virtual_size,
9625 set_gdbarch_deprecated_register_virtual_type,
9626 set_gdbarch_deprecated_register_bytes.
9627 Add calls to:
9628 set_gdbarch_num_pseudo_regs,
9629 set_gdbarch_register_type,
9630 set_gdbarch_convert_register_p,
9631 set_gdbarch_register_to_value,
9632 set_gdbarch_value_to_register,
9633 set_gdbarch_register_reggroup_p,
9634 set_gdbarch_regset_from_core_section,
9635 set_gdbarch_pseudo_register_read,
9636 set_gdbarch_pseudo_register_write,
9637 set_gdbarch_in_function_epilogue_p.
9638 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
9639 (s390_tdep_h): New variable.
9640
8cfe231d
JB
96412004-02-17 Jim Blandy <jimb@redhat.com>
9642
4589a601
JB
9643 * findvar.c (value_from_register): If the type has no length, just
9644 return an acceptable value --- don't report an internal error.
9645
8cfe231d
JB
9646 * stabsread.c (read_type): If we find any type numbers that are
9647 forward references, complain if the references aren't resolved by
9648 the time we're finished reading.
9649 (cleanup_undefined_types): Make error message more appropriate for
9650 a complaint.
9651
5bf0017e
EZ
96522004-02-17 Elena Zannoni <ezannoni@redhat.com>
9653
9d62932d
EZ
9654 * Makefile.in (defs_h): Remove dependency on progress_h.
9655 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
9656 progress.h.
9657 * main.c (captured_main): Delete use of START_PROGRESS and
9658 END_PROGRESS.
9659
96602004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 9661
5bf0017e
EZ
9662 * objfiles.c (terminate_minimal_symbol_table): Add back
9663 initialization of MSYMBOL_TYPE.
9664
9fc9f5e2
AC
96652004-02-17 David Mosberger <davidm@hpl.hp.com>
9666
9667 Committed by Andrew Cagney.
9668 * Makefile.in (ia64_tdep_h): New macro.
9669 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
9670 (ia64-tdep.o): Likewise.
9671 * ia64-tdep.h: New file.
9672 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
9673 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
9674 (ia64_aix_sigcontext_register_address): Likewise.
9675 (ia64_linux_getunwind_table): Delete declaration.
9676 * ia64-linux-tdep.c: Likewise.
9677
76cd2bd9
CV
96782004-02-17 Corinna Vinschen <vinschen@redhat.com>
9679
9680 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
9681 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
9682 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
9683
634aa483
AC
96842004-02-17 Andrew Cagney <cagney@redhat.com>
9685
9686 * symtab.c (skip_prologue_using_sal): New function.
9687 * symtab.h (skip_prologue_using_sal): Declare.
9688 * frv-tdep.c: Include "symtab.h".
9689 (skip_prologue_using_sal): Delete function.
9690 * mips-tdep.c (skip_prologue_using_sal): Delete function.
9691 * rs6000-tdep.c (refine_prologue_limit): Mention
9692 skip_prologue_using_sal.
9693 * ia64-tdep.c (refine_prologue_limit): Ditto.
9694 * Makefile.in: Update dependencies.
9695
96962004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 9697
39ce7b3f
AC
9698 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
9699 START_INFERIOR_TRAPS_EXPECTED.
9700 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
9701 START_INFERIOR_TRAPS_EXPECTED.
9702 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
9703 Delete macro.
9704 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
9705 macro, moved to "nm-osf.h". Update copyright.
9706 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
9707 update copyright.
9708
19772a2c
AC
9709 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
9710 and function replacing FRAMELESS_FUNCTION_INVOCATION.
9711 * blockframe.c (legacy_frameless_look_for_prologue): Rename
9712 frameless_look_for_prologue.
9713 * frame.h (legacy_frameless_look_for_prologue): Rename
9714 frameless_look_for_prologue.
9715 * gdbarch.h, gdbarch.c: Re-generate.
9716 * sh64-tdep.c (sh64_gdbarch_init): Update.
9717 * sh-tdep.c (sh_gdbarch_init): Update.
9718 * s390-tdep.c (s390_gdbarch_init): Update.
9719 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9720 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9721 * m68k-tdep.c (m68k_gdbarch_init): Update.
9722 (delta68_frame_args_address): Update.
9723 * m32r-tdep.c (m32r_gdbarch_init): Update.
9724 * hppa-tdep.c (hppa_gdbarch_init): Update.
9725 * h8300-tdep.c (h8300_gdbarch_init): Update.
9726 * frv-tdep.c (frv_gdbarch_init): Update.
9727 (frv_frameless_function_invocation): Update.
9728 * cris-tdep.c (cris_gdbarch_init): Update.
9729 (cris_frameless_function_invocation): Update.
9730 * avr-tdep.c (avr_gdbarch_init): Update.
9731 * arm-tdep.c (arm_gdbarch_init): Update.
9732 * stack.c (frame_info): Update, call predicate.
9733 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
9734 * frame.c (legacy_get_prev_frame): Update, call predicate..
9735 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
9736 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
9737 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
9738 invocation.
9739 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9740 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9741 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
9742
9743 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
9744 function.
9745
7dcaac91
DJ
97462004-02-16 Daniel Jacobowitz <drow@mvista.com>
9747
9748 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
9749 initializations.
9750
88289b6e
AC
97512004-02-16 Andrew Cagney <cagney@redhat.com>
9752
9753 * tui/tui-windata.c: Include "gdb_string.h".
9754 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
9755 * tui/tui-layout.c, tui/tui-command.c: Ditto.
9756 * Makefile.in: Update dependencies.
9757
9f976b41
DJ
97582004-02-16 Daniel Jacobowitz <drow@mvista.com>
9759
9760 * Makefile.in (infrun.o): Add $(gdb_assert_h).
9761 * infrun.c: Include "gdb_assert.h".
9762 (singlestep_ptid, saved_singlestep_ptid)
9763 (stepping_past_singlestep_breakpoint): New variables.
9764 (resume): Set singlestep_ptid. Check for singlestep thread
9765 hop.
9766 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
9767 (handle_inferior_event): Handle singlestep thread hop.
9768
c324d747
AC
97692004-02-16 Andrew Cagney <cagney@redhat.com>
9770
f090b9b1
AC
9771 * dwarf2-frame.c (dwarf2_frame_ops): New function.
9772 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
9773 (dwarf2_frame_init_reg): Ditto.
9774
fd33e6cb
AC
9775 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
9776 suggested by Joshua Neuheisel
9777
c324d747
AC
9778 * configure.in: Always check for curses, including pdcurses.
9779 Warn, instead of error, when no curses are found. Enable TUI when
9780 curses is available.
9781 * configure: Re-generate.
9782
b66ba949
CV
97832004-02-16 Corinna Vinschen <vinschen@redhat.com>
9784
9785 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
9786 sh_sh4_register_convert_to_virtual.
9787 (sh_register_convert_to_raw): Rename from
9788 sh_sh4_register_convert_to_raw.
9789 (sh_pseudo_register_read): Accomodate above name change.
9790 (sh_pseudo_register_write): Ditto.
9791
b58cbbf2
CV
97922004-02-16 Corinna Vinschen <vinschen@redhat.com>
9793
9794 * sh-tdep.c (sh_generic_register_name): Remove.
9795 (sh_gdbarch_init): Use sh_sh_register_name in default case.
9796
5929a910
AC
97972004-02-15 Andrew Cagney <cagney@redhat.com>
9798
4566dfcf
AC
9799 * configure.in (build_warnings): Add -Wunused-function.
9800 * configure: Re-generate.
9801
db11ed55
AC
9802 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
9803 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
9804
46ac7a5d
AC
9805 * procfs.c (procfs_init_inferior): Assume that
9806 START_INFERIOR_TRAPS_EXPECTED is defined.
9807 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
9808 * config/ns32k/tm-nbsd.h: Delete file,
9809 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
9810
ba801595
AC
9811 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
9812 * config/vax/tm-vax.h: Delete file.
9813
5929a910
AC
9814 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9815 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9816 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9817 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9818 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
9819 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
9820 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
9821
8f22cb90
MK
98222004-02-15 Mark Kettenis <kettenis@gnu.org>
9823
9824 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
9825 * dwarf2-frame.c (dwarf2_frame_data): New variable.
9826 (struct dwarf2_frame_ops): New.
9827 (dwarf2_frame_default_init_reg): New function, based on
9828 dwarf2_frame_init_reg.
9829 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
9830 (dwarf2_frame_init_reg): Call architecture-specific function.
9831 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
9832 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
9833 instead of dwarf2_frame_data.
9834 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
9835 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
9836
8132723e
AC
98372004-02-15 Andrew Cagney <cagney@redhat.com>
9838
046a4708
AC
9839 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
9840 register_gdbarch_swap.
9841 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
9842 * f-lang.c (_initialize_f_language): Update, use
9843 DEPRECATED_REGISTER_GDBARCH_SWAP.
9844 * remote.c (_initialize_remote): Ditto.
9845 * regcache.c (_initialize_regcache): Ditto.
9846 * parse.c (_initialize_parse): Ditto.
9847 * infrun.c (_initialize_infrun): Ditto.
9848 * mi/mi-main.c (_initialize_mi_main): Ditto.
9849 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 9850
549c1eea
AC
9851 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
9852 poking .cacheable directly.
9853 * symfile.c (symfile_bfd_open): Ditto.
9854
0c0b39de
AC
9855 * Makefile.in: Update all dependencies.
9856
8132723e
AC
9857 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
9858 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
9859 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
9860 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
9861 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 9862
b9d26eb9
AC
98632004-02-14 Andrew Cagney <cagney@redhat.com>
9864
8e1f669a
AC
9865 * arch-utils.c (legacy_convert_register_p): Check
9866 DEPRECATED_REGISTER_CONVERTIBLE_P.
9867 * findvar.c (value_of_register): Ditto.
9868
cd0bfa36
AC
9869 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
9870 * gdbarch.h, gdbarch.c: Re-generate.
9871 * arch-utils.c (deprecated_register_convertible_not): Delete.
9872 * arch-utils.h (deprecated_register_convertible_not): Delete.
9873 * mi/mi-main.c (get_register): Update. Update copyright.
9874 * infcmd.c (default_print_registers_info): Update.
9875
b9d26eb9
AC
9876 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9877 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
9878 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 9879 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
9880 * frame.c (deprecated_get_next_frame_hack): Delete function.
9881 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
9882 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
9883 Update.
9884 * infcall.c (call_function_by_hand): Update.
9885
9ab9195f
EZ
98862004-02-14 Elena Zannoni <ezannoni@redhat.com>
9887
9888 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 9889 from here...
9ab9195f
EZ
9890 * objfiles.c (init_entry_point_info, entry_point_address):..to
9891 here.
9892 * symfile.h (init_entry_point_info, entry_point_address): Remove
9893 prototypes.
9894 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 9895 prototypes.
9ab9195f
EZ
9896 * cris-tdep.c: Remove include of symfile.h. Add include of
9897 objfiles.h.
9898 * infcall.c: Ditto.
9899 * mcore-tdep.c: Ditto.
9900 * mn10300-tdep.c: Ditto.
9901 * sh64-tdep.c: Ditto.
9902 * v850-tdep.c: Ditto.
9903 * arm-tdep.c: Remove include of symfile.h.
9904 * blockframe.c: Ditto.
9905 * coffread.c: Ditto.
9906 * dbxread.c: Ditto.
9907 * dwarf2read.c: Ditto.
9908 * dwarfread.c: Ditto.
8a1dac83 9909 * frv-tdep.c: Ditto.
9ab9195f
EZ
9910 * ia64-tdep.c: Ditto.
9911 * mdebugread.c: Ditto.
9912 * mipsread.c: Ditto.
8a1dac83 9913 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
9914 * s390-tdep.c: Ditto.
9915 * sh-tdep.c: Ditto.
8a1dac83 9916 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
9917 * gdbarch.sh: Remove include of symfile.h.
9918 * gdbarch.c: Regenerate.
9919 * solib-irix.c (enable_break): Use entry_point_address().
9920 Add comment about include file.
9921 * xcoffread.c: Add comment about include file.
8a1dac83
RM
9922 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
9923 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
9924 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
9925 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
9926 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
9927
c4c5b7ba
AC
99282004-02-13 Andrew Cagney <cagney@redhat.com>
9929
9930 * corelow.c (core_xfer_partial): Use "struct bfd_section".
9931 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
9932 copyright.
9933 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
9934
3e7879de
FF
99352004-02-12 Fred Fish <fnf@redhat.com>
9936
9937 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
9938 set_gdbarch_store_return_value.
9939
6a7760b6
AC
99402004-02-12 Andrew Cagney <cagney@redhat.com>
9941
9942 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
9943 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
9944 (interrupt_query): Ditto.
9945 (ofunc): Delete unused variable.
9946 * cris-tdep.c (cris_abi): Delete unused function.
9947 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
9948 (cris_get_wide_opcode, cris_get_short_size): Ditto.
9949 (cris_get_asr_quick_shift_steps): Ditto.
9950 (cris_skip_prologue_frameless_p): Ditto.
9951 * arm-tdep.c (arm_push_return_address): Delete unused function.
9952 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
9953 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
9954 * s390-tdep.c (s390_function_start): Delete unused function.
9955
31687c3c
AC
99562004-02-12 Andrew Cagney <cagney@redhat.com>
9957
9958 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
9959 gdbarch.h, gdbarch.c: Re-generate.
9960 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
9961 to generic_prologue_frameless_p.
9962 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
9963 * arch-utils.c (generic_prologue_frameless_p): Delete function.
9964
6de918a6
DJ
99652004-02-11 Daniel Jacobowitz <drow@mvista.com>
9966
9967 * mips-linux-tdep.c: Include "frame.h".
9968 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
9969 (mips_linux_skip_resolver): New functions.
9970 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
9971 and set_gdbarch_in_solib_call_trampoline.
9972 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
9973 to after set_gdbarch_in_solib_return_trampoline. Only set the
9974 solib hooks to mips16 functions if the OS ABI is unknown.
9975 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
9976 including "config/tm-linux.h".
9977 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
9978 * Makefile.in (mips-linux-tdep.o): Update.
9979
87b3ede8
DC
99802004-02-11 David Carlton <carlton@kealia.com>
9981
9982 * linespec.c (decode_compound): Only look for a class symbol when
9983 considering all but the rightmost component.
9984
5979bc46
AC
99852004-02-11 Andrew Cagney <cagney@redhat.com>
9986
9987 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
9988 abi code are are separatly grouped.
9989
5867a2fb
AC
99902004-02-11 Andrew Cagney <cagney@redhat.com>
9991
9992 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
9993 * gdbarch.h, gdbarch.c: Re-generate.
9994 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9995 * v850-tdep.c (v850_gdbarch_init): Update.
9996 * sh64-tdep.c (sh64_gdbarch_init): Update.
9997 * sh-tdep.c (sh_gdbarch_init): Update.
9998 * s390-tdep.c (s390_gdbarch_init): Update.
9999 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10000 * mips-tdep.c (mips_gdbarch_init): Update.
10001 * mcore-tdep.c (mcore_gdbarch_init): Update.
10002 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10003 * m32r-tdep.c (m32r_gdbarch_init): Update.
10004 * ia64-tdep.c (ia64_gdbarch_init): Update.
10005 * hppa-tdep.c (hppa_gdbarch_init): Update.
10006 * h8300-tdep.c (h8300_gdbarch_init): Update.
10007 * frv-tdep.c (frv_gdbarch_init): Update.
10008 * d10v-tdep.c (d10v_gdbarch_init): Update.
10009 * cris-tdep.c (cris_gdbarch_init): Update.
10010 * avr-tdep.c (avr_gdbarch_init): Update.
10011 * arm-tdep.c (arm_gdbarch_init): Update.
10012 * alpha-tdep.c (alpha_gdbarch_init): Update.
10013
026a72f8
CV
100142004-02-11 Corinna Vinschen <vinschen@redhat.com>
10015
10016 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
10017 comma.
10018 (sh_sh4al_dsp_register_name): Ditto.
10019
3903d437
AC
100202004-02-10 Andrew Cagney <cagney@redhat.com>
10021
10022 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
10023 (mips_init_frame_pc_first): Delete function.
10024 (mips_frame_saved_pc): Delete function.
10025 (mips_frame_chain): Delete function.
10026 (mips_init_extra_frame_info): Delete function.
10027 (mips_xfer_register): Delete unused variable "reg".
10028 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
10029 (mips_n32n64_return_value): Delete unused variable "reg".
10030 (mips_n32n64_return_value): Delete unused variable "pos".
10031 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
10032 (mips_o32_return_value): Delete unused variable "pos".
10033 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
10034 (mips_print_fp_register): Delete unused variable "namelen"
10035 (mips_print_fp_register): Delete unused variable "flt2"
10036 (get_frame_pointer): Delete function.
10037 (cached_proc_desc): Delete static variable.
10038 (mips_pop_frame): Delete function.
10039 (mips_find_saved_regs): Delete function.
10040 (mips_get_saved_register): Delete function.
10041 (mips_saved_pc_after_call): Delete function.
10042 (SIGFRAME_BASE): Delete macro.
10043 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
10044 (SIGFRAME_PC_OFF): Delete macro.
10045 (SIGFRAME_REGSAVE_OFF): Delete macro.
10046 (mips_dump_tdep): Do not print deleted macro definitions.
10047
b9fb98bd
AC
100482004-02-10 Andrew Cagney <cagney@redhat.com>
10049
10050 * Makefile.in (SFILES): Remove explictly listed tui files.
10051 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
10052
78ced177 100532004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 10054
78ced177
JJ
10055 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
10056 to use paddr functions to format ia64 addresses and long values.
10057 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
10058 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
10059 (get_kernel_table, ia64_find_proc_info_x): Ditto.
10060 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
10061 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
10062
6a83354a
AC
100632004-02-10 Andrew Cagney <cagney@redhat.com>
10064
10065 * defs.h: Do not include "tui.h".
10066 * gdb_curses.h: New file.
10067 * tui/tui-hooks.h: New file.
10068 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
10069 (tui_install_hooks, tui_remove_hooks): Delete declarations.
10070 (tui_initialize_io): Delete declaration.
10071 (tui_initialize_readline: Delete redundant declaration.
10072 (struct tui_point): Delete definition.
10073 * tui/tui-data.h (struct tui_point): Define.
10074 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
10075 * utils.c: Include "tui/tui.h".
10076 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
10077 * printcmd.c [TUI]: Include "tui/tui.h".
10078 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
10079 * tui/tui-command.c: Include "gdb_curses.h".
10080 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
10081 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
10082 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
10083 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
10084 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
10085 * Makefile.in: Update all dependencies.
10086 (tui_hooks_h, gdb_curses_h): Define.
10087 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
10088
997470ef
EZ
100892004-02-10 Elena Zannoni <ezannoni@redhat.com>
10090
10091 * objfiles.h (struct objfile): Remove unused fields auxf1 and
10092 auxf2. Add comments about some other rarely used fields.
10093
4ff2cc4d
AC
100942004-02-10 Andrew Cagney <cagney@redhat.com>
10095
10096 * Makefile.in (init.c): Fix script removing duplicates. Problem
10097 reported by Peter Schauer.
10098
1ab21617
EZ
100992004-02-09 Elena Zannoni <ezannoni@redhat.com>
10100
10101 * bcache.c (bcache_xmalloc): Use obstack_init instead of
10102 obstack_specify_allocation.
10103 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 10104 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
10105 (allocate_rt_common_objfile): Ditto.
10106 * symfile.c (reread_symbols): Ditto.
10107 * gdb_obstack.h: Add comment.
10108
17763fd9
EZ
101092004-02-09 Elena Zannoni <ezannoni@redhat.com>
10110
10111 * linespec.c (decode_line_1, locate_first_half)
10112 (decode_compound, lookup_prefix_sym): Update comments. Delete old
10113 commented out code.
10114
ec5cdd75
DJ
101152004-02-09 Daniel Jacobowitz <drow@mvista.com>
10116
10117 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
10118 obstack_free.
10119
43b54b88
AC
101202004-02-09 Andrew Cagney <cagney@redhat.com>
10121
10122 * blockframe.c (find_pc_partial_function): If find_pc_overlay
10123 fails, try find_pc_section. Fix PR c++/1267.
10124 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
10125 instead of find_pc_mapped_section.
10126 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
10127 not default to the section containing PC. Fix PR symtab/1519.
10128
edfae063
AC
101292004-02-09 Andrew Cagney <cagney@redhat.com>
10130
10131 * Makefile.in (mips-tdep.o): Update dependencies.
10132 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
10133 "trad-frame.h".
10134 (mips_unwind_pc): Return the pseudo PC register.
10135 (mips_unwind_dummy_id): New function.
10136 (mips16_fetch_instruction): New function.
10137 (mips32_fetch_instruction): New function.
10138 (struct mips_frame_cache): Define.
10139 (mips_mdebug_frame_cache): New function.
10140 (mips_mdebug_frame_this_id): New function.
10141 (mips_mdebug_frame_prev_register): New function.
10142 (mips_mdebug_frame_unwind): Define.
10143 (mips_mdebug_frame_sniffer): New function.
10144 (mips_mdebug_frame_base_address): New function.
10145 (mips_mdebug_frame_base): Define.
10146 (mips_mdebug_frame_base_sniffer): New function.
10147 (mips_gdbarch_init): Append unwind and base sniffers. Set
10148 unwind_dummy_id.
10149
defc864c
AC
101502004-02-08 Andrew Cagney <cagney@redhat.com>
10151
6764ddad
AC
10152 * frame.c: Print both the register number and name.
10153
defc864c
AC
10154 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
10155 and a sed into a single sed. Make .c and .o patterns more robust.
10156 (OBS): Delete.
10157 (INIT_FILES): Replace OBS with COMMON_OBS.
10158 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
10159
645d6d10
MK
101602004-02-08 Mark Kettenis <kettenis@gnu.org>
10161
10162 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
10163 the PT_WCOOKIE request.
10164
23e3c3fc
AC
101652004-02-08 Andrew Cagney <cagney@redhat.com>
10166
58dfe9ff
AC
10167 * mips-tdep.c (mips_unwind_pc): New function.
10168 (mips_gdbarch_init): Set mips_unwind_pc.
10169
1152e35e
AC
10170 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
10171 (get_frame_id): Allow the UNKNOWN_FRAME.
10172 (frame_register_unwind, get_frame_type): Ditto.
10173
31b75dbf
AC
10174 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
10175 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
10176 unwind_dummy_id indicates a legacy frame.
10177
3483b318
AC
10178 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
10179 * configure: Re-generate.
10180
23e3c3fc
AC
10181 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
10182 methods.
10183
33f8ca73
AC
101842004-02-08 Andrew Cagney <cagney@redhat.com>
10185
10186 * configure.in (CONFIG_ALL): Set to Makefile target, and not
10187 makefile macro.
10188 * configure: Re-generate.
10189 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
10190 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
10191 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
10192 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
10193 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
10194 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
10195 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
10196 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
10197 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
10198 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
10199
6ba8e26f 102002004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 10201
20d286a5
AC
10202 * Makefile.in: Update all dependencies.
10203
d836ee13
AC
10204 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
10205 * configure: Re-generate.
10206 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
10207 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
10208 (COMMON_OBS): Add "main.o" and "annotate.o".
10209 (ANNOTATE_OBS): Delete.
10210 (OBS): Remove ANNOTATE_OBS.
10211 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
10212 CONFIG_INITS.
10213 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
10214 against CONFIG_OBS and "main.o".
10215 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
10216 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
10217
d02c80cd
AC
10218 * tui/tui-command.c: Include "gdb_string.h", delete register
10219 attribute, use ISO-C function signatures.
10220 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
10221 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10222 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
10223 * tui/tui.c: Ditto.
6ba8e26f
AC
10224
10225 * tui/tui-command.c: Change variable and function names to lower
10226 case.
10227 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
10228 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
10229 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
10230 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10231 * tui/tui-winsource.c, tui/tui.c: Ditto.
10232
4a146b47
EZ
102332004-02-07 Elena Zannoni <ezannoni@redhat.com>
10234
10235 * buildsym.c (free_pending_blocks, finish_block)
10236 (record_pending_block, make_blockvector, end_symtab): Replace
10237 symbol_obstack with objfile_obstack.
8a1dac83 10238 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 10239 (coff_read_enum_type): Ditto.
8a1dac83 10240 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 10241 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 10242 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
10243 (dwarf2_symbol_mark_computed): Ditto.
10244 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
10245 * elfread.c (elf_symtab_read): Ditto.
10246 * hpread.c (hpread_symfile_init, hpread_symfile_init)
10247 (hpread_read_enum_type, hpread_read_function_type)
10248 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
10249 Ditto.
8a1dac83 10250 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 10251 (java_link_class_type): Ditto.
8a1dac83 10252 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
10253 (new_symbol): Ditto.
10254 * minsyms.c (install_minimal_symbols): Ditto.
10255 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
10256 (terminate_minimal_symbol_table): Replace symbol_obstack with
10257 objfile_obstack.
10258 (free_objfile): Remove freeing of symbol_obstack.
10259 * objfiles.h: Remove symbol_obstack field.
10260 * pa64solib.c (add_to_solist): Replace symbol_obstack with
10261 objfile_obstack.
10262 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10263 symbol_obstack.
10264 (solib_add_common_symbols): Replace symbol_obstack with
10265 objfile_obstack.
10266 * somsolib.c (som_solib_add): Ditto.
10267 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10268 (common_block_start, common_block_end): Ditto.
10269 * symfile.c (reread_symbols): Remove freeing and init of
10270 symbol_obstack.
10271 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
10272 * symfile.h: Update comment.
10273 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
10274 stats printing.
10275 * symtab.c (symbol_set_names): Replace symbol_obstack with
10276 objfile_obstack.
10277 * symtab.h (struct general_symbol_info, struct minimal_symbol):
10278 Update comments.
10279 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
10280 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
10281 objfile_obstack.
10282
6d012f14
AC
102832004-02-07 Andrew Cagney <cagney@redhat.com>
10284
10285 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
10286 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
10287 fields and variables.
10288 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
10289 (m_beInvisible): Delete macro.
10290 * tui/tui-data.h: Fix case case fields and variables.
10291 (m_genWinPtrIsNull): Delete macro.
10292 (tui_win_list): Rename winList.
10293 (TUI_SRC_WIN): Rename srcWin.
10294 (TUI_DISASM_WIN): Rename disassemWin.
10295 (TUI_DATA_WIN): Rename dataWin.
10296 (TUI_CMD_WIN): Rename cmdWin.
10297 (m_genWinPtrNotNull): Delete macro.
10298 (m_winPtrIsNull): Delete macro.
10299 (m_winPtrNotNull): Delete macro.
10300 (tui_win_is_source_type): Replace m_winIsSourceType
10301 (tui_win_is_auxillary): Replace m_winIsAuzillary.
10302 (tui_win_has_locator): Replace m_hasLocator.
10303 (tui_set_win_highlight): Replace m_setWinHighlightOn and
10304 m_setWinHighlightOff.
10305 * tui/tui-data.c: Update references.
10306 (tui_win_is_source_type, tui_set_win_highlight): New functions.
10307 (tui_win_has_locator, tui_win_is_auxillary): New functions.
10308 * tui/tui-command.c, tui/tui-disasm.c: Update references.
10309 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
10310 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
10311 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10312 * tui/tui-winsource.c, tui/tui.c: Ditto.
10313
7d34766b
MK
103142004-02-07 Mark Kettenis <kettenis@gnu.org>
10315
1c800673
MK
10316 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
10317 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
10318 StackGhost.
10319
7d34766b
MK
10320 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
10321 variable `i6' to `i7'.
10322 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
10323
22940a24
AC
103242004-02-07 Andrew Cagney <cagney@redhat.com>
10325
10326 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
10327 (TuiPoint, TuiPointPtr): Ditto.
10328 (TuiStatus, TuiStatusPtr): Ditto.
10329 (TuiWinType, TuiWinTypePtr): Ditto.
10330 (struct tui_point): Rename _TuiPoint.
10331 (tui_get_low_disassembly_address): Rename
10332 tuiGetLowDisassemblyAddress.
10333 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
10334 (tuiFree): Delete declaration.
10335 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
10336 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
10337 * tui/tui.c (tuiFree): Delete function.
10338 * cli/cli-cmds.c (disassemble_command): Update references.
10339 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
10340 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10341 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
10342 * tui/tui-winsource.c: Ditto.
10343
8b92e4d5
EZ
103442004-02-07 Elena Zannoni <ezannoni@redhat.com>
10345
10346 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
10347 coffstab_build_psymtabs, elfstab_build_psymtabs)
10348 (stabsect_build_psymtabs): Replace psymbol_obstack with
10349 objfile_obstack.
10350 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
10351 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
10352 Ditto.
10353 * dwarfread.c (scan_compilation_units): Ditto.
10354 * elfread.c (elfstab_offset_sections): Ditto.
10355 * hppa-tdep.c (read_unwind_info): Ditto.
10356 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
10357 (hpread_end_psymtab): Ditto.
10358 * mdebugread.c (mdebug_build_psymtabs, add_pending)
10359 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
10360 Ditto.
10361 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 10362 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
10363 (build_objfile_section_table): Ditto.
10364 (allocate_objfile): Remove init of psymbol_obstack.
10365 (free_objfile): Remove freeing of psymbol_obstack.
10366 * objfiles.h (struct objfile): Remove field
10367 psymbol_obstack. Update comments.
10368 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
10369 psymbol_obstack with objfile_obstack.
10370 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10371 psymbol_obstack.
10372 * somread.c (som_symfile_offsets, init_import_symbols)
10373 (init_export_symbols): Replace psymbol_obstack with
10374 objfile_obstack.
10375 * somsolib.c (som_solib_add_solib_objfile): Ditto.
10376 * symfile.c (default_symfile_offsets, syms_from_objfile)
10377 (reread_symbols): Remove freeing and init of psymbol_obstack.
10378 (cashier_psymtab): Update comment.
10379 * symmisc.c (print_objfile_statistics): Don't report stats for
10380 psymbol obstack.
10381 * symtab.h (struct general_symbol_info, struct partial_symtab):
10382 Update comments.
10383 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
10384 (xcoff_symfile_offsets): Replace psymbol_obstack with
10385 objfile_obstack.
10386
b99607ea
EZ
103872004-02-07 Elena Zannoni <ezannoni@redhat.com>
10388
10389 * objfiles.h (struct objfile): Add objfile_obstack field.
10390 Remove type_obstack field.
10391
10392 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
10393 read_structure_scope read_enumeration, new_symbol): Replace
10394 type_obstack with objfile_obstack.
10395 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 10396 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
10397 (lookup_fundamental_type): Ditto.
10398 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
10399 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
10400 (hpread_read_doc_function_type, hpread_read_struct_type)
10401 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 10402 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 10403 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
10404 (java_link_class_type): Ditto.
10405 * mdebugread.c (parse_type): Ditto.
10406 * objfiles.c (allocate_objfile, free_objfile): Ditto.
10407 * solib-sunos.c (solib_add_common_symbols): Ditto.
10408 * stabsread.c (define_symbol, read_type, read_member_functions,
10409 read_cpp_abbrev, read_one_struct_field): Ditto.
10410 * symfile.c (reread_symbols): Ditto.
10411 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 10412
2a8854a7
AC
104132004-02-07 Andrew Cagney <cagney@redhat.com>
10414
10415 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
10416 (tui_exec_info_content): Rename TuiExecInfoContent.
10417 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
10418 (TuiWinInfo, TuiWinInfoPtr): Ditto.
10419 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
10420 (TuiList, TuiListPtr): Ditto.
10421 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
10422 (TuiDataType, TuiDataTypePtr): Ditto.
10423 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
10424 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
10425 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
10426 (TuiSourceElement, TuiSourceElementPtr): Ditto.
10427 (TuiDataElement, TuiDataElementPtr): Ditto.
10428 (TuiWinElement, TuiWinElementPtr): Ditto.
10429 (TuiDataInfo, TuiDataInfoPtr): Ditto.
10430 (TuiCommandElement, TuiCommandElementPtr): Ditto.
10431 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
10432 (TuiWhichElement, TuiWhichElementPtr): Ditto.
10433 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
10434 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
10435 * tui/tui-command.c, tui/tui-data.c: Update references.
10436 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
10437 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
10438 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10439 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 10440
05cbe71a
MK
104412004-02-07 Mark Kettenis <kettenis@gnu.org>
10442
10443 * dwarf2-frame.h: Update copyright.
10444 (enum dwarf2_frame_reg_rule): New.
10445 (struct dwarf2_frame_state_reg): New.
10446 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
10447 * dwarf2-frame.c: Update copyright.
10448 (enum dwarf2_reg_rule): Remove.
10449 (struct dwarf2_frame_state): Remove defenition of `struct
10450 dwarf2_frame_state_reg'.
10451 (read_reg): Call get_frame_arch to get the architecture instead of
10452 using CURRENT_GDBARCH.
10453 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
10454 DWARF2_FRAME_.
10455 (dwarf2_frame_init_reg): New function.
10456 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
10457 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
10458 initialize the register state. Prefix old `enum dwarf2_reg_rule'
10459 tags with DWARF2_FRAME_.
10460 (dwarf2_frame_prev_register): Call get_frame_arch to get the
10461 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
10462 dwarf2_reg_rule' tags with DWARF2_FRAME_.
10463
ec7d9e56
AC
104642004-02-06 Andrew Cagney <cagney@redhat.com>
10465
dd1abb8c
AC
10466 * tui/tui-data.h (struct tui_list): Rename _TuiList.
10467 (enum tui_data_type): Rename _TuiDataType.
10468 (struct tui_layout_def): Rename _TuiLayoutDef.
10469 (struct tui_source_element): Rename _TuiSourceElement.
10470 (struct tui_data_element): Rename _TuiDataElement.
10471 (struct tui_command_element): Rename _TuiCommandElement.
10472 (struct tui_locator_element): Rename _TuiLocatorElement.
10473 (union tui_which_element): Define.
10474 (struct tui_win_element): Rename _TuiWinElement.
10475 (struct tui_data_info): Rename _TuiDataInfo.
10476 (struct tui_source_info): Rename _TuiSourceInfo.
10477 (struct tui_command_info): Rename _TuiCommandInfo.
10478 (tui_initialize_static_data): Rename initializeStaticData.
10479 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
10480 (tui_alloc_win_info): Rename allocWinInfo.
10481 (tui_init_generic_part): Rename initGenericPart.
10482 (tui_init_win_info): Rename initWinInfo.
10483 (tui_alloc_content): Rename allocContent.
10484 (tui_add_content_elements): Rename addContentElements.
10485 (tui_init_content_element): Rename initContentElement.
10486 (tui_free_window): Rename freeWindow.
10487 (tui_free_win_content): Rename freeWinContent.
10488 (tui_free_data_content): Rename freeDataContent.
10489 (tui_free_all_source_wins_content): Rename
10490 freeAllSourceWinsContent.
10491 (tui_del_window): Rename tuiDelWindow.
10492 (tui_del_data_windows): Rename tuiDelDataWindows.
10493 (tui_partial_win_by_name): Rename partialWinByName.
10494 (tui_win_name): Rename winName.
10495 (tui_current_layout): Rename currentLayout.
10496 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
10497 (tui_term_height): Rename termHeight.
10498 (tui_set_term_height_to): Rename setTermHeightTo.
10499 (tui_term_width): Rename termWidth.
10500 (tui_set_term_width_to): Rename setTermWidthTo.
10501 (tui_set_gen_win_origin): Rename setGenWinOrigin.
10502 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
10503 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
10504 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
10505 (tui_source_windows): Rename sourceWindows.
10506 (tui_clear_source_windows): Rename clearSourceWindows.
10507 (tui_clear_source_windows_detail): Rename
10508 clearSourceWindowsDetail.
10509 (tui_clear_win_detail): Rename clearWinDetail.
10510 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
10511 (tui_default_tab_len): Rename tuiDefaultTabLen.
10512 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
10513 (tui_win_with_focus): Rename tuiWinWithFocus.
10514 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
10515 (tui_layout_def): Rename tuiLayoutDef.
10516 (tui_win_resized): Rename tuiWinResized.
10517 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
10518 (tui_next_win): Rename tuiNextWin.
10519 (tui_prev_win): Rename tuiPrevWin.
10520 (tui_add_to_source_windows): Rename addToSourceWindows.
10521 * tui/tui-winsource.c, tui/tui-win.c: Update references.
10522 * tui/tui-layout.c, tui/tui-source.c: Ditto.
10523 * tui/tui-stack.c, tui/tui-io.c: Ditto.
10524 * tui/tui.c, tui/tui-data.c: Ditto.
10525 * tui/tui-interp.c, tui/tui-data.c: Ditto.
10526 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
10527
a358af15
AC
10528 * tui/tui-source.h: Update copyright. Include "tui-data.h".
10529 (struct symtab): Declare.
10530 (tui_set_source_content): Rename tuiSetSourceContent.
10531 (tui_show_symtab_source): Rename tuiShowSource.
10532 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
10533 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
10534 * tui/tui-source.c: Update copyright. Update references.
10535 * tui/tui-win.c, tui/tui-winsource.c: Update references.
10536 * tui/tui-stack.c: Update references.
10537
a21fcd8f
AC
10538 * tui/tui-win.h: Update copyright. Include "tui-data.h".
10539 (struct tui_win_info): Declare.
10540 (tui_scroll_forward): Rename tuiScrollForward.
10541 (tui_scroll_backward): Rename tuiScrollBackward.
10542 (tui_scroll_left): Rename tuiScrollLeft.
10543 (tui_scroll_right): Rename tuiScrollRight.
10544 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
10545 (tui_resize_all): Rename tuiResizeAll.
10546 (tui_refresh_all_win): Rename tuiRefreshAll.
10547 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
10548 * tui/tui-layout.c, * tui/tui-io.c: Update references.
10549 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
10550 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
10551
edae1ccf
AC
10552 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
10553 (tui_erase_data_content): Rename tuiEraseDataContent.
10554 (tui_display_all_data): Rename tuiDisplayAllData.
10555 (tui_check_data_values): Rename tuiCheckDataValues.
10556 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
10557 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
10558 (tui_first_data_element_no_in_line): Rename
10559 tuiFirstDataElementNoInLine.
10560 (tui_delete_data_content_windows): Rename
10561 tuiDeleteDataContentWindows.
10562 (tui_refresh_data_win): Rename tuiRefreshDataWin.
10563 (tui_display_data_from): Rename tuiDisplayDataFrom.
10564 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
10565 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
10566 * tui/tui-win.c, tui/tui-regs.c: Update references.
10567 * tui/tui-layout.c, tui/tui.c: Update references.
10568
ec7d9e56
AC
10569 * tui/tui-wingeneral.h: Update copyright.
10570 (m_allBeVisible): Delete macro.
8a1dac83 10571 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
10572 (struct tui_gen_win_info): Declare.
10573 (struct tui_win_info): Declare.
10574 (tui_unhighlight_win): Rename unhighlightWin.
10575 (tui_make_visible, tui_make_invisible): Replace makeVisible.
10576 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
10577 (tui_make_window): Rename makeWindow.
10578 (tui_copy_win): Rename copyWin.
10579 (tui_box_win): Rename boxWin.
10580 (tui_highlight_win): Rename highlightWin.
10581 (tui_check_and_display_highlight_if_needed): Rename
10582 checkAndDisplayHighlightIfNeeded.
10583 (tui_refresh_all): Rename refreshAll.
10584 (tui_delete_win): Rename tuiDelwin.
10585 (tui_refresh_win): Rename tuiRefreshWin.
10586 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
10587 (tui_make_visible, tui_make_invisible): New functions.
10588 (tui_make_all_visible, tui_make_all_invisible): New functions.
10589 (make_all_visible): Rename makeAllVisible.
10590 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
10591 * tui/tui-data.c, tui/tui-winsource.c: Update references.
10592 * tui/tui-windata.c, tui/tui-win.c: Update references.
10593 * tui/tui-regs.c, tui/tui-layout.c: Update references.
10594 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
10595
1e52e2eb
MK
105962004-02-06 Mark Kettenis <kettenis@gnu.org>
10597
10598 * proc-api.c (write_with_trace): Initialize local variable to
10599 silence compiler warning.
10600
f80bda8e
AC
106012004-02-06 Andrew Cagney <cagney@redhat.com>
10602
10603 * tui/tui-source.h: Do not include "defs.h".
10604 (struct tui_win_info): Declare.
10605 (tui_set_source_content_nil): Declare.
10606 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
10607 (union tui_line_or_address): Rename _TuiLineOrAddress.
10608 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
10609 (tui_update_source_window): Rename tuiUpdateSourceWindow.
10610 (tui_update_source_window_as_is): Rename
10611 tuiUpdateSourceWindowAsIs.
10612 (tui_update_source_windows_with_addr): Rename
10613 tuiUpdateSourceWindowsWithAddr.
10614 (tui_update_source_windows_with_line): Rename
10615 tuiUpdateSourceWindowsWithLine.
10616 (tui_clear_source_content): Rename tuiClearSourceContent.
10617 (tui_erase_source_content): Rename tuiEraseSourceContent.
10618 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
10619 (tui_show_source_content): Rename tuiShowSourceContent.
10620 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
10621 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
10622 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
10623 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
10624 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
10625 (tui_update_exec_info): Rename tuiUpdateExecInfo.
10626 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
10627 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
10628 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
10629 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
10630 (struct tui_win_info): Declare.
10631 * tui/tui-stack.c: Update references.
10632 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
10633 * tui/tui-win.c, tui/tui-source.c: Ditto.
10634 * tui/tui.c, tui/tui-disasm.c: Ditto.
10635
9fbfb822
MK
106362004-02-06 Mark Kettenis <kettenis@gnu.org>
10637
10638 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
10639 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
10640
03cebad2
MK
106412004-02-05 Mark Kettenis <kettenis@gnu.org>
10642
10643 * infrun.c (handle_inferior_event): Allow for breakpoint
10644 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
10645 and SIGEMT. Update comments.
10646 * NEWS (Revised SPARC target): Mention support for non-executable
10647 stack.
10648
290281b1
MK
106492004-02-04 Mark Kettenis <kettenis@gnu.org>
10650
10651 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
10652 * inftarg.c: Update copyright year.
10653 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
10654 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
10655 (sparc_xfer_wcookie): New function.
10656 * sparc-tdep.c (sparc_fetch_wcookie): New function.
10657 * Makefile.in (sparc-nat.o): Update dependencies.
10658 * config/sparc/nm-nbsd.h: Include "target.h".
10659 (NATIVE_XFER_WCOOKIE): New define.
10660 (sparc_xfer_wcookie): New prototype.
10661
212161df
AC
106622004-02-04 Andrew Cagney <cagney@redhat.com>
10663
10664 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
10665 SYSCALL_TRAP function.
10666 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
10667
6e4c6c91
DJ
106682004-02-04 Andrew Cagney <cagney@redhat.com>
10669 Daniel Jacobowitz <drow@mvista.com>
10670
10671 * objfiles.h: Delete comments refering to inside_entry_func and
10672 DEPRECATED_FRAME_CHAIN_VALID.
10673 * defs.h (inside_entry_func): Update prototype..
10674 * blockframe.c (inside_entry_func): Rename to
10675 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
10676 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
10677
cae688ec
JJ
106782004-02-03 Jeff Johnston <jjohnstn@redhat.com>
10679
10680 * breakpoint.c (struct captured_parse_breakpoint_args): Move
10681 outside of #ifdef SOLIB_ADD region.
10682 (do_restore_lang_radix_cleanup): Ditto.
10683 (resolve_pending_breakpoint): Ditto.
10684
19217676
AC
106852004-02-03 Andrew Cagney <cagney@redhat.com>
10686
10687 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
10688 (process_note_abi_tag_sections): Delete unused function.
10689 (ia64_read_fp): Delete unused function.
10690 (gdbarch_extract_struct_value_address): Delete declaration.
10691
876753be
AC
106922004-02-02 Andrew Cagney <cagney@redhat.com>
10693
10694 * vax-tdep.c (vax_frame_chain): Delete call to
10695 deprecated_inside_entry_file.
10696 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
10697
d4f10bf2
MK
106982004-02-02 Mark Kettenis <kettenis@gnu.org>
10699
10700 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
10701 column that's "empty" or "same value" when eliminating REG_RA
10702 rules.
10703
cae688ec
JJ
107042004-02-02 Jeff Johnston <jjohnstn@redhat.com>
10705
10706 * NEWS: Add information about new pending breakpoint support.
10707
0101ce28
JJ
107082004-02-02 Jeff Johnston <jjohnstn@redhat.com>
10709
10710 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
10711 and pending fields for pending breakpoint support.
10712 * breakpoint.c (breakpoint_enabled): Add check for not pending.
10713 (condition_command): Only parse condition if not a pending
10714 breakpoint.
10715 (print_one_breakpoint): Add support for pending breakpoints.
10716 (describe_other_breakpoints): Add checks to verify we are not
10717 dealing with pending breakpoints.
10718 (check_duplicates): Don't check pending breakpoints.
10719 (set_raw_breakpoint): Initialize pending flag.
10720 (do_restore_lang_radix_cleanup): New cleanup routine.
10721 (resolve_pending_breakpoint): New function.
10722 (re_enable_breakpoints_in_shlibs): Try and resolve any
10723 pending breakpoints via resolve_pending_breakpoint.
10724 (mention): Add pending breakpoint support.
10725 (parse_breakpoint_sals): Add new parameter to pass to
10726 decode_line_1 to indicate silent errors when files or functions
10727 are not found. Change all callers.
10728 (do_captured_parse_breakpoint): New function.
10729 (break_command_1): Change prototype to return an rc value and to
10730 take an optional pending breakpoint pointer. Support creating
10731 a pending breakpoint if a "not found" form of error occurs when
10732 parsing the breakpoint. Also support resolving an existing pending
10733 breakpoint and be silent if the resolution fails.
10734 (create_breakpoints): Change prototype to take pending breakpoint
10735 pointer. When resolving a pending breakpoint, use the new pointer
10736 to provide a conditional or commands added by the end-user.
10737 (delete_breakpoint): Add appropriate check for pending.
10738 (breakpoint_re_set_one): Ditto.
10739 (do_enable_breakpoint): Ditto.
10740
8d577d32
DC
107412004-02-02 David Carlton <carlton@kealia.com>
10742
10743 * valops.c (enum oload_classification): New.
10744 (find_overload_match): Break implementation into separate
10745 functions; delete #if 0'd code; look for symbols within
10746 namespaces.
10747 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
10748 (find_oload_champ,oload_method_static,classify_oload_match): New.
10749 * cp-support.h: Add declaration for cp_func_name; update
10750 declaration for make_symbol_overload_list.
10751 * cp-support.c (cp_func_name): New.
10752 (overload_list_add_symbol): Fix comment, use
10753 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
10754 (make_symbol_overload_list): Take a function name and a namespace
10755 instead of a symbol; change implementation.
10756 (make_symbol_overload_list_using): New.
10757 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
10758
22e8e3c7
FF
107592004-02-02 Fred Fish <fnf@redhat.com>
10760
10761 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 10762 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
10763 * remote-sim.c (gdb_os_write_stderr): Write output to
10764 gdb_stdtargerr stream instead of gdb_stdtarg stream.
10765 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 10766 gdb_stderr stream and update copyright years.
22e8e3c7 10767
6b753f60
DJ
107682004-02-01 Daniel Jacobowitz <drow@mvista.com>
10769
10770 * Makefile.in (mips-linux-nat.o): Update dependencies.
10771 * mips-linux-nat.c: Include mips-tdep.h.
10772
107732004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
10774
10775 * sol-thread.c (sol_thread_xfer_partial): New function.
10776 (init_sol_thread_ops): Use that for to_xfer_partial hook.
10777 (init_sol_core_ops): Likewise.
10778
10779 * procfs.c (procfs_xfer_partial): New function.
10780 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
10781 * Makefile.in (procfs.o): Add $(auxv_h) dep.
10782
10783 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
10784 procfs_xfer_auxv function.
10785
10786 * procfs.c (procfs_make_note_section): If we can read
10787 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
10788 * linux-proc.c (linux_make_note_section): Likewise.
10789
10790 * auxv.h: New file.
10791 * auxv.c: New file.
10792 * Makefile.in (auxv_h): New variable.
10793 (COMMON_OBS): Add auxv.o here.
10794 (auxv.o): New target.
10795
10796 * corelow.c (core_xfer_partial): New function.
10797 (init_core_ops): Use it for core_ops.to_xfer_partial.
10798
10799 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
10800 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
10801 macro if that is defined.
10802
fa5281d0
DJ
108032004-02-01 Daniel Jacobowitz <drow@mvista.com>
10804
10805 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
10806 and check the specified thread for each breakpoint.
10807 * breakpoint.h (bpstat_stop_status): Update prototype.
10808 * infrun.c (handle_inferior_event): Update calls to
10809 bpstat_stop_status.
10810
26ee262d
DJ
108112004-02-01 Daniel Jacobowitz <drow@mvista.com>
10812
10813 * Makefile.in (cli-cmds.o): Add $(readline_h).
10814
d9b52655
DJ
108152004-02-01 Daniel Jacobowitz <drow@mvista.com>
10816
10817 * cli/cli-cmds.c: Include readline.h.
10818 (complete_command): Pass the start of the last word to
10819 complete_line.
10820
9709f61c
DJ
108212004-01-31 Daniel Jacobowitz <drow@mvista.com>
10822
10823 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
10824 argument, and change first argument to a CORE_ADDR.
10825 * breakpoint.h (bpstat_stop_status): Update prototype.
10826 * infrun.c (adjust_pc_after_break): Add a new comment.
10827 (handle_inferior_event): Update calls to bpstat_stop_status.
10828
4f1280bb
DJ
108292004-01-31 Daniel Jacobowitz <drow@mvista.com>
10830
10831 * breakpoint.h: Update copyright years.
10832
4fa8626c
DJ
108332004-01-31 Daniel Jacobowitz <drow@mvista.com>
10834
10835 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
10836 (bpstat_stop_status): Don't decrement PC.
10837 * breakpoint.h (software_breakpoint_inserted_here_p): Add
10838 prototype.
10839 * infrun.c (adjust_pc_after_break): New function.
10840 (handle_inferior_event): Call it, early. Remove later references
10841 to DECR_PC_AFTER_BREAK.
10842 (normal_stop): Add commentary.
10843
fad0733a
DJ
108442004-01-31 Daniel Jacobowitz <drow@mvista.com>
10845
10846 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
10847 2004-01-27 double-free fix.
10848
42cdca6c
MK
108492004-01-31 Mark Kettenis <kettenis@gnu.org>
10850
10851 * sparc-tdep.c (sparc_fetch_wcookie): New function.
10852 (sparc32_frame_prev_register): Handle StackGhost.
10853 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
10854
932d5416
RM
108552004-01-29 Roland McGrath <roland@redhat.com>
10856
10857 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
10858 * configure: Regenerated.
10859
10860 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
10861 * Makefile.in (procfs.o): Add dep.
10862
47d3492a
AC
108632004-01-28 Andrew Cagney <cagney@redhat.com>
10864
10865 * tui/tui-stack.h: Update copyright.
10866 (struct frame_info): Add opaque declaration.
10867 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
10868 (tui_show_locator_content): Rename tuiShowLocatorContent.
10869 (tui_show_frame_info): Rename tuiShowFrameInfo.
10870 * tui/tui-stack.c: Update copyright. Update references.
10871 * tui/tui-winsource.c: Update references.
10872 * tui/tui-win.c: Update references.
10873 * tui/tui-layout.c: Update references.
10874 * tui/tui-hooks.c: Update copyright, update references.
10875 * tui/tui.c: Update copyright, update references.
10876 * tui/tui-disasm.c: Update references.
10877
5d51ca54
DC
108782004-01-28 David Carlton <carlton@kealia.com>
10879
10880 * dwarf2read.c (add_partial_structure): Use demangled name if
10881 namespace equals "".
10882
086ed43d
JB
108832004-01-27 Jim Blandy <jimb@redhat.com>
10884
10885 Clean up misapplied patch:
10886 * dwarf2read.c (determine_prefix): Change one of the two forward
10887 declarations for 'determine_prefix_aux' to a declaration for this.
10888 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
10889 argument to 'die_specification'.
10890
2a35147e
JB
10891 * dwarf2read.c (read_func_scope): Re-indent comment.
10892
a355c7de 108932004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 10894
a355c7de
AC
10895 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
10896 b->exp to NULL after freeing so that error during re-parsing or
10897 evaluation of expressions associated with breakpoint don't
10898 eventually lead to re-freeing of storage.
10899 Committed by Andrew Cagney.
10900
63ff5125
AC
109012004-01-27 Andrew Cagney <cagney@redhat.com>
10902
10903 * source.c (ambiguous_line_spec): Delete undefined declaration.
10904 * m32r-rom.c (m32r_set_board_address): Delete unused function.
10905 (m32r_set_server_address, m32r_set_download_path): Ditto.
10906 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
10907
e142c38c
DJ
109082004-01-27 Daniel Jacobowitz <drow@mvista.com>
10909
10910 * dwarf2read.c: Update calls to changed and renamed functions, and
10911 references to moved variables.
10912
10913 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
10914 language, language_defn, list_in_scope, and ftypes members.
10915 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
10916 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
10917 (baseaddr): Remove globals.
10918
10919 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
10920 (set_cu_language, die_is_declaration, die_specification)
10921 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
10922 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
10923 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
10924 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
10925
10926 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
10927 cu.list_in_scope. Don't initialize cu_header_offset.
10928 (add_partial_symbol): Add local baseaddr.
10929 (psymtab_to_symtab_1): Add local baseaddr. Use
10930 objfile->section_offsets for consistency. Don't initialize
10931 cu_header_offset; do initialize cu.header.offset and
10932 cu.list_in_scope.
10933 (read_file_scope, read_func_scope, read_lexical_block_scope)
10934 (dwarf_decode_lines, new_symbol): Add local baseaddr.
10935
c6e06ede
MC
109362004-01-27 Michael Chastain <mec.gnu@mindspring.com>
10937
fb328ecc 10938 * PROBLEMS: Add gdb/1516.
c6e06ede 10939
48184fd4
AC
109402003-12-29 Robert Millan <robertmh@gnu.org>
10941
10942 Patch committed by Andrw Cagney.
10943 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
10944 * configure.tgt: Match knetbsd*-gnu.
10945
c1321b30
AC
109462004-01-26 Andrew Cagney <cagney@redhat.com>
10947
f3699be3
AC
10948 * breakpoint.c (catch_command_1): Delete #ifdef code.
10949 (catch_fork_command_1): Delete #ifdef wrapper.
10950 (catch_exec_command_1): Ditto.
10951 (catch_load_command_1): Ditto.
10952 (catch_unload_command_1): Ditto.
10953
c1321b30
AC
10954 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
10955 (catch_breakpoint): Delete #if0ed function.
10956 (disable_catch_breakpoint): Ditto.
10957 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
10958 (disable_catch, enable_catch, delete_catch): Ditto.
10959
b4501125
AC
109602004-01-26 Andrew Cagney <cagney@redhat.com>
10961
10962 * remote.c (echo_check, quit_flag): Delete variables.
10963 (cisco_kernel_mode): Delete variable.
10964 (minitelnet_return, tty_input, escape_count): Delete variables.
10965 (remote_cisco_mode): Delete variable.
10966 (remote_cisco_open, remote_cisco_close): Delete function.
10967 (remote_cisco_mourn, remote_cisco_wait): Delete function.
10968 (init_remote_cisco_ops): Delete function.
10969 (_initialize_remote): Do not install "remote cisco" code.
10970 (read_frame): Delete cisco specific code.
10971 (remote_info_process): Delete function.
10972 (remote_wait): Delete cisco specific code.
10973 (remote_cisco_section_offsets): Delete function.
10974 (remote_cisco_objfile_relocate): Delete function.
10975 (remote_async_wait): Delete cisco specific code.
10976 (minitelnet, readtty, readsocket): Delete function.
10977
74055713
AC
109782004-01-26 Andrew Cagney <cagney@redhat.com>
10979
10980 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
10981 comments mentioning extract_returned_value_address.
10982 * infcmd.c (print_return_value): Update. Add comments on
10983 extract_returned_value_address.
10984 * stack.c (return_command): Add comments on
10985 extract_returned_value_address.
10986 * values.c: Update comment.
10987 * m32r-tdep.c: Update comment.
10988 * sparc-tdep.c: Update comment.
10989 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
10990 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10991 * sh64-tdep.c (sh64_gdbarch_init): Update.
10992 * sh-tdep.c (sh_gdbarch_init): Update.
10993 * s390-tdep.c (s390_gdbarch_init): Update.
10994 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10995 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10996 * m68k-tdep.c (m68k_gdbarch_init): Update.
10997 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10998 * m32r-tdep.c (m32r_gdbarch_init): Update.
10999 * ia64-tdep.c (ia64_gdbarch_init): Update.
11000 * h8300-tdep.c (h8300_gdbarch_init): Update.
11001 * frv-tdep.c (frv_gdbarch_init): Update.
11002 * arm-tdep.c (arm_gdbarch_init): Update.
11003 * alpha-tdep.c (alpha_gdbarch_init): Update.
11004
a67af2b9
AC
110052004-01-26 Andrew Cagney <cagney@redhat.com>
11006
11007 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
11008 SYMBOL_LOCATION_FUNCS
11009 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
11010 "struct symbol_ops".
11011 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
11012 type to "struct symbol_ops".
11013 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
11014 (struct symbol): Replace ".aux_value.loc.funcs" and
11015 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
11016 (SYMBOL_OBJFILE): Delete macro.
11017 (SYMBOL_LOCATION_FUNCS): Delete macro.
11018 (SYMBOL_LOCATION_BATON): Update.
11019 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
11020 intead of SYMBOL_LOCATION_FUNCS.
11021 * ax-gdb.c (gen_var_ref): Ditto.
11022 * printcmd.c (address_info): Ditto.
11023 * findvar.c (read_var_value): Ditto.
11024 (symbol_read_needs_frame): Ditto.
11025
c034e007
AC
110262004-01-26 Andrew Cagney <cagney@redhat.com>
11027
11028 * dwarf2read.c (read_func_scope): Document frame-base hack.
11029
bb472c1e
MK
110302004-01-25 Mark Kettenis <kettenis@gnu.org>
11031
11032 * infcmd.c (print_return_value): Plug memory leak; delete
11033 ui_stream object. Rename argument `structure_return' to
11034 `struct_return'.
11035
c8e737d5
MK
110362004-01-25 Mark Kettenis <kettenis@gnu.org>
11037
f941662f
MK
11038 * infcmd.c (print_return_value): Wrap long lines.
11039 (finish_command_continuation, finish_command): Remove unused
11040 variable `funcaddr'. Fix some coding-standards problems.
11041
c558d81a 11042 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 11043 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
11044 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
11045 TDEP->fpregset to zero.
11046
bf1e5861 11047 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
11048 floating-point registers for traditional NetBSD core files.
11049 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
11050 TDEP->sizeof_fpregset here.
11051
4c72d57a
MK
110522004-01-25 Mark Kettenis <kettenis@gnu.org>
11053
566626fa
MK
11054 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
11055 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
11056 function with code split out from
11057 sparc32nbsd_sigcontext_frame_cache.
11058 (sparc32nbsd_sigcontext_frame_cache): Use
11059 sparc32nbsd_sigcontext_saved_regs.
11060 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
11061 OpenBSD.
11062 * sparcobsd-tdep.c: New file.
11063 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
11064 (sparcobsd-tdep.o): New dependency.
11065 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
11066 * config/sparc/obsd.mt: New file.
11067
4c72d57a
MK
11068 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
11069 TDEP->fpregset to be initialized to enable core file register
11070 sets.
11071
7e5e9f88
MK
110722004-01-24 Mark Kettenis <kettenis@gnu.org>
11073
f0f207fd 11074 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
11075 Add opaque declarations.
11076 (sparc64nbsd_sigcontext_saved_regs): New prototype.
11077 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
11078 function with code split out from
11079 sparc64nbsd_sigcontext_frame_cache.
11080 (sparc64nbsd_sigcontext_frame_cache): Use
11081 sparc64nbsd_sigcontext_saved_regs.
11082 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
11083 OpenBSD.
11084 * sparc64obsd-tdep.c: New file.
11085 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
11086 (sparc64obsd-tdep.o): New dependency.
11087 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
11088 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
11089 * config/sparc/obsd64.mt: New file.
11090
690668cc
MK
11091 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
11092 read the instruction at PC.
11093
7e5e9f88
MK
11094 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
11095 value of GDB_OSABI_DEFAULT.
11096 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
11097 instead of GDB_OSABI_NETBSD_AOUT.
11098
68b6dce9
NR
110992004-01-24 Nick Roberts <nick@nick.uklinux.net>
11100
11101 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
11102 copyright.
11103
080ce8c0
AC
111042004-01-23 Andrew Cagney <cagney@redhat.com>
11105
11106 * printcmd.c (display_command): Replace tui_set_display call with
11107 tui_set_layout_for_display_command.
11108 * tui/tui.h (enum tui_win_type): Define.
11109 (tui_set_layout): Delete declaration.
11110 (tui_set_layout_for_display_command): Rename set_tui_layout.
11111 * tui/tui-data.h (enum tui_layout_type): Define.
11112 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
11113 "tui.h".
11114 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
11115 (tui_default_win_height): Rename tuiDefaultWinHeight.
11116 (tui_default_win_viewport_height): Rename
11117 tuiDefaultWinViewportHeight.
11118 (tui_set_layout): RenametuiSetLayout.
11119 * tui/tui-layout.c: Update references.
11120 * tui/tui.c: Update references.
11121 * tui/tui-disasm.c: Update references.
11122
b368761e
DC
111232004-01-23 David Carlton <carlton@kealia.com>
11124
11125 Partial workaround for PR c++/1511:
11126 * cp-namespace.c: Include frame.h.
11127 (cp_lookup_transparent_type): New
11128 (cp_lookup_transparent_type_loop): New.
11129 * cp-support.h: Declare cp_lookup_transparent_type.
11130 * symtab.c (basic_lookup_transparent_type): Renamed from
11131 lookup_transparent_type.
11132 (lookup_transparent_type): Replace old body by a call to
11133 current_language->la_lookup_transparent_type.
11134 * symtab.h: Update copyright. Declare
11135 basic_lookup_transparent_type.
11136 * language.h: Update copyright.
11137 (struct language_defn): Add la_lookup_transparent_type.
11138 * language.c: Update copyright.
11139 (unknown_language_defn): Add basic_lookup_transparent_type.
11140 (auto_language_defn): Add basic_lookup_transparent_type.
11141 (local_language_defn): Add basic_lookup_transparent_type.
11142 * ada-lang.c: Update copyright.
11143 (ada_language_defn): Add basic_lookup_transparent_type.
11144 * c-lang.c: Update copyright.
11145 (c_language_defn): Add basic_lookup_transparent_type.
11146 (cplus_language_defn): Add basic_lookup_transparent_type.
11147 (asm_language_defn): Add basic_lookup_transparent_type.
11148 (minimal_language_defn): Add basic_lookup_transparent_type.
11149 * f-lang.c: Update copyright.
11150 (f_language_defn): Add basic_lookup_transparent_type.
11151 * jv-lang.c: Update copyright.
11152 (java_language_defn): Add basic_lookup_transparent_type.
11153 * m2-lang.c: Update copyright.
11154 (m2_language_defn): Add basic_lookup_transparent_type.
11155 * objc-lang.c: Update copyright.
11156 (objc_language_defn): Add basic_lookup_transparent_type.
11157 * p-lang.c: Update copyright.
11158 (p_language_defn): Add basic_lookup_transparent_type.
11159 * scm-lang.c: Update copyright.
11160 (scm_language_defn): Add basic_lookup_transparent_type.
11161 * Makefile.in (cp-namespace.o): Depend on frame.h.
11162
fdde2d81
DC
111632004-01-23 David Carlton <carlton@kealia.com>
11164
11165 Patch for PR c++/1520:
11166 * dwarf2read.c (read_func_scope): Set processing_current_prefix
11167 properly if we have a specification die.
11168 (determine_prefix_aux): Rename from determine_prefix.
11169 (determine_prefix): Like the old determine_prefix, but never
11170 returns NULL.
11171
5b828b6b
TR
111722004-01-23 Theodore A. Roth <troth@openavr.org>
11173
11174 * avr-tdep.c: Update copyright.
11175 (avr_iaddr_p): Delete unused function.
11176 (avr_saddr_p): Delete unused function.
11177
a1b8c067
DC
111782004-01-23 David Carlton <carlton@kealia.com>
11179
11180 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
11181 Fix for PR symtab/1534.
11182
f2cab569
MK
111832004-01-23 Mark Kettenis <kettenis@gnu.org>
11184
11185 * NEWS (New native configurations): Mention OpenBSD/sparc and
11186 OpenBSD/sparc64.
11187 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
11188 * configure.host: Likewise.
11189 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
11190 handler for OpenBSD.
11191 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
11192
642d8300
MK
111932004-01-22 Mark Kettenis <kettenis@gnu.org>
11194
89aac506
MK
11195 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
11196 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
11197
36662fde
MK
11198 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
11199 * cli/cli-cmds.c (shell_escape): Likewise.
11200
642d8300
MK
11201 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
11202 OpenBSD .note.openbsd.ident sections.
11203
fae299cd
DC
112042004-01-22 David Carlton <carlton@kealia.com>
11205
11206 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
11207 get_scope_pc_bounds.
11208 (read_file_scope): Ditto.
11209 (get_scope_pc_bounds): New function, produced by extracting code
11210 from the above two functions, consolidating it, and adding support
11211 for DW_TAG_namespace.
11212
a49d618c
MK
112132004-01-22 Mark Kettenis <kettenis@gnu.org>
11214
11215 * osabi.c (MAX_NOTESZ): New define.
11216 (check_note): New function.
11217 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
11218 check_note.
11219
fe61caab
RM
112202004-01-21 Roland McGrath <roland@redhat.com>
11221
11222 * MAINTAINERS (write after approval): Add myself.
11223
ec145965
EZ
112242004-01-21 Eli Zaretskii <eliz@gnu.org>
11225
11226 * utils.c (init_page_info): Move declarations of `rows' and
11227 `cols' before the __GO32__-specific code. Move the closing brace
11228 outside the #ifdef __GO32__..#endif block.
11229 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
11230
877522db
PB
112312004-01-21 Paul Brook <paul@codesourcery.com>
11232
11233 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
11234 BPSTAT_WHAT_CHECK_SHLIBS.
11235
dbf5be1c
PB
112362004-01-21 Paul Brook <paul@codesourcery.com>
11237
11238 * MAINTAINERS: Add myself to write-after-approval.
11239
81f08b92
AC
112402004-01-20 Andrew Cagney <cagney@redhat.com>
11241
5a1efed7
AC
11242 * ax-gdb.c (print_axs_value): Delete unused function.
11243 * jv-lang.c (java_lookup_type): Delete unused function.
11244 * cli/cli-dump.c (dump_filetype): Delete unused function.
11245 * remote-mips.c (remote_mips_insert_hw_breakpoint)
11246 (remote_mips_remove_hw_breakpoint): Delete unused functions.
11247 (mips_getstring): Delete unused function.
11248 (pmon_insert_breakpoint): Delete #if0ed function.
11249 (PMON_MAX_BP): Delete #if0ed MACRO.
11250 (mips_pmon_bp_info): Delete #if0ed variable.
11251 (pmon_remove_breakpoint): Delete #if0ed function.
11252 * monitor.c (monitor_write_even_block): Delete unused function.
11253 (monitor_write_memory_block): Delete #if0ed code.
11254 * dink32-rom.c (dink32_load): Delete unused function.
11255 (_initialize_dink32_rom): Delete #if0ed code.
11256 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
11257
b0a30fce
AC
11258 * tui/tui-command.c: Update references.
11259 * tui/tui-io.c: Update references.
11260 * tui/tui-command.h: Update copyright.
11261 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
11262
81f08b92
AC
11263 * source.c (ambiguous_line_spec): Delete never-defined function.
11264 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
11265 * gdbtypes.c (add_name, add_mangled_type): Ditto.
11266 * cli/cli-cmds.c (validate_comname): Ditto.
11267
65f05602
AC
11268 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
11269 "tui-data.h".
11270 (tui_set_disassem_content): Rename tuiSetDisassemContent.
11271 (tui_show_disassem): Rename tuiShowDisassem.
11272 (tui_show_disassem_and_update_source): Rename
11273 tuiVerticalDisassemScroll.
11274 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
11275 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
11276 * tui/tui.h: Update copyright.
11277 (enum tui_status): Define.
11278 * tui/tui-data.h (enum tui_scroll_direction): Define.
11279 * tui/tui-disasm.c: Update copyright. Update references.
11280 * tui/tui-winsource.c: Update copyright. Update references.
11281 * tui/tui-win.c: Update references.
11282 * tui/tui-layout.c: Update references.
11283
6bb0384f
AC
112842004-01-20 Andrew Cagney <cagney@redhat.com>
11285
11286 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
11287 sym2 to start of block.
11288
9175c9a3
MC
112892004-01-19 Michael Chastain <mec.gnu@mindspring.com>
11290
11291 * MAINTAINERS: Delete mmalloc.
11292 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
11293 * NEWS: Mention removal of --with-malloc.
11294 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
11295 * config.in: Regenerate.
11296 * configure: Regenerate.
6bb0384f
AC
11297 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
11298 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
11299 * gdbinit.in: Remove mmalloc.
11300 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
11301 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
11302 * config/i386/go32.mh: Likewise.
11303 * config/i386/interix.mh: Likewise.
11304 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
11305
4fcef00a
JJ
113062004-01-19 Jeff Johnston <jjohnstn@redhat.com>
11307
11308 * linespec.c (decode_variable, symtab_from_filename): Call
11309 error_silent with error message instead of throwing an exception
11310 directly.
11311 * defs.h (error_silent, error_output_message): Add prototypes.
11312 (catch_exceptions_with_msg): Ditto.
11313 * utils.c (error_silent, error_output_message): New functions.
11314 * top.c (catch_exceptions_with_msg): New function.
11315
8e94b928
NR
113162004-01-20 Nick Roberts <nick@nick.uklinux.net>
11317
11318 * mi/mi-cmds.h (enum print_values): Add definition.
11319
11320 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
11321 type and value for simple data types and just the name and type
11322 for complex ones, if required.
11323
11324 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
11325 children, if required.
11326
a02d6af8
KB
113272004-01-19 Kevin Buettner <kevinb@redhat.com>
11328
11329 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
11330 unused declarations.
11331
78a4a9b9
AC
113322004-01-19 Andrew Cagney <cagney@redhat.com>
11333
11334 * top.h (mapped_symbol_files): Delete declaration.
11335 * main.c (captured_main): Delete option "m" and "mapped".
11336 * objfiles.c (mapped_symbol_files): Delete variable.
11337 * symfile.c (symbol_file_command): Delete mmap code.
11338 (symbol_file_add_with_addrs_or_offsets): Ditto.
11339 (add_symbol_file_command, reread_separate_symbols): Ditto.
11340 * objfiles.h (OBJF_MAPPED): Delete.
11341 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
11342 (free_objfile) [USE_MMALLOC]: Ditto.
11343 (open_existing_mapped_file): Delete function.
11344 (open_mapped_file): Delete function.
11345 (map_to_file): Delete function.
11346
2dbd5e30
KB
113472004-01-19 Kevin Buettner <kevinb@redhat.com>
11348
11349 * infrun.c (step_into_function): Account for possible breakpoint
11350 adjustment when computing ``stop_func_start''.
11351
437b434f
KB
113522004-01-19 Kevin Buettner <kevinb@redhat.com>
11353
11354 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
11355 the region size against the size of a pointer, not the size of
11356 a register as given by DEPRECATED_REGISTER_SIZE.
11357
55fb0713
AC
113582004-01-19 Andrew Cagney <cagney@redhat.com>
11359
11360 * tui/tui-regs.h: Include "tui-data.h".
11361 (tuiFirstRegElementNoInLine): Delete declaration.
11362 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
11363 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
11364 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
11365 (tui_calculate_regs_column_count): Rename
11366 tuiCalculateRegsColumnCount.
11367 (tui_check_register_values): Rename tuiCheckRegisterValues.
11368 (tui_show_registers): Rename tuiShowRegisters.
11369 (tui_display_registers_from_line): Rename
11370 tuiDisplayRegistersFromLine.
11371 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
11372 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
11373 (tui_first_reg_element_no_inline): Rename
11374 tuiFirstRegElementNoInLine.
11375 * tui/tui-data.h: Update copyright.
11376 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
11377 * tui/tui-windata.c: Update copyright, update references.
11378 * tui/tui-regs.c: Update copyright, update references.
11379 * tui/tui-win.c: Update copyright, update references.
11380 * tui/tui-layout.c: Update copyright, update references.
fe61caab 11381
cebe9500
AC
113822004-01-18 Andrew Cagney <cagney@redhat.com>
11383
bcdf1568
AC
11384 * tui/tui-io.c: Update copyright.
11385 (key_is_end_sequence, key_is_backspace): New functions.
11386 (key_is_command_char, key_is_start_sequence): New function.
11387 (tui_getc): Update references.
11388 * tui/tui-io.h: Update copyright.
11389 (m_tuiStartNewLine): Delete macro.
11390 (m_isBackspace, m_isDeleteChar): Delete macros.
11391 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
11392 (m_isNextPage, m_isPrevPage): Delete macros.
11393 (m_isLeftArrow, m_isRightArrow): Delete macros.
11394 (m_isXdbStyleCommandChar): Delete macro.
11395 (key_is_start_sequence): Declare, replace m_isStartSequence.
11396 (key_is_end_sequence): Declare, replace m_isEndSequence.
11397 (key_is_backspace): Declare ,replace m_isBackspace.
11398 (key_is_command_char): Declare, replace m_isCommandChar.
11399 * tui/tui-command.c: Update copyright.
11400 (tuiDispatchCtrlChar): Update references.
11401
130d87e6
AC
11402 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
11403 tuiSourceWin.h.
11404
d7b2e967
AC
11405 * tui/tui-command.c: Rename tui/tuiCommand.c.
11406 * tui/tui-command.h: Rename tui/tuiCommand.h.
11407 * tui/tui-data.c: Rename tui/tuiData.c.
11408 * tui/tui-data.h: Rename tui/tuiData.h.
11409 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
11410 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
11411 * tui/tui-io.c: Rename tui/tuiIO.c.
11412 * tui/tui-io.h: Rename tui/tuiIO.h.
11413 * tui/tui-layout.c: Rename tui/tuiLayout.c.
11414 * tui/tui-layout.h: Rename tui/tuiLayout.h.
11415 * tui/tui-regs.c: Rename tui/tuiRegs.c.
11416 * tui/tui-regs.h: Rename tui/tuiRegs.h.
11417 * tui/tui-source.c: Rename tui/tuiSource.c.
11418 * tui/tui-source.h: Rename tui/tuiSource.h.
11419 * tui/tui-stack.c: Rename tui/tuiStack.c.
11420 * tui/tui-stack.h: Rename tui/tuiStack.h.
11421 * tui/tui-win.c: Rename tui/tuiWin.c.
11422 * tui/tui-win.h: Rename tui/tuiWin.h.
11423 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
11424 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
11425 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
11426 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
11427 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
11428 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
11429 * tui/tui-file.c: Update includes.
11430 * tui/tui-hooks.c: Update includes.
11431 * tui/tui-interp.c: Update includes.
11432 * tui/tui.c: Update includes.
11433 * Makefile.in: Update all tui/ dependencies.
11434 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
11435
b2100910
AC
11436 * Makefile.in: Update copyright. Update dependencies.
11437
cebe9500
AC
11438 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
11439 problem.
11440
c6f0559b
AC
114412004-01-18 Andrew Cagney <cagney@redhat.com>
11442
43e9390b
AC
11443 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
11444 instead of register_gdbarch_init.
11445
c6f0559b
AC
11446 * remote-sds.c (tohex): Delete unused function. Update copyright.
11447 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
11448 * v850-tdep.c (v850_register_virtual_size): Ditto.
11449 * target.c (normal_target_post_startup_inferior): Ditto.
11450 * source.c (ambiguous_line_spec): Ditto.
11451 * remote.c (adapt_remote_get_threadinfo): Ditto.
11452 * mi/mi-out.c (out_field_fmt): Ditto.
11453 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
11454 (output_control_change_notification): Ditto.
11455 * m68k-tdep.c (m68k_register_byte): Ditto.
11456 (m68k_remote_breakpoint_from_pc): Ditto.
11457 * ui-out.c (init_ui_out_state): Delete unused declaration.
11458 * stabsread.c (search_value): Ditto.
11459 * mi/mi-cmd-env.c (env_cli_command): Ditto.
11460 * maint.c (print_section_table): Ditto.
11461 * infrun.c (set_follow_fork_mode_command): Ditto.
11462
a8504492
MK
114632004-01-18 Mark Kettenis <kettenis@gnu.org>
11464
11465 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
11466 DW_CFA_def_cfa_exporession. Add support for
11467 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
11468 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
11469
0bd8997e
AC
114702004-01-18 Andrew Cagney <cagney@redhat.com>
11471
11472 * ocd.c: Update copyright.
11473 (bdm_read_register_command): Delete unused function.
11474 (_initialize_remote_ocd): Delete commented out reference.
11475 (get_quoted_char, reset_packet): Delete #if0ed function.
11476 (output_packet, put_quoted_char): Delete #if0ed function.
11477 (stu_put_packet, stu_get_packet): Delete #if0ed function.
11478 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
11479 (BDM_BREAKPOINT): Delete #if0ed macro.
11480 (remote_timeout): Delete #if0ed variable.
11481
31bb40e4
MK
114822004-01-18 Mark Kettenis <kettenis@gnu.org>
11483
11484 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
11485 (core-sol2.o): Remove dependency.
11486 * core-sol2.c: Remove file.
11487
887432a5
AC
114882004-01-17 Andrew Cagney <cagney@redhat.com>
11489
11490 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
11491 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
11492 enums.
11493
29182b13
DJ
114942004-01-17 Daniel Jacobowitz <drow@mvista.com>
11495
11496 * remote.c: Update copyright years.
11497
2963ee1d
DJ
114982004-01-17 Daniel Jacobowitz <drow@mvista.com>
11499
11500 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
11501
79d45cd4
AC
115022004-01-17 Andrew Cagney <cagney@redhat.com>
11503
ee300cd4
AC
11504 * mdebugread.c: Update copyright.
11505 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
11506 (parse_type, parse_procedure): Ditto.
11507 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
11508
fcacc9c2
AC
11509 * cris-tdep.c (cris_store_struct_return): Put back accidently
11510 deleted function.
11511
79d45cd4
AC
11512 * gdbarch.sh: Update copyright year.
11513 * gdbarch.h, gdbarch.c: Re-generate.
11514
b263358a
DJ
115152004-01-17 Daniel Jacobowitz <drow@mvista.com>
11516
11517 Suggested by George Anzinger.
11518 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
11519 correct stack offset. Include unknown opcode numbers in the error
11520 message.
11521
931aecf5
AC
115222004-01-17 Andrew Cagney <cagney@redhat.com>
11523
11524 * x86-64-tdep.c (x86_64_init_abi): No need to clear
11525 extract_struct_value_address, i386 does not set it.
11526 * sparc64-tdep.c (sparc64_init_abi): Do not set
11527 extract_struct_value_address, never called.
11528 (sparc64_extract_struct_value_address): Delete function.
11529 * m68hc11-tdep.c: Update copyright.
11530 (m68hc11_gdbarch_init): Delete redundant assignment of
11531 extract_struct_value_address.
11532 * i386-tdep.c: Update copyright.
11533 (i386_gdbarch_init): Do not set extract_struct_value_address,
11534 never called.
11535 (i386_extract_struct_value_address): Delete function.
11536 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
11537 extract_struct_value_address, never called.
11538 (sparc32_extract_struct_value_address): #if 0 function. Add
11539 comments explaining its future.
11540
756fe439
DJ
115412004-01-17 Daniel Jacobowitz <drow@mvista.com>
11542
11543 * arm-tdep.c (arm_write_pc): New function.
11544 (arm_gdbarch_init): Call set_gdbarch_write_pc.
11545
e74f0f02
DJ
115462004-01-17 Daniel Jacobowitz <drow@mvista.com>
11547
11548 * breakpoint.c (must_shift_inst_regs): Delete.
11549 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
11550 and SHIFT_INST_REGS.
11551 * infcmd.c (step_1, step_1_continuation): Delete references to
11552 SHIFT_INST_REGS.
11553 * infrun.c (keep_going): Likewise.
11554 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
11555 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
11556
b6cb9035
AC
115572004-01-17 Andrew Cagney <cagney@redhat.com>
11558
444a1e2e
AC
11559 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11560 * gdbarch.h, gdbarch.c: Re-generate.
11561 * infcmd.c (print_return_value): Delete reference to
11562 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
11563
def7e6ed
AC
11564 * cris-tdep.c (cris_gdbarch_init): Do not set
11565 deprecated_extract_struct_value_address.
11566
07be497a
AC
11567 * xstormy16-tdep.c: Update copyright.
11568 (xstormy16_extract_struct_value_address): Update to current
11569 extract struct value address interface.
11570 (xstormy16_gdbarch_init): Set extract_struct_value_address.
11571 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
11572 current extract struct value address interface.
11573 (sh64_gdbarch_init): Set extract_struct_value_address.
11574
6b4d5c91
AC
11575 * cris-tdep.c: Update copyright.
11576 (cris_extract_struct_value_address): Delete function.
11577 (struct_return_address): Delete variable.
11578 (cris_store_struct_return): Do not set struct_return_address.
11579
464e0365
AC
11580 * mcore-tdep.c: Update copyright.
11581 (mcore_extract_struct_value_address): Delete function. Update
11582 comments.
11583 (mcore_gdbarch_init): Update.
11584 * mn10300-tdep.c: Update copyright.
11585 (mn10300_extract_struct_value_address): Delete function.
11586 (mn10300_gdbarch_init): Update.
11587 * v850-tdep.c: Update copyright.
11588 (v850_extract_struct_value_address): Delete.
11589 (v850_gdbarch_init): Update.
11590 * ns32k-tdep.c: Update copyright.
11591 (ns32k_extract_struct_value_address): Delete.
11592 (ns32k_gdbarch_init): Update.
11593 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
11594 (hppa_gdbarch_init): Update.
11595 * vax-tdep.c: Update copyright.
11596 (vax_extract_struct_value_address): Delete.
11597 (vax_gdbarch_init): Update.
11598
afb18d0f
AC
11599 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
11600 * gdbarch.h, gdbarch.c: Re-generate.
11601 * procfs.c (procfs_fetch_registers): Delete reference to
11602 DEPRECATED_NPC_REGNUM.
11603 (procfs_store_registers): Ditto.
11604 * regcache.c (generic_target_write_pc): Simplify.
11605 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
11606
a698f53e
AC
11607 * core-sol2.c (fetch_core_registers): Replace
11608 DEPRECATED_NPC_REGNUM with equivalent tdep value.
11609
adc11376
AC
11610 * hppa-tdep.c: Update copyright year.
11611 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
11612 NPC_REGNUM.
11613 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
11614
b6cb9035
AC
11615 * mips-tdep.c (mips_write_pc): New function.
11616 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
11617 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
11618 (mips_find_saved_regs, mips_software_single_step: Ditto.
11619 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
11620 mips_init_extra_frame_info, mips_pop_frame): Ditto.
11621
6d82d43b
AC
116222004-01-17 Andrew Cagney <cagney@redhat.com>
11623
11624 * mips-tdep.c: Re-indent. Group functions by ABI.
11625
71bd6bd4
AC
116262004-01-17 Andrew Cagney <cagney@redhat.com>
11627
11628 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
11629 * gdbarch.c: Re-generate.
11630 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11631 DECR_PC_AFTER_BREAK to zero.
11632 * vax-tdep.c (vax_gdbarch_init): Ditto.
11633 * v850-tdep.c (v850_gdbarch_init): Ditto.
11634 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
11635 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
11636 * sh-tdep.c (sh_gdbarch_init): Ditto.
11637 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11638 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11639 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11640 * mips-tdep.c (mips_gdbarch_init): Ditto.
11641 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11642 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11643 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
11644 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11645 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
11646 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11647 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11648 * frv-tdep.c (frv_gdbarch_init): Ditto.
11649 * cris-tdep.c (cris_gdbarch_init): Ditto.
11650 * avr-tdep.c (avr_gdbarch_init): Ditto.
11651 * arm-tdep.c (arm_gdbarch_init): Ditto.
11652 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
11653
a02abb62
JB
116542004-01-17 J. Brobecker <brobecker@gnat.com>
11655
11656 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
11657 Delete, no longer used.
11658 (read_subrange_type): New function, mostly extracted from
11659 read_array_type().
11660 (read_array_type): Replace extracted code by call to
11661 read_subrange_type().
11662 (dwarf2_get_attr_constant_value): New function.
11663 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
11664 (add_partial_symbol): Likewise.
11665 (process_die): Likewise.
11666 (new_symbol): Likewise.
11667 (read_type_die): Likewise.
11668
cf5b2f1b
AC
116692004-01-16 Andrew Cagney <cagney@redhat.com>
11670
11671 * symfile.c: Update copyright year.
11672 (compare_symbols): Delete unused function.
11673 * stabsread.c: Update copyright year.
11674 (lrs_general_complaint): Delete unused function.
11675 (ref_search_value): Ditto.
11676 (get_substring): Delete declaration.
11677 * sh64-tdep.c: Update copyright year.
11678 (sh64_get_gdb_regnum): Delete unused function.
11679 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
11680 Delete unused function.
11681
d33b9831
MK
116822004-01-17 Mark Kettenis <kettenis@gnu.org>
11683
11684 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
11685 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
11686
7aea86e6
AC
116872004-01-16 Andrew Cagney <cagney@redhat.com>
11688
11689 Changes from Peter Schauer.
11690 * rs6000-tdep.c: Update copyright year.
11691 (rs6000_push_dummy_call): Update the stack pointer before
11692 accessing the corresponding stack region.
11693 * rs6000-nat.c: Update copyright year.
11694 (set_host_arch): Set "info.abfd" to "exec_bfd".
11695
26b0da32
MK
116962004-01-15 Mark Kettenis <kettenis@gnu.org>
11697
11698 * blockframe.c: Update copyright year.
11699 (inside_entry_func): Don't treat a zero PC specially.
11700
86fbe6cc
EZ
117012004-01-14 Elena Zannoni <ezannoni@redhat.com>
11702
11703 * gcore.c (gcore_copy_callback): Use paddr_d to print size
11704 variable.
11705 (gcore_create_callback): Ditto. Skip any memory segment that has
11706 no permissions set.
11707
63d06c5c
DC
117082004-01-14 David Carlton <carlton@kealia.com>
11709
11710 Change symbols for C++ nested types to contain the fully qualified
11711 name, if possible. (At least in the DWARF-2 case.) Partial fix
11712 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
11713 c++/895.
11714 * c-exp.y (qualified_type): Handle types nested within classes.
11715 * cp-namespace.c: Update comments.
11716 (cp_set_block_scope): Delete #if 0.
11717 (cp_lookup_nested_type): Handle types nested within classes.
11718 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
11719 when appropriate.
11720 (add_partial_symbol): Add the name of the enclosing namespace to
11721 types.
11722 (pdi_needs_namespace): New.
11723 (add_partial_namespace): Tweak comment.
11724 (add_partial_structure): New.
11725 (psymtab_to_symtab_1): Initialize processing_current_prefix
11726 here...
11727 (process_die): instead of here.
11728 (read_structure_scope): Try to figure out the name of the class or
11729 namespace that the structure might be defined within.
11730 (read_enumeration): Generate fully-qualified names, if possible.
11731 (read_namespace): Don't set name to NULL.
11732 (die_specification): New.
11733 (new_symbol): Generate fully-qualified names for types.
11734 (read_type_die): Determine appropriate prefix.
11735 (determine_prefix): New.
11736 (typename_concat): New.
11737 (class_name): New.
11738 * valops.c (value_aggregate_elt): Pass NOSIDE to
11739 value_struct_elt_for_reference.
11740 (value_struct_elt_for_reference): Make static, add NOSIDE
11741 parameter, call value_maybe_namespace_elt as a last resort.
11742 (value_namespace_elt): Break out code into
11743 value_maybe_namespace_elt.
11744 (value_maybe_namespace_elt): New.
11745
87783b8b
AC
117462004-01-12 Andrew Cagney <cagney@redhat.com>
11747
11748 * mips-tdep.c (mips_convert_register_p): Handle both raw and
11749 cooked floating-point registers.
11750 (mips_gdbarch_init): Set convert_register_p, register_to_value,
11751 and value_to_register.
11752
6503b91e
AC
117532004-01-13 Andrew Cagney <cagney@redhat.com>
11754
11755 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
11756 * gdbarch.c: Re-generate.
11757 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11758 FUNCTION_START_OFFSET.
11759 * v850-tdep.c (v850_gdbarch_init): Ditto.
11760 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
11761 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
11762 * sh-tdep.c (sh_gdbarch_init): Ditto.
11763 * s390-tdep.c (s390_gdbarch_init): Ditto.
11764 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11765 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11766 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11767 * mips-tdep.c (mips_gdbarch_init): Ditto.
11768 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11769 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11770 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11771 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
11772 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11773 * i386-tdep.c (i386_gdbarch_init): Ditto.
11774 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11775 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11776 * frv-tdep.c (frv_gdbarch_init): Ditto.
11777 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11778 * cris-tdep.c (cris_gdbarch_init): Ditto.
11779 * avr-tdep.c (avr_gdbarch_init): Ditto.
11780 * arm-tdep.c (arm_gdbarch_init): Ditto.
11781 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11782
ea1dd7bc
DJ
117832004-01-13 Daniel Jacobowitz <drow@mvista.com>
11784
11785 * infrun.c (follow_fork_mode_ask): Remove.
11786 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
11787 (follow_fork): Simplify and remove internal error for
11788 follow_fork_mode_ask.
11789 (_initialize_infrun): Update "set follow-fork-mode" help text.
11790
0f0cffd2
AC
117912004-01-13 Andrew Cagney <cagney@redhat.com>
11792
11793 * configure.in: Update copyright year.
11794 (build_warnings): Add -Wunused-label.
11795 * configure: Re-generate.
11796
de38af99
AC
117972004-01-12 Andrew Cagney <cagney@redhat.com>
11798
954a7fba
AC
11799 * exec.h (exec_ops): Make "extern".
11800
de38af99
AC
11801 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
11802 the function is void.
11803 (mips_pseudo_register_write): Ditto.
11804
1a111ce3
AC
118052004-01-12 Andrew Cagney <cagney@redhat.com>
11806
11807 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
11808 call. Never defined.
11809 * sparc-tdep.h (struct frame_info): Add opaque declaration.
11810 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
11811 (struct sparc_gregset, struct regcache): Ditto.
11812 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
11813
48efe704
AC
118142004-01-12 Andrew Cagney <cagney@redhat.com>
11815
11816 * mi/ChangeLog: Delete file. Renamed to ...
11817 * mi/ChangeLog-1999-2003: New file.
11818 * tui/ChangeLog: Delete file. Renamed to ...
11819 * tui/ChangeLog-1998-2003: New file.
fe61caab 11820
a54124c5
MK
118212004-01-11 Mark Kettenis <kettenis@gnu.org>
11822
2ca62865
MK
11823 * sparc64nbsd-tdep.c: Include "regset.h".
11824 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
11825 Remove variables.
11826 (fetch_core_registers): Remove function.
11827 (sparc64nbsd_core_fns): Remove variable.
11828 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
11829 functions.
11830 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
11831 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
11832 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
11833
ca9d58e9
MK
11834 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
11835 sparc_extract_struct_value_address.
11836 (sparc32_gdbarch_init): Set extract_struct_value_address.
11837 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
11838 function.
11839 (sparc64_init_abi): Set extract_struct_value_address. Don't set
11840 return_value_on_stack.
11841
3cc87ec0
MK
11842 * NEWS: Mention that %cs and %ss have been added to the AMD64
11843 configurations
11844
5bf00f29
MK
11845 * frame.c: Update copyright year.
11846 (get_prev_frame): Improve comment.
11847
4f7ec84e
MK
11848 * sparc64fbsd-tdep.c: Include "regset.h".
11849 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
11850 Remove variables.
11851 (fetch_core_registers): Remove function.
11852 (sparc64fbsd_core_fns): Remove variable.
11853 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
11854 functions.
11855 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
11856 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 11857 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 11858
4e7b0cd3
MK
11859 * sparcnbsd-tdep.c: Include "regset.h".
11860 (fetch_core_registers): Remove function.
11861 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
11862 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
11863 functions.
11864 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
11865 TDEP->fpregset.
46b58ce9 11866 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 11867
a54124c5
MK
11868 * sparc-tdep.h (struct regset): Provide opaque declaration.
11869 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
11870 fpregset and sizeof_fpregset members.
11871 * sparc-tdep.c (struct regset): Provide opaque declaration.
11872 (sparc_regset_from_core_section): New function.
11873 (sparc32_gdbarch_init): Initialize TDEP->gregset,
11874 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
11875 Set regset_from_core_section when appropriate.
11876
29ff87c5
MK
118772004-01-10 Mark Kettenis <kettenis@gnu.org>
11878
79b1ab3d
MK
11879 * x86-64-tdep.c (amd64_non_pod_p): New function.
11880 (amd64_classify_aggregate): Return class memory for non-POD
11881 C++ structure types.
11882
6470d250
MK
11883 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
11884 argument. Use it to reserve a register if necessary.
11885 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
11886 amd64_push_arguments.
11887
562c50c2
MK
11888 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
11889
af233647
MK
11890 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
11891 register numbers in comments.
11892 * x86-64-tdep.h: Update copyright year.
11893 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
11894 Adjust for addition of %cs and %ss.
11895 * amd64fbsd-nat.c: Update copyright year.
11896 (reg_offset): Add register offsets for %cs and %ss.
11897 * amd64fbsd-tdep.c: Update copyright year.
11898 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
11899 (amd64fbsd_sc_reg_offset): Likewise.
11900 * x86-64-linux-nat.c: Update copyright year.
11901 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
11902 and %ss.
11903 * amd64nbsd-nat.c: Update copyright year.
11904 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
11905 * amd64nbsd-tdep.c: Update copyright year.
11906 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
11907 * x86-64-linux-tdep.c: Update copyright year.
11908 (user_to_gdb_regmap): Add mapping for %cs and %ss.
11909 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
11910 * regformats/reg-x86-64.dat: Add %cs and %ss.
11911
29ff87c5
MK
11912 * blockframe.c (inside_entry_func): Reformat. Introduce new local
11913 variables to prevent long lines. Update comments to reflect
11914 reality.
11915
38d518c9
EZ
119162004-01-09 David Carlton <carlton@kealia.com>
11917
11918 Checked in by Elena Zannoni <ezannoni@redhat.com>.
11919 * dwarf2read.c (read_namespace): Pull out name-generating code
11920 into namespace_name. Rename previous_namespace to previous_prefix
11921 and processing_current_namespace to processing_current_prefix..
11922 (namespace_name): New function.
11923 (add_partial_symbol): Substitute uses of pdi->name with
11924 actual_name.
11925 * cp-support.h: Rename processing_current_namespace to
11926 processing_current_prefix.
11927 Update copyright year.
11928 * cp-namespace.c: Rename processing_current_namespace to
11929 processing_current_prefix.
11930 Update copyright year.
fe61caab 11931
1e4728e7
AC
119322004-01-09 Andrew Cagney <cagney@redhat.com>
11933
11934 * jv-valprint.c, ser-unix.c: Add missing copyright years.
11935
c77c642a
MK
119362004-01-09 Mark Kettenis <kettenis@gnu.org>
11937
11938 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
11939 complaining.
11940 (process_one_symbol): Deal with N_PATCH stabs.
11941
b44e9041
EZ
119422004-01-09 Elena Zannoni <ezannoni@redhat.com>
11943
11944 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
11945 ifdeffed code.
11946 Update copyright year.
38d518c9 11947
eccfb640
MC
119482004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11949
11950 * config/pa/tm-hppa.h: Update extern declarations for
11951 hppa32_hpux_frame_saved_pc_in_sigtramp,
11952 hppa32_hpux_frame_base_before_sigtramp, and
11953 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
11954
848c5feb
MC
119552004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11956
11957 * config/pa/tm-hppah.h: Update copyright years.
11958
3cc5d663
AC
119592004-01-08 Andrew Cagney <cagney@redhat.com>
11960
11961 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
11962 (mips_o32_reg_struct_has_addr): Delete function.
11963 (mips_gdbarch_init): Update.
11964 (mips_extract_struct_value_address): Delete function.
11965
bfec0b41
JJ
119662004-01-08 David Mosberger <davidm@hpl.hp.com>
11967
11968 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
11969 reality.
11970
16e109ca
AC
119712004-01-07 Andrew Cagney <cagney@redhat.com>
11972
6214a8a1
AC
11973 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
11974 architecture's elf flags (when available).
11975
8d5838b5
AC
11976 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
11977 FPU to the start, check the MIPS FPU when looking for an old
11978 architecture.
11979 (set_mipsfpu_single_command): Update the architecture.
11980 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
11981
480d3dd2
AC
11982 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
11983 (mips_mask_address_p): Add "tdep" parameter.
11984 (show_mask_address, mips_addr_bits_remove): Update.
11985 (mips_dump_tdep): Update.
11986 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
11987 (MIPS_STACK_ARGSIZE): Delete macro.
11988 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
11989 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
11990 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
11991 (mips_dump_tdep): Update.
11992 (MIPS_SAVED_REGSIZE): Delete macro.
11993 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
11994 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
11995 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
11996 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
11997 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
11998 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
11999 (mips_pop_frame, return_value_location): Update.
12000 (mips_n32n64_return_value, mips_dump_tdep): Update.
12001
ec03c1ac
AC
12002 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
12003 MIPS ABI.
12004
16e109ca
AC
12005 * mips-tdep.c: Update copyright.
12006 (mips_gdbarch_init): Merge two code blocks handling the register
12007 name and number layout.
12008
15255275
MS
120092004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
12010
12011 * tracepoint.c (validate_actionline): Fix segv at EOF
12012
9f9057da
MC
120132004-01-07 Michael Chastain <mec.gnu@mindspring.com>
12014
12015 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
12016 properly for static fields.
12017
0127c0d3 120182004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 12019 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
12020
12021 * disasm.c: Update copyright to include 2004.
12022 (do_mixed_source_and_assembly): For uiout asm list
12023 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 12024 NULL and do so prior to loop. Only reset when we close off
0127c0d3 12025 the tuple/list. Move check for whether to close off the
fe61caab 12026 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
12027 on each loop iteration.
12028
5269965e
AC
120292004-01-05 Andrew Cagney <cagney@redhat.com>
12030
54f1137d
AC
12031 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
12032 should be a switch case and not a label.
12033 * mips-tdep.c (mips32_next_pc): Delete unused labels
12034 "greater_equal_branch" and "less_zero_branch".
12035 * jv-valprint.c (java_print_value_fields): Delete unused label
12036 "flush_it".
12037
5269965e
AC
12038 * target.c (unpush_target): Only close a target that is in the
12039 target stack.
12040
dbc22fa1
MK
120412004-01-05 Mark Kettenis <kettenis@gnu.org>
12042
9515395e
MK
12043 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
12044 address from [sp + 64] instead of %o2.
12045
dbc22fa1
MK
12046 * frame.c (get_prev_frame): Don't try to unwind the PC. This
12047 fixes PR backtrace/1476.
12048
5439edaa
AC
120492004-01-05 Andrew Cagney <cagney@redhat.com>
12050
12051 * libunwind-frame.h (struct frame_id): Add opaque declaration,
12052 move to start of file.
12053 * i386-tdep.h (struct regcache): Add opaque declaration.
12054 * config/ia64/nm-linux.h (struct target_ops): Add opaque
12055 declaration.
12056 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
12057 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
12058 * win32-nat.c (fake_create_process): Use ISO C style definition.
12059 * stabsread.c (define_symbol): Delete #ifndef
12060 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
12061 stabs_argument_has_addr call, macro never defined.
12062
19061abe
MC
120632004-01-04 Michael Chastain <mec.gnu@mindspring.com>
12064
12065 * op50-rom.c: Delete.
12066 * w89k-rom.c: Delete.
12067 * Makefile.in: Remove references.
12068
e53bef9f
MK
120692004-01-04 Mark Kettenis <kettenis@gnu.org>
12070
12071 * x86-64-tdep.c: Update copyright year.
12072 (struct amd64_register_info): Rename from x86_64_register_info.
12073 (amd64_register_info): Rename from x86_64_register_info.
12074 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
12075 (amd64_register_name): Rename from x86_64_register_name.
12076 (amd64_register_type): Rename from x86_64_register_type.
12077 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
12078 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
12079 (amd64_dwarf_reg_to_regnum): Rename from
12080 x86_64_dwarf_reg_to_regnum.
12081 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
12082 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
12083 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
12084 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
12085 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
12086 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
12087 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
12088 (amd64_frame_cache): Rename from x86_64_frame_cache.
12089 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
12090 (amd64_frame_prev_register): Rename from
12091 x86_64_frame_prev_register.
12092 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
12093 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
12094 (amd64_sigtramp_frame_cache): Rename from
12095 x86_64_sigtramp_frame_cache.
12096 (amd64_sigtramp_frame_prev_register): Rename from
12097 x86_64_sigtramp_frame_prev_register.
12098 (amd64_sigtramp_frame_unwind): Rename from
12099 x86_64_sigtramp_frame_unwind.
12100 (amd64_sigtramp_frame_sniffer): Rename from
12101 x86_64_sigtramp_frame_sniffer.
12102 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
12103 (amd64_frame_base): Rename from x86_64_frame_base.
12104 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
12105 (amd64_frame_align): Rename from x86_64_frame_align.
12106 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
12107 (amd64_regset_from_core_section): Rename from
12108 x86_64_regset_from_core_section.
12109 (x86_64_init_abi): Update comments.
12110
fca6aa58
NR
121112004-01-04 Nick Roberts <nick@nick.uklinux.net>
12112
12113 * MAINTAINERS (write after approval): Add myself.
12114
8ada74e3
MK
121152004-01-04 Mark Kettenis <kettenis@gnu.org>
12116
12117 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
12118 `float' arguments.
12119
5154b0cd
MK
121202004-01-04 Mark Kettenis <kettenis@gnu.org>
12121
12122 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
12123 such that it mentions a specific version of GCC that exhibits this
12124 bug.
12125
fb316966
MK
121262004-01-03 Mark Kettenis <kettenis@gnu.org>
12127
200cc553
MK
12128 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
12129 structure that has a single `float' member, store it in %f1 in
12130 addition to %f0.
12131
e226a4a0
MK
12132 * sparc-sol2-nat.c: Add missing '\'.
12133
b9d4c5ed
MK
12134 * sparc-tdep.c (sparc32_return_value): New function.
12135 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
12136 Remove functions.
12137 (sparc32_gdbarch_init): Set return_value, don't set
12138 extract_return_value, store_return_value, use_struct_convention
12139 and return_value_on_stack.
12140
fb316966
MK
12141 * sparc-sol2-nat.c: Add missing ')'.
12142
1af510a8
JB
121432004-01-03 J. Brobecker <brobecker@gnat.com>
12144
12145 * infrun.c (handle_step_into_function): New function.
12146 (handle_inferior_event): Extract out some code into the new
12147 function above.
12148
5cf4d23a
JB
121492004-01-03 J. Brobecker <brobecker@gnat.com>
12150
12151 * infrun.c (handle_inferior_event): Move the declaration of
12152 real_stop_pc inside the if blocks where it is used.
12153
60af1db2
MK
121542004-01-03 Mark Kettenis <kettenis@gnu.org>
12155
12156 * sparc64-tdep.c (sparc64_16_byte_align_p)
12157 (sparc64_store_floating_fields, sparc64_store_floating_fields):
12158 Use check_typedef to get subtypes of structures and unions.
12159 (sparc64_store_return_value): Fix calculation of the appropriate
12160 offset into VALBUF when storing a structure or union.
12161 (sparc64_return_value): New function.
12162 (sparc64_use_struct_convention): Remove function.
12163 (sparc64_init_abi): Set return_value, don't set
12164 extract_return_value, store_return_value and
12165 use_struct_convention.
12166
1a901d3f
EZ
121672004-01-03 Eli Zaretskii <eliz@elta.co.il>
12168
12169 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
12170 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
12171 gdb/config/alpha/xm-alphaosf.h,
12172 gdb/config/powerpc/tm-ppcle-eabi.h,
12173 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
12174 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
12175 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
12176 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
12177 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
12178 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
12179 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
12180 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
12181 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
12182 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
12183 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
12184 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
12185 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
12186 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
12187 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
12188 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
12189 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
12190 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
12191 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
12192 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
12193 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
12194 Remove lines for .cvsignore files.
12195
ef52e463
JB
121962004-01-03 J. Brobecker <brobecker@gnat.com>
12197
12198 * infrun.c: Back out the previous change.
12199
cb1bf9dc
MK
122002004-01-03 Mark Kettenis <kettenis@gnu.org>
12201
f0424ef6
MK
12202 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
12203 sparc-*-sunos4* to the list of REMOVED configurations.
12204
cb1bf9dc
MK
12205 * configure.tgt: Add back sparc-*-vxworks*.
12206 * remote-vxsparc.c: Remove all includes except for "defs.h",
12207 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
12208 Include "sparc-tdep.h".
12209 (SPARC_R_G1): New define.
12210 (vxsparc_gregset): New variable.
12211 (ext_format_sparc): Remove extern declaration.
12212 (vx_read_register): Rewrite to use sparc32_supply_gregset and
12213 sparc32_supply_fpregset.
12214 (vx_write_register): Rewrite to use sparc32_collect_gregset,
12215 sparc_collect_rwindow and sparc32_collect_fpregset.
12216 * config/sparc/tm-vxworks.h: New file, based on recently removed
12217 tm-vxsparc.h.
12218 * config/sparc/vxworks.mt: New file, based on recently removed
12219 vxworks.mt.
fe61caab 12220
5e938f9f
JB
122212004-01-03 J. Brobecker <brobecker@gnat.com>
12222
12223 * infrun.c (handle_step_into_function): New function.
12224 (handle_inferior_event): Extract out some code into the new
12225 function above.
12226
386c036b
MK
122272004-01-02 Mark Kettenis <kettenis@gnu.org>
12228
12229 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
12230 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
12231 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
12232 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
12233 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
12234 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
12235 (sparc_nat_h): New variable.
12236 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
12237 (tm-sun4os4.h): Remove dependency.
12238 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
12239 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
12240 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
12241 sparc-tdep.o): Update dependencies.
12242 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
12243 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
12244 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
12245 dependencies.
12246 * configure.host: Remove existing sparc-*-lynxos*,
12247 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
12248 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
12249 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
12250 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
12251 triplets.
12252 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
12253 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
12254 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
12255 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
12256 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
12257 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
12258 sparc64-*-solaris2* and sparc64-*-* triplets.
12259 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
12260 "symtab.h" and "objfiles.h".
12261 (BIAS): Remove define.
12262 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
12263 (X_DISP19): Remove macros.
12264 (sparc_fetch_instruction): Remove function.
12265 (struct gdbarch_tdep): Remove definition.
12266 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
12267 (sparc_breakpoint_from_pc): Remove function.
12268 (struct sparc64_frame_cache): Remove definition.
12269 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
12270 sparc64_unwind_pc): Remove functions.
12271 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
12272 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
12273 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
12274 (sparc64_frame_cache): Change return type to `struct
12275 sparc_frame_cache *'. Simply call sparc_frame_cache.
12276 (sparc64_frame_this_id, sparc64_frame_prev_register,
12277 sparc64_frame_base_address): Use `struct sparc_frame_cache'
12278 instead of `struct sparc64_frame_cache.
12279 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
12280 sparc_analyze_control_transfer, sparc_software_single_step,
12281 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
12282 _initialize_sparc64_tdep): Remove functions.
12283 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
12284 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
12285 macros.
12286 (sparc64_supply_gregset, sparc64_collect_gregset,
12287 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
12288 (sparc64_init_abi): New function.
12289 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
12290 inclusion guard. Include "sparc-tdep.h".
12291 (BIAS): Define.
12292 (r_tstate_offset, r_fprs_offset): New defines.
12293 (enum sparc_regnum): Remove defenition.
12294 (enum sparc64_regnum): Reformat.
12295 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
12296 (sparc64_init_abi, sparc64_supply_gregset,
12297 sparc64_collect_gregset, sparc64_supply_fpregset,
12298 sparc64_collect_fpregset): New prototypes.
12299 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
12300 Add extern declarations.
12301 (sparc64_sol2_init_abi): New prototype.
12302 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12303 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12304 prototypes.
12305 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
12306 "sparnbsd-nat.h".
12307 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
12308 functions.
12309 (_initialize_sparc64fbsd_nat): Remove initialization of
12310 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
12311 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 12312 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
12313 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
12314 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
12315 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
12316 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
12317 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
12318 (sparc64fbsd_r_y_offset): Remove variables.
12319 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12320 Make static and const.
12321 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12322 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12323 functions.
12324 (sparc64fbsd_gregset): New variable.
12325 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
12326 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
12327 and sparc64_supply_fpregset.
12328 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
12329 (sparc64fbsd_sigtramp_frame_this_id)
12330 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
12331 (sparc64fbsd_sigtramp_frame_unwind): New variable.
12332 (sparc64fbsd_sigtramp_frame_sniffer): New function.
12333 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
12334 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
12335 * sparcnbsd-tdep.c: Update copyright year. Include
12336 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
12337 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
12338 "value.h" and "sparcnbsd-tdep.h".
12339 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
12340 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
12341 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
12342 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
12343 defines.
12344 (sparcnbsd_gregset): New variable.
12345 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
12346 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
12347 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
12348 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
12349 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
12350 variables.
12351 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
12352 (sparc32nbsd_sigcontext_frame_this_id)
12353 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
12354 (sparc32nbsd_sigcontext_frame_unwind): New variable.
12355 (sparc32nbsd_sigtramp_frame_sniffer): New function.
12356 (sparcnbsd_get_longjmp_target_32,
12357 sparcnbsd_get_longjmp_target_64): Remove functions.
12358 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
12359 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
12360 sparcnbsd_init_elf): Remove.
12361 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
12362 (sparcnbsd_elf_init_abi): New functions.
12363 (_initialize_sparcnbsd_tdep): New prototype.
12364 (_initialize_sparnbsd_tdep): Update.
12365 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
12366 corelow.o. Add sparc64-nat.o and sparc-nat.o.
12367 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
12368 * config/sparc/linux.mh: Update comment.
12369 (XM_FILE, HOST_IPC): Remove variables.
12370 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
12371 sparc-linux-nat.o.
12372 * config/sparc/linux.mt: Update comment.
12373 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
12374 * config/sparc/nbsd.mt: Reformat.
12375 * config/sparc/nbsd64.mh: Update comment.
12376 (NATDEPFILES): Add sparc-nat.o.
12377 * config/sparc/nbsd64.mt: Update comment.
12378 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
12379 (TM_FILE): Set to tm-nbsd.h.
12380 * config/sparc/nbsdelf.mh: Update comment.
12381 (NATDEPFILES): Add sparc-nat.o.
12382 (XM_FILE): Delete.
12383 * config/sparc/nbsdaout.mh: Update comment.
12384 (NATDEPFILES): Add sparc-nat.o
12385 (XM_FILE): Delete.
12386 * config/sparc/nm-linux.h: Update copyright year. Don't include
12387 "config/nm-svr4.h" and "solib.h". Add protection against multiple
12388 inclusion.
12389 (KERNEL_U_SIZE): Remove define.
12390 (kernel_u_size): Remove prototype.
12391 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
12392 * config/sparc/nm-nbsd.h: Update copyright. Don't include
12393 "regcache.h".
12394 (CHILD_PREPARE_TO_STORE): Remove define.
12395 * config/sparc/nm-nbsdaout.h: Tweak some comments.
12396 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
12397 sparcnbsd-nat.c: Rewrite files.
12398 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
12399 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
12400 sparcnbsd-tdep.h: Remove files.
12401 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
12402 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
12403 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
12404 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
12405 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
12406 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
12407 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
12408 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
12409 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
12410 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
12411 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
12412 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
12413 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
12414 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
12415 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
12416 * config/sparc/linux64.mh, config/sparc/linux64.mt,
12417 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
12418 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
12419 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
12420
ee84457a
AC
124212004-01-02 Andrew Cagney <cagney@redhat.com>
12422
12423 From 2003-12-18 Kazuhiro Inaoka:
12424 * configure.host: Add m32r-linux target.
12425
0bc2134e
MC
124262004-01-02 Michael Chastain <mec.gnu@mindspring.com>
12427
12428 * top.c (print_gdb_version): Update year to 2004.
12429
89a72f9c
MM
124302004-01-02 Mark Mitchell <mark@codesourcery.com>
12431
12432 * MAINTAINERS: Add myself to the write-after-approval category.
12433
86b013ed
DJ
124342004-01-02 Daniel Jacobowitz <drow@mvista.com>
12435
12436 From Bernardo Innocenti <bernie@develer.com>:
12437 * configure.tgt: Add uClinux target.
12438
e42c9534
AC
124392004-01-02 Andrew Cagney <cagney@redhat.com>
12440
12441 * utils.c (do_my_cleanups): Make static, add forward declaration.
12442 * defs.h (do_my_cleanups): Delete declaration.
12443
162467d3
EZ
124442004-01-02 Eli Zaretskii <eliz@elta.co.il>
12445
12446 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
12447 bfd/ChangeLog-0203.
12448
78434e59
MK
124492004-01-02 Mark Kettenis <kettenis@gnu.org>
12450
12451 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
12452 in <machine/reg.h>.
12453 * configure, config.in: Regenerate.
12454
48efe704
AC
12455For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
12456tui/ChangeLog-1998-2003.
c906108c
SS
12457\f
12458Local Variables:
12459mode: change-log
12460left-margin: 8
12461fill-column: 74
12462version-control: never
12463End:
This page took 1.221791 seconds and 4 git commands to generate.