* sh-tdep.c (SH_NUM_REGS): Define as 67.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
da962468
CV
12004-10-06 Corinna Vinschen <vinschen@redhat.com>
2
3 * sh-tdep.c (SH_NUM_REGS): Define as 67.
4 (sh_sh_register_name): Add eight empty register names.
5 (sh_sh3_register_name): Ditto.
6 (sh_sh3e_register_name): Ditto.
7 (sh_sh2e_register_name): Ditto.
8 (sh_sh2a_register_name): New function, defining SH2A register set.
9 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
10 in nofpu case.
11 (sh_sh_dsp_register_name): Add eight empty register names.
12 (sh_sh3_dsp_register_name): Ditto.
13 (sh_sh4_register_name): Ditto.
14 (sh_sh4_nofpu_register_name): Ditto.
15 (sh_sh4al_dsp_register_name): Ditto.
16 (sh2a_show_regs): New function.
17 (sh2a_nofpu_show_regs): New function.
18 (sh_sh2a_register_type): New function.
19 (do_bank_register_info): New function.
20 (sh_print_pseudo_register): Call do_bank_register_info.
21 Call sh_print_pseudo_register for valid "bank" register.
22 (sh_sh2a_register_sim_regno): New function.
23 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
24 Increment pseudo register count by one for all sh variants with
25 pseudo registers to accomodate pseudo bank register.
26 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
27 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
28 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
29 Increment pseudo register numbers.
30
1326e61b
CV
312004-10-06 Corinna Vinschen <vinschen@redhat.com>
32
33 * dwarf2read.c (read_subroutine_type): Call make_function_type
34 instead of lookup_function_type.
35
146c42e3
JB
362004-10-05 Jim Blandy <jimb@redhat.com>
37
38 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
39 (Previous change missed some uses.)
40
1df84f13
AC
412004-10-05 Andrew Cagney <cagney@gnu.org>
42
43 * target.h (deprecated_child_ops): Rename child_ops.
44 * wince.c: Update copyright. Rename child_ops.
45 * win32-nat.c: Rename child_ops.
46 * target.c: Rename child_ops.
47 * rs6000-nat.c: Rename child_ops.
48 * linux-nat.c: Rename child_ops.
49 * infttrace.c: Rename child_ops.
50 * inftarg.c: Rename child_ops.
51 * infptrace.c: Rename child_ops.
52 * hppah-nat.c: Update copyright. Rename child_ops.
53 * hpux-thread.c: Update copyright. Rename child_ops.
54
21e3b9b9
DJ
552004-10-05 Daniel Jacobowitz <dan@debian.org>
56
57 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
58
de83afe7
AC
592004-10-05 Andrew Cagney <cagney@gnu.org>
60
61 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
62
10b3939b
DJ
632004-10-05 Daniel Jacobowitz <dan@debian.org>
64
65 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
66 (die_ref_table): Remove.
67 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
68 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
69 the usage of this type.
70 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
71 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
72 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
73 (dwarf2_create_include_psymtab): Update comment.
74 (find_partial_die): Remove third argument. Remove unreachable call
75 to error ().
76 (dwarf2_find_containing_comp_unit): Update comments. Change one
77 assertion to an error. Remove an unreachable error.
78 (dwarf2_find_comp_unit): Update comments.
79 (type_at_offset): Remove dead code.
80 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
81 (store_in_ref_table): Add CU argument.
82 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
83 inter-compilation-unit references.
84 (load_full_comp_unit, process_full_comp_unit): New functions, based
85 on psymtab_to_symtab_1.
86 (psymtab_to_symtab_1): Use them.
87 (dwarf2_add_dependence): New function.
88 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
89 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
90 (partial_die_parent_scope, guess_structure_name): Update for changes
91 to find_partial_die.
92 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
93 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
94 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
95 (read_die_and_children): Update call to store_in_ref_table.
96 (do_free_die_list_cleanup): Remove.
97 (fixup_partial_die): Update for changes to find_partial_die.
98 (read_full_die): Handle queueing absolute references.
99 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
100 (dwarf2_attr, die_specification, die_type)
101 (die_containing_type, dwarf2_extension): Update calls to
102 follow_die_ref.
103 (dump_die): Update DW_FORM_ref* handling.
104 (dwarf2_get_ref_die_offset): Likewise.
105 (free_one_comp_unit): Release the dies list.
106 (dwarf2_mark_helper): New function.
107 (dwarf2_mark): Use it.
108
998bdd68
MK
1092004-10-05 Mark Kettenis <kettenis@jive.nl>
110
111 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
112 when writing to memory.
113
14588880
KI
1142004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
115
116 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
117 (m32r_extract_struct_value_address): Delete function.
118 (m32r_return_value): New function.
119 (m32r_gdbarch_init): Instead of store_return_value,
120 extract_return_value, deprecated_extract_struct_value_address
121 and deprecated_use_struct_convention, set return_value.
122
dd5e6932
DJ
1232004-10-03 Daniel Jacobowitz <dan@debian.org>
124
125 * dwarf2read.c (read_subrange_type): Add comment for variable
126 sized arrays.
127
7dc1ef8d
PH
1282004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
129
130 * Makefile.in (.l.c): Modify rule for compatibility with recent
131 versions of flex, and remove most command-line options.
132 * ada-lex.l: Add %options line in place of -I -i and -s command-line
133 options.
134
1f8173e6
PH
1352004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
136
137 Turn on initial Ada support (mainly expression evaluation).
138
139 * Makefile.in (SFILES): Remove ada-tasks.c.
140 (HFILES_NO_SRCDIR): Add ada-lang.h.
141 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
142 (YYOBJ): Add ada-exp.o.
143 (rule .l.c): Generalize to not mention ada.
144 * symtab.c: Include ada-lang.h.
145 (symbol_natural_name, symbol_demangled_name)
146 (symbol_search_name): Add Ada case.
147
cb85a953
AC
1482004-10-01 Andrew Cagney <cagney@gnu.org>
149
3f3db248
AC
150 * Makefile.in (COMMON_OBS): Add inf-child.o.
151 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
152 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
153 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
154 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
155 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
156 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
157 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
158 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
159 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
160 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
161 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
162 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
163 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
164
cb85a953
AC
165 * target.c (xfer_using_stratum): Change return type to LONGEST.
166 On each iteration offset, readbuf and writebuf.
167 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
168 partial_length, and read/modify/write predicate, update comments.
169 Pass buffer.word to ptrace write.
170
963a6417
PH
1712004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
172
173 * symfile.c (init_filename_language_table): Add extensions for
174 Ada.
175 * defs.h (enum language): Add language_ada.
176 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
177 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
178 (add_symbols_from_enclosing_procs): Make a no-op for now.
179 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
180 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
181 (find_line_in_linetable, find_next_line_in_linetable)
182 (read_all_symtabs, is_plausible_func_for_line)
183 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
184 (is_runtime_sym_defined, check_size): Remove declaration.
185 (function_name_from_pc, ada_translate_error_message)
186 (ada_lookup_minimal_symbol): Remove definition.
187 (ada_add_block_symbols): Remove useless label.
188 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
189 useless declaration.
190 (ada_is_exception_sym): Likewise.
191
9b32d526
KI
1922004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
193
194 Add m32r-linux support.
195 * configure.tgt: Add m32r*-*-linux*.
196 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
197 and m32r-linux-tdep.c.
198 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
199 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
200 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
201 m32r-linux-tdep.c.
202 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
203 config/m32r/linux.mh, config/m32r/linux.mt,
204 config/m32r/nm-linux.h: New files.
205
2de118d3
JB
2062004-09-30 Joel Brobecker <brobecker@gnat.com>
207
208 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
209 (mips32_fetch_instruction): Remove, unused.
210
a9fe69d1
JB
2112004-09-30 Joel Brobecker <brobecker@gnat.com>
212
213 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
214 conditions that will always be true.
215
bc8ffc12
MK
2162004-09-30 Mark Kettenis <kettenis@gnu.org>
217
ba0cd111
MK
218 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
219 (vaxbsd_fetch_inferior_registers): Rename from
220 fetch_inferior_registers. Make static.
221 (vaxbsd_store_inferior_registers): Rename from
222 store_inferior_registers. Make static.
223 (_initialize_vaxbsd_nat): Construct and add target vector.
224 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
225 inftarg.o. Add inf-child.o and inf-ptrace.o.
226 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
227 inftarg.o. Add inf-child.o and inf-ptrace.o.
228 (NAT_FILE): Remove.
229 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
230 inftarg.o. Add inf-child.o and inf-ptrace.o.
231 (NAT_FILE): Remove.
232 * Makefile.in (vaxbsd-nat.o): Update dependencies.
233
bc8ffc12
MK
234 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
235 (m88kbsd_fetch_inferior_registers): Rename from
236 fetch_inferior_registers. Make static.
237 (m88kbsd_store_inferior_registers): Rename from
238 store_inferior_registers. Make static.
239 (_initialize_m88kbsd_nat): New prototype and function.
240 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
241 inftarg.o. Add inf-child.o and inf-ptrace.o.
242 (NAT_FILE): Remove.
243 * Makefile.in (m88kbsd-nat.o): Update dependencies.
244
27394598
AC
2452004-09-30 Andrew Cagney <cagney@gnu.org>
246
247 * target.c (target_xfer_partial): New function.
248 (target_read_memory_partial, target_write_memory_partial)
249 (default_xfer_partial, target_read_partial, target_write_partial)
250 (xfer_using_stratum): Use.
251 (debug_to_xfer_partial): Delete function.
252 (setup_target_debug): Do not override to_xfer_partial.
253
74a4fe32
MK
2542004-09-30 Mark Kettenis <kettenis@chello.nl>
255
256 * fork-child.c: Update copyright year. Fix coding style.
257
982526a1
MK
2582004-09-29 Mark Kettenis <kettenis@gnu.org>
259
260 * defs.h (msavestring, mstrsave): Remove prototypes.
261 * utils.c (msavestring, mstrsave): Remove functions.
262 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
263 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
264 of mstrsave.
265 * source.c (find_and_open_source): Use xstrdup instead of
266 mstrsave.
267
b8eb5af0
AC
2682004-09-30 Andrew Cagney <cagney@gnu.org>
269
0779438d
AC
270 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
271 (inf_ptrace_xfer_memory): Delete.
272 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
273 (target_read_memory, target_write_memory): Use xfer_using_stratum
274 when target_xfer_partial_p.
275 (debug_target): Move to start of file.
276 (target_read_memory_partial, target_write_memory_partial): Use
277 to_xfer_partial when target_xfer_partial_p.
278
f929a579
AC
279 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
280 inf_ptrace_xfer_memory with equivalent code.
281 * inftarg.c (child_xfer_partial): When performing a write, pass
282 writebuf to child_xfer_memory.
283
b8eb5af0
AC
284 * target.c (target_read_string): Use target_read_memory instead of
285 target_xfer_memory.
286
ee21b650
AC
2872004-09-29 Andrew Cagney <cagney@gnu.org>
288
d3e05d0d
AC
289 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
290 the address of status.
291
ee21b650
AC
292 * infptrace.c (ptrace_wait): Mention problem with HPUX.
293 (kill_inferior): Inline ptrace_wait call.
294 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
295 * inftarg.c (child_wait): Inline ptrace_wait call.
296
a182eed6
AC
297 * target.h (struct target_ops): Delete field to_post_wait.
298 (target_post_wait): Delete macro.
299 (child_post_wait): Delete declaration.
300 * target.c (update_current_target, update_current_target)
301 (debug_to_post_wait, setup_target_debug): Delete functions and
302 references.
303 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
304 * inftarg.c (child_post_wait): Delete.
305 (init_child_ops): Do not set to_post_wait.
306 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
307 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
308 * inf-child.c (inf_child_post_wait): Delete.
309 (inf_child_target): Do not set to_post_wait.
310 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
311 (inf_ptrace_target): Do not set to_post_wait.
312
ba0c540b
AC
313 * wince.c (child_ops): Delete.
314 * win32-nat.c (child_ops): Delete.
315
81977402
AC
316 * inftarg.c (inftarg_set_find_memory_regions)
317 (inftarg_set_make_corefile_notes): Delete functions.
318 (_initialize_linux_nat): Inline calls.
319
5ac10fd1
AC
320 * target.h (child_ops): Declare.
321 * inftarg.c (child_ops): Move from here ...
322 * target.c (child_ops): ... to here.
323 * wince.c (child_ops): Delete extern declaration.
324 * win32-nat.c (child_ops): Delete extern declaration.
325 * linux-nat.c (child_ops): Delete extern declaration.
326 * hpux-thread.c (child_ops): Delete extern declaration.
327
663408c2 3282004-09-28 Mark Kettenis <kettenis@gnu.org>
890c8f4d
MK
329
330 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
331
0dad8a66
MK
3322004-09-28 Mark Kettenis <kettenis@gnu.org>
333
334 * configure.in: Only set host_makefile_frag when building a native
335 debugger.
336 * configure: Regenerate.
e8d74ed3
MK
337
338 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
339 for OpenBSD ELF.
340
dba24537
AC
3412004-09-28 Andrew Cagney <cagney@gnu.org>
342
e979516b
AC
343 Problem identified by Paul Hilfinger.
344 * Makefile.in (ada_lex_c): Define.
345 (ada-lex.o): Delete rule.
346
dba24537
AC
347 * linux-proc.c: Delete file.
348 * Makefile.in: Update.
349 * config/sparc/linux64.mh (NATDEPFILES):
350 * config/sparc/linux.mh (NATDEPFILES): Update.
351 * config/s390/s390.mh (NATDEPFILES): Update.
352 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
353 * config/powerpc/linux.mh (NATDEPFILES): Update.
354 * config/pa/linux.mh (NATDEPFILES): Update.
355 * config/mips/linux.mh (NATDEPFILES): Update.
356 * config/m68k/linux.mh (NATDEPFILES): Update.
357 * config/ia64/linux.mh (NATDEPFILES): Update.
358 * config/i386/linux64.mh (NATDEPFILES): Update.
359 * config/i386/linux.mh (NATDEPFILES): Update.
360 * config/arm/linux.mh (NATDEPFILES): Update.
361 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
362 * linux-nat.c: Update copyright. Include <sys/param.h>,
363 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
364 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
365 (O_LARGEFILE): Possibly define.
366 (_initialize_linux_nat, linux_proc_pending_signals)
367 (add_line_to_sigset, linux_proc_xfer_memory)
368 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
369 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
370 (struct linux_corefile_thread_data)
371 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
372 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
373
d6b0e80f
AC
3742004-09-16 Andrew Cagney <cagney@gnu.org>
375
376 * lin-lwp.c: Delete file.
377 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
378 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
379 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
380 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
381 (linux_nat_attach, detach_callback, linux_nat_detach)
382 (resume_callback, resume_clear_callback, linux_nat_resume)
383 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
384 (stop_wait_callback, linux_nat_has_pending, flush_callback)
385 (status_callback, running_callback, count_events_callback)
386 (select_singlestep_lwp_callback, select_event_lwp_callback)
387 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
388 (child_wait, stop_and_resume_callback, linux_nat_wait)
389 (kill_callback, kill_wait_callback, linux_nat_kill)
390 (linux_nat_create_inferior, linux_nat_mourn_inferior)
391 (linux_nat_xfer_memory, linux_nat_thread_alive)
392 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
393 (_initialize_linux_nat): New functions.
394 * Makefile.in: Update all dependencies.
395 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
396 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
397 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
398 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
399 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
400 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
401 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
402 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
403 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
404 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
405 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
406 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
407 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
408
5a174d79
MK
4092004-09-27 Mark Kettenis <kettenis@gnu.org>
410
2f604c28
MK
411 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
412 config/i386/obsd64.mh (NAT_FILE): Remove variable.
413
5a174d79
MK
414 * configure.in: Don't comment out NATDEPFILES in the generated
415 Makefile if NAT_FILE is unset.
416 * configure: Regenerate.
417
b2ed1746
AC
4182004-09-27 Andrew Cagney <cagney@gnu.org>
419
44cbf7b5
AC
420 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
421 (insert_step_resume_breakpoint): Delete.
422 (insert_step_resume_breakpoint_at_frame): New function.
423 (insert_step_resume_breakpoint_at_sal): New function.
424 (handle_inferior_event, step_into_function)
425 (insert_step_resume_breakpoint): Simplify by using same.
426
b2ed1746
AC
427 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
428
3691b3be
MK
4292004-09-26 Mark Kettenis <kettenis@gnu.org>
430
36f391e8
MK
431 * fbsd-proc.c: Remove file.
432 * Makefile.in (fbsd-proc.o): Remove dependency.
433
771e236c
MK
434 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
435 code together.
436
3691b3be
MK
437 * config/i386/nm-fbsd64.h: Remove file.
438 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
439
6a5c78a3
MK
4402004-09-26 Mark Kettenis <kettenis@gnu.org>
441
442 * amd64-nat.h: Update copyright year.
443 (amd64bsd_target): New prototype.
444 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
445 (amd64bsd_target): New function.
446 (amd64bsd_fetch_inferior_registers): Rename from
447 fetch_inferior_registers. Make static.
448 (amd64bsd_store_inferior_registers): Rename from
449 store_inferior_registers. Make static.
450 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
451 (_initialize_amd64fbsd_nat): Construct and add target vector.
452 * amd64nbsd-nat.o: Include "target.h".
453 (_initialize_amd64nbsd_nat): Construct and add target vector.
454 * amd64obsd-nat.c: Include "target.h".
455 (_initialize_amd64obsd_nat): Construct and add target vector.
456 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
457 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
458 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
459 fbsd-nat.o.
460 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
461 Remove infptrace.o and inftarg.o. Add inf-child.o and
462 inf-ptrace.o.
463 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
464 (amd64obsd-nat.o): Update dependencies.
465
27acbe61
MK
4662004-09-25 Mark Kettenis <kettenis@gnu.org>
467
509a5e7d
MK
468 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
469 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
470 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
471 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
472 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
473
6e1e94ea
MK
474 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
475 Inline attach call.
476 (inf_ptrace_detach): Inline detach call.
477
8b9cf735
MK
478 * configure.in: Check for waddstr instead of mvwaddstr when
479 searching for curses library. Check for wborder.
480 * configure, config.in: Regenerate.
481 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
482 available.
483
27acbe61
MK
484 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
485
b96ec7ac
AC
4862004-09-24 Robert Picco <Robert.Picco@hp.com>
487
488 Committed by Andrew Cagney.
489 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
490 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
491 configuration.
492 (fetch_register_using_p): Implement 'p' packet. Based on code by
493 Fernando Nasser.
494 (remote_fetch_registers): Call fetch_register_using_p.
495 (init_all_packet_configs, show_remote_cmd)
496 (_initialize_remote): Add p-packet.
497
62ece330
MK
4982004-09-24 Mark Kettenis <kettenis@gnu.org>
499
500 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
501 instead of call_ptrace. Call wait directly instead of
502 ptrace_wait.
503 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
504 (inf_ptrace_wait): Inline ptrace_wait call.
505
00937274
PH
5062004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
507
508 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
509 rolled back instead.
510
3f2c7a45
PH
5112004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
512
513 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
514 the new argument order.
515
b6fcb393
CV
5162004-09-23 Corinna Vinschen <vinschen@redhat.com>
517
518 * MAINTAINERS: Remove "broken" from XStormy16 entry.
519 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
520 (struct gdbarch_tdep): Remove.
521 (struct xstormy16_frame_cache): New frame cache structure.
522 (xstormy16_register_byte, xstormy16_register_raw_size)
523 (xstormy16_reg_virtual_type, xstormy16_register_type)
524 (xstormy16_push_arguments, xstormy16_push_return_address)
525 (xstormy16_pop_frame, xstormy16_store_struct_return)
526 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
527 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
528 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
529 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
530 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
531 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
532 (xstormy16_use_struct_convention): Drop gcc_p parameter.
533 (xstormy16_extract_return_value, xstormy16_store_return_value):
534 Regcachify. Drop useless struct convention handling.
535 (xstormy16_register_type, xstormy16_return_value)
536 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
537 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
538 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
539 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
540 (xstormy16_unwind_sp, xstormy16_unwind_pc)
541 (xstormy16_unwind_dummy_id) : New functions.
542 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
543 of xstormy16_scan_prologue.
544 (xstormy16_frame_unwind): New frame_unwind structure.
545 (xstormy16_frame_base): New frame_base structure.
546 (xstormy16_gdbarch_init): Accomodate all of the above changes.
547 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
548
1285b746
MK
5492004-09-22 Mark Kettenis <kettenis@gnu.org>
550
551 * language.c (language_gdbarch_post_init): Fix off-by one error.
552
1c379e20
DJ
5532004-09-21 Daniel Jacobowitz <dan@debian.org>
554
555 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
556 (struct dwarf2_offset_and_type): New.
557 (set_die_type, reset_die_and_siblings_types, get_die_type)
558 (offset_and_type_hash, offset_and_type_eq): New functions.
559 (read_structure_type, read_enumeration_type, read_array_type)
560 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
561 (read_tag_reference_type, read_tag_const_type)
562 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
563 (read_typedef, read_base_type, read_subrange_type): Use
564 set_die_type.
565
ae038cb0
DJ
5662004-09-20 Daniel Jacobowitz <dan@debian.org>
567
568 * Makefile.in (dwarf2read.o): Update dependencies.
569 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
570 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
571 and read_in_chain.
572 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
573 mark, and has_form_ref_addr.
574 (struct dwarf2_per_cu_data): New.
575 (dwarf2_max_cache_age): New.
576 (dwarf2_build_psymtabs_hard): Free cached compilation units
577 after loading. Create and manage the list of compilation units.
578 Remove unnecessary NULL initialization. Fix indentation.
579 (psymtab_to_symtab_1): Initialize all of CU.
580 (dwarf2_read_abbrevs): Set has_form_ref_addr.
581 (find_partial_die): Use dwarf2_find_containing_comp_unit
582 and load_comp_unit.
583 (free_stack_comp_unit): Update comments. Clear the per-cu
584 pointer. Handle aging.
585 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
586 (age_cached_comp_units, free_one_cached_comp_unit)
587 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
588 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
589 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
590 (show_dwarf2_cmd): New.
591 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
592 and "maint show dwarf2 max-cache-age".
593 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
594 externs.
595 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
596 global.
597
987504bb
JJ
5982004-09-20 Jeff Johnston <jjohnstn@redhat.com>
599
600 * dwarf2read.c (typename_concat): Change prototype to accept obstack
601 and dwarf2_cu struct pointer as arguments. Change function to use
602 obstack if provided and use dwarf2_cu to determine language-specific
603 separator.
604 (partial_die_parent_scope): Change comment to include java. Use
605 new version of typename_concat instead of obconcat.
606 (partial_die_full_name): Use typename_concat.
607 (read_namespace): Ditto.
608 (read_enumeration_type): Use typename_concat instead of obconcat.
609 (new_symbol): Ditto.
610 (add_partial_symbol): Enhance tests for C++ to also test for Java.
611 (guess_structure_name): Ditto.
612 (read_subroutine_type): Ditto.
613 (read_structure_type): Ditto.
614 (is_vtable_name): Add Java support.
615 (determine_class_name): Switch to new typename_concat call.
616 (determine_prefix): Switch to new typename_concat call.
617 * jv-exp.y (FuncStart): New pattern.
618 (MethodInvocation): Add support for simple function calls. Change
619 warning message for other forms of inferior call currently not
620 supported.
621 * valarith.c (value_subscript): Treat an array with upper-bound
622 of -1 as unknown size.
623
d9c8471e
DJ
6242004-09-20 Daniel Jacobowitz <dan@debian.org>
625
626 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
627 (lookup_partial_symtab): Use symtab_to_fullname.
628
d73f140a
JB
6292004-09-19 Jim Blandy <jimb@redhat.com>
630
631 * minsyms.c (lookup_minimal_symbol): Doc fix.
632
adbef1f0
AC
6332004-09-20 Andrew Cagney <cagney@gnu.org>
634
635 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
636 CHILD_RESUME.
637 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
638 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
639 KILL_INFERIOR.
640 * infptrace.c: Update.
641
d092d1a2
DJ
6422004-09-19 Daniel Jacobowitz <dan@debian.org>
643
644 * symtab.c (output_source_filename): Mark first argument as const.
645 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
646 for "info sources" output.
647
86d9e1d7
MK
6482004-09-20 Mark Kettenis <kettenis@gnu.org>
649
650 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
651 <machine/vmparam.h>.
652 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
653 (register_u_addr): Remove prototype.
654
9a6c8ef4
MK
6552004-09-19 Mark Kettenis <kettenis@gnu.org>
656
9692934b
MK
657 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
658 (i386bsd_fetch_inferior_registers): Rename from
659 fetch_inferior_registers. Make static.
660 (i386bsd_store_inferior_registers): Rename from
661 store_inferior_registers. Make static.
662 (i386bsd_target): New function.
663 * i386bsd-nat.h: New file.
664 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
665 "i386bsd-nat.h".
666 (i386fbsd_resume): Rename from child_resume. Make static.
667 (_initialize_i386fbsd_nat): Construct and add target vector.
668 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
669 (_initialize_i386nbsd_nat): Construct and add target vector.
670 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
671 Remove defines.
672 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
673 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
674 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
675 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
676 (LOADLIBES): New variable.
677 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
678 inf-ptrace.o. Remove inftarg.o.
679 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
680 inf-ptrace.o. Remove inftarg.o.
681 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
682 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
683 (LOADLIBES): New variable.
684 * Makefile.in (i386bsd_nat_h): New variable.
685 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
686 dependencies.
687
3510d1f2
MK
688 * sparc64nbsd-tdep.c: Include "objfiles.h".
689 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
690 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
691 svr4_lp64_fetch_link_map_offsets.
692 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
693 "nbsd-tdep.h".
694 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
695 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
696 svr4_lp64_fetch_link_map_offsets.
697 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
698 dependencies.
699
578c1c03
MK
700 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
701 * fbsd-nat.h: New file.
702 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
703 (fbsd_nat_h): New variable.
704 (fbsd-nat.o): New dependency.
705
7a7b73b7
MK
706 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
707 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
708
9a6c8ef4
MK
709 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
710 comment.
711
72d5681a
PH
7122004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
713
714 * ada-exp.y (type_int): New function to add layer of abstraction
715 around references to expression types.
716 (type_long): Ditto.
717 (type_long_long): Ditto.
718 (type_float): Ditto.
719 (type_double): Ditto.
720 (type_long_double): Ditto.
721 (type_char): Ditto.
722 (type_system_address): Ditto.
723 (simple_exp): Use type_* functions in place of builtin_*
724 variables.
725 (exp): Ditto.
726 (write_var_from_name): Ditto.
727 (write_object_renaming): Ditto.
728 * ada-lang.c (ada_create_fundamental_type): Remove redundant
729 declaration.
730 (build_ada_types): Remove, replacing with...
731 (ada_language_arch_info): New function to initialize primitive
732 type vector in language_arch_info.
733 (ada_array_length): Remove use of builtin_type_ada_int.
734 (value_pos_atr): Ditto.
735 (ada_evaluate_subexp): Ditto.
736 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
737 builtin_type_ada_long_long, builtin_type_ada_char,
738 builtin_type_ada_float, builtin_type_ada_double,
739 builtin_type_ada_long_double, builtin_type_ada_natural,
740 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
741 (ada_builtin_types): Remove.
742 (ada_language_defn): Remove entries for la_builtin_type_vector and
743 string_char_type and use ada_language_arch_info.
744 (_initialize_ada_language): Do type-vector initialization along
745 the lines of c-lang.c.
746 (ada_create_fundamental_type): Break up line.
747 (ada_dump_symtab): Remove unused function.
748 (enum ada_primitive_types): Define.
749 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
750 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
751 builtin_type_ada_float, builtin_type_ada_double,
752 builtin_type_ada_long_double, builtin_type_ada_natural,
753 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
754 * ada-lex.l: Use type_* functions in place of builtin_* variables.
755 (processInt): Ditto.
756 (processReal): Ditto.
757 (name_lookup): Ditto.
758 * ada-typeprint.c (print_range): Use builtin_type_int, not
759 builtin_type_ada_int.
760
4f0be353
MK
7612004-09-18 Mark Kettenis <kettenis@gnu.org>
762
30b0e2d8
MK
763 * i386-tdep.c (i386_register_name): Rename regno to regnum.
764
4f0be353
MK
765 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
766 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
767 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
768 * configure.in: Improve checks for curses library by checking for
769 mvwaddstr instead of initscr. Drop HP curses in favour of
770 standard curses on HP-UX.
771 * configure: Regenerated.
772
72d5681a 7732004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
6c038f32
PH
774
775 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
776 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
777 Minor formatting changes.
778 (empty_array): Slight rewrite for formatting.
779 (emit_char,parse,ada_language_defn,build_ada_types,
780 ada_is_exception_sym, _initialize_ada_language): Move
781 definitions around.
782 (ada_dump_symtab): Remove unused definition.
783 (ada_maybe_exception_partial_symbol): Remove unused definition.
784
1c8c7407
AC
7852004-09-16 Andrew Cagney <cagney@gnu.org>
786
7681f339
AC
787 * inf-child.c: Include "gdb_string.h".
788 (inf_child_core_file_to_sym_file): Delete.
789 (inf_child_target): Set to_fetch_registers and to_store_registers.
790 * inf-ptrace.c: Include "gdb_string.h".
791 * Makefile.in: Update all dependencies.
792
1c8c7407
AC
793 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
794 problem.
795
65596487
JB
7962004-09-14 Joel Brobecker <brobecker@gnat.com>
797
798 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
799 call to heuristic_proc_desc. Remove code that became redundant
800 as a consequence.
801 (read_next_frame_reg): Remove special case for SP_REGNUM.
802 (set_reg_offset): Fix small typo.
803 (reset_saved_regs): New procedure.
804 (mips32_heuristic_proc_desc): No longer compute a fake
805 procedure descriptor. Compute the full frame cache instead.
806 Some minor comment reformatting.
807
95575b2e
AC
8082004-09-14 Andrew Cagney <cagney@gnu.org>
809
f200c492
AC
810 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
811 maintainer.
812
95575b2e
AC
813 * thread-db.c (thread_db_new_objfile): Assume that there is a
814 child process.
815
69657671
JB
8162004-09-13 Jim Blandy <jimb@redhat.com>
817
818 * valops.c (value_assign): Move 'buffer' to the enclosing block,
819 so that its storage isn't referenced after its lifetime ends.
820
6c4182dd
JB
821 * valops.c (value_assign): 'use_buffer' is initialized to zero,
822 and never assigned to. Delete it, and the 'if (use_buffer)'
823 clauses. Delete 'raw_buffer', since it is now unused.
824
ee31a58d
AC
8252004-09-13 Andrew Cagney <cagney@gnu.org>
826
2c0fc042
AC
827 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
828 * configure: Re-generate.
829 * nlm/Makefile.in (TAGS): Update.
830 * Makefile.in (TAGS): Update.
831 * config/vax/nbsd.mt (TM_FILE): Update.
832 * config/sparc/vxworks.mt (TM_FILE): Update.
833 * config/sparc/sol2.mt (TM_FILE): Update.
834 * config/sparc/sol2-64.mt (TM_FILE): Update.
835 * config/sparc/obsd64.mt (TM_FILE): Update.
836 * config/sparc/obsd.mt (TM_FILE): Update.
837 * config/sparc/nbsd64.mt (TM_FILE): Update.
838 * config/sparc/nbsd.mt (TM_FILE): Update.
839 * config/sparc/linux64.mt (TM_FILE): Update.
840 * config/sparc/linux.mt (TM_FILE): Update.
841 * config/sparc/fbsd.mt (TM_FILE): Update.
842 * config/sh/wince.mt (TM_FILE): Update.
843 * config/sh/nbsd.mt (TM_FILE): Update.
844 * config/sh/linux.mt (TM_FILE): Update.
845 * config/sh/embed.mt (TM_FILE): Update.
846 * config/s390/s390.mt (TM_FILE): Update.
847 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
848 * config/rs6000/rs6000.mt (TM_FILE): Update.
849 * config/rs6000/aix4.mt (TM_FILE): Update.
850 * config/powerpc/vxworks.mt (TM_FILE): Update.
851 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
852 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
853 * config/powerpc/obsd.mt (TM_FILE): Update.
854 * config/powerpc/nbsd.mt (TM_FILE): Update.
855 * config/powerpc/linux.mt (TM_FILE): Update.
856 * config/powerpc/aix.mt (TM_FILE): Update.
857 * config/pa/obsd.mt (TM_FILE): Update.
858 * config/pa/linux.mt (TM_FILE): Update.
859 * config/pa/hppahpux.mt (TM_FILE): Update.
860 * config/pa/hppa64.mt (TM_FILE): Update.
861 * config/pa/hppa.mt (TM_FILE): Update.
862 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
863 * config/mips/wince.mt (TM_FILE): Update.
864 * config/mips/vxmips.mt (TM_FILE): Update.
865 * config/mips/nbsd.mt (TM_FILE): Update.
866 * config/mips/linux.mt (TM_FILE): Update.
867 * config/mips/irix6.mt (TM_FILE): Update.
868 * config/mips/irix5.mt (TM_FILE): Update.
869 * config/mips/embed.mt (TM_FILE): Update.
870 * config/m68k/vxworks68.mt (TM_FILE): Update.
871 * config/m68k/st2000.mt (TM_FILE): Update.
872 * config/m68k/os68k.mt (TM_FILE): Update.
873 * config/m68k/obsd.mt (TM_FILE): Update.
874 * config/m68k/nbsd.mt (TM_FILE): Update.
875 * config/m68k/monitor.mt (TM_FILE): Update.
876 * config/m68k/linux.mt (TM_FILE): Update.
877 * config/m68k/cisco.mt (TM_FILE): Update.
878 * config/ia64/linux.mt (TM_FILE): Update.
879 * config/ia64/aix.mt (TM_FILE): Update.
880 * config/ia64/ia64.mt (TM_FILE): Update.
881 * config/i386/vxworks.mt (TM_FILE): Update.
882 * config/i386/obsd64.mt (TM_FILE): Update.
883 * config/i386/obsd.mt (TM_FILE): Update.
884 * config/i386/nto.mt (TM_FILE): Update.
885 * config/i386/nbsd64.mt (TM_FILE): Update.
886 * config/i386/nbsd.mt (TM_FILE): Update.
887 * config/i386/linux64.mt (TM_FILE): Update.
888 * config/i386/linux.mt (TM_FILE): Update.
889 * config/i386/i386sol2.mt (TM_FILE): Update.
890 * config/i386/i386lynx.mt (TM_FILE): Update.
891 * config/i386/fbsd64.mt (TM_FILE): Update.
892 * config/i386/fbsd.mt (TM_FILE): Update.
893 * config/i386/cygwin.mt (TM_FILE): Update.
894 * config/h8300/h8300.mt (TM_FILE): Update.
895 * config/frv/frv.mt (TM_FILE): Update.
896 * config/cris/cris.mt (TM_FILE): Update.
897 * config/arm/wince.mt (TM_FILE): Update.
898 * config/arm/nbsd.mt (TM_FILE): Update.
899 * config/arm/linux.mt (TM_FILE): Update.
900 * config/arm/embed.mt (TM_FILE): Update.
901 * config/alpha/nbsd.mt (TM_FILE): Update.
902 * config/alpha/fbsd.mt (TM_FILE): Update.
903 * config/alpha/alpha.mt (TM_FILE): Update.
904 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
905 * config/alpha/alpha-linux.mt (TM_FILE): Update.
906
362646f5
AC
907 Eliminate event_loop_p, always has the value 1.
908 * defs.h (event_loop_p): Delete macro.
909 * breakpoint.c (until_break_command): Simplify.
910 * utils.c (prompt_for_continue): Simplify.
911 * tracepoint.c (read_actions): Simplify.
912 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
913 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
914 (set_prompt, init_main): Simplify.
915 (init_signals, disconnect): Delete, unused.
916 * remote.c (remote_async_resume)
917 (extended_remote_async_create_inferior): Simplify.
918 * mi/mi-interp.c (mi_input): Delete, unused.
919 (mi_interpreter_resume, mi_command_loop): Simplify.
920 * interps.c (current_interp_command_loop): Simplify.
921 * infrun.c (proceed): Simplify.
922 * infcmd.c (run_command, continue_command, step_1, jump_command)
923 (until_command, advance_command, finish_command)
924 (interrupt_target_command): Simplify.
925 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
926
ee31a58d
AC
927 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
928 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
929 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
930 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
931 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
932 * mips-tdep.c (mips_dump_tdep): Do not print same.
933
b7ffc4a8
AC
9342004-09-12 Andrew Cagney <cagney@gnu.org>
935
2bfb72ee
AC
936 * valprint.c (print_longest): Use fputs_filtered. Make "val"
937 const.
938 * Makefile.in (valprint.o): Delete explict rule.
939
4f17c3c1
AC
940 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
941 reported by Dave Anderson.
942
f810308b
AC
943 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
944
b7ffc4a8
AC
945 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
946
28b41c52
AC
9472004-09-12 Salvador E. Tropea <set@users.sf.net>
948 Andrew Cagney <cagney@gnu.org>
949
950 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
951 (mi_cmd_data_list_register_values)
952 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
953 the register number computation.
954
5bf970f9
AC
9552004-09-12 Andrew Cagney <cagney@gnu.org>
956
957 * ppcnbsd-nat.c: Include "inf-ptrace.h".
958 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
959 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
960 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
961 target.
962 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
963 inf-ptrace.o and inf-child.o.
964 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
965 * Makefile.in: Update dependencies.
966
0759e0bf
AC
9672004-09-11 Andrew Cagney <cagney@gnu.org>
968
969 * language.c (hex_string, hex_string_custom): Move from here ...
970 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
971 (CELLSIZE): Increase to 50.
972 * language.h (hex_string, hex_string_custom): Move from here ...
973 * defs.h: ... to here.
974 * Makefile.in: Update all dependencies.
975
bb599908
PH
9762004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
977
978 * language.c (local_hex_format_custom): Remove.
979 (local_hex_string): Rename to hex_string, use C format, and move to
980 utils.c
981 (local_hex_string_custom): Rename to hex_string_custom and change
982 interface. Now uses C format. Move to utils.c
983 (local_octal_format_custom): Remove.
984 (local_decimal_format_custom): Remove.
985 (unknown_language_defn): Remove language-specific number
986 formatting entries.
987 (auto_language_defn): Ditto.
988 (local_language_defn): Ditto.
989 * language.h (struct language_format_info): Delete declaration.
990 (struct language_defn): Remove language_format_info fields
991 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
992 (local_binary_format): Remove macro.
993 (local_binary_format_prefix): Remove macro.
994 (local_binary_format_specifier): Remove macro.
995 (local_binary_format_suffix): Remove macro.
996 (local_octal_format): Remove macro.
997 (local_octal_format_prefix): Remove macro.
998 (local_octal_format_specifier): Remove macro.
999 (local_octal_format_suffix): Remove macro.
1000 (local_decimal_format): Remove macro.
1001 (local_decimal_format_prefix): Remove macro.
1002 (local_decimal_format_specifier): Remove macro.
1003 (local_decimal_format_suffix): Remove macro.
1004 (local_hex_format): Remove macro.
1005 (local_hex_format_prefix): Remove macro.
1006 (local_hex_format_specifier): Remove macro.
1007 (local_hex_format_suffix): Remove macro.
1008 (local_decimal_format_custom): Remove.
1009 (local_octal_format_custom): Remove.
1010 (local_hex_format_custom): Remove.
1011 (local_hex_string): Rename to hex_string and move to defs.h.
1012 (local_hex_string_custom): Rename to hex_string_custom, change
1013 interface, and move to defs.h.
1014 * utils.c: (int_string): New function.
1015 (hex_string): New function (from language.c).
1016 (hex_string_custom): New function (from language.c).
1017 (octal2str): New function.
1018 (decimal2str): Add width parameter.
1019 (paddr_u): Use new decimal2str interface.
1020 (paddr_d): Ditto.
1021 * defs.h (hex_string): Declare.
1022 (hex_string_custom): Declare.
1023 (int_string): Declare.
1024 * printcmd.c (print_scalar_formatted): Remove localized binary
1025 formatting.
1026 * valprint.c (print_longest): Use int_string.
1027 (print_floating): Use C hex format.
1028 (print_hex_chars): Ditto.
1029 (print_binary_chars): Remove language-specific formatting.
1030 (print_octal_chars): Use C octal format.
1031 (print_decimal_chars): Delocalize format.
1032 (print_decimal): Remove.
1033 * ada-lang.c (ada_language_defn): Remove language-specific number
1034 formatting entries.
1035 * p-lang.c (pascal_language_defn): Ditto.
1036 * c-lang.c (c_language_defn): Ditto.
1037 (cplus_language_defn): Ditto.
1038 (asm_language_defn): Ditto.
1039 (minimal_language_defn): Ditto.
1040 * f-lang.c (f_language_defn): Ditto.
1041 * jv-lang.c (java_language_defn): Ditto.
1042 * m2-lang.c (m2_language_defn): Ditto.
1043 * scm-lang.c (scm_language_defn): Ditto.
1044 * objc-lang.c (objc_language_defn): Ditto.
1045 * memattr.c (mem_info_command): Use renamed hex_string_custom with
1046 new interface.
1047 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
1048 * ui-out.c (ui_out_field_core_addr): Ditto.
1049 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
1050 * exec.c (print_section_info): Ditto.
1051 * i387-tdep.c (print_i387_status_word): Ditto.
1052 (print_i387_control_word): Ditto.
1053 (i387_print_float_info): Ditto.
1054 * maint.c (maint_print_section_info): Ditto.
1055 * solib.c (info_sharedlibrary_command): Ditto.
1056 * somsolib.c (som_sharedlibrary_info_command): Ditto.
1057 * symtab.c (print_msymbol_info): Ditto.
1058 * tracepoint.c (tracepoints_info): Ditto.
1059 * solib-frv.c (lm_base): Ditto.
1060 (frv_current_sos): Ditto.
1061 (enable_break2): Ditto.
1062 (enable_break): Ditto.
1063 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
1064 (process_one_symbol): Ditto.
1065 * infcmd.c (program_info): Ditto.
1066 * mdebugread.c (parse_partial_symbols): Ditto.
1067 * symfile.c (add_symbol_file_command): Ditto.
1068 * cli/cli-cmds.c (edit_command): Ditto.
1069 (list_command): Ditto.
1070 * infcall.c (call_function_by_hand): Ditto.
1071 * remote-vx.c (vx_run_files_info): Ditto.
1072 (vx_wait): Ditto.
1073 (vx_attach): Ditto.
1074 (vx_detach): Ditto.
1075 (vx_kill): Ditto.
1076 * aix-thread.c (pdc_symbol_addrs): Ditto.
1077 (pdc_read_regs): Ditto.
1078 (pdc_write_regs): Ditto.
1079 (pdc_read_data): Ditto.
1080 (pdc_write_data): Ditto.
1081 * d10v-tdep.c (display_trace): Ditto.
1082 * rs6000-nat.c (find_toc_address): Ditto.
1083 * aix-thread.c: Don't include language.h.
1084 * buildsym.c: Ditto.
1085 * dbxread.c: Ditto.
1086 * mdebugread.c: Ditto.
1087 * rs6000-nat.c: Ditto.
1088 * buildsym.c (make_blockvector): Use renamed hex_string.
1089
33f2d567
JM
10902004-09-10 Jason Molenda (jmolenda@apple.com)
1091
1092 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
1093 chars after 'if' or 'while' commands in user-defined commands.
1094
7b90c3f9
JB
10952004-09-08 Jim Blandy <jimb@redhat.com>
1096
1097 Fix bug reported and analyzed by Olivier Crete:
1098 * symfile.c (copy_section_addr_info): New function.
1099 (symbol_file_add_with_addrs_or_offsets): Use it to save the
1100 original set of address arguments, instead of handwritten code
1101 that uses one length to allocate and a different length to
1102 initialize. Use make_cleanup_free_section_addr_info.
1103 * symfile.h (copy_section_addr_info): New declaration.
1104 * utils.c: #include "symfile.h".
1105 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
1106 New functions.
1107 * defs.h (make_cleanup_free_section_addr_info): New declaration.
1108 * Makefile.in (utils.o): Update dependencies.
1109
b26a6851
AC
11102004-09-08 Andrew Cagney <cagney@gnu.org>
1111
1112 * thread-db.c (keep_thread_db): Delete.
1113 (thread_db_new_objfile, thread_db_create_inferior)
1114 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
1115
be24b061
MK
11162004-09-08 Mark Kettenis <kettenis@gnu.org>
1117
f6792ef4
MK
1118 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
1119 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
1120 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
1121 (i386_frameless_signal_p): Remove prototype.
1122 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
1123 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
1124 I386_SSE_NUM_REGS.
1125 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
1126 instead of FP0_REGNUM.
1127 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
1128 of FP0_REGNUM and FPC_REGNUM.
1129
eeefdaa7
MK
1130 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
1131 (sunos_solib_create_inferior_hook): Don't call
1132 sunos_relocate_main_executable.
1133
be24b061
MK
1134 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
1135 solib_svr4_fetch_link_map_offsets to
1136 svr4_ilp32_fetch_link_map_offsets.
1137 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
1138 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
1139 svr4_ilp32_fetch_link_map_offsets.
1140 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
1141
7c679d16
JB
11422004-09-07 Jim Blandy <jimb@redhat.com>
1143
1144 * frame.h (frame_register): Doc fix.
1145
1f04aa62
AC
11462004-09-07 Andrew Cagney <cagney@gnu.org>
1147
1148 * vx-share/wait.h: Delete #ifdef USG.
1149 * utils.c (request_quit): Ditto.
1150 * tui/tui.c (tui_reset): Ditto.
1151 * remote.c: Ditto.
1152 * remote-sds.c: Ditto.
1153 * remote-rdi.c: Ditto.
1154 * mdebugread.c: Ditto.
1155 * m68klinux-nat.c: Ditto.
1156 * infttrace.c: Ditto.
1157 * infptrace.c: Ditto.
1158 * i386v-nat.c: Ditto.
1159 * exec.c: Ditto.
1160 * dbxread.c: Ditto.
1161 * core-aout.c: Ditto.
1162
90edbfbc
JB
11632004-09-05 Joel Brobecker <brobecker@gnat.com>
1164
1165 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
1166 heuristic_proc_desc.
1167 (mips_insn32_frame_cache): Likewise.
1168
01f4bf2b
JB
11692004-09-04 Joel Brobecker <brobecker@gnat.com>
1170
1171 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
1172 left behind by error.
1173
8511a048
JB
11742004-09-04 Joel Brobecker <brobecker@gnat.com>
1175
1176 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
1177 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
1178
649dfe9f
JB
11792004-09-04 Joel Brobecker <brobecker@gnat.com>
1180
1181 * config/rs6000/xm-aix4.h: Remove this file.
1182 * config/rs6000/aix4.mh (XM_FILE): Delete.
1183
6e50f889
JB
11842004-09-04 Joel Brobecker <brobecker@gnat.com>
1185
1186 * config/rs6000/xm-rs6000.h: Remove this file.
1187 * config/rs6000/rs6000.mh (XM_FILE): Remove.
1188
b8c4aece
AC
11892004-09-03 Andrew Cagney <cagney@gnu.org>
1190
fb603883
AC
1191 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
1192 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
1193 only use.
1194
c9343fd1
AC
1195 * mips-tdep.c (temp_saved_regs): Delete.
1196 (set_reg_offset): Replace saved_regs parameter with this_cache.
1197 (heuristic_proc_desc, mips16_heuristic_proc_desc)
1198 (mips32_heuristic_proc_desc): Add this_cache parameter.
1199 (mips_insn32_frame_cache, mips_insn16_frame_cache)
1200 (after_prologue): Pass a NULL this_cache.
1201
9733cfe1
AC
1202 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
1203 non-kernel trap prologues.
1204
0d5febcc
AC
1205 * mips-tdep.c (find_proc_desc): Delete function.
1206 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
1207 simplify.
1208 (mips_insn16_frame_cache): Replace find_proc_desc with code from
1209 mips_insn32_frame_cache.
1210
9733cfe1 1211 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
283be873
AC
1212 Simplify as NEXT_FRAME is NULL.
1213 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
1214
177f84a3
AC
1215 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
1216 local variable.
1217 (mips_skip_prologue): Update.
1218
465f7520
AC
1219 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
1220 "cur_frame" parameter.
177f84a3
AC
1221 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
1222 (mips_insn32_frame_cache, find_proc_desc): Update
465f7520 1223
e38b8658
AC
1224 * config/vax/nm-obsd.h: Delete file.
1225 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1226 * config/vax/nm-nbsd.h: Delete file.
1227 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
1228 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1229 * config/sh/nm-nbsd.h: Delete file.
1230 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1231 * config/rs6000/nm-rs6000ly.h: Delete file.
1232 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
1233 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1234 * config/powerpc/nm-obsd.h: Delete file.
1235 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1236 * config/powerpc/nm-nbsd.h: Delete file.
1237 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1238 * config/pa/nm-obsd.h: Delete file.
1239 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1240 * config/mips/nm-nbsd.h: Delete file.
1241 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1242 * config/m88k/nm-obsd.h: Delete file.
1243 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1244 * config/m68k/nm-nbsd.h: Delete file.
1245 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
1246 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1247 * config/i386/nm-nbsd.h: Delete file.
1248 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
1249 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1250 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1251 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1252 * config/i386/nm-i386lynx.h: Delete file.
1253 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1254 * config/arm/nm-nbsd.h: Delete file.
1255 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
1256 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1257
be1ed680
AC
1258 * config/i386/tm-fbsd.h: Delete file.
1259 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
1260 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
1261
4b392b26
AC
1262 * config/rs6000/tm-rs6000-aix4.h: Delete file.
1263 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
1264 * config/rs6000/aix4.mt (TM_FILE): Set to
1265 config/rs6000/tm-rs6000.h.
1266 * config/powerpc/tm-ppc-aix.h: Delete file.
1267 * config/powerpc/aix.mt (TM_FILE): Set to
1268 config/rs6000/tm-rs6000.h.
1269 * config/m68k/tm-linux.h: Delete file.
1270 * config/m68k/linux.mt (TM_FILE): Set to solib.h
1271 * config/i386/tm-linux64.h: Delete file.
1272 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
1273 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
1274
f3219c75
AC
1275 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1276 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
1277 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
1278 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1279 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
1280 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
1281 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
1282 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
1283 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
1284
b8c4aece
AC
1285 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
1286 gdb_host_cpu.
1287
8ac2e020
JB
12882004-09-02 Joel Brobecker <brobecker@gnat.com>
1289
1290 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
1291 Minor reformatting. Some code factoring.
1292
c185a355
AC
12932004-09-02 Andrew Cagney <cagney@gnu.org>
1294
63f22f0d
AC
1295 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
1296 * config/vax/tm-nbsd.h: Delete file.
1297 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1298 * config/sparc/tm-vxworks.h: Delete file.
1299 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
1300 * config/sparc/tm-nbsd.h: Delete file.
1301 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
1302 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
1303 * config/sparc/tm-linux.h: Delete file.
1304 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
1305 * config/s390/tm-linux.h: Delete file.
1306 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
1307 * config/pa/tm-bsd.h: Delete file.
1308 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
1309 * config/m68k/tm-obsd.h: Delete file.
1310 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
1311 * config/m68k/tm-nbsd.h: Delete file.
1312 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1313 * config/i386/tm-vxworks.h: Delete file.
1314 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
1315 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
1316 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
1317 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
1318 * config/i386/tm-nbsd.h: Delete file.
1319 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
1320 * config/i386/tm-i386lynx.h: Delete file.
1321 * config/cris/cris.mt (TM_FILE): Set to solib.h.
1322 * config/cris/tm-cris.h: Delete file.
1323
0f475e27
AC
1324 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
1325 * configure: Re-generate.
1326 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
1327 * config/arm/tm-nbsd.h: Delete file.
1328
458ed000
AC
1329 * config/powerpc/tm-ppcle-sim.h: Delete.
1330 * config/powerpc/tm-ppcle-eabi.h: Delete.
1331 * config/powerpc/tm-nbsd.h: Delete.
1332 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
1333 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
1334 tm-ppcle-eabi.h.
1335
f14375f3
AC
1336 * config/i386/nto.mh (NAT_FILE): Delete.
1337 * config/i386/nm-nto.h: Delete.
1338
c34d127c
AC
1339 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
1340 * config/m68k/tm-os68k.h: Ditto.
1341 * config/m68k/tm-monitor.h: Ditto.
1342 * config/m68k/tm-cisco.h: Ditto.
1343 * config/m68k/st2000.mt (TM_FILE): Delete.
1344 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
1345 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
1346 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
1347 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
1348
f7f0fe03
AC
1349 * config/m68k/tm-st2000.h: Delete.
1350 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
1351 * config/sparc/fbsd.mt (TM_FILE): Delete.
1352 * config/sparc/tm-fbsd.h: Delete.
1353
a2558533
AC
1354 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
1355 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
1356 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
1357
b78960be
AC
1358 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
1359 GDB_TM_FILE and GDB_XM_FILE.
1360 * gdbarch.c: Re-generate.
1361 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
1362 quotes in macro definition.
1363 * configure.in: Re-generate.
1364
4d60522e
AC
1365 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
1366 validating architecture methods.
1367 * gdbarch.c: Re-generate.
1368
5010d38b
AC
1369 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
1370 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
1371 GDB_MULTI_ARCH_PARTIAL.
1372 * gdbarch.h: Re-generate.
1373
c185a355
AC
1374 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
1375 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
1376 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
1377 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
1378 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
1379 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
1380 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
1381 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
1382 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
1383 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
1384 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
1385 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
1386
14aaa6ab
AC
13872004-09-01 Andrew Cagney <cagney@gnu.org>
1388
1389 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
1390 and main_func_highpc.
1391 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
1392 * objfiles.c (init_entry_point_info, objfile_relocate): Update
1393 * nlmread.c (nlm_symfile_read): Update.
1394
a343eb3c
JB
13952004-09-01 Joel Brobecker <brobecker@gnat.com>
1396
1397 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
1398 (mips_insn32_frame_cache): Inline call to find_proc_desc.
1399 (find_proc_desc): Remove dead code.
1400
4fbbbd07
JB
14012004-09-01 Joel Brobecker <brobecker@gnat.com>
1402
1403 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
1404
84acb35a
JJ
14052004-09-01 Jeff Johnston <jjohnstn@redhat.com>
1406
1407 * observer.sh: Add struct so_list declaration.
1408 * Makefile.in: Add dependencies on observer.h for solib.c and
1409 breakpoint.c.
1410 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
1411 function.
1412 (_initialize_breakpoint): Register
1413 disable_breakpoints_in_unloaded_shlib as an observer of the
1414 "solib unloaded" observation event.
1415 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
1416 call decode_line_1 so unfound breakpoint errors are silent.
1417 * solib.c (update_solib_list): When a solib is discovered to have
1418 been unloaded by the program, notify all observers of the
1419 "solib unloaded" observation event.
1420
c8cd9f6c
AC
14212004-09-01 Andrew Cagney <cagney@gnu.org>
1422
1423 * frame.c: Include "objfiles.h".
1424 (inside_main_func): New function.
1425 (get_prev_frame): Use new inside_main_func.
1426 * Makefile.in (frame.o): Update dependencies.
1427 * defs.h (inside_main_func): Delete declaration.
1428 * blockframe.c (inside_main_func): Delete function.
1429
1168df01
JB
14302004-08-31 Jim Blandy <jimb@redhat.com>
1431
1432 * dwarf2read.c (is_vtable_name): New function, based on logic from
1433 read_structure_type, but passing the correct length to strncmp,
1434 and using 'sizeof' instead of 'strlen'.
1435 (read_structure_type): Call it.
1436
f14f9744
JB
14372004-08-31 Joel Brobecker <brobecker@gnat.com>
1438
1439 * config/powerpc/aix.mh: Add comment.
1440
386d4518
PG
14412004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
1442
1443 * MAINTAINERS: Add self to Write-After-Approval.
1444
7d97d5e2
MI
14452004-08-30 Manoj Iyer <manjo@austin.ibm.com>
1446
1447 * MAINTAINERS: Add self to Write-After-Approval.
1448
68f53502
AC
14492004-08-30 Andrew Cagney <cagney@gnu.org>
1450
1451 Fix PR breakpoints/1757.
1452 * infrun.c (struct execution_control_state): Replace
1453 remove_breakpoints_on_following_step with
1454 step_after_step_resume_breakpoint.
1455 (init_execution_control_state): Update.
1456 (handle_inferior_event): For signals, when stepping off a
1457 breakpoint, set step_after_step_resume_breakpoint. When
1458 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
1459 (keep_going): Delete code handling
1460 remove_breakpoints_on_following_step.
1461
7ca2d3a3
DL
14622004-08-29 David Lecomber <david@streamline-computing.com>
1463
1464 Fix PR gdb/648
1465 * language.h (enum array_ordering): New enum.
1466 * language.h (struct language_defn): New la_array_ordering
1467 attribute.
1468 * language.c (unknown_language_defn, auto_language_defn)
1469 (local_language_defn): Ditto.
1470 * ada-lang.c (ada_language_defn): Ditto.
1471 * c-lang.c (c_language_defn, cplus_language_defn)
1472 (asm_language_defn, minimal_language_defn): Ditto.
1473 * f-lang.c (f_language_defn): Ditto.
1474 * jv-lang.c (java_language_defn): Ditto.
1475 * m2-lang.c (f_language_defn): Ditto.
1476 * objc-lang.c (objc_language_defn): Ditto.
1477 * p-lang.c (pascal_language_defn): Ditto.
1478 * scm-lang.c (scm_language_defn): Ditto.
1479 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
1480 oriented large to small in type structure.
1481 * dwarf2read.c (read_array_order): New function.
1482 (read_array_type): Use read_array_order to check row/column
1483 major ordering.
1484
e354df01
NW
14852004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
1486
1487 * target.c (target_resize_to_sections): Check
1488 current_target.to_sections for an old value when updating.
1489
9185ddce
JB
14902004-08-27 Joel Brobecker <brobecker@gnat.com>
1491
1492 * procfs.c (dbx_link_bpt_addr): New static global variable.
1493 (dbx_link_shadow_contents): New static global variable.
1494 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
1495 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
1496 if we just hit it.
1497 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
1498 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
1499 from run to run.
1500 (procfs_create_inferior): Remove syssgi syscall-exit notifications
1501 after the inferior has been forked.
1502 (remove_dbx_link_breakpoint): New function.
1503 (dbx_link_addr): New function.
1504 (insert_dbx_link_bpt_in_file): New function.
1505 (insert_dbx_link_bpt_in_region): New function.
1506 (insert_dbx_link_breakpoint): New function.
1507 (proc_trace_syscalls_1): New function, extracted from
1508 proc_trace_syscalls.
1509 (proc_trace_syscalls): Replace extract code by call to
1510 proc_trace_syscalls_1.
1511 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
1512 is no longer valid.
1513
e6742ace
JB
15142004-08-25 Jim Blandy <jimb@redhat.com>
1515
1516 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
1517
8fb3e588
AC
15182004-08-25 Andrew Cagney <cagney@gnu.org>
1519
629a41ee
AC
1520 * infrun.c (struct execution_control_state): Delete field
1521 "stepping_through_sigtramp".
1522 (init_execution_control_state): Do not set same.
1523 (context_switch): Do not pass same to save_infrun_state and
1524 load_infrun_state.
1525 * gdbthread.h (struct thread_info): Delete field
1526 stepping_through_sigtramp.
1527 (save_infrun_state, load_infrun_state): Delete parameter
1528 stepping_through_sigtramp.
1529 * thread.c (load_infrun_state, save_infrun_state): Update.
1530
8fb3e588
AC
1531 * infrun.c: Re-indent. Move expression operators to the beginning
1532 of the line. Remove long disabled #if 0 code.
1533
49c54768
AC
15342004-08-24 Andrew Cagney <cagney@gnu.org>
1535
1536 * doublest.h (floatformat_ieee_quad): Rename
1537 floatformat_ia64_quad.
1538 * doublest.c (floatformat_ieee_quad): Rename
1539 floatformat_ia64_quad.
1540 (_initialize_doublest): Update.
1541
5ca2e327
JB
15422004-08-24 Jim Blandy <jimb@redhat.com>
1543
87808bd6
JB
1544 * dwarf2expr.h (struct dwarf_expr_context): New members
1545 'num_pieces' and 'pieces', for returning the result of an
1546 expression that uses DW_OP_piece.
1547 (struct dwarf_expr_piece): New struct type.
1548 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
1549 pieces.
1550 (free_dwarf_expr_context): Free pieces, if any.
1551 (add_piece): New function.
1552 (execute_stack_op): Implement DW_OP_piece.
1553 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
1554 expression is a list of pieces, print an error message.
1555 (dwarf2_loc_desc_needs_frame): If the expression yields
1556 pieces, and any piece is in a register, then we need a frame.
1557
5ca2e327
JB
1558 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
1559 the stack until we've decided what sort of result the evaluation
1560 has produced. Use separate variables, with more specific names.
1561
2afeb6b8
RE
15622004-08-23 Richard Earnshaw <rearnsha@arm.com>
1563
1564 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
1565 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
1566 (arm_netbsd_init_abi_common): Register them.
1567
5885ab49
MK
15682004-08-22 Mark Kettenis <kettenis@gnu.org>
1569
fda820a6
MK
1570 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
1571
1c5bf419
MK
1572 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
1573 safe_frame_unwind_memory instead of target_read_memory.
1574
8cbba7c8
MK
1575 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
1576 Reorder includes.
1577 (fetch_register, store_register): Remove prototypes.
1578 (child_resume): Reorganize code and comments such that it is
1579 grouped a bit more logically.
1580 (attach): Explicitly compare errno against 0.
1581 (detach): Likewise. Use perror_with_name instead of
1582 print_sys_errmsg.
1583 * Makefile.in (infptrace.o): Update dependencies.
1584
c5fa4245
MK
1585 * ia64-linux-nat.c: Update copyright year.
1586 (fetch_debug_register, store_debug_register)
1587 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
1588 PTRACE_TYPE_ARG3.
1589 * config/ia64/nm-linux.h: Update copyright year.
1590 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
1591
387c058c
MK
1592 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
1593 from CORE_ADDR to struct frame_info *. Use
1594 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
1595 (amd64_linux_sigtramp_p): Adjust for changed signature of
1596 and64_linux_sigtramp_start
1597
277215a6
MK
1598 * gdb_ptrace.h: GNU/Linux.
1599
25f6178e
MK
1600 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1601 Remove defines.
1602
652fc137
MK
1603 * infptrace.c: Include "gdb_assert.h".
1604 (PTRACE_XFER_TYPE): Remove define.
1605 (offsetof): Only define if U_REGS_OFFSET isn't defined.
1606 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
1607 Tweak comment.
1608 (fetch_inferior_registers, store_inferior_registers): Remove
1609 redundant culry braces. Tweak comment. s/regno/regnum.
1610 * Makefile.in (infptrace.o): Update dependencies.
1611
5885ab49
MK
1612 * configure.in: Change test for return type of ptrace to default
1613 to `long' instead of `int'.
1614 * configure: Regenerate.
1615
11003ae3
MK
16162004-08-21 Mark Kettenis <kettenis@gnu.org>
1617
6b95110c
MK
1618 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
1619
bcb3dc3d
MK
1620 * configure.in: Check for ttrace function.
1621 * configure, config.in: Regenerate.
1622
11003ae3
MK
1623 * gdb_ptrace.h: New file.
1624 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
1625 <sys/ptrace.h>.
1626 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
1627 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
1628 (attach): Don't define PT_ATTACH.
1629 (detach): Don't define PT_DETACH.
1630 * Makefile.in (gdb_ptrace_h): New variable.
1631 (infptrace.o): Update dependencies.
1632
f8707cac
MK
16332004-08-16 Mark Kettenis <kettenis@gnu.org>
1634
1635 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
1636 instead of `int' if not already defined.
1637 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
1638 PTRACE_TYPE_ARG3.
1639 * infptrace.c (call_ptrace): Revert change that replaced
1640 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1641
655c5466
MK
16422004-08-15 Mark Kettenis <kettenis@gnu.org>
1643
156e5ba7
MK
1644 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1645 Remove defines.
1646
de9a9e51
MK
1647 * linux-nat.c (kill_inferior): Add missing third and fourth
1648 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
1649
88800403
MK
1650 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
1651 PTRACE_TYPE_RET.
1652
849a1d7c
MK
1653 * proc-why.c (proc_prettyfprint_why): Fix format string.
1654
61ad16d1
MK
1655 * solib-osf.c (osf_current_sos): Remove unsused label.
1656
a6ed5501
MK
1657 * configure.in: Add <ncurses/ncurses.h> to the list of possible
1658 curses headers.
1659 * configure, config.in: Regenerate.
1660 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
1661 <ncurses/ncurses.h>.
1662
016ddeca
MK
1663 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
1664 * config/nm-nbsd.h: Update copyright year.
1665 (PTRACE_ARG3_TYPE): Remove define.
1666
49ec097f
MK
1667 * sparc-nat.c (fetch_inferior_registers)
1668 (store_inferior_registers, sparc_xfer_wcookie):
1669 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1670
9f8e0089
MK
1671 * alphabsd-nat.c (fetch_inferior_registers):
1672 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1673 PTRACE_TYPE_ARG3.
1674 * amd64bsd-nat.c (fetch_inferior_registers)
1675 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1676 PTRACE_TYPE_ARG3.
1677 * armnbsd-nat.c: Update copyright year.
1678 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
1679 (store_register, store_regs, store_fp_register, store_fp_regs):
1680 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1681 * hppabsd-nat.c (fetch_inferior_registers)
1682 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1683 PTRACE_TYPE_ARG3.
1684 * i386bsd-nat.c (fetch_inferior_registers)
1685 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
1686 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1687 * m68kbsd-nat.c (fetch_inferior_registers)
1688 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1689 PTRACE_TYPE_ARG3.
1690 * m88kbsd-nat.c (fetch_inferior_registers)
1691 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1692 PTRACE_TYPE_ARG3.
1693 * mipsnbsd-nat.c: Update copyright year.
1694 (fetch_inferior_registers, store_inferior_registers):
1695 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1696 * ns32knbsd-nat.c: Update copyright year.
1697 (fetch_inferior_registers, store_inferior_registers):
1698 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1699 * ppcnbsd-nat.c (fetch_inferior_registers):
1700 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1701 PTRACE_TYPE_ARG3.
1702 * ppcobsd-nat.c (fetch_inferior_registers):
1703 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1704 PTRACE_TYPE_ARG3.
1705 * shnbsd-nat.c: Update copyright year.
1706 (fetch_inferior_registers, store_inferior_registers):
1707 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1708 * vaxbsd-nat.c (fetch_inferior_registers)
1709 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1710 PTRACE_TYPE_ARG3.
1711
655c5466
MK
1712 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
1713 PTRACE_TYPE_ARG3.
1714 * infptrace.c (call_ptrace, child_resume, attach, detach)
1715 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
1716 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1717 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
1718 PTRACE_TYPE_ARG3.
1719
c40d0d10
MK
17202004-08-14 Mark Kettenis <kettenis@gnu.org>
1721
5cb0ff31
MK
1722 * defs.h: Remove out-of-date comment.
1723 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
1724 [!GETENV_PROVIDED] (getenv): Remove prototype.
1725
5f0f34cb
MK
1726 * standalone.c: Remove file.
1727 * Makefile.in (standalone.o): Remove dependency.
1728
7532965f
MK
1729 * i386-linux-nat.c (dummy_sse_values): Remove function and
1730 prototype.
1731 (i386_linux_dr_get): Fix typo in comment.
1732 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
1733
1bdc6c53
MK
1734 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
1735
c40d0d10
MK
1736 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1737 from declaration.
1738 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1739 from definition.
1740
64218d3e
MK
17412004-08-13 Mark Kettenis <kettenis@gnu.org>
1742
1743 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
1744 parenthesis in definition.
1745 * configure: Regenerated.
1746
926c94e7
MC
17472004-08-12 Michael Chastain <mec.gnu@mindspring.com>
1748
1749 * PROBLEMS: Mention build/1411.
1750
69489883
NN
17512004-08-09 Robert Millan <robertmh@gnu.org>
1752
1753 Committed by Nathanael Nerode.
1754 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
1755 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
1756
ebb7c577
AC
17572004-08-12 Andrew Cagney <cagney@gnu.org>
1758
1759 * NEWS: Mention fixes in GDB 6.2.1.
1760 * PROBLEMS: Remove mention of mips-irix.
1761
232d697c
JB
17622004-08-11 Joel Brobecker <brobecker@gnat.com>
1763
1764 * config/powerpc/xm-aix.h: Delete.
1765 * config/powerpc/aix.mh (MH_FILE): Remove.
1766 * config/powerpc/aix432.mh (MH_FILE): Remove.
1767
72f4e82b
JB
17682004-08-11 Joel Brobecker <brobecker@gnat.com>
1769
1770 * config/powerpc/aix.mh: Remove obsolete comment.
1771 * config/powerpc/aix432.mh: Likewise.
1772
0687ccb2
JB
17732004-08-11 Joel Brobecker <brobecker@gnat.com>
1774
1775 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
1776
dbf3ada7
JB
17772004-08-11 Joel Brobecker <brobecker@gnat.com>
1778
e08e1886
JB
1779 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
1780 this file is now empty.
1781 * config/xm-aix4.h: Remove, this file is no longer included
1782 anywhere.
1783
17842004-08-11 Joel Brobecker <brobecker@gnat.com>
1785
1786 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
1787 that file is now empty.
dbf3ada7
JB
1788 (termdef): Remove prototype, function no longer used.
1789
4c525ef6
JB
17902004-08-11 Joel Brobecker <brobecker@gnat.com>
1791
1792 * doc/gdbint.texinfo (Host Definition): Remove documentation
1793 for USE_O_NOCTTY, no longer used.
1794 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
1795 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
1796
82e0b968
JB
17972004-08-11 Joel Brobecker <brobecker@gnat.com>
1798
1799 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
1800 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
1801 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
1802
f2acbe1c
MK
18032004-08-11 Mark Kettenis <kettenis@gnu.org>
1804
daa98270
MK
1805 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
1806 instead of FIVE_ARG_PTRACE.
1807
f2acbe1c
MK
1808 * inflow.c (O_NOCTTY): Define to zero if not already defined.
1809 (new_tty): Use O_NOCTTY unconditionally.
1810
cc377e6b
MK
18112004-08-10 Mark Kettenis <kettenis@gnu.org>
1812
1813 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
1814 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
1815 fflush on stdout.
1816
3bcc18fa
JB
18172004-08-10 Joel Brobecker <brobecker@gnat.com>
1818
1819 * xcoff_symfile_finish: Replace last call to xmfree by call
1820 to xfree.
1821
7936743b
AC
18222004-08-10 Andrew Cagney <cagney@gnu.org>
1823
cc503c8a
AC
1824 * main.c (captured_main): Delete call to init_malloc.
1825 * defs.h (init_malloc): Delete declaration.
1826 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
1827 (init_malloc): Delete functions.
1828
2dc74dc1
AC
1829 * defs.h (xmfree): Delete.
1830 * utils.c (xmfree): Delete function.
1831 (xfree): Inline calls to xmfree and mfree.
1832 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
1833 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
1834 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
1835 * somread.c (som_symfile_finish): Ditto.
1836 * objfiles.c (allocate_objfile, free_objfile):
1837 * nlmread.c (nlm_symfile_finish): Ditto.
1838 * hpread.c (hpread_symfile_finish): Ditto.
1839 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
1840 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
1841 * coffread.c (coff_symfile_finish): Ditto.
1842
aa2ee5f6
AC
1843 * defs.h (xmcalloc): Delete declaration.
1844 * utils.c (xmcalloc): Delete.
1845 (xcalloc): Inline calls to xmcalloc and mcalloc.
1846 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
1847 xcalloc and xfree.
1848 * symtab.c (create_demangled_names_hash): Ditto.
1849
0efffb96
AC
1850 * defs.h (xmrealloc): Delete.
1851 * utils.c (xmrealloc): Delete.
1852 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
1853 * symmisc.c (extend_psymbol_list): Use xrealloc.
1854 * source.c (find_source_lines): Ditto.
1855 * hpread.c (hpread_lookup_type): Ditto.
1856 * dbxread.c (add_bincl_to_list): Ditto.
1857
7936743b
AC
1858 * utils.c (xmmalloc): Delete.
1859 (xmalloc): Inline xmmalloc and mmalloc calls.
1860 (msavestring): Use xmalloc.
1861 * defs.h (xmmalloc): Delete declaration.
1862 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
1863 xmmalloc.
1864 * symmisc.c (extend_psymbol_list): Ditto.
1865 * symfile.c (init_psymbol_list): Ditto.
1866 * source.c (find_source_lines): Ditto.
1867 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
1868 * elfread.c (elf_symtab_read): Ditto.
1869 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
1870 * coffread.c (coff_symfile_init): Ditto.
1871
252ab814
DC
18722004-08-10 David Carlton <carlton@bactrian.org>
1873
1874 * MAINTAINERS: Remove David Carlton from c++ testsuite
1875 maintainers.
1876
8f5ba92b
JG
18772004-08-10 Jerome Guitton <guitton@gnat.com>
1878
1879 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
1880 print a line feed before the prompt.
1881
21749010
MK
18822004-08-10 Mark Kettenis <kettenis@gnu.org>
1883
1884 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
1885
1f011ce2
JB
18862004-08-09 Joel Brobecker <brobecker@gnat.com>
1887
1888 General cleanup of the AIX xm include file:
1889 * config/xm-aix4.h (fd_set): Remove undefine.
1890 Remove include of <sys/select.h>.
1891 (HAVE_TERMIO): Remove define.
1892 (USG): Likewise.
1893 (NULL): Remove redefine.
1894 (alloca): Remove #pragma.
1895 (vfork): Remove define.
1896 (termdef): Remove.
1897 (SIGWINCH_HANDLER): Remove.
1898 (SIGWINCH_HANDLER_BODY): Remove.
1899
cf4e7692
MK
19002004-08-09 Mark Kettenis <kettenis@gnu.org>
1901
1902 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
1903 GDB_OSABI_OPENBSD_ELF.
1904
ac5754fa
MK
19052004-08-07 Robert Millan <robertmh@gnu.org>
1906
1907 * bsd-kvm.c: Check for nlist.h before including it.
1908
086ec9eb
MK
19092004-08-09 Mark Kettenis <kettenis@gnu.org>
1910
bbe06c74
MK
1911 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
1912 sigcontext' offset consistency checks for ancient BSD.
1913
3aa7b3b3
MK
1914 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
1915
086ec9eb
MK
1916 * configure.in: Check for <sys/types.h>. Check return and
1917 argument types of ptrace.
1918 * configure, config.in: Regenerate.
1919
09991fa0
JB
19202004-08-09 Jim Blandy <jimb@redhat.com>
1921
1922 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
1923 rs6000_register_sim_regno): Doc fixes.
1924
fed7ba43
JB
19252004-08-08 Joel Brobecker <brobecker@gnat.com>
1926
1927 * mips-tdep.c: Include "floatformat.h".
1928 (n32n64_floatformat_always_valid): New function.
1929 (floatformat_n32n64_long_double_big): New constant.
1930 (mips_gdbarch_init): Set size and format of long double
1931 for N32 and N64 ABIs.
1932 * Makefile.in (mips-tdep.o): Update dependencies.
1933
456fcf94
AC
19342004-08-08 Andrew Cagney <cagney@gnu.org>
1935
2f9b146e
AC
1936 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
1937 print. Improve script's error messages.
1938 * gdbarch.h: Re-generate.
1939
456fcf94
AC
1940 * gdbarch.sh (pformat): New function.
1941 (float_format, double_format, long_double_format): List with bit
1942 members. Use pformat when printing.
1943 * gdbarch.c, gdbarch.h: Re-generate.
1944
69e9e646
NW
19452004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
1946
1947 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
1948 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
1949 (ppcnbsd_supply_pcb): New function.
1950 (_initialize_ppcnbsd_nat): New prototype and function.
1951 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
1952 (LOADLIBES): New variable.
1953 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
1954
5ef2d0aa
AC
19552004-08-08 Andrew Cagney <cagney@gnu.org>
1956
1957 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
1958 (builtin_type_ieee_double, builtin_type_ia64_quad)
1959 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
1960 BE/LE floating-point types.
1961 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
1962 (builtin_type_ieee_double, builtin_type_ia64_quad)
1963 (builtin_type_ia64_spill): Declare.
1964 * doublest.c (_initialize_doublest, floatformat_ieee_single)
1965 (floatformat_ieee_double, floatformat_arm_ext)
1966 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
1967 of LE/BE floatformats.
1968 * doublest.h: (struct floatformat, floatformat_ieee_single)
1969 (floatformat_ieee_double, floatformat_arm_ext)
1970 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
1971
5c7f2947
MK
19722004-08-08 Mark Kettenis <kettenis@gnu.org>
1973
ecac404d
MK
1974 * i386gnu-nat.c (gnu_store_registers): Fix typo.
1975
9b8607ce
MK
1976 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
1977 instead of regcache_raw_supply when storing the registers.
1978
f6052080
MK
1979 * i386gnu-nat.c: Update copyright year.
1980 (gnu_store_registers): Don't use deprecated_registers and
1981 deprecated_registers_valid. Use regcache_valid_p and
1982 regcache_raw_supply instead.
1983
17777823
MK
1984 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
1985 frame_pc_unwind.
1986
5240ceac
MK
1987 * procfs.c (procfs_pid_to_str): Remove redundant and unused
1988 variables. Incapitalized "process".
1989
5c7f2947
MK
1990 * configure.in: Add cursesX to the list of possible curses libs.
1991 Add cursesX.h to the list of possible curses headers.
1992 * configure, config.in: Regenerate.
1993
da7d81e3
NW
19942004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
1995
1996 * configure.in: Test for struct lwp in <sys/lwp.h>.
1997 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
1998 the offset of l_addr in struct lwp.
1999
7f245d65
NW
20002004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
2001
2002 * bsd-kvm.c: Include "gdbcore.h"
2003 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
2004
47b3f456
AC
20052004-08-07 Andrew Cagney <cagney@gnu.org>
2006
70bd8e24
AC
2007 * gdbtypes.c (build_flt, build_complex): New functions.
2008 (gdbtypes_post_init): Use.
2009
9b0dea39
AC
2010 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
2011
5cf7abac
AC
2012 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
2013 through to builtin_type_uint128.
2014
64d2b26d
AC
2015 * c-exp.y: Use builtin_type function to obtain builtin types.
2016
7ad6570d
AC
2017 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
2018 builtin_uint128.
2019 * gdbtypes.c (gdbtypes_post_init): Update.
2020 (build_gdbtypes): Move initialization of builtin_type_int0
2021 through to builtin_type_uint128 from here ...
2022 (_initialize_gdbtypes): ... to here.
2023 * d10v-tdep.c (d10v_register_type): Update.
2024
47b3f456
AC
2025 * doublest.c: Update copyright.
2026 (floatformat_from_length): Call error when floatformat is NULL.
2027 (extract_floating_by_length): Remove NULL fmt check.
2028 (store_floating_by_length): Ditto.
2029
0a8146bf
AC
20302004-08-07 Andrew Cagney <cagney@gnu.org>
2031
2032 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
2033 that the register is valid.
2034
c0ccb908
MK
20352004-08-05 Mark Kettenis <kettenis@chello.nl>
2036
8e6bed05
MK
2037 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2038 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
2039 struct frame_info *. Use safe_frame_unwind_memory instead of
2040 deprecated_read_memory_nobpt.
2041 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
2042 changed signature of i386_linux_sigtramp_start and
2043 i386_linux_rt_sigtramp_start.
2044
24f9f5e3
MK
2045 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
2046 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
2047 instead of deprecated_read_memory_nobpt.
2048 (i386nbsd_sigtramp_p): Adjust for changed signature of
2049 i386nbsd_sigtramp_offset.
2050
c822af0c
MK
2051 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
2052 safe_frame_unwind_memory instead of target_read_memory.
2053
c0ccb908
MK
2054 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2055 !NO_SYS_FILE.
2056 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
2057 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
2058 (_initialize_kernel_u_addr): Remove prototype and function.
2059 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2060 !NO_SYS_FILE.
2061 * xcoffread.c: Likewise.
2062
b9e1c0d6
MK
20632004-08-06 Mark Kettenis <kettenis@gnu.org>
2064
2065 * vax-nat.c: New file.
2066 * vaxbsd-nat.c: Tweak comment.
2067 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
2068 vaxnbsd-tdep.c.
2069 (vax-nat.o): New dependency.
2070 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
2071 (vax-*-ultrix2*): Remove.
2072 * config/vax/vax.mh: New file.
2073 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
2074 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
2075 (vax_register_u_addr): New prototype.
2076 (REGISTER_U_ADDR): Define using vax_register_u_addr.
2077 * config/vax/vaxult2.mh: Remove file.
2078 * config/vax/vaxult.mh: Remove file.
2079 * config/vax/vaxbsd.mh: Remove file.
2080 * config/vax/vax.mt (TM_FILE): Remove.
2081 * config/vax/tm-vaxbsd.h: Remove file.
2082
9ad7bec7
JB
20832004-08-06 Joel Brobecker <brobecker@gnat.com>
2084
2085 * aix-thread.c (get_signaled_thread): New function.
2086 (iter_trap): Delete, no longer used.
2087 (iter_tid): New function.
2088 (pd_update): Find the thread that received the SIGTRAP signal
2089 by first locating the kernel thread, and then finding its
2090 associated thread.
2091
bf0d233d
UW
20922004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
2093
2094 * lin-lwp.c (child_wait): Continue inferior after processing
2095 PTRACE_EVENT_CLONE event.
2096
d0f853e1
NN
20972004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
2098
2099 * MAINTAINERS: Add self to Write-After-Approval.
2100
ab14aeb0
JJ
21012004-08-05 Jeff Johnston <jjohnstn@redhat.com>
2102
2103 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
2104 libunwind-xxxx.so" where xxxx is UNW_TARGET.
2105
9c8dbfa9
AC
21062004-08-05 Andrew Cagney <cagney@gnu.org>
2107
c8f3ca46
AC
2108 * config/xm-sysv4.h: Delete file.
2109 * config/mips/xm-irix5.h: Delete file.
2110 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
2111 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
2112 * config/ia64/xm-aix.h: Delete file.
2113 * config/ia64/aix.mh (XM_FILE): Delete.
2114 * config/pa/xm-hppah.h: Delete file.
2115 * config/pa/hpux11w.mh (XM_FILE): Delete.
2116 * config/pa/hpux11.mh (XM_FILE): Delete.
2117 * config/pa/hpux1020.mh (XM_FILE): Delete.
2118 * config/pa/hppahpux.mh (XM_FILE): Delete.
2119
5f7daaff
AC
2120 * config/alpha/xm-alphalinux.h: Delete file.
2121 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
2122 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
2123 * config/alpha/xm-alphaosf.h: Delete file.
2124 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
2125 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
2126 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
2127 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
2128
69babf95
AC
2129 * config/i386/xm-i386v.h: Delete file.
2130 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
2131 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
2132 * config/i386/xm-i386sco.h: Delete file.
2133 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
2134 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
2135 * config/i386/xm-i386v4.h: Delete file.
2136 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
2137 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
2138 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
2139 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
2140
6f009c8a
AC
2141 * config/vax/xm-vax.h: Delete file.
2142 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
2143 * config/vax/xm-vaxult2.h: Delete file.
2144 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
2145 * config/vax/vaxult2.mh (XM_FILE): Delete.
2146 * config/vax/xm-vaxult.h: Delete file.
2147 * config/vax/vaxult.mh (XM_FILE): Delete.
2148 * config/vax/xm-vaxbsd.h: Delete file.
2149 * config/vax/vaxbsd.mh (XM_FILE): Delete.
2150
9c8dbfa9
AC
2151 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
2152 * gdbarch.h, gdbarch.c: Re-generate.
2153 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
2154 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
2155 * frame.h: Delete deprecated_read_fp from comments.
2156 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
2157 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
2158
84367a3e
MK
21592004-08-04 Mark Kettenis <kettenis@gnu.org>
2160
9c8e3411
MK
2161 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
2162 trampoline in OpenBSD 3.5-current.
2163
b87bc0d8
MK
2164 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
2165 SSE registers.
2166
84367a3e
MK
2167 * Makefile.in: Remove embedded page breaks.
2168
a44bddec
JB
21692004-08-04 Jim Blandy <jimb@redhat.com>
2170
7ab3286f
JB
2171 * regcache.c (regcache_raw_read): Assert that, after calling
2172 target_fetch_registers, the register we're reading is cached.
2173
a44bddec
JB
2174 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
2175 a call to 'internal_error', with a more helpful error message.
2176 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 2177 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 2178
35124113
AC
21792004-08-04 Andrew Cagney <cagney@gnu.org>
2180
2181 * Makefile.in: Update dependencies.
2182
9f643768
JB
21832004-08-04 Jim Blandy <jimb@redhat.com>
2184
6ced10dd
JB
2185 Change the layout of the PowerPC E500 raw register cache to allow
2186 the lower 32-bit halves of the GPRS to be their own raw registers,
2187 not pseudoregisters.
2188 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
2189 add ppc_ev0_upper_regnum flag.
2190 * rs6000-tdep.c: #include "reggroups.h".
2191 (spe_register_p): Recognize the ev upper half registers as SPE
2192 registers.
2193 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
2194 registers.
2195 (e500_move_ev_register): New function.
2196 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
2197 vector registers are the pseudo-registers now, formed by splicing
2198 together the gprs and the upper-half registers.
2199 (e500_register_reggroup_p): New function.
2200 (P): Macro deleted.
2201 (P8, A4): New macro.
2202 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
2203 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
2204 macros.
2205 (registers_e500): Rearrange register set so that the raw register
2206 set contains 32-bit GPRs and upper-half registers, and the SPE
2207 vector registers become pseudo-registers.
2208 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
2209 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
2210 register numbers are now the same for the E500 as they are for
2211 other PowerPC variants. Register e500_register_reggroup_p as the
2212 register group function for the E500.
2213 * Makefile.in (rs6000-tdep.o): Update dependencies.
2214
2215 Adapt PPC E500 native support to the new raw regcache layout.
2216 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
2217 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
2218 (fetch_spe_register, store_spe_register): Handle fetching/storing
2219 all the SPE registers at once, if regno == -1. These now take
2220 over the job of fetch_spe_registers and store_spe_registers.
2221 (fetch_spe_registers, store_spe_registers): Deleted.
2222 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
2223 unconditionally; they're always raw. Fetch/store SPE upper half
2224 registers, if present, instead of ev registers.
2225 (fetch_register, store_register): Remove sanity checks: gprs are
2226 never pseudo-registers now, so we never need to even mention any
2227 registers that are ever pseudoregisters.
2228
9f643768
JB
2229 Use a fixed register numbering when communicating with the PowerPC
2230 simulator.
2231 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
2232 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
2233 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
2234 New functions.
2235 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
2236 init_sim_regno_table.
2237 * Makefile.in (gdb_sim_ppc_h): New variable.
2238 (rs6000-tdep.o): Update dependencies.
2239
1e2279c8
AC
22402004-08-02 Andrew Cagney <cagney@gnu.org>
2241
1d94326f
AC
2242 * cris-tdep.c (cris_register_size): Restore function, still used
2243 locally.
2244
331ae7ed
AC
2245 * gdbarch.sh (deprecated_target_read_fp)
2246 (deprecated_frame_locals_address, deprecated_frame_args_address)
2247 (deprecated_frame_chain_valid, deprecated_frame_chain)
2248 (deprecated_init_extra_frame_info, deprecated_pop_frame)
2249 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
2250 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
2251 * gdbarch.h, gdbarch.c: Re-generate.
2252 * regcache.c (deprecated_read_fp): Do not call
2253 DEPRECATED_TARGET_READ_FP_P.
2254 * infcmd.c (default_print_registers_info): Do not call
2255 DEPRECATED_DO_REGISTERS_INFO.
2256 * frame-base.c (default_frame_locals_address): Do not call
2257 DEPRECATED_FRAME_LOCALS_ADDRESS.
2258 (default_frame_args_address): Do not call
2259 DEPRECATED_FRAME_ARGS_ADDRESS.
2260
1e2279c8
AC
2261 * gdbarch.sh (deprecated_register_raw_size)
2262 (deprecated_register_virtual_size:int): Delete.
2263 * gdbarch.h, gdbarch.c: Re-generate.
2264 * cris-tdep.c (cris_register_size): Delete.
2265 (cris_gdbarch_init): Update.
2266 * alpha-tdep.c (alpha_register_raw_size)
2267 (alpha_register_virtual_size): Delete.
2268 (alpha_gdbarch_init): Update.
2269
a90c06b4
AC
2270 * gdbarch.sh (deprecated_register_virtual_type)
2271 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
2272 (deprecated_dummy_write_sp): Delete.
2273 * gdbarch.h, gdbarch.c: Re-generate.
2274
f42accbe
AC
2275 * gdbarch.sh (deprecated_register_bytes): Delete.
2276 * gdbarch.h, gdbarch.c: Re-generate.
2277 * regcache.c (deprecated_register_bytes): New function.
2278 * regcache.h (deprecated_register_bytes): Declare.
2279 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2280 * v850-tdep.c (v850_gdbarch_init): Update.
2281 * sh64-tdep.c (sh64_gdbarch_init): Update.
2282 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
2283 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2284 * mcore-tdep.c (mcore_gdbarch_init): Update.
2285 * cris-tdep.c (cris_gdbarch_init): Update.
2286 * arm-tdep.c (arm_gdbarch_init): Update.
2287 * remote.c (init_remote_state): Update.
2288 * remote-vx.c (vx_prepare_to_store): Update.
2289 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
2290 * irix5-nat.c (fetch_core_registers): Update.
2291 * cris-tdep.c (cris_register_bytes_ok): Update.
2292 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
2293
45c9dd44
AC
2294 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
2295 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
2296 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
2297 (mips_insn16_frame_base_address, mips_insn16_frame_base)
2298 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
2299 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
2300 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
2301 (mips_insn32_frame_base_address, mips_insn32_frame_base)
2302 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
2303 with mips_insn16 and mips_insn32.
2304
3acba339
AC
2305 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
2306 * rs6000-tdep.c (rs6000_push_dummy_call)
2307 (rs6000_extract_return_value): Use register_size.
2308 * xstormy16-tdep.c (xstormy16_get_saved_register)
2309 (xstormy16_extract_return_value): Ditto.
2310 * valops.c (value_assign): Ditto.
2311 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
2312 * v850-tdep.c (v850_extract_return_value): Ditto.
2313 * tracepoint.c (collect_symbol): Ditto.
2314 * target.c (debug_print_register): Ditto.
2315 * stack.c (frame_info): Ditto.
2316 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
2317 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
2318 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
2319 (store_register_using_P): Ditto.
2320 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
2321 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
2322 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
2323 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
2324 * regcache.c (deprecated_read_register_bytes)
2325 (deprecated_write_register_bytes, read_register)
2326 (write_register): Ditto.
2327 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
2328 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
2329 * monitor.c (monitor_supply_register, monitor_fetch_register)
2330 (monitor_store_register): Ditto.
2331 * mn10300-tdep.c (mn10300_pop_frame_regular)
2332 (mn10300_print_register): Ditto.
2333 * mipsv4-nat.c (fill_fpregset): Ditto.
2334 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
2335 (mips64_fill_fpregset): Ditto.
2336 * mi/mi-main.c (register_changed_p, get_register)
2337 (mi_cmd_data_write_register_values): Ditto.
2338 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
2339 * irix5-nat.c (fill_gregset, fetch_core_registers):
2340 * infrun.c (write_inferior_status_register): Ditto.
2341 * infptrace.c (fetch_register, store_register): Ditto.
2342 * infcmd.c (default_print_registers_info): Ditto.
2343 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
2344 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
2345 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
2346 * hpux-thread.c (hpux_thread_fetch_registers)
2347 (hpux_thread_store_registers): Ditto.
2348 * hppah-nat.c (store_inferior_registers, fetch_register):
2349 * findvar.c (value_from_register): Ditto.
2350 * dve3900-rom.c (fetch_bitmapped_register):
2351 * cris-tdep.c (cris_gdbarch_init): Ditto.
2352 * alpha-tdep.h: Ditto.
2353 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
2354
01e1877c
AC
2355 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
2356 DEPRECATED_REGISTER_RAW_SIZE from comments.
2357 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
2358 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
2359 DEPRECATED_REGISTER_RAW_SIZE.
2360 * findvar.c (value_of_register): Simplify by assuming that the
2361 registers raw and virtual sizes are identical.
2362 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
2363 comment.
2364 * arch-utils.c (generic_register_size): Simplify by assuming
2365 register_type.
2366
73f458fb
AC
2367 * regcache.c (legacy_read_register_gen, real_register)
2368 (legacy_write_register_gen): Delete, not used.
2369
336a3131
AC
2370 * regcache.c (struct regcache_descr): Delete legacy_p.
2371 (init_legacy_regcache_descr): Delete function.
2372 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
2373 Do not use deprecated register functions.
2374 (regcache_raw_read, deprecated_write_register_gen):
2375 (deprecated_read_register_gen, regcache_raw_write): Delete code
2376 predicated on legacy_p.
2377 (register_size): Delete check against register raw size.
2378
c1d546cd
AC
2379 * cris-tdep.c (cris_register_type): Replace
2380 cris_register_virtual_type.
2381 (cris_gdbarch_init): Update, set register_type.
2382
48c2c0a6
AC
2383 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
2384 * gdbarch.h, gdbarch.c: Re-generate.
2385 * arm-tdep.c (arm_frameless_function_invocation): Delete.
2386 (arm_gdbarch_init) Do not set frameless function invocation.
2387 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
2388 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
2389 * frv-tdep.c (frv_frameless_function_invocation): Delete.
2390 (frv_gdbarch_init): Do not set frameless function invocation.
2391 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
2392 * sh-tdep.c (sh_gdbarch_init): Ditto.
2393 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
2394 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2395 * avr-tdep.c (avr_gdbarch_init): Ditto.
2396
474093a6
AC
2397 * blockframe.c (legacy_frame_chain_valid): Delete function.
2398
3c109c8b
AC
2399 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
2400 and pc. Update comments.
2401 (pc_in_dummy_frame): Delete function.
2402 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
2403 use the "id".
2404 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
2405 call_hi, top and pc, use the id.
2406 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
2407
96860204
AC
2408 * dummy-frame.c: Include "gdb_string.h".
2409 (generic_save_call_dummy_addr, generic_push_dummy_frame)
2410 (generic_save_dummy_frame_tos): Delete.
2411 (dummy_frame_push): New function, replaces above.
2412 * dummy-frame.h: Update copyright.
2413 (dummy_frame_push): Declare.
2414 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
2415 (generic_save_call_dummy_addr): Delete declarations.
2416 * infcall.c: Include "dummy-frame.h".
2417 (call_function_by_hand): Add locals caller_regcache,
2418 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
2419 with call to frame_save_as_regcache plus cleanup. Delete calls to
2420 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
2421 Move clear_proceed_status to just before the resume, add call to
2422 dummy_frame_push (discard cleanup).
2423 * Makefile.in (infcall.o): Add $(dummy_frame_h).
2424 (dummy-frame.o): Add $(gdb_string_h).
2425
d67ec5db
AC
24262004-08-01 Andrew Cagney <cagney@gnu.org>
2427
2428 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
2429 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
2430 * dummy-frame.c (find_dummy_frame): Delete.
2431 (struct dummy_frame_cache, dummy_frame_sniffer)
2432 (dummy_frame_prev_register, dummy_frame_this_id)
2433 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
2434 frame unwinder using a dummy_frame_cache.
2435
a81dcb05
AC
24362004-08-01 Andrew Cagney <cagney@gnu.org>
2437
2438 * frame.h (frame_save_as_regcache): Declare.
2439 * frame.c (frame_save_as_regcache): New function.
2440 (do_frame_read_register): Replace do_frame_unwind_register.
2441 (frame_pop): Use frame_save_as_regcache.
2442 * dummy-frame.c (generic_push_dummy_frame): Use
2443 frame_save_as_regcache.
2444
aa495d11
JB
24452004-08-01 Joel Brobecker <brobecker@gnat.com>
2446
2447 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
2448 file as included until we record the first line in the linetable.
2449
ff65ac78
AC
24502004-08-01 Andrew Cagney <cagney@gnu.org>
2451
2452 * frame.h (deprecated_pop_dummy_frame)
2453 (deprecated_read_register_dummy)
2454 (deprecated_generic_find_dummy_frame): Delete.
2455 * dummy-frame.c (deprecated_generic_find_dummy_frame)
2456 (deprecated_read_register_dummy)
2457 (deprecated_find_dummy_frame_regcache)
2458 (discard_innermost_dummy)
2459 (deprecated_pop_dummy_frame): Delete.
2460 (dummy_frame_this_id): Simplify.
2461 (struct dummy_frame): Delete "fp" and "sp".
2462 (find_dummy_frame): Simplify.
2463 (generic_push_dummy_frame): Do not set "fp" or "sp".
2464 (fprint_dummy_frames): Do not print "fp" and "sp"
2465
37bdc87e
MK
24662004-08-01 Mark Kettenis <kettenis@gnu.org>
2467
2468 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
2469 (struct i386_insn): New structure.
2470 (i386_match_insn): New function.
2471 (i386_frame_setup_skip_insns): New variable.
2472 (i386_analyze_frame_setup): Change to use i386_match_insn and the
2473 array i386_frame_setup_insns of instructions that should be
2474 skipped inside the frame setup sequence.
2475
8241eaa6
AC
24762004-08-01 Andrew Cagney <cagney@gnu.org>
2477
5bc602c7
AC
2478 * frame.h (deprecated_frame_xmalloc_with_cleanup)
2479 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2480 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2481 * stack.c (frame_info): Delete references to
2482 DEPRECATED_FRAME_INIT_SAVED_REGS and
2483 deprecated_get_frame_saved_regs.
2484 * frame.c (struct frame_info): Delete saved_regs and extra_info.
2485 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
2486 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
2487 (frame_unwind_register_signed)
2488 (frame_unwind_register_unsigned)
2489 (frame_unwind_unsigned_register): Use register_size.
2490 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
2491 (deprecated_frame_xmalloc_with_cleanup)
2492 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2493 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2494
03d363a1
AC
2495 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
2496 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
2497 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
2498 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
2499
8241eaa6
AC
2500 * infcall.c (call_function_by_hand): Do not use
2501 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
2502 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
2503 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
2504 DEPRECATED_STACK_ALIGN.
2505
f00df8b7
AC
25062004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
2507
2508 Committed by Andrew Cagney.
2509 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
2510
eec63939
AC
25112004-08-01 Andrew Cagney <cagney@gnu.org>
2512
2513 * mips-tdep.c (mips16_frame_cache)
2514 (mips16_frame_this_id, mips16_frame_prev_register)
2515 (mips16_frame_unwind, mips16_frame_sniffer)
2516 (mips16_frame_base_address, mips16_frame_base)
2517 (mips16_frame_base_sniffer, mips32_frame_cache)
2518 (mips32_frame_this_id, mips32_frame_prev_register)
2519 (mips32_frame_unwind, mips32_frame_sniffer)
2520 (mips32_frame_base_address, mips32_frame_base)
2521 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
2522 separate heuristic mips16 and mips32 unwinders.
2523 (mips_stub_frame_cache, mips_stub_frame_this_id)
2524 (mips_stub_frame_prev_register)
2525 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
2526 (mips_stub_frame_base_address, mips_stub_frame_base)
2527 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
2528 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
2529 match true mdebug frames.
2530 (non_heuristic_proc_desc): Add forward declaration.
2531
e66299b3
AC
25322004-08-01 Andrew Cagney <cagney@gnu.org>
2533
83cbbf3e
AC
2534 * config/mips/tm-irix6.h: Delete file.
2535 * config/mips/tm-irix5.h: Delete file.
2536 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
2537 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
2538
22d41b37
AC
2539 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
2540 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
2541 * config/nm-gnu.h (NO_CORE_OPS): Delete.
2542 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
2543 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
2544 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
2545 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
2546 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
2547 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
2548 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
2549 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
2550 (TARGET_SIGNAL_RAW_VALUES): Delete.
2551 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
2552 Delete.
2553 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
2554 (TARGET_HW_WATCH_LIMIT): Delete.
2555 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
2556 * minimon.h: Delete file.
2557
e66299b3
AC
2558 * trad-frame.c (trad_frame_get_this_base)
2559 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
2560 functions.
2561 * trad-frame.h (trad_frame_set_this_base)
2562 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
2563
1f67027d
AC
25642004-07-31 Andrew Cagney <cagney@gnu.org>
2565
2566 * trad-frame.c (trad_frame_get_prev_register): Rename
2567 trad_frame_get_prev_register.
2568 * vax-tdep.c (vax_frame_prev_register): Update.
2569 * trad-frame.h: Update.
2570 * trad-frame.c (trad_frame_get_register): Update.
2571 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
2572 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
2573 Update.
2574 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
2575 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
2576 Update.
2577 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
2578 Update.
2579 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
2580 Update.
2581 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
2582 Update.
2583 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
2584 Update.
2585 * s390-tdep.c (s390_frame_prev_register)
2586 (s390_stub_frame_prev_register)
2587 (s390_sigtramp_frame_prev_register): Update.
2588 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
2589 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
2590 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
2591 * m88k-tdep.c (m88k_frame_prev_register)
2592 * m68hc11-tdep.c (m68hc11_frame_prev_register)
2593 * m32r-tdep.c (m32r_frame_prev_register): Update.
2594 * hppa-tdep.c (hppa_frame_prev_register_helper)
2595 * frv-tdep.c (frv_frame_prev_register): Update.
2596 * d10v-tdep.c (d10v_frame_prev_register): Update.
2597 * cris-tdep.c (cris_frame_prev_register): Update.
2598 * avr-tdep.c (avr_frame_prev_register): Update.
2599 * arm-tdep.c (arm_prologue_prev_register)
2600 (arm_sigtramp_prev_register): Update.
2601
c1bf6f65
AC
26022004-07-31 Andrew Cagney <cagney@gnu.org>
2603
2604 * frame.h (legacy_saved_regs_unwind)
2605 (legacy_frame_chain_valid, legacy_frame_p)
2606 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
2607 * dummy-frame.c (dummy_frame_this_id): Simplify.
2608 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
2609 * frame.c (struct frame_info): Delete the field "type".
2610 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
2611 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
2612 (legacy_saved_regs_unwind, legacy_frame_p)
2613 (frame_type_from_pc): Delete.
2614 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
2615 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
2616
dc856692
MK
26172004-07-31 Mark Kettenis <kettenis@gnu.org>
2618
5a5effe1
MK
2619 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
2620 indentation.
2621
d4fd50a6
MK
2622 * mips-nat.c: Remove file.
2623 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
2624 (mips-nat.o): Remove dependency.
2625
2689df5a
MK
2626 * infptrace.c: Update copyright year.
2627 (fetch_register): Pass NULL in regcache_raw_supply call instead of
2628 explicitly setting the buffer to all zeroes.
2629
dc856692
MK
2630 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
2631 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
2632
763910e0
AC
26332004-07-30 Andrew Cagney <cagney@gnu.org>
2634
2635 * GDB 6.2 released from gdb_6_2-branch.
2636
0b66e38c
EZ
26372004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
2638
2639 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
2640
2641 * exec.c (exec_file_attach):
2642 * nto-tdep.c (nto_find_and_open_solib):
2643 * pa64solib.c (pa64_solib_sizeof_symbol_table):
2644 * solib.c (solib_open):
2645 * somsolib.c (som_solib_sizeof_symbol_table):
2646 * source.c (is_regular_file, openp, open_source_file):
2647 * symfile.c (symfile_bfd_open):
2648 * wince.c (upload_to_device): Differentiate between the search for
2649 binary and source files.
2650
be7d7357
AC
26512004-07-30 Andrew Cagney <cagney@gnu.org>
2652
2653 * complaints.c (_initialize_complaints): Pass NULL to
2654 add_setshow_zinteger_cmd for help_doc.
2655 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
2656
ddc9cd0f
AC
26572004-07-30 Andrew Cagney <cagney@gnu.org>
2658
2659 Fix PR i18n/761.
2660 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
2661 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
2662 $(PACKAGE).pot and update-po.
2663 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
2664 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
2665 (update-po): New rules.
2666 (localedir): Define using autoconf.
2667 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
2668 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
2669 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
2670 * configure.in: Generate CATALOGS and LINGUAS from contents of
2671 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
2672 * configure: Re-generate.
2673 * po/gdbtext: New file
2674
e92f3704
JG
26752004-07-30 Jerome Guitton <guitton@gnat.com>
2676
2677 * MAINTAINERS: Reorder Write After Approval list in alphabetical
2678 order.
2679
b0f35d58
DL
26802004-07-30 David Lecomber <dsl@sources.redhat.com>
2681
2682 * dwarf2read.c (read_file_scope): Set producer if attribute
2683 present.
2684 (struct dwarf2_cu): Added new member producer.
2685
ce7d4522
JG
26862004-07-30 Jerome Guitton <guitton@gnat.com>
2687
2688 * inflow.c (kill_command): release file handles in BFD.
2689 * exec.c (exec_file_attach): Ditto.
2690 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
2691
05ee07c7
AC
26922004-07-29 Andrew Cagney <cagney@gnu.org>
2693
2694 * PROBLEMS (mips-irix): Note that it is broken.
2695
62eceb47
AC
26962004-07-29 Andrew Cagney <cagney@gnu.org>
2697
e57b8d41
AC
2698 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
2699 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
2700
d334389b
AC
2701 * config/xm-nbsd.h: Delete file.
2702 * config/arm/xm-nbsd.h: Delete file.
2703 * config/i386/xm-nbsd.h: Delete file.
2704 * config/ns32k/xm-nbsd.h: Delete file.
2705 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
2706 * config/i386/nbsdelf.mh (XM_FILE): Delete.
2707 * config/i386/nbsdaout.mh (XM_FILE): Delete.
2708 * config/arm/nbsdelf.mh (XM_FILE): Delete.
2709 * config/arm/nbsdaout.mh (XM_FILE): Delete.
2710
e910f676
AC
2711 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
2712 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
2713 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
2714 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
2715 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
2716 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
2717
6fa856b9
AC
2718 * config/powerpc/xm-linux.h: Delete empty file.
2719 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
2720 * config/powerpc/linux.mh (XM_FILE): Delete.
2721 * config/m68k/xm-linux.h: Delete empty file.
2722 * config/m68k/linux.mh (XM_FILE): Delete.
2723 * config/ia64/xm-linux.h: Delete empty file.
2724 * config/ia64/linux.mh (XM_FILE): Delete.
2725 * config/arm/xm-linux.h: Delete empty file.
2726 * config/arm/linux.mh (XM_FILE): Delete.
2727
471ae5ae
AC
2728 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2729 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
2730 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2731 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
2732 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2733 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
2734 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2735 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
2736
62eceb47
AC
2737 * config/m68k/xm-m68k.h: Delete file.
2738 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
2739 copyright.
2740 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
2741 * config/pa/xm-linux.h: Delete empty file.
2742 * config/pa/linux.mh (XM_FILE): Delete.
2743 * config/i386/xm-i386.h: Delete empty file.
2744 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
2745 "i386/xm-i386.h".
2746 * config/i386/obsdaout.mh (XM_FILE): Delete.
2747 * config/i386/obsd64.mh (XM_FILE): Delete.
2748 * config/i386/fbsd64.mh (XM_FILE): Delete.
2749 * config/i386/nto.mh (XM_FILE): Delete.
2750 * config/i386/obsd.mh (XM_FILE): Delete.
2751 * config/i386/linux64.mh (XM_FILE): Delete.
2752 * config/i386/linux.mh (XM_FILE): Delete.
2753 * config/i386/i386sol2.mh (XM_FILE): Delete.
2754 * config/i386/i386gnu.mh (XM_FILE): Delete.
2755 * config/i386/fbsd.mh (XM_FILE): Delete.
2756 * config/i386/nbsd64.mh (XM_FILE): Delete.
2757
c35f4ffc
AC
27582004-07-29 Andrew Cagney <cagney@gnu.org>
2759
2760 * config/pa/xm-linux.h: Do not include "floatformat.h".
2761 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2762 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
2763 * config/i386/xm-i386.h: Do not include "floatformat.h".
2764 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2765 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
2766 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2767 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
2768 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
2769 GDB_HOST_LONG_DOUBLE_FORMAT instead.
2770 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
2771 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
2772 * configure, config.in: Regenerate.
2773 * configure.host (gdb_host_float_format, gdb_host_double_format)
2774 (gdb_host_long_double_format): Set according to the host.
2775
624a44a3
AC
27762004-07-29 Andrew Cagney <cagney@gnu.org>
2777
2778 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
2779
0dea2468
AC
27802004-07-28 Andrew Cagney <cagney@gnu.org>
2781
2782 * PROBLEMS: Mention threads/1650.
2783 * NEWS: Mention the NPTL fix.
2784
b3f42336
AC
27852004-07-28 Andrew Cagney <cagney@gnu.org>
2786
2787 * cli/cli-decode.c (add_setshow_cmd): Delete function.
2788 (add_setshow_cmd_full): Make static.
2789 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
2790 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
2791 * cli/cli-decode.c (add_setshow_filename_cmd)
2792 (add_setshow_string_cmd): New functions.
2793 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
2794 * mips-tdep.c (_initialize_mips_tdep): Update.
2795 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
2796 * cli/cli-logging.c (_initialize_cli_logging): Update.
2797 * complaints.c (_initialize_complaints): Update.
2798 * remote.c (_initialize_remote): Update.
2799
3b64bf98
AC
28002004-07-28 Andrew Cagney <cagney@gnu.org>
2801
2802 * cli/cli-decode.c (add_setshow_zinteger_cmd)
2803 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
2804 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
2805 print parameters. Make string parameters constant.
2806 * command.h: Update. Update copyright.
2807 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
2808 * observer.c (_initialize_observer): Ditto.
2809 * frame.c (_initialize_frame): Ditto.
2810 * complaints.c (_initialize_complaints): Ditto.
2811 * maint.c (_initialize_maint_cmds): Ditto.
2812 * target.c (initialize_targets): Ditto.
2813 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
2814 * infcall.c (_initialize_infcall): Ditto.
2815 * arm-tdep.c (_initialize_arm_tdep): Ditto.
2816 * m32r-rom.c (_initialize_m32r_rom): Ditto.
2817 * remote-rdi.c (_initialize_remote_rdi): Ditto.
2818 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
2819 * mips-tdep.c (_initialize_mips_tdep): Ditto.
2820
e9667a65
AC
28212004-07-28 Andrew Cagney <cagney@gnu.org>
2822
54a5b07d
AC
2823 * gdbtypes.c (lookup_primitive_typename): Delete function.
2824 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
2825 * ada-lex.l: Use language_lookup_primitive_type_by_name.
2826 * gdbtypes.c (lookup_typename): Ditto.
2827 * f-exp.y (yylex): Ditto.
2828 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
2829
e9667a65
AC
2830 * scm-lang.c (c_builtin_types): Delete extern declaration.
2831 (scm_language_defn): Replace
2832 string_char_type and primitive_type_vector with
2833 la_language_arch_info.
2834 * jv-lang.c (java_language_defn): Replace
2835 string_char_type and primitive_type_vector with
2836 la_language_arch_info.
2837 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
2838 c_builtin_types in comment.
2839 * c-lang.h (struct language_arch_info): Declare opaque.
2840 (c_language_arch_info): Declare.
2841 (c_builtin_types): Delete declaration.
2842 * c-lang.c (c_language_arch_info): Set string_char_type to
2843 builtin_char, not builtin_true_char. Make global.
2844 (c_builtin_types): Delete array.
2845 (asm_language_defn, minimal_language_defn): Replace
2846 string_char_type and primitive_type_vector with
2847 la_language_arch_info.
2848
685419e2
AC
28492004-07-28 Andrew Cagney <cagney@gnu.org>
2850
2851 * gdbtypes.h (struct builtin_type): Rename true_char to
2852 builtin_true_char.
2853 * gdbtypes.c (gdbtypes_post_init): Update.
2854 * c-lang.c (arch_info): New function.
2855 (enum c_primitive_types): New enum.
2856 (c_language_defn): Instead of string_char_type and
2857 primitive_type_vector set la_language_arch_info.
2858
5a44ea29
AC
28592004-07-28 Andrew Cagney <cagney@gnu.org>
2860
2861 * language.h (struct language_arch_info): Fix typo
2862 s/primative/primitive/.
2863 * gdbtypes.c (lookup_primitive_typename): Ditto.
2864 * language.c (language_lookup_primitive_type_by_name)
2865 (unknown_language_arch_info): Ditto.
2866
f290d38e
AC
28672004-07-27 Andrew Cagney <cagney@gnu.org>
2868
2869 * defs.h (enum language): Add nr_languages.
2870 * language.h (struct language_arch_info): Define.
2871 (struct language_defn): Add la_language_arch_info.
2872 (language_lookup_primative_type_by_name): Declare.
2873 (language_string_char_type): Declare.
2874 * language.c (_initialize_language, language_gdbarch_post_init)
2875 (struct language_gdbarch, language_gdbarch_data): Implement
2876 per-architecture language information.
2877 (unknown_language_arch_info, language_string_char_type)
2878 (language_lookup_primative_type_by_name): New functions.
2879 (unknown_language_defn, auto_language_defn)
2880 (local_language_defn): Set la_language_arch_info to
2881 unknown_language_arch_info.
2882 (unknown_builtin_types): Delete.
2883 * gdbtypes.c (lookup_primitive_typename): Use
2884 language_lookup_primative_type_by_name.
2885 (create_string_type): Use language_string_char_type.
2886 * values.c (value_from_string): Use language_string_char_type.
2887 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
2888 * p-lang.c (pascal_language_defn): Ditto.
2889 * m2-lang.c (m2_language_defn): Ditto.
2890 * jv-lang.c (java_language_defn): Ditto.
2891 * objc-lang.c (objc_language_defn): Ditto.
2892 * f-lang.c (f_language_defn): Ditto.
2893 * c-lang.c (c_language_defn, cplus_language_defn)
2894 (asm_language_defn, minimal_language_defn): Ditto.
2895
000177f0
AC
28962004-07-27 Andrew Cagney <cagney@gnu.org>
2897
2898 * gdbtypes.h (struct builtin_type): Declare.
2899 (builtin_type): Declare.
2900 * d10v-tdep.c (d10v_register_type): Use builtin_type.
2901 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
2902 (gdbtypes_post_init): New function.
2903 (builtin_type): New function.
2904
e22f895c
KI
29052004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
2906
2907 * remote-m32r-sdi.c: Fix breakpoint bug.
2908 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
2909 recv_char_data, recv_long_data): New functions to replace communication
2910 sequences.
2911
536517dd
MC
29122004-07-26 Michael Chastain <mec.gnu@mindspring.com>
2913
2914 Document PR threads/1650.
2915 * PROBLEMS (Threads): Document problem with many threads
2916
a0a44d18
AC
29172004-07-26 Andrew Cagney <cagney@gnu.org>
2918
2919 * gdb-mi.el: Move from here ...
2920 * mi/gdb-mi.el: ... to here.
2921
7ac4ac06
AC
29222004-07-26 Andrew Cagney <cagney@gnu.org>
2923
2924 Problem reported by Ashley Pittman <ashley@quadrics.com>.
2925 * main.c (captured_main): When in batch mode always detach.
2926
a1b461bf
AC
29272004-07-26 Andrew Cagney <cagney@gnu.org>
2928
2929 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
2930 and h8300 as broken.
2931 * NEWS: END-OF-LIFE frame compatibility module.
2932 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
2933 specific comments.
2934
cb1a6d5f
AC
29352004-07-26 Andrew Cagney <cagney@gnu.org>
2936
2937 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
2938 * xcoffsolib.c (_initialize_xcoffsolib): Update.
2939 * wince.c (_initialize_wince): Update.
2940 * win32-nat.c (_initialize_win32_nat): Update.
2941 * varobj.c (_initialize_varobj): Update.
2942 * valops.c (_initialize_valops): Update.
2943 * utils.c (initialize_utils, initialize_utils): Update.
2944 * tui/tui-win.c (_initialize_tui_win): Update.
2945 * top.c (init_main): Update.
2946 * symfile.c (_initialize_symfile): Update.
2947 * source.c (_initialize_source): Update.
2948 * somsolib.c (_initialize_som_solib): Update.
2949 * solib.c (_initialize_solib): Update.
2950 * solib-frv.c (_initialize_frv_solib): Update.
2951 * serial.c (_initialize_serial): Update.
2952 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
2953 * remote.c (_initialize_remote, _initialize_remote): Update.
2954 * remote-vx.c (_initialize_vx): Update.
2955 * remote-utils.c (_initialize_sr_support): Update.
2956 * remote-sds.c (_initialize_remote_sds): Update.
2957 * remote-mips.c (_initialize_remote_mips): Update.
2958 * remote-e7000.c (_initialize_remote_e7000): Update.
2959 * proc-api.c (_initialize_proc_api): Update.
2960 * printcmd.c: Update.
2961 * parse.c (_initialize_parse): Update.
2962 * pa64solib.c (_initialize_pa64_solib): Update.
2963 * p-valprint.c (_initialize_pascal_valprint): Update.
2964 * monitor.c (_initialize_remote_monitors): Update.
2965 * mips-tdep.c (_initialize_mips_tdep): Update.
2966 * mcore-tdep.c (_initialize_mcore_tdep): Update.
2967 * maint.c (_initialize_maint_cmds): Update.
2968 * lin-lwp.c (_initialize_lin_lwp): Update.
2969 * language.c (_initialize_language): Update.
2970 * kod.c (_initialize_kod): Update.
2971 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
2972 * i386-tdep.c (_initialize_i386_tdep): Update.
2973 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
2974 * gdbarch.sh: Update.
2975 * gdbarch.c: Re-generate.
2976 * gdb-events.sh: Update.
2977 * gdb-events.c: Re-generate.
2978 * frame.c (_initialize_frame): Update.
2979 * exec.c: Update.
2980 * demangle.c (_initialize_demangler): Update.
2981 * dcache.c (_initialize_dcache): Update.
2982 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
2983 * cp-valprint.c (_initialize_cp_valprint): Update.
2984 * corefile.c (_initialize_core): Update.
2985 * command.h: Update.
2986 * cli/cli-decode.h: Update.
2987 * cli/cli-cmds.c (init_cli_cmds): Update.
2988 * charset.c (_initialize_charset): Update.
2989 * breakpoint.c (_initialize_breakpoint): Update.
2990 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
2991 * alpha-tdep.c (_initialize_alpha_tdep): Update.
2992 * aix-thread.c (_initialize_aix_thread): Update.
2993
b4632131
MK
29942004-07-24 Mark Kettenis <kettenis@gnu.org>
2995
2996 Partial fix for PR backtrace/1718.
2997 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
2998 that GCC migrates into the prolugue. Don't handle any
2999 instructions that clobber %ebx.
3000
822c9732
AC
30012004-07-23 Andrew Cagney <cagney@gnu.org>
3002
3003 Use regcache_raw_collect instead of regcache_collect.
3004 * regcache.h (regcache_collect): Delete declaration.
3005 * regcache.c (regcache_colect): Delete function.
3006 * win32-nat.c (do_child_store_inferior_registers): Update.
3007 * sol-thread.c (sol_thread_store_registers): Update.
3008 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
3009 * rs6000-nat.c (store_register): Update.
3010 * remote.c (store_register_using_P, remote_store_registers): Update.
3011 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
3012 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
3013 (fill_vrregset, store_spe_registers, fill_gregset)
3014 (fill_gregset): Update.
3015 * nto-procfs.c (procfs_store_registers): Update.
3016 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
3017 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
3018 * m68klinux-nat.c (store_register, fill_gregset): Update.
3019 * m68k-tdep.c (fill_gregset): Update.
3020 * infptrace.c (store_register): Update.
3021 * i386-nto-tdep.c (i386nto_regset_fill): Update.
3022 * i386-linux-nat.c (store_register, fill_gregset): Update.
3023 * hppa-linux-nat.c (fill_gregset): Update.
3024 * go32-nat.c (store_register): Update.
3025 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
3026 (store_fp_regs): Update.
3027 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
3028 (store_nwfpe_extended, store_fpregister, store_fpregs)
3029 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
3030 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
3031 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
3032 (store_regs_user_thread, store_regs_kernel_thread): Update.
3033
32b05c07
MK
30342004-07-24 Mark Kettenis <kettenis@gnu.org>
3035
3036 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
3037 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
3038 encoding.
3039 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
3040 member of `struct comp_unit'.
3041
8567c30f
AC
30422004-07-23 Andrew Cagney <cagney@gnu.org>
3043
3044 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
3045 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
3046
f6da8dd8
MH
30472004-07-23 Martin Hunt <hunt@redhat.com>
3048 Kevin Buettner <kevinb@redhat.com>
3049
3050 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
3051 alignment was being added to the offset instead of multiplied.
3052
bd921882
MK
30532004-07-23 Mark Kettenis <kettenis@gnu.org>
3054
24f033e8
MK
3055 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
3056 changed signal trampoline in OpenBSD 3.5-current.
3057
90f3cecd
MK
3058 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
3059 <machine/pcb.h> and "bsd-kvm.h".
3060 (sparc64nbsd_supply_pcb): New function.
3061 (_initialize_sparc64nbsd_nat): Renamed from
3062 _initialize_sparcnbsd_nat. Enable libkvm interface.
3063 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
3064 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
3065 (LOADLIBES): New variable.
3066
a4954a62
MK
3067 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
3068
bd921882
MK
3069 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
3070
23a6d369
AC
30712004-07-21 Andrew Cagney <cagney@gnu.org>
3072
3073 Use regcache_raw_supply instead of supply_register.
3074 * regcache.h (supply_register): Delete declaration.
3075 * regcache.c (supply_register): Delete function.
3076 * wince.c (do_child_fetch_inferior_registers): Update.
3077 * win32-nat.c (do_child_fetch_inferior_registers)
3078 (fetch_elf_core_registers): Update.
3079 * v850ice.c (v850ice_fetch_registers): Update.
3080 * thread-db.c (thread_db_store_registers): Update.
3081 * sol-thread.c (sol_thread_store_registers): Update.
3082 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
3083 * rs6000-nat.c (fetch_register): Update.
3084 * rom68k-rom.c (rom68k_supply_one_register): Update.
3085 * remote.c (remote_wait, remote_async_wait): Update.
3086 * remote-st.c (get_hex_regs): Update.
3087 * remote-sim.c (gdbsim_fetch_register): Update.
3088 * remote-sds.c (sds_fetch_registers): Update.
3089 * remote-rdp.c (remote_rdp_fetch_register): Update.
3090 * remote-rdi.c (arm_rdi_fetch_registers): Update.
3091 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
3092 * remote-m32r-sdi.c (m32r_fetch_register): Update.
3093 * remote-hms.c (init_hms_cmds): Update.
3094 * remote-est.c (init_est_cmds): Update.
3095 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
3096 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
3097 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
3098 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
3099 (fetch_register, supply_vrregset, supply_vrregset)
3100 (fetch_spe_registers): Update.
3101 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
3102 * monitor.c (monitor_supply_register): Update.
3103 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
3104 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
3105 (mipsnbsd_supply_fpreg): Update.
3106 * mips-nat.c (fetch_inferior_registers)
3107 (fetch_core_registers): Update.
3108 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
3109 (supply_fpregset, mips64_supply_gregset)
3110 (mips64_supply_fpregset): Update.
3111 * m68klinux-nat.c (fetch_register, supply_gregset)
3112 (supply_fpregset): Update.
3113 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
3114 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
3115 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
3116 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
3117 * infptrace.c (fetch_register): Update.
3118 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
3119 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
3120 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
3121 (gnu_fetch_registers, gnu_store_registers): Update.
3122 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
3123 * i386-linux-nat.c (fetch_register, supply_gregset)
3124 (dummy_sse_values): Update.
3125 * hpux-thread.c (hpux_thread_fetch_registers): Update.
3126 * hppah-nat.c (fetch_register): Update.
3127 * hppa-linux-nat.c (fetch_register, supply_gregset)
3128 (supply_fpregset): Update.
3129 * go32-nat.c (fetch_register): Update.
3130 * dve3900-rom.c (fetch_bitmapped_register)
3131 (_initialize_r3900_rom): Update.
3132 * cris-tdep.c (supply_gregset): Update.
3133 * abug-rom.c (init_abug_cmds): Update.
3134 * core-aout.c (fetch_core_registers): Update.
3135 * armnbsd-nat.c (supply_gregset, supply_fparegset)
3136 (fetch_register, fetch_fp_register): Update.
3137 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
3138 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
3139 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
3140 * alphanbsd-tdep.c (fetch_core_registers): Update.
3141 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
3142 * alpha-nat.c (fetch_osf_core_registers)
3143 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
3144 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
3145 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
3146
73cc75f3
AC
31472004-07-21 Andrew Cagney <cagney@gnu.org>
3148
3149 * PROBLEMS: Mention breakpoints/1702.
3150 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
3151 that is known to work.
3152
a53c66de
AC
31532004-07-21 Andrew Cagney <cagney@gnu.org>
3154
3155 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
3156 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
3157 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
3158 (handle_inferior_event): Wrap call to deprecated
3159 IGNORE_HELPER_CALL in #ifdef.
3160 * config/mips/tm-nbsd.h: Update.
3161
708ff411
JB
31622004-07-20 Jim Blandy <jimb@redhat.com>
3163
412b3060
JB
3164 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
3165 bfd_mach_ppc has no segment registers.
3166
13ac140c
JB
3167 Include PowerPC SPR numbers for special-purpose registers.
3168 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
3169 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
3170 new member in initializer.
3171 (S, S4, SN4, S64): New macros for defining special-purpose
3172 registers.
3173 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
3174 registers_403, registers_403GC, registers_505, registers_860,
3175 registers_601, registers_602, registers_603, registers_604,
3176 registers_750, registers_e500): Use them.
3177
708ff411
JB
3178 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
3179 replace references with expression used to initialize variable.
3180
1f602b35
AC
31812004-07-20 Andrew Cagney <cagney@gnu.org>
3182
3183 * breakpoint.c (deprecated_read_memory_nobpt): Rename
3184 read_memory_nobpt.
3185 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
3186 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
3187 (s390_sigtramp_frame_sniffer): Update.
3188 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
3189 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
3190 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
3191 (mips32_fetch_instruction): Update.
3192 * mcore-tdep.c (get_insn): Update.
3193 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
3194 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
3195 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
3196 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3197 (i386_linux_rt_sigtramp_start): Update.
3198 * i386-linux-nat.c (child_resume): Update.
3199 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
3200 * hppa-linux-tdep.c (insns_match_pattern): Update.
3201 * gdbcore.h: Update.
3202 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
3203 * frame.c (safe_frame_unwind_memory): Update.
3204 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
3205 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
3206 * alpha-tdep.c (alpha_read_insn): Update.
3207
2cd8546d
AC
32082004-07-20 Andrew Cagney <cagney@gnu.org>
3209
3210 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
3211 containing both bytes and mask. Add "frame_type".
3212 * tramp-frame.c (tramp_frame_start): Update.
3213 (tramp_frame_prepend_unwinder): Update.
3214 * mips-linux-tdep.c (mips_linux_o32_sigframe)
3215 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
3216 (mips_linux_n64_rt_sigframe): Update. Make "static const".
3217 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
3218
f928dd62
EZ
32192004-07-19 Eli Zaretskii <eliz@gnu.org>
3220
3221 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
3222 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
3223 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
3224 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
3225
d5c560f7
AC
32262004-07-17 Andrew Cagney <cagney@gnu.org>
3227
860660cb
AC
3228 * NEWS, PROBLEMS: Update for 6.2.
3229
8c266f54
AC
3230 * README: Update to 6.2.
3231
a552edd9
AC
3232 * utils.c (xvasprintf): Call xstrvprintf.
3233
c4a172b5
AC
3234 * parse.c: Update copyright.
3235 (null_post_parser): Eliminate ARGSUSED.
3236
da745b36
AC
3237 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
3238 * tui/tui-win.c (tui_get_cmd_list): Ditto.
3239 * symfile-mem.c (_initialize_symfile_mem): Ditto.
3240
9cbc6ef0
AC
3241 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
3242 * ppc-linux-nat.c: Use "Linux kernel".
3243 * hppa-linux-tdep.c: Use GNU/Linux.
3244 * hppa-linux-nat.c: Use GNU/Linux.
3245 * dwarfread.c: Add [sic] to use of Linux.
3246
1b89295f
AC
3247 * hppa-linux-nat.c: Do not include <string.h>.
3248 (supply_fpregset): Remove "register" attribute.
3249
d5c560f7
AC
3250 * solib-frv.c (fetch_loadmap): Use xfree, not free.
3251
7ddd7709
MK
32522004-07-17 Mark Kettenis <kettenis@gnu.org>
3253
b1d19a62
MK
3254 * configure.in: Define _MSE_INT_H on Solaris 9 too.
3255 * configure, config.in: Regenerated.
3256
7ddd7709
MK
3257 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
3258 "bsd-kvm.h".
3259 (vaxbsd_supply_pcb): New function.
3260 (_initialize_vaxbsd_nat): New prototype and function.
3261 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
3262 solib-sunos.o.
3263 (LOADLIBES): New variable.
3264 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3265 (LOADLIBES): New variable.
3266 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3267 (LOADLIBES): New variable.
3268 * Makefile.in (vaxbsd-nat.o): Update dependencies.
3269
2c07db7a
AC
32702004-07-16 Andrew Cagney <cagney@gnu.org>
3271
3272 * defs.h (event_loop_p): Replace variable declaration with macro,
3273 always 1.
3274 * main.c (captured_main): Delete options "-async" and "-noasync".
3275 (event_loop_p): Delete variable.
3276 * NEWS: Mention that "-async" and "-noasync" were removed.
3277
717eb1cf
AC
32782004-07-16 Andrew Cagney <cagney@gnu.org>
3279
3280 * remote-m32r-sdi.c: Re-indent.
3281
c101bc14
JB
32822004-07-16 Jim Blandy <jimb@redhat.com>
3283
5109a438
JB
3284 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
3285 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
3286 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
3287 missing MPC823 SPRs.
3288 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
3289 incorrect. (This was corrected in GDB's register name tables on
3290 2004-07-14.)
3291
c101bc14
JB
3292 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
3293 should be "esasrr" ("ESA Save and Restore Register").
3294
7ce450bd
AC
32952004-07-16 Andrew Cagney <cagney@gnu.org>
3296
3297 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
3298 calls, no longer applicable. Update comments and rename parameter
3299 "step_frame" to "return_frame".
3300
ca73dd9d
AC
33012004-07-16 Andrew Cagney <cagney@gnu.org>
3302
3303 * frame.c (fprint_field): New function.
3304 (fprint_frame_id): Use fprint_field.
3305
31941f6d
JB
33062004-07-15 Joel Brobecker <brobecker@gnat.com>
3307
3308 * ada-lang.c (ada_language_defn): Remove commented out code.
3309
f86a7158
JB
33102004-07-15 Jim Blandy <jimb@redhat.com>
3311
3312 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
3313 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
3314
c24791ec
JB
33152004-07-14 Jim Blandy <jimb@redhat.com>
3316
29bb1356
JB
3317 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
3318
cc98b5cc
JB
3319 * ppc-tdep.h (ppc_num_vrs): New enum constant.
3320
8f088af7
JB
3321 * ppc-tdep.h (ppc_num_srs): New enum constant.
3322
0ea0ec5f
JB
3323 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
3324 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
3325 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
3326 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
3327 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
3328 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
3329 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
3330 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
3331 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
3332 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
3333 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
3334 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
3335 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
3336 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
3337 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
3338 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
3339 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
3340 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
3341 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
3342 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
3343 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
3344 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
3345 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
3346 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
3347 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
3348 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
3349 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
3350 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
3351 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
3352 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
3353 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
3354 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
3355 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
3356 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
3357 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
3358 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
3359 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
3360 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
3361 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
3362 special-purpose register numbers.
3363
c24791ec
JB
3364 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
3365 manual mentions 'md_twb', but many mention 'm_twb', and at that
3366 point in the register list.)
3367
d833db3b
AC
33682004-07-14 Andrew Cagney <cagney@gnu.org>
3369
3370 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
3371 instead of "internal-error".
3372
080228b2
JB
33732004-07-10 Joel Brobecker <brobecker@gnat.com>
3374
3375 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
3376 that was inserted inside a comment.
3377
c268433a
RC
33782004-07-10 Randolph Chung <tausq@debian.org>
3379
3380 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
3381 function.
3382 (hppa_hpux_push_dummy_code): New function.
3383 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
3384 Set find_global_pointer method.
3385
71009278
MK
33862004-07-10 Mark Kettenis <kettenis@gnu.org>
3387
3388 * NEWS: Mention BSD libkvm interface.
3389
b2fa5097
MS
33902004-07-10 Michael Snyder <msnyder@redhat.com>
3391
3392 * symfile.c (generic_load): Comment typo.
3393 * stack.c (get_selected_block): Ditto.
3394 * regcache.c (regcache_cooked_read): Ditto.
3395 * monitor.c (monitor_debug): Ditto.
3396 * mips-tdep.c (mips_read_pc): Ditto.
3397 * i386-linux-nat.c (ps_get_thread_area): Ditto.
3398 * gdb_mbuild.sh: Ditto.
3399 * gdbarch.sh: Ditto.
3400 * gdbarch.h: Ditto.
3401
c3e5cd34
PH
34022004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
3403
8a2225b2
PH
3404 * ada-tasks.c: Remove file.
3405
c3e5cd34
PH
3406 Remove ARI problems:
3407
3408 * ada-exp.y (write_var_from_sym): Reformat to put operator at
3409 beginning of line.
3410
3411 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
3412 Add comment.
3413 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
3414 (MIN_OF_SIZE): Rename min_of_size. Add comment.
3415 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
3416 (UMIN_OF_SIZE): Remove.
3417 (max_of_type): New function to replace orphan macro in gdbtypes.h
3418 (min_of_type): Ditto.
3419 (discrete_type_high_bound): Use max_of_type.
3420 (discrete_type_low_bound): Use min_of_type.
3421 (possible_user_operator_p): Move operator to beginning of line.
3422 (ada_is_variant_part): Ditto.
3423 (ensure_lval): Rewrite to avoid deprecated operations.
3424 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
3425 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
3426 (ada_enum_name): Remove assignments in 'if' statements.
3427 (build_ada_types): Add gdbarch parameter.
3428 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
3429 with gdbarch_data_register_post_init.
3430 Use add_setshow_uinteger_cmd rather than add_set_cmd and
3431 add_show_from_set.
3432
3433 * ada-valprint.c (inspect_it): Remove declaration.
3434 (repeat_count_threshold): Remove declaration.
3435 (ada_print_floating): Remove assignments in 'if' statements.
3436 (print_str): Move operator to beginning of line.
3437
61ce229a
JB
34382004-07-08 Jim Blandy <jimb@redhat.com>
3439
3440 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
3441
09bcec80
BR
34422004-07-08 Bob Rossi <bob@brasko.net>
3443
3444 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
3445
31c27f77
JJ
34462004-07-06 Jeff Johnston <jjohnstn@redhat.com>
3447
3448 * language.h (struct_language_defn): Add new function pointer:
3449 la_class_name_from_physname. Also add new prototype for
3450 language_class_name_from_physname.
3451 * language.c (language_class_name_from_physname): New function.
3452 (unk_lang_class_name): Ditto.
3453 (unknown_language_defn, auto_language_defn): Change
3454 to add unk_lang_class_name function pointer for
3455 la_class_name_from_physname.
3456 (local_language_defn): Ditto.
3457 * dwarf2read.c (guess_structure_name): Change to call
3458 language_class_name_from_physname.
3459 (determine_class_name): Ditto.
3460 * cp-support.c (class_name_from_physname): Renamed.
3461 (cp_class_name_from_physname): New name of function.
3462 * cp-support.h: Ditto.
3463 * c-lang.c (c_language_defn): Change to add NULL
3464 for class_name_from_physname function pointer.
3465 (cplus_language_defn): Change to add cp_class_name_from_physname.
3466 * jv-lang.c (java_class_name_physname): New function.
3467 (java_find_last_component): New static routine.
3468 (java_language_defn): Add java_class_name_from_physname pointer.
3469 * ada-lang.c (ada_language_defn): Change to add NULL
3470 for class_name_from_physname function pointer.
3471 * f-lang.c (f_language_defn): Ditto.
3472 * m2-lang.c (m2_language_defn): Ditto.
3473 * objc-lang.c (objc_language_defn): Ditto.
3474 * p-lang.c (pascal_language_defn): Ditto.
3475 * scm-lang.c (scm_language_defn): Ditto.
3476
ee28ca0f
AC
34772004-07-06 Andrew Cagney <cagney@gnu.org>
3478
3479 Patch from Bart Robinson.
3480 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
3481 (O_LARGEFILE): Define to 0, if not defined.
3482
fdb1bf9d
MK
34832004-07-03 Mark Kettenis <kettenis@gnu.org>
3484
cb162ff6
MK
3485 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
3486 <machine/pcb.h> and "bsd-kvm.h".
3487 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
3488 (m68kbsd_supply_pcb): New function.
3489 (_initialize_m68kbsd_nat): New prototype and function.
3490 * Makefile.in (m68kbsd-nat.o): Update dependencies.
3491 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3492 (LOADLIBES): New variable.
3493 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3494 (LOADLIBES): New variable.
3495
fdb1bf9d
MK
3496 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
3497
963c4174
MK
34982004-07-03 Mark Kettenis <kettenis@gnu.org>
3499
3500 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
3501 <sys/proc.h>.
3502 (bsd_kvm_cmdlist): New variable.
3503 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
3504 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
3505 command and "kvm proc" command.
3506 * Makefile.in (bsd-kvm.o): Update dependencies.
3507
533f1d8f
MK
35082004-07-02 Mark Kettenis <kettenis@gnu.org>
3509
3510 * osabi.c: Update copyright year.
3511 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
3512 notes if EI_OSABI is set to ELFOSABI_HPUX.
3513
6780dcde
MS
35142004-07-01 Michael Snyder <msnyder@redhat.com>
3515
3516 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
3517 that seems to have gotten whacked out of line.
3518
67bebe79
MK
35192004-07-01 Mark Kettenis <kettenis@gnu.org>
3520
3521 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
3522 code.
3523
0b5d8877
PH
35242004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3525
3526 * ada-lang.c (decode_packed_array): Minor change to comment.
3527 (ada_value_slice_ptr): New function.
3528 (ada_value_slice): New function.
3529 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
3530 test. Don't know why it is there.
3531 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
3532 to avoid dereferencing huge arrays from which one is slicing.
3533 (empty_array): Correct to return an array rather than
3534 a subrange value.
3535 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
3536 on empty arrays (let'em use 'FIRST instead).
3537
19c1ef65
PH
35382004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3539
3540 Address complaints from gdb_ari.sh:
3541
3542 * ada-exp.y: Include gdb_string.h rather than string.h.
3543 (convert_char_literal): Reformat declaration.
3544 * ada-lang.h: Include opaque struct declaration for struct frame_info.
3545 * ada-lex.l: Change use of free to xfree (the macro would do so
3546 anyway, but this is harmless).
3547 Include gdb_string.h rather than string.h.
3548 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
3549
3550 * ada-lang.c (parse): Remove K&Rism in parameter list.
3551 (is_name_suffix): Correct Linux => GNU/Linux in comment.
3552
d81cbc94
MK
35532004-06-30 Mark Kettenis <kettenis@gnu.org>
3554
3555 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
3556 dead code.
3557
07681759
MK
35582004-06-30 Mark Kettenis <kettenis@gnu.org>
3559
3560 * alphabsd-nat.c: Update copyright year.
3561 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
3562
f7948b5f
JB
35632004-06-29 Joel Brobecker <brobecker@gnat.com>
3564
6e0cdd28 3565 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
3566 (i386_cygwin_in_solib_call_trampoline): New function.
3567 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
3568 and skip_trampoline_code gdbarch methods.
3569
8f113c9a
JB
35702004-06-29 Jim Blandy <jimb@redhat.com>
3571
3572 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
3573 name actually used in the dependency lists.
3574
97dc871c
RC
35752004-06-29 Randolph Chung <tausq@debian.org>
3576
3577 * NEWS (New native configurations): Mention GNU/Linux/hppa.
3578
47216e51
CV
35792004-06-29 Corinna Vinschen <vinschen@redhat.com>
3580
3581 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 3582 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
3583 functionality.
3584
e623b504
AC
35852004-06-28 Andrew Cagney <cagney@gnu.org>
3586
3587 * defs.h (xstrvprintf): Declare.
3588 * utils.c (xstrvprintf): New function.
3589 (internal_vproblem, xstrprintf, xasprintf)
3590 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
3591 * serial.c (serial_printf): Ditto.
3592 * complaints.c (vcomplaint): Ditto.
3593
79acc9b3
CV
35942004-06-29 Corinna Vinschen <vinschen@redhat.com>
3595
3596 * infcmd.c (attach_command): Move call to target_terminal_inferior
3597 behind loading symbol table.
3598
1daf35d9
AC
35992004-06-28 Andrew Cagney <cagney@gnu.org>
3600
3601 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
3602 change - add back extern deprecated_ui_loop_hook declaration.
3603
b435e160
AC
36042004-06-28 Andrew Cagney <cagney@gnu.org>
3605
3606 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
3607 xstrprintf.
3608 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
3609 (c_value_of_variable): Ditto.
3610 * utils.c (internal_vproblem): Ditto.
3611 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
3612 * remote.c (add_packet_config_cmd): Ditto.
3613 * remote-rdp.c (rdp_set_command_line): Ditto.
3614 * regcache.c (regcache_dump): Ditto.
3615 * frv-tdep.c (new_variant, new_variant): Ditto.
3616 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
3617 (fbsd_find_memory_regions): Ditto.
3618 * breakpoint.c (create_thread_event_breakpoint)
3619 (create_breakpoints): Ditto.
3620 * aix-thread.c (aix_thread_pid_to_str): Ditto.
3621 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
3622
06d5cf63
JB
36232004-06-28 Joel Brobecker <brobecker@gnat.com>
3624
3625 * ada-lang.c: Re-indent file, with some massaging to help indent
3626 a bit when the result is otherwise really too ugly.
3627
35809fad
UW
36282004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3629
3630 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
3631 code_addr_p and special_addr_p to 'unsigned int'.
3632
40e20472
MK
36332004-06-27 Mark Kettenis <kettenis@gnu.org>
3634
3635 * i386v4-nat.c: Update copyright year and tweak comment.
3636 (regmap): Remove trailing comma.
3637 (supply_gregset): Rename local variable i to regnum. Call
3638 regcache_raw_supply instead of supply_register.
3639 (fill_gregset): Rename argument regno to regnum. Call
3640 regcache_raw_collect instead of regcache_collect.
3641
12b0b6de
UW
36422004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3643
3644 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
3645 and special_addr_p.
3646 (frame_id_build, frame_id_build_special): Update comments.
3647 (frame_id_build_wild): New prototype.
3648 * frame.c (frame_id_build, frame_id_build_special): Fill in new
3649 struct frame_id fields.
3650 (frame_id_build_wild): New function.
3651 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
3652
47b42a3e
MK
36532004-06-27 Mark Kettenis <kettenis@gnu.org>
3654
3655 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
3656 hppabsd-tdep.c.
3657
1265e4aa
JB
36582004-06-27 Joel Brobecker <brobecker@gnat.com>
3659
3660 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
3661
76a01679
JB
36622004-06-27 Joel Brobecker <brobecker@gnat.com>
3663
3664 * ada-lang.c: Re-indent file.
3665
7aca490a
JB
36662004-06-27 Joel Brobecker <brobecker@gnat.com>
3667
3668 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
3669 (no_symtab_msg): Likewise.
3670
5e987968
AS
36712004-06-27 Andreas Schwab <schwab@suse.de>
3672
3673 * source.c: Fix whitespace.
3674
315c4276
MK
36752004-06-27 Mark Kettenis <kettenis@gnu.org>
3676
d15be926
MK
3677 * configure.in: Include <sys/param.h> for td_pcb test.
3678 * configure: Regenerated.
3679
9062529b
MK
3680 * i386nbsd-nat.c: New file.
3681 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
3682 i386obsd-nat.c and i386obsd-tdep.c.
3683 (i386nbsd-nat.o): New dependency.
3684 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
3685 bsd-kvm.o.
3686 (LOADLIBES): New variable.
3687 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
3688 bsd-kvm.o.
3689 (LOADLIBES): New variable.
3690
8010310e
MK
3691 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
3692 (LOADLIBES): New variable.
3693
efe1d7b9
MK
3694 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
3695 fetching from BSD_KVM_PADDR. Correctly lookup address for
3696 "_thread0".
3697
315c4276
MK
3698 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
3699 "bsd-kvm.h".
3700 (amd64fbsd_supply_pcb): New funcion.
3701 (_initialize_amd64fbsd_nat): Enable libkvm interface.
3702
399cfac6
DL
37032004-06-27 <david@streamline-computing.com>
3704
3705 Partial fix for PR cli/1056.
3706 * valarith.c: Check for zero in division and remainder
3707 evaluation.
3708
6235f9c8
MK
37092004-06-27 Mark Kettenis <kettenis@gnu.org>
3710
3711 * i387-tdep.c: Remove excessive whitespace.
3712
2726dafc
AC
37132004-06-26 Andrew Cagney <cagney@gnu.org>
3714
3715 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
3716 * gdb-events.h, gdb-events.c: Re-generate.
3717 * tui/tui-hooks.c (tui_install_hooks): Update.
3718 (tui_remove_hooks): Update.
3719 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
3720
0e56aeaf
MK
37212004-06-26 Mark Kettenis <kettenis@gnu.org>
3722
cb461069
MK
3723 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
3724 (gregset_t, fpregset_t): Remove typedefs.
3725 (REG_OFFSET): Rename argument.
3726 (amd64bsd_r_reg_offset): Rename from reg_offset.
3727 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
3728 Remove functions.
3729 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
3730 of reg_offset.
3731 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
3732
ecba89de
MK
3733 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
3734
4cd80476
MK
3735 * vax-tdep.c: Tweak comment.
3736
0e56aeaf
MK
3737 Add OpenBSD/hppa support.
3738 * NEWS (New native configurations): Mention OpenBSD/hppa.
3739 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
3740 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
3741 files.
3742 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
3743 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
3744 * configure.host: Add hppa*-*-openbsd*.
3745 * configure.tgt: Add hppa*-*-openbsd*.
3746
98bbd631
AC
37472004-06-25 Andrew Cagney <cagney@gnu.org>
3748
3749 * defs.h (deprecated_ui_loop_hook): Deprecated.
3750 * wince.c (child_wait): Update.
3751 * win32-nat.c (child_wait): Update.
3752 * v850ice.c (v850ice_wait): Update.
3753 * top.c (deprecated_ui_loop_hook): Update.
3754 * serial.h: Update.
3755 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
3756 (do_unix_readchar): Update.
3757 * ser-tcp.c (net_open): Update.
3758 * remote-sim.c (gdb_os_poll_quit): Update.
3759 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
3760
769d7dc4
AC
37612004-06-24 Andrew Cagney <cagney@gnu.org>
3762
3763 * defs.h (deprecated_pre_add_symbol_hook)
3764 (deprecated_post_add_symbol_hook): Deprecated.
3765 * symfile.c (symbol_file_add_with_addrs_or_offsets)
3766 (symbol_file_add_with_addrs_or_offsets): Update references.
3767
11c949aa
AC
37682004-06-24 Andrew Cagney <cagney@gnu.org>
3769
3770 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
3771 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
3772 * wince.c (ui_loop_hook): Delete extern declaration.
3773 * win32-nat.c (ui_loop_hook): Delete extern declaration..
3774 * v850ice.c (ui_loop_hook): Delete extern declaration..
3775 * ser-unix.c (ui_loop_hook): Delete extern declaration..
3776 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
3777 * remote-sim.c (ui_loop_hook): Delete extern declaration..
3778 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
3779 ui_loop_hook declaration.
3780
eedc19af
AC
37812004-06-24 Andrew Cagney <cagney@gnu.org>
3782
3783 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
3784 entry_func_highpc fields.
3785 * objfiles.c (init_entry_point_info): Do not clear
3786 entry_func_lowpc and entry_func_highpc.
3787 (objfile_relocate): Do not relocate entry_func_lowpc and
3788 entry_func_highpc.
3789 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
3790 entry_func_highpc.
3791 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
3792 entry_func_highpc.
3793 * blockframe.c (legacy_frame_chain_valid): Replace tests against
3794 entry_func_lowpc and entry_func_highpc with call to
3795 inside_entry_func.
3796
d47079be
MK
37972004-06-24 Mark Kettenis <kettenis@gnu.org>
3798
3799 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
3800 quad-precision floating point arguments in registers.
3801
2107e348
MK
38022004-06-24 Mark Kettenis <kettenis@gnu.org>
3803
3804 From Michael Mueller <m.mueller99@kay-mueller.de>:
3805 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
3806 account.
3807
46587c42
JJ
38082004-06-22 Jeff Johnston <jjohnstn@redhat.com>
3809
3810 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
3811 to -1.
3812 * breakpoint.c (bpstat_stop_status): Move check for ignoring
3813 untriggered watchpoints to a separate if clause. Update function
3814 comment regarding STOPPED_BY_WATCHPOINT argument.
3815
226f5cf4
JB
38162004-06-22 Jim Blandy <jimb@redhat.com>
3817
3818 * gdbarch.sh: Doc fix.
3819
f10683bb
MH
38202004-06-21 Martin Hunt <hunt@redhat.com>
3821 Kevin Buettner <kevinb@redhat.com>
3822
3823 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
3824 * mips-tdep.h (MIPS_SP_REGNUM): Define.
3825 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
3826 to set_gdbarch_sp_regnum(). Use cooked register number.
3827 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
3828
412d5987
AC
38292004-06-21 Andrew Cagney <cagney@gnu.org>
3830
3831 * gdbarch.sh: When the macro field is empty, do not generate a
3832 macro definition. When the macro field is "=", generate the macro
3833 name from the upper-case function name.
3834 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
3835 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
3836 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
3837 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
3838 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
3839 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
3840 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
3841 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
3842 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
3843 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
3844 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
3845 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
3846 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
3847 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
3848 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
3849 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
3850 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
3851 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
3852 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
3853 (DEPRECATED_USE_STRUCT_CONVENTION)
3854 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3855 (DEPRECATED_FRAME_INIT_SAVED_REGS)
3856 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
3857 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
3858 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
3859 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
3860 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
3861 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
3862 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
3863 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
3864 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
3865 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
3866 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
3867 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
3868 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
3869 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
3870 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
3871 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
3872
68908a3e
AC
38732004-06-21 Andrew Cagney <cagney@gnu.org>
3874
48f7351b
AC
3875 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
3876 macro name, and the function rather than macro value. Only wrap
3877 macro print statements in #ifdef. Move format logic to where it
3878 is needed.
3879 * gdbarch.c: Re-generate.
3880
283354d8
AC
3881 * gdbarch.sh (read): Delete "print_p" and "description", add
3882 "garbage_at_eol". Check for non-empty garbage at end-of-line.
3883 Delete references to print_p.
3884 (TARGET_ARCHITECTURE): Delete print predicate.
3885 * gdbarch.c: Re-generate.
3886
68908a3e
AC
3887 * gdbarch.sh: Check that multi-arch methods do not provide a
3888 macro.
3889 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
3890 (print_registers_info, print_float_info, print_vector_info)
3891 (adjust_breakpoint_address, remote_translate_xfer_address)
3892 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
3893 (address_class_type_flags_to_name, unwind_sp): Remove the macro
3894 name from the multi-arch definition.
3895
a2428dbe
AC
38962004-06-20 Andrew Cagney <cagney@gnu.org>
3897
3898 * gdbarch.sh: Sort by the function, instead of macro name.
3899 * gdbarch.c: Re-generate.
3900
750eb019
AC
39012004-06-20 Andrew Cagney <cagney@gnu.org>
3902
66d659b1
AC
3903 * gdbarch.sh: Use the function, instead of macro name in
3904 errors and the log file.
3905 (return_value): Remove stray ":" in spec.
3906
750eb019
AC
3907 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
3908 * gdbarch.h, gdbarch.c: Re-generate.
3909 * Makefile.in (arch-utils.o): Update dependencies.
3910 * values.c (using_struct_return): Move code calling
3911 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
3912 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
3913 to legacy_return_value, simplify.
3914 * infcmd.c (print_return_value): Move code calling
3915 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
3916 to legacy_return_value, simplify.
3917 * infcall.c (call_function_by_hand): Move code calling
3918 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
3919 * arch-utils.c: Update copyright. Include "gdbcore.h".
3920 (legacy_return_value): New function.
3921 * arch-utils.h: Update copyright.
3922 (legacy_return_value): Declare.
3923
b5622e8d
AC
39242004-06-20 Andrew Cagney <cagney@gnu.org>
3925
3926 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
3927 * gdbarch.h, gdbarch.c: Re-generate.
3928 * values.c (using_struct_return): Update call.
3929 * mcore-tdep.c: Update comment.
3930 * infcall.c (call_function_by_hand): Update comment.
3931 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3932 * arch-utils.h (always_use_struct_convention): Update.
3933 * v850-tdep.c (v850_gdbarch_init): Update.
3934 * sh64-tdep.c (sh64_gdbarch_init): Update.
3935 * sh-tdep.c (sh_gdbarch_init): Update.
3936 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3937 * mips-tdep.c (mips_gdbarch_init): Update.
3938 * mcore-tdep.c (mcore_gdbarch_init): Update.
3939 * m32r-tdep.c (m32r_gdbarch_init): Update.
3940 * ia64-tdep.c (ia64_gdbarch_init): Update.
3941 * h8300-tdep.c (h8300_gdbarch_init): Update.
3942 * frv-tdep.c (frv_gdbarch_init): Update.
3943 * cris-tdep.c (cris_gdbarch_init): Update.
3944 * arm-tdep.c (arm_gdbarch_init): Update.
3945 * alpha-tdep.c (alpha_gdbarch_init): Update.
3946
5191de37
MC
39472004-06-18 Michael Chastain <mec.gnu@mindspring.com>
3948
3949 * PROBLEMS: Add more specific information, and a work-around,
3950 for PR gdb/1458.
3951
782263ab
AC
39522004-06-18 Andrew Cagney <cagney@gnu.org>
3953
3954 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
3955 * gdbarch.h, gdbarch.c: Re-generate.
3956 * ada-lang.c (ada_finish_decode_line_1): Update.
3957 * infrun.c (handle_inferior_event): Update.
3958 * infcall.c (find_function_addr): Update.
3959 * linespec.c (minsym_found): Update.
3960 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
3961 Update.
3962 * blockframe.c (legacy_frameless_look_for_prologue): Update.
3963 * cli/cli-cmds.c (disassemble_command): Update.
3964 * vax-tdep.c (vax_gdbarch_init): Update.
3965
2f305df1
MK
39662004-06-18 Mark Kettenis <kettenis@gnu.org>
3967
3968 * i386-tdep.c (i386_collect_fpregset): Fix comment.
3969
e5fe55f7
AC
39702004-06-17 Andrew Cagney <cagney@gnu.org>
3971
3972 GDB 6.1.1 released from the GDB 6.1 branch.
3973 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
3974 * PROBLEMS: Ditto.
3975
473b7be6
DJ
39762004-06-16 Daniel Jacobowitz <dan@debian.org>
3977
3978 PR gdb/1658
3979 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
3980 operation as a uleb128. Found by Michael Coulter.
3981
96d887e8
PH
39822004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
3983
3984 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
3985 make it non-static.
3986 * ada-lang.h (task_control_block): declaration moved from ada-task.c
3987 to ada-lang.h; this is needed to be able to implement the kill command
3988 in multi-task mode.
3989 (task_ptid): Ditto.
3990 (task_entry): Ditto.
3991 (task_list): Ditto.
3992 (ada_build_task_list): Ditto.
3993
3994 * ada-lang.c: Conditionalize routines and data structures related
3995 to breakpoints, exceptions, completion, and symbol caching on
3996 GNAT_GDB, since these are not yet used in the submitted public sources.
3997 (ada_main_name): Editorial: Move definition out of exception-related
3998 code.
3999
31eef181
AC
40002004-06-15 Andrew Cagney <cagney@gnu.org>
4001
4002 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
4003 deprecated_pc_in_call_dummy.
4004
2c500098
AM
40052004-06-15 Alan Modra <amodra@bigpond.net.au>
4006
4007 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
4008 bfd_get_section_size_before_reloc or _raw_size.
4009 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
4010 * dwarf2read.c (dwarf2_locate_sections): Likewise.
4011 (dwarf2_read_section): Likewise.
4012 * elfread.c (elf_locate_sections): Likewise.
4013 * gcore.c (derive_heap_segment): Likewise.
4014 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
4015 * remote-e7000.c (e7000_load): Likewise.
4016 * remote-m32r-sdi.c (m32r_load): Likewise.
4017 * remote-mips.c (mips_load_srec): Likewise.
4018 (pmon_load_fast): Likewise.
4019 * remote.c (compare_sections_command): Likewise.
4020 * symfile.c (add_section_size_callback): Likewise.
4021 (load_section_callback): Likewise.
4022 (pc_in_unmapped_range): Likewise.
4023 (pc_in_mapped_range): Likewise.
4024 (sections_overlap): Likewise.
4025 (list_overlays_command): Likewise.
4026 (simple_overlay_update_1): Likewise.
4027 (simple_overlay_update): Likewise.
4028 * tracepoint.c (remote_set_transparent_ranges): Likewise.
4029 * win32-nat.c (core_section_load_dll_symbols): Likewise.
4030
90f943f1
RC
40312004-06-14 Randolph Chung <tausq@debian.org>
4032
4033 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
4034 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
4035 static.
4036 (hppa_hpux_inferior_created): New function.
4037 (hppa_hpux_init_abi): Register observer.
4038 * symfile.c (hp_cxx_exception_support_initialized)
4039 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
4040 (symbol_file_add_main_1, symbol_file_clear): Likewise.
4041
700c15aa
RC
40422004-06-14 Randolph Chung <tausq@debian.org>
4043
3973a7d3
AC
4044 * MAINTAINERS (Write After Approval): Alphabetize my entry
4045 correctly.
700c15aa 4046
cea4838c
AC
40472004-06-14 Andrew Cagney <cagney@gnu.org>
4048
4049 * MAINTAINERS (testsuite): List Michael Chastain as the lead
4050 testsuite maintainer.
4051
97092415
AC
40522004-06-13 Andrew Cagney <cagney@gnu.org>
4053
e8c3165b
AC
4054 * infcmd.c (print_return_value): Fix logic, allow
4055 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
4056
bceabdd8
AC
4057 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
4058 defining any macros.
4059 * gdbarch.h: Re-generate.
4060
57010b1c
AC
4061 * gdbarch.sh: Delete "level" attribute. Only check for a macro
4062 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
4063 * gdbarch.h: Re-generate.
4064
bc87dfa0
AC
4065 * values.c (generic_use_struct_convention): Don't check gcc_p.
4066
15ac804d
AC
4067 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
4068 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
4069 * gdbarch.h, gdbarch.c: Regenerate.
4070 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
4071 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
4072 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4073 deprecated_max_register_raw_size and
4074 deprecated_max_register_virtual_size.
4075 * v850-tdep.c (v850_gdbarch_init): Ditto.
4076 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
4077 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4078 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4079 * cris-tdep.c (cris_gdbarch_init): Ditto.
4080
97092415
AC
4081 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
4082 * gdbarch.h, gdbarch.c: Re-generate.
4083 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
4084 (m68hc11_use_struct_convention): Delete function.
4085 (m68hc11_extract_struct_value_address): Delete function.
4086 (m68hc11_return_value): New function.
4087 (m68hc11_gdbarch_init): Instead of store_return_value,
4088 extract_return_value, return_value_on_stack,
4089 deprecated_extract_struct_value_address and use_struct_convention,
4090 set return_value.
4091 * values.c (using_struct_return): Do not call
4092 RETURN_VALUE_ON_STACK.
4093 * arch-utils.h (generic_return_value_on_stack_not): Delete
4094 declaration.
4095 * arch-utils.c (generic_return_value_on_stack_not): Delete
4096 function.
4097
44e5158b
AC
40982004-06-12 Andrew Cagney <cagney@gnu.org>
4099
4100 * values.c (register_value_being_returned): Delete function.
4101 * infcmd.c (legacy_return_value): Delete function.
4102 * infcall.c (call_function_by_hand): Inline
4103 "register_value_being_returned", simplify.
4104 * values.c (using_struct_return): Update comment, refer to
4105 print_return_value instead of register_value_being_returned.
4106 * infcmd.c (print_return_value): Inline calls to
4107 register_value_being_returned and legacy_return_value. Simplify.
4108
b887c273
RC
41092004-06-11 Randolph Chung <tausq@debian.org>
4110
4111 * somread.c (som_symtab_read): Exclude gcc local symbols.
4112
1b2bfbb9
RC
41132004-06-11 Randolph Chung <tausq@debian.org>
4114
3973a7d3
AC
4115 * infrun.c (handle_inferior_event): Handle the case when a
4116 trampoline ends up in the runtime resolver, and if the trampoline
4117 has no name. Rearrange the code so that all the trampoline
4118 processing happens before other step-out-of-range handling.
1b2bfbb9 4119
a9d61c86
MH
41202004-06-11 Martin Hunt <hunt@redhat.com>
4121
4122 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
4123 has no fpu.
4124
2c87cf5a
AC
41252004-06-10 Andrew Cagney <cagney@gnu.org>
4126
4127 * blockframe.c (legacy_inside_entry_func): Delete.
4128 (legacy_frame_chain_valid): Inline call to
4129 legacy_inside_entry_func, simplify.
4130
0b67b468 41312004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
4132
4133 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
4134 * dwarf2read.c (partial_die_info): Add dirname field.
4135 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
4136 (read_partial_die): Save away DW_AT_comp_dir.
4137 * defs.h (symtab_to_filename): Removed.
4138 * source.c (find_and_open_source): Added.
57c22c6c 4139 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
4140 (symtab_to_filename): Removed.
4141 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
4142 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
4143 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
4144 symtab_to_filename.
4145 * symtab.h (partial_symtab): Add dirname field.
4146 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
4147 (mi_cmd_file_list_exec_source_file): Call new function
4148 symtab_to_fullname to find fullname.
57c22c6c 4149 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 4150 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
4151 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
4152
9a1dd1ad
AC
41532004-06-10 Andrew Cagney <cagney@gnu.org>
4154
239ae8c7
AC
4155 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
4156 to generic_use_struct_convention, the default value.
4157
fc720350
AC
4158 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
4159 of abort.
4160
9a1dd1ad
AC
4161 * ns32k-tdep.c (ns32k_push_arguments): New function.
4162 (ns32k_gdbarch_init): Set deprecated_push_arguments.
4163 * infcall.c (call_function_by_hand): Call error instead of
4164 legacy_push_arguments.
4165 * value.h (legacy_push_arguments): Delete declaration.
4166 * valops.c (legacy_push_arguments): Delete function.
4167 (value_push): Delete function.
4168
fea25152
BF
41692004-06-10 Brian Ford <ford@vss.fsi.com>
4170
4171 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
4172 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
4173 info.
4174 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
4175
30a4a8e0
AC
41762004-06-10 Andrew Cagney <cagney@gnu.org>
4177
4178 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
4179 * gdbarch.h, gdbarch.c: Re-generate.
4180 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
4181 parameters.
4182 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
4183 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
4184 deprecated_pc_in_call_dummy instead of
4185 DEPRECATED_PC_IN_CALL_DUMMY.
4186 (arm_skip_prologue): Ditto.
4187 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
4188 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
4189 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
4190 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
4191 Ditto.
4192 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
4193 (sh64_init_extra_frame_info, sh64_get_saved_register)
4194 (sh64_pop_frame): Ditto.
4195 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
4196 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
4197 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
4198 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
4199 (h8300_pop_frame): Ditto.
4200 * blockframe.c (legacy_inside_entry_func)
4201 (legacy_frame_chain_valid): Ditto.
4202 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
4203 to deprecated_pc_in_call_dummy.
4204
81cfbe54
AC
42052004-06-09 Andrew Cagney <cagney@gnu.org>
4206
a1f4a1b6
AC
4207 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
4208 provide a default value.
4209 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
4210 * gdbarch.h, gdbarch.c: Re-generate.
4211 * arch-utils.c (generic_convert_register_p): Rename
4212 legacy_convert_register_p
4213 (legacy_register_to_value, legacy_value_to_register): Delete
4214 functions.
4215 * arch-utils.h (generic_convert_register_p): Rename
4216 legacy_convert_register_p.
4217 (legacy_register_to_value, legacy_value_to_register): Delete
4218 declarations.
4219
9730f241
AC
4220 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
4221 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
4222 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
4223 * gdbarch.h, gdbarch.c: Re-generate.
4224 * infcmd.c (default_print_registers_info): Simplify.
4225 * findvar.c (value_of_register): Simplify.
4226 * mi/mi-main.c (get_register): Simplify.
4227 * arch-utils.c (legacy_convert_register_p): Always return 0.
4228 (legacy_register_to_value, legacy_value_to_register): Always call
4229 internal_error.
4230
8a1bf479
AC
4231 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
4232 #ifdef CLEAR_INSN_CACHE code.
4233 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
4234 Delete #ifdef CLEAR_DEFERRED_STORES code.
4235
4b38d6f1
AC
4236 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
4237
2d62ecc7
AC
4238 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
4239 copyright.
4240 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
4241
be4f7469
AC
4242 * config/mips/mipsv4.mh: Delete file.
4243
81cfbe54
AC
4244 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
4245 unreferenced macro.
4246 (hpread_adjust_stack_address): Delete declaration.
4247
d966f0cb
AC
42482004-06-08 Andrew Cagney <cagney@gnu.org>
4249
4250 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4251 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
4252 PTRACE_ATTACH / PTRACE_DETACH available call error.
4253 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
4254 * infttrace.c (update_thread_state_after_attach, attach, detach):
4255 Remove #ifdef wrappers.
4256 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
4257 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4258 * config/nm-bsd.h (ATTACH_DETACH): Delete.
4259 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
4260 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
4261 * config/nm-linux.h (ATTACH_DETACH): Delete.
4262 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
4263 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
4264 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
4265 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
4266 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
4267
d91670b9
CV
42682004-06-08 Corinna Vinschen <vinschen@redhat.com>
4269
4270 * configure.in: Set $configdir to the right OS specific value.
4271 Use value when setting $tcldir and $tkdir.
4272 * configure: Regenerate.
4273
28ba0b33
PB
42742004-06-06 Paul Brook <paul@codesourcery.com>
4275
4276 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
4277 records.
4278
f26caa11
PH
42792004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
4280
4281 * ada-lang.c (lookup_symbol_in_language): New function to allow
4282 re-use of another language's symbol lookup code. (Placed here
4283 temporarily while Ada support is being integrated into the public
4284 tree).
4285 (restore_language): New auxiliary function for
4286 lookup_symbol_in_language.
4287 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
4288 temporarily while Ada support is being integrated into the public
4289 tree).
4290
d560a54b
AO
42912004-06-08 Alexandre Oliva <aoliva@redhat.com>
4292
e75d110c
AO
4293 * Makefile.in (check//%): New.
4294
d560a54b
AO
4295 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
4296 (mn10300_store_return_value): Rewrite.
4297 (mn10300_type_align): New.
4298 (mn10300_use_struct_convention): Rewrite.
4299 (mn10300_return_value): New, using all of the above.
4300 (mn10300_pop_frame_regular): Add saved_regs_size.
4301 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
4302
a72fbdb7
AO
4303 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
4304 regs if PC is on movm.
4305
01904826
JB
43062004-06-07 Jim Blandy <jimb@redhat.com>
4307
4308 Add native Linux support for the PowerPC E500.
4309 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
4310 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
4311 all architectures except the E500.
4312 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
4313 #definitions.
4314 (struct gdb_evrregset_t): New type.
4315 (have_ptrace_getsetevrregs): New variable.
4316 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
4317 fetch_spe_registers): New functions.
4318 (fetch_register): Call fetch_spe_register as appropriate.
4319 Assert that we're only passed raw register numbers.
4320 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
4321 Don't fetch gprs if they're pseudoregisters.
4322 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
4323 store_spe_registers): New functions.
4324 (store_register): Call store_spe_register as appropriate.
4325 Assert that we're only passed raw register numbers.
4326 (store_ppc_registers): Call store_spe_registers as appropriate.
4327 Don't store gprs if they're pseudoregisters.
4328
f90ef764
JJ
43292004-06-07 Jeff Johnston <jjohnstn@redhat.com>
4330
4331 * thread-db.c (thread_get_info_callback): Fill in the thread_info
4332 struct if one exists, even if we are dealing with a zombie thread.
4333
45b75230
AC
43342004-06-07 Andrew Cagney <cagney@gnu.org>
4335
4336 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
4337 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
4338 Rename PC_REQUIRES_RUN_BEFORE_USE.
4339 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
4340 #ifdef.
4341
1658da49
RC
43422004-06-07 Randolph Chung <tausq@debian.org>
4343
4344 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
4345 unwinding after sp has been saved to the stack but before the end
4346 of the prologue, and after the fp has been modified but before it has
4347 been saved to the stack.
4348 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
4349 Remove superfluous definitions.
4350 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
4351
9a727a3c
RC
43522004-06-07 Guy Martin <gmsoft@gentoo.org>
4353
4354 Committed by Randolph Chung.
4355 * hppa-linux-nat.c: Include the correct version of the header file
4356 depending on the kernel version.
4357
9e500012
RC
43582004-06-06 Randolph Chung <tausq@debian.org>
4359
4360 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
4361 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
4362
3388d7ff
RC
43632004-06-06 Randolph Chung <tausq@debian.org>
4364
4365 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
4366 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
4367 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
4368 * hppa-tdep.c (hppa_symbol_address): New function definition.
4369 * hppa-tdep.h (hppa_symbol_address): New function declaration.
4370
d49771ef
RC
43712004-06-06 Randolph Chung <tausq@debian.org>
4372
4373 * hppa-tdep.h (struct value): Forward declaration.
4374 (gdbarch_tdep): Define tdep find_global_pointer method.
4375 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
4376 associated with the function we are trying to call, and write it
4377 to the gp register.
4378 (hppa32_convert_from_funct_ptr_addr): New function.
4379 (hppa_find_global_pointer): New function.
4380 (hppa_gdbarch_init): Set default find_global_pointer method; set
4381 convert_from_func_ptr_addr method.
4382 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
4383 (hppa_linux_init_abi): Set find_global_pointer method.
4384 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
4385
7d9b040b
RC
43862004-06-06 Randolph Chung <tausq@debian.org>
4387
4388 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
4389 to struct value *function.
4390 * gdbarch.c: Regenerate.
4391 * gdbarch.h: Likewise.
4392 * infcall.c (call_function_by_hand): Pass entire function value
4393 to push_dummy_call.
4394
4395 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
4396 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
4397 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
4398 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
4399 * arm-tdep.c (arm_push_dummy_call): Likewise.
4400 * avr-tdep.c (avr_push_dummy_call): Likewise.
4401 * cris-tdep.c (cris_push_dummy_call): Likewise.
4402 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
4403 * frv-tdep.c (frv_push_dummy_call): Likewise.
4404 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
4405 * hppa-tdep.c (hppa32_push_dummy_call)
4406 (hppa64_push_dummy_call): Likewise.
4407 * i386-tdep.c (i386_push_dummy_call): Likewise.
4408 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
4409 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
4410 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
4411 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
4412 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
4413 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4414 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
4415 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
4416 (ppc64_sysv_abi_push_dummy_call): Likewise.
4417 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
4418 (ppc64_sysv_abi_push_dummy_call): Likewise.
4419 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4420 * s390-tdep.c (s390_push_dummy_call): Likewise.
4421 * sh-tdep.c (sh_push_dummy_call_fpu)
4422 (sh_push_dummy_call_nofpu): Likewise.
4423 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
4424 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
4425 * vax-tdep.c (vax_push_dummy_call): Likewise.
4426
4a19ea35
JB
44272004-06-04 Jim Blandy <jimb@redhat.com>
4428
8327ccee
JB
4429 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
4430 gdbarch argument to register_size.
4431
a3c001ce
JB
4432 * rs6000-tdep.c (rs6000_store_return_value): Use
4433 regcache_cooked_write_part instead of
4434 deprecated_write_register_bytes.
4435 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
4436 not gdbarch_deprecated_store_return_value.
4437
4a19ea35
JB
4438 * ppc-linux-nat.c (store_register, fetch_register): Remove
4439 incorrect assertions. Simplify and generalize handling of
4440 transfers whose sizes are not multiples of, or less than, sizeof
4441 (PTRACE_XFER_TYPE).
4442
b9b5d7ea
JJ
44432004-06-04 Jeff Johnston <jjohnstn@redhat.com>
4444
4445 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
4446 as a new thread event.
720c7d64 4447 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 4448 zombie, return TD_THR_ZOMBIE.
720c7d64 4449 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
4450 TD_THR_ZOMBIE, check if the thread is still on the thread list
4451 and return a -1 ptid if not found.
4452 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
4453 change the status to TARGET_WAITKIND_SPURIOUS.
4454
c8a3b559
CV
44552004-06-03 Corinna Vinschen <vinschen@redhat.com>
4456
4457 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
4458 double values in little endian mode.
4459
20605361
AC
44602004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
4461
4462 Committed by Andrew Cagney.
4463 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
4464 after last enum constant to avoid error from IBM C
4465 compiler.
4466
bc97b3ba
JB
44672004-06-02 Jim Blandy <jimb@redhat.com>
4468
4469 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
4470 to 'message', and make it local to the lone block that uses it.
4471
1da28ab0
JB
4472 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
4473
4c4b4cd2
PH
44742004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
4475
8a2225b2
PH
4476 * ada-exp.y: Update copyright notice.
4477 Include block.h.
4478
4479 Replace REGNAME, LAST, INTERNAL_VARIABLE with
4480 SPECIAL_VARIABLE and unify the treatment of these cases.
4481
4482 (write_attribute_call0): Remove.
4483 (write_attribute_call1): Remove.
4484 (write_attribute_calln): Remove.
4485 (save_qualifier): Add missing semicolon.
4486
4487 (simple_exp,exp): Decomment (i.e., reactivate) code that was
4488 temporarily disabled to allow compilation with FSF head version.
4489
4490 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
4491 use individual operators (OP_*) for all attributes.
4492 (exp syntax): Use write_int.
4493 Handle STRING literals with OP_STRING.
4494 (variable syntax): Add limit parameter to calls to
4495 write_object_renaming.
4496
4497 (temp_parse_space): New definition to hold entities that need
4498 only live until the next call to ada_parse.
4499 (string_to_operator): Rename fields of ada_opname_table entries.
4500
4501 (write_var_from_sym): Record block.
4502 (write_var_from_name): Minor reformatting.
4503 Make sure saved name is properly encoded in the case of multiple
4504 matches, and set its language to Ada.
4505 Update comment.
4506 Modify to indicate unresolved name as symbol in the UNRESOLVED
4507 namespace, allocated in temp_parse_space.
4508 (write_int): New function.
4509
4510 (write_object_renaming): Add max_depth parameter to limit
4511 chains of object renamings.
4512 Handle case where root of renaming expression is itself a renaming.
4513 Use temp_parse_space for temporary name buffer.
4514 Handle renamings to dereferenced pointers (___XEXA suffices).
4515
4516 (ada_parse, yyerror, string_to_operator,
4517 write_var_from_sym, write_var_from_name, write_attribute_call0,
4518 write_attribute_call1, write_attribute_calln,
4519 write_object_renaming): Protoize.
4520
4521 (_initialize_ada_exp): New function.
4522
4523 * ada-lang.c: Update copyright notice.
4524 General terminology change to conform to GNAT compiler usage:
4525 mangle => encode, demangle => decode
4526 Include gdb_obstack.h.
4527 Include gdb_regex.h
4528 Include frame.h
4529 Include hashtab.h
4530 Include completer.h
4531 Include gdb_stat.h
4532 Include block.h
4533 Include infcall.h
4534
4535 (ADA_RETAIN_DOTS): Make sure this is defined.
4536 (TRUNCATION_TOWARDS_ZERO): Define.
4537 (struct string_vector): Define.
4538 (unresolved_names): Remove definition.
4539 (xnew_string_vector): New function.
4540 (string_vector_append): New function.
4541 (extract_string): Make static.
4542 (ada_unqualified_name): New function.
4543 (add_angle_brackets): New function.
4544 (function_name_from_pc): New function.
4545 (place_on_stack): Rename to ensure_lval.
4546
4547 (ensure_lval): Renamed from place_on_stack.
4548 Make identity on lvals.
4549 Update comment.
4550 (is_nonfunction): New interface.
4551 Only symbols in LOC_CONST class can be enumerals.
4552 (fill_in_ada_prototype): Remove; now independent of language.
4553 (add_defn_to_vec): Add obstack and symtab arguments.
4554 Use obstack to hold collected definitions.
4555 (num_defns_collected): New function.
4556 (defns_collected): New function.
4557 (ada_resolve_subexp): Rename to resolve_subexp.
4558 (resolve_subexp): Renamed from ada_resolve_subexp.
4559 (ada_op_name): Return non-const result.
4560 (ada_decoded_op_name): Renamed from ada_op_name, now used for
4561 other purposes.
4562
4563 (to_fixed_array_type): Add declaration.
4564 (coerce_unspec_val_to_type): Remove offset parameter.
4565 (find_sal_from_funcs_and_line): New interface.
4566 (find_line_in_linetable): Ditto.
4567
4568 (all_sals_for_line): Rename to ada_sals_for_line and make
4569 global.
4570 Add new parameter. When set, do not ask the user to choose the
4571 instance, but use the first one found instead.
4572 Use given line number in returned sals.
4573 Fix comment.
4574 Skip the prologue if funfirstline is set.
4575 Correct for memory leak when 0 lines found.
4576
4577 (value_pos_atr): Use pos_atr.
4578 (pos_atr): New function.
4579 (standard_lookup): Add block parameter.
4580
4581 (makeTimeStart): Remove declaration and uses.
4582 (makeTimeStop): Remove declaration and uses.
4583
4584 (ada_completer_word_break_characters): Allow for VMS.
4585 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
4586 (raise_sym_name): New constant.
4587 (raise_unhandled_sym_name): New constant.
4588 (raise_assert_sym_name): New constant.
4589 (process_raise_exception_name): New constant.
4590 (longest_exception_template): New constant.
4591 (warning_limit): New variable to limit warnings during expression
4592 evaluation.
4593 (warnings_issued): New variable to keep track of warnings issued.
4594 (known_runtime_file_name_patterns): New constant.
4595 (known_auxiliary_function_name_patterns): New constant.
4596 (symbol_list_obstack): New variable.
4597
4598 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
4599 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
4600 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
4601 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
4602 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
4603 ada_variant_discrim_name, field_alignment, dynamic_template_type,
4604 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
4605 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
4606 and strcmp.
4607
4608 (ada_get_field_index): New function.
4609 (lim_warning): New function.
4610 (ada_translate_error_message): New function.
4611 (MAX_OF_SIZE): New function.
4612 (MIN_OF_SIZE): New function.
4613 (UMAX_OF_SIZE): New function.
4614 (UMIN_OF_SIZE): New function.
4615 (discrete_type_high_bound): New function.
4616 (discrete_type_low_bound): New function.
4617 (base_type): New function.
4618 (do_command): Remove.
4619
4620 (ada_update_initial_language): Use language_ada, not language_unknown.
4621 (ada_encode): Renamed from ada_mangle.
4622 Obey ADA_RETAIN_DOTS.
4623 (ada_decode): Renamed from ada_demangle.
4624 Update coding conventions.
4625 (decoded_names_store): New hash table.
4626 (ada_decode_symbol): New function.
4627 (ada_la_decode): New function.
4628
4629 (modify_general_field): Correct computations of offset and bit
4630 position.
4631 (desc_base_type): Handle ref types, too.
4632 (ada_is_direct_array_type): New function.
4633
4634 (ada_is_simple_array): Rename to ada_is_simple_array_type.
4635 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
4636 (ada_is_bogus_array_descriptor,ada_type_of_array,
4637 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
4638 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
4639 ada_is_array_descriptor_type.
4640
4641 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
4642 (ada_is_packed_array_type): Handle pointers or
4643 references to packed arrays as well.
4644 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
4645 (decode_packed_array_type): Search for the packed array type
4646 symbol in the currently selected block and associated
4647 superblocks too.
4648 Use lookup_symbol again.
4649
4650 (decode_packed_array): Handle pointers and references.
4651 Update call to coerce_unspec_val_to_type.
4652 (decode_packed_array_type,value_subscript_packed): Limit warnings.
4653 (ada_value_primitive_packed_val): Improve comment.
4654
4655 (ada_index_type): Substitute int type for "undefined".
4656 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
4657 ada_array_langth, ada_is_string_type): Use renamed
4658 ada_is_simple_array_type.
4659 (empty_array): New function.
4660
4661 (ada_resolve): Rename to resolve.
4662 (resolve): Make static.
4663 Call renamed resolve_subexp.
4664 Update comment.
4665 (ada_resolve_subexp): Rename to resolve_subexp.
4666 (resolve_subexp): Update comment.
4667 Decomment disabled code.
4668 Add LOC_COMPUTED* cases.
4669 Modify to use temporary struct symbols (marked as being in
4670 UNDEF_NAMESPACE) to indicate unresolved names, instead of
4671 OP_UNRESOLVED_VALUE.
4672 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
4673 Add OP_STRING case.
4674 Remove OP_ARRAY.
4675 Use SYMBOL_PRINT_NAME instead of ada_demangle.
4676 Use new ada_lookup_symbol_list interface.
4677 Use new ada_resolve_function interface.
4678 Remove OP_TYPE case.
4679
4680 (ada_args_match): Idiot proof against null actuals.
4681 Use intermediate variables to clarify.
4682 (ada_resolve_function): Update comment and interface.
4683 (mangled_ordered_before): Rename to encoded_ordered_before and
4684 update comment.
4685 (sort_choices): Update comment and interface.
4686 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
4687 (user_select_syms): New interface.
4688 Use new sort_choices interface.
4689 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
4690 (possible_user_operator_p): Idiot-proof against null values.
4691 (ada_simple_renamed_entity): Don't make cleanup; rely on
4692 caller to free result string.
4693 Remove const from return type.
4694 (make_array_descriptor): Rename uses of place_on_stack to
4695 ensure_lval.
4696 Make sure that arrays are on stack.
4697
4698 (HASH_SIZE): Define.
4699 (struct cache_entry): Define.
4700 (cache_space): Define.
4701 (cache): Define.
4702 (clear_ada_sym_cache): New function.
4703 (find_entry): New function.
4704 (lookup_cached_symbol): New function.
4705 (defn_vector_size): Define.
4706 (cache_symbol): New function.
4707 (defn_symbols): Remove.
4708
4709 (standard_lookup): Use lookup_symbol_in_language to get effect of
4710 C lookup.
4711 Cache results.
4712
4713 (symbol_completion_match): New function.
4714 (symbol_completion_add): New function.
4715 (ada_make_symbol_completion_list): New function.
4716
4717 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
4718 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
4719 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
4720 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
4721
4722 (ada_lookup_simple_minsym): New function.
4723 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
4724
4725 (add_symbols_from_enclosing_procs): New interface.
4726 Conditionalize more helpfully.
4727 Don't bother if program isn't running.
4728 Use new interface to get_frame_block.
4729 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
4730
4731 (remove_extra_symbols): New interface.
4732 (xget_renaming_scope): New function.
4733 (is_package_name): New function.
4734 (renaming_is_visible): New function.
4735 (remove_out_of_scope_renamings): New function.
4736
4737 (ada_lookup_symbol_list): New interface.
4738 Properly reinitialize the symbol list obstack.
4739 Don't call add_symbols_from_enclosing_procs if we start from a
4740 static or global block.
4741 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
4742 add_symbols_from_enclosing_procs.
4743 Add symtab data to cached entries.
4744 Handle symbols prefixed with
4745 "standard__" specially; strip prefix and don't look in local symbols.
4746 Do not include out of scope renaming symbols in list of
4747 symbols returned.
4748 Add const to block parameter.
4749 Move check for non-local, non-global symbols earlier.
4750 Remove timing stuff.
4751 (ada_lookup_symbol): New interface.
4752 Find symtab as well.
4753 (ada_lookup_symbol_nonlocal): New function.
4754
4755 (is_name_suffix): Enhance suffix detection to recognize
4756 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
4757 (is_dot_digits_suffix): New function.
4758 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
4759
4760 (ada_add_block_symbols): New interface. Use obstack to return results
4761 in a vector of struct ada_symbol_infos. Add symtab argument.
4762 Use new interface to add_defn_to_vec.
4763 Remove calls to fill_in_ada_prototype.
4764 Use BLOCK_BUCKETS, BLOCK_BUCKET.
4765
4766 (ada_finish_decode_line_1): Add const qualification to local to fix
4767 warning.
4768 Start looking in static block for functions to avoid attempts
4769 to search frame chain for up-level variables.
4770 Adapt to new ada_sals_for_line interface.
4771 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
4772 Handle quoting of the function name inside the spec string.
4773 Skip prologue when funfirstline is set and update the
4774 function documentation to that effect.
4775
4776 (debug_print_lines, debug_print_block, debug_print_blocks,
4777 debug_print_symtab): Remove.
4778
4779 (ada_main_name): New function.
4780 (ada_exception_breakpoint_type): New function.
4781 (is_known_support_routine): New function.
4782 (ada_find_printable_frame): Renamed from find_printable_frame and made
4783 global.
4784 Remove level parameter.
4785 Use new interface to select_frame.
4786
4787 (begin_command): Remove.
4788 (ada_adjust_exception_stop): New function.
4789 (ada_print_exception_stop): New function.
4790 (exception_name_from_cond): New function.
4791 (ada_report_exception_break): Replace disabled code with
4792 conditionalization on GNAT_GDB.
4793 Get the exception name from the condition string.
4794 Remove and move functionality into new functions
4795 ada_print_exception_breakpoint_task and
4796 ada_print_exception_breakpoint_nontask.
4797 (error_breakpoint_runtime_sym_not_found): New function.
4798 (is_runtime_sym_defined): New function.
4799 (ada_breakpoint_rewrite): Uncomment suppressed code.
4800 Use symbolic error-message and runtime-symbol names.
4801 Surround runtime symbol names in quotes.
4802 Allow non-specific breakpoints on exceptions and assertions before
4803 program starts.
4804
4805 (ada_is_tagged_type): Add parameter.
4806 (ada_is_tag_type): New function.
4807 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
4808 (ada_variant_discrim_type): Ditto.
4809 (value_tag_from_contents_and_address): New function.
4810 (type_from_tag): New function.
4811 (struct tag_args): New structure used to communicate with
4812 ada_tag_name_1.
4813 (ada_tag_name_1): New function.
4814 (ada_tag_name): New function.
4815
4816 (ada_scan_number): Update comment.
4817 (find_struct_field): New function.
4818 (ada_search_struct_field): Make static.
4819 (ada_value_struct_elt): New version that returns references when
4820 given pointers or references to structs.
4821 (ada_lookup_struct_elt_type): Add 'refok' parameter.
4822 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
4823 interface.
4824 (ada_value_ind): Use new ada_to_fixed_value interface.
4825 (ada_coerce_ref): Ditto.
4826 (field_offset): Remove.
4827
4828 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
4829 (ada_find_renaming_symbol): New function.
4830 (ada_prefer_type): Prefer named types over unnamed ones.
4831 (variant_field_index): New function.
4832 (contains_variant_part): Removed: subsumed by variant_field_index.
4833 (ada_template_to_fixed_record_type): New function, mostly from
4834 template_to_fixed_record_type.
4835 (template_to_fixed_record_type):
4836 Do not scan the type fields beyond the last one; prevents a
4837 potential SEGV.
4838 Handle case where variant field is listed BEFORE discriminant it
4839 depends on.
4840 Fix calculation of record length when bit length is
4841 not evenly divisible by char length.
4842 Move code to ada_template_to_fixed_record_type and call it.
4843
4844 (template_to_static_fixed_type): Revise comment.
4845 Modify to work on ordinary record types as well as templates,
4846 so as to handle fields that use ___XVE or ___XVU encodings.
4847 (to_record_with_fixed_variant_part): Fill out comment.
4848 Initialize C++ stuff in right type.
4849 Allow case where DVAL is null.
4850 Handle case where variant field is not last.
4851 Fix typo concerning record length.
4852 (to_fixed_record_type): Decomment disabled code.
4853 (to_fixed_record_type): Use variant_field_index instead of
4854 contains_variant_part.
4855 (to_fixed_variant_branch_type): Ditto.
4856 (to_fixed_array_type): Decomment disabled code.
4857 (ada_to_fixed_type): Convert tagged types to the specific type.
4858 Deactivate the size-check for array types in order to avoid
4859 some false size alarms.
4860 (to_static_fixed_type): Decomment disabled code.
4861 Modify to call template_to_static_fixed_type
4862 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
4863 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
4864 Remove valaddr argument, as it is never really used.
4865 (ada_to_fixed_value): Change interface to act on single struct value*
4866 operand.
4867 (adjust_pc_past_prologue): New function.
4868 (ada_attribute_name): Modify to take enum exp_opcode argument.
4869
4870 (ada_enum_name): Recognize new homonym-distinguishing convention.
4871 Adjust local variable's type to remove compiler warning.
4872 Fix a small problem in the part that unqualifies the enumeration name.
4873 (ada_value_binop): New function.
4874 (ada_value_equal): New function.
4875
4876 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
4877 Don't give error message when not doing normal evaluation
4878 and a tagged type doesn't seem to contain a structure member.
4879 Give error message for packed arrays.
4880 For indexing arrays, handle pointers to packed arrays correctly.
4881 Handle case of 'first and 'last attributes of bare integral type
4882 without encoded subtype info.
4883 Remove some unnecessary casts.
4884 Fix uninitialized value of type in computing 'first, 'last, or 'length
4885 of array object.
4886 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
4887 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
4888 calls.
4889 Attributes are now exp_opcode values.
4890 Correct treatment of 'modulus.
4891 Better error message for taking 'length of wrong kind of type;
4892 improve comment.
4893 Change EVAL_NORMAL to noside for consistency.
4894 Use ada_value_binop for DIV, MOD, REM.
4895 Make special case out of array of length 0, since an argument
4896 of 0 upsets some platforms' malloc.
4897 Use OP_STRING instead of OP_ARRAY.
4898 For slice, add check that we have an array type before extracting
4899 a slice out of it. Avoids a SEGV.
4900 When evaluating an array slice, if the array type is a reference to
4901 an aligner type, then replace the aligner type by the actual type.
4902 Decomment disabled code.
4903 Remove some dead code.
4904 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
4905 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
4906 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
4907 and UNOP_MBR to UNOP_IN_RANGE.
4908 If an array type has a parallel ___XVE type, then use it.
4909 Turn arrays into pointers for lvalue arrays.
4910 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
4911 bounds error and handle 0-length slices.
4912 Use lim_warning.
4913 When selecting fields, apply ada_to_fixed_value (because the fields
4914 might have ___XVU or ___XVE encodings even if not dynamic.)
4915 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
4916 (ada_is_system_address_type): New function.
4917
4918 (get_var_value): Use new interface to ada_lookup_symbol_list.
4919 (get_int_var_value): New interface.
4920 (to_fixed_range_type): Allow unknown bound, with warning.
4921 (ada_is_modular_type): Decomment disabled code.
4922 (ADA_OPERATORS): New definition.
4923 (ada_operator_length): New function.
4924 (ada_expr_op_name): New function.
4925 (ada_forward_operator_length): New function.
4926 (ada_dump_subexp_body): New function.
4927 (ada_print_subexp): New function.
4928 (ada_exp_descriptor): New constant.
4929 (ada_op_print_tab): Add 'size. Remove FIXMEs.
4930 (ada_language_defn): Add ada_exp_descriptor entry.
4931 Change ada_parse => parse.
4932 Add post-parser entry.
4933 Use ada-specific non-local symbol lookup.
4934 Don't use C-style arrays.
4935 String lower-bound is 1.
4936 Decomment disabled code.
4937 (parse): New function.
4938 New fields ada_translate_error_message, ada_lookup_symbol,
4939 ada_lookup_minimal_symbol.
4940
4941 * ada-lang.h: Update copyright dates.
4942 Replace the mangle/demangle terminology throughout by the
4943 more appropriate encode/decode one.
4944 Include breakpoint.h.
4945 Forward declare struct partial_symbol, struct block.
4946 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
4947 (EXTRACT_ADDRESS): Remove.
4948 (EXTRACT_INT): Remove.
4949 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
4950 (MAX_ENCLOSING_FRAME_LEVELS): Define.
4951 (MAX_RENAMING_CHAIN_LENGTH): Define.
4952 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
4953
4954 (enum task_states): Remove.
4955 ada_task_states: Remove.
4956 (fat_string): Remove.
4957 (struct entry_call): Remove.
4958 (struct task_fields): Remove.
4959 (struct task_entry): Remove.
4960
4961 (struct ada_symbol_info): Define.
4962 (enum ada_attribute): Remove.
4963 (enum ada_operator): Define.
4964
4965 (ada_get_field_index): Declare.
4966 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
4967 (ada_is_simple_array): Rename to ada_is_simple_array_type.
4968 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
4969 (ada_lookup_symbol_list): New interface.
4970 (ada_decode_symbol): Declare.
4971 (ada_decode): Declare.
4972 (ada_lookup_symbol): New interface.
4973 (ada_update_initial_language): Declare.
4974 (ada_lookup_simple_minsym): Declare.
4975 (user_select_syms): New interface.
4976 (ada_sals_for_line): Declare.
4977 (ada_is_tagged_type): New interface.
4978 (ada_tag_name): Declare.
4979 (ada_lookup_struct_elt_type): Remove declaration.
4980 (ada_search_struct_field): Remove declaration.
4981 (ada_attribute_name): New interface.
4982 (ada_is_system_address_type): Declare.
4983 (ada_to_fixed_value): Remove declaration.
4984 (ada_template_to_fixed_record_type_1): Declare.
4985 (get_int_var_value): New interface.
4986 (ada_find_any_symbol): Declare.
4987 (ada_find_renaming_symbol): Declare.
4988 (ada_mangle): Rename to ada_encode.
4989 (ada_simple_renamed_entity): Remove const.
4990 (ada_main_name): Declare.
4991 (get_current_task): Rename to ada_get_current_task.
4992 (get_entry_number): Remove declaration.
4993 (ada_report_exception_break): Remove declaration.
4994 (ada_print_exception_breakpoint_nontask): Declare.
4995 (ada_print_exception_breakpoint_task): Declare.
4996 (ada_find_printable_frame): Declare.
4997
4998 * ada-lex.l: Update copyright notices.
4999 Use xmalloc and xfree instead of malloc and free.
5000 Use new interface to name_lookup.
5001 Use new interface to
5002 ada_mangle=>ada_encode.
5003 Redo handling of '$...' variable to parallel current treatment
5004 in c-exp.y.
5005 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
5006 digit_to_int, strtoulst, processInt, processReal, processId,
5007 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
5008 yywrap): Protoize.
5009
5010 (processInt): Use cast to remove harmless warning.
5011 (processReal): Modify to get rid of compiler warning on scan formats.
5012
5013 (processId): Replace xmalloc with obstack_alloc for name and remove
5014 call to ada_name_string_cleanup.
5015 Remove obsolete disabled code.
5016 (name_lookup): Ditto.
5017 New interface.
5018 Use obsavestring on temp_parse_space instead of savestring
5019 on name, and remove call to ada_name_string_cleanup.
5020 Free string returned from ada_simple_renamed_entity.
5021 Use new interface to ada_lookup_symbol_list.
5022 Decomment disabled code.
5023 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
5024 not types.
5025 When a type name lookup succeeds as a result of
5026 lookup_primitive_typename, check for regular type entry that has not
5027 yet been read in.
5028 Limit length of chain of renamed symbols we are willing to follow.
5029 Do not break names beginning with "standard__" into segments.
5030 (block_lookup): Use new interface to ada_lookup_symbol_list.
5031
5032 * ada-typeprint.c: Update copyright notice.
5033 (demangled_type_name): Rename to decoded_type_name.
5034 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
5035 (print_range_bound): Correct handling of negative
5036 bounds that make the index type looked unsigned under STABS.
5037 (print_dynamic_range_bound): Use new interface to get_int_var_value.
5038 (print_range_type_named): Use the builtin int type if no type
5039 corresponding to the given type name could be found.
5040 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
5041 Add some bullet-proofing.
5042 (print_variant_clauses): Allow for variant branches with ___XVU
5043 encodings that are not dynamic fields.
5044 Use new interface to ada_is_tagged_type.
5045 (print_record_type): Allow for fields with ___XVE encodings that
5046 are not dynamic fields.
5047 Use new interface to ada_is_tagged_type.
5048 (ada_print_type): ada_is_array_descriptor =>
5049 ada_is_array_descriptor_type.
5050
5051 * ada-valprint.c: Update copyright notice.
5052 Include gdb_string.h
5053 Include infcall.h
5054 (ui_memcpy): New function.
5055 (ada_print_floating): New function.
5056 (ada_print_str): Order arguments correctly.
5057 Correct handling of empty arrays and arrays of 0-length items.
5058 ada_is_array_descriptor => ada_is_array_descriptor_type
5059 Print values of type System.Address in hexadecimal format.
5060 Use ada_print_floating to print floating-point numbers in Ada format.
5061 Print class tag values with type names.
5062 No longer print the address of reference values. Avoids
5063 a potential confusion.
5064 (ada_value_print): Stop printing the object type for reference
5065 values, but preserve that behavior for access types. Avoids
5066 a potential confusion.
5067 Simplify one conditional expression, as the first part is now
5068 necessarily true.
5069 ada_is_array_descriptor => ada_is_array_descriptor_type
5070 Add check for arrays for null records, and print them by hand.
4c4b4cd2 5071
f65f91b5
JB
50722004-06-01 Jim Blandy <jimb@redhat.com>
5073
5074 * ppc-tdep.h: Delete unused 'regoff' member.
5075 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
5076
d4687fa0
MC
50772004-06-01 Michael Chastain <mec.gnu@mindspring.com>
5078
5079 Fix PR symtab/1661.
5080 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
5081 (hpread_read_struct_type): Likewise.
5082
de169ec9
AC
50832004-06-01 Andrew Cagney <cagney@gnu.org>
5084
c6902d46
AC
5085 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
5086 instead of xasprintf.
5087 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
5088 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
5089 (mi_cmd_data_list_register_names)
5090 (mi_cmd_data_list_changed_registers)
5091 (mi_cmd_data_list_register_values)
5092 (get_register, mi_cmd_data_write_register_values)
5093 (mi_cmd_data_write_register_values)
5094 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
5095 (mi_cmd_target_download, mi_cmd_target_select)
5096 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
5097 (mi_execute_cli_command, mi_execute_async_cli_command)
5098 (mi_execute_async_cli_command): Ditto.
5099 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
5100 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
5101
6085fc2d
AC
5102 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
5103 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
5104 error_last_message instead of mi_error_last_message.
5105 * mi/mi-main.c (mi_error_last_message): Delete function.
5106
de169ec9
AC
5107 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
5108 "invalid number of columns" error. Delete redundant "out of
5109 memory" check.
5110
1fc7d519
MK
51112004-05-31 Mark Kettenis <kettenis@gnu.org>
5112
6cfb2041
MK
5113 * i386bsd-nat.c: Don't include <sys/procfs.h>.
5114 (gregset_t, fpregset_t): Remove typedefs.
5115 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
5116 (REG_OFFSET): Rename argument.
5117 (i386bsd_r_reg_offset): Rename from reg_offset.
5118 (REG_ADDR): Remove macro.
5119 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
5120 functions.
5121 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
5122 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
5123 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
5124 instead of supply_gregset.
5125 (store_inferior_registers): Use `struct reg' and `struct fpreg'
5126 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
5127 instead of fill_gregset.
5128 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
5129
1fc7d519
MK
5130 * i386bsd-nat.c: Don't include "gregset.h".
5131 (supply_gregset, fill_gregset): Make static.
5132 (supply_fpregset, fill_fpregset): Remove.
5133 * Makefile.in (i386bsd-nat.o): Update dependencies.
5134
2c34abbe
MK
51352004-05-30 Mark Kettenis <kettenis@gnu.org>
5136
448724fb
MK
5137 * fbsd-proc.c: Include "regcache.h", "regset.h" and
5138 "gdb_assert.h". Con't include "gregset.h".
5139 (fbsd_make_corefile_notes): Use regset-based core file support
5140 instead off fill_gregset and fill_fpregset.
5141 * Makefile.in (fbsd-proc.o): Update dependencies.
5142
5ca8ca7c
MK
5143 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
5144 instructions.
5145 (m88k_frame_prev_register): Simplify code a bit.
5146
593adc23
MK
5147 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
5148 (amd64_collect_fpregset): New function.
5149 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
5150
8d1b517b
MK
5151 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
5152
7fdafb5a
MK
5153 * i386-tdep.c (i386_supply_gregset): Adjust comment.
5154 (i386_collect_gregset): New function.
5155 (i386_supply_fpregset): Adjust comment.
5156 (i386_collect_fpregset): New function.
5157 (i386_regset_from_core_section): Use i386_collect_gregset and
5158 i386_collect_fpregset.
5159
8693c419
MK
5160 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
5161 handle VALUEP being null.
5162
2c34abbe
MK
5163 * regset.h (collect_regset_ftype): Unconstify fourth argument.
5164
45d134d8
MK
51652004-05-29 Mark Kettenis <kettenis@gnu.org>
5166
1698f4e7
MK
5167 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
5168
45d134d8
MK
5169 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
5170 assembler in OpenBSD 3.5-current.
5171 (amd64obsd_sigcontext_addr): Likewise.
5172
691d145a
JB
51732004-05-28 Jim Blandy <jimb@redhat.com>
5174
5175 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
5176 register set, so our regcache isn't declared "legacy" and our E500
5177 pseudoregister read and write functions aren't ignored.
5178 (rs6000_register_byte, rs6000_register_raw_size,
5179 rs6000_register_virtual_type, rs6000_register_convertible,
5180 rs6000_register_convert_to_virtual,
5181 rs6000_register_convert_to_raw): Deleted.
5182 (rs6000_register_type, rs6000_convert_register_p,
5183 rs6000_register_to_value, rs6000_value_to_register): New
5184 functions.
5185 (rs6000_gdbarch_init): Don't register
5186 gdbarch_deprecated_register_size,
5187 gdbarch_deprecated_register_bytes,
5188 gdbarch_deprecated_register_byte,
5189 gdbarch_deprecated_register_raw_size,
5190 gdbarch_deprecated_register_virtual_type,
5191 gdbarch_deprecated_register_convertible,
5192 gdbarch_deprecated_register_convert_to_virtual, or
5193 gdbarch_deprecated_register_convert_to_raw methods. Instead,
5194 register gdbarch_register_type, gdbarch_convert_register_p,
5195 gdbarch_register_to_value, and gdbarch_value_to_register methods.
5196
18ed0c4e
JB
51972004-05-26 Jim Blandy <jimb@redhat.com>
5198
5199 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
5200 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
5201 functions, updated to match the register numberings used in GCC.
5202 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
5203 rs6000_dwarf2_reg_to_regnum as register number conversions
5204 functions for STABS and Dwarf2.
5205
779af9e3
RC
52062004-05-26 Randolph Chung <tausq@debian.org>
5207
5208 * infttrace.h (target_waitkind): Forward declare type instead of pulling
5209 in header file.
5210
c23968a2
JB
52112004-05-25 Joel Brobecker <brobecker@gnat.com>
5212
5213 * NEWS: Document new "start" command.
5214
3a7d1c27
RC
52152004-05-25 Randolph Chung <tausq@debian.org>
5216
5217 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
5218 hppa-linux.
5219
43613416
RC
52202004-05-25 Randolph Chung <tausq@debian.org>
5221
5222 * hppa-hpux-tdep.c (offsetof): Define.
5223 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
5224 (hppa32_hpux_frame_base_before_sigtramp)
5225 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
5226 (hppa64_hpux_frame_saved_pc_in_sigtramp)
5227 (hppa64_hpux_frame_base_before_sigtramp)
5228 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
5229 functions.
5230 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
5231 (hppa_hpux_sigtramp_frame_unwind_cache)
5232 (hppa_hpux_sigtramp_frame_this_id)
5233 (hppa_hpux_sigtramp_frame_prev_register)
5234 (hppa_hpux_sigtramp_frame_unwind)
5235 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
5236 (hppa_hpux_init_abi): Register sigtramp unwinder.
5237 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
5238
6d1be3f1
RC
52392004-05-25 Randolph Chung <tausq@debian.org>
5240
5241 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
5242 and multiple stack unwinds.
5243 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
5244
97c34f65
AC
52452004-05-25 Andrew Cagney <cagney@gnu.org>
5246
5247 * symfile.h (symbol_file_add_from_memory): Delete declaration.
5248 * symfile-mem.h: Delete file.
5249 * symfile-mem.c: Do not include "symfile-mem.h".
5250 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
5251 "struct bfd_section". When an error do not bother returning NULL.
5252 (add_symbol_file_from_memory_command): Use "struct bfd" and
5253 "struct bfd_section".
5254 * Makefile.in (symfile_mem_h): Delete.
5255 (symfile-mem.o): Update dependencies.
5256
e23cbd82
NR
52572004-05-25 Nick Roberts <nickrob@gnu.org>
5258
5259 * gdb-mi.el: New file.
5260
20d2ca3e
AC
52612004-05-25 Andrew Cagney <cagney@gnu.org>
5262
5263 * inftarg.c: Include "observer.h".
5264 (child_attach, child_create_inferior): Notify inferior_created.
5265 * corelow.c: Include "observer.h".
5266 (core_open): Notify inferior_created.
5267 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
5268
c27cda74
AC
52692004-05-25 Andrew Cagney <cagney@gnu.org>
5270
5271 * target.h (struct target_ops): Add from_tty to
5272 to_create_inferior.
5273 (target_create_inferior, find_default_create_inferior): Update.
5274 * infcmd.c (run_command): Update.
5275 * wince.c (child_create_inferior): Update.
5276 * win32-nat.c (child_create_inferior): Update.
5277 * uw-thread.c (uw_thread_create_inferior): Update.
5278 * thread-db.c (thread_db_create_inferior): Update.
5279 * target.c (debug_to_create_inferior)
5280 (find_default_create_inferior): Update.
5281 (maybe_kill_then_create_inferior): Update.
5282 * sol-thread.c (sol_thread_create_inferior): Update.
5283 * remote.c (extended_remote_async_create_inferior)
5284 (extended_remote_create_inferior): Update.
5285 * remote-vx.c (vx_create_inferior): Update.
5286 * remote-st.c (st2000_create_inferior): Update.
5287 * remote-sim.c (gdbsim_create_inferior): Update.
5288 * remote-sds.c (sds_create_inferior): Update.
5289 * remote-rdp.c (remote_rdp_create_inferior): Update.
5290 * remote-rdi.c (arm_rdi_create_inferior): Update.
5291 * remote-m32r-sdi.c (m32r_create_inferior): Update.
5292 * remote-e7000.c (e7000_create_inferior): Update.
5293 * procfs.c (procfs_create_inferior): Update.
5294 * ocd.c (ocd_create_inferior): Update.
5295 * ocd.h (ocd_create_inferior): Update.
5296 * nto-procfs.c (procfs_create_inferior): Update.
5297 * monitor.c (monitor_create_inferior): Update.
5298 * lin-lwp.c (lin_lwp_create_inferior): Update.
5299 * inftarg.c (child_create_inferior): Update.
5300 * hpux-thread.c (hpux_thread_create_inferior): Update.
5301 * gnu-nat.c (gnu_create_inferior): Update.
5302
1db2a798
AC
53032004-05-25 Andrew Cagney <cagney@gnu.com>
5304
5305 * MAINTAINERS: Update e-mail address.
5306
007d08bb
RC
53072004-05-24 Randolph Chung <tausq@debian.org>
5308
5309 * thread.c (info_threads_command, thread_apply_all_command)
5310 (thread_apply_command, thread_command, do_captured_thread_select):
5311 Remove HPUXHPPA-specific code.
5312
69e7b95e
RC
53132004-05-24 Randolph Chung <tausq@debian.org>
5314
5315 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
5316 unused symbols.
5317 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
5318 references.
5319
a4d5f2e0
JB
53202004-05-24 Joel Brobecker <brobecker@gnat.com>
5321
5322 * infcmd.c (kill_if_already_running): New function, extracted
5323 from run_command().
5324 (run_command): Replace extracted code by call to
5325 kill_if_already_running().
5326 (start_command): New function.
5327 (_initialize_infcmd): Add "start" command.
5328
bf2ca189
MK
53292004-05-24 Mark Kettenis <kettenis@gnu.org>
5330
5331 Add OpenBSD/m88k support.
5332 * NEWS (New native configurations): Mention OpenBSD/m88k.
5333 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
5334 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
5335 * Makefile.in (m88k_tdep_h): New variable.
5336 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
5337 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
5338 * configure.host: Add m88*-*-openbsd*.
5339 * configure.tgt: Add m88*-*-openbsd*.
5340
80fadb11
JB
53412004-05-24 Jim Blandy <jimb@redhat.com>
5342
5343 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
5344 to approve changes.
5345
19e2d14b
KB
53462004-05-24 Kevin Buettner <kevinb@redhat.com>
5347
5348 * symtab.c (fixup_section): Search section table when lookup by
5349 name fails.
5350
1b07b470
RC
53512004-05-24 Randolph Chung <tausq@debian.org>
5352
5353 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
5354 be "small_struct".
5355
368702b1
MK
53562004-05-24 Mark Kettenis <kettenis@gnu.org>
5357
5df97fde
MK
5358 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
5359 register number in regcache_raw_collect call.
5360 (m68kbsd_collect_fpregset): Likewise.
5361 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
5362
368702b1
MK
5363 * regset.h (struct regset): Add back `regset' member.
5364
a770d4ec
MK
53652004-05-23 Mark Kettenis <kettenis@gnu.org>
5366
70f9f479
MK
5367 * configure.in: Check for td_pcb in `struct thread'.
5368 * configure, config.in: Regenerated.
5369
2e16d79e
MK
5370 * dpx2-nat.c: Remove file.
5371 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
5372 (dpx2-nat.o): Remove dependencies.
5373
492cf391
MK
5374 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
5375 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
5376 (amd64obsd_supply_pcb): New function.
5377 (_initialize_amd64obsd_nat): Enable libkvm interface.
5378 * Makefile.in (amd64obsd-nat.o): Update dependencies.
5379 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
5380 (LOADLIBES): New variable.
5381
a770d4ec
MK
5382 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
5383 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
5384 (sparc32nbsd_supply_pcb): New function.
5385 (_initialize_sparcnbsd_nat): Enable libkvm interface.
5386 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
5387 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5388 (LOADLIBES): New variable.
5389
9ea75c57
MK
53902004-05-22 Mark Kettenis <kettenis@gnu.org>
5391
2e0c3539
MK
5392 * bsd-kvm.c, bsd-kvm.h: New files.
5393 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5394 "bsd-kvm.h".
5395 (i386fbsd_supply_pcb): New function.
5396 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
5397 (i386fbsd-nat.o): Update dependencies.
5398 (bsd_kvm_h): New variable.
5399 (bsd-kvm.o): New dependency.
5400 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
5401 (LOADLIBES): New variable.
5402
9ea75c57
MK
5403 * regset.c: Tweak comment.
5404 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
5405 macro.
5406 * regset.h: Update copyright year.
5407 (struct regset): Remove `descr' member, add `gdbarch' member.
5408 (regset_alloc): Adjust prototype and comment.
5409 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
5410 (i386_supply_fpregset): Likewise.
5411 (i386_regset_from_core_section): Update call to regset_alloc.
5412 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
5413 REGSET->arch.
5414 (i386obsd_aout_regset_from_core_section): Update call to
5415 regset_alloc.
5416 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
5417 REGSET->arch.
5418 (i386nbsd_aout_regset_from_core_section): Update call to
5419 regset_alloc.
5420 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
5421 REGSET->arch.
5422 (amd64_regset_from_core_section): Update call to regset_alloc.
5423 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
5424 REGSET->arch.
5425 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
5426 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
5427 &sparc32nbsd_gregset in sparc32_supply_gregset call.
5428 (sparc32nbsd_init_abi): Update call to regset_alloc.
5429 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
5430 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
5431 (sparc64obsd_init_abi): Update call to regset_alloc.
5432 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
5433 &sparc64nbsd_gregset in sparc64_supply_gregset call.
5434 (sparc64nbsd_init_abi): Update call to regset_alloc.
5435 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
5436 &sparc64fbsd_gregset in sparc64_supply_gregset call.
5437 (sparc64fbsd_init_abi): Update call to regset_alloc.
5438
867e2dc5
JB
54392004-05-22 Jim Blandy <jimb@redhat.com>
5440
5441 * ppc-tdep.h (spe_register_p): New declaration.
5442 (struct gdbarch_tdep): New members: ppc_acc_regnum and
5443 ppc_spefscr_regnum.
5444 * rs6000-tdep.c (spe_register_p): New function.
5445 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
5446 spefscr.
5447 (rs6000_gdbarch_init): Initialize the new members of the tdep
5448 structure.
5449
617a4cba
JB
54502004-05-21 Jim Blandy <jimb@redhat.com>
5451
0397dee1
JB
5452 * ppc-linux-nat.c (fetch_register): Move code back to be next
5453 to the comment that describes it. (Moved code, instead of
5454 comment, for symmetry with store_register.)
5455
617a4cba
JB
5456 Allocate regset structures in the gdbarch's obstack, not using
5457 xmalloc.
5458 * regset.c (regset_alloc): Renamed from regset_xmalloc.
5459 Add 'arch' argument. Allocate the regset on arch's obstack, not
5460 using xmalloc.
5461 * regset.h (regset_alloc): Update declaration.
5462 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
5463 gdbarch argument.
5464 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5465 * i386-tdep.c (i386_regset_from_core_section): Same.
5466 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5467 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5468 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5469 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5470 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5471 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5472
9aa3914d
JB
54732004-05-21 Joel Brobecker <brobecker@gnat.com>
5474
5475 * config/djgpp/fnchange.lst: Undo previous change, was useless.
5476
99c87dab
JB
54772004-05-21 Jim Blandy <jimb@redhat.com>
5478
5479 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
5480 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
5481
c2b6b4aa
JB
54822004-05-20 Jim Blandy <jimb@redhat.com>
5483
5484 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
5485
144529d0
MK
54862004-05-20 Mark Kettenis <kettenis@gnu.org>
5487
5488 * regset.h: Make prototype const-correct.
5489 * regset.c (regset_xmalloc): Make const-correct.
5490
4725b721
PH
54912004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
5492
5493 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
5494 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
5495 (symbol_search_name): Declare.
5496
5497 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
5498 (iter_name_next_hashed): Ditto.
5499 (iter_name_next_linear): Ditto.
5500 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
5501
5502 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
5503 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
5504 (symbol_search_name): New function.
5505
5506 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
5507
5508 * minsyms.c (build_minimal_symbol_hash_tables): Change
5509 test for adding to demangled hash table to check for difference
5510 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
5511
be07a590
JB
55122004-05-19 Jim Blandy <jimb@redhat.com>
5513
5514 Use a constructor function to create regset structures.
5515 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
5516 (struct regset): Use supply_regset_ftype. Add new
5517 'collect_regset' member.
5518 (regset_xmalloc): New declaration.
5519 * regset.c: New file.
5520 * am64-tdep.c (amd64_regset_from_core_section): Use
5521 regset_xmalloc to construct regset structures.
5522 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5523 * i386-tdep.c (i386_regset_from_core_section): Same.
5524 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5525 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5526 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5527 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5528 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5529 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5530 * Makefile.in (COMMON_OBS): Add regset.o.
5531 (regset.o): New rule.
5532
604368f5
JB
55332004-05-19 Joel Brobecker <brobecker@gnat.com>
5534
5535 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
5536 and pthread_cond_wait.c.
5537
82d69f8b
JB
55382004-05-18 Jim Blandy <jimb@redhat.com>
5539
5540 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
5541 before the mach-specific switch, and then let the individual cases
5542 override the defaults, rather than leaving them uninitialized
5543 until the switch and then setting them in each case.
5544
5859efe5
RC
55452004-05-18 Randolph Chung <tausq@debian.org>
5546
5547 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
5548 millicode functions.
5549
9ca80cf8
RC
55502004-05-18 Randolph Chung <tausq@debian.org>
5551
5552 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
5553 references to dld_flags_buffer consistent.
5554
ed70ba00
RC
55552004-05-18 Randolph Chung <tausq@debian.org>
5556
5557 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
5558 it for unwinding the stack.
5559
63100632
RC
55602004-05-18 Randolph Chung <tausq@debian.org>
5561
5562 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
5563 Undefine these so we can overide them using gdbarch.
5564
090ccbb7
RC
55652004-05-18 Randolph Chung <tausq@debian.org>
5566
5567 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
5568 handling for 64-bit HPUX (elf).
5569
594706e6
DJ
55702004-05-18 Daniel Jacobowitz <dan@debian.org>
5571
5572 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
5573 constants.
5574 * amd64-tdep.c (amd64_skip_prologue): Likewise.
5575 * ia64-tdep.c (examine_prologue): Likewise.
5576 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
5577 * v850-tdep.c (v850_fix_call_dummy): Likewise.
5578
e5483145
MK
55792004-05-18 Mark Kettenis <kettenis@gnu.org>
5580
5581 * vax-tdep.c (vax_return_value): Implement
5582 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5583
caed1a45
MK
55842004-05-17 Mark Kettenis <kettenis@gnu.org>
5585
5586 * vax-tdep.c (vax_return_value): Fix typo.
5587
3c0b7db2
AC
55882004-05-17 Andrew Cagney <cagney@redhat.com>
5589
5aae53e5
AC
5590 * MAINTAINERS: Mark Salter was also responsible for
5591 testsuite/config/
5592
3c0b7db2
AC
5593 * NEWS: Mention signal fixes.
5594
22b0923d
RC
55952004-05-17 Randolph Chung <tausq@debian.org>
5596
5597 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
5598 check to see if we are unwinding an export stub. Export stubs clobber
5599 the %rp in the call path and stores the original rp in a stack slot.
5600
22f2b2f3
JB
56012004-05-17 Jim Blandy <jimb@redhat.com>
5602
5603 * MAINTAINERS: Update address for J.T. Conklin.
5604
cea96d64
RC
56052004-05-17 Randolph Chung <tausq@debian.org>
5606
5607 * hppa-tdep.c: Remove superfluous #include's.
5608 * Makefile.in (hppa-tdep.o): Update dependencies.
5609
f08f6a4a
RC
56102004-05-17 Randolph Chung <tausq@debian.org>
5611
5612 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
5613 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
5614 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
5615 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
5616 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
5617 Remove static function declarations.
5618
51da707a
MK
56192004-05-17 Mark Kettenis <kettenis@gnu.org>
5620
caed1a45
MK
5621 * alphabsd-nat.c: Update copyright year.
5622 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
5623
c0c2b0db
MK
5624 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
5625 and M68K_A2_REGNUM.
5626
51da707a
MK
5627 * m68k-tdep.c (m68k_svr4_return_value): Implement
5628 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5629
8d027a04
MK
56302004-05-16 Mark Kettenis <kettenis@gnu.org>
5631
5632 * sol-thread.c Update copyright year. Fix various coding
5633 standards violations. Tweak a few comments.
5634 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
5635 Delete prototypes.
5636
0d99fdb9
RC
56372004-05-15 Randolph Chung <tausq@debian.org>
5638
5639 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
5640 as pointer instead of array reference since HPUX compiler does
5641 not accept unsized array arguments.
5642 * somsolib.c (dld_flags_buffer): Use constant array size.
5643
f7e3843a
MK
56442004-05-15 Mark Kettenis <kettenis@gnu.org>
5645
0fe85704
MK
5646 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
5647 offset with decimal offset.
5648 (amd64obsd_sigcontext_addr): Return correct address for entire
5649 signal trampoline.
5650
a54f9a00
MK
5651 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
5652 instead of get_frame_base.
5653
feae6502
MK
5654 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
5655 (fill_gregset): Use regcache_raw_collect.
5656
0382d099
MK
5657 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
5658 ppcobsd-tdep.c.
5659
f7e3843a
MK
5660 * config/sparc/tm-nbsd64.h: Remove file.
5661 * config/tm-sunos.h: Remove file.
5662
773df3e5
JB
56632004-05-15 Joel Brobecker <brobecker@gnat.com>
5664
5665 * rs6000-tdep.c (store_param_on_stack_p): New function,
5666 an improved version of some code extracted from skip_prologue().
5667 (skip_prologue): Use store_param_on_stack_p() to detect
5668 instructions saving a parameter on the stack. Detect when r0
5669 is used to save a parameter.
5670 Do not mark "li rx, SIMM" instructions as part of the prologue,
5671 unless the following instruction is also part of the prologue.
5672
95918acb
AC
56732004-05-14 Andrew Cagney <cagney@redhat.com>
5674
06f32659
AC
5675 * infrun.c (handle_inferior_event): Simplify
5676 STEP_OVER_UNDEBUGGABLE.
5677
95918acb
AC
5678 * infrun.c (handle_step_into_function): Delete function.
5679 (handle_inferior_event): Inline calls to
5680 handle_step_into_function.
5681
40711ff1 56822004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
5683
5684 * rs6000-nat.c: Fix a comment.
5685
02f60eae
JB
56862004-05-12 David Anderson <davea@sgi.com>
5687
5688 Committed by Jim Blandy <jimb@redhat.com>:
5689 * regcache.c (struct regcache_descr): fix comment spelling.
5690
552e377b
JB
56912004-05-13 J. Brobecker <brobecker@gnat.com>
5692
5693 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
5694 Fixes a link link failure.
5695
349766b2
JB
56962004-05-13 J. Brobecker <brobecker@gnat.com>
5697
5698 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
5699 error that was causing the build to fail.
5700
0d4d5484
JB
57012004-05-13 J. Brobecker <brobecker@gnat.com>
5702
5703 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
5704 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
5705
0b30808c
AC
57062004-05-13 Andrew Cagney <cagney@redhat.com>
5707
5708 * infrun.c (handle_inferior_event): Check for
5709 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
5710 calls. Update comments.
5711
cdf2c5f5
JB
57122004-05-13 Jim Blandy <jimb@redhat.com>
5713
063715bf
JB
5714 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
5715 (fetch_regs_user_thread, fetch_regs_kernel_thread)
5716 (store_regs_user_thread, store_regs_kernel_thread): Use
5717 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
5718 * ppc-linux-nat.c (fill_gregset): Same.
5719 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
5720 (ppc_linux_sigtramp_cache): Same.
5721 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
5722 (ppcnbsd_sigtramp_cache_init): Same.
5723 * rs6000-nat.c (fetch_core_registers): Same.
5724 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
5725 (rs6000_frame_cache): Same.
5726
cdf2c5f5
JB
5727 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
5728 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
5729 of assuming that the gprs are numbered starting with zero.
5730 * ppc-linux-nat.c (fill_gregset): Same.
5731 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
5732 * ppcnbsd-nat.c (getregs_supplies): Same.
5733 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
5734 * rs6000-nat.c (fetch_core_registers): Same.
5735 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
5736
450bd37b
MS
57372004-05-07 Michael Snyder <msnyder@redhat.com>
5738
5739 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
5740 LOC_COMPUTED_ARG, and LOC_INDIRECT.
5741
4a72a2a6
AC
57422004-05-13 Andrew Cagney <cagney@redhat.com>
5743
5744 * infrun.c (handle_inferior_event): Use frame_unwind_id.
5745
8edfa926
BM
57462004-05-13 Bryce McKinlay <mckinlay@redhat.com>
5747
5748 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
5749 base_address for shared libraries.
5750
723e0e3d
BM
57512004-05-13 Bryce McKinlay <mckinlay@redhat.com>
5752
5753 * MAINTAINERS (write after approval): Add myself.
5754
00d4360e
UW
57552004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
5756
5757 * breakpoint.c (bpstat_stop_status): Add new argument
5758 STOPPED_BY_WATCHPOINT. Use it instead of testing
5759 target_stopped_data_address agaist 0 to check whether
5760 or not we stopped due to a hardware watchpoint.
5761 * breakpoint.h (bpstat_stop_status): Adapt prototype.
5762 * infrun.c (handle_inferior_event): Call bpstat_stop_status
5763 with new argument.
5764
ec76baa5
JB
57652004-05-12 Jim Blandy <jimb@redhat.com>
5766
5767 * configure.in: When checking whether we should use the -bbigtoc
5768 option, don't forget to restore the original value of LDFLAGS.
5769 * configure: Regenerated.
5770
f2c9ca08
AC
57712004-05-12 Andrew Cagney <cagney@redhat.com>
5772
5773 * thread.c (load_infrun_state): Delete step_sp.
5774 * infrun.c (context_switch): Ditto.
5775 * inferior.h (step_sp): Ditto.
5776 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
5777 * gdbthread.h (struct thread_info, save_infrun_state)
5778 (restore_infrun_state): Ditto.
5779
090ddb2a
UW
57802004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
5781
5782 * MAINTAINERS (write after approval): Add myself.
5783
8aad930b
AC
57842004-05-12 Andrew Cagney <cagney@redhat.com>
5785
5786 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
5787 eliminate reference to step_sp.
5788 (struct execution_control_state, init_execution_control_state)
5789 (handle_inferior_event, keep_going): Delete update_step_sp and
5790 step_sp.
5791 * infcmd.c (step_sp): Note that variable is unused.
5792
922d5ae0
AC
57932004-05-11 Andrew Cagney <cagney@redhat.com>
5794
5795 * infrun.c (step_over_function): Delete function.
5796 (handle_step_into_function): Use insert_step_resume_breakpoint.
5797 (insert_step_resume_breakpoint): Fix assertion.
5798
017c5ca5
NR
57992004-05-11 Nick Roberts <nickrob@gnu.org>
5800
5801 * utils.c (defaulted_query): Just use the normal query input type
5802 when printing the annotations.
5803
42edda50
AC
58042004-05-11 Andrew Cagney <cagney@redhat.com>
5805
5806 * infrun.c (handle_inferior_event): Simplify code handling
5807 step-into or return-from a signal trampoline.
5808
d28b44a7
AC
58092004-05-11 Andrew Cagney <cagney@redhat.com>
5810
5811 * ppcnbsd-tdep.c: Include "gdb_assert.h".
5812 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
5813
383f0f5b
JB
58142004-05-10 Jim Blandy <jimb@redhat.com>
5815
d0b57c3a
JB
5816 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
5817 with a call to internal_error.
5818
383f0f5b
JB
5819 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
5820 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
5821 processor variant lacks those registers.
5822 (ppc_floating_point_unit_p): Change description to make it clear
5823 that this returns info about the ISA, not the ABI.
5824 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
5825 return true or false by checking tdep->ppc_fp0_regnum and
5826 tdep->ppc_fpscr_regnum. The original code replicated the BFD
5827 arch/mach switching done in rs6000_gdbarch_init; it's better to
5828 keep that logic there, and just check the results here.
5829 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
5830 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
5831 floating-point registers.
5832 (ppc_supply_fpregset, ppc_collect_fpregset)
5833 (rs6000_push_dummy_call, rs6000_extract_return_value)
5834 (rs6000_store_return_value): Assert that we have floating-point
5835 registers.
5836 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
5837 (rs6000_frame_cache): Don't note the locations at which
5838 floating-point registers were saved if we have no fprs.
5839 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
5840 registers.
5841 (fetch_regs_user_thread, fetch_regs_kernel_thread)
5842 (store_regs_user_thread, store_regs_kernel_thread): Only call
5843 supply_fprs / fill_fprs if we actually have floating-point
5844 registers.
5845 (special_register_p): Check ppc_fpscr_regnum before matching
5846 against it.
5847 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
5848 supply / collect fpscr if we don't have it.
5849 * ppc-bdm.c: #include "gdb_assert.h".
5850 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
5851 have floating-point registers, since I can't test this code on
5852 FP-free systems to adapt it.
5853 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
5854 fpscr and floating point register numbers if they don't exist.
5855 (fetch_register): Assert that we have floating-point registers
5856 before we reach the code that handles them.
5857 (store_register): Same. And use tdep instead of calling
5858 gdbarch_tdep again.
5859 (fill_fpregset): Don't try to collect FP registers and fpscr if we
5860 don't have them.
5861 (ppc_linux_sigtramp_cache): Don't record the saved locations of
5862 fprs and fpscr if we don't have them.
5863 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
5864 don't have them.
5865 * ppcnbsd-nat.c: #include "gdb_assert.h".
5866 (getfpregs_supplies): Assert that we have floating-point registers.
5867 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
5868 * ppcobsd-tdep.c: #include "gdb_assert.h".
5869 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
5870 have floating-point registers.
5871 * rs6000-nat.c (regmap): Don't match against the fpscr and
5872 floating point register numbers if they don't exist.
5873 (fetch_inferior_registers, store_inferior_registers,
5874 fetch_core_registers): Only fetch / store / supply the
5875 floating-point registers and the fpscr if we have them.
5876 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
5877 (ppcobsd-tdep.o): Update dependencies.
5878
15960608
AC
58792004-05-10 Andrew Cagney <cagney@redhat.com>
5880
5881 * infrun.c (through_sigtramp_breakpoint): Delete variable.
5882 (context_switch): Do not switch through_sigtramp_breakpoint.
5883 * gdbthread.h (save_infrun_state, load_infrun_state)
5884 (struct thread_info): Delete through_sigtramp_breakpoint parameter
5885 and structure member.
5886 * thread.c (load_infrun_state, save_infrun_state): Update.
5887
5ab5aa0f
MK
58882004-05-10 Mark Kettenis <kettenis@gnu.org>
5889
5890 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
5891
da78b0e7
DJ
58922004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5893
5894 * acinclude.m4: Quote macro names being defined by AC_DEFUN
5895 throughout.
5896 * aclocal.m4: Regenerate.
5897
cca0d3b0
NW
58982004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
5899
5900 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
5901
d303a6c7
AC
59022004-05-10 Andrew Cagney <cagney@redhat.com>
5903
5904 * infrun.c (check_sigtramp2): Delete function.
5905 (handle_inferior_event): When single stepping, and taking a
5906 signal, set a breakpoint at the signal return address. Delete
5907 redundant calls to check_sigtramp2.
5908 (insert_step_resume_breakpoint): New function.
5909 (through_sigtramp_breakpoint, handle_inferior_event)
5910 (follow_exec, wait_for_inferior, fetch_inferior_event)
5911 (currently_stepping, keep_going): Delete most uses of
5912 through_sigtramp_breakpoint, not that it should be deleted.
5913 (delete_breakpoint_current_contents): Delete function.
5914
03f4cc20
RC
59152004-05-10 Randolph Chung <tausq@debian.org>
5916
5917 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
5918 target.
5919 * config/pa/tm-linux.h: New file.
5920
37fc812e
DJ
59212004-05-10 Daniel Jacobowitz <drow@mvista.com>
5922
5923 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
5924 of prefixes. Don't print the prefix twice in the CLI.
5925
26c0b942
JB
59262004-05-10 Jim Blandy <jimb@redhat.com>
5927
2e56e9c1
JB
5928 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
5929 collect all the gprs.
5930
26c0b942
JB
5931 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
5932 loop collecting gprs.
5933
dc497459
AC
59342004-05-09 Andrew Cagney <cagney@redhat.com>
5935
5936 * remote-vx.c (net_step): Delete step-range code.
5937 * remote.c (remote_resume, init_all_packet_configs)
5938 (set_remote_protocol_E_packet_cmd)
5939 (show_remote_protocol_E_packet_cmd)
5940 (remote_protocol_E, show_remote_cmd, _initialize_remote)
5941 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
5942 (show_remote_protocol_e_packet_cmd): Ditto.
5943
0543f387
MK
59442004-05-09 Mark Kettenis <kettenis@gnu.org>
5945
c481d1ca
MK
5946 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
5947
f626a069
MK
5948 * hppa-tdep.h: Update copyright year.
5949 (struct trad_frame_saved_reg): Add opaque declaration.
5950
6fa57a7d
MK
5951 * amd64-tdep.c (amd64_return_value): Implement
5952 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5953
e47577ab
MK
5954 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
5955 (m68k_value_to_register): New functions.
5956 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
5957 value_to_register.
5958
31db7b6c
MK
5959 * defs.h (enum return_value_convention): Add
5960 RETURN_VALUE_ABI_RETURNS_ADDRESS and
5961 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
5962 * infcmd.c (legacy_return_value): New function.
5963 (print_return_value): Rwerite to implement
5964 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5965 * values.c (using_struct_return): Check for inequality to
5966 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
5967 RETURN_VALUE_STRUCT_CONVENTION.
5968 * i386-tdep.c (i386_return_value): Implement
5969 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5970
0543f387
MK
5971 * vax-tdep.c: Tweak comments. Reorder include files. Don't
5972 include "symtab.h", "opcode/vax.h" and "inferior.h".
5973 (vax_skip_prologue): Replace calls to read_memory_integer by calls
5974 to read_memory_unsigned_integer.
5975 (vax_gdbarch_init): Reorder.
5976 (_initialize_vax_tdep): Spell out prototype.
5977 * Makefile.in (vax-tdep.o): Update dependencies.
5978
0c93b7b6
AC
59792004-05-08 Andrew Cagney <cagney@redhat.com>
5980
e6b55ae2
AC
5981 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
5982 * target.c (target_detach, target_disconnect): Ditto.
5983
1ac839b8
AC
5984 * infcall.c (call_function_by_hand): When no
5985 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
5986 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
5987 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
5988 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5989 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5990
28954179
AC
5991 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
5992 * gdbarch.h, gdbarch.c: Re-generate.
5993 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
5994 deprecated_fix_call_dummy.
5995 * v850-tdep.c (v850_gdbarch_init): Ditto.
5996 * infcall.c (call_function_by_hand): Do not call
5997 DEPRECATED_FIX_CALL_DUMMY.
5998
434b87dd
AC
5999 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
6000 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
6001 * gdbarch.h, gdbarch.c: Re-generate.
6002 * arm-linux-tdep.c (arm_linux_call_dummy_words)
6003 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
6004 deprecated_sizeof_call_dummy_words.
6005 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
6006 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6007 * v850-tdep.c (v850_gdbarch_init): Ditto.
6008 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
6009 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
6010 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6011 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6012 * arch-utils.h (legacy_call_dummy_words)
6013 (legacy_sizeof_call_dummy_words): Delete declarations.
6014 * arch-utils.c (legacy_call_dummy_words)
6015 (legacy_sizeof_call_dummy_words): Delete variables.
6016
58d28df8
AC
6017 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
6018 * gdbarch.h, gdbarch.c: Re-generate.
6019 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
6020 * infcall.c (call_function_by_hand): Eliminate call to
6021 DEPRECATED_PUSH_DUMMY_FRAME.
6022 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6023 push_dummy_frame.
6024 (ns32k_push_dummy_frame): Delete function.
6025
e4a2df64
AC
6026 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6027 deprecated_call_dummy_breakpoint_offset or
6028 deprecated_call_dummy_start_offset.
6029 * dummy-frame.c, arm-tdep.c: Update comments.
6030 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
6031 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
6032 * gdbarch.h, gdbarch.c: Re-generate.
6033
d3712828
AC
6034 * infcall.c (legacy_push_dummy_code): Delete function.
6035 (push_dummy_code): Delete call.
6036
7a882905
AC
6037 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
6038 * gdbarch.h, gdbarch.c: Re-generate.
6039 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
6040 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
6041 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
6042 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
6043
0ec5872b
AC
6044 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
6045 (struct frame_info): Delete opaque declaration.
6046 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
6047 * frame.c (get_frame_type): Delete call.
6048
0c93b7b6
AC
6049 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6050 pc_in_call_dummy.
6051 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
6052 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
6053
75536971
MK
60542004-05-08 Mark Kettenis <kettenis@gnu.org>
6055
527ca6bb
MK
6056 * alphanbsd-tdep.c: Include "gdb_string.h".
6057 * armnbsd-tdep.c: Update copyright year.
6058 Include "gdb_string.h".
6059 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
6060 dependencies.
6061
d39fdc61
MK
6062 * delta68-nat.c: Remove file.
6063 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
6064 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
6065 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
6066 (delta68-nat.o): Remove dependency.
6067
75536971
MK
6068 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
6069 function.
6070 (m68k_gdbarch_init): Don't set
6071 deprecated_frameless_function_invocation.
6072
f4ca1d1f
RC
60732004-05-07 Randolph Chung <tausq@debian.org>
6074
6075 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
6076 read_memory_nobpt for code reading when doing frame unwinding.
6077 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
6078
2f0e8c7a
RC
60792004-05-07 Randolph Chung <tausq@debian.org>
6080
6081 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
6082 instead of sp, handle sigaltstack case.
6083 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
6084 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
6085 signal handler and not that of the caller.
6086 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
6087 hppa_linux_sigtramp_find_sigcontext.
6088
959464ff
RC
60892004-05-07 Randolph Chung <tausq@debian.org>
6090
6091 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
6092 hppa-linux-nat.c.
6093 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
6094 * hppa-linux-nat.c (fetch_register, store_register): Define.
6095 (fetch_inferior_registers, store_inferior_registers): Define.
6096 (supply_gregset): Add comment and clean up some unneeded code.
6097 (fill_gregset): Add comment and fix so that it saves registers in
6098 the right place in the gregset.
6099 (fill_fpregset): Fix buffer overrun problem.
6100 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
6101
0da28f8a
RC
61022004-05-07 Randolph Chung <tausq@debian.org>
6103
6104 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
6105 do common handling of the pcoqt register.
6106 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
6107 to use helper function.
6108 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
6109 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
6110 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
6111 generic fallback unwinder when all else fails.
6112 (hppa_gdbarch_init): Add fallback sniffer.
6113 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
6114 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
6115 to use helper function.
6116
b9ec757a
JB
61172004-05-08 Joel Brobecker <brobecker@gnat.com>
6118
6119 * config/djgpp/fnchange.lst: Add translation rules for
6120 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
6121
756e95f1
MK
61222004-05-08 Mark Kettenis <kettenis@gnu.org>
6123
6124 * frame.c (get_prev_frame_1): Work around GCC bug.
6125 * frame.h: Add comment about GCC bug.
6126
2b4855ab
AC
61272004-05-07 Andrew Cagney <cagney@redhat.com>
6128
6129 * observer.c: Include "commands.h" and "gdbcmd.h".
6130 (observer_debug, _initialize_observer): Add the
6131 command "set/show debug observer".
6132 * observer.sh: When observer debugging, log notify calls.
6133 * Makefile.in (observer.o): Update dependencies.
6134
ba3e8e46
JM
61352004-05-07 Jason Molenda (jmolenda@apple.com)
6136
6137 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
6138
16796152
JB
61392004-05-07 Jim Blandy <jimb@redhat.com>
6140
daf6dc85
JB
6141 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
6142 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
6143 to recognize gpr regnums, instead of assuming that
6144 tdep->ppc_fp0_regnum marks the end of the general-purpose
6145 registers.
6146
16796152
JB
6147 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
6148 the given architecture has floating-point registers.
6149
c69b8bfc
AC
61502004-05-07 Andrew Cagney <cagney@redhat.com>
6151
6152 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
6153 macro defined to 1.
6154 * gdbarch.h, gdbarch.c: Re-generate.
6155 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6156 deprecated_use_generic_dummy_frames.
6157
7243600a
BF
61582004-05-07 Brian Ford <ford@vss.fsi.com>
6159
6160 * NEWS: Mention Cygwin DWARF 2 support.
6161
73c1e0a1
AC
61622004-05-07 Andrew Cagney <cagney@redhat.com>
6163
6164 * objfiles.h (struct entry_info): Delete unused fields
6165 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
6166 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
6167 * mipsread.c (mipscoff_symfile_read): Update.
6168 * mdebugread.c (parse_partial_symbols): Update.
6169 * dwarfread.c (read_file_scope): Update.
6170 * dwarf2read.c (read_file_scope): Update.
6171 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
6172 * coffread.c (complete_symtab): Update.
6173
1d3056ac
MK
61742004-05-07 Mark Kettenis <kettenis@gnu.org>
6175
6176 * infcall.c (_initialize_infcall): Fix typo.
6177
15170568
AC
61782004-05-07 Andrew Cagney <cagney@redhat.com>
6179
6180 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
6181 * command.h (add_setshow_zinteger_cmd): Declare.
6182
34f75cc1
RC
61832004-05-06 Randolph Chung <tausq@debian.org>
6184
6185 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
6186 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
6187 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
6188 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
6189 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
6190 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
6191 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
6192 definitions ...
6193 * hppa-tdep.h: ... to here, with HPPA_ prefix.
6194 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
6195 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
6196 (hppa64_hpux_frame_find_saved_regs_in_sig)
6197 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
6198 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
6199 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
6200 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
6201 (hppa_linux_sigtramp_frame_prev_register): Likewise.
6202 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
6203 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
6204 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
6205 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
6206 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
6207 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
6208 (hppa32_register_type, hppa_cannot_store_register)
6209 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
6210 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
6211 * hpread.c (hpread_process_one_debug_symbol): Likewise.
6212 * pa64solib.c (pa64_solib_have_load_event)
6213 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
6214 (pa64_solib_unloaded_library_pathname): Likewise.
6215 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
6216 (som_solib_library_pathname): Likewise.
6217
0a5e7efe
JI
62182004-05-05 Jim Ingham <jingham@apple.com>
6219
6220 * breakpoint.c (create_breakpoints): Copy the ignore count and
6221 thread id over from the pended breakpoint to the actual
6222 breakpoint.
6223
10a4b113
AC
62242004-05-05 Andrew Cagney <cagney@redhat.com>
6225
6226 * gdbarch.sh (PARM_BOUNDARY): Delete.
6227 gdbarch.h, gdbarch.c: Re-generate.
6228 * valops.c (PARM_BOUNDARY): Delete macro.
6229 (value_push): Delete PARM_BOUNDARY code.
6230 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
6231
366f009f
JB
62322004-05-04 Jim Blandy <jimb@redhat.com>
6233
32b99774
JB
6234 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
6235 Don't assume that the gprs, fprs, and UISA sprs are
6236 contiguous, start at register number zero, and end with fpscr.
6237 Instead, use the numbers from the tdep structure.
6238
366f009f
JB
6239 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
6240 should no longer be used in code specific to the RS6000 and its
6241 derivatives.
6242 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
6243 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
6244 tdep->ppc_fp0_regnum.
6245 (ppc_supply_fpregset, ppc_collect_fpregset)
6246 (rs6000_push_dummy_call, rs6000_extract_return_value)
6247 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
6248 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
6249 FP0_REGNUM.
6250 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
6251 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
6252 Same.
6253 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
6254 bdm_ppc_store_registers): Same.
6255 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
6256 (store_register, fill_fpregset): Same.
6257 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
6258 (ppc_linux_supply_fpregset): Same.
6259 * ppcnbsd-nat.c (getfpregs_supplies): Same.
6260 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
6261 Same.
6262 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
6263 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
6264 ppc64_sysv_abi_return_value): Same.
6265 * rs6000-nat.c (regmap, fetch_inferior_registers)
6266 (store_inferior_registers, fetch_core_registers): Same.
6267
827f338d
MK
62682004-05-01 Mark Kettenis <kettenis@gnu.org>
6269
6270 * m68knbsd-nat.c: Remove file.
6271 * m68knbsd-tdep.c: Remove file.
6272 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
6273 dependencies.
6274 * configure.host: Add m68k-*-netbsdelf*.
6275 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
6276 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
6277 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
6278 (XM_FILE): Remove.
6279 * config/m68k/nbsdelf.mh: New file.
6280 * config/m68k/nbsd.mt: New file.
6281 * config/m68k/nbsdaout.mt: Remove file.
6282 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
6283 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
6284 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
6285 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
6286 (use_struct_convention): Remove prototype.
6287 (USE_STRUCT_CONVENTION): Remove define.
6288 * config/m68k/xm-nbsd.h: Remove file.
6289
66894781
MS
62902004-05-04 Michael Snyder <msnyder@redhat.com>
6291
6292 * m68k-tdep.c (m68k_gdbarch_init): Default to using
6293 reg_struct_return method (as gcc usually does for cross targets).
6294
f0f63663
AC
62952004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6296
6297 Committed by Andrew Cagney.
6298 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
6299 alignment padding when accessing ucontext struct members.
6300
edf61169
JB
63012004-05-04 Jim Blandy <jimb@redhat.com>
6302
8bf659e8
JB
6303 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
6304 'ppc_gplast_regnum' member.
6305 (ppc_num_gprs): New enum constant.
6306 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
6307 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
6308 * rs6000-nat.c (regmap, fetch_inferior_registers,
6309 store_inferior_registers): Same.
6310 * rs6000-tdep.c (e500_pseudo_register_read)
6311 (e500_pseudo_register_write): Same.
6312 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
6313
b967e06f
JB
6314 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
6315 * ppc-tdep.h (ppc_num_fprs): New enum constant.
6316 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
6317 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
6318 FPLAST_REGNUM.
6319 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6320 Same.
6321 * ppc-linux-nat.c (ppc_register_u_addr): Same.
6322 * rs6000-nat.c (regmap, fetch_inferior_registers)
6323 (store_inferior_registers): Same.
6324
edf61169
JB
6325 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
6326 with FPLAST_REGNUM.
6327
58a9656e
JB
63282004-05-03 Joel Brobecker <brobecker@gnat.com>
6329
6330 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
6331 failure detected by recent versions of GCC.
6332 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
6333 to be consistent with the usage in dwarf2_create_include_psymtab.
6334
dc305454
MS
63352004-05-03 Michael Snyder <msnyder@redhat.com>
6336
6337 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
6338 (heuristic_proc_start): Whitespace cleanup.
6339
29972665
MK
63402004-05-04 Mark Kettenis <kettenis@gnu.org>
6341
6b57680d
MK
6342 * sun3-nat.c: Remove file.
6343 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
6344 dependencies.
6345 (ALLDEPFILES): Remove sun3-nat.c.
6346 (sun3-nat.o): Remove dependencies.
6347
29972665
MK
6348 * i386-interix-nat.c, i386-interix-tdep.c,
6349 config/i386/nm-interix.h, config/i386/interix.mh,
6350 config/i386/interix.mt: Remove files.
6351 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
6352 dependencies.
6353
f595cb19
MK
63542004-05-03 Mark Kettenis <kettenis@gnu.org>
6355
6356 * m68k-tdep.h (struct gdbarch_tdep): Add member
6357 struct_value_regnum.
6358 (m68k_svr4_init_abi): New prototype.
6359 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
6360 different calling conventions.
6361 (m68k_extract_return_value): Remove code dealing with single-field
6362 structs.
6363 (m68k_store_return_value): Remove code dealing with single-field
6364 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
6365 (m68k_extract_struct_value_address): Remove function.
6366 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
6367 (m68k_reg_struct_return_p, m68k_return_value)
6368 (m68k_svr4_return_value): New functions.
6369 (m68k_use_struct_convention): Remove function.
6370 (m68k_push_dummy_call): Use new struct_value_regnum member of
6371 `struct gdbarch_tdep' instead of hardcoded register number to
6372 store STRUCT_ADDR.
6373 (m68k_svr4_init_abi): New function.
6374 (m68k_gdbarch_init): Don't set extract_return_value,
6375 store_return_values, deprecated_extract_struct_value_address and
6376 use_struct_convention. Set return_value instead. Initialize new
6377 struct_value_regnum member of `struct gdbarch_tdep'.
6378 * m68klinux-tdep.c: Update copyright year.
6379 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
6380 (m68k_linux_extract_struct_value_address): Remove function.
6381 (m68k_linux_init_abi): Don't set extract_return_value,
6382 store_return_values, deprecated_extract_struct_value_address and
6383 use_struct_convention. Call m68k_svr4_init_abi but override the
6384 new struct_value_regnum member of `struct gdbarch_tdep'.
6385 * Makefile.in (m68k-tdep.o): Update dependencies.
6386
aaa75496
JB
63872004-05-03 J. Brobecker <brobecker@gnat.com>
6388
6389 * dwarf2read.c (line_header): Add new included_p field in
6390 field file_names.
6391 (partial_die_info): New field has_stmt_list. New field line_offset.
6392 (dwarf2_create_include_psymtab): New function.
6393 (dwarf2_build_include_psymtabs): New function.
6394 (add_file_name): Add forward declaration. Initialize new field.
6395 (dwarf_decode_lines): Add new parameter. Enhance this procedure
6396 to be able to determine the list of files included by the
6397 given unit, and build their associated psymtabs.
6398 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
6399 files as well.
6400 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
6401 (read_file_scope): Update call to dwarf_decode_lines.
6402 (read_partial_die): Handle DW_AT_stmt_list attributes.
6403
c848556f
MC
64042004-05-02 Michael Chastain <mec.gnu@mindspring.com>
6405
6406 Unfix PR gdb/1626.
6407 * configure.in: Revert special case for osf5.*.
6408 * configure: Regenerate.
6409
eb4556d7
JB
64102004-05-02 Jim Blandy <jimb@redhat.com>
6411
6412 Move the symbol-file-from-memory functions into their own file.
6413 * symfile-mem.c, symfile-mem.h: New files.
6414 * symfile.c (symbol_file_add_from_bfd): New function.
6415 (symbol_file_add): Call symbol_file_add_from_bfd.
6416 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
6417 Moved to symfile-mem.c.
6418 (_initialize_symfile): Move definition of
6419 add-symbol-file-from-memory command to symfile-mem.c.
6420 * symfile.h (symbol_file_add_from_bfd): New declaration.
6421 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
6422 * config/powerpc/linux.mt (TDEPFILES): Same.
6423 * Makefile.in (SFILES): Add symfile-mem.c.
6424 (symfile_mem_h): New variable.
6425 (HFILES_NO_SRCDIR): Add symfile-mem.h.
6426 (symfile-mem.o): New rule.
6427
80bb239e
AC
64282004-05-01 Andrew Cagney <cagney@redhat.com>
6429
7789d0fa
AC
6430 * breakpoint.c (insert_bp_location): Use get_frame_id, and
6431 frame_find_by_id instead of frame_relative_level.
6432 (do_enable_breakpoint): Ditto.
6433 * thread.c: Update copyright.
6434 (info_threads_command): Ditto, simplify.
6435
80bb239e
AC
6436 * frame.c (deprecated_generic_get_saved_register): Delete
6437 function, moved to "xstormy16-tdep.c".
6438 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
6439 deprecated_generic_get_saved_register from "frame.c".
6440 (xstormy16_frame_saved_register): Call
6441 xstormy16_get_saved_register.
6442 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
6443 static.
6444 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
6445 * frame.h (deprecated_generic_get_saved_register): Delete.
6446
b2a871dd
MC
64472004-05-01 Michael Chastain <mec.gnu@mindspring.com>
6448
6449 * dwarfread.c: Update documentation on the state of dwarf-1.
6450
0e100dab
AC
64512004-05-01 Andrew Cagney <cagney@redhat.com>
6452
acd8056e
AC
6453 * stack.c (select_frame_command): Delete call to
6454 frame_relative_level.
6455 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
6456 Delete #if0 code.
6457 (frame_info): Do not print FRAMELESS.
6458 (print_block_frame_labels): Replace DEPRECATED_STREQ.
6459 (catch_info): Delete #if0 code.
6460
0e100dab
AC
6461 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
6462 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
6463 of frame_relative_level.
6464 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
6465 to SENTINEL_FRAME.
6466 * frame.h (enum frame_type): Add SENTINEL_FRAME.
6467 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
6468 frame_relative_level.
6469
55699d59
AC
6470 * frame.h (deprecated_set_frame_type): Delete declaration.
6471 * frame.c (deprecated_set_frame_type): Delete function, update
6472 comments.
6473
fcf70625
AC
6474 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
6475 * gdbarch.h, gdbarch.c: Re-generate.
6476 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
6477 (shnbsd_pc_in_sigtramp): Delete.
6478 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
6479 pc_in_sigtramp.
6480 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
6481 pc_in_sigtramp.
6482 * frame.h: Update comments.
6483 * ppc-linux-tdep.c: Update comments.
6484 * breakpoint.c (bpstat_what): Update comments.
6485
ac5eccb7
AC
6486 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
6487 m68klinux-tdep.o's dependencies, were previously added to
6488 m68klinux-nat.o.
6489
f2524b93
AC
6490 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
6491 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
6492 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6493 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6494 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6495
17e20bce
AC
6496 * Makefile.in (m68klinux-nat.o): Update dependencies.
6497 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6498 (m68k_linux_sigtramp_frame_cache)
6499 (m68k_linux_sigtramp_frame_this_id)
6500 (m68k_linux_sigtramp_frame_prev_register)
6501 (m68k_linux_sigtramp_frame_unwind)
6502 (m68k_linux_sigtramp_frame_sniffer)
6503 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
6504 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
6505 names, use trad-frame.h.
6506 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
6507 (struct m68k_sigtramp_info): Delete.
6508 * m68k-tdep.c (m68k_sigtramp_frame_cache)
6509 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
6510 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
6511 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
6512 "m68klinux-tdep.c".
6513
c8864fa2
AC
6514 * infrun.c (check_sigtramp2): Delete check for
6515 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
6516
511dd2cd
MK
65172004-05-01 Mark Kettenis <kettenis@gnu.org>
6518
6519 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
6520
8c6b0e06
AC
65212004-05-01 Andrew Cagney <cagney@redhat.com>
6522
9df0bb3f
AC
6523 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6524 (frv_linux_sigtramp_frame_cache)
6525 (frv_linux_sigtramp_frame_this_id)
6526 (frv_linux_sigtramp_frame_prev_register)
6527 (frv_linux_sigtramp_frame_unwind)
6528 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
6529 include "linux" in function and variable names, directly call
6530 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
6531 the latest trad-frame code.
6532 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
6533 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
6534 * Makefile.in (frv-linux-tdep.o): Update dependencies.
6535 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
6536 * frv-tdep.c (frv_sigtramp_frame_cache)
6537 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
6538 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
6539 frv-linux-tdep.c.
6540 (frv_gdbarch_init): Do not append a sigtramp sniffer.
6541 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
6542 (frv_set_sigcontext_reg_addr): Delete function.
6543
8c6b0e06
AC
6544 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
6545 (DEPRECATED_SIGTRAMP_END): Delete.
6546 * gdbarch.h, gdbarch.c: Re-generate.
6547 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
6548 * config/vax/tm-vaxbsd.h: Update copyright.
6549 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6550 (DEPRECATED_IN_SIGTRAMP): Define.
6551 * config/m68k/tm-nbsd.h: Update copyright.
6552 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6553 (DEPRECATED_IN_SIGTRAMP): Define.
6554
50ea7769
MK
65552004-05-01 Mark Kettenis <kettenis@gnu.org>
6556
03ac2a74
MK
6557 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
6558 encondings. Fixes PR gdb/1628.
6559
50ea7769
MK
6560 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
6561 DW_CFA_restore state without a matching DW_CFA_remember_state
6562 instead of aborting. Fixes PR backtrace/1589.
6563
9a5d7be1
JB
65642004-04-30 Joel Brobecker <brobecker@gnat.com>
6565
6566 * MAINTAINERS: Add self as AIX maintainer.
6567 Update my e-mail address in write-after-approval section.
6568
2593d1cd
AC
65692004-04-30 Andrew Cagney <cagney@redhat.com>
6570
ce12bbf9
AC
6571 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
6572 (legacy_get_prev_frame): Ditto.
6573
36710c63
AC
6574 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
6575 (mips_gdbarch_init): Do not set pc_in_sigtramp.
6576 * mipsread.c (sigtramp_address): Delete extern variable.
6577 (mipscoff_new_init): Delete reference.
6578 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
6579 (fixup_sigtramp): Delete function.
6580 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
6581 (fixup_sigtramp): Delete declarations.
6582
2593d1cd
AC
6583 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
6584 deprecated_pc_in_sigtramp.
6585 (ppcnbsd_pc_in_sigtramp): Delete function.
6586
2a25f91c
MK
65872004-05-01 Mark Kettenis <kettenis@gnu.org>
6588
6589 * config/m68k/nm-nbsd.h: Tweak comments.
6590 * config/m68k/nm-nbsdaout.h: Likewise.
6591
0b281939
AC
65922004-04-30 Andrew Cagney <cagney@redhat.com>
6593
6594 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
6595 legacy_pc_in_sigtramp.
6596 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
6597
8f2d3ea0
MK
65982004-05-01 Mark Kettenis <kettenis@gnu.org>
6599
6600 Add OpenBSD/m68k support.
6601 * NEWS (New native configurations): Mention OpenBSD/m68k.
6602 * m68kbsd-tdep.c: New file.
6603 * m68kbsd-nat.c: New file.
6604 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
6605 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
6606 * configure.host: Add m68k-*-openbsd.
6607 * configure.tgt: Add m68k-*-openbsd.
6608 * config/m68k/tm-obsd.h: New file.
6609 * config/m68k/obsd.mt: New file.
6610 * config/m68k/obsd.mh: New file.
6611 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
6612 m68kbsd-tdep.c.
6613
c40f49a4
AC
66142004-04-30 Andrew Cagney <cagney@redhat.com>
6615
6616 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
6617 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
6618
e81554cd
MK
66192004-04-30 Mark Kettenis <kettenis@gnu.org>
6620
6621 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
6622 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
6623
d4dc1a91
BF
66242004-04-30 Brian Ford <ford@vss.fsi.com>
6625
6626 Revert 2004-04-16 change.
6627 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
6628 (i386_coff_init_abi): Remove.
6629 * i386-tdep.h (i386_coff_init_abi): Remove.
6630 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
6631
2f72f850
AC
66322004-04-30 Andrew Cagney <cagney@redhat.com>
6633
e492f9d6
AC
6634 * blockframe.c (find_pc_partial_function): Delete use of
6635 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
6636 DEPRECATED_SIGTRAMP_END.
6637
7b7adad0
AC
6638 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
6639 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
6640 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
6641 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
6642 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
6643
2f72f850
AC
6644 * defs.h (deprecated_inside_entry_file): Delete declaration.
6645 * blockframe.c (deprecated_inside_entry_file): Delete function.
6646 (legacy_frame_chain_valid): Delete call.
6647 * sh64-tdep.c (sh64_frame_chain): Delete call.
6648 * objfiles.h: Update comments.
6649 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
6650 call.
6651 * frame.c (get_prev_frame): Delete call, update comments.
6652
283f90a7
BF
66532004-04-30 Brian Ford <ford@vss.fsi.com>
6654
6655 * MAINTAINERS (Write After Approval): Add myself.
6656
8ee56bcf
AC
66572004-04-30 Andrew Cagney <cagney@redhat.com>
6658
6659 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
6660 * gdbarch.h, gdbarch.c: Re-generate.
6661 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
6662 code.
6663
ee27e1b6
AC
66642004-04-30 Andrew Cagney <cagney@redhat.com>
6665
6666 * gdb-events.sh (selected_thread_changed)
6667 (selected_frame_level_changed, target_changed): Delete.
6668 * gdb-events.h, gdb-events.c: Re-generate.
6669 * valops.c (value_assign): Update.
6670 * stack.c (select_frame_command, up_silently_base)
6671 (down_silently_base): Update.
6672
d5ac5a39
AC
66732004-04-29 Andrew Cagney <cagney@redhat.com>
6674
6675 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
6676 registers correctly.
6677 (print_gp_register_row, mips32_heuristic_proc_desc)
6678 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
6679 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
6680 references to mips_isa_regsize.
6681
ceae6e75
AC
66822004-04-29 Andrew Cagney <cagney@redhat.com>
6683
6684 * mips-tdep.c (struct gdbarch_tdep): Delete
6685 mips_fp_register_double.
6686 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
6687 mips_abi_regsize.
6688 (mips_gdbarch_init): Do not set mips_fp_register_double.
6689 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
6690
a587af0b
AC
66912004-04-29 Joel Brobecker <brobecker@gnat.com>
6692
6693 Committed by Andrew Cagney.
6694 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
6695 function calls.
6696
13326b4e
AC
66972004-04-29 Andrew Cagney <cagney@redhat.com>
6698
6699 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
6700 gdbarch, use mips_abi, update callers.
6701 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
6702 mips_abi_regsize, update callers.
6703 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
6704 mips_default_abi_regsize.
6705 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
6706 mips_default_abi_regsize.
6707
711cc5cd
AC
67082004-04-29 Andrew Cagney <cagney@redhat.com>
6709
1b13c4f6
AC
6710 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
6711 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
6712 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
6713 mips_default_abi_regsize.
6714 (mips_isa_regsize): Rename mips_regisze.
6715 * mipsnbsd-tdep.c: Update.
6716 * mips-linux-tdep.c: Update.
6717 * irix5-nat.c: Update.
6718 * mips-tdep.h (mips_isa_regsize): Update.
6719
711cc5cd
AC
6720 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
6721 Delete all disabled code.
6722 * gdb-events.h, gdb-events.c: Re-generate.
6723
e63bbc88
MK
67242004-04-19 Jerome Guitton <guitton@gnat.com>
6725 Mark Kettenis <kettenis@gnu.org>
6726
6727 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
6728 the function begins with a branch instruction.
6729
fd35795f
MK
67302004-04-29 Mark Kettenis <kettenis@gnu.org>
6731
6732 * i386-tdep.c: Fix spelling mistakes.
6733
c960c18f
AC
67342004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6735 Andrew Cagney <cagney@redhat.com>
6736
6737 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
6738 <sys/proc.h>.
6739 * acconfig.h: Provide default _KMEMUSER value.
6740 * config.in, configure: Re-generate.
6741 * NEWS: Mention fix.
6742
50306a9d
RC
67432004-04-24 Randolph Chung <tausq@debian.org>
6744
6745 * configure.host (hppa*-*-linux*): New target.
6746 * configure.tgt (hppa*-*-linux*): Likewise.
6747 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
6748 gdbarch_init_osabi() call earlier so that osabi-specific frame
6749 unwinders can be registered first.
6750 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
6751 hppa-linux-nat.c.
6752 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
6753 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
6754 * config/pa/linux.mh: New file.
6755 * config/pa/linux.mt: New file.
6756 * config/pa/nm-linux.h: New file.
6757 * config/pa/xm-linux.h: New file.
6758 * hppa-linux-nat.c: New file.
6759 * hppa-linux-tdep.c: New file.
6760
2a6228ef
RC
67612004-04-28 Randolph Chung <tausq@debian.org>
6762
6763 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
6764 return values.
6765 (hppa32_push_dummy_call): Fix small struct and floating point argument
6766 passing, and make sure the stack frame is properly aligned.
6767
82c10df6
AC
67682004-04-28 Andrew Cagney <cagney@redhat.com>
6769
d762c46a
AC
6770 * stack.c (print_stack_frame): Fix description.
6771
82c10df6
AC
6772 * NEWS: Mention gdb/gdbserver/configure execute permission
6773 changed. PR server/519.
6774
0faf0076
AC
67752004-04-28 Andrew Cagney <cagney@redhat.com>
6776
6777 * stack.c (print_stack_frame_stub): Delete declaration.
6778 (struct print_stack_frame_args, print_stack_frame)
6779 (print_frame_info, print_frame): Replace "source" with print what.
6780 Replace "print" with "print_level". Replace "args" with
6781 "print_args".
6782 * frame.h (show_and_print_stack_frame, print_stack_frame)
6783 (print_frame_info): Update declarations.
6784 * stack.c (select_and_print_frame, frame_command)
6785 (current_frame_command, up_command, down_command): Update calls -
6786 use get_selected_frame, pass "enum print_what" for source, do not
6787 call frame_relative_level.
6788 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
6789 * remote-rdp.c (remote_rdp_open): Ditto.
6790 * remote-mips.c (common_open): Ditto.
6791 * remote-e7000.c (e7000_start_remote): Ditto.
6792 * ocd.c (ocd_start_remote): Ditto.
6793 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
6794 * infrun.c (normal_stop): Ditto.
6795 * inflow.c (kill_command): Ditto.
6796 * infcmd.c (finish_command): Ditto.
6797 * corelow.c (core_open): Ditto.
6798 * tracepoint.c (finish_tfind_command): Ditto.
6799 * thread.c (info_threads_command, info_threads_command)
6800 (restore_current_thread, do_captured_thread_select): Ditto.
6801 * ada-tasks.c (task_command): Ditto.
6802
f4c5303c
OF
68032004-04-26 Orjan Friberg <orjanf@axis.com>
6804
6805 * frame.c: Include "observer.h".
6806 (frame_observer_target_changed): New function.
6807 (_initialize_frame): Attach target_changed observer.
6808 * regcache.c: Include "observer.h".
6809 (regcache_observer_target_changed): New function.
6810 (_initialize_regcache): Attach target_changed observer.
6811 * valops.c: Include "observer.h".
6812 (value_assign): Notify target_changed event when modifying register.
6813 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
6814
7270d8f2
OF
68152004-04-26 Orjan Friberg <orjanf@axis.com>
6816
6817 From Paul Koning <pkoning@equallogic.com>:
6818 * breakpoint.c (free_valchain): New function.
6819 (insert_bp_location, delete_breakpoint): Use free_valchain.
6820 (remove_breakpoint): Do not remove the valchain.
6821 (bpstat_stop_status): If not stopped by watchpoint, skip
6822 watchpoints when generating stop status list.
6823 * infrun.c (handle_inferior_event): Make
6824 stepped_after_stopped_by_watchpoint a global variable.
6825 * remote.c (remote_stopped_data_address): Return watch data
6826 address rather than zero if stepped_after_stopped_by_watchpoint is
6827 set.
6828
02d62932
MC
68292004-04-25 Michael Chastain <mec.gnu@mindspring.com>
6830
6831 Fix PR gdb/1626.
6832 * configure.in: Check for curses after termcap.
6833 On osf5.*, do not check for ncurses.
6834 * configure: Regenerate.
6835
3e9a183c
MK
68362004-04-25 Mark Kettenis <kettenis@gnu.org>
6837
c79ac407
MK
6838 * ppcobsd-nat.c: Include "ppc-tdep.h".
6839 * Makefile.in (ppcobsd-nat.o): Update dependencies.
6840
3e9a183c
MK
6841 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
6842 Fixes PR tdep/1623 and PR tdep/1624.
6843
38cc9c28
MC
68442004-04-24 Michael Chastain <mec.gnu@mindspring.com>
6845
6846 * xmodem.h, xmodem.c: Remove files.
6847 * Makefile.in: Remove references to xmodem.h, xmodem.c.
6848
7f07c5b6
RC
68492004-04-23 Randolph Chung <tausq@debian.org>
6850
6851 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
6852 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
6853 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
6854 for handling stackless frames.
6855 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
6856
9f7194c3
RC
68572004-04-23 Randolph Chung <tausq@debian.org>
6858
6859 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
6860 starts at a pc before the frame is created.
6861
dcff6009
JB
68622004-04-23 Joel Brobecker <brobecker@gnat.com>
6863
6864 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
6865
40711ff1 68662004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
6867
6868 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
6869 use convert_typed_floating to get the appropriate format.
6870
abc485a1
RC
68712004-04-22 Randolph Chung <tausq@debian.org>
6872
6873 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
6874 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
6875 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
6876 (hppa_sign_extend): Add prototype.
6877 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
6878 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
6879 (sign_extend): Rename with hppa_ prefix and make non-static. Other
6880 hppa targets will also use these functions.
6881 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
6882 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
6883 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
6884 (hppa_gdbarch_init): Remove gdbarch setting of
6885 skip_trampoline_code, in_solib_call_trampoline and
6886 in_solib_return_trampoline.
6887 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
6888 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
6889 hppa_in_solib_call_trampoline.
6890 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
6891 Moved from hppa-tdep.c.
6892 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
6893 in_solib_call_trampoline and in_solib_return_trampoline.
6894
369aa520
RC
68952004-04-22 Randolph Chung <tausq@debian.org>
6896
6897 * hppa-tdep.c (hppa_debug): New variable.
6898 (find_unwind_entry, hppa_frame_cache): Add debug output.
6899 (_initialize_hppa_tdep): Add command to set debug flag.
6900
476be15e
AC
69012004-04-22 Andrew Cagney <cagney@redhat.com>
6902
6903 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
6904 "trad-frame.h".
6905 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
6906 signal trampoline unwinder.
6907 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
6908
d195bc9f
MK
69092004-04-22 Mark Kettenis <kettenis@gnu.org>
6910
6911 Add OpenBSD/powerpc support.
6912 * NEWS (New native configurations): Mention OpenBSD/powerpc.
6913 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
6914 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
6915 (ppc_collect_fpregset): New prototypes.
6916 * ppcobsd-nat.c: New file.
6917 * ppcobsd-tdep.c: New file.
6918 * ppcobsd-tdep.h: New file.
6919 * rs6000-tdep.c: Include "regset.h".
6920 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
6921 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
6922 New functions.
6923 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
6924 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
6925 (rs6000-tdep.o): Update dependencies.
6926 * configure.host: Add powerpc-*-openbsd.
6927 * configure.tgt: Add powerpc-*-openbsd.
6928 * config/powerpc/obsd.mh: New file.
6929 * config/powerpc/nm-obsd.h: New file.
6930 * config/powerpc/obsd.mt: New file.
6931
6f14cc33
AC
69322004-04-22 Andrew Cagney <cagney@redhat.com>
6933
fcf29e5f
AC
6934 * frame.h (show_frame_info): Delete declaration.
6935
6f14cc33
AC
6936 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
6937 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
6938 * m32r-tdep.c (m32r_frame_this_id): Ditto.
6939 * frv-tdep.c (frv_frame_this_id): Ditto.
6940 * avr-tdep.c (avr_frame_this_id): Ditto.
6941
e5786a5c
EZ
69422004-04-22 Elena Zannoni <ezannoni@redhat.com>
6943
6944 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
6945
26e75e5c
JB
69462004-04-22 Jim Blandy <jimb@redhat.com>
6947
6948 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
6949 register number zero.
6950
d8d65dd3
MS
69512004-04-21 Michael Snyder <msnyder@redhat.com>
6952
6953 * mips-tdep.c (heuristic_proc_start):
6954 Warning() already prefixes "Warning: ".
6955
9a4105ab
AC
69562004-04-21 Andrew Cagney <cagney@redhat.com>
6957
6958 * annotate.h (deprecated_annotate_starting_hook)
6959 (deprecated_annotate_stopped_hook)
6960 (deprecated_annotate_exited_hook)
6961 (deprecated_annotate_signal_hook)
6962 (deprecated_annotate_signalled_hook): Deprecate.
6963 * tracepoint.h (deprecated_create_tracepoint_hook)
6964 (deprecated_delete_tracepoint_hook)
6965 (deprecated_modify_tracepoint_hook)
6966 (deprecated_trace_find_hook)
6967 (deprecated_trace_start_stop_hook): Deprecate.
6968 * target.h (deprecated_target_new_objfile_hook): Deprecate.
6969 * remote.h (deprecated_target_resume_hook)
6970 (deprecated_target_wait_loop_hook): Deprecate.
6971 * gdbcore.h (deprecated_exec_file_display_hook)
6972 (deprecated_file_changed_hook): Deprecate.
6973 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
6974 * defs.h (deprecated_modify_breakpoint_hook)
6975 (deprecated_command_loop_hook, deprecated_show_load_progress)
6976 (deprecated_print_frame_info_listing_hook)
6977 (deprecated_query_hook, deprecated_warning_hook)
6978 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
6979 (deprecated_delete_breakpoint_hook)
6980 (deprecated_interactive_hook, deprecated_registers_changed_hook)
6981 (deprecated_readline_begin_hook, deprecated_readline_hook)
6982 (deprecated_readline_end_hook, deprecated_register_changed_hook)
6983 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
6984 (deprecated_context_hook, deprecated_target_wait_hook)
6985 (deprecated_attach_hook, deprecated_detach_hook)
6986 (deprecated_call_command_hook, deprecated_set_hook)
6987 (deprecated_error_hook, deprecated_error_begin_hook)
6988 (deprecated_ui_load_progress_hook): Deprecate.
6989 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
6990 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
6991 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
6992 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
6993 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
6994 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
6995 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
6996 * annotate.c, aix-thread.c: Update.
6997
62cf13cc
AC
69982004-04-21 Andrew Cagney <cagney@redhat.com>
6999
b2e31a62
AC
7000 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
7001 * vaxnbsd-tdep.c: Include "gdb_string.h".
7002
62cf13cc
AC
7003 * symfile.c (symbol_file_add_from_memory): #if 0 function.
7004 (add_symbol_file_from_memory_command): #if 0 function body, call
7005 error instead.
7006
00e32a35
AC
70072004-04-21 Andrew Cagney <cagney@redhat.com>
7008
7009 * gdbcore.h: Update copyright.
7010 (deprecated_add_core_fns): Rename add_core_fns.
7011 * win32-nat.c (_initialize_core_win32): Update.
7012 * sun3-nat.c (_initialize_core_sun3): Update.
7013 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
7014 * rs6000-nat.c (_initialize_core_rs6000): Update.
7015 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
7016 * nto-tdep.c (_initialize_nto_tdep): Update.
7017 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
7018 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
7019 * mips-nat.c (_initialize_core_mips): Update.
7020 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7021 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
7022 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
7023 * lynx-nat.c (_initialize_core_lynx): Update.
7024 * irix5-nat.c (_initialize_core_irix5): Update.
7025 * i386-interix-nat.c (_initialize_core_interix): Update.
7026 * cris-tdep.c (_initialize_cris_tdep): Update.
7027 * corelow.c (deprecated_add_core_fns): Update.
7028 * core-regset.c (_initialize_core_regset): Update.
7029 * core-aout.c (_initialize_core_aout): Update.
7030 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
7031 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
7032 * alpha-nat.c (_initialize_core_alpha): Update.
7033
13c7b1ca
JB
70342004-04-21 Jim Blandy <jimb@redhat.com>
7035
7036 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
7037
7b5a2f43
DJ
70382004-04-19 Daniel Jacobowitz <drow@mvista.com>
7039
7040 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
7041 Delete.
7042 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
7043 (read_attribute_value): Update calls to dwarf_alloc_block.
7044 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
7045 dwarf2_tmp_obstack.
7046 (psymtab_to_symtab_1): Likewise. Clean up using
7047 free_stack_comp_unit.
7048 (add_to_cu_func_list): Use the comp_unit_obstack.
7049
05cf31d1
JB
70502004-04-19 Joel Brobecker <brobecker@gnat.com>
7051
7052 * dwarf2read.c (dwarf2_flag_true_p): New function.
7053 (die_is_declaration): Use the function above. Add some comments.
7054
adf93a2f
MK
70552004-04-19 Mark Kettenis <kettenis@gnu.org>
7056
7057 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
7058 architecture when registering sparcnbsd_core_osabi_sniffer.
7059 Adjust comment.
7060
748894bf
MK
70612004-04-18 Mark Kettenis <kettenis@gnu.org>
7062
f622ad42
MK
7063 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
7064 return value.
7065
c4fc7f1b
MK
7066 Based on a patch from Brian Ford <ford@vss.fsi.com>:
7067 * i386-tdep.c: Correct register numbering scheme comments
7068 throughout.
7069 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
7070 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
7071 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
7072 (i386_gdb_arch_init): Likewise.
7073
b4ead1bd
MK
7074 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
7075 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
7076 ppcnbsd-tdep.o.
7077
748894bf
MK
7078 * m68k-tdep.h: Tweak comments.
7079 * m68k-tdep.c: Tweak comment.
7080
fdd72f95
RC
70812004-04-17 Randolph Chung <tausq@debian.org>
7082
7083 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
7084 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
7085 (hppa_hpux_som_init_abi): Set is_elf to 0.
7086 (hppa_hpux_elf_init_abi): Set is_elf to 1.
7087 * hppa-tdep.c (low_text_segment_address): Remove global.
7088 (record_text_segment_lowaddr): Pass in low address as parameter. Use
7089 section offset to calculate segment address.
7090 (internalize_unwinds): Define low_text_segment_address as local and
7091 pass to record_text_segment_lowaddr for ELF targets.
7092 (hppa_gdbarch_init): Zero fill tdep structure.
7093 (hppa_dump_tdep): Print tdep structure.
7094 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
7095
0f8d9d59
RC
70962004-04-17 Randolph Chung <tausq@debian.org>
7097
7098 * hppa-tdep.c (hppa_pseudo_register_read): Define.
7099 (hppa_gdbarch_init): Set pseudo_register_read.
7100 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
7101 * regcache.c (supply_register): Remove check for
7102 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
7103
7c46b9fb
RC
71042004-04-17 Randolph Chung <tausq@debian.org>
7105
7106 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
7107 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
7108 (hpread_adjust_stack_address): Move to hpread.c.
7109 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7110 obj_private_struct): Move from tm-hppa.h.
7111 * hpread.c (hppa-tdep.h): Include.
7112 (hpread_adjust_stack_address): Move from hppa-tdep.c.
7113 (hpread_read_function_type, hpread_read_doc_function_type)
7114 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
7115 directly.
7116 * pa64solib.c (hppa-tdep.h): Include.
7117 * somsolib.c (hppa-tdep.h): Include.
7118 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
7119 inferior_status): Remove unused forward declarations.
7120 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
7121 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7122 obj_private_struct): Move to hppa-tdep.h.
7123 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
7124
8d153463
RC
71252004-04-17 Randolph Chung <tausq@debian.org>
7126
7127 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
7128 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
7129 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
7130 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
7131 Remove forward declaration and make static.
7132 (hppa_reg_struct_has_addr): Remove.
7133
350c2e5b
JB
71342004-04-16 Joel Brobecker <brobecker@gnat.com>
7135
7136 * observer.sh: Move comments in sed command to first column.
7137
bbde78fa
JM
71382004-04-16 Jason Molenda (jmolenda@apple.com)
7139
7140 * frame.c: Minor typeo corrections in comments.
7141
e0270fd9
JB
71422004-04-16 Joel Brobecker <brobecker@gnat.com>
7143
7144 * observer.c (observer_test_first_notification_function): Update
7145 function profile.
7146 (observer_test_second_notification_function): Likewise.
7147 (observer_test_third_notification_function): Likewise.
7148
3d049254
MK
71492004-04-16 Mark Kettenis <kettenis@gnu.org>
7150
7151 From Brian Ford <ford@vss.fsi.com>:
7152 * i386-tdep.c (i386_coff_init_abi): New function.
7153 * i386-tdep.h (i386_coff_init_abi): New prototype.
7154 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
7155 register number translation functions for DWARF and DWARF 2.
7156
7867684d
JB
71572004-04-16 Joel Brobecker <brobecker@gnat.com>
7158
7159 * dwarf2read.c: Back out my previous change, it was incorrect.
7160
72bf9492
DJ
71612004-04-16 Daniel Jacobowitz <drow@mvista.com>
7162
7163 * dwarf2read.c: Include "hashtab.h".
7164 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
7165 has_namespace_info.
7166 (struct partial_die_info): Add comments. Use bitfields to reduce
7167 memory footprint. Add scope, scope_set, has_specification,
7168 spec_offset, die_parent, die_child, and die_sibling.
7169 (peek_die_abbrev): Add prototype.
7170 (partial_read_comp_unit_head): New function, broken out from
7171 dwarf2_build_psymtabs_hard.
7172 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
7173 Use partial_read_comp_unit_head. Initialize the CU and
7174 comp_unit_obstack. Update calls to read_partial_die and
7175 scan_partial_symbols. Use free_stack_comp_unit and
7176 load_partial_dies.
7177 (scan_partial_symbols): Change PDI to a pointer. Use the child and
7178 sibling pointers to walk partial DIEs. Call fixup_partial_die.
7179 Update calls to helper functions. Remove NAMESPACE argument.
7180 Update comments.
7181 (partial_die_parent_scope, partial_die_full_name): New functions.
7182 (add_partial_symbol): Remove namespace argument. Update call to
7183 pdi_needs_namespace. Use partial_die_full_name. Handle
7184 DW_TAG_namespace. Check has_namespace_info flag.
7185 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
7186 tag. Handle namespaces.
7187 (add_partial_namespace, add_partial_enumeration): Simplify.
7188 (guess_structure_name): New function, derived from
7189 add_partial_structure.
7190 (add_partial_structure): Remove.
7191 (determine_class_name): Update comment.
7192 (dwarf2_read_abbrevs): Set has_namespace_info flag.
7193 (is_type_tag_for_partial, load_partial_dies): New functions.
7194 (read_partial_die): Pass abbrev and abbrev_len as arguments.
7195 Record specifications instead of following them immediately.
7196 (find_partial_die_in_comp_unit, find_partial_die)
7197 (fixup_partial_die, free_stack_comp_unit)
7198 (hashtab_obstack_allocate, dummy_obstack_deallocate)
7199 (partial_die_hash, partial_die_eq): New functions.
7200 * Makefile.in (hashtab_h): Define.
7201 (dwarf2read.o): Update dependencies.
7202 (observer_inc, observer_h): Move to the correct section.
7203
fdc860a3
JB
72042004-04-15 Joel Brobecker <brobecker@gnat.com>
7205
7206 * dwarf2read.c (dwarf2_attribute_true_p): New function.
7207 (die_is_declaration): Use the function above. Add comment.
7208
dc718098
JB
72092004-04-15 Joel Brobecker <brobecker@gnat.com>
7210
7211 * dwarf2read.c (read_structure_scope): Identify stub types
7212 using die_is_declaration() only.
7213
8718a420
RM
72142004-04-15 Roland McGrath <roland@redhat.com>
7215
7216 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
7217 argument instead of NAME.
7218 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
7219 in call to symbol_file_add_with_addrs_or_offsets.
7220 (build_addr_info): New function, helper for ...
7221 (symbol_file_add_from_memory): New function.
7222 (add_symbol_file_from_memory_command): New function using that.
7223 (_initialize_symfile): Register it for add-symbol-file-from-memory.
7224 (pre_add_symbol_hook): Add const to argument type.
7225 * symfile.h (symbol_file_add_from_memory): Declare it.
7226
8b910bab
MK
72272004-04-15 Mark Kettenis <kettenis@gnu.org>
7228
9f076e7a
MK
7229 * NEWS (New native configurations): Mention OpenBSD/vax.
7230 * configure.host: Add vax-*-openbsd*.
7231 * config/vax/obsd.mh: New file.
7232 * config/vax/nm-obsd.h: New file.
7233
8b910bab
MK
7234 * vax-tdep.c: Include "regset.h".
7235 (vax_supply_gregset): New function.
7236 (vax_gregset): New variable.
7237 (vax_regset_from_core_section): New function.
7238 (vax_gdbarch_init): Set regset_from_core_section.
7239 * Makefile.in (vax-tdep.o): Update dependencies.
7240
7a464420
AC
72412004-04-15 Andrew Cagney <cagney@redhat.com>
7242
7243 * observer.c (normal_stop_subject, observer_notify_normal_stop)
7244 (observer_normal_stop_notification_stub)
7245 (observer_attach_normal_stop, observer_detach_normal_stop):
7246 Delete, replaced by #include "observer.inc".
7247 * infrun.c (normal_stop): Pass "stop_bpstat" to
7248 observer_notify_normal_stop.
7249 * Makefile.in (observer_inc): Define.
7250 (observer.o): Update dependencies.
7251 (observer.h, observer.inc): New rules.
7252 * observer.h: Delete file.
7253 * observer.sh: New file.
7254
e36ad527
MK
72552004-04-15 Mark Kettenis <kettenis@gnu.org>
7256
7257 * vax-tdep.c (vax_frame_cache): Fix typo.
7258
67b441e1
MK
72592004-04-14 Mark Kettenis <kettenis@gnu.org>
7260
6f606e1c
MK
7261 * NEWS (New native configurations): Mention NetBSD/vax.
7262 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
7263 * config/vax/nbsdelf.mh: New file.
7264 * config/vax/nbsdaout.mh: New file.
7265 * config/vax/nm-nbsd.h: New file.
7266 * config/vax/nm-nbsdaout.h: New file.
7267
9c5519a5
MK
7268 * vaxnbsd-tdep.c: New file.
7269 * Makefile.in (vaxnbsd-tdep.o): New dependency.
7270 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
7271 * config/vax/nbsd.mt: New file.
7272 * config/vax/tm-nbsd.h: New file.
7273
4844a614
MK
7274 * Makefile.in (vaxbsd-nat.o): New dependency.
7275
67b441e1
MK
7276 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
7277 * vax-tdep.c (vax_store_arguments): Remove struct_return and
7278 struct_addr arguments. Don't push return value address.
7279 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
7280 arguments to vax_store_arguments. Store return value address in
7281 R1.
7282 (vax_store_struct_return, vax_extract_return_value)
7283 (vax_store_return_value): Remove functions.
7284 (vax_return_value): New function.
7285 (vax_gdbarch_init): Set return value. Don't set
7286 deprecated_store_struct_return, deprecated_extract_struct_return
7287 and deprecated_store_return_value.
7288
6672f2ae
AS
72892004-04-14 Andreas Schwab <schwab@suse.de>
7290
7291 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
7292 value buffer.
7293 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
7294
7346c184
MK
72952004-04-14 Mark Kettenis <kettenis@gnu.org>
7296
7297 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
7298 (vax_unwind_dummy_id): New functions.
7299 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
7300 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
7301 variables.
7302 (vax_fix_call_dummy): Remove function.
7303 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
7304 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
7305 call_dummy_location, deprecated_call_dummy_words,
7306 deprecated_sizeof_call_dummy_words,
7307 deprecated_call_dummy_breakpoint_offset,
7308 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
7309 and deprecated_dummy_write_sp.
7310
58e23df4
DC
73112004-04-13 David Carlton <carlton@kealia.com>
7312
7313 * MAINTAINERS: Move myself to "paper trail" section.
7314
5e6b39ff
MK
73152004-04-12 Mark Kettenis <kettenis@gnu.org>
7316
7def7fef
MK
7317 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
7318 "trad-frame.h".
7319 (vax_frame_init_saved_regs): Remove function.
7320 (vax_sigtramp_saved_pc): Remove function.
7321 (vax_frame_saved_pc): Remove function.
7322 (vax_frame_args_address): Remove function.
7323 (vax_frame_num_args): Rewrite.
7324 (vax_frame_chain): Remove function.
7325 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
7326 VAX_FP_REGNUM.
7327 (vax_pop_frame): Likewise.
7328 (vax_saved_pc_after_call): Remove function.
7329 (struct vax_frame_cache): New structure.
7330 (vax_frame_cache): New function.
7331 (vax_frame_this_id): New function.
7332 (vax_frame_prev_register): New function.
7333 (vax_frame_unwind): New variable.
7334 (vax_frame_sniffer): New function.
7335 (vax_frame_base_address): New function.
7336 (vax_frame_args_address): New function.
7337 (vax_frame_base): New variable.
7338 (vax_unwind_pc): New function.
7339 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
7340 deprecated_fp_regnum, deprecated_saved_pc_after_call,
7341 deprecated_frame_chain, deprecated_frame_saved_pc,
7342 deprecated_frame_args_address and
7343 deprecated_frame_init_saved_regs.
7344 * Makefile.in (vax-tdep.o): Update dependencies.
7345
53284fc1
MK
7346 * vaxbsd-nat.c: New file.
7347
5e6b39ff
MK
7348 * vax-tdep.h: Update copyright year. Adjust comments.
7349 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
7350 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
7351 (vax_regnum): New enum. Replacing...
7352 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
7353 (VAX_PS_REGNUM): ... these removed macros.
7354 * vax-tdep.c (vax_register_name): Remove prototype.
7355 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
7356 (vax_register_byte, vax_register_raw_size,
7357 vax_register_virtual_size, vax_register_virtual_type): Remove
7358 functions.
7359 (vax_register_type): New function.
7360 (vax_breakpoint_from_pc): Reorganize.
7361 (vax_gdbarch_init): Set register_type. Don't set
7362 deprecated_register_size, deprecated_register_bytes,
7363 deprecated_register_byte, deprecated_register_raw_size,
7364 deprecated_max_register_raw_size,
7365 deprecated_register_virtual_size,
7366 deprecated_max_register_virtual_size and
7367 deprecated_register_virtual_type. Add comment on stack direction.
7368
e9c71e9f
MK
73692004-04-11 Mark Kettenis <kettenis@gnu.org>
7370
7371 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
7372 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 7373 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 7374
d46f1176 73752004-04-10 Randolph Chung <tausq@debian.org>
8718a420 7376
d46f1176
RC
7377 * MAINTAINERS (write after approval): Add myself.
7378
a2a84a72
RC
73792004-04-07 Randolph Chung <tausq@debian.org>
7380
7381 * hppa-tdep.c (hppa_inner_than): Remove.
7382 (is_pa_2): Remove unused static variable.
8718a420 7383 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 7384
e85c3284
PH
73852004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
7386
7387 * language.h (language_defn): Add new la_post_parser field.
7388 * parser-defs.h (null_post_parser): New declaration (default for
7389 la_post_parser).
8718a420 7390
e85c3284
PH
7391 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
7392 insert call to that function.
7393 (parse_exp_in_context): New function, including code formerly in
8718a420 7394 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
7395 prefixification.
7396 (parse_expression_in_context): New exported function.
7397 (null_post_parser): New definition.
7398 * expression.h (parse_expression_in_context): Add declaration.
8718a420 7399
e85c3284
PH
7400 * p-lang.c (pascal_language_defn): Add trivial post-parser.
7401 * c-lang.c (c_language_defn): Ditto.
7402 (cplus_language_defn): Ditto.
7403 (asm_language_defn): Ditto.
7404 (minimal_language_defn): Ditto.
7405 * f-lang.c (f_language_defn): Ditto.
7406 * jv-lang.c (java_language_defn): Ditto.
7407 * language.c (unknown_language_defn): Ditto.
7408 (auto_language_defn): Ditto.
7409 (local_language_defn): Ditto.
7410 * m2-lang.c (m2_language_defn): Ditto.
7411 * scm-lang.c (scm_language_defn): Ditto.
7412 * obj-lang.c (objc_language_defn): Ditto.
8718a420 7413
d9f8c85b
MK
74142004-04-10 Mark Kettenis <kettenis@gnu.org>
7415
fa34704a
MK
7416 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
7417 (amd64nbsd_mcontext_addr): New function.
7418 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
7419 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
7420 with amd64nbsd_r_reg_offset, instead of building it on the fly.
7421
403e1656
MK
7422 * corelow.c (core_xfer_partial): Fix coding standards violation.
7423 Add support for TARGET_OBJECT_WCOOKIE.
7424
a57e5a95
MK
7425 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
7426 deprecated_pc_in_sigtramp.
7427 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
7428 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
7429 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
7430 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7431 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
7432 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7433 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
7434
377d9ebd
MK
7435 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
7436 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
7437 Fix typo.
7438
f0ef85a5
MK
7439 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
7440 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
7441 (amd64_collect_fxsave): Likewise.
7442
d9f8c85b
MK
7443 * i386-sol2-tdep.c: Include "gdb_string.h".
7444 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
7445 name.
7446 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7447
75f501b5
MK
74482004-04-10 Mark Kettenis <kettenis@gnu.org>
7449
7450 * i386-sol2-tdep.c: Include "solib-svr4.h".
7451 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7452 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7453 * config/i386/tm-i386sol2.h: Include :solib.h".
7454 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
7455 solib-svr4.o and solib-legacy.o.
7456 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
7457 solib-svr4.o.
7458
b31bc724
MK
74592004-04-09 Mark Kettenis <kettenis@gnu.org>
7460
18bbbd9e
MK
7461 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
7462 whether a register is supplied by PTRACE_GETFPREGS.
7463 (store_inferior_registers): Likewise.
7464 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
7465 whether a register is supplied by PT_GETFPREGS.
7466 (store_inferior_registers): Likewise.
7467
3c30bf1b
MK
7468 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
7469 * config/i386/linux64.mt (TDEPFILES): Likewise.
7470
a4194092
MK
7471 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
7472
911bc6ee
MK
7473 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
7474 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
7475 the program counter is in the range specified by `struct
7476 gdbarch_tdep'.
7477 * amd64-linux-tdep.c: Include "symtab.h".
7478 (amd64_linux_pc_in_sigtramp): Remove function.
7479 (amd64_linux_sigtramp_p): New function.
7480 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
7481 deprecated_pc_in_sigtramp.
7482 * amd64nbsd-tdep.c: Include "symtab.h".
7483 (amd64nbsd_sigtramp_p): New function.
7484 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
7485 deprecated_pc_in_sigtramp.
7486 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
7487 few comments.
7488 (amd64obsd_pc_in_sigtramp): Remove function.
7489 (amd64obsd_sigtramp_p): New function.
7490 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
7491 deprecated_pc_in_sigtramp.
7492 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
7493 (i386bsd_pc_ins_sigtramp): Remove prototype.
7494 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
7495 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
7496 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
7497 the program counter is in the range specified by `struct
7498 gdbarch_tdep'.
7499 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
7500 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
7501 (i386_go32_pc_in_sigtramp): Remove function.
7502 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
7503 Initialize TDEP->sigtramp_p.
7504 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
7505 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
7506 deprecated_pc_in_sigtramp.
7507 * i386-linux-tdep.c: Adjust comments.
7508 (i386_linux_pc_in_sigtramp): Remove function.
7509 (i386_linux_sigtramp_p): New function.
7510 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
7511 deprecated_pc_in_sigtramp.
7512 * i386-nto-tdep.c: Update copyright year.
7513 (i386nto_pc_in_sigtramp): Remove function.
7514 (i386nto_sigtramp_p): New function.
7515 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
7516 SP_REGNUM.
7517 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
7518 deprecated_pc_in_sigtramp.
7519 * i386-sol2-tdep.c: Update copyright year.
7520 (i386_sol2_pc_in_sigtramp): Remove function.
7521 (i386_sol2_sigtramp_p): New function.
7522 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
7523 deprecated_pc_in_sigtramp.
7524 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
7525 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
7526 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7527 deprecated_sigtramp_start and deprecated_sigtramp_end.
7528 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
7529 (i386nbsd_pc_in_sigtramp): Remove function.
7530 (i386nbsd_sigtramp_p): New function.
7531 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7532 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
7533 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
7534 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
7535 (i386obsd_pc_in_sigtramp): Remove function.
7536 (i386obsd_sigtramp_p): New function.
7537 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
7538 functions.
7539 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7540 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
7541 TDEP->sigtramp_p.
7542 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
7543 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
7544 dependencies.
7545
e083e6ec
MK
7546 * config/i386/i386aout.mt: Remove file.
7547
bd153b94
MK
7548 * configure.tgt: Remove i[34567]86-*-go32*,
7549 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
7550 and i[34567]86-*-isc*. Set gdb_target to i386 for
7551 i[34567]86-*-netware* and i[34567]86-*-*.
7552 * config/i386/i386.mt: New file.
7553 * config/i386/embed.mt: Remove file.
7554 * config/i386/go32.mt: Remove file.
7555 * config/i386/i386nw.mt: Remove file.
7556 * config/i386/i386v.mt: Remove file.
7557 * config/i386/tm-go32.h: Remove file.
7558
4a1bcc8c
MK
7559 * tui/tui-hooks.c: Include "readline/readline.h" after
7560 "gdb_curses.h" instead of before.
7561 * tui/tui-io.c: Likewise.
7562
f9a79064
MK
7563 * tui/tui.c: Fix typo in comment.
7564
b31bc724
MK
7565 * sparc64-tdep.c (sparc_address_from_register): Remove function.
7566
f83f82bc
AC
75672004-04-08 Andrew Cagney <cagney@redhat.com>
7568
7569 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
7570 (deprecated_exception_support_initialized): Declare.
8718a420 7571 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
7572 (initialize_hp_cxx_exception_support)
7573 (child_enable_exception_callback): Update.
7574 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
7575 (deprecated_exception_support_initialized): Rename
7576 deprecated_exception_catchpoints_are_fragile and
7577 deprecated_exception_support_initialized.
7578 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
7579
7580 * symtab.c (deprecated_hp_som_som_object_present): Rename
7581 hp_som_som_object_present.
7582 * symtab.h (deprecated_hp_som_som_object_present): Declare.
7583 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
7584 Update. Delete extern declaration.
7585 * valops.c (hp_som_som_object_present): Ditto.
8718a420 7586 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
7587 (parse_nested_classes_for_hpacc): Ditto.
7588 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 7589 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
7590 (initialize_hp_cxx_exception_support): Ditto.
7591 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 7592 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 7593 (cp_print_class_method): Ditto.
8718a420 7594 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
7595 (c_type_print_base): Ditto.
7596 * c-exp.y (hp_som_som_object_present): Ditto.
7597
fb2be677
AC
75982004-04-08 Andrew Cagney <cagney@redhat.com>
7599
7600 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
7601 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
7602 (frame_unwind_find_by_frame): Re-implement the unwind code so
7603 that it can both prepend and append sniffers. Replace
7604 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
7605 * tramp-frame.c (tramp_frame_append): Use
7606 frame_unwind_prepend_unwinder.
7607 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
7608 frame_unwind_register_unwinder.
7609 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
7610 tramp_frame_append.
7611 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 7612 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
7613 (mips_linux_init_abi): Update.
7614
67faf007
KB
76152004-04-08 Kevin Buettner <kevinb@redhat.com>
7616
7617 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
7618 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
7619 file support.
7620
8973ff21
KB
76212004-04-07 Kevin Buettner <kevinb@redhat.com>
7622
7623 * ia64-tdep.c (elf.h): Don't include.
7624 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
7625
4a0e2f88
JM
76262004-04-07 Jason Molenda (jmolenda@apple.com)
7627
7628 * frame.h: Typeo corrections in comments.
7629
9872ad24
JB
76302004-04-07 Jim Blandy <jimb@redhat.com>
7631
7632 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
7633 %esp and %ebp
7634
70b216c8
MK
76352004-04-07 Mark Kettenis <kettenis@gnu.org>
7636
11d5789c
MK
7637 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
7638 * config/sparc/linux64.mt (TDEPFILES): Likewise.
7639 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
7640 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
7641 and solib-legacy.o.
7642 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
7643 solib-svr4.o.
7644 * config/sparc/tm-sol2.h: Update copyright year. Include
7645 "solib.h".
7646
70b216c8
MK
7647 * sparc-sol2-tdep.c: Update copyright year. Include
7648 "solib-svr4.h".
7649 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7650 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
7651 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 7652 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
7653 dependencies.
7654
6339dc9e
AC
76552004-04-06 Andrew Cagney <cagney@redhat.com>
7656
7657 * infttrace.c: Include "infttrace.h".
7658 * infttrace.h: Include "target.h".
7659 * Makefile.in (infttrace_h): Update.
7660 (infttrace.o): Update.
8718a420 7661
93449403
AC
76622004-04-06 Andrew Cagney <cagney@redhat.com>
7663
6d518969
AC
7664 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
7665 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
7666 move extern declarations from here ...
7667 * infttrace.h: ... to here.
7668 * Makefile.in (hppah-nat.o): Update dependencies.
7669
85f4f2d8
AC
7670 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
7671 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 7672 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
7673 (hppa_breakpoint_from_pc): Delete.
7674
93449403
AC
7675 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
7676
71456ec6
AC
76772004-04-05 Andrew Cagney <cagney@redhat.com>
7678
7679 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
7680 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
7681 <sys/file.h>.
8718a420 7682
4c02c60c
AC
76832004-04-06 Randolph Chung <tausq@debian.org>
7684
7685 Committed by Andrew Cagney (mechanical change).
7686 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
7687 exception_catchpoints_are_fragile, find_stub_with_shl_get,
7688 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
7689 child_enable_exception_callback, current_ex_event,
7690 null_symtab_and_line, child_get_current_exception_event,
7691 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
7692 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
7693 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
7694 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
7695 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
7696 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
7697 Move hpux-specific definitions ...
7698 * hppa-hpux-tdep.c: ... to here.
7699
3a515653
AC
77002004-04-05 Andrew Cagney <cagney@redhat.com>
7701
7702 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
7703 skip_prologue_using_sal.
7704
c1730d02
AC
77052004-04-05 Andrew Cagney <cagney@redhat.com>
7706
7707 * config/i386/tm-i386.h: Delete file.
7708 * config/i386/tm-vxworks.h: Update copyright, do not include
7709 "tm-i386.h".
7710 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
7711 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
7712 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
7713 * config/i386/ncr3000.mt (TM_FILE): Delete.
7714 * config/i386/interix.mt (TM_FILE): Delete.
7715 * config/i386/i386v.mt (TM_FILE): Delete.
7716 * config/i386/i386nw.mt (TM_FILE): Delete.
7717 * config/i386/i386gnu.mt (TM_FILE): Delete.
7718 * config/i386/i386aout.mt (TM_FILE): Delete.
7719 * config/i386/embed.mt (TM_FILE): Delete.
7720
8b67aa36
KB
77212004-04-05 Kevin Buettner <kevinb@redhat.com>
7722
7723 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
7724 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
7725 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
7726 (accg7_regnum): New constants.
7727 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
7728 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
7729 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
7730 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
7731 for accg registers.
7732 (frv_register_sim_regno): Update spr_map[].
7733
3c7012f5
AC
77342004-04-04 Andrew Cagney <cagney@redhat.com>
7735
7736 * config/mips/xm-riscos.h: Delete.
7737 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
7738 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
7739 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
7740 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
7741 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
7742 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
7743 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
7744 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
7745 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
7746 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
7747 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
7748 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
7749 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
7750 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
7751 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
7752 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
7753 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
7754 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
7755 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
7756 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
7757 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
7758 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
7759 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
7760 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
7761 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
7762 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 7763
3c7012f5
AC
7764 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
7765 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
7766 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
7767 * configure.host: Remove m680[01]0-sun-sunos3*,
7768 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
7769 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
7770 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
7771 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
7772 mips-*-riscos*.
7773 * NEWS: Mention removed systems.
7774
99d16a21
AC
77752004-04-04 Andrew Cagney <cagney@redhat.com>
7776
7777 GDB 6.1 release created from 6.1 branch.
7778
6cdf9d98
AC
77792004-04-04 Andrew Cagney <cagney@redhat.com>
7780
98d346c3
AC
7781 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
7782 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
7783 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
7784
6cdf9d98
AC
7785 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
7786 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
7787 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
7788
859a326d
JB
77892004-04-03 Jim Blandy <jimb@redhat.com>
7790
7791 * MAINTAINERS: Chris Faylor has changed employers; add him to
7792 "paper trail" section, and update his E-mail address.
7793
b87178c3
AC
77942004-04-03 Andrew Cagney <cagney@redhat.com>
7795
4ea2acf0
AC
7796 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
7797 generic dummy frames.
7798 * dummy-frame.c: Update copyright.
7799 (dummy_frame_sniffer): Delete check for generic dummy frames.
7800
d0bd2d18 7801 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 7802 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
7803 (REG_PARM_STACK_SPACE): Delete.
7804 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
7805 Inline reference to REG_PARM_STACK_SPACE.
7806
b87178c3
AC
7807 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
7808 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
7809 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
7810 (FRAME_BASE_BEFORE_SIGTRAMP)
7811 (hppa32_hpux_frame_base_before_sigtramp)
7812 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
7813 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
7814 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
7815 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
7816 (FRAME_BASE_BEFORE_SIGTRAMP)
7817 (hppa64_hpux_frame_base_before_sigtramp)
7818 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
7819
43e2e1a0
AC
78202004-04-03 Andrew Cagney <cagney@redhat.com>
7821
7822 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
7823
ddc135a4
AC
78242004-04-02 Andrew Cagney <cagney@redhat.com>
7825
7826 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
7827 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
7828 * dummy-frame.h: Delete out-of-date comments.
7829 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
7830 * gdbarch.h, gdbarch.c: Re-generate.
7831
d15bfd3a 78322004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 7833
d15bfd3a
AC
7834 Committed by Andrew Cagney <cagney@redhat.com>.
7835 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
7836 into account an instruction saving a register if we have already
7837 seen an earlier instruction saving that same register.
7838
f04ceafa
AC
78392004-04-02 Andrew Cagney <cagney@redhat.com>
7840
08be3abd
AC
7841 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
7842 * gdbarch.h, gdbarch.c: Re-generate.
7843 * frame.c (legacy_get_prev_frame): Delete references to
7844 DEPRECATED_INIT_FRAME_PC_FIRST.
7845
f04ceafa
AC
7846 * infrun.c (pc_in_sigtramp): Delete function.
7847 (check_sigtramp2): Inline call to pc_in_sigtramp, use
7848 get_frame_type.
7849
08e69816
AC
78502004-04-02 Andrew Cagney <cagney@redhat.com>
7851
7852 * infrun.c (handle_step_into_function): Delete code conditional on
7853 legacy_frame_p.
7854 (handle_inferior_event, step_over_function): Ditto.
7855
adb54772
AC
78562004-04-02 Andrew Cagney <cagney@redhat.com>
7857
7858 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
7859 "previous frame inner to this frame" test.
7860
304396fb
AC
78612004-04-02 Andrew Cagney <cagney@redhat.com>
7862
7863 * frame.c (safe_frame_unwind_memory): New function.
7864 * frame.h (safe_frame_unwind_memory): Declare. Update description
7865 of /safe_/ methods.
7866 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
7867 "next_frame". Use safe_frame_unwind_memory.
7868 (tramp_frame_sniffer): Update call to tramp_frame_start.
7869
6502dd73
DJ
78702004-04-01 Daniel Jacobowitz <drow@mvista.com>
7871
7872 * dwarf2read.c (dwarf2_objfile_data_key): New.
7873 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
7874 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
7875 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
7876 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
7877 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
7878 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
7879 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
7880 Remove variables.
7881 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
7882 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
7883 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
7884 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
7885 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
7886 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
7887 Remove macros.
7888 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
7889 data.
7890 (dwarf2_locate_sections, dwarf2_build_psymtabs)
7891 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
7892 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
7893 (read_partial_die, read_full_die, read_indirect_string)
7894 (dwarf_decode_line_header, dwarf_decode_macros)
7895 (dwarf2_symbol_mark_computed): Remove use of removed macros.
7896 Update uses of removed variables.
7897 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
7898 of removed macros.
7899 (_initialize_dwarf2_read): New function.
7900 * symfile.h (dwarf2_has_info): Update prototype.
7901 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
7902 * elfread.c (elf_symfile_read): Likewise.
7903
408752b0
JB
79042004-04-01 Jim Blandy <jimb@redhat.com>
7905
9f744501
JB
7906 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
7907 function for register numbers on all the rs6000-derived targets.
7908 (rs6000_gdbarch_init): Don't register a separate
7909 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
7910 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
7911 variants.
7912
408752b0
JB
7913 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
7914 numbering.
7915
2de41bce
PH
79162004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
7917
7918 * valarith.c: Update copyright notice.
7919 (value_add): Handle range types.
7920 (value_sub): Ditto.
7921 (value_equal): Ditto.
7922 (value_less): Ditto.
7923 (value_neg): Ditto.
7924 (value_complement): Ditto.
8718a420 7925 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 7926 eliminiating unnecessary COERCE_ENUMs.
8718a420 7927
5613d8d3
AC
79282004-03-31 Andrew Cagney <cagney@redhat.com>
7929
7930 * frame.h (frame_unwind_id): Declare.
7931 * frame.c (frame_unwind_id): New function.
7932 (get_prev_frame_1): New function.
7933 (frame_debug_got_null_frame): New function.
7934 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
7935 code proper to prev_frame, update description.
7936 * infrun.c (step_over_function): Use frame_unwind_id.
7937
c4557624
JB
79382004-04-31 J. Brobecker <brobecker@gnat.com>
7939
7940 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
7941 (hppa64_push_dummy_call): Likewise.
7942
3e6bb910
JB
79432004-03-30 Jim Blandy <jimb@redhat.com>
7944
7945 From Ulrich Weigand:
7946 * utils.c (query): Do not use a va_list variable multiple times.
7947
a2f23071
DJ
79482004-03-29 Daniel Jacobowitz <drow@mvista.com>
7949
7950 * Makefile.in (linux_nat_h): Update dependencies.
7951 * configure.in: Check for <gnu/libc-version.h>.
7952 * configure: Regenerate.
7953 * config.in: Regenerate.
7954 * linux-nat.h: Include "target.h". Add waitstatus field to
7955 struct lwp_info.
7956 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
7957 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
7958 to.
7959 (lin_lwp_handle_extended): New function. Handle clone events.
7960 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
7961 thread exit events.
7962 (child_wait): Handle clone events.
7963 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
7964 * linux-nat.c (linux_enable_event_reporting): Turn on
7965 PTRACE_O_TRACECLONE.
7966 (linux_handle_extended_wait): Handle clone events.
7967 * thread-db.c: Include <gnu/libc-version.h>.
7968 (struct private_thread_info): Add dying flag.
7969 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
7970 higher.
7971 (attach_thread): Update comments. Handle dying threads.
7972 (detach_thread): Set the dying flag.
7973 (check_event): Always call attach_thread.
7974
8d5f9dcb
DJ
79752004-03-29 Daniel Jacobowitz <drow@mvista.com>
7976
7977 * mips-tdep.c (mips_pdr_data): New.
7978 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
7979 (_initialize_mips_tdep): Initialize mips_pdr_data.
7980
66337bb1
CV
79812004-03-29 Corinna Vinschen <vinschen@redhat.com>
7982
7983 * minsyms.c (install_minimal_symbols): Move dropping leading
7984 char from linkage name from here...
7985 (prim_record_minimal_symbol_and_info): ...to here. Simplify
7986 test for "__gnu_compiled*" symbols.
7987
e802b915
JB
79882004-03-28 Jim Blandy <jimb@redhat.com>
7989
7990 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
7991 registers to temp register r0 and byte stores as prologue
7992 instructions.
7993
72b56458
AC
79942004-03-28 Andrew Cagney <cagney@redhat.com>
7995
7996 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
7997 arm*-*-*.
7998
0bfbda3b
SC
79992004-03-28 Stephane Carrez <stcarrez@nerim.fr>
8000
8001 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
8002 and switch the layout to force a display of register window.
8003
5a7225ed
JB
80042004-02-26 J. Brobecker <brobecker@gnat.com>
8005
8006 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
8007 of the INTEGER class.
8008
81a07a45
JB
80092004-03-26 Jim Blandy <jimb@redhat.com>
8010
8011 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
8012 bytes long on PPC GNU/Linux.
8013
8c691c7a
DC
80142004-03-26 David Carlton <carlton@kealia.com>
8015
8016 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
8017
103a0089
AC
80182004-03-25 Andrew Cagney <cagney@redhat.com>
8019
8020 * PROBLEMS: Add general section titles, remove references to
8021 specific releases.
8022
7a5ea0d4
DJ
80232004-03-25 Daniel Jacobowitz <drow@mvista.com>
8024
8025 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
8026 INT_REGISTER_SIZE.
8027 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
8028 FP_REGISTER_VIRTUAL_SIZE.
8029 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
8030 of DEPRECATED_REGISTER_RAW_SIZE.
8031 (arm_register_type): Add gdbarch argument.
8032 (arm_register_raw_size, arm_register_virtual_size): Delete.
8033 (arm_register_byte, arm_extract_return_value)
8034 (arm_store_return_value, arm_get_longjmp_target): Update references
8035 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
8036 (arm_gdbarch_init): Likewise. Don't set
8037 deprecated_register_raw_size, deprecated_register_virtual_size,
8038 deprecated_max_register_raw_size,
8039 deprecated_max_register_virtual_size, or
8040 deprecated_max_register_virtual_type. Do set register_type.
8041 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
8042 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
8043 (FP_REGISTER_VIRTUAL_SIZE): Delete.
8044 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
8045 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
8046 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
8047 INT_REGISTER_SIZE.
8048 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
8049 (remote_rdp_store_register): Likewise.
8050
5792a79b
DJ
80512004-03-24 Daniel Jacobowitz <drow@mvista.com>
8052
8053 * Makefile.in (mips-linux-tdep.o): Update dependencies.
8054 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
8055 to after osabi initialization.
8056 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
8057 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
8058 functions.
8059 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
8060 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
8061 variables.
8062 (mips_linux_init_abi): Append signal trampoline unwinders.
8063
1196bfda
AC
80642004-03-24 Andrew Cagney <cagney@redhat.com>
8065
8066 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
8067 * tramp-frame.c: Include "gdb_assert.h".
8068 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
8069 correct sizeof.
8070 (tramp_frame_append): Validate the tramp frame's instructions.
8071 * Makefile.in (tramp-frame.o): Update dependencies.
8072
4be282b4
AC
80732004-03-23 Andrew Cagney <cagney@redhat.com>
8074
8075 * trad-frame.h (trad_frame_set_reg_addr): Declare.
8076
69aec09b
AC
80772004-03-23 Andrew Cagney <cagney@redhat.com>
8078
8079 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
8080 Nasser as past testsuite/lib/ (and other) maintainers.
8081
63ed89b4
DJ
80822004-03-23 Daniel Jacobowitz <drow@mvista.com>
8083
8084 * infcmd.c (attach_command): Reread symbols if we already have
8085 an exec file.
8086
f3b36427
AC
80872004-03-23 Andrew Cagney <cagney@redhat.com>
8088
8089 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
8090
aa2a3f87
AC
80912004-03-23 Andrew Cagney <cagney@redhat.com>
8092
8093 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
8094 * gdbarch.h, gdbarch.c: Re-generate.
8095 * i386obsd-tdep.c (i386obsd_init_abi): Update.
8096 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8097 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 8098 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 8099 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 8100 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
8101 (DEPRECATED_SIGTRAMP_START): Update.
8102 * blockframe.c (find_pc_sect_partial_function): Update.
8103 * arch-utils.c (legacy_pc_in_sigtramp): Update.
8104
00cac895
DJ
81052004-03-23 Daniel Jacobowitz <drow@mvista.com>
8106
8107 * remote.c (remote_open_1): Reopen the exec file and reread symbols
8108 if necessary.
8109
f561f026
AC
81102004-03-23 Andrew Cagney <cagney@redhat.com>
8111
8112 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
8113 predicate, deprecate.
8114 * gdbarch.h, gdbarch.c: Re-generate.
8115 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8116 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8117 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
8118 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8119 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
8120 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
8121 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
8122 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
8123 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
8124 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
8125 * blockframe.c (find_pc_partial_function): Update.
8126 * breakpoint.c (bpstat_what): Update.
8127 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
8128 * frv-linux-tdep.c (frv_linux_init_abi): Update.
8129 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
8130 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
8131 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8132 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8133 * i386-nto-tdep.c (i386nto_init_abi): Update.
8134 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
8135 * i386-tdep.c (i386_sigtramp_frame_sniffer)
8136 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
8137 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8138 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8139 * i386obsd-tdep.c (i386obsd_init_abi): Update.
8140 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
8141 * infrun.c (pc_in_sigtramp): Update.
8142 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
8143 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
8144 * mips-tdep.c (mips_gdbarch_init): Update.
8145 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
8146 * ppc-linux-tdep.c: Update comment.
8147 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
8148 * shnbsd-tdep.c (shnbsd_init_abi): Update.
8149 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
8150 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
8151 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
8152 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
8153 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
8154 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
8155 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
8156 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 8157
8050c72f
AC
81582004-03-23 Andrew Cagney <cagney@redhat.com>
8159
d2259dd3
AC
8160 * tramp-frame.h, tramp-frame.h: New files.
8161 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
8162 Update rules to include "tramp-frame.h" and "tramp-frame.c".
8163
8050c72f
AC
8164 * Makefile.in: Update all dependencies.
8165
0db9b4b7
AC
81662004-03-23 Andrew Cagney <cagney@redhat.com>
8167
8168 * Makefile.in (trad_frame_h): Add $(frame_h).
8169 * trad-frame.h: Update copyright. Include "frame.h".
8170 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
8171 (trad_frame_set_id, trad_frame_get_id): Declare.
8172 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
8173 * trad-frame.c: Update copyright.
8174 (struct trad_frame_cache): Define.
8175 (trad_frame_cache_zalloc): New function.
8176 (trad_frame_set_id, trad_frame_get_id): New functions.
8177 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 8178
8e645ae7
AC
81792004-03-22 Andrew Cagney <cagney@redhat.com>
8180
8181 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
8182 s390_pltstub_unwind_cache.
8183 (s390_stub_frame_unwind_cache): Rename
8184 s390_pltstub_frame_unwind_cache.
8185 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
8186 (s390_stub_frame_prev_register): Rename
8187 s390_pltstub_frame_prev_register.
8188 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
8189 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
8190
8191 From Ulrich Weigand:
8192 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
8193 pointer calls like PLT calls.
8194
34fcf120
DJ
81952004-03-22 Daniel Jacobowitz <drow@mvista.com>
8196
8197 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
8198 PC rather than the partial function start address. Use the start
8199 address to sanity check the found PDR.
8200
5b917078
DJ
82012004-03-22 Daniel Jacobowitz <drow@mvista.com>
8202
8203 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
8204 linux_handle_extended_wait.
8205
8adf9e78
AC
82062004-03-22 Andrew Cagney <cagney@redhat.com>
8207
c3122434
AC
8208 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
8209 function.
8210
8adf9e78
AC
8211 * frame.h (generic_pop_current_frame): Delete declaration.
8212 (deprecate_pop_dummy_frame): Deprecate
8213 generic_pop_dummy_frame.
8214 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
8215 (generic_pop_current_frame): Delete function.
8216 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
8217 generic_pop_current_frame.
8218 * v850-tdep.c (v850_pop_frame): Update.
8219 * mcore-tdep.c (mcore_pop_frame): Update.
8220 * sh64-tdep.c (sh64_pop_frame): Update.
8221 * h8300-tdep.c (h8300_pop_frame): Update.
8222
90ba813f
AC
82232004-03-22 Andrew Cagney <cagney@redhat.com>
8224
8225 * frame.h (deprecated_pc_in_call_dummy): Rename
8226 generic_pc_in_call_dummy.
8227 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
8228 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
8229 generic_pc_in_call_dummy.
8230 (pc_in_dummy_frame): Make static.
8231 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
8232 * gdbarch.h, gdbarch.c: Re-generate.
8233 * dummy-frame.c (dummy_frame_sniffer): Simplify.
8234 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
8235 (legacy_get_prev_frame): Ditto.
8236 * inferior.h: Delete reference to generic_pc_in_call_dummy in
8237 comment.
8718a420 8238
ca4bb888
AC
82392004-03-21 Andrew Cagney <cagney@redhat.com>
8240
244675f9
AC
8241 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
8242 declaration and out-of-date comment.
8243 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
8244 Delete function.
8245 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
8246 deprecated_pc_in_call_dummy.
8247
ca4bb888
AC
8248 * infrun.c (handle_inferior_event): For non legacy frames, use the
8249 frame ID and frame type to identify a signal trampoline. Update
8250 comments.
8251
1777c7b4
NW
82522004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
8253
8254 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
8255 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
8256
82417da5
AC
82572004-03-21 Andrew Cagney <cagney@redhat.com>
8258
8259 * frame-unwind.h: Update copyright.
8260 (struct frame_data): Add opaque declaration.
8261 (frame_sniffer_ftype): Declare.
8262 (struct frame_unwind): Add "unwind_data" and "sniffer".
8263 (frame_unwind_register_unwinder): Declare.
8264 (frame_unwind_find_by_frame): Add parameter "this_cache".
8265 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
8266 (legacy_get_prev_frame, legacy_get_prev_frame)
8267 (get_frame_type): Pass the prologue_cache to
8268 frame_unwind_find_by_frame.
8269 * frame-unwind.c (struct frame_unwind_table_entry): Add field
8270 "unwinder".
8271 (frame_unwind_register_unwinder): New function.
8272 (frame_unwind_find_by_frame): Handle an unwind sniffer.
8273
b2ba182e
PH
82742004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
8275
8276 * bcache.c (print_percentage): Use floating point to avoid
8277 incorrect results when portion*100 overflows.
8278
81332287
KB
82792004-03-19 Kevin Buettner <kevinb@redhat.com>
8280
8281 * ppc_tdep.h (ppc_linux_frame_saved_pc)
8282 (ppc_linux_init_extra_frame_info)
8283 (ppc_linux_frameless_function_invocation)
8284 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
8285 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
8286 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
8287 (rs6000_frame_chain): Delete declarations.
8288 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
8289 (ppc_linux_init_extra_frame_info)
8290 (ppc_linux_frameless_function_invocation)
8291 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
8292 (ppc_linux_init_abi): Remove registration of above deleted functions.
8293 * rs6000-tdep.c (rs6000_init_extra_frame_info)
8294 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
8295 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
8296 (rs6000_pop_frame, rs6000_frameless_function_invocation)
8297 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
8298 (rs6000_gdbarch_init): Remove registration of above deleted functions.
8299 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
8300 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
8301 frame management for all OSABIs.
8302
61a65099
KB
83032004-03-19 Andrew Cagney <cagney@redhat.com>
8304
8305 Committed by Kevin Buettner <kevinb@redhat.com>.
8306
8307 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
8308 Update copyright.
8309 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
8310 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
8311 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
8312 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
8313 unwinders. #ifdef legacy frame code.
8314 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8315 "frame-base.h".
8316 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
8317 (struct rs6000_frame_cache, rs6000_frame_cache)
8318 (rs6000_frame_this_id, rs6000_frame_prev_register)
8319 (rs6000_frame_sniffer, rs6000_frame_unwind)
8320 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
8321 (rs6000_frame_base): Implement a traditional frame unwinder.
8322 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
8323 frame unwinder.
8324
88f7da05
KB
83252004-03-19 Kevin Buettner <kevinb@redhat.com>
8326
8327 * breakpoint.c (adjust_breakpoint_address): Don't adjust
8328 breakpoint address for watchpoints or the catch eventpoints.
8329 Add new paramter ``bptype''. Adjust all callers.
8330
f826dce1
AC
83312004-03-19 Andrew Cagney <cagney@redhat.com>
8332
33cb8b0f
AC
8333 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
8334
f826dce1
AC
8335 * PROBLEMS: Delete note that ARM does not use frame code, problem
8336 fixed.
8337
43b1ab88
AC
83382004-03-18 Andrew Cagney <cagney@redhat.com>
8339
292ab034
AC
8340 * stack.c (return_command): Delete code wrapped in #ifdef
8341 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
8342
43b1ab88
AC
8343 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
8344
dbfe4626
AC
83452004-03-18 Andrew Cagney <cagney@redhat.com>
8346
8347 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
8348 DEPRECATED_IN_SIGTRAMP.
8349 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8350 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
8351 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8352 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8353 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8354 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8355 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8356 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8357 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
8358 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
8359
0cad6aec
AC
83602004-03-18 Andrew Cagney <cagney@redhat.com>
8361
8362 * frame-base.c: Update copyright. Include "gdb_obstack.h".
8363 (struct frame_base_table_entry): Define.
8364 (struct frame_base_table): Re-implement as a linked list.
8365 (frame_base_init): Re-implement.
8366 (frame_base_table): Delete function.
8367 (append_predicate): Delete function.
8368 (frame_base_append_sniffer): Update.
8369 (frame_base_set_default): Update.
8370 (frame_base_find_by_frame): Update.
8371 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
8372 * Makefile.in (frame-base.o): Update dependencies.
8373
9982c2e7
AC
83742004-03-17 Andrew Cagney <cagney@redhat.com>
8375
8376 * frame.c (legacy_get_prev_frame): Pass correct frame to
8377 frame_unwind_find_by_frame.
8378
8dfe8985
DC
83792004-03-17 David Carlton <carlton@kealia.com>
8380
8381 * NEWS: Mention C++ nested types and namespaces
8382
ed47347a
MC
83832004-03-16 Michael Chastain <mec.gnu@mindspring.com>
8384
8385 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
8386 and "Regressions since gdb 5.3.". Add known regressions since
8387 gdb 6.0.
8388
90aeadfc
DC
83892004-03-16 David Carlton <carlton@kealia.com>
8390
8391 * dwarf2read.c (process_structure_scope): Process children even
8392 when we're a declaration.
8393
73912b9b
AC
83942004-03-16 Andrew Cagney <cagney@redhat.com>
8395
8396 * symtab.h (find_pc_sect_partial_function): Delete declaration.
8397 * blockframe.c (find_pc_partial_function)
8398 (find_pc_sect_partial_function): Merge into a single
8399 find_pc_partial_function.
8400
283accbc
MK
84012004-03-16 Mark Kettenis <kettenis@gnu.org>
8402
8403 * i386bsd-nat.c: s/regno/regnum/g.
8404 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
8405 FP0_REGNUM.
8406 (store_inferior_registers): Likewise.
8407
f5b1afdf
MK
84082004-03-16 Mark Kettenis <kettenis@gnu.org>
8409
8410 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
8411 of i387_fill_fsave.
8412 (store_inferior_registers): Call i387_collect_fsave and
8413 i387_collect_fxsave instead of i387_fill_fsave and
8414 i387_fill_fxsave.
8415
41fe5eb3
AC
84162004-03-15 Andrew Cagney <cagney@redhat.com>
8417
8418 * Makefile.in (frame-unwind.o): Update dependencies.
8419 * frame-unwind.c: Include "gdb_obstack.h".
8420 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
8421 parameter.
8422 (append_predicate): Delete function.
8423 (struct frame_unwind_table_entry): New structure.
8424 (struct frame_unwind_table): Replace "sniffer" with "head" and
8425 "tail".
8426 (frame_unwind_append_sniffer): Update.
8427 (frame_unwind_find_by_frame): Update.
8428 (_initialize_frame_unwind): Registe frame_unwind_init using
8429 gdbarch_data_register_pre_init.
8430
3f63813d
MK
84312004-03-15 Mark Kettenis <kettenis@gnu.org>
8432
8433 * i386bsd-nat.c: Update copyright year.
8434 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
8435 define unconditionally.
8436
3248c325 84372004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
8438
8439 * i387-tdep.h (i387_collect_fsave): New prototype.
8440 * i387-tdep.c (i387_collect_fsave): New function containing most
8441 of the code from i387_fill_fsave.
3248c325 8442 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 8443
871fbe6a
MK
84442004-03-15 Mark Kettenis <kettenis@gnu.org>
8445
8446 * i386-linux-tdep.c: Update copyright year.
8447 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
8448 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
8449 svr4_ilp32_link_map_offsets instead of
8450 i386_linux_svr4_fetch_link_map_offsets.
8451
8176b9b8
DC
84522004-03-15 David Carlton <carlton@kealia.com>
8453
8454 Fix for PR c++/1553:
8455 * dwarf2read.c (read_structure_type): Determine type name by
8456 calling determine_class_name.
8457 (determine_class_name): New.
8458 (determine_prefix): Look at TYPE_TAG_NAME and call
8459 determine_class_name when appropriate.
8460 (determine_prefix_aux, class_name): Delete.
9d58e29d 8461 (read_namespace): Set die->type.
8176b9b8 8462
fe8bf7d7
KB
84632004-03-15 Kevin Buettner <kevinb@redhat.com>
8464
8465 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
8466 unused macro definition. The definition in target.h (or perhaps
8467 elsewhere) takes precedence.
8468
ed6edd9b
AC
84692004-03-15 Andrew Cagney <cagney@redhat.com>
8470
f9be684a
AC
8471 * ppc-tdep.h: Update copyright.
8472 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
8473 function signatures to match "regsets.h".
8474 * ppc-linux-tdep.c: Include "regset.h".
8475 (ELF_GREGSET_SIZE): Delete.
8476 (right_supply_register): New function.
8477 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
8478 using right_supply_register.
8479 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
8480 functions.
8481 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
8482 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
8483 (_initialize_ppc_linux_tdep): Do not register
8484 ppc_linux_regset_core_fns.
8485 (ppc_linux_regset_from_core_section): Replace
8486 fetch_core_registers.
8487 (ppc_linux_regset_core_fns): Delete.
8488 * ppc-linux-nat.c: (right_fill_reg): New function.
8489 (supply_gregset): Update call to ppc_linux_supply_gregset.
8490 (fill_gregset): Clear the register set, use right_fill_reg.
8491 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
8492 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
8493
ed6edd9b
AC
8494 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
8495 unsigned.
8496
030f20e1
AC
84972004-03-15 Andrew Cagney <cagney@redhat.com>
8498
8499 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
8500 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
8501 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
8502 and register_gdbarch_data.
8503 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
8504 (struct gdbarch_data): Replace "init" by "pre_init" and
8505 "post_init".
8506 * gdbarch.h, gdbarch.c: Re-generate.
8507 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
8508 with"obstack", use OBSTACK_ZALLOC.
8509 (dwarf2_frame_ops): Delete.
8510 (dwarf2_frame_set_init_reg): Use gdbarch_data.
8511 (dwarf2_frame_init_reg): Use gdbarch_data.
8512 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 8513 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
8514 (_initialize_svr4_solib): Update.
8515 * user-regs.c (_initialize_user_regs): Update.
8516 * reggroups.c (_initialize_reggroup): Update.
8517 * regcache.c (_initialize_regcache): Update.
8518 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8519 * libunwind-frame.c (_initialize_libunwind_frame): Update.
8520 * gnu-v3-abi.c (init_gnuv3_ops): Update.
8521 * frame-unwind.c (_initialize_frame_unwind): Update.
8522 * frame-base.c (_initialize_frame_base): Update.
8523 * user-regs.c (user_reg_add): Update.
8524 * reggroups.c (reggroup_add): Update.
8525 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
8526 * libunwind-frame.c (libunwind_frame_set_descr): Update.
8527 * frame-unwind.c (frame_unwind_append_sniffer): Update.
8528 * frame-base.c (frame_base_table): Update.
8529 * remote.c (_initialize_remote): Update.
8530 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 8531
3111a3fc
AC
85322004-03-15 Andrew Cagney <cagney@redhat.com>
8533
8534 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
8535
5ecb7103
KB
85362004-03-15 Kevin Buettner <kevinb@redhat.com>
8537
8538 * Makefile.in (frv-linux-tdep.o): Add dependencies.
8539 * frv-linux-tdep.c: New file.
8540 * frv-tdep.c (struct gdbarch_tdep): Add new field
8541 ``sigcontext_reg_addr''.
8542 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
8543 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8544 (frv_sigramp_frame_sniffer): New functions.
8545 (frv_sigtramp_frame_unwind): New static global.
8546 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
8547 sniffers.
8548 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
8549 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
8550
1ccda5e9
KB
85512004-03-15 Kevin Buettner <kevinb@redhat.com>
8552
8553 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
8554 but not via a call to error(), when unable to read memory.
8555
b375a0a5
KB
85562004-03-15 Kevin Buettner <kevinb@redhat.com>
8557
8558 * frv-tdep.c (frv_call_dummy_words): Delete.
8559 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
8560
4fdf6121
AC
85612004-03-15 Andrew Cagney <cagney@redhat.com>
8562
8563 * infrun.c (handle_step_into_function, step_over_function): Only
8564 update and use STEP_FRAME_ID when the system is using legacy
8565 frames. Update comments.
8566
34021503
MK
85672004-03-14 Mark Kettenis <kettenis@gnu.org>
8568
187e21d1
MK
8569 * amd64-linux-tdep.h: Remove file.
8570 * amd64-linux-tdep.c: Don't include "inferior.h" and
8571 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
8572 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
8573 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
8574 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
8575 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
8576 macros.
8577 (user_to_gdb_regmap): Remove variable.
8578 (amd64_linux_gregset_reg_offset): New variable.
8579 (amd64_core_fns): Remove variable.
8580 (fetch_core_registers): Remove function.
8581 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
8582 functions.
8583 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
8584 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
8585 * Makefile.in (amd64_linux_tdep_h): Remove.
8586 (amd64-linux-nat.o): Update dependencies.
8587 (amd64-linux-tdep.o): Update dependencies.
8588
99679982
MK
8589 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
8590 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
8591 functions.
8592 (fetch_inferior_registers, store_inferior_registers): Rewrite.
8593
34021503
MK
8594 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
8595 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
8596
134d01f1
DJ
85972004-03-14 Daniel Jacobowitz <drow@mvista.com>
8598
8599 * dwarf2read.c (read_structure_type): Rename from
8718a420 8600 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
8601 Return immediately if die->type is set. Call read_type_die before
8602 dwarf2_add_member_fn.
8603 (process_structure_scope): New function.
8604 (read_enumeration_type, process_enumeration_scope): New functions,
8605 broken out from read_enumeration. Don't create the enumeration
8606 type if it has already been created.
8607 (read_enumeration): Removed.
8608 (process_die): Call read_structure_type, process_structure_scope,
8609 read_enumeration_type, and process_enumeration_scope. Just call
8610 new_symbol for base and subrange types. Add a comment about other
8611 type dies.
8612 (read_type_die): Call read_enumeration_type.
8613 (add_partial_structure, new_symbol): Update comments.
8614
65760afb
SC
86152004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8616
8617 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
8618
10f59415
SC
86192004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8620
8621 * tui/tui-win.h (tui_get_cmd_list): Declare.
8622 * tui/tui-win.c (tui_command): New function.
8623 (tui_get_cmd_list): New function.
8624 (_initialize_tui_win): Moved initialization of tui command in
8625 tui_get_cmd_list.
8626
8627 * tui/tui-data.c (init_content_element): Setup new data members.
8628 (init_win_info): Likewise.
8629 (free_content_elements): Free it.
8630 * tui/tui-data.h (struct tui_data_element): Store the register
8631 content to print.
8632 (struct tui_data_info): Keep the current register group.
8633
8634 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
8635
8636 * tui/tui-regs.h (tui_show_registers): Update prototype.
8637 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
8638 (tui_resize_all): No need to calculate anything for register window.
8639 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
8640 (tui_set_register_element, tui_set_general_regs_content): Remove.
8641 (tui_set_special_regs_content): Remove.
8642 (tui_set_general_and_special_regs_content): Remove.
8643 (tui_set_float_regs_content): Remove.
8644 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
8645 (tui_set_regs_content): Remove.
8646 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
8647 (tui_v_show_registers_command_support): Remove.
8648 (tui_show_registers): Use a reggroup to specify the registers to show.
8649 (tui_show_register_group): New function.
8650 (tui_display_registers_from): Compute the layout of register window
8651 and refresh with new API; be sure to delete old register windows.
8652 (tui_check_register_values): Update to use tui_get_register and
8653 tui_display_data.
8654 (tui_display_register): Just refresh the register window part.
8655 (tui_register_format): Format registers and save in tui_data_element.
8656 (tui_get_register): New to combine tui_reg_value_has_changed and
8657 tui_get_register_raw_value; fix to use the new gdb API.
8658 (tui_show_float_command): Renamed tui_reg_float_command.
8659 (tui_show_general_command): Renamed tui_reg_general_command.
8660 (tui_show_special_command): Renamed tui_reg_system_command.
8661 (_initialize_tui_regs): Remove unused commands.
8662
c3364ea4
MK
86632004-03-13 Mark Kettenis <kettenis@gnu.org>
8664
27d1e716
MK
8665 * NEWS (New native configurations): Mention OpenBSD/amd64.
8666
c3364ea4
MK
8667 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
8668 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
8669 Remove defines.
8670 * config/i386/nm-fbsd64.h: Likewise.
8671 * config/i386/nm-obsd.h: Likewise.
8672 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
8673 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
8674
b2d6d697
KB
86752004-03-12 Kevin Buettner <kevinb@redhat.com>
8676
8677 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
8678 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
8679 New constants.
8680
76e43199
KB
8681 From Richard Sandiford <rsandifo@redhat.com>:
8682 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
8683
34ce532e
KB
86842004-03-12 Kevin Buettner <kevinb@redhat.com>
8685
8686 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
8687 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
8688 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
8689 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
8690 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
8691 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
8692 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
8693 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
8694 definitions from frv-tdep.c to frv-tdep.h.
8695
c4d10515
KB
86962004-03-12 Kevin Buettner <kevinb@redhat.com>
8697
8698 Add shared library support for FR-V FDPIC ABI:
8699 * Makefile.in (solib-frv.o): Add dependencies.
8700 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
8701 New functions.
8702 (frv_push_dummy_call): Add support for FDPIC ABI.
8703 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
8704 for FDPIC ABI.
8705 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
8706 (frv_fdpic_find_canonical_descriptor): Declare.
8707 * solib-frv.c: New file.
8708 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
8709 * config/frv/tm-frv.h (solib.h): Include.
8710
ed1bd989
KB
87112004-03-12 Kevin Buettner <kevinb@redhat.com>
8712
8713 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
8714 (frv-tdep.o): Update dependencies.
8715 * frv-tdep.h: New file.
8716 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
8717 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
8718 constants.
8719 (struct gdbarch_tdep): Add new member ``frv_abi''.
8720 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
8721 functions.
8722 (new_variant): Set ``frv_abi'' field.
8723 (gdb_arch_init): Detect FDPIC executables.
8724
82b38f72
MK
87252004-03-12 Mark Kettenis <kettenis@gnu.org>
8726
8727 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
8728 wrapper.
8729
db1ea9ba
AC
87302004-03-11 Andrew Cagney <cagney@redhat.com>
8731
8732 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
8733
f8766ec1
KB
87342004-03-11 Kevin Buettner <kevinb@redhat.com>
8735
8736 * solist.h (master_so_list): New function.
8737 * solib.c (master_so_list): Likewise.
8738 * solib-svr4.c (enable_break): Iterate over so_list entries
8739 obtained from master list instead of entries obtained directly
8740 via svr4_current_sos().
8741
523f6a27
BE
87422004-03-10 Ben Elliston <bje@gnu.org>
8743
8744 * MAINTAINERS: Update my mail address.
8745
37814c18
KI
87462004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
8747
8748 * remote-m32r-sdi.c: Support hardware watchpoint.
8749
8b9740d8
DJ
87502004-03-09 Daniel Jacobowitz <drow@mvista.com>
8751
8752 * user-regs.c: Update copyright years.
8753 (struct user_regs): Rename to gdb_user_regs.
8754 (append_user_reg, builtin_user_regs, user_regs_init)
8755 (user_reg_add, user_reg_map_name_to_regnum)
8756 (usernum_to_user_reg): Update.
8757
4bb7a0a7
DJ
87582004-03-09 Daniel Jacobowitz <drow@mvista.com>
8759
8760 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
8761 (skip_children): New functions.
8762 (locate_pdi_sibling): Call skip_children.
8763
44e1a9eb
DJ
87642004-03-09 Daniel Jacobowitz <drow@mvista.com>
8765
8766 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
8767 * gdbtypes.c (check_typedef): Update comments.
8768
f3dd6933
DJ
87692004-03-09 Daniel Jacobowitz <drow@mvista.com>
8770
8771 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
8772 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
8773 pointer. Update comment about comp_unit_head.
8774 (struct abbrev_info): Shorten two int flags.
8775 (dwarf_alloc_abbrev): Take a CU argument.
8776 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
8777 each time through the loop. Update cleanup argument.
8778 (psymtab_to_symtab_1): Update cleanup call.
8779 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
8780 abbrev_obstack.
8781 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
8782 Just call obstack_free and clear the pointer.
8783
b40c7d58
DJ
87842004-03-09 Daniel Jacobowitz <drow@mvista.com>
8785
8786 * infrun.c (handle_inferior_event): Remove short-circuit code for
8787 events in a different thread.
8788
333dabeb
DJ
87892004-03-09 Daniel Jacobowitz <drow@mvista.com>
8790
8791 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
8792 print the whole transfer.
8793 (initialize_targets): Update description of "set debug target".
8794
aa17d93e
DJ
87952004-03-09 Daniel Jacobowitz <drow@mvista.com>
8796
8797 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
8798
0b71f08f
NW
87992004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
8800
8801 * MAINTAINERS (write after approval): Add myself.
8802
3930f270
CV
88032004-03-08 Corinna Vinschen <vinschen@redhat.com>
8804
8805 * sh-tdep.c (sh_print_registers_info): Use for loop.
8806 Don't skip multiple registers when a float register is encountered.
8807
a2b4a96c
CV
88082004-03-08 Corinna Vinschen <vinschen@redhat.com>
8809
8810 Fix PR tdep/1291.
8811 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
8812 to official SH documentation.
8813
f15a4bc0
AC
88142004-03-07 Andrew Cagney <cagney@redhat.com>
8815
8816 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
8817 unused function.
8818
9498281f
DJ
88192004-03-07 Daniel Jacobowitz <drow@mvista.com>
8820
8821 * arm-tdep.c (thumb_get_next_pc): Handle BX.
8822 (arm_get_next_pc): Handle BX and BLX.
8823
449e1137
AC
88242004-03-07 Andrew Cagney <cagney@redhat.com>
8825
eded0a31
AC
8826 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
8827 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
8828 HPPA_SP_REGNUM.
8829 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
8830 (hppa_target_read_fp): Delete.
8831 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
8832 register_virtual_size, max_register_raw_size,
8833 max_register_virtual_size, register_byte, register_size,
8834 target_read_fp, fp_regnum, and register_bytes. Set register_type
8835 instead of register_virtual_type.
8836 (hppa32_register_type, hppa64_register_type): Replace
8837 hppa32_register_virtual_type and hppa64_register_virtual_type.
8838 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
8839 (HPPA_FP_REGNUM): Define.
8840
f5f907e2
AC
8841 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
8842
69b4bbe4
AC
8843 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
8844 (pa_do_registers_info): Delete.
8845 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 8846 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 8847 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 8848
78161e48
AC
8849 * infcall.c (legacy_push_dummy_code): Delete #ifdef
8850 GDB_TARGET_IS_HPPA code.
8851 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 8852 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
8853 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
8854 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
8855 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
8856 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
8857 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 8858 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
8859 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
8860 (hppa_frameless_function_invocation, hppa64_store_return_value)
8861 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 8862 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 8863 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 8864 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
8865 (find_proc_framesize, deposit_21, restore_pc_queue)
8866 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 8867 (rp_saved, pc_in_linker_stub): Delete.
78161e48 8868
782eae8b
AC
8869 Unconditionally enable 64-bit frame and ABI code.
8870 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
8871 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
8872 push_dummy_frame, fix_call_dummy, push_arguments,
8873 call_dummy_location, extract_return_value, use_struct_convention,
8874 store_return_value, store_struct_return, saved_pc_after_call,
8875 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
8876 frame_chain, frame_chain_valid, frameless_function_invocation,
8877 frame_saved_pc, and pop_frame.
78161e48 8878
449e1137
AC
8879 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
8880 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
8881 (hppa_gdbarch_init): Do not set PC_REGNUM.
8882
12507572
MK
88832004-03-06 Mark Kettenis <kettenis@gnu.org>
8884
8885 * config/alpha/tm-fbsd.h: Remove file.
8886 * config/alpha/fbsd.mt: Tweak comment.
8887 (TM_FILE): Set to tm-alpha.h.
8888
c107cc1b
AC
88892004-03-05 Andrew Cagney <cagney@redhat.com>
8890
8891 * infrun.c (step_over_function): When non-legacy code, and no
8892 step_frame_id, use the unwinder to get the caller's frame ID.
8893
f2e7c15d
MK
88942004-03-05 Mark Kettenis <kettenis@gnu.org>
8895
8b0c3633
MK
8896 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
8897 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
8898 bfd_arch_unknown. Adjust comment.
8899
f2e7c15d
MK
8900 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
8901 * i386obsd-tdep.c: Correct spelling in comment.
8902 * i386nbsd-tdep.c: Correct spelling in comment.
8903 * sparc-tdep.c: Correct spelling in comments.
8904
1198ecbe
DC
89052004-03-05 David Carlton <carlton@kealia.com>
8906
8907 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
8908 bug.
8909
9eb42ed1
MK
89102004-03-05 Mark Kettenis <kettenis@gnu.org>
8911
8912 * sparc-tdep.c: Fix typo in comment.
8913
52b5e991
JB
89142004-03-04 J. Brobecker <brobecker@gnat.com>
8915
8916 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
8917
d8151005
DJ
89182004-03-04 Daniel Jacobowitz <drow@mvista.com>
8919
8920 * dwarf2read.c: Add comment describing memory lifetimes.
8921 (struct dwarf2_pinfo): Update comment.
8922 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
8923 (read_enumeration, new_symbol): Don't use obsavestring.
8924
cbeae229
MK
89252004-03-04 Mark Kettenis <kettenis@gnu.org>
8926
722d18c2
MK
8927 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
8928 instead of amd64_fill_fxsave.
8929 * amd64bsd-nat.c (store_inferior_registers): Likewise.
8930 * amd64fbsd-nat.c (fill_fpregset): Likewise.
8931
cbeae229
MK
8932 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
8933 Reorganize code a bit.
8934
b4206d25
OF
89352004-03-04 Orjan Friberg <orjanf@axis.com>
8936
8937 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
8938 when the frame pointer is pushed. Don't set the frame pointer's
8939 address on the stack unless it's actually located there.
b4206d25
OF
8940 Set the SRP's address on the stack correctly when the PC is still in
8941 the prologue.
8942 (cris_return_value): New function.
8943 (cris_gdbarch_init): Clear deprecated store_return_value,
8944 extract_return_value.
8945
49b0b195
JB
89462004-03-02 Jim Blandy <jimb@redhat.com>
8947
8948 * stabsread.c (reg_value_complaint): The maximum register number
8949 is one less than the number of registers.
8950
e9ff708b
AC
89512004-03-02 Andrew Cagney <cagney@redhat.com>
8952
8953 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
8954 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
8955 trailing comma and redundant assignment of I386_ST0_REGNUM.
8956 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
8957 32-bit segment registers.
8958
d4715e41
AC
89592004-03-01 Andrew Cagney <cagney@redhat.com>
8960
8961 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
8962 use frame_relative_level and get_next_frame.
8963
3ce2bf18
AC
89642004-02-29 Andrew Cagney <cagney@redhat.com>
8965
8966 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
8967 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
8968 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
8969 Delete macro.
8970
2da6aac3
DJ
89712004-02-29 Daniel Jacobowitz <drow@mvista.com>
8972
8973 * inflow.c (terminal_inferior): Don't give up the terminal if we
8974 previously couldn't get the inferior's terminal state.
8975
6ba34a8d
DJ
89762004-02-29 Daniel Jacobowitz <drow@mvista.com>
8977
8978 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
8979 PC_REGNUM.
8980
faae5abe
AC
89812004-02-28 Andrew Cagney <cagney@redhat.com>
8982
8983 * NEWS: Refer to GDB 6.1.
8984 * README: Refer to GDB 6.1.
8985 * PROBLEMS: Refer to GDB 6.1.
8986
2227a3c5
DJ
89872004-02-28 Daniel Jacobowitz <drow@mvista.com>
8988
8989 * thread-db.c (disable_thread_signals): Remove unused function.
8990
80571bff
MK
89912004-02-28 Mark Kettenis <kettenis@gnu.org>
8992
041bd74b
MK
8993 * amd64-nat.c: Include "gdb_string.h".
8994 (amd64_collect_native_gregset): Zero-extend the 32-bit
8995 general-purpose registers and %eip.
8996
3c017e40
MK
8997 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
8998 * amd64-tdep.c (amd64_collect_fxsave): New function.
8999 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
9000
80571bff
MK
9001 * i387-tdep.h: Update copyright year.
9002 (i387_collect_fxsave): New prototype.
9003 * i387-tdep.c: Update copyright year.
9004 (i387_collect_fxsave): New function containing most of the code
9005 from i387_fill_fxsave.
9006 (i387_fill_fxsave): Call i387_collect_fxsave.
9007
50d71875
AC
90082004-02-28 Andrew Cagney <cagney@redhat.com>
9009
9010 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
9011 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
9012
4a28816e
MK
90132004-02-28 Mark Kettenis <kettenis@gnu.org>
9014
9015 * amd64-tdep.c (amd64_frame_cache): Fix comment.
9016
dbda9972
AC
90172004-02-28 Andrew Cagney <cagney@redhat.com>
9018
9019 * utils.c: Use "", instead of <>, to include readline.
9020 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
9021 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
9022 * source.c, solib.c, exec.c, event-top.c: Ditto.
9023 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
9024 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
9025 * Makefile.in: Update all dependencies.
9026 (readline_tilde_h, readline_history_h): Define.
9027 (readline_headers): Delete.
9028
83277a99
MK
90292004-02-28 Mark Kettenis <kettenis@gnu.org>
9030
91ae4303
MK
9031 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
9032 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
9033 "config/i386/tm-lx64.h".
9034
83277a99
MK
9035 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
9036 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
9037 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
9038
6e1d7d6c
AC
90392004-02-28 Andrew Cagney <cagney@redhat.com>
9040
ecc9ac84
AC
9041 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
9042
6e1d7d6c
AC
9043 * breakpoint.c (_initialize_breakpoint): Use
9044 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
9045 Add help to show command.
9046
9671aeef
MK
90472004-02-28 Mark Kettenis <kettenis@gnu.org>
9048
7fa2737c
MK
9049 * i386-nat.c: Reformat to be closer to coding standards.
9050 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
9051 `retval'. Make variables `align' and `size' local to while-loop.
9052 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
9053 (_initialize_i386_nat): New prototype.
9054
9671aeef
MK
9055 * tui/tui.c: Include <readline/readline.h> instead of
9056 "readline/readline.h". Include it after <term.h> and
9057 "gdb_curses.h".
9058
fca7aa43
AC
90592004-02-27 Andrew Cagney <cagney@redhat.com>
9060
412275d5
AC
9061 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
9062 the new frame unwind code.
9063 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
9064 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
9065 PCOQ_HEAD_REGNUM.
9066
fca7aa43
AC
9067 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
9068 "return_value" and "push_dummy_call".
9069 (hppa32_use_struct_convention): Delete unused function.
9070 (hppa32_store_return_value): Delete unused function.
9071 (hppa32_extract_return_value): Delete unused function.
9072 (hppa32_stack_align): Delete function.
9073
e6a8a7d2
EZ
90742004-02-27 Eli Zaretskii <eliz@elta.co.il>
9075
9076 * coffread.c (enter_linenos): Don't let rawptr reference memory
9077 outside linetab[]'s limits.
9078
1797a8f6
AC
90792004-02-27 Andrew Cagney <cagney@redhat.com>
9080
9081 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
9082 inferior stack space - the stack needs to grow upwards.
9083 (hppa32_frame_align): New function.
9084 (hppa64_frame_align): Replace hppa_frame_align.
9085 (hppa_gdbarch_init): Update.
9086
2e4b5889
OF
90872004-02-26 Orjan Friberg <orjanf@axis.com>
9088
9089 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
9090 (dwarf2-frame.h): Include.
9091 (enum cris_regnums): New enum CRIS_FP_REGNUM.
9092 Remove static variables related to ABI setting.
9093 (struct gdbarch_tdep): Remove cris_abi member.
9094 (struct frame_extra_info): Remove.
9095 (cris_unwind_cache, stack_item): New structs.
9096 (cris_frame_unwind, cris_frame_base): New variables.
9097 (push_stack_item, pop_stack_item)
9098 (cris_frame_unwind_cache, cris_frame_this_id)
9099 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
9100 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
9101 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
9102 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
9103 (cris_reg_struct_has_addr): New functions.
9104 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 9105 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
9106 (cris_store_struct_return, cris_frameless_function_invocation)
9107 (cris_pop_frame, cris_skip_prologue_main)
9108 (cris_abi_original_store_return_value)
9109 (cris_abi_v2_store_return_value)
9110 (cris_abi_original_extract_return_value)
9111 (cris_abi_v2_extract_return_value)
9112 (cris_abi_original_reg_struct_has_addr)
9113 (cris_abi_v2_reg_struct_has_addr)
9114 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
9115 (cris_push_return_address, cris_abi_update): Remove.
9116 (_initialize_cris_tdep): Remove ABI command.
9117 (cris_dump_tdep): Ditto.
8718a420 9118 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
9119 Set store_return_value, extract_return_value, push_dummy_code,
9120 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
9121 frame_unwind_append_sniffer, frame_base_set_default.
9122 Clear deprecated init_frame_pc, push_arguments, store_return_value,
9123 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
9124 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 9125 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
9126 init_extra_frame_info, frameless_function_invocation, frame_chain,
9127 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
9128 dummy_write_sp.
8718a420 9129
6b9acc27
JJ
91302004-02-26 Jeff Johnston <jjohnstn@redhat.com>
9131
9132 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
9133 * valprint.c (print_hex_chars): Change from static to external.
9134 (print_char_chars): New function.
9135 * printcmd.c (print_scalar_formatted): For integer and enum types
9136 that are longer than LONGEST, perform processing via appropriate
9137 print_*_chars routines.
9138
a431654a
AC
91392004-02-26 Andrew Cagney <cagney@redhat.com>
9140
9141 * Makefile.in: Update dependencies.
9142 Changes from Ulrich Weigand,
9143 * s390-tdep.c: Include "dwarf2-frame.h".
9144 (s390_dwarf2_frame_init_reg): New function.
9145 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
9146 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
9147
fa8d40ab
JJ
91482004-02-26 Jeff Johnston <jjohnstn@redhat.com>
9149
9150 * breakpoint.c (pending_break_support): New setting variable.
9151 (break_command_1): Account for pending_break_support setting
9152 when creating pending breakpoints.
9153 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
9154 (_initialize_breakpoint): Add "set breakpoint pending" and
9155 "show breakpoint pending" commands.
9156
0dcd613f
AC
91572004-02-26 Andrew Cagney <cagney@redhat.com>
9158
9159 Fix PR i18n/1570.
9160 * charset.c (backslashable, backslashed, represented): Remove 'e'
9161 from list of escaped characters, not part of ISO-C.
9162
479272a3
JB
91632004-02-25 J. Brobecker <brobecker@gnat.com>
9164
9165 From Peter Schauer <schauer@pdf.de>:
9166 * tui/tui.c: Move system header includes after local includes.
9167 Fixes a build failure on solaris systems.
9168
7613d933
JB
91692004-02-25 J. Brobecker <brobecker@gnat.com>
9170
9171 * configure.in: Refine the previous change.
9172 * configure: Regenerate.
9173
9c1488cb
MK
91742004-02-25 Mark Kettenis <kettenis@gnu.org>
9175
9176 * amd64-tdep.h: Renamed from x86-64-tdep.h.
9177 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
9178 "amd64-tdep.h" instead of "x86-64-tdep.h".
9179 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9180 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
9181 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
9182 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9183 and "x86-64-tdep.c".
9184 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
9185 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9186 and "x86-64-tdep.c".
9187 * amd64bsd-nat.c: Update copyright year.
9188 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9189 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
9190 "x86-64-tdep.h".
9191 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
9192 "x86-64-tdep.h".
9193 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
9194 "x86-64-tdep.h".
9195 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
9196 "x86-64-tdep.h".
9197 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
9198 "x86-64-tdep.h".
9199 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
9200 "x86-64-tdep.h".
8718a420 9201 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
9202 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
9203 * Makefile.in (amd64_linux_tdep_h): Renamed from
9204 x86_64_linux_tdep_h.
9205 (amd64_tdep_h): Renamed from x86_64_tdep_h.
9206 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
9207 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
9208 (amd64obsd-tdep.o): Update dependencies.
9209 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
9210 dependencies.
9211 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
9212 dependencies.
9213 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
9214 amd64-linux-nat.c amd64-linux-tdep.c.
9215 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
9216 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
9217 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
9218 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
9219 amd64-tdep.o and amd64-linux-tdep.o.
9220 (TM_FILE): Set to tm-linux64.h.
9221 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
9222 (NAT_FILE): Set to nm-linux64.h.
9223 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
9224 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9225 amd64-tdep.o.
9226 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9227 amd64-tdep.o.
9228 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9229 amd64-tdep.o.
9230
4b8dad4a
RM
92312004-02-25 Roland McGrath <roland@redhat.com>
9232
9233 * remote.c (remote_protocol_qPart_auxv): New variable.
9234 (init_all_packet_configs): Initialize it.
9235 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
9236 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
9237 (show_remote_cmd): Call it.
9238 (_initialize_remote): Initialize commands.
9239 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
9240 service TARGET_OBJECT_AUXV requests.
9241
66745969
JB
92422004-02-25 J. Brobecker <brobecker@gnat.com>
9243
9244 * configure.in: Make sure that the wborder function is available.
9245 Otherwise, search for it in the cur_colr library.
9246 * configure: Regenerate.
9247
79508e1e
AC
92482004-02-25 Andrew Cagney <cagney@redhat.com>
9249
9250 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
9251
571ee600
MK
92522004-02-25 Mark Kettenis <kettenis@gnu.org>
9253
9254 * config/i386/tm-x86-64linux.h: Tweak comments.
9255
2b1b322f 92562004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
9257
9258 * MAINTAINERS: Add self to write-after-approval list.
9259
4d2acc65
AC
92602004-02-25 Andrew Cagney <cagney@redhat.com>
9261
4b8dad4a 9262 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
9263 * cli/cli-script.c (execute_control_command): Unconditionally
9264 install a cleanup. Default "ret" to "invalid_control". Use
9265 "break" instead of "return" to escape from the switch.
9266
4cfcaf21
JB
92672004-02-24 J. Brobecker <brobecker@gnat.com>
9268
9269 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
9270 with the lines macro defined in term.h on AiX.
9271 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
9272 a collision with the label_width macro defined in term.h on AiX.
9273
54a5c8d8
KB
92742004-02-23 David Mosberger <davidm@hpl.hp.com>
9275
9276 Committed by Kevin Buettner <kevinb@redhat.com>.
9277
9278 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
9279 * ia64-tdep.c (ia64_write_pc): Make it a global function.
9280 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
9281 instead of ia64_write_pc().
9282 * ia64-linux-tdep.c (regcache.h): Include.
9283 (ia64_linux_write_pc): New function.
4b8dad4a 9284
8a1dac83
RM
92852004-02-23 Roland McGrath <roland@redhat.com>
9286
9287 * auxv.c (info_auxv_command): Fix typos in error messages.
9288
90f90721
MK
92892004-02-23 Mark Kettenis <kettenis@gnu.org>
9290
8a1dac83 9291 * x86-64-tdep.h: Tweak comment.
90f90721
MK
9292 (enum amd64_regnum): New.
9293 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
9294 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
9295 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
9296 (X86_64_XMM1_REGNUM): Removed.
9297 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
9298 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
9299 prototypes for renamed functions.
9300 * x86-64-tdep.c: Fix typo.
9301 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
9302 register numbers.
9303 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
9304 Use constants from `enum amd64_regnum' for register numbers.
9305 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
9306 (amd64_analyze_prologue, amd64_frame_cache,
9307 amd64_sigtramp_frame_cache): Use constants from `enum
9308 amd64_regnum' for register numbers.
9309 (amd64_supply_fpregset): Adjust for renamed functions.
9310 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
9311 `enum amd64_regnum' for register numbers.
9312 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
9313 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
9314 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
9315 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
9316 (amd64_linux_fill_gregset): Adjust for renamed macros.
9317 (fetch_core_registers): Adjust for renamed functions.
9318 (amd64_linux_init_abi): Adjust for renamed functions.
9319 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
9320 renamed functions.
9321 * amd64-nat.c: Adjust for renamed macros.
9322 * amd64bsd-nat.c (fetch_inferior_registers)
9323 (store_inferior_registers): Use constants from `enum amd64_regnum'
9324 for register numbers. Adjust for renamed variables.
9325 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
9326 renamed variables.
9327 (_initialize_amd64fbsd_nat): Use constants from `enum
9328 amd64_regnum' for register numbers.
9329 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
9330 `enum amd64_regnum' for register numbers.
9331 (amd64fbsd_init_abi): Adjust for renamed functions.
9332 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
9333 `enum amd64_regnum' for register numbers.
9334 (amd64nbsd_init_abi): Adjust for renamed functions.
9335 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
9336 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
9337 `enum amd64_regnum' for register numbers.
9338 (amd64obsd_init_abi): Adjust for renamed functions.
9339 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
9340
d5479188
JJ
93412004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9342
9343 * breakpoint.c (print_one_breakpoint): Do not output spaces
9344 after printing <PENDING> for a pending breakpoint.
9345
81cb7cc9
JJ
93462004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9347
9348 * printcmd.c (print_scalar_formatted): Initialize val_long
9349 to remove compiler warning message.
9350
cbdeadca
JJ
93512004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9352
9353 * defs.h (nquery, yquery): New prototypes.
9354 * breakpoint.c (break_command_1): Use new nquery interface.
9355 * utils.c (defaulted_query, nquery, yquery): New functions.
9356
da6bab63
AC
93572004-02-23 Andrew Cagney <cagney@redhat.com>
9358
2f690297
AC
9359 * hppa-tdep.c (hppa_frame_align): New function.
9360 (hppa32_push_dummy_call): New function.
9361 (hppa64_push_dummy_call): New function.
9362 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
9363 disabled.
8a1dac83 9364
da6bab63
AC
9365 * infcall.c (legacy_push_dummy_code): Don't call deprecated
9366 FIX_CALL_DUMMY when push_dummy_call is available.
9367 (call_function_by_hand, push_dummy_code): Ditto.
9368
abf9b42d
AC
93692004-02-22 Andrew Cagney <cagney@redhat.com>
9370
9371 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
9372 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
9373 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
9374 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
9375 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
9376 call_dummy_location to ON_STACK.
9377
10fc94a4
MK
93782004-02-22 Mark Kettenis <kettenis@gnu.org>
9379
51433e4b
MK
9380 * x86-64-linux-tdep.c: Tweak comment.
9381 (amd64_linux_supply_gregset): Renamed from
9382 x86_64_linux_supply_gresget.
9383 (amd64_linux_fill_gregset): Renamed from
9384 x86_64_linux_fill_gregset.
9385 (fetch_core_registers): Adjust for renamed functions.
9386 (amd64_core_fns): Renamed from x86_64_core_fns.
9387 (amd64_linux_sigtramp_start): Renamed from
9388 x86_64_linux_sigtramp_start.
9389 (amd64_linux_pc_in_sigtramp): Renamed from
9390 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
9391 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
9392 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
9393 (amd64_linux_sigcontext_addr): Renamed from
9394 x86_64_linux_sigcontext_addr.
9395 (amd64_linux_sc_reg_offset): Renamed from
9396 x86_64_linux_sc_reg_offset.
9397 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
9398 Adjust for renamed functions and variables.
9399 (_initialize_amd64_linux_tdep): Renamed from
9400 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
9401 variables.
9402 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
9403 Adjust for renamed functions.
9404
430eaf2e
MK
9405 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
9406 from x86_64_linux_gregset64_reg_offset.
9407 (amd64_linux_gregset32_reg_offset): Rename from
9408 x86_64_linux_gregset64_reg_offset.
9409 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
9410 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
9411 (amd64_linux_dr_set_control): Renamed from
9412 x86_64_linux_dr_set_control. Adjust for renamed functions.
9413 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
9414 Adjust for renamed functions.
9415 (amd64_linux_dr_reset_addr): Renamed from
9416 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
9417 (amd64_linux_dr_get_status): Renamed from
9418 x86_64_linux_dr_get_status. Adjust for renamed functions.
9419 (_initialize_amd64_linux_nat): Renamed from
9420 _initialize_x86_64_linux_nat. Adjust for renamed variables and
9421 functions.
9422 * config/i386/nm-x86-64linux.h: Update copyright year.
9423 Adjust for renamed functions.
9424
10fc94a4
MK
9425 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
9426 amd64fbsd_sigtramp_start.
9427 (amd64fbsd_sigtramp_end_addr): Renamed from
9428 amd64fbsd_sigtramp_end.
9429 (amd64fbsd_init_abi): Adjust for renamed variables.
9430 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
9431 variables.
9432 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
9433 amd64fbsd_sigtramp_start.
9434 (amd64fbsd_sigtramp_end_addr): Renamed from
9435 amd64fbsd_sigtramp_end.
9436
343af405
AC
94372004-02-22 Andrew Cagney <cagney@redhat.com>
9438
537987fc
AC
9439 * hppa-tdep.c (hppa32_return_value): New function.
9440 (hppa64_return_value): New function.
9441 (hppa_gdbarch_init): Set return_value; keep disabled.
9442
fad850b2
AC
9443 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
9444 struct-return and inferior function call methods.
9445
26d08f08
AC
9446 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9447 "frame-base.h".
9448 (struct hppa_frame_cache): Define.
9449 (hppa_frame_cache, hppa_frame_this_id): New functions.
9450 (hppa_frame_prev_register): New function.
9451 (hppa_frame_unwind, hppa_frame_base): New variables.
9452 (hppa_frame_unwind_sniffer): New function.
9453 (hppa_frame_base_address, hppa_unwind_pc): New function.
9454 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
9455 sniffer, and frame base sniffer; keep disabled.
9456 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
9457 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
9458
e7d7bd65
AC
9459 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
9460 to predicates for "seriously old code".
9461
e963316f
AC
9462 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
9463 runtime if(0).
9464
56132691
AC
9465 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
9466 unsigned.
9467 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 9468
343af405
AC
9469 * config/pa/tm-hppa.h: Update copyright.
9470 (DEPRECATED_INIT_FRAME_PC): Delete macro.
9471 (deprecated_init_frame_pc_default): Delete declaration.
9472 (hppa_frame_init_saved_regs): Delete declaration.
9473 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9474 * hppa-tdep.c: Include "arch-utils.h".
9475 (hppa_gdbarch_init): Set deprecated init_frame_pc
9476 and deprecated frame_init_saved_regs.
9477 (hppa_frame_init_saved_regs): Make static.
9478
f5859b4d
MK
94792004-02-22 Mark Kettenis <kettenis@gnu.org>
9480
86f6f8e7 9481 Remove old 386BSD support.
cf7c5c23 9482 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
9483 * configure.host: Remove i[34567]86-*-bsd*.
9484 * configure.tgt: Remove i[34567]86-*-bsd*.
9485 * i386b-nat.c: Removed.
9486 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
9487 (i386b-nat.o): Remove dependencies.
9488
86f6f8e7
MK
9489 * config/i386/i386bsd.mh: Removed.
9490 * config/i386/i386bsd.mt: Removed.
9491 * config/i386/nm-i386bsd.h: Removed.
9492 * config/i386/tm-i386bsd.h: Removed.
9493 * config/i386/xm-i386bsd.h: Removed.
9494
971218cd
MK
9495 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
9496
7e654c37
MK
9497 * amd64fbsd-tdep.c: Include "solib-svr4.h".
9498 (amd64fbsd_init_abi): Set link map offsets.
9499 * amd64nbsd-tdep.c: Include "slib-svr4.h".
9500 (amd64nbsd_init_abi): Set link map offsets.
9501 * amd64obsd-tdep.c: Include "solib-svr4.h".
9502 (amd64obsd_init_abi): Set link map offsets.
9503 * i386fbsd-tdep.c: Include "solib-svr4.h".
9504 (i386fbsd_init_abi): Set link map offsets.
9505 * i386nbsd-tdep.c: Include "solib-svr4.h".
9506 (i386nbsdelf_init_abi): Set link map offsets.
9507 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
9508 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
9509 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
9510 solib-legacy.o and core-aout.o. Reformat.
9511 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
9512 solib-svr4.o, solib-legacy.o. Reformat.
9513 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
9514 * config/i386/nbsdelf.mh: Reformat.
9515 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
9516 solib-svr4.o, solib-legacy.o and corelow.o.
9517 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
9518 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
9519 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
9520 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9521 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9522 (TM_FILE): Set to tm-fbsd.h.
9523 * config/i386/nbsd.mt (TDEPFILES): Reformat.
9524 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
9525 solib-svr4.o.
9526 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
9527 solib-svr4.o.
9528 (TM_FILE): Set to nm-nbsd.h.
9529 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
9530 Simplify shared library support. Don't include "elf/common.h".
9531 (SVR4_SHARED_LIBS): Don't define.
9532 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
9533 "solib.h".
9534 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
9535 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
9536 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
9537 Don't include "i386/tm-i386.h". Include "solib.h".
9538 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
9539 Don't include "i386/tm-i386.h".
9540 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
9541 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
9542 Include "i386/xm-i386.h".
9543 (HOST_LONG_DOUBLE_FORMAT): Remove.
9544
5d93ae8c
MK
9545 Fix OpenBSD/i386 sigtramp recognition.
9546 * i386-tdep.h: Update copyright year.
9547 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
9548 (i386bsd_sigtramp_end): New prototypes.
9549 (i386fbsd_sigtramp_start_addr): Renamed from
9550 i386fbsd_sigtramp_start.
9551 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9552 (i386obsd_sigtramp_start_addr): Renamed from
9553 i386obsd_sigtramp_start.
9554 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9555 * i386bsd-tdep.c: Update copyright year.
9556 (i386bsd_pc_in_sigtramp): Make public.
9557 * i386fbsd-nat.c: Update copyright year.
9558 (_initialize_i386fbsd_nat): Adjust for renamed variables.
9559 * i386fbsd-tdep.c: Update copyright year.
9560 (i386fbsd_sigtramp_start_addr): Renamed from
9561 i386fbsd_sigtramp_start.
9562 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9563 (i386fbsdaout_init_abi): Adjust for renamed variables.
9564 * i386obsd-nat.c: Update copyright year.
9565 (_initialize_i386obsd_nat): Adjust for renamed variables.
9566 * i386obsd-tdep.c: Include "target.h".
9567 (i386obsd_page_size): New variable.
9568 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
9569 (i386obsd_sigtramp_end): New functions.
9570 (i386obsd_sigtramp_start_addr): Renamed from
9571 i386obsd_sigtramp_start.
9572 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9573 (i386obsd_init_abi): Adjust for renamed variables. Set
9574 pc_in_sigtramp, sigtramp_start and sigtramp_end.
9575 * Makefile.in (i386obsd-tdep.o): Update dependencies.
9576
84d04465
MK
9577 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
9578 trampoline change in OpenBSD kernel.
9579
b053aceb
MK
9580 * amd64-nat.c: Update copyright year.
9581 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
9582 architecture from REGCACHE.
9583
f5859b4d
MK
9584 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
9585 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
9586
e4bbbda8
MK
95872004-02-21 Mark Kettenis <kettenis@gnu.org>
9588
ba361932
MK
9589 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
9590 i[34567]86-*-openbsd3.[0-3].
9591 * config/i386/obsdaout.mh: New file.
9592
d3e48264
MK
9593 * config/i386/obsd.mh (MH_FLAGS): Remove.
9594
60a6eeb6
MK
9595 Fix PR build/1549.
9596 * i386obsd-tdep.c: Update copyright years. Include
9597 "solib-svr4.h".
9598 (i386obsd_init_abi): Don't set regset_from_core_section here.
9599 (i386obsd_aout_init_abi): New function. Set
9600 regset_from_core_section here.
9601 (i386obsd_elf_init_abi): New function.
9602 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
9603 * Makefile.in (i386obsd-tdep.o): Update dependecies.
9604 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9605 (TM_FILE): Set to tm-nbsd.h.
9606
9607 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
9608 solib-sunos.o.
9609
e4bbbda8
MK
9610 * solib-svr4.h: Update copyright year.
9611 (svr4_ilp32_fetch_link_map_offsets)
9612 (svr4_lp64_fetch_link_map_offsets): New prototype.
9613 * solib-svr4.c: Update copyright year.
9614 (svr4_ilp32_fetch_link_map_offsets)
9615 (svr4_lp64_fetch_link_map_offsets): New function.
9616
f6fe98ef
DJ
96172004-02-20 Daniel Jacobowitz <drow@mvista.com>
9618
9619 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
9620 to the partial symbol table.
9621
589ca796
JB
96222004-02-20 J. brobecker <brobecker@gnat.com>
9623
9624 * PROBLEMS: Add description of problem documented under gdb/1560.
9625
2031c21a
MK
96262004-02-20 Mark Kettenis <kettenis@gnu.org>
9627
30b344b1
MK
9628 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
9629 comments.
9630 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
9631 functions.
9632 (amd64obsd_init_abi): Reorder initializations. Use
9633 amd64obsd_r_reg_offset to initialize the general-purpose register
9634 set details. Set regset_from_core_section.
9635 (_initialize_amd64obsd_tdep): Rename from
9636 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
9637 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
9638 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
9639
2031c21a
MK
9640 * NEWS (New native configurations): Mention OpenBSD/alpha.
9641 * configure.tgt: Add alpha*-*-openbsd*.
9642 * configure.host: Add alpha*-*-openbsd*.
9643 * alphanbsd-tdep.c: Update copyright year.
9644 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
9645
42471775
AC
96462004-02-20 Andrew Cagney <cagney@redhat.com>
9647
9648 Fix PR tdep/1372.
9649 * configure.tgt: Delete target "none-*-*".
9650 * configure.host: Delete host "none-*-*".
9651 * config/none/none.mh: Delete file.
9652 * config/none/none.mt: Delete file.
9653 * config/none/xm-none.h: Delete file.
9654 * config/none/tm-none.h: Delete file.
9655 * config/none/nm-none.h: Delete file.
9656
960ccd7d
FF
96572004-02-19 Fred Fish <fnf@redhat.com>
9658
9659 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
9660 cache->uses_fp prior to setting it.
9661
5f883edd
FF
96622004-02-19 Fred Fish <fnf@redhat.com>
9663
9664 Fix for PR breakpoint/1558.
9665 * sh-tdep.c (IS_JSR): New macro.
9666 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
9667
f98c22d5
JB
96682004-02-19 Jim Blandy <jimb@redhat.com>
9669
9670 * findvar.c (value_from_register): Doc fix.
9671
95051d27
JJ
96722004-02-19 Jeff Johnston <jjohnstn@redhat.com>
9673
9674 * printcmd.c (print_scalar_formatted): Do not check for sizeof
9675 type being greater than sizeof of host's LONGEST. Always use
9676 unpack_long() unless format 'f' chosen.
9677
ccefbec3
EZ
96782004-02-19 Joel Brobecker <brobecker@gnat.com>
9679
9680 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 9681
ccefbec3
EZ
9682 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
9683 contains a symbol wich is the best, non-exact match for the given
9684 pc. Update comments.
9685
96862004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 9687
2ede629f
EZ
9688 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
9689 macro, which was part of the now removed Mach 3 port.
9690 * utils.c (request_quit): Ditto.
9691
567ee972
MK
96922004-02-18 Mark Kettenis <kettenis@gnu.org>
9693
9694 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
9695 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
9696
50cca7bb
MK
96972004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9698
9699 Committed by Mark Kettenis <kettenis@gnu.org>.
9700
9701 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
9702 Define.
9703
226361c4
AC
97042004-02-18 Andrew Cagney <cagney@redhat.com>
9705
9706 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
9707 CONFIG_INSTALL and CONFIG_UNINSTALL.
9708 * configure: Re-generate.
9709 * interps.h (INTERP_TUI): Define.
9710 * Makefile.in: Update dependencies.
9711 (TUI): New macro.
9712 (tui-main.o): Specify dependencies.
9713 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
9714 * tui/tui-main.c: New file.
9715
49cfa46f
MK
97162004-02-18 Mark Kettenis <kettenis@gnu.org>
9717
e2879ccb
MK
9718 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
9719 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
9720 dependencies.
9721 * configure.host: Add x86_64-*-openbsd*.
9722 * configure.tgt: Add x86_64-*-openbsd*.
9723 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
9724
c43f4bec
MK
9725 * tui/tui.c: Don't include <malloc.h>.
9726
09ae75b6
MK
9727 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
9728 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
9729 amd64nbsd-tdep.c.
9730
49cfa46f 9731 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 9732 static. Remove extraneous whitespace.
49cfa46f
MK
9733 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
9734 static.
9735
05957fdb
JB
97362004-02-17 Jim Blandy <jimb@redhat.com>
9737
9738 * findvar.c (value_from_register): Doc fix.
9739
d0f54f9d
JB
97402004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9741
9742 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 9743
8a1dac83 9744 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
9745 CORE_ADDR as type for selectors. Correct types for GNU run time
9746 message lookup function to use double indirection.
9747 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
9748 * objc-lang.h (lookup_child_selector): Adapt prototype.
9749
9cbd5950
JB
9750 * s390-nat.c (SUBOFF): New macro.
9751 (supply_gregset, fill_gregset): Use it to handle debugging
9752 of 32-bit exectuables running under a 64-bit kernel.
9753 * s390-tdep.c: Include "solib-svr4.h".
9754 (s390_svr4_fetch_link_map_offset): New function.
9755 (s390x_svr_fetch_link_map_offset): Likewise.
9756 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
9757 * Makefile.in (s390-tdep.o): Update dependencies.
9758
a8c99f38
JB
9759 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
9760 "frame-unwind.h".
9761 (s390_readinstruction): Reformat. Use read_memory_nobpt.
9762 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
9763 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
9764 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
9765 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
9766 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 9767 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
9768 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
9769 (struct frame_extra_info): Remove.
9770 (s390_memset_extra_info): Remove.
f73b1eff
JB
9771 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
9772 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
9773 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
9774 (is_rse): Renamed to ...
9775 (is_rsy): ... this. Support long displacements.
9776 (is_rxe): Renamed to ...
9777 (is_rxy): ... this. Support long displacements.
9778 (compute_x_addr): Support long displacements.
9779 (struct s390_prologue_data): New data type.
9780 (s390_on_stack): Change API to use struct s390_prologue_data.
9781 (s390_store): Reimplement.
9782 (s390_load): New function.
9783 (s390_get_signal_frame_info): Remove.
9784 (s390_get_frame_info): Remove, replace by ...
9785 (s390_analyze_prolog): ... this new function.
9786 (s390_check_function_end): Remove.
9787 (s390_function_start): Remove.
9788 (s390_frameless_function_invokation): Remove.
9789 (s390_is_sigreturn): Remove.
9790 (s390_init_frame_pc_first): Remove.
9791 (s390_init_frame_extra_info): Remove.
9792 (s390_frame_init_saved_regs): Remove.
9793 (s390_frame_saved_pc_nofix): Remove.
9794 (s390_frame_saved_pc): Remove.
9795 (s390_frame_chain): Remove.
9796 (s390_fp_regnum, s390_read_fp): Remove.
9797 (s390_pop_frame_regular, s390_pop_frame): Remove.
9798 (s390_saved_pc_after_call): Remove.
9799 (s390_skip_prologue): Reimplement.
9800 (s390_in_function_epilogue_p): Support long displacements.
9801 (struct s390_unwind_cache): New data structure.
9802 (s390_frame_unwind_cache): New function.
9803 (s390_prologue_frame_unwind_cache): Likewise.
9804 (s390_backchain_frame_unwind_cache): Likewise.
9805 (s390_frame_this_id, s390_frame_prev_register): Likewise.
9806 (s390_frame_unwind): Define.
9807 (s390_frame_sniffer): New function.
9808 (struct s390_pltstub_unwind_cache): New data structure.
9809 (s390_pltstub_frame_unwind_cache): New function.
9810 (s390_pltstub_frame_this_id): Likewise.
9811 (s390_pltstub_frame_prev_register): Likewise.
9812 (s390_pltstub_frame_unwind): Define.
9813 (s390_pltstub_frame_sniffer): New function.
9814 (struct s390_sigtramp_unwind_cache): New data structure.
9815 (s390_sigtramp_frame_unwind_cache): New function.
9816 (s390_sigtramp_frame_this_id): Likewise.
9817 (s390_sigtramp_frame_prev_register): Likewise.
9818 (s390_sigtramp_frame_unwind): Define.
9819 (s390_sigtramp_frame_sniffer): New function.
9820 (s390_frame_base_address, s390_local_base_address): New functions.
9821 (s390_frame_base): Define.
9822 (s390_unwind_pc, s390_unwind_sp): New function.
9823 (s390_push_dummy_call): Use new frame base location.
9824 (s390_unwind_dummy_id): Likewise.
9825 (s390_gdbarch_init): Remove calls to:
9826 set_gdbarch_frameless_function_invocation,
9827 set_gdbarch_deprecated_init_frame_pc,
9828 set_gdbarch_deprecated_frame_chain,
9829 set_gdbarch_deprecated_frame_init_saved_regs,
9830 set_gdbarch_deprecated_pop_frame,
9831 set_gdbarch_deprecated_init_extra_frame_info,
9832 set_gdbarch_deprecated_init_frame_pc_first,
9833 set_gdbarch_deprecated_target_read_fp,
9834 set_gdbarch_deprecated_frame_saved_pc,
9835 set_gdbarch_deprecated_saved_pc_after_call,
9836 set_gdbarch_deprecated_fp_regnum.
9837 Add calls to:
9838 set_gdbarch_in_solib_call_trampoline,
9839 frame_unwind_append_sniffer,
9840 frame_base_set_default,
9841 set_gdbarch_unwind_pc,
9842 set_gdbarch_unwind_sp.
9843 * Makefile.in (s390-tdep.o): Update dependencies.
9844
b0cf273e
JB
9845 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
9846 (S390_STACK_FRAME_OVERHEAD): Remove.
9847 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
9848 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
9849 (s390_promote_integer_argument): Remove.
9850 (s390_cannot_extract_struct_value_address): Remove.
9851 (s390_use_struct_convention, s390_store_struct_return): Remove.
9852 (s390_extract_return_value, s390_store_return_value): Remove.
9853 (s390_return_value_convention, s390_return_value): New functions.
9854 (is_float_singleton): Handle typedefs.
8a1dac83 9855 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
9856 Remove, replace by ...
9857 (s390_function_arg_pass_by_reference, s390_function_arg_float,
9858 s390_function_arg_integer): ... these new functions.
9859 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
9860 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
9861 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
9862 Fill in tdep->abi.
9863 Remove calls to:
9864 set_gdbarch_deprecated_store_struct_return,
9865 set_gdbarch_deprecated_extract_return_value,
9866 set_gdbarch_deprecated_store_return_value,
9867 set_gdbarch_use_struct_convention,
9868 set_gdbarch_extract_struct_value_address,
9869 set_gdbarch_deprecated_pc_in_call_dummy,
9870 set_gdbarch_deprecated_push_arguments,
9871 set_gdbarch_deprecated_save_dummy_frame_tos,
9872 set_gdbarch_deprecated_push_return_address,
9873 set_gdbarch_deprecated_sizeof_call_dummy_words,
9874 set_gdbarch_deprecated_call_dummy_words,
9875 set_gdbarch_deprecated_dummy_write_sp.
9876 Add calls to:
9877 set_gdbarch_push_dummy_call,
9878 set_gdbarch_unwind_dummy_id,
9879 set_gdbarch_return_value.
8a1dac83 9880
e1457d83
JB
9881 * config/s390/nm-linux.h: Update comments.
9882 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
9883 (STOPPED_BY_WATCHPOINT): Redefine.
9884 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
9885 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
9886 (s390_stopped_by_watchpoint): Likewise.
9887 (watch_area_cnt): Remove.
9888 * s390-nat.c: Update comments.
9889 (watch_area): Remove typedef.
9890 Global replace watch_area by struct watch_area.
9891 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 9892 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
9893 use s390_inferior_tid. Add short-cut for the no watchpoint case.
9894 (s390_fix_watch_points): Remove pid argument,
9895 use s390_inferior_tid. Recompute area spanned by watchpoints.
9896 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
9897 argument. Reimplement.
9898
d0f54f9d
JB
9899 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
9900 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
9901 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 9902 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
9903 core-regset.o.
9904 * config/s390/s390x.mt: Remove.
9905 * config/s390/tm-s390.h: Remove.
9906 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
9907 (TARGET_ELF64): Remove.
9908 (SKIP_TRAMPOLINE_CODE): Do not undefine.
9909 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
9910 s390*-*-* case; always set gdb_target to s390.
9911 * regformats/reg-s390.dat: Remove control registers.
9912 * regformats/reg-s390x.dat: Likewise.
9913 * s390-tdep.h: New file.
8a1dac83 9914 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
9915 Include "inferior.h" and "s390-tdep.h".
9916 Remove private definition of offsetof.
9917 (s390_register_u_addr): Remove.
9918 (regmap_gregset, regmap_fpregset): Define.
9919 (supply_gregset, fill_gregset): Reimplement.
9920 (supply_fpregset, fill_fpregset): Likewise.
9921 (s390_inferior_tid): New function.
9922 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
9923 (fetch_inferior_registers, store_inferior_registers): Likewise.
9924 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
9925 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
9926 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
9927 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
9928 (struct gdbarch_tdep): Define.
9929 (struct s390_register_info): Define.
9930 (s390_register_info): New variable.
9931 (s390_register_name): Reimplement.
9932 (s390_register_type): New function.
9933 (s390_register_raw_size, s390x_register_raw_size): Remove.
9934 (s390_cannot_fetch_register): Remove.
9935 (s390_register_byte): Remove.
9936 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
9937 (s390_dwarf_regmap): New variable.
9938 (s390_dwarf_reg_to_regnum): New function.
9939 (s390_stab_reg_to_regnum): Remove.
9940 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
9941 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
9942 (s390_convert_register_p): Likewise.
9943 (s390_register_to_value, s390_value_to_register): Likewise.
9944 (s390_register_reggroup_p): Likewise.
9945 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
9946 s390_gregset, s390x_gregset, s390_fpregset): New variables.
9947 (s390_supply_regset, s390_regset_from_core_section): New functions.
9948 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
9949 (S390_FPR_SIZE): Likewise.
9950 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
9951 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
9952 (S390_NUM_GPRS): Move here from tm-s390.h.
9953 (S390_NUM_FPRS): Likewise.
9954 (s390_in_function_epilogue_p): New function.
9955 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
9956 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
9957 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
9958 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
9959 Replace S390_FP_REGNUM by S390_SP_REGNUM.
9960 Remove calls to:
9961 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
9962 set_gdbarch_deprecated_max_register_virtual_size,
9963 set_gdbarch_deprecated_register_byte,
d0f54f9d 9964 set_gdbarch_cannot_fetch_register,
8a1dac83 9965 set_gdbarch_cannot_store_register,
d0f54f9d
JB
9966 set_gdbarch_deprecated_register_size,
9967 set_gdbarch_deprecated_register_raw_size,
9968 set_gdbarch_deprecated_register_virtual_size,
9969 set_gdbarch_deprecated_register_virtual_type,
9970 set_gdbarch_deprecated_register_bytes.
9971 Add calls to:
9972 set_gdbarch_num_pseudo_regs,
9973 set_gdbarch_register_type,
9974 set_gdbarch_convert_register_p,
9975 set_gdbarch_register_to_value,
9976 set_gdbarch_value_to_register,
9977 set_gdbarch_register_reggroup_p,
9978 set_gdbarch_regset_from_core_section,
9979 set_gdbarch_pseudo_register_read,
9980 set_gdbarch_pseudo_register_write,
9981 set_gdbarch_in_function_epilogue_p.
9982 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
9983 (s390_tdep_h): New variable.
9984
8cfe231d
JB
99852004-02-17 Jim Blandy <jimb@redhat.com>
9986
4589a601
JB
9987 * findvar.c (value_from_register): If the type has no length, just
9988 return an acceptable value --- don't report an internal error.
9989
8cfe231d
JB
9990 * stabsread.c (read_type): If we find any type numbers that are
9991 forward references, complain if the references aren't resolved by
9992 the time we're finished reading.
9993 (cleanup_undefined_types): Make error message more appropriate for
9994 a complaint.
9995
5bf0017e
EZ
99962004-02-17 Elena Zannoni <ezannoni@redhat.com>
9997
9d62932d
EZ
9998 * Makefile.in (defs_h): Remove dependency on progress_h.
9999 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
10000 progress.h.
10001 * main.c (captured_main): Delete use of START_PROGRESS and
10002 END_PROGRESS.
10003
100042004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 10005
5bf0017e
EZ
10006 * objfiles.c (terminate_minimal_symbol_table): Add back
10007 initialization of MSYMBOL_TYPE.
10008
9fc9f5e2
AC
100092004-02-17 David Mosberger <davidm@hpl.hp.com>
10010
10011 Committed by Andrew Cagney.
10012 * Makefile.in (ia64_tdep_h): New macro.
10013 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
10014 (ia64-tdep.o): Likewise.
10015 * ia64-tdep.h: New file.
10016 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
10017 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
10018 (ia64_aix_sigcontext_register_address): Likewise.
10019 (ia64_linux_getunwind_table): Delete declaration.
10020 * ia64-linux-tdep.c: Likewise.
10021
76cd2bd9
CV
100222004-02-17 Corinna Vinschen <vinschen@redhat.com>
10023
10024 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
10025 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
10026 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
10027
634aa483
AC
100282004-02-17 Andrew Cagney <cagney@redhat.com>
10029
10030 * symtab.c (skip_prologue_using_sal): New function.
10031 * symtab.h (skip_prologue_using_sal): Declare.
10032 * frv-tdep.c: Include "symtab.h".
10033 (skip_prologue_using_sal): Delete function.
10034 * mips-tdep.c (skip_prologue_using_sal): Delete function.
10035 * rs6000-tdep.c (refine_prologue_limit): Mention
10036 skip_prologue_using_sal.
10037 * ia64-tdep.c (refine_prologue_limit): Ditto.
10038 * Makefile.in: Update dependencies.
10039
100402004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 10041
39ce7b3f
AC
10042 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
10043 START_INFERIOR_TRAPS_EXPECTED.
10044 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
10045 START_INFERIOR_TRAPS_EXPECTED.
10046 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
10047 Delete macro.
10048 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
10049 macro, moved to "nm-osf.h". Update copyright.
10050 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
10051 update copyright.
10052
19772a2c
AC
10053 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
10054 and function replacing FRAMELESS_FUNCTION_INVOCATION.
10055 * blockframe.c (legacy_frameless_look_for_prologue): Rename
10056 frameless_look_for_prologue.
10057 * frame.h (legacy_frameless_look_for_prologue): Rename
10058 frameless_look_for_prologue.
10059 * gdbarch.h, gdbarch.c: Re-generate.
10060 * sh64-tdep.c (sh64_gdbarch_init): Update.
10061 * sh-tdep.c (sh_gdbarch_init): Update.
10062 * s390-tdep.c (s390_gdbarch_init): Update.
10063 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10064 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10065 * m68k-tdep.c (m68k_gdbarch_init): Update.
10066 (delta68_frame_args_address): Update.
10067 * m32r-tdep.c (m32r_gdbarch_init): Update.
10068 * hppa-tdep.c (hppa_gdbarch_init): Update.
10069 * h8300-tdep.c (h8300_gdbarch_init): Update.
10070 * frv-tdep.c (frv_gdbarch_init): Update.
10071 (frv_frameless_function_invocation): Update.
10072 * cris-tdep.c (cris_gdbarch_init): Update.
10073 (cris_frameless_function_invocation): Update.
10074 * avr-tdep.c (avr_gdbarch_init): Update.
10075 * arm-tdep.c (arm_gdbarch_init): Update.
10076 * stack.c (frame_info): Update, call predicate.
10077 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
10078 * frame.c (legacy_get_prev_frame): Update, call predicate..
10079 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
10080 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
10081 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
10082 invocation.
10083 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10084 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10085 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
10086
10087 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
10088 function.
10089
7dcaac91
DJ
100902004-02-16 Daniel Jacobowitz <drow@mvista.com>
10091
10092 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
10093 initializations.
10094
88289b6e
AC
100952004-02-16 Andrew Cagney <cagney@redhat.com>
10096
10097 * tui/tui-windata.c: Include "gdb_string.h".
10098 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
10099 * tui/tui-layout.c, tui/tui-command.c: Ditto.
10100 * Makefile.in: Update dependencies.
10101
9f976b41
DJ
101022004-02-16 Daniel Jacobowitz <drow@mvista.com>
10103
10104 * Makefile.in (infrun.o): Add $(gdb_assert_h).
10105 * infrun.c: Include "gdb_assert.h".
10106 (singlestep_ptid, saved_singlestep_ptid)
10107 (stepping_past_singlestep_breakpoint): New variables.
10108 (resume): Set singlestep_ptid. Check for singlestep thread
10109 hop.
10110 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
10111 (handle_inferior_event): Handle singlestep thread hop.
10112
c324d747
AC
101132004-02-16 Andrew Cagney <cagney@redhat.com>
10114
f090b9b1
AC
10115 * dwarf2-frame.c (dwarf2_frame_ops): New function.
10116 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
10117 (dwarf2_frame_init_reg): Ditto.
10118
fd33e6cb
AC
10119 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
10120 suggested by Joshua Neuheisel
10121
c324d747
AC
10122 * configure.in: Always check for curses, including pdcurses.
10123 Warn, instead of error, when no curses are found. Enable TUI when
10124 curses is available.
10125 * configure: Re-generate.
10126
b66ba949
CV
101272004-02-16 Corinna Vinschen <vinschen@redhat.com>
10128
10129 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
10130 sh_sh4_register_convert_to_virtual.
10131 (sh_register_convert_to_raw): Rename from
10132 sh_sh4_register_convert_to_raw.
10133 (sh_pseudo_register_read): Accomodate above name change.
10134 (sh_pseudo_register_write): Ditto.
10135
b58cbbf2
CV
101362004-02-16 Corinna Vinschen <vinschen@redhat.com>
10137
10138 * sh-tdep.c (sh_generic_register_name): Remove.
10139 (sh_gdbarch_init): Use sh_sh_register_name in default case.
10140
5929a910
AC
101412004-02-15 Andrew Cagney <cagney@redhat.com>
10142
4566dfcf
AC
10143 * configure.in (build_warnings): Add -Wunused-function.
10144 * configure: Re-generate.
10145
db11ed55
AC
10146 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
10147 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
10148
46ac7a5d
AC
10149 * procfs.c (procfs_init_inferior): Assume that
10150 START_INFERIOR_TRAPS_EXPECTED is defined.
10151 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
10152 * config/ns32k/tm-nbsd.h: Delete file,
10153 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
10154
ba801595
AC
10155 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
10156 * config/vax/tm-vax.h: Delete file.
10157
5929a910
AC
10158 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10159 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10160 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10161 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10162 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
10163 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10164 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
10165
8f22cb90
MK
101662004-02-15 Mark Kettenis <kettenis@gnu.org>
10167
10168 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
10169 * dwarf2-frame.c (dwarf2_frame_data): New variable.
10170 (struct dwarf2_frame_ops): New.
10171 (dwarf2_frame_default_init_reg): New function, based on
10172 dwarf2_frame_init_reg.
10173 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
10174 (dwarf2_frame_init_reg): Call architecture-specific function.
10175 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
10176 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
10177 instead of dwarf2_frame_data.
10178 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
10179 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
10180
8132723e
AC
101812004-02-15 Andrew Cagney <cagney@redhat.com>
10182
046a4708
AC
10183 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
10184 register_gdbarch_swap.
10185 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
10186 * f-lang.c (_initialize_f_language): Update, use
10187 DEPRECATED_REGISTER_GDBARCH_SWAP.
10188 * remote.c (_initialize_remote): Ditto.
10189 * regcache.c (_initialize_regcache): Ditto.
10190 * parse.c (_initialize_parse): Ditto.
10191 * infrun.c (_initialize_infrun): Ditto.
10192 * mi/mi-main.c (_initialize_mi_main): Ditto.
10193 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 10194
549c1eea
AC
10195 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
10196 poking .cacheable directly.
10197 * symfile.c (symfile_bfd_open): Ditto.
10198
0c0b39de
AC
10199 * Makefile.in: Update all dependencies.
10200
8132723e
AC
10201 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
10202 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
10203 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
10204 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
10205 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 10206
b9d26eb9
AC
102072004-02-14 Andrew Cagney <cagney@redhat.com>
10208
8e1f669a
AC
10209 * arch-utils.c (legacy_convert_register_p): Check
10210 DEPRECATED_REGISTER_CONVERTIBLE_P.
10211 * findvar.c (value_of_register): Ditto.
10212
cd0bfa36
AC
10213 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
10214 * gdbarch.h, gdbarch.c: Re-generate.
10215 * arch-utils.c (deprecated_register_convertible_not): Delete.
10216 * arch-utils.h (deprecated_register_convertible_not): Delete.
10217 * mi/mi-main.c (get_register): Update. Update copyright.
10218 * infcmd.c (default_print_registers_info): Update.
10219
b9d26eb9
AC
10220 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10221 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
10222 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 10223 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
10224 * frame.c (deprecated_get_next_frame_hack): Delete function.
10225 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
10226 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10227 Update.
10228 * infcall.c (call_function_by_hand): Update.
10229
9ab9195f
EZ
102302004-02-14 Elena Zannoni <ezannoni@redhat.com>
10231
10232 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 10233 from here...
9ab9195f
EZ
10234 * objfiles.c (init_entry_point_info, entry_point_address):..to
10235 here.
10236 * symfile.h (init_entry_point_info, entry_point_address): Remove
10237 prototypes.
10238 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 10239 prototypes.
9ab9195f
EZ
10240 * cris-tdep.c: Remove include of symfile.h. Add include of
10241 objfiles.h.
10242 * infcall.c: Ditto.
10243 * mcore-tdep.c: Ditto.
10244 * mn10300-tdep.c: Ditto.
10245 * sh64-tdep.c: Ditto.
10246 * v850-tdep.c: Ditto.
10247 * arm-tdep.c: Remove include of symfile.h.
10248 * blockframe.c: Ditto.
10249 * coffread.c: Ditto.
10250 * dbxread.c: Ditto.
10251 * dwarf2read.c: Ditto.
10252 * dwarfread.c: Ditto.
8a1dac83 10253 * frv-tdep.c: Ditto.
9ab9195f
EZ
10254 * ia64-tdep.c: Ditto.
10255 * mdebugread.c: Ditto.
10256 * mipsread.c: Ditto.
8a1dac83 10257 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
10258 * s390-tdep.c: Ditto.
10259 * sh-tdep.c: Ditto.
8a1dac83 10260 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
10261 * gdbarch.sh: Remove include of symfile.h.
10262 * gdbarch.c: Regenerate.
10263 * solib-irix.c (enable_break): Use entry_point_address().
10264 Add comment about include file.
10265 * xcoffread.c: Add comment about include file.
8a1dac83
RM
10266 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
10267 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
10268 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
10269 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
10270 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
10271
c4c5b7ba
AC
102722004-02-13 Andrew Cagney <cagney@redhat.com>
10273
10274 * corelow.c (core_xfer_partial): Use "struct bfd_section".
10275 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
10276 copyright.
10277 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
10278
3e7879de
FF
102792004-02-12 Fred Fish <fnf@redhat.com>
10280
10281 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
10282 set_gdbarch_store_return_value.
10283
6a7760b6
AC
102842004-02-12 Andrew Cagney <cagney@redhat.com>
10285
10286 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
10287 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
10288 (interrupt_query): Ditto.
10289 (ofunc): Delete unused variable.
10290 * cris-tdep.c (cris_abi): Delete unused function.
10291 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
10292 (cris_get_wide_opcode, cris_get_short_size): Ditto.
10293 (cris_get_asr_quick_shift_steps): Ditto.
10294 (cris_skip_prologue_frameless_p): Ditto.
10295 * arm-tdep.c (arm_push_return_address): Delete unused function.
10296 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
10297 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
10298 * s390-tdep.c (s390_function_start): Delete unused function.
10299
31687c3c
AC
103002004-02-12 Andrew Cagney <cagney@redhat.com>
10301
10302 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
10303 gdbarch.h, gdbarch.c: Re-generate.
10304 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
10305 to generic_prologue_frameless_p.
10306 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
10307 * arch-utils.c (generic_prologue_frameless_p): Delete function.
10308
6de918a6
DJ
103092004-02-11 Daniel Jacobowitz <drow@mvista.com>
10310
10311 * mips-linux-tdep.c: Include "frame.h".
10312 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
10313 (mips_linux_skip_resolver): New functions.
10314 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
10315 and set_gdbarch_in_solib_call_trampoline.
10316 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
10317 to after set_gdbarch_in_solib_return_trampoline. Only set the
10318 solib hooks to mips16 functions if the OS ABI is unknown.
10319 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
10320 including "config/tm-linux.h".
10321 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
10322 * Makefile.in (mips-linux-tdep.o): Update.
10323
87b3ede8
DC
103242004-02-11 David Carlton <carlton@kealia.com>
10325
10326 * linespec.c (decode_compound): Only look for a class symbol when
10327 considering all but the rightmost component.
10328
5979bc46
AC
103292004-02-11 Andrew Cagney <cagney@redhat.com>
10330
10331 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
10332 abi code are are separatly grouped.
10333
5867a2fb
AC
103342004-02-11 Andrew Cagney <cagney@redhat.com>
10335
10336 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
10337 * gdbarch.h, gdbarch.c: Re-generate.
10338 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10339 * v850-tdep.c (v850_gdbarch_init): Update.
10340 * sh64-tdep.c (sh64_gdbarch_init): Update.
10341 * sh-tdep.c (sh_gdbarch_init): Update.
10342 * s390-tdep.c (s390_gdbarch_init): Update.
10343 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10344 * mips-tdep.c (mips_gdbarch_init): Update.
10345 * mcore-tdep.c (mcore_gdbarch_init): Update.
10346 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10347 * m32r-tdep.c (m32r_gdbarch_init): Update.
10348 * ia64-tdep.c (ia64_gdbarch_init): Update.
10349 * hppa-tdep.c (hppa_gdbarch_init): Update.
10350 * h8300-tdep.c (h8300_gdbarch_init): Update.
10351 * frv-tdep.c (frv_gdbarch_init): Update.
10352 * d10v-tdep.c (d10v_gdbarch_init): Update.
10353 * cris-tdep.c (cris_gdbarch_init): Update.
10354 * avr-tdep.c (avr_gdbarch_init): Update.
10355 * arm-tdep.c (arm_gdbarch_init): Update.
10356 * alpha-tdep.c (alpha_gdbarch_init): Update.
10357
026a72f8
CV
103582004-02-11 Corinna Vinschen <vinschen@redhat.com>
10359
10360 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
10361 comma.
10362 (sh_sh4al_dsp_register_name): Ditto.
10363
3903d437
AC
103642004-02-10 Andrew Cagney <cagney@redhat.com>
10365
10366 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
10367 (mips_init_frame_pc_first): Delete function.
10368 (mips_frame_saved_pc): Delete function.
10369 (mips_frame_chain): Delete function.
10370 (mips_init_extra_frame_info): Delete function.
10371 (mips_xfer_register): Delete unused variable "reg".
10372 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
10373 (mips_n32n64_return_value): Delete unused variable "reg".
10374 (mips_n32n64_return_value): Delete unused variable "pos".
10375 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
10376 (mips_o32_return_value): Delete unused variable "pos".
10377 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
10378 (mips_print_fp_register): Delete unused variable "namelen"
10379 (mips_print_fp_register): Delete unused variable "flt2"
10380 (get_frame_pointer): Delete function.
10381 (cached_proc_desc): Delete static variable.
10382 (mips_pop_frame): Delete function.
10383 (mips_find_saved_regs): Delete function.
10384 (mips_get_saved_register): Delete function.
10385 (mips_saved_pc_after_call): Delete function.
10386 (SIGFRAME_BASE): Delete macro.
10387 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
10388 (SIGFRAME_PC_OFF): Delete macro.
10389 (SIGFRAME_REGSAVE_OFF): Delete macro.
10390 (mips_dump_tdep): Do not print deleted macro definitions.
10391
b9fb98bd
AC
103922004-02-10 Andrew Cagney <cagney@redhat.com>
10393
10394 * Makefile.in (SFILES): Remove explictly listed tui files.
10395 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
10396
78ced177 103972004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 10398
78ced177
JJ
10399 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
10400 to use paddr functions to format ia64 addresses and long values.
10401 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
10402 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
10403 (get_kernel_table, ia64_find_proc_info_x): Ditto.
10404 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
10405 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
10406
6a83354a
AC
104072004-02-10 Andrew Cagney <cagney@redhat.com>
10408
10409 * defs.h: Do not include "tui.h".
10410 * gdb_curses.h: New file.
10411 * tui/tui-hooks.h: New file.
10412 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
10413 (tui_install_hooks, tui_remove_hooks): Delete declarations.
10414 (tui_initialize_io): Delete declaration.
10415 (tui_initialize_readline: Delete redundant declaration.
10416 (struct tui_point): Delete definition.
10417 * tui/tui-data.h (struct tui_point): Define.
10418 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
10419 * utils.c: Include "tui/tui.h".
10420 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
10421 * printcmd.c [TUI]: Include "tui/tui.h".
10422 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
10423 * tui/tui-command.c: Include "gdb_curses.h".
10424 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
10425 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
10426 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
10427 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
10428 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
10429 * Makefile.in: Update all dependencies.
10430 (tui_hooks_h, gdb_curses_h): Define.
10431 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
10432
997470ef
EZ
104332004-02-10 Elena Zannoni <ezannoni@redhat.com>
10434
10435 * objfiles.h (struct objfile): Remove unused fields auxf1 and
10436 auxf2. Add comments about some other rarely used fields.
10437
4ff2cc4d
AC
104382004-02-10 Andrew Cagney <cagney@redhat.com>
10439
10440 * Makefile.in (init.c): Fix script removing duplicates. Problem
10441 reported by Peter Schauer.
10442
1ab21617
EZ
104432004-02-09 Elena Zannoni <ezannoni@redhat.com>
10444
10445 * bcache.c (bcache_xmalloc): Use obstack_init instead of
10446 obstack_specify_allocation.
10447 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 10448 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
10449 (allocate_rt_common_objfile): Ditto.
10450 * symfile.c (reread_symbols): Ditto.
10451 * gdb_obstack.h: Add comment.
10452
17763fd9
EZ
104532004-02-09 Elena Zannoni <ezannoni@redhat.com>
10454
10455 * linespec.c (decode_line_1, locate_first_half)
10456 (decode_compound, lookup_prefix_sym): Update comments. Delete old
10457 commented out code.
10458
ec5cdd75
DJ
104592004-02-09 Daniel Jacobowitz <drow@mvista.com>
10460
10461 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
10462 obstack_free.
10463
43b54b88
AC
104642004-02-09 Andrew Cagney <cagney@redhat.com>
10465
10466 * blockframe.c (find_pc_partial_function): If find_pc_overlay
10467 fails, try find_pc_section. Fix PR c++/1267.
10468 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
10469 instead of find_pc_mapped_section.
10470 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
10471 not default to the section containing PC. Fix PR symtab/1519.
10472
edfae063
AC
104732004-02-09 Andrew Cagney <cagney@redhat.com>
10474
10475 * Makefile.in (mips-tdep.o): Update dependencies.
10476 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
10477 "trad-frame.h".
10478 (mips_unwind_pc): Return the pseudo PC register.
10479 (mips_unwind_dummy_id): New function.
10480 (mips16_fetch_instruction): New function.
10481 (mips32_fetch_instruction): New function.
10482 (struct mips_frame_cache): Define.
10483 (mips_mdebug_frame_cache): New function.
10484 (mips_mdebug_frame_this_id): New function.
10485 (mips_mdebug_frame_prev_register): New function.
10486 (mips_mdebug_frame_unwind): Define.
10487 (mips_mdebug_frame_sniffer): New function.
10488 (mips_mdebug_frame_base_address): New function.
10489 (mips_mdebug_frame_base): Define.
10490 (mips_mdebug_frame_base_sniffer): New function.
10491 (mips_gdbarch_init): Append unwind and base sniffers. Set
10492 unwind_dummy_id.
10493
defc864c
AC
104942004-02-08 Andrew Cagney <cagney@redhat.com>
10495
6764ddad
AC
10496 * frame.c: Print both the register number and name.
10497
defc864c
AC
10498 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
10499 and a sed into a single sed. Make .c and .o patterns more robust.
10500 (OBS): Delete.
10501 (INIT_FILES): Replace OBS with COMMON_OBS.
10502 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
10503
645d6d10
MK
105042004-02-08 Mark Kettenis <kettenis@gnu.org>
10505
10506 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
10507 the PT_WCOOKIE request.
10508
23e3c3fc
AC
105092004-02-08 Andrew Cagney <cagney@redhat.com>
10510
58dfe9ff
AC
10511 * mips-tdep.c (mips_unwind_pc): New function.
10512 (mips_gdbarch_init): Set mips_unwind_pc.
10513
1152e35e
AC
10514 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
10515 (get_frame_id): Allow the UNKNOWN_FRAME.
10516 (frame_register_unwind, get_frame_type): Ditto.
10517
31b75dbf
AC
10518 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
10519 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
10520 unwind_dummy_id indicates a legacy frame.
10521
3483b318
AC
10522 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
10523 * configure: Re-generate.
10524
23e3c3fc
AC
10525 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
10526 methods.
10527
33f8ca73
AC
105282004-02-08 Andrew Cagney <cagney@redhat.com>
10529
10530 * configure.in (CONFIG_ALL): Set to Makefile target, and not
10531 makefile macro.
10532 * configure: Re-generate.
10533 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
10534 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
10535 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
10536 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
10537 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
10538 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
10539 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
10540 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
10541 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
10542 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
10543
6ba8e26f 105442004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 10545
20d286a5
AC
10546 * Makefile.in: Update all dependencies.
10547
d836ee13
AC
10548 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
10549 * configure: Re-generate.
10550 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
10551 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
10552 (COMMON_OBS): Add "main.o" and "annotate.o".
10553 (ANNOTATE_OBS): Delete.
10554 (OBS): Remove ANNOTATE_OBS.
10555 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
10556 CONFIG_INITS.
10557 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
10558 against CONFIG_OBS and "main.o".
10559 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
10560 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
10561
d02c80cd
AC
10562 * tui/tui-command.c: Include "gdb_string.h", delete register
10563 attribute, use ISO-C function signatures.
10564 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
10565 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10566 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
10567 * tui/tui.c: Ditto.
6ba8e26f
AC
10568
10569 * tui/tui-command.c: Change variable and function names to lower
10570 case.
10571 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
10572 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
10573 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
10574 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10575 * tui/tui-winsource.c, tui/tui.c: Ditto.
10576
4a146b47
EZ
105772004-02-07 Elena Zannoni <ezannoni@redhat.com>
10578
10579 * buildsym.c (free_pending_blocks, finish_block)
10580 (record_pending_block, make_blockvector, end_symtab): Replace
10581 symbol_obstack with objfile_obstack.
8a1dac83 10582 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 10583 (coff_read_enum_type): Ditto.
8a1dac83 10584 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 10585 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 10586 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
10587 (dwarf2_symbol_mark_computed): Ditto.
10588 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
10589 * elfread.c (elf_symtab_read): Ditto.
10590 * hpread.c (hpread_symfile_init, hpread_symfile_init)
10591 (hpread_read_enum_type, hpread_read_function_type)
10592 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
10593 Ditto.
8a1dac83 10594 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 10595 (java_link_class_type): Ditto.
8a1dac83 10596 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
10597 (new_symbol): Ditto.
10598 * minsyms.c (install_minimal_symbols): Ditto.
10599 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
10600 (terminate_minimal_symbol_table): Replace symbol_obstack with
10601 objfile_obstack.
10602 (free_objfile): Remove freeing of symbol_obstack.
10603 * objfiles.h: Remove symbol_obstack field.
10604 * pa64solib.c (add_to_solist): Replace symbol_obstack with
10605 objfile_obstack.
10606 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10607 symbol_obstack.
10608 (solib_add_common_symbols): Replace symbol_obstack with
10609 objfile_obstack.
10610 * somsolib.c (som_solib_add): Ditto.
10611 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10612 (common_block_start, common_block_end): Ditto.
10613 * symfile.c (reread_symbols): Remove freeing and init of
10614 symbol_obstack.
10615 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
10616 * symfile.h: Update comment.
10617 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
10618 stats printing.
10619 * symtab.c (symbol_set_names): Replace symbol_obstack with
10620 objfile_obstack.
10621 * symtab.h (struct general_symbol_info, struct minimal_symbol):
10622 Update comments.
10623 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
10624 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
10625 objfile_obstack.
10626
6d012f14
AC
106272004-02-07 Andrew Cagney <cagney@redhat.com>
10628
10629 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
10630 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
10631 fields and variables.
10632 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
10633 (m_beInvisible): Delete macro.
10634 * tui/tui-data.h: Fix case case fields and variables.
10635 (m_genWinPtrIsNull): Delete macro.
10636 (tui_win_list): Rename winList.
10637 (TUI_SRC_WIN): Rename srcWin.
10638 (TUI_DISASM_WIN): Rename disassemWin.
10639 (TUI_DATA_WIN): Rename dataWin.
10640 (TUI_CMD_WIN): Rename cmdWin.
10641 (m_genWinPtrNotNull): Delete macro.
10642 (m_winPtrIsNull): Delete macro.
10643 (m_winPtrNotNull): Delete macro.
10644 (tui_win_is_source_type): Replace m_winIsSourceType
10645 (tui_win_is_auxillary): Replace m_winIsAuzillary.
10646 (tui_win_has_locator): Replace m_hasLocator.
10647 (tui_set_win_highlight): Replace m_setWinHighlightOn and
10648 m_setWinHighlightOff.
10649 * tui/tui-data.c: Update references.
10650 (tui_win_is_source_type, tui_set_win_highlight): New functions.
10651 (tui_win_has_locator, tui_win_is_auxillary): New functions.
10652 * tui/tui-command.c, tui/tui-disasm.c: Update references.
10653 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
10654 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
10655 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10656 * tui/tui-winsource.c, tui/tui.c: Ditto.
10657
7d34766b
MK
106582004-02-07 Mark Kettenis <kettenis@gnu.org>
10659
1c800673
MK
10660 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
10661 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
10662 StackGhost.
10663
7d34766b
MK
10664 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
10665 variable `i6' to `i7'.
10666 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
10667
22940a24
AC
106682004-02-07 Andrew Cagney <cagney@redhat.com>
10669
10670 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
10671 (TuiPoint, TuiPointPtr): Ditto.
10672 (TuiStatus, TuiStatusPtr): Ditto.
10673 (TuiWinType, TuiWinTypePtr): Ditto.
10674 (struct tui_point): Rename _TuiPoint.
10675 (tui_get_low_disassembly_address): Rename
10676 tuiGetLowDisassemblyAddress.
10677 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
10678 (tuiFree): Delete declaration.
10679 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
10680 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
10681 * tui/tui.c (tuiFree): Delete function.
10682 * cli/cli-cmds.c (disassemble_command): Update references.
10683 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
10684 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10685 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
10686 * tui/tui-winsource.c: Ditto.
10687
8b92e4d5
EZ
106882004-02-07 Elena Zannoni <ezannoni@redhat.com>
10689
10690 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
10691 coffstab_build_psymtabs, elfstab_build_psymtabs)
10692 (stabsect_build_psymtabs): Replace psymbol_obstack with
10693 objfile_obstack.
10694 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
10695 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
10696 Ditto.
10697 * dwarfread.c (scan_compilation_units): Ditto.
10698 * elfread.c (elfstab_offset_sections): Ditto.
10699 * hppa-tdep.c (read_unwind_info): Ditto.
10700 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
10701 (hpread_end_psymtab): Ditto.
10702 * mdebugread.c (mdebug_build_psymtabs, add_pending)
10703 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
10704 Ditto.
10705 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 10706 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
10707 (build_objfile_section_table): Ditto.
10708 (allocate_objfile): Remove init of psymbol_obstack.
10709 (free_objfile): Remove freeing of psymbol_obstack.
10710 * objfiles.h (struct objfile): Remove field
10711 psymbol_obstack. Update comments.
10712 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
10713 psymbol_obstack with objfile_obstack.
10714 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10715 psymbol_obstack.
10716 * somread.c (som_symfile_offsets, init_import_symbols)
10717 (init_export_symbols): Replace psymbol_obstack with
10718 objfile_obstack.
10719 * somsolib.c (som_solib_add_solib_objfile): Ditto.
10720 * symfile.c (default_symfile_offsets, syms_from_objfile)
10721 (reread_symbols): Remove freeing and init of psymbol_obstack.
10722 (cashier_psymtab): Update comment.
10723 * symmisc.c (print_objfile_statistics): Don't report stats for
10724 psymbol obstack.
10725 * symtab.h (struct general_symbol_info, struct partial_symtab):
10726 Update comments.
10727 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
10728 (xcoff_symfile_offsets): Replace psymbol_obstack with
10729 objfile_obstack.
10730
b99607ea
EZ
107312004-02-07 Elena Zannoni <ezannoni@redhat.com>
10732
10733 * objfiles.h (struct objfile): Add objfile_obstack field.
10734 Remove type_obstack field.
10735
10736 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
10737 read_structure_scope read_enumeration, new_symbol): Replace
10738 type_obstack with objfile_obstack.
10739 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 10740 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
10741 (lookup_fundamental_type): Ditto.
10742 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
10743 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
10744 (hpread_read_doc_function_type, hpread_read_struct_type)
10745 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 10746 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 10747 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
10748 (java_link_class_type): Ditto.
10749 * mdebugread.c (parse_type): Ditto.
10750 * objfiles.c (allocate_objfile, free_objfile): Ditto.
10751 * solib-sunos.c (solib_add_common_symbols): Ditto.
10752 * stabsread.c (define_symbol, read_type, read_member_functions,
10753 read_cpp_abbrev, read_one_struct_field): Ditto.
10754 * symfile.c (reread_symbols): Ditto.
10755 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 10756
2a8854a7
AC
107572004-02-07 Andrew Cagney <cagney@redhat.com>
10758
10759 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
10760 (tui_exec_info_content): Rename TuiExecInfoContent.
10761 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
10762 (TuiWinInfo, TuiWinInfoPtr): Ditto.
10763 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
10764 (TuiList, TuiListPtr): Ditto.
10765 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
10766 (TuiDataType, TuiDataTypePtr): Ditto.
10767 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
10768 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
10769 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
10770 (TuiSourceElement, TuiSourceElementPtr): Ditto.
10771 (TuiDataElement, TuiDataElementPtr): Ditto.
10772 (TuiWinElement, TuiWinElementPtr): Ditto.
10773 (TuiDataInfo, TuiDataInfoPtr): Ditto.
10774 (TuiCommandElement, TuiCommandElementPtr): Ditto.
10775 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
10776 (TuiWhichElement, TuiWhichElementPtr): Ditto.
10777 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
10778 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
10779 * tui/tui-command.c, tui/tui-data.c: Update references.
10780 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
10781 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
10782 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10783 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 10784
05cbe71a
MK
107852004-02-07 Mark Kettenis <kettenis@gnu.org>
10786
10787 * dwarf2-frame.h: Update copyright.
10788 (enum dwarf2_frame_reg_rule): New.
10789 (struct dwarf2_frame_state_reg): New.
10790 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
10791 * dwarf2-frame.c: Update copyright.
10792 (enum dwarf2_reg_rule): Remove.
10793 (struct dwarf2_frame_state): Remove defenition of `struct
10794 dwarf2_frame_state_reg'.
10795 (read_reg): Call get_frame_arch to get the architecture instead of
10796 using CURRENT_GDBARCH.
10797 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
10798 DWARF2_FRAME_.
10799 (dwarf2_frame_init_reg): New function.
10800 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
10801 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
10802 initialize the register state. Prefix old `enum dwarf2_reg_rule'
10803 tags with DWARF2_FRAME_.
10804 (dwarf2_frame_prev_register): Call get_frame_arch to get the
10805 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
10806 dwarf2_reg_rule' tags with DWARF2_FRAME_.
10807
ec7d9e56
AC
108082004-02-06 Andrew Cagney <cagney@redhat.com>
10809
dd1abb8c
AC
10810 * tui/tui-data.h (struct tui_list): Rename _TuiList.
10811 (enum tui_data_type): Rename _TuiDataType.
10812 (struct tui_layout_def): Rename _TuiLayoutDef.
10813 (struct tui_source_element): Rename _TuiSourceElement.
10814 (struct tui_data_element): Rename _TuiDataElement.
10815 (struct tui_command_element): Rename _TuiCommandElement.
10816 (struct tui_locator_element): Rename _TuiLocatorElement.
10817 (union tui_which_element): Define.
10818 (struct tui_win_element): Rename _TuiWinElement.
10819 (struct tui_data_info): Rename _TuiDataInfo.
10820 (struct tui_source_info): Rename _TuiSourceInfo.
10821 (struct tui_command_info): Rename _TuiCommandInfo.
10822 (tui_initialize_static_data): Rename initializeStaticData.
10823 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
10824 (tui_alloc_win_info): Rename allocWinInfo.
10825 (tui_init_generic_part): Rename initGenericPart.
10826 (tui_init_win_info): Rename initWinInfo.
10827 (tui_alloc_content): Rename allocContent.
10828 (tui_add_content_elements): Rename addContentElements.
10829 (tui_init_content_element): Rename initContentElement.
10830 (tui_free_window): Rename freeWindow.
10831 (tui_free_win_content): Rename freeWinContent.
10832 (tui_free_data_content): Rename freeDataContent.
10833 (tui_free_all_source_wins_content): Rename
10834 freeAllSourceWinsContent.
10835 (tui_del_window): Rename tuiDelWindow.
10836 (tui_del_data_windows): Rename tuiDelDataWindows.
10837 (tui_partial_win_by_name): Rename partialWinByName.
10838 (tui_win_name): Rename winName.
10839 (tui_current_layout): Rename currentLayout.
10840 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
10841 (tui_term_height): Rename termHeight.
10842 (tui_set_term_height_to): Rename setTermHeightTo.
10843 (tui_term_width): Rename termWidth.
10844 (tui_set_term_width_to): Rename setTermWidthTo.
10845 (tui_set_gen_win_origin): Rename setGenWinOrigin.
10846 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
10847 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
10848 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
10849 (tui_source_windows): Rename sourceWindows.
10850 (tui_clear_source_windows): Rename clearSourceWindows.
10851 (tui_clear_source_windows_detail): Rename
10852 clearSourceWindowsDetail.
10853 (tui_clear_win_detail): Rename clearWinDetail.
10854 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
10855 (tui_default_tab_len): Rename tuiDefaultTabLen.
10856 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
10857 (tui_win_with_focus): Rename tuiWinWithFocus.
10858 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
10859 (tui_layout_def): Rename tuiLayoutDef.
10860 (tui_win_resized): Rename tuiWinResized.
10861 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
10862 (tui_next_win): Rename tuiNextWin.
10863 (tui_prev_win): Rename tuiPrevWin.
10864 (tui_add_to_source_windows): Rename addToSourceWindows.
10865 * tui/tui-winsource.c, tui/tui-win.c: Update references.
10866 * tui/tui-layout.c, tui/tui-source.c: Ditto.
10867 * tui/tui-stack.c, tui/tui-io.c: Ditto.
10868 * tui/tui.c, tui/tui-data.c: Ditto.
10869 * tui/tui-interp.c, tui/tui-data.c: Ditto.
10870 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
10871
a358af15
AC
10872 * tui/tui-source.h: Update copyright. Include "tui-data.h".
10873 (struct symtab): Declare.
10874 (tui_set_source_content): Rename tuiSetSourceContent.
10875 (tui_show_symtab_source): Rename tuiShowSource.
10876 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
10877 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
10878 * tui/tui-source.c: Update copyright. Update references.
10879 * tui/tui-win.c, tui/tui-winsource.c: Update references.
10880 * tui/tui-stack.c: Update references.
10881
a21fcd8f
AC
10882 * tui/tui-win.h: Update copyright. Include "tui-data.h".
10883 (struct tui_win_info): Declare.
10884 (tui_scroll_forward): Rename tuiScrollForward.
10885 (tui_scroll_backward): Rename tuiScrollBackward.
10886 (tui_scroll_left): Rename tuiScrollLeft.
10887 (tui_scroll_right): Rename tuiScrollRight.
10888 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
10889 (tui_resize_all): Rename tuiResizeAll.
10890 (tui_refresh_all_win): Rename tuiRefreshAll.
10891 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
10892 * tui/tui-layout.c, * tui/tui-io.c: Update references.
10893 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
10894 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
10895
edae1ccf
AC
10896 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
10897 (tui_erase_data_content): Rename tuiEraseDataContent.
10898 (tui_display_all_data): Rename tuiDisplayAllData.
10899 (tui_check_data_values): Rename tuiCheckDataValues.
10900 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
10901 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
10902 (tui_first_data_element_no_in_line): Rename
10903 tuiFirstDataElementNoInLine.
10904 (tui_delete_data_content_windows): Rename
10905 tuiDeleteDataContentWindows.
10906 (tui_refresh_data_win): Rename tuiRefreshDataWin.
10907 (tui_display_data_from): Rename tuiDisplayDataFrom.
10908 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
10909 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
10910 * tui/tui-win.c, tui/tui-regs.c: Update references.
10911 * tui/tui-layout.c, tui/tui.c: Update references.
10912
ec7d9e56
AC
10913 * tui/tui-wingeneral.h: Update copyright.
10914 (m_allBeVisible): Delete macro.
8a1dac83 10915 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
10916 (struct tui_gen_win_info): Declare.
10917 (struct tui_win_info): Declare.
10918 (tui_unhighlight_win): Rename unhighlightWin.
10919 (tui_make_visible, tui_make_invisible): Replace makeVisible.
10920 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
10921 (tui_make_window): Rename makeWindow.
10922 (tui_copy_win): Rename copyWin.
10923 (tui_box_win): Rename boxWin.
10924 (tui_highlight_win): Rename highlightWin.
10925 (tui_check_and_display_highlight_if_needed): Rename
10926 checkAndDisplayHighlightIfNeeded.
10927 (tui_refresh_all): Rename refreshAll.
10928 (tui_delete_win): Rename tuiDelwin.
10929 (tui_refresh_win): Rename tuiRefreshWin.
10930 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
10931 (tui_make_visible, tui_make_invisible): New functions.
10932 (tui_make_all_visible, tui_make_all_invisible): New functions.
10933 (make_all_visible): Rename makeAllVisible.
10934 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
10935 * tui/tui-data.c, tui/tui-winsource.c: Update references.
10936 * tui/tui-windata.c, tui/tui-win.c: Update references.
10937 * tui/tui-regs.c, tui/tui-layout.c: Update references.
10938 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
10939
1e52e2eb
MK
109402004-02-06 Mark Kettenis <kettenis@gnu.org>
10941
10942 * proc-api.c (write_with_trace): Initialize local variable to
10943 silence compiler warning.
10944
f80bda8e
AC
109452004-02-06 Andrew Cagney <cagney@redhat.com>
10946
10947 * tui/tui-source.h: Do not include "defs.h".
10948 (struct tui_win_info): Declare.
10949 (tui_set_source_content_nil): Declare.
10950 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
10951 (union tui_line_or_address): Rename _TuiLineOrAddress.
10952 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
10953 (tui_update_source_window): Rename tuiUpdateSourceWindow.
10954 (tui_update_source_window_as_is): Rename
10955 tuiUpdateSourceWindowAsIs.
10956 (tui_update_source_windows_with_addr): Rename
10957 tuiUpdateSourceWindowsWithAddr.
10958 (tui_update_source_windows_with_line): Rename
10959 tuiUpdateSourceWindowsWithLine.
10960 (tui_clear_source_content): Rename tuiClearSourceContent.
10961 (tui_erase_source_content): Rename tuiEraseSourceContent.
10962 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
10963 (tui_show_source_content): Rename tuiShowSourceContent.
10964 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
10965 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
10966 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
10967 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
10968 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
10969 (tui_update_exec_info): Rename tuiUpdateExecInfo.
10970 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
10971 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
10972 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
10973 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
10974 (struct tui_win_info): Declare.
10975 * tui/tui-stack.c: Update references.
10976 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
10977 * tui/tui-win.c, tui/tui-source.c: Ditto.
10978 * tui/tui.c, tui/tui-disasm.c: Ditto.
10979
9fbfb822
MK
109802004-02-06 Mark Kettenis <kettenis@gnu.org>
10981
10982 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
10983 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
10984
03cebad2
MK
109852004-02-05 Mark Kettenis <kettenis@gnu.org>
10986
10987 * infrun.c (handle_inferior_event): Allow for breakpoint
10988 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
10989 and SIGEMT. Update comments.
10990 * NEWS (Revised SPARC target): Mention support for non-executable
10991 stack.
10992
290281b1
MK
109932004-02-04 Mark Kettenis <kettenis@gnu.org>
10994
10995 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
10996 * inftarg.c: Update copyright year.
10997 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
10998 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
10999 (sparc_xfer_wcookie): New function.
11000 * sparc-tdep.c (sparc_fetch_wcookie): New function.
11001 * Makefile.in (sparc-nat.o): Update dependencies.
11002 * config/sparc/nm-nbsd.h: Include "target.h".
11003 (NATIVE_XFER_WCOOKIE): New define.
11004 (sparc_xfer_wcookie): New prototype.
11005
212161df
AC
110062004-02-04 Andrew Cagney <cagney@redhat.com>
11007
11008 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
11009 SYSCALL_TRAP function.
11010 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
11011
6e4c6c91
DJ
110122004-02-04 Andrew Cagney <cagney@redhat.com>
11013 Daniel Jacobowitz <drow@mvista.com>
11014
11015 * objfiles.h: Delete comments refering to inside_entry_func and
11016 DEPRECATED_FRAME_CHAIN_VALID.
11017 * defs.h (inside_entry_func): Update prototype..
11018 * blockframe.c (inside_entry_func): Rename to
11019 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
11020 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
11021
cae688ec
JJ
110222004-02-03 Jeff Johnston <jjohnstn@redhat.com>
11023
11024 * breakpoint.c (struct captured_parse_breakpoint_args): Move
11025 outside of #ifdef SOLIB_ADD region.
11026 (do_restore_lang_radix_cleanup): Ditto.
11027 (resolve_pending_breakpoint): Ditto.
11028
19217676
AC
110292004-02-03 Andrew Cagney <cagney@redhat.com>
11030
11031 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
11032 (process_note_abi_tag_sections): Delete unused function.
11033 (ia64_read_fp): Delete unused function.
11034 (gdbarch_extract_struct_value_address): Delete declaration.
11035
876753be
AC
110362004-02-02 Andrew Cagney <cagney@redhat.com>
11037
11038 * vax-tdep.c (vax_frame_chain): Delete call to
11039 deprecated_inside_entry_file.
11040 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
11041
d4f10bf2
MK
110422004-02-02 Mark Kettenis <kettenis@gnu.org>
11043
11044 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
11045 column that's "empty" or "same value" when eliminating REG_RA
11046 rules.
11047
cae688ec
JJ
110482004-02-02 Jeff Johnston <jjohnstn@redhat.com>
11049
11050 * NEWS: Add information about new pending breakpoint support.
11051
0101ce28
JJ
110522004-02-02 Jeff Johnston <jjohnstn@redhat.com>
11053
11054 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
11055 and pending fields for pending breakpoint support.
11056 * breakpoint.c (breakpoint_enabled): Add check for not pending.
11057 (condition_command): Only parse condition if not a pending
11058 breakpoint.
11059 (print_one_breakpoint): Add support for pending breakpoints.
11060 (describe_other_breakpoints): Add checks to verify we are not
11061 dealing with pending breakpoints.
11062 (check_duplicates): Don't check pending breakpoints.
11063 (set_raw_breakpoint): Initialize pending flag.
11064 (do_restore_lang_radix_cleanup): New cleanup routine.
11065 (resolve_pending_breakpoint): New function.
11066 (re_enable_breakpoints_in_shlibs): Try and resolve any
11067 pending breakpoints via resolve_pending_breakpoint.
11068 (mention): Add pending breakpoint support.
11069 (parse_breakpoint_sals): Add new parameter to pass to
11070 decode_line_1 to indicate silent errors when files or functions
11071 are not found. Change all callers.
11072 (do_captured_parse_breakpoint): New function.
11073 (break_command_1): Change prototype to return an rc value and to
11074 take an optional pending breakpoint pointer. Support creating
11075 a pending breakpoint if a "not found" form of error occurs when
11076 parsing the breakpoint. Also support resolving an existing pending
11077 breakpoint and be silent if the resolution fails.
11078 (create_breakpoints): Change prototype to take pending breakpoint
11079 pointer. When resolving a pending breakpoint, use the new pointer
11080 to provide a conditional or commands added by the end-user.
11081 (delete_breakpoint): Add appropriate check for pending.
11082 (breakpoint_re_set_one): Ditto.
11083 (do_enable_breakpoint): Ditto.
11084
8d577d32
DC
110852004-02-02 David Carlton <carlton@kealia.com>
11086
11087 * valops.c (enum oload_classification): New.
11088 (find_overload_match): Break implementation into separate
11089 functions; delete #if 0'd code; look for symbols within
11090 namespaces.
11091 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
11092 (find_oload_champ,oload_method_static,classify_oload_match): New.
11093 * cp-support.h: Add declaration for cp_func_name; update
11094 declaration for make_symbol_overload_list.
11095 * cp-support.c (cp_func_name): New.
11096 (overload_list_add_symbol): Fix comment, use
11097 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
11098 (make_symbol_overload_list): Take a function name and a namespace
11099 instead of a symbol; change implementation.
11100 (make_symbol_overload_list_using): New.
11101 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
11102
22e8e3c7
FF
111032004-02-02 Fred Fish <fnf@redhat.com>
11104
11105 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 11106 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
11107 * remote-sim.c (gdb_os_write_stderr): Write output to
11108 gdb_stdtargerr stream instead of gdb_stdtarg stream.
11109 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 11110 gdb_stderr stream and update copyright years.
22e8e3c7 11111
6b753f60
DJ
111122004-02-01 Daniel Jacobowitz <drow@mvista.com>
11113
11114 * Makefile.in (mips-linux-nat.o): Update dependencies.
11115 * mips-linux-nat.c: Include mips-tdep.h.
11116
111172004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
11118
11119 * sol-thread.c (sol_thread_xfer_partial): New function.
11120 (init_sol_thread_ops): Use that for to_xfer_partial hook.
11121 (init_sol_core_ops): Likewise.
11122
11123 * procfs.c (procfs_xfer_partial): New function.
11124 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
11125 * Makefile.in (procfs.o): Add $(auxv_h) dep.
11126
11127 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
11128 procfs_xfer_auxv function.
11129
11130 * procfs.c (procfs_make_note_section): If we can read
11131 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
11132 * linux-proc.c (linux_make_note_section): Likewise.
11133
11134 * auxv.h: New file.
11135 * auxv.c: New file.
11136 * Makefile.in (auxv_h): New variable.
11137 (COMMON_OBS): Add auxv.o here.
11138 (auxv.o): New target.
11139
11140 * corelow.c (core_xfer_partial): New function.
11141 (init_core_ops): Use it for core_ops.to_xfer_partial.
11142
11143 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
11144 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
11145 macro if that is defined.
11146
fa5281d0
DJ
111472004-02-01 Daniel Jacobowitz <drow@mvista.com>
11148
11149 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
11150 and check the specified thread for each breakpoint.
11151 * breakpoint.h (bpstat_stop_status): Update prototype.
11152 * infrun.c (handle_inferior_event): Update calls to
11153 bpstat_stop_status.
11154
26ee262d
DJ
111552004-02-01 Daniel Jacobowitz <drow@mvista.com>
11156
11157 * Makefile.in (cli-cmds.o): Add $(readline_h).
11158
d9b52655
DJ
111592004-02-01 Daniel Jacobowitz <drow@mvista.com>
11160
11161 * cli/cli-cmds.c: Include readline.h.
11162 (complete_command): Pass the start of the last word to
11163 complete_line.
11164
9709f61c
DJ
111652004-01-31 Daniel Jacobowitz <drow@mvista.com>
11166
11167 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
11168 argument, and change first argument to a CORE_ADDR.
11169 * breakpoint.h (bpstat_stop_status): Update prototype.
11170 * infrun.c (adjust_pc_after_break): Add a new comment.
11171 (handle_inferior_event): Update calls to bpstat_stop_status.
11172
4f1280bb
DJ
111732004-01-31 Daniel Jacobowitz <drow@mvista.com>
11174
11175 * breakpoint.h: Update copyright years.
11176
4fa8626c
DJ
111772004-01-31 Daniel Jacobowitz <drow@mvista.com>
11178
11179 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
11180 (bpstat_stop_status): Don't decrement PC.
11181 * breakpoint.h (software_breakpoint_inserted_here_p): Add
11182 prototype.
11183 * infrun.c (adjust_pc_after_break): New function.
11184 (handle_inferior_event): Call it, early. Remove later references
11185 to DECR_PC_AFTER_BREAK.
11186 (normal_stop): Add commentary.
11187
fad0733a
DJ
111882004-01-31 Daniel Jacobowitz <drow@mvista.com>
11189
11190 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
11191 2004-01-27 double-free fix.
11192
42cdca6c
MK
111932004-01-31 Mark Kettenis <kettenis@gnu.org>
11194
11195 * sparc-tdep.c (sparc_fetch_wcookie): New function.
11196 (sparc32_frame_prev_register): Handle StackGhost.
11197 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11198
932d5416
RM
111992004-01-29 Roland McGrath <roland@redhat.com>
11200
11201 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
11202 * configure: Regenerated.
11203
11204 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
11205 * Makefile.in (procfs.o): Add dep.
11206
47d3492a
AC
112072004-01-28 Andrew Cagney <cagney@redhat.com>
11208
11209 * tui/tui-stack.h: Update copyright.
11210 (struct frame_info): Add opaque declaration.
11211 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
11212 (tui_show_locator_content): Rename tuiShowLocatorContent.
11213 (tui_show_frame_info): Rename tuiShowFrameInfo.
11214 * tui/tui-stack.c: Update copyright. Update references.
11215 * tui/tui-winsource.c: Update references.
11216 * tui/tui-win.c: Update references.
11217 * tui/tui-layout.c: Update references.
11218 * tui/tui-hooks.c: Update copyright, update references.
11219 * tui/tui.c: Update copyright, update references.
11220 * tui/tui-disasm.c: Update references.
11221
5d51ca54
DC
112222004-01-28 David Carlton <carlton@kealia.com>
11223
11224 * dwarf2read.c (add_partial_structure): Use demangled name if
11225 namespace equals "".
11226
086ed43d
JB
112272004-01-27 Jim Blandy <jimb@redhat.com>
11228
11229 Clean up misapplied patch:
11230 * dwarf2read.c (determine_prefix): Change one of the two forward
11231 declarations for 'determine_prefix_aux' to a declaration for this.
11232 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
11233 argument to 'die_specification'.
11234
2a35147e
JB
11235 * dwarf2read.c (read_func_scope): Re-indent comment.
11236
a355c7de 112372004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 11238
a355c7de
AC
11239 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
11240 b->exp to NULL after freeing so that error during re-parsing or
11241 evaluation of expressions associated with breakpoint don't
11242 eventually lead to re-freeing of storage.
11243 Committed by Andrew Cagney.
11244
63ff5125
AC
112452004-01-27 Andrew Cagney <cagney@redhat.com>
11246
11247 * source.c (ambiguous_line_spec): Delete undefined declaration.
11248 * m32r-rom.c (m32r_set_board_address): Delete unused function.
11249 (m32r_set_server_address, m32r_set_download_path): Ditto.
11250 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
11251
e142c38c
DJ
112522004-01-27 Daniel Jacobowitz <drow@mvista.com>
11253
11254 * dwarf2read.c: Update calls to changed and renamed functions, and
11255 references to moved variables.
11256
11257 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
11258 language, language_defn, list_in_scope, and ftypes members.
11259 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
11260 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
11261 (baseaddr): Remove globals.
11262
11263 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
11264 (set_cu_language, die_is_declaration, die_specification)
11265 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
11266 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
11267 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
11268 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
11269
11270 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
11271 cu.list_in_scope. Don't initialize cu_header_offset.
11272 (add_partial_symbol): Add local baseaddr.
11273 (psymtab_to_symtab_1): Add local baseaddr. Use
11274 objfile->section_offsets for consistency. Don't initialize
11275 cu_header_offset; do initialize cu.header.offset and
11276 cu.list_in_scope.
11277 (read_file_scope, read_func_scope, read_lexical_block_scope)
11278 (dwarf_decode_lines, new_symbol): Add local baseaddr.
11279
c6e06ede
MC
112802004-01-27 Michael Chastain <mec.gnu@mindspring.com>
11281
fb328ecc 11282 * PROBLEMS: Add gdb/1516.
c6e06ede 11283
48184fd4
AC
112842003-12-29 Robert Millan <robertmh@gnu.org>
11285
11286 Patch committed by Andrw Cagney.
11287 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
11288 * configure.tgt: Match knetbsd*-gnu.
11289
c1321b30
AC
112902004-01-26 Andrew Cagney <cagney@redhat.com>
11291
f3699be3
AC
11292 * breakpoint.c (catch_command_1): Delete #ifdef code.
11293 (catch_fork_command_1): Delete #ifdef wrapper.
11294 (catch_exec_command_1): Ditto.
11295 (catch_load_command_1): Ditto.
11296 (catch_unload_command_1): Ditto.
11297
c1321b30
AC
11298 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
11299 (catch_breakpoint): Delete #if0ed function.
11300 (disable_catch_breakpoint): Ditto.
11301 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
11302 (disable_catch, enable_catch, delete_catch): Ditto.
11303
b4501125
AC
113042004-01-26 Andrew Cagney <cagney@redhat.com>
11305
11306 * remote.c (echo_check, quit_flag): Delete variables.
11307 (cisco_kernel_mode): Delete variable.
11308 (minitelnet_return, tty_input, escape_count): Delete variables.
11309 (remote_cisco_mode): Delete variable.
11310 (remote_cisco_open, remote_cisco_close): Delete function.
11311 (remote_cisco_mourn, remote_cisco_wait): Delete function.
11312 (init_remote_cisco_ops): Delete function.
11313 (_initialize_remote): Do not install "remote cisco" code.
11314 (read_frame): Delete cisco specific code.
11315 (remote_info_process): Delete function.
11316 (remote_wait): Delete cisco specific code.
11317 (remote_cisco_section_offsets): Delete function.
11318 (remote_cisco_objfile_relocate): Delete function.
11319 (remote_async_wait): Delete cisco specific code.
11320 (minitelnet, readtty, readsocket): Delete function.
11321
74055713
AC
113222004-01-26 Andrew Cagney <cagney@redhat.com>
11323
11324 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
11325 comments mentioning extract_returned_value_address.
11326 * infcmd.c (print_return_value): Update. Add comments on
11327 extract_returned_value_address.
11328 * stack.c (return_command): Add comments on
11329 extract_returned_value_address.
11330 * values.c: Update comment.
11331 * m32r-tdep.c: Update comment.
11332 * sparc-tdep.c: Update comment.
11333 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
11334 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11335 * sh64-tdep.c (sh64_gdbarch_init): Update.
11336 * sh-tdep.c (sh_gdbarch_init): Update.
11337 * s390-tdep.c (s390_gdbarch_init): Update.
11338 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11339 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
11340 * m68k-tdep.c (m68k_gdbarch_init): Update.
11341 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11342 * m32r-tdep.c (m32r_gdbarch_init): Update.
11343 * ia64-tdep.c (ia64_gdbarch_init): Update.
11344 * h8300-tdep.c (h8300_gdbarch_init): Update.
11345 * frv-tdep.c (frv_gdbarch_init): Update.
11346 * arm-tdep.c (arm_gdbarch_init): Update.
11347 * alpha-tdep.c (alpha_gdbarch_init): Update.
11348
a67af2b9
AC
113492004-01-26 Andrew Cagney <cagney@redhat.com>
11350
11351 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
11352 SYMBOL_LOCATION_FUNCS
11353 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
11354 "struct symbol_ops".
11355 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
11356 type to "struct symbol_ops".
11357 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
11358 (struct symbol): Replace ".aux_value.loc.funcs" and
11359 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
11360 (SYMBOL_OBJFILE): Delete macro.
11361 (SYMBOL_LOCATION_FUNCS): Delete macro.
11362 (SYMBOL_LOCATION_BATON): Update.
11363 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
11364 intead of SYMBOL_LOCATION_FUNCS.
11365 * ax-gdb.c (gen_var_ref): Ditto.
11366 * printcmd.c (address_info): Ditto.
11367 * findvar.c (read_var_value): Ditto.
11368 (symbol_read_needs_frame): Ditto.
11369
c034e007
AC
113702004-01-26 Andrew Cagney <cagney@redhat.com>
11371
11372 * dwarf2read.c (read_func_scope): Document frame-base hack.
11373
bb472c1e
MK
113742004-01-25 Mark Kettenis <kettenis@gnu.org>
11375
11376 * infcmd.c (print_return_value): Plug memory leak; delete
11377 ui_stream object. Rename argument `structure_return' to
11378 `struct_return'.
11379
c8e737d5
MK
113802004-01-25 Mark Kettenis <kettenis@gnu.org>
11381
f941662f
MK
11382 * infcmd.c (print_return_value): Wrap long lines.
11383 (finish_command_continuation, finish_command): Remove unused
11384 variable `funcaddr'. Fix some coding-standards problems.
11385
c558d81a 11386 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 11387 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
11388 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
11389 TDEP->fpregset to zero.
11390
bf1e5861 11391 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
11392 floating-point registers for traditional NetBSD core files.
11393 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
11394 TDEP->sizeof_fpregset here.
11395
4c72d57a
MK
113962004-01-25 Mark Kettenis <kettenis@gnu.org>
11397
566626fa
MK
11398 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
11399 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
11400 function with code split out from
11401 sparc32nbsd_sigcontext_frame_cache.
11402 (sparc32nbsd_sigcontext_frame_cache): Use
11403 sparc32nbsd_sigcontext_saved_regs.
11404 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
11405 OpenBSD.
11406 * sparcobsd-tdep.c: New file.
11407 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
11408 (sparcobsd-tdep.o): New dependency.
11409 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
11410 * config/sparc/obsd.mt: New file.
11411
4c72d57a
MK
11412 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
11413 TDEP->fpregset to be initialized to enable core file register
11414 sets.
11415
7e5e9f88
MK
114162004-01-24 Mark Kettenis <kettenis@gnu.org>
11417
f0f207fd 11418 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
11419 Add opaque declarations.
11420 (sparc64nbsd_sigcontext_saved_regs): New prototype.
11421 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
11422 function with code split out from
11423 sparc64nbsd_sigcontext_frame_cache.
11424 (sparc64nbsd_sigcontext_frame_cache): Use
11425 sparc64nbsd_sigcontext_saved_regs.
11426 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
11427 OpenBSD.
11428 * sparc64obsd-tdep.c: New file.
11429 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
11430 (sparc64obsd-tdep.o): New dependency.
11431 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
11432 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
11433 * config/sparc/obsd64.mt: New file.
11434
690668cc
MK
11435 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
11436 read the instruction at PC.
11437
7e5e9f88
MK
11438 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
11439 value of GDB_OSABI_DEFAULT.
11440 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
11441 instead of GDB_OSABI_NETBSD_AOUT.
11442
68b6dce9
NR
114432004-01-24 Nick Roberts <nick@nick.uklinux.net>
11444
11445 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
11446 copyright.
11447
080ce8c0
AC
114482004-01-23 Andrew Cagney <cagney@redhat.com>
11449
11450 * printcmd.c (display_command): Replace tui_set_display call with
11451 tui_set_layout_for_display_command.
11452 * tui/tui.h (enum tui_win_type): Define.
11453 (tui_set_layout): Delete declaration.
11454 (tui_set_layout_for_display_command): Rename set_tui_layout.
11455 * tui/tui-data.h (enum tui_layout_type): Define.
11456 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
11457 "tui.h".
11458 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
11459 (tui_default_win_height): Rename tuiDefaultWinHeight.
11460 (tui_default_win_viewport_height): Rename
11461 tuiDefaultWinViewportHeight.
11462 (tui_set_layout): RenametuiSetLayout.
11463 * tui/tui-layout.c: Update references.
11464 * tui/tui.c: Update references.
11465 * tui/tui-disasm.c: Update references.
11466
b368761e
DC
114672004-01-23 David Carlton <carlton@kealia.com>
11468
11469 Partial workaround for PR c++/1511:
11470 * cp-namespace.c: Include frame.h.
11471 (cp_lookup_transparent_type): New
11472 (cp_lookup_transparent_type_loop): New.
11473 * cp-support.h: Declare cp_lookup_transparent_type.
11474 * symtab.c (basic_lookup_transparent_type): Renamed from
11475 lookup_transparent_type.
11476 (lookup_transparent_type): Replace old body by a call to
11477 current_language->la_lookup_transparent_type.
11478 * symtab.h: Update copyright. Declare
11479 basic_lookup_transparent_type.
11480 * language.h: Update copyright.
11481 (struct language_defn): Add la_lookup_transparent_type.
11482 * language.c: Update copyright.
11483 (unknown_language_defn): Add basic_lookup_transparent_type.
11484 (auto_language_defn): Add basic_lookup_transparent_type.
11485 (local_language_defn): Add basic_lookup_transparent_type.
11486 * ada-lang.c: Update copyright.
11487 (ada_language_defn): Add basic_lookup_transparent_type.
11488 * c-lang.c: Update copyright.
11489 (c_language_defn): Add basic_lookup_transparent_type.
11490 (cplus_language_defn): Add basic_lookup_transparent_type.
11491 (asm_language_defn): Add basic_lookup_transparent_type.
11492 (minimal_language_defn): Add basic_lookup_transparent_type.
11493 * f-lang.c: Update copyright.
11494 (f_language_defn): Add basic_lookup_transparent_type.
11495 * jv-lang.c: Update copyright.
11496 (java_language_defn): Add basic_lookup_transparent_type.
11497 * m2-lang.c: Update copyright.
11498 (m2_language_defn): Add basic_lookup_transparent_type.
11499 * objc-lang.c: Update copyright.
11500 (objc_language_defn): Add basic_lookup_transparent_type.
11501 * p-lang.c: Update copyright.
11502 (p_language_defn): Add basic_lookup_transparent_type.
11503 * scm-lang.c: Update copyright.
11504 (scm_language_defn): Add basic_lookup_transparent_type.
11505 * Makefile.in (cp-namespace.o): Depend on frame.h.
11506
fdde2d81
DC
115072004-01-23 David Carlton <carlton@kealia.com>
11508
11509 Patch for PR c++/1520:
11510 * dwarf2read.c (read_func_scope): Set processing_current_prefix
11511 properly if we have a specification die.
11512 (determine_prefix_aux): Rename from determine_prefix.
11513 (determine_prefix): Like the old determine_prefix, but never
11514 returns NULL.
11515
5b828b6b
TR
115162004-01-23 Theodore A. Roth <troth@openavr.org>
11517
11518 * avr-tdep.c: Update copyright.
11519 (avr_iaddr_p): Delete unused function.
11520 (avr_saddr_p): Delete unused function.
11521
a1b8c067
DC
115222004-01-23 David Carlton <carlton@kealia.com>
11523
11524 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
11525 Fix for PR symtab/1534.
11526
f2cab569
MK
115272004-01-23 Mark Kettenis <kettenis@gnu.org>
11528
11529 * NEWS (New native configurations): Mention OpenBSD/sparc and
11530 OpenBSD/sparc64.
11531 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
11532 * configure.host: Likewise.
11533 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
11534 handler for OpenBSD.
11535 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
11536
642d8300
MK
115372004-01-22 Mark Kettenis <kettenis@gnu.org>
11538
89aac506
MK
11539 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
11540 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
11541
36662fde
MK
11542 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
11543 * cli/cli-cmds.c (shell_escape): Likewise.
11544
642d8300
MK
11545 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
11546 OpenBSD .note.openbsd.ident sections.
11547
fae299cd
DC
115482004-01-22 David Carlton <carlton@kealia.com>
11549
11550 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
11551 get_scope_pc_bounds.
11552 (read_file_scope): Ditto.
11553 (get_scope_pc_bounds): New function, produced by extracting code
11554 from the above two functions, consolidating it, and adding support
11555 for DW_TAG_namespace.
11556
a49d618c
MK
115572004-01-22 Mark Kettenis <kettenis@gnu.org>
11558
11559 * osabi.c (MAX_NOTESZ): New define.
11560 (check_note): New function.
11561 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
11562 check_note.
11563
fe61caab
RM
115642004-01-21 Roland McGrath <roland@redhat.com>
11565
11566 * MAINTAINERS (write after approval): Add myself.
11567
ec145965
EZ
115682004-01-21 Eli Zaretskii <eliz@gnu.org>
11569
11570 * utils.c (init_page_info): Move declarations of `rows' and
11571 `cols' before the __GO32__-specific code. Move the closing brace
11572 outside the #ifdef __GO32__..#endif block.
11573 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
11574
877522db
PB
115752004-01-21 Paul Brook <paul@codesourcery.com>
11576
11577 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
11578 BPSTAT_WHAT_CHECK_SHLIBS.
11579
dbf5be1c
PB
115802004-01-21 Paul Brook <paul@codesourcery.com>
11581
11582 * MAINTAINERS: Add myself to write-after-approval.
11583
81f08b92
AC
115842004-01-20 Andrew Cagney <cagney@redhat.com>
11585
5a1efed7
AC
11586 * ax-gdb.c (print_axs_value): Delete unused function.
11587 * jv-lang.c (java_lookup_type): Delete unused function.
11588 * cli/cli-dump.c (dump_filetype): Delete unused function.
11589 * remote-mips.c (remote_mips_insert_hw_breakpoint)
11590 (remote_mips_remove_hw_breakpoint): Delete unused functions.
11591 (mips_getstring): Delete unused function.
11592 (pmon_insert_breakpoint): Delete #if0ed function.
11593 (PMON_MAX_BP): Delete #if0ed MACRO.
11594 (mips_pmon_bp_info): Delete #if0ed variable.
11595 (pmon_remove_breakpoint): Delete #if0ed function.
11596 * monitor.c (monitor_write_even_block): Delete unused function.
11597 (monitor_write_memory_block): Delete #if0ed code.
11598 * dink32-rom.c (dink32_load): Delete unused function.
11599 (_initialize_dink32_rom): Delete #if0ed code.
11600 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
11601
b0a30fce
AC
11602 * tui/tui-command.c: Update references.
11603 * tui/tui-io.c: Update references.
11604 * tui/tui-command.h: Update copyright.
11605 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
11606
81f08b92
AC
11607 * source.c (ambiguous_line_spec): Delete never-defined function.
11608 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
11609 * gdbtypes.c (add_name, add_mangled_type): Ditto.
11610 * cli/cli-cmds.c (validate_comname): Ditto.
11611
65f05602
AC
11612 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
11613 "tui-data.h".
11614 (tui_set_disassem_content): Rename tuiSetDisassemContent.
11615 (tui_show_disassem): Rename tuiShowDisassem.
11616 (tui_show_disassem_and_update_source): Rename
11617 tuiVerticalDisassemScroll.
11618 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
11619 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
11620 * tui/tui.h: Update copyright.
11621 (enum tui_status): Define.
11622 * tui/tui-data.h (enum tui_scroll_direction): Define.
11623 * tui/tui-disasm.c: Update copyright. Update references.
11624 * tui/tui-winsource.c: Update copyright. Update references.
11625 * tui/tui-win.c: Update references.
11626 * tui/tui-layout.c: Update references.
11627
6bb0384f
AC
116282004-01-20 Andrew Cagney <cagney@redhat.com>
11629
11630 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
11631 sym2 to start of block.
11632
9175c9a3
MC
116332004-01-19 Michael Chastain <mec.gnu@mindspring.com>
11634
11635 * MAINTAINERS: Delete mmalloc.
11636 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
11637 * NEWS: Mention removal of --with-malloc.
11638 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
11639 * config.in: Regenerate.
11640 * configure: Regenerate.
6bb0384f
AC
11641 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
11642 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
11643 * gdbinit.in: Remove mmalloc.
11644 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
11645 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
11646 * config/i386/go32.mh: Likewise.
11647 * config/i386/interix.mh: Likewise.
11648 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
11649
4fcef00a
JJ
116502004-01-19 Jeff Johnston <jjohnstn@redhat.com>
11651
11652 * linespec.c (decode_variable, symtab_from_filename): Call
11653 error_silent with error message instead of throwing an exception
11654 directly.
11655 * defs.h (error_silent, error_output_message): Add prototypes.
11656 (catch_exceptions_with_msg): Ditto.
11657 * utils.c (error_silent, error_output_message): New functions.
11658 * top.c (catch_exceptions_with_msg): New function.
11659
8e94b928
NR
116602004-01-20 Nick Roberts <nick@nick.uklinux.net>
11661
11662 * mi/mi-cmds.h (enum print_values): Add definition.
11663
11664 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
11665 type and value for simple data types and just the name and type
11666 for complex ones, if required.
11667
11668 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
11669 children, if required.
11670
a02d6af8
KB
116712004-01-19 Kevin Buettner <kevinb@redhat.com>
11672
11673 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
11674 unused declarations.
11675
78a4a9b9
AC
116762004-01-19 Andrew Cagney <cagney@redhat.com>
11677
11678 * top.h (mapped_symbol_files): Delete declaration.
11679 * main.c (captured_main): Delete option "m" and "mapped".
11680 * objfiles.c (mapped_symbol_files): Delete variable.
11681 * symfile.c (symbol_file_command): Delete mmap code.
11682 (symbol_file_add_with_addrs_or_offsets): Ditto.
11683 (add_symbol_file_command, reread_separate_symbols): Ditto.
11684 * objfiles.h (OBJF_MAPPED): Delete.
11685 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
11686 (free_objfile) [USE_MMALLOC]: Ditto.
11687 (open_existing_mapped_file): Delete function.
11688 (open_mapped_file): Delete function.
11689 (map_to_file): Delete function.
11690
2dbd5e30
KB
116912004-01-19 Kevin Buettner <kevinb@redhat.com>
11692
11693 * infrun.c (step_into_function): Account for possible breakpoint
11694 adjustment when computing ``stop_func_start''.
11695
437b434f
KB
116962004-01-19 Kevin Buettner <kevinb@redhat.com>
11697
11698 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
11699 the region size against the size of a pointer, not the size of
11700 a register as given by DEPRECATED_REGISTER_SIZE.
11701
55fb0713
AC
117022004-01-19 Andrew Cagney <cagney@redhat.com>
11703
11704 * tui/tui-regs.h: Include "tui-data.h".
11705 (tuiFirstRegElementNoInLine): Delete declaration.
11706 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
11707 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
11708 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
11709 (tui_calculate_regs_column_count): Rename
11710 tuiCalculateRegsColumnCount.
11711 (tui_check_register_values): Rename tuiCheckRegisterValues.
11712 (tui_show_registers): Rename tuiShowRegisters.
11713 (tui_display_registers_from_line): Rename
11714 tuiDisplayRegistersFromLine.
11715 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
11716 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
11717 (tui_first_reg_element_no_inline): Rename
11718 tuiFirstRegElementNoInLine.
11719 * tui/tui-data.h: Update copyright.
11720 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
11721 * tui/tui-windata.c: Update copyright, update references.
11722 * tui/tui-regs.c: Update copyright, update references.
11723 * tui/tui-win.c: Update copyright, update references.
11724 * tui/tui-layout.c: Update copyright, update references.
fe61caab 11725
cebe9500
AC
117262004-01-18 Andrew Cagney <cagney@redhat.com>
11727
bcdf1568
AC
11728 * tui/tui-io.c: Update copyright.
11729 (key_is_end_sequence, key_is_backspace): New functions.
11730 (key_is_command_char, key_is_start_sequence): New function.
11731 (tui_getc): Update references.
11732 * tui/tui-io.h: Update copyright.
11733 (m_tuiStartNewLine): Delete macro.
11734 (m_isBackspace, m_isDeleteChar): Delete macros.
11735 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
11736 (m_isNextPage, m_isPrevPage): Delete macros.
11737 (m_isLeftArrow, m_isRightArrow): Delete macros.
11738 (m_isXdbStyleCommandChar): Delete macro.
11739 (key_is_start_sequence): Declare, replace m_isStartSequence.
11740 (key_is_end_sequence): Declare, replace m_isEndSequence.
11741 (key_is_backspace): Declare ,replace m_isBackspace.
11742 (key_is_command_char): Declare, replace m_isCommandChar.
11743 * tui/tui-command.c: Update copyright.
11744 (tuiDispatchCtrlChar): Update references.
11745
130d87e6
AC
11746 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
11747 tuiSourceWin.h.
11748
d7b2e967
AC
11749 * tui/tui-command.c: Rename tui/tuiCommand.c.
11750 * tui/tui-command.h: Rename tui/tuiCommand.h.
11751 * tui/tui-data.c: Rename tui/tuiData.c.
11752 * tui/tui-data.h: Rename tui/tuiData.h.
11753 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
11754 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
11755 * tui/tui-io.c: Rename tui/tuiIO.c.
11756 * tui/tui-io.h: Rename tui/tuiIO.h.
11757 * tui/tui-layout.c: Rename tui/tuiLayout.c.
11758 * tui/tui-layout.h: Rename tui/tuiLayout.h.
11759 * tui/tui-regs.c: Rename tui/tuiRegs.c.
11760 * tui/tui-regs.h: Rename tui/tuiRegs.h.
11761 * tui/tui-source.c: Rename tui/tuiSource.c.
11762 * tui/tui-source.h: Rename tui/tuiSource.h.
11763 * tui/tui-stack.c: Rename tui/tuiStack.c.
11764 * tui/tui-stack.h: Rename tui/tuiStack.h.
11765 * tui/tui-win.c: Rename tui/tuiWin.c.
11766 * tui/tui-win.h: Rename tui/tuiWin.h.
11767 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
11768 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
11769 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
11770 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
11771 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
11772 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
11773 * tui/tui-file.c: Update includes.
11774 * tui/tui-hooks.c: Update includes.
11775 * tui/tui-interp.c: Update includes.
11776 * tui/tui.c: Update includes.
11777 * Makefile.in: Update all tui/ dependencies.
11778 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
11779
b2100910
AC
11780 * Makefile.in: Update copyright. Update dependencies.
11781
cebe9500
AC
11782 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
11783 problem.
11784
c6f0559b
AC
117852004-01-18 Andrew Cagney <cagney@redhat.com>
11786
43e9390b
AC
11787 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
11788 instead of register_gdbarch_init.
11789
c6f0559b
AC
11790 * remote-sds.c (tohex): Delete unused function. Update copyright.
11791 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
11792 * v850-tdep.c (v850_register_virtual_size): Ditto.
11793 * target.c (normal_target_post_startup_inferior): Ditto.
11794 * source.c (ambiguous_line_spec): Ditto.
11795 * remote.c (adapt_remote_get_threadinfo): Ditto.
11796 * mi/mi-out.c (out_field_fmt): Ditto.
11797 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
11798 (output_control_change_notification): Ditto.
11799 * m68k-tdep.c (m68k_register_byte): Ditto.
11800 (m68k_remote_breakpoint_from_pc): Ditto.
11801 * ui-out.c (init_ui_out_state): Delete unused declaration.
11802 * stabsread.c (search_value): Ditto.
11803 * mi/mi-cmd-env.c (env_cli_command): Ditto.
11804 * maint.c (print_section_table): Ditto.
11805 * infrun.c (set_follow_fork_mode_command): Ditto.
11806
a8504492
MK
118072004-01-18 Mark Kettenis <kettenis@gnu.org>
11808
11809 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
11810 DW_CFA_def_cfa_exporession. Add support for
11811 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
11812 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
11813
0bd8997e
AC
118142004-01-18 Andrew Cagney <cagney@redhat.com>
11815
11816 * ocd.c: Update copyright.
11817 (bdm_read_register_command): Delete unused function.
11818 (_initialize_remote_ocd): Delete commented out reference.
11819 (get_quoted_char, reset_packet): Delete #if0ed function.
11820 (output_packet, put_quoted_char): Delete #if0ed function.
11821 (stu_put_packet, stu_get_packet): Delete #if0ed function.
11822 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
11823 (BDM_BREAKPOINT): Delete #if0ed macro.
11824 (remote_timeout): Delete #if0ed variable.
11825
31bb40e4
MK
118262004-01-18 Mark Kettenis <kettenis@gnu.org>
11827
11828 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
11829 (core-sol2.o): Remove dependency.
11830 * core-sol2.c: Remove file.
11831
887432a5
AC
118322004-01-17 Andrew Cagney <cagney@redhat.com>
11833
11834 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
11835 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
11836 enums.
11837
29182b13
DJ
118382004-01-17 Daniel Jacobowitz <drow@mvista.com>
11839
11840 * remote.c: Update copyright years.
11841
2963ee1d
DJ
118422004-01-17 Daniel Jacobowitz <drow@mvista.com>
11843
11844 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
11845
79d45cd4
AC
118462004-01-17 Andrew Cagney <cagney@redhat.com>
11847
ee300cd4
AC
11848 * mdebugread.c: Update copyright.
11849 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
11850 (parse_type, parse_procedure): Ditto.
11851 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
11852
fcacc9c2
AC
11853 * cris-tdep.c (cris_store_struct_return): Put back accidently
11854 deleted function.
11855
79d45cd4
AC
11856 * gdbarch.sh: Update copyright year.
11857 * gdbarch.h, gdbarch.c: Re-generate.
11858
b263358a
DJ
118592004-01-17 Daniel Jacobowitz <drow@mvista.com>
11860
11861 Suggested by George Anzinger.
11862 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
11863 correct stack offset. Include unknown opcode numbers in the error
11864 message.
11865
931aecf5
AC
118662004-01-17 Andrew Cagney <cagney@redhat.com>
11867
11868 * x86-64-tdep.c (x86_64_init_abi): No need to clear
11869 extract_struct_value_address, i386 does not set it.
11870 * sparc64-tdep.c (sparc64_init_abi): Do not set
11871 extract_struct_value_address, never called.
11872 (sparc64_extract_struct_value_address): Delete function.
11873 * m68hc11-tdep.c: Update copyright.
11874 (m68hc11_gdbarch_init): Delete redundant assignment of
11875 extract_struct_value_address.
11876 * i386-tdep.c: Update copyright.
11877 (i386_gdbarch_init): Do not set extract_struct_value_address,
11878 never called.
11879 (i386_extract_struct_value_address): Delete function.
11880 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
11881 extract_struct_value_address, never called.
11882 (sparc32_extract_struct_value_address): #if 0 function. Add
11883 comments explaining its future.
11884
756fe439
DJ
118852004-01-17 Daniel Jacobowitz <drow@mvista.com>
11886
11887 * arm-tdep.c (arm_write_pc): New function.
11888 (arm_gdbarch_init): Call set_gdbarch_write_pc.
11889
e74f0f02
DJ
118902004-01-17 Daniel Jacobowitz <drow@mvista.com>
11891
11892 * breakpoint.c (must_shift_inst_regs): Delete.
11893 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
11894 and SHIFT_INST_REGS.
11895 * infcmd.c (step_1, step_1_continuation): Delete references to
11896 SHIFT_INST_REGS.
11897 * infrun.c (keep_going): Likewise.
11898 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
11899 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
11900
b6cb9035
AC
119012004-01-17 Andrew Cagney <cagney@redhat.com>
11902
444a1e2e
AC
11903 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11904 * gdbarch.h, gdbarch.c: Re-generate.
11905 * infcmd.c (print_return_value): Delete reference to
11906 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
11907
def7e6ed
AC
11908 * cris-tdep.c (cris_gdbarch_init): Do not set
11909 deprecated_extract_struct_value_address.
11910
07be497a
AC
11911 * xstormy16-tdep.c: Update copyright.
11912 (xstormy16_extract_struct_value_address): Update to current
11913 extract struct value address interface.
11914 (xstormy16_gdbarch_init): Set extract_struct_value_address.
11915 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
11916 current extract struct value address interface.
11917 (sh64_gdbarch_init): Set extract_struct_value_address.
11918
6b4d5c91
AC
11919 * cris-tdep.c: Update copyright.
11920 (cris_extract_struct_value_address): Delete function.
11921 (struct_return_address): Delete variable.
11922 (cris_store_struct_return): Do not set struct_return_address.
11923
464e0365
AC
11924 * mcore-tdep.c: Update copyright.
11925 (mcore_extract_struct_value_address): Delete function. Update
11926 comments.
11927 (mcore_gdbarch_init): Update.
11928 * mn10300-tdep.c: Update copyright.
11929 (mn10300_extract_struct_value_address): Delete function.
11930 (mn10300_gdbarch_init): Update.
11931 * v850-tdep.c: Update copyright.
11932 (v850_extract_struct_value_address): Delete.
11933 (v850_gdbarch_init): Update.
11934 * ns32k-tdep.c: Update copyright.
11935 (ns32k_extract_struct_value_address): Delete.
11936 (ns32k_gdbarch_init): Update.
11937 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
11938 (hppa_gdbarch_init): Update.
11939 * vax-tdep.c: Update copyright.
11940 (vax_extract_struct_value_address): Delete.
11941 (vax_gdbarch_init): Update.
11942
afb18d0f
AC
11943 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
11944 * gdbarch.h, gdbarch.c: Re-generate.
11945 * procfs.c (procfs_fetch_registers): Delete reference to
11946 DEPRECATED_NPC_REGNUM.
11947 (procfs_store_registers): Ditto.
11948 * regcache.c (generic_target_write_pc): Simplify.
11949 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
11950
a698f53e
AC
11951 * core-sol2.c (fetch_core_registers): Replace
11952 DEPRECATED_NPC_REGNUM with equivalent tdep value.
11953
adc11376
AC
11954 * hppa-tdep.c: Update copyright year.
11955 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
11956 NPC_REGNUM.
11957 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
11958
b6cb9035
AC
11959 * mips-tdep.c (mips_write_pc): New function.
11960 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
11961 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
11962 (mips_find_saved_regs, mips_software_single_step: Ditto.
11963 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
11964 mips_init_extra_frame_info, mips_pop_frame): Ditto.
11965
6d82d43b
AC
119662004-01-17 Andrew Cagney <cagney@redhat.com>
11967
11968 * mips-tdep.c: Re-indent. Group functions by ABI.
11969
71bd6bd4
AC
119702004-01-17 Andrew Cagney <cagney@redhat.com>
11971
11972 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
11973 * gdbarch.c: Re-generate.
11974 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11975 DECR_PC_AFTER_BREAK to zero.
11976 * vax-tdep.c (vax_gdbarch_init): Ditto.
11977 * v850-tdep.c (v850_gdbarch_init): Ditto.
11978 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
11979 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
11980 * sh-tdep.c (sh_gdbarch_init): Ditto.
11981 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11982 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11983 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11984 * mips-tdep.c (mips_gdbarch_init): Ditto.
11985 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11986 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11987 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
11988 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11989 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
11990 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11991 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11992 * frv-tdep.c (frv_gdbarch_init): Ditto.
11993 * cris-tdep.c (cris_gdbarch_init): Ditto.
11994 * avr-tdep.c (avr_gdbarch_init): Ditto.
11995 * arm-tdep.c (arm_gdbarch_init): Ditto.
11996 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
11997
a02abb62
JB
119982004-01-17 J. Brobecker <brobecker@gnat.com>
11999
12000 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
12001 Delete, no longer used.
12002 (read_subrange_type): New function, mostly extracted from
12003 read_array_type().
12004 (read_array_type): Replace extracted code by call to
12005 read_subrange_type().
12006 (dwarf2_get_attr_constant_value): New function.
12007 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
12008 (add_partial_symbol): Likewise.
12009 (process_die): Likewise.
12010 (new_symbol): Likewise.
12011 (read_type_die): Likewise.
12012
cf5b2f1b
AC
120132004-01-16 Andrew Cagney <cagney@redhat.com>
12014
12015 * symfile.c: Update copyright year.
12016 (compare_symbols): Delete unused function.
12017 * stabsread.c: Update copyright year.
12018 (lrs_general_complaint): Delete unused function.
12019 (ref_search_value): Ditto.
12020 (get_substring): Delete declaration.
12021 * sh64-tdep.c: Update copyright year.
12022 (sh64_get_gdb_regnum): Delete unused function.
12023 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
12024 Delete unused function.
12025
d33b9831
MK
120262004-01-17 Mark Kettenis <kettenis@gnu.org>
12027
12028 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
12029 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
12030
7aea86e6
AC
120312004-01-16 Andrew Cagney <cagney@redhat.com>
12032
12033 Changes from Peter Schauer.
12034 * rs6000-tdep.c: Update copyright year.
12035 (rs6000_push_dummy_call): Update the stack pointer before
12036 accessing the corresponding stack region.
12037 * rs6000-nat.c: Update copyright year.
12038 (set_host_arch): Set "info.abfd" to "exec_bfd".
12039
26b0da32
MK
120402004-01-15 Mark Kettenis <kettenis@gnu.org>
12041
12042 * blockframe.c: Update copyright year.
12043 (inside_entry_func): Don't treat a zero PC specially.
12044
86fbe6cc
EZ
120452004-01-14 Elena Zannoni <ezannoni@redhat.com>
12046
12047 * gcore.c (gcore_copy_callback): Use paddr_d to print size
12048 variable.
12049 (gcore_create_callback): Ditto. Skip any memory segment that has
12050 no permissions set.
12051
63d06c5c
DC
120522004-01-14 David Carlton <carlton@kealia.com>
12053
12054 Change symbols for C++ nested types to contain the fully qualified
12055 name, if possible. (At least in the DWARF-2 case.) Partial fix
12056 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
12057 c++/895.
12058 * c-exp.y (qualified_type): Handle types nested within classes.
12059 * cp-namespace.c: Update comments.
12060 (cp_set_block_scope): Delete #if 0.
12061 (cp_lookup_nested_type): Handle types nested within classes.
12062 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
12063 when appropriate.
12064 (add_partial_symbol): Add the name of the enclosing namespace to
12065 types.
12066 (pdi_needs_namespace): New.
12067 (add_partial_namespace): Tweak comment.
12068 (add_partial_structure): New.
12069 (psymtab_to_symtab_1): Initialize processing_current_prefix
12070 here...
12071 (process_die): instead of here.
12072 (read_structure_scope): Try to figure out the name of the class or
12073 namespace that the structure might be defined within.
12074 (read_enumeration): Generate fully-qualified names, if possible.
12075 (read_namespace): Don't set name to NULL.
12076 (die_specification): New.
12077 (new_symbol): Generate fully-qualified names for types.
12078 (read_type_die): Determine appropriate prefix.
12079 (determine_prefix): New.
12080 (typename_concat): New.
12081 (class_name): New.
12082 * valops.c (value_aggregate_elt): Pass NOSIDE to
12083 value_struct_elt_for_reference.
12084 (value_struct_elt_for_reference): Make static, add NOSIDE
12085 parameter, call value_maybe_namespace_elt as a last resort.
12086 (value_namespace_elt): Break out code into
12087 value_maybe_namespace_elt.
12088 (value_maybe_namespace_elt): New.
12089
87783b8b
AC
120902004-01-12 Andrew Cagney <cagney@redhat.com>
12091
12092 * mips-tdep.c (mips_convert_register_p): Handle both raw and
12093 cooked floating-point registers.
12094 (mips_gdbarch_init): Set convert_register_p, register_to_value,
12095 and value_to_register.
12096
6503b91e
AC
120972004-01-13 Andrew Cagney <cagney@redhat.com>
12098
12099 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
12100 * gdbarch.c: Re-generate.
12101 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12102 FUNCTION_START_OFFSET.
12103 * v850-tdep.c (v850_gdbarch_init): Ditto.
12104 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12105 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12106 * sh-tdep.c (sh_gdbarch_init): Ditto.
12107 * s390-tdep.c (s390_gdbarch_init): Ditto.
12108 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12109 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12110 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12111 * mips-tdep.c (mips_gdbarch_init): Ditto.
12112 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12113 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
12114 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12115 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12116 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12117 * i386-tdep.c (i386_gdbarch_init): Ditto.
12118 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12119 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12120 * frv-tdep.c (frv_gdbarch_init): Ditto.
12121 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12122 * cris-tdep.c (cris_gdbarch_init): Ditto.
12123 * avr-tdep.c (avr_gdbarch_init): Ditto.
12124 * arm-tdep.c (arm_gdbarch_init): Ditto.
12125 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12126
ea1dd7bc
DJ
121272004-01-13 Daniel Jacobowitz <drow@mvista.com>
12128
12129 * infrun.c (follow_fork_mode_ask): Remove.
12130 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
12131 (follow_fork): Simplify and remove internal error for
12132 follow_fork_mode_ask.
12133 (_initialize_infrun): Update "set follow-fork-mode" help text.
12134
0f0cffd2
AC
121352004-01-13 Andrew Cagney <cagney@redhat.com>
12136
12137 * configure.in: Update copyright year.
12138 (build_warnings): Add -Wunused-label.
12139 * configure: Re-generate.
12140
de38af99
AC
121412004-01-12 Andrew Cagney <cagney@redhat.com>
12142
954a7fba
AC
12143 * exec.h (exec_ops): Make "extern".
12144
de38af99
AC
12145 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
12146 the function is void.
12147 (mips_pseudo_register_write): Ditto.
12148
1a111ce3
AC
121492004-01-12 Andrew Cagney <cagney@redhat.com>
12150
12151 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
12152 call. Never defined.
12153 * sparc-tdep.h (struct frame_info): Add opaque declaration.
12154 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
12155 (struct sparc_gregset, struct regcache): Ditto.
12156 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
12157
48efe704
AC
121582004-01-12 Andrew Cagney <cagney@redhat.com>
12159
12160 * mi/ChangeLog: Delete file. Renamed to ...
12161 * mi/ChangeLog-1999-2003: New file.
12162 * tui/ChangeLog: Delete file. Renamed to ...
12163 * tui/ChangeLog-1998-2003: New file.
fe61caab 12164
a54124c5
MK
121652004-01-11 Mark Kettenis <kettenis@gnu.org>
12166
2ca62865
MK
12167 * sparc64nbsd-tdep.c: Include "regset.h".
12168 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
12169 Remove variables.
12170 (fetch_core_registers): Remove function.
12171 (sparc64nbsd_core_fns): Remove variable.
12172 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
12173 functions.
12174 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
12175 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
12176 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
12177
ca9d58e9
MK
12178 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
12179 sparc_extract_struct_value_address.
12180 (sparc32_gdbarch_init): Set extract_struct_value_address.
12181 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
12182 function.
12183 (sparc64_init_abi): Set extract_struct_value_address. Don't set
12184 return_value_on_stack.
12185
3cc87ec0
MK
12186 * NEWS: Mention that %cs and %ss have been added to the AMD64
12187 configurations
12188
5bf00f29
MK
12189 * frame.c: Update copyright year.
12190 (get_prev_frame): Improve comment.
12191
4f7ec84e
MK
12192 * sparc64fbsd-tdep.c: Include "regset.h".
12193 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12194 Remove variables.
12195 (fetch_core_registers): Remove function.
12196 (sparc64fbsd_core_fns): Remove variable.
12197 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
12198 functions.
12199 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
12200 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 12201 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 12202
4e7b0cd3
MK
12203 * sparcnbsd-tdep.c: Include "regset.h".
12204 (fetch_core_registers): Remove function.
12205 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
12206 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
12207 functions.
12208 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
12209 TDEP->fpregset.
46b58ce9 12210 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 12211
a54124c5
MK
12212 * sparc-tdep.h (struct regset): Provide opaque declaration.
12213 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
12214 fpregset and sizeof_fpregset members.
12215 * sparc-tdep.c (struct regset): Provide opaque declaration.
12216 (sparc_regset_from_core_section): New function.
12217 (sparc32_gdbarch_init): Initialize TDEP->gregset,
12218 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
12219 Set regset_from_core_section when appropriate.
12220
29ff87c5
MK
122212004-01-10 Mark Kettenis <kettenis@gnu.org>
12222
79b1ab3d
MK
12223 * x86-64-tdep.c (amd64_non_pod_p): New function.
12224 (amd64_classify_aggregate): Return class memory for non-POD
12225 C++ structure types.
12226
6470d250
MK
12227 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
12228 argument. Use it to reserve a register if necessary.
12229 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
12230 amd64_push_arguments.
12231
562c50c2
MK
12232 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
12233
af233647
MK
12234 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
12235 register numbers in comments.
12236 * x86-64-tdep.h: Update copyright year.
12237 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
12238 Adjust for addition of %cs and %ss.
12239 * amd64fbsd-nat.c: Update copyright year.
12240 (reg_offset): Add register offsets for %cs and %ss.
12241 * amd64fbsd-tdep.c: Update copyright year.
12242 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
12243 (amd64fbsd_sc_reg_offset): Likewise.
12244 * x86-64-linux-nat.c: Update copyright year.
12245 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
12246 and %ss.
12247 * amd64nbsd-nat.c: Update copyright year.
12248 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
12249 * amd64nbsd-tdep.c: Update copyright year.
12250 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
12251 * x86-64-linux-tdep.c: Update copyright year.
12252 (user_to_gdb_regmap): Add mapping for %cs and %ss.
12253 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
12254 * regformats/reg-x86-64.dat: Add %cs and %ss.
12255
29ff87c5
MK
12256 * blockframe.c (inside_entry_func): Reformat. Introduce new local
12257 variables to prevent long lines. Update comments to reflect
12258 reality.
12259
38d518c9
EZ
122602004-01-09 David Carlton <carlton@kealia.com>
12261
12262 Checked in by Elena Zannoni <ezannoni@redhat.com>.
12263 * dwarf2read.c (read_namespace): Pull out name-generating code
12264 into namespace_name. Rename previous_namespace to previous_prefix
12265 and processing_current_namespace to processing_current_prefix..
12266 (namespace_name): New function.
12267 (add_partial_symbol): Substitute uses of pdi->name with
12268 actual_name.
12269 * cp-support.h: Rename processing_current_namespace to
12270 processing_current_prefix.
12271 Update copyright year.
12272 * cp-namespace.c: Rename processing_current_namespace to
12273 processing_current_prefix.
12274 Update copyright year.
fe61caab 12275
1e4728e7
AC
122762004-01-09 Andrew Cagney <cagney@redhat.com>
12277
12278 * jv-valprint.c, ser-unix.c: Add missing copyright years.
12279
c77c642a
MK
122802004-01-09 Mark Kettenis <kettenis@gnu.org>
12281
12282 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
12283 complaining.
12284 (process_one_symbol): Deal with N_PATCH stabs.
12285
b44e9041
EZ
122862004-01-09 Elena Zannoni <ezannoni@redhat.com>
12287
12288 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
12289 ifdeffed code.
12290 Update copyright year.
38d518c9 12291
eccfb640
MC
122922004-01-08 Michael Chastain <mec.gnu@mindspring.com>
12293
12294 * config/pa/tm-hppa.h: Update extern declarations for
12295 hppa32_hpux_frame_saved_pc_in_sigtramp,
12296 hppa32_hpux_frame_base_before_sigtramp, and
12297 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
12298
848c5feb
MC
122992004-01-08 Michael Chastain <mec.gnu@mindspring.com>
12300
12301 * config/pa/tm-hppah.h: Update copyright years.
12302
3cc5d663
AC
123032004-01-08 Andrew Cagney <cagney@redhat.com>
12304
12305 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
12306 (mips_o32_reg_struct_has_addr): Delete function.
12307 (mips_gdbarch_init): Update.
12308 (mips_extract_struct_value_address): Delete function.
12309
bfec0b41
JJ
123102004-01-08 David Mosberger <davidm@hpl.hp.com>
12311
12312 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
12313 reality.
12314
16e109ca
AC
123152004-01-07 Andrew Cagney <cagney@redhat.com>
12316
6214a8a1
AC
12317 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
12318 architecture's elf flags (when available).
12319
8d5838b5
AC
12320 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
12321 FPU to the start, check the MIPS FPU when looking for an old
12322 architecture.
12323 (set_mipsfpu_single_command): Update the architecture.
12324 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
12325
480d3dd2
AC
12326 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
12327 (mips_mask_address_p): Add "tdep" parameter.
12328 (show_mask_address, mips_addr_bits_remove): Update.
12329 (mips_dump_tdep): Update.
12330 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
12331 (MIPS_STACK_ARGSIZE): Delete macro.
12332 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
12333 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
12334 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
12335 (mips_dump_tdep): Update.
12336 (MIPS_SAVED_REGSIZE): Delete macro.
12337 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
12338 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
12339 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
12340 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
12341 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
12342 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
12343 (mips_pop_frame, return_value_location): Update.
12344 (mips_n32n64_return_value, mips_dump_tdep): Update.
12345
ec03c1ac
AC
12346 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
12347 MIPS ABI.
12348
16e109ca
AC
12349 * mips-tdep.c: Update copyright.
12350 (mips_gdbarch_init): Merge two code blocks handling the register
12351 name and number layout.
12352
15255275
MS
123532004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
12354
12355 * tracepoint.c (validate_actionline): Fix segv at EOF
12356
9f9057da
MC
123572004-01-07 Michael Chastain <mec.gnu@mindspring.com>
12358
12359 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
12360 properly for static fields.
12361
0127c0d3 123622004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 12363 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
12364
12365 * disasm.c: Update copyright to include 2004.
12366 (do_mixed_source_and_assembly): For uiout asm list
12367 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 12368 NULL and do so prior to loop. Only reset when we close off
0127c0d3 12369 the tuple/list. Move check for whether to close off the
fe61caab 12370 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
12371 on each loop iteration.
12372
5269965e
AC
123732004-01-05 Andrew Cagney <cagney@redhat.com>
12374
54f1137d
AC
12375 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
12376 should be a switch case and not a label.
12377 * mips-tdep.c (mips32_next_pc): Delete unused labels
12378 "greater_equal_branch" and "less_zero_branch".
12379 * jv-valprint.c (java_print_value_fields): Delete unused label
12380 "flush_it".
12381
5269965e
AC
12382 * target.c (unpush_target): Only close a target that is in the
12383 target stack.
12384
dbc22fa1
MK
123852004-01-05 Mark Kettenis <kettenis@gnu.org>
12386
9515395e
MK
12387 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
12388 address from [sp + 64] instead of %o2.
12389
dbc22fa1
MK
12390 * frame.c (get_prev_frame): Don't try to unwind the PC. This
12391 fixes PR backtrace/1476.
12392
5439edaa
AC
123932004-01-05 Andrew Cagney <cagney@redhat.com>
12394
12395 * libunwind-frame.h (struct frame_id): Add opaque declaration,
12396 move to start of file.
12397 * i386-tdep.h (struct regcache): Add opaque declaration.
12398 * config/ia64/nm-linux.h (struct target_ops): Add opaque
12399 declaration.
12400 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
12401 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
12402 * win32-nat.c (fake_create_process): Use ISO C style definition.
12403 * stabsread.c (define_symbol): Delete #ifndef
12404 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
12405 stabs_argument_has_addr call, macro never defined.
12406
19061abe
MC
124072004-01-04 Michael Chastain <mec.gnu@mindspring.com>
12408
12409 * op50-rom.c: Delete.
12410 * w89k-rom.c: Delete.
12411 * Makefile.in: Remove references.
12412
e53bef9f
MK
124132004-01-04 Mark Kettenis <kettenis@gnu.org>
12414
12415 * x86-64-tdep.c: Update copyright year.
12416 (struct amd64_register_info): Rename from x86_64_register_info.
12417 (amd64_register_info): Rename from x86_64_register_info.
12418 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
12419 (amd64_register_name): Rename from x86_64_register_name.
12420 (amd64_register_type): Rename from x86_64_register_type.
12421 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
12422 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
12423 (amd64_dwarf_reg_to_regnum): Rename from
12424 x86_64_dwarf_reg_to_regnum.
12425 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
12426 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
12427 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
12428 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
12429 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
12430 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
12431 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
12432 (amd64_frame_cache): Rename from x86_64_frame_cache.
12433 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
12434 (amd64_frame_prev_register): Rename from
12435 x86_64_frame_prev_register.
12436 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
12437 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
12438 (amd64_sigtramp_frame_cache): Rename from
12439 x86_64_sigtramp_frame_cache.
12440 (amd64_sigtramp_frame_prev_register): Rename from
12441 x86_64_sigtramp_frame_prev_register.
12442 (amd64_sigtramp_frame_unwind): Rename from
12443 x86_64_sigtramp_frame_unwind.
12444 (amd64_sigtramp_frame_sniffer): Rename from
12445 x86_64_sigtramp_frame_sniffer.
12446 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
12447 (amd64_frame_base): Rename from x86_64_frame_base.
12448 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
12449 (amd64_frame_align): Rename from x86_64_frame_align.
12450 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
12451 (amd64_regset_from_core_section): Rename from
12452 x86_64_regset_from_core_section.
12453 (x86_64_init_abi): Update comments.
12454
fca6aa58
NR
124552004-01-04 Nick Roberts <nick@nick.uklinux.net>
12456
12457 * MAINTAINERS (write after approval): Add myself.
12458
8ada74e3
MK
124592004-01-04 Mark Kettenis <kettenis@gnu.org>
12460
12461 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
12462 `float' arguments.
12463
5154b0cd
MK
124642004-01-04 Mark Kettenis <kettenis@gnu.org>
12465
12466 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
12467 such that it mentions a specific version of GCC that exhibits this
12468 bug.
12469
fb316966
MK
124702004-01-03 Mark Kettenis <kettenis@gnu.org>
12471
200cc553
MK
12472 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
12473 structure that has a single `float' member, store it in %f1 in
12474 addition to %f0.
12475
e226a4a0
MK
12476 * sparc-sol2-nat.c: Add missing '\'.
12477
b9d4c5ed
MK
12478 * sparc-tdep.c (sparc32_return_value): New function.
12479 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
12480 Remove functions.
12481 (sparc32_gdbarch_init): Set return_value, don't set
12482 extract_return_value, store_return_value, use_struct_convention
12483 and return_value_on_stack.
12484
fb316966
MK
12485 * sparc-sol2-nat.c: Add missing ')'.
12486
1af510a8
JB
124872004-01-03 J. Brobecker <brobecker@gnat.com>
12488
12489 * infrun.c (handle_step_into_function): New function.
12490 (handle_inferior_event): Extract out some code into the new
12491 function above.
12492
5cf4d23a
JB
124932004-01-03 J. Brobecker <brobecker@gnat.com>
12494
12495 * infrun.c (handle_inferior_event): Move the declaration of
12496 real_stop_pc inside the if blocks where it is used.
12497
60af1db2
MK
124982004-01-03 Mark Kettenis <kettenis@gnu.org>
12499
12500 * sparc64-tdep.c (sparc64_16_byte_align_p)
12501 (sparc64_store_floating_fields, sparc64_store_floating_fields):
12502 Use check_typedef to get subtypes of structures and unions.
12503 (sparc64_store_return_value): Fix calculation of the appropriate
12504 offset into VALBUF when storing a structure or union.
12505 (sparc64_return_value): New function.
12506 (sparc64_use_struct_convention): Remove function.
12507 (sparc64_init_abi): Set return_value, don't set
12508 extract_return_value, store_return_value and
12509 use_struct_convention.
12510
1a901d3f
EZ
125112004-01-03 Eli Zaretskii <eliz@elta.co.il>
12512
12513 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
12514 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
12515 gdb/config/alpha/xm-alphaosf.h,
12516 gdb/config/powerpc/tm-ppcle-eabi.h,
12517 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
12518 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
12519 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
12520 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
12521 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
12522 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
12523 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
12524 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
12525 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
12526 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
12527 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
12528 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
12529 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
12530 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
12531 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
12532 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
12533 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
12534 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
12535 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
12536 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
12537 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
12538 Remove lines for .cvsignore files.
12539
ef52e463
JB
125402004-01-03 J. Brobecker <brobecker@gnat.com>
12541
12542 * infrun.c: Back out the previous change.
12543
cb1bf9dc
MK
125442004-01-03 Mark Kettenis <kettenis@gnu.org>
12545
f0424ef6
MK
12546 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
12547 sparc-*-sunos4* to the list of REMOVED configurations.
12548
cb1bf9dc
MK
12549 * configure.tgt: Add back sparc-*-vxworks*.
12550 * remote-vxsparc.c: Remove all includes except for "defs.h",
12551 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
12552 Include "sparc-tdep.h".
12553 (SPARC_R_G1): New define.
12554 (vxsparc_gregset): New variable.
12555 (ext_format_sparc): Remove extern declaration.
12556 (vx_read_register): Rewrite to use sparc32_supply_gregset and
12557 sparc32_supply_fpregset.
12558 (vx_write_register): Rewrite to use sparc32_collect_gregset,
12559 sparc_collect_rwindow and sparc32_collect_fpregset.
12560 * config/sparc/tm-vxworks.h: New file, based on recently removed
12561 tm-vxsparc.h.
12562 * config/sparc/vxworks.mt: New file, based on recently removed
12563 vxworks.mt.
fe61caab 12564
5e938f9f
JB
125652004-01-03 J. Brobecker <brobecker@gnat.com>
12566
12567 * infrun.c (handle_step_into_function): New function.
12568 (handle_inferior_event): Extract out some code into the new
12569 function above.
12570
386c036b
MK
125712004-01-02 Mark Kettenis <kettenis@gnu.org>
12572
12573 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
12574 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
12575 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
12576 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
12577 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
12578 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
12579 (sparc_nat_h): New variable.
12580 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
12581 (tm-sun4os4.h): Remove dependency.
12582 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
12583 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
12584 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
12585 sparc-tdep.o): Update dependencies.
12586 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
12587 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
12588 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
12589 dependencies.
12590 * configure.host: Remove existing sparc-*-lynxos*,
12591 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
12592 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
12593 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
12594 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
12595 triplets.
12596 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
12597 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
12598 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
12599 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
12600 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
12601 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
12602 sparc64-*-solaris2* and sparc64-*-* triplets.
12603 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
12604 "symtab.h" and "objfiles.h".
12605 (BIAS): Remove define.
12606 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
12607 (X_DISP19): Remove macros.
12608 (sparc_fetch_instruction): Remove function.
12609 (struct gdbarch_tdep): Remove definition.
12610 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
12611 (sparc_breakpoint_from_pc): Remove function.
12612 (struct sparc64_frame_cache): Remove definition.
12613 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
12614 sparc64_unwind_pc): Remove functions.
12615 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
12616 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
12617 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
12618 (sparc64_frame_cache): Change return type to `struct
12619 sparc_frame_cache *'. Simply call sparc_frame_cache.
12620 (sparc64_frame_this_id, sparc64_frame_prev_register,
12621 sparc64_frame_base_address): Use `struct sparc_frame_cache'
12622 instead of `struct sparc64_frame_cache.
12623 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
12624 sparc_analyze_control_transfer, sparc_software_single_step,
12625 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
12626 _initialize_sparc64_tdep): Remove functions.
12627 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
12628 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
12629 macros.
12630 (sparc64_supply_gregset, sparc64_collect_gregset,
12631 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
12632 (sparc64_init_abi): New function.
12633 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
12634 inclusion guard. Include "sparc-tdep.h".
12635 (BIAS): Define.
12636 (r_tstate_offset, r_fprs_offset): New defines.
12637 (enum sparc_regnum): Remove defenition.
12638 (enum sparc64_regnum): Reformat.
12639 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
12640 (sparc64_init_abi, sparc64_supply_gregset,
12641 sparc64_collect_gregset, sparc64_supply_fpregset,
12642 sparc64_collect_fpregset): New prototypes.
12643 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
12644 Add extern declarations.
12645 (sparc64_sol2_init_abi): New prototype.
12646 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12647 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12648 prototypes.
12649 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
12650 "sparnbsd-nat.h".
12651 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
12652 functions.
12653 (_initialize_sparc64fbsd_nat): Remove initialization of
12654 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
12655 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 12656 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
12657 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
12658 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
12659 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
12660 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
12661 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
12662 (sparc64fbsd_r_y_offset): Remove variables.
12663 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12664 Make static and const.
12665 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12666 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12667 functions.
12668 (sparc64fbsd_gregset): New variable.
12669 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
12670 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
12671 and sparc64_supply_fpregset.
12672 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
12673 (sparc64fbsd_sigtramp_frame_this_id)
12674 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
12675 (sparc64fbsd_sigtramp_frame_unwind): New variable.
12676 (sparc64fbsd_sigtramp_frame_sniffer): New function.
12677 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
12678 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
12679 * sparcnbsd-tdep.c: Update copyright year. Include
12680 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
12681 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
12682 "value.h" and "sparcnbsd-tdep.h".
12683 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
12684 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
12685 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
12686 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
12687 defines.
12688 (sparcnbsd_gregset): New variable.
12689 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
12690 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
12691 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
12692 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
12693 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
12694 variables.
12695 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
12696 (sparc32nbsd_sigcontext_frame_this_id)
12697 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
12698 (sparc32nbsd_sigcontext_frame_unwind): New variable.
12699 (sparc32nbsd_sigtramp_frame_sniffer): New function.
12700 (sparcnbsd_get_longjmp_target_32,
12701 sparcnbsd_get_longjmp_target_64): Remove functions.
12702 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
12703 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
12704 sparcnbsd_init_elf): Remove.
12705 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
12706 (sparcnbsd_elf_init_abi): New functions.
12707 (_initialize_sparcnbsd_tdep): New prototype.
12708 (_initialize_sparnbsd_tdep): Update.
12709 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
12710 corelow.o. Add sparc64-nat.o and sparc-nat.o.
12711 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
12712 * config/sparc/linux.mh: Update comment.
12713 (XM_FILE, HOST_IPC): Remove variables.
12714 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
12715 sparc-linux-nat.o.
12716 * config/sparc/linux.mt: Update comment.
12717 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
12718 * config/sparc/nbsd.mt: Reformat.
12719 * config/sparc/nbsd64.mh: Update comment.
12720 (NATDEPFILES): Add sparc-nat.o.
12721 * config/sparc/nbsd64.mt: Update comment.
12722 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
12723 (TM_FILE): Set to tm-nbsd.h.
12724 * config/sparc/nbsdelf.mh: Update comment.
12725 (NATDEPFILES): Add sparc-nat.o.
12726 (XM_FILE): Delete.
12727 * config/sparc/nbsdaout.mh: Update comment.
12728 (NATDEPFILES): Add sparc-nat.o
12729 (XM_FILE): Delete.
12730 * config/sparc/nm-linux.h: Update copyright year. Don't include
12731 "config/nm-svr4.h" and "solib.h". Add protection against multiple
12732 inclusion.
12733 (KERNEL_U_SIZE): Remove define.
12734 (kernel_u_size): Remove prototype.
12735 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
12736 * config/sparc/nm-nbsd.h: Update copyright. Don't include
12737 "regcache.h".
12738 (CHILD_PREPARE_TO_STORE): Remove define.
12739 * config/sparc/nm-nbsdaout.h: Tweak some comments.
12740 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
12741 sparcnbsd-nat.c: Rewrite files.
12742 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
12743 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
12744 sparcnbsd-tdep.h: Remove files.
12745 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
12746 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
12747 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
12748 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
12749 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
12750 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
12751 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
12752 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
12753 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
12754 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
12755 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
12756 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
12757 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
12758 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
12759 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
12760 * config/sparc/linux64.mh, config/sparc/linux64.mt,
12761 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
12762 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
12763 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
12764
ee84457a
AC
127652004-01-02 Andrew Cagney <cagney@redhat.com>
12766
12767 From 2003-12-18 Kazuhiro Inaoka:
12768 * configure.host: Add m32r-linux target.
12769
0bc2134e
MC
127702004-01-02 Michael Chastain <mec.gnu@mindspring.com>
12771
12772 * top.c (print_gdb_version): Update year to 2004.
12773
89a72f9c
MM
127742004-01-02 Mark Mitchell <mark@codesourcery.com>
12775
12776 * MAINTAINERS: Add myself to the write-after-approval category.
12777
86b013ed
DJ
127782004-01-02 Daniel Jacobowitz <drow@mvista.com>
12779
12780 From Bernardo Innocenti <bernie@develer.com>:
12781 * configure.tgt: Add uClinux target.
12782
e42c9534
AC
127832004-01-02 Andrew Cagney <cagney@redhat.com>
12784
12785 * utils.c (do_my_cleanups): Make static, add forward declaration.
12786 * defs.h (do_my_cleanups): Delete declaration.
12787
162467d3
EZ
127882004-01-02 Eli Zaretskii <eliz@elta.co.il>
12789
12790 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
12791 bfd/ChangeLog-0203.
12792
78434e59
MK
127932004-01-02 Mark Kettenis <kettenis@gnu.org>
12794
12795 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
12796 in <machine/reg.h>.
12797 * configure, config.in: Regenerate.
12798
48efe704
AC
12799For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
12800tui/ChangeLog-1998-2003.
c906108c
SS
12801\f
12802Local Variables:
12803mode: change-log
12804left-margin: 8
12805fill-column: 74
12806version-control: never
12807End:
This page took 1.198732 seconds and 4 git commands to generate.