* configure.in: Really disable the TUI if an enhanced curses
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
9cc52bde
MK
12004-10-10 Mark Kettenis <kettenis@gnu.org>
2
3 * configure.in: Really disable the TUI if an enhanced curses
4 library isn't found.
5 * configure: Regenerate.
6
151fc45b
MK
72004-10-09 Mark Kettenis <kettenis@gnu.org>
8
9 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
10 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
11 * config/i386/nm-nbsdaout.h: Remove file.
12 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
13 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
14 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
15 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
16 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
17 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
18 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
19 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
20 (ldd, ld_un, ld_2): Remove defines.
21 * config/i386/nm-obsd.h: Likewise.
22
375c0479
PH
232004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
24
25 * ada-lex.l: Remove useless rule whose right-context clause
26 causes unreferenced static function warning for yyrealloc.
27 (ada_flex_use): Remove the artificial reference to yyrealloc.
28
c8e73a31
AC
292004-10-08 Andrew Cagney <cagney@gnu.org>
30
31 * target.h (struct target_ops): Rename to_xfer_memory to
32 deprecated_xfer_memory.
33 * target.c: Update.
34 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
35 * wince.c: Update.
36 * win32-nat.c: Update.
37 * v850ice.c: Update.
38 * uw-thread.c: Update.
39 * thread-db.c: Update.
40 * sol-thread.c: Update.
41 * remote.c: Update.
42 * remote-vx.c: Update.
43 * remote-st.c: Update.
44 * remote-sim.c: Update.
45 * remote-sds.c: Update.
46 * remote-rdp.c: Update.
47 * remote-rdi.c: Update.
48 * remote-mips.c: Update.
49 * remote-m32r-sdi.c: Update.
50 * remote-e7000.c: Update.
51 * procfs.c: Update.
52 * ppc-bdm.c: Update.
53 * nto-procfs.c: Update.
54 * monitor.c: Update.
55 * linux-nat.c: Update.
56 * inftarg.c: Update.
57 * hpux-thread.c: Update.
58 * go32-nat.c: Update.
59 * gnu-nat.c: Update.
60 * exec.c: Update.
61 * corelow.c: Update.
62 * bsd-kvm.c: Update.
63 * aix-thread.c: Update.
64
aa869812
AC
652004-10-08 Andrew Cagney <cagney@gnu.org>
66
67 * target.c (debug_target): Move to near start of file.
68 (target_stopped_data_address_p): Re-org logic, add casts.
69
8dcef9cf
MK
702004-10-02 Mark Kettenis <kettenis@gnu.org>
71
72 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
73 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
74 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
75 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
76 New defines.
77
4aa7a7f5
JJ
782004-10-08 Jeff Johnston <jjohnstn@redhat.com>
79
80 * target.h (to_stopped_data_address): Change prototype to
81 take a CORE_ADDR pointer and return an int.
82 * target.c (update_current_target): Change to_stopped_data_address
83 to match new prototype.
84 (debug_to_stopped_data_address): Change appropriately.
85 * breakpoint.c (bpstat_stop_status): Change call to
86 target_stopped_data_address to use new prototype.
87 * frv-tdep.c (frv_have_stopped_data_address): New function.
88 (frv_stopped_data_address): Change to new prototype and
89 functionality.
90 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
91 prototype and functionality.
92 (ia64_stopped_by_watchpoint): New function.
93 * i386-nat.c (i386_stopped_data_address): Change to new
94 prototype and functionality.
95 (i386_stopped_by_watchpoint): New function.
96 * remote.c (remote_stopped_data_address): Change to new prototype
97 and functionality.
98 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
99 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
100 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
101 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
102 new i386_stopped_by_watchpoint function.
103 (i386_stopped_by_watchpoint): New prototype.
104 (i386_stoppped_data_address): Change to new prototype.
105 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
106 new ia64_stopped_by_watchpoint function.
107 (ia64_stopped_by_watchpoint): New prototype.
108 (ia64_stopped_data_address): Ditto.
109
61ee279c
PH
1102004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
111
112 * ada-typeprint.c (ada_print_type): Use int_string for printing
113 modulus of modular type.
114 * ada-lang.h (ada_modulus): Change return type to unsigned.
115 * ada-lang.c (ada_language_arch_info): Correct type of
116 string_char_type.
117 (ada_modulus): Return unsigned result.
118 (ada_lookup_symbol): Remove user disambiguation and modify comment
119 accordingly.
120
1212004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
122
123 Committed by Paul Hilfinger.
124 * ada-lang.c (decode_packed_array): On big-endian targets,
125 left-justify the value if it comes with a modular type.
126
1272004-10-08 Joel Brobecker <brobecker@gnat.com>
128
129 Committed by Paul Hilfinger.
130 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
131 (is_name_suffix): Add support for "___JM" suffixes.
132 (ada_check_typedef): Renames ada_completed_type.
133 Update all users of CHECK_TYPEDEF, check_typedef, and
134 ada_complete_type to call ada_check_typedef.
135 * ada-typeprint.c: Likewise.
136 * ada-valprint.c: Likewise.
137
b6c25a56
CV
1382004-10-08 Corinna Vinschen <vinschen@redhat.com>
139
140 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
141
83ca6a46
NR
1422004-10-08 Nick Roberts <nickrob@snap.net.nz>
143
144 * MAINTAINERS: Update e-mail address.
145
1fd8cd20
DJ
1462004-10-07 Daniel Jacobowitz <dan@debian.org>
147
148 From Maciej W. Rozycki <macro@mips.com>:
149 * mips-tdep.c (mips32_next_pc): Check the register's contents,
150 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
151
cea15572
KI
1522004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
153
154 * m32r-tdep.c (decode_prologue): Support functions written
155 in assembler language. Recognize trap instructions as the
156 end of prologue.
157 (m32r_frame_unwind_cache): Ditto.
158 (m32r_skip_prologue): Extend search limit. Quit analyzing
159 prologue if pc's location is not readable.
160
23485554
PH
1612004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
162
163 * Makefile.in (.l.c): Do conversions of names of alloc and free
164 functions that are done for .y.c files, plus special one
165 for yy_flex_realloc. Also, correct missing-file tests here.
166 * ada-lex.l (malloc, free): Remove macros.
167 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
168 xrealloc.
169 (ada_flex_use): Dummy definition to remove warnings about unused
170 functions.
171 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
172 to suppress warning.
173
c0409442
CV
1742004-10-06 Corinna Vinschen <vinschen@redhat.com>
175
176 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
177 RETURN_VALUE.
178 (sh_return_value_fpu): Ditto for CPUs with FPU.
179 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
180 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
181 Install sh_return_value_nofpu resp. sh_return_value_fpu as
182 RETURN_VALUE functions.
183
9bed62d7
CV
1842004-10-06 Corinna Vinschen <vinschen@redhat.com>
185
186 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
187 (sh_pseudo_register_write): Ditto.
188
03131d99
CV
1892004-10-06 Corinna Vinschen <vinschen@redhat.com>
190
191 * sh-tdep.c (IS_MACL_STS): New define.
192 (IS_MOVI20): Ditto.
193 (IS_MACL_LDS): Ditto.
194 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
195 instructions in prologue.
196 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
197 instructions in epilogue.
198
da962468
CV
1992004-10-06 Corinna Vinschen <vinschen@redhat.com>
200
201 * sh-tdep.c (SH_NUM_REGS): Define as 67.
202 (sh_sh_register_name): Add eight empty register names.
203 (sh_sh3_register_name): Ditto.
204 (sh_sh3e_register_name): Ditto.
205 (sh_sh2e_register_name): Ditto.
206 (sh_sh2a_register_name): New function, defining SH2A register set.
207 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
208 in nofpu case.
209 (sh_sh_dsp_register_name): Add eight empty register names.
210 (sh_sh3_dsp_register_name): Ditto.
211 (sh_sh4_register_name): Ditto.
212 (sh_sh4_nofpu_register_name): Ditto.
213 (sh_sh4al_dsp_register_name): Ditto.
214 (sh2a_show_regs): New function.
215 (sh2a_nofpu_show_regs): New function.
216 (sh_sh2a_register_type): New function.
217 (do_bank_register_info): New function.
218 (sh_print_pseudo_register): Call do_bank_register_info.
219 Call sh_print_pseudo_register for valid "bank" register.
220 (sh_sh2a_register_sim_regno): New function.
221 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
222 Increment pseudo register count by one for all sh variants with
223 pseudo registers to accomodate pseudo bank register.
224 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
225 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
226 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
227 Increment pseudo register numbers.
228
1326e61b
CV
2292004-10-06 Corinna Vinschen <vinschen@redhat.com>
230
231 * dwarf2read.c (read_subroutine_type): Call make_function_type
232 instead of lookup_function_type.
233
146c42e3
JB
2342004-10-05 Jim Blandy <jimb@redhat.com>
235
236 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
237 (Previous change missed some uses.)
238
1df84f13
AC
2392004-10-05 Andrew Cagney <cagney@gnu.org>
240
241 * target.h (deprecated_child_ops): Rename child_ops.
242 * wince.c: Update copyright. Rename child_ops.
243 * win32-nat.c: Rename child_ops.
244 * target.c: Rename child_ops.
245 * rs6000-nat.c: Rename child_ops.
246 * linux-nat.c: Rename child_ops.
247 * infttrace.c: Rename child_ops.
248 * inftarg.c: Rename child_ops.
249 * infptrace.c: Rename child_ops.
250 * hppah-nat.c: Update copyright. Rename child_ops.
251 * hpux-thread.c: Update copyright. Rename child_ops.
252
21e3b9b9
DJ
2532004-10-05 Daniel Jacobowitz <dan@debian.org>
254
255 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
256
de83afe7
AC
2572004-10-05 Andrew Cagney <cagney@gnu.org>
258
259 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
260
10b3939b
DJ
2612004-10-05 Daniel Jacobowitz <dan@debian.org>
262
263 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
264 (die_ref_table): Remove.
265 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
266 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
267 the usage of this type.
268 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
269 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
270 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
271 (dwarf2_create_include_psymtab): Update comment.
272 (find_partial_die): Remove third argument. Remove unreachable call
273 to error ().
274 (dwarf2_find_containing_comp_unit): Update comments. Change one
275 assertion to an error. Remove an unreachable error.
276 (dwarf2_find_comp_unit): Update comments.
277 (type_at_offset): Remove dead code.
278 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
279 (store_in_ref_table): Add CU argument.
280 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
281 inter-compilation-unit references.
282 (load_full_comp_unit, process_full_comp_unit): New functions, based
283 on psymtab_to_symtab_1.
284 (psymtab_to_symtab_1): Use them.
285 (dwarf2_add_dependence): New function.
286 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
287 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
288 (partial_die_parent_scope, guess_structure_name): Update for changes
289 to find_partial_die.
290 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
291 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
292 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
293 (read_die_and_children): Update call to store_in_ref_table.
294 (do_free_die_list_cleanup): Remove.
295 (fixup_partial_die): Update for changes to find_partial_die.
296 (read_full_die): Handle queueing absolute references.
297 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
298 (dwarf2_attr, die_specification, die_type)
299 (die_containing_type, dwarf2_extension): Update calls to
300 follow_die_ref.
301 (dump_die): Update DW_FORM_ref* handling.
302 (dwarf2_get_ref_die_offset): Likewise.
303 (free_one_comp_unit): Release the dies list.
304 (dwarf2_mark_helper): New function.
305 (dwarf2_mark): Use it.
306
998bdd68
MK
3072004-10-05 Mark Kettenis <kettenis@jive.nl>
308
309 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
310 when writing to memory.
311
14588880
KI
3122004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
313
314 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
315 (m32r_extract_struct_value_address): Delete function.
316 (m32r_return_value): New function.
317 (m32r_gdbarch_init): Instead of store_return_value,
318 extract_return_value, deprecated_extract_struct_value_address
319 and deprecated_use_struct_convention, set return_value.
320
dd5e6932
DJ
3212004-10-03 Daniel Jacobowitz <dan@debian.org>
322
323 * dwarf2read.c (read_subrange_type): Add comment for variable
324 sized arrays.
325
7dc1ef8d
PH
3262004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
327
328 * Makefile.in (.l.c): Modify rule for compatibility with recent
329 versions of flex, and remove most command-line options.
330 * ada-lex.l: Add %options line in place of -I -i and -s command-line
331 options.
332
1f8173e6
PH
3332004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
334
335 Turn on initial Ada support (mainly expression evaluation).
336
337 * Makefile.in (SFILES): Remove ada-tasks.c.
338 (HFILES_NO_SRCDIR): Add ada-lang.h.
339 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
340 (YYOBJ): Add ada-exp.o.
341 (rule .l.c): Generalize to not mention ada.
342 * symtab.c: Include ada-lang.h.
343 (symbol_natural_name, symbol_demangled_name)
344 (symbol_search_name): Add Ada case.
345
cb85a953
AC
3462004-10-01 Andrew Cagney <cagney@gnu.org>
347
3f3db248
AC
348 * Makefile.in (COMMON_OBS): Add inf-child.o.
349 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
350 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
351 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
352 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
353 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
354 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
355 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
356 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
357 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
358 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
359 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
360 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
361 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
362
cb85a953
AC
363 * target.c (xfer_using_stratum): Change return type to LONGEST.
364 On each iteration offset, readbuf and writebuf.
365 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
366 partial_length, and read/modify/write predicate, update comments.
367 Pass buffer.word to ptrace write.
368
963a6417
PH
3692004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
370
371 * symfile.c (init_filename_language_table): Add extensions for
372 Ada.
373 * defs.h (enum language): Add language_ada.
374 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
375 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
376 (add_symbols_from_enclosing_procs): Make a no-op for now.
377 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
378 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
379 (find_line_in_linetable, find_next_line_in_linetable)
380 (read_all_symtabs, is_plausible_func_for_line)
381 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
382 (is_runtime_sym_defined, check_size): Remove declaration.
383 (function_name_from_pc, ada_translate_error_message)
384 (ada_lookup_minimal_symbol): Remove definition.
385 (ada_add_block_symbols): Remove useless label.
386 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
387 useless declaration.
388 (ada_is_exception_sym): Likewise.
389
9b32d526
KI
3902004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
391
392 Add m32r-linux support.
393 * configure.tgt: Add m32r*-*-linux*.
394 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
395 and m32r-linux-tdep.c.
396 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
397 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
398 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
399 m32r-linux-tdep.c.
400 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
401 config/m32r/linux.mh, config/m32r/linux.mt,
402 config/m32r/nm-linux.h: New files.
403
2de118d3
JB
4042004-09-30 Joel Brobecker <brobecker@gnat.com>
405
406 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
407 (mips32_fetch_instruction): Remove, unused.
408
a9fe69d1
JB
4092004-09-30 Joel Brobecker <brobecker@gnat.com>
410
411 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
412 conditions that will always be true.
413
bc8ffc12
MK
4142004-09-30 Mark Kettenis <kettenis@gnu.org>
415
ba0cd111
MK
416 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
417 (vaxbsd_fetch_inferior_registers): Rename from
418 fetch_inferior_registers. Make static.
419 (vaxbsd_store_inferior_registers): Rename from
420 store_inferior_registers. Make static.
421 (_initialize_vaxbsd_nat): Construct and add target vector.
422 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
423 inftarg.o. Add inf-child.o and inf-ptrace.o.
424 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
425 inftarg.o. Add inf-child.o and inf-ptrace.o.
426 (NAT_FILE): Remove.
427 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
428 inftarg.o. Add inf-child.o and inf-ptrace.o.
429 (NAT_FILE): Remove.
430 * Makefile.in (vaxbsd-nat.o): Update dependencies.
431
bc8ffc12
MK
432 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
433 (m88kbsd_fetch_inferior_registers): Rename from
434 fetch_inferior_registers. Make static.
435 (m88kbsd_store_inferior_registers): Rename from
436 store_inferior_registers. Make static.
437 (_initialize_m88kbsd_nat): New prototype and function.
438 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
439 inftarg.o. Add inf-child.o and inf-ptrace.o.
440 (NAT_FILE): Remove.
441 * Makefile.in (m88kbsd-nat.o): Update dependencies.
442
27394598
AC
4432004-09-30 Andrew Cagney <cagney@gnu.org>
444
445 * target.c (target_xfer_partial): New function.
446 (target_read_memory_partial, target_write_memory_partial)
447 (default_xfer_partial, target_read_partial, target_write_partial)
448 (xfer_using_stratum): Use.
449 (debug_to_xfer_partial): Delete function.
450 (setup_target_debug): Do not override to_xfer_partial.
451
74a4fe32
MK
4522004-09-30 Mark Kettenis <kettenis@chello.nl>
453
454 * fork-child.c: Update copyright year. Fix coding style.
455
982526a1
MK
4562004-09-29 Mark Kettenis <kettenis@gnu.org>
457
458 * defs.h (msavestring, mstrsave): Remove prototypes.
459 * utils.c (msavestring, mstrsave): Remove functions.
460 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
461 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
462 of mstrsave.
463 * source.c (find_and_open_source): Use xstrdup instead of
464 mstrsave.
465
b8eb5af0
AC
4662004-09-30 Andrew Cagney <cagney@gnu.org>
467
0779438d
AC
468 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
469 (inf_ptrace_xfer_memory): Delete.
470 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
471 (target_read_memory, target_write_memory): Use xfer_using_stratum
472 when target_xfer_partial_p.
473 (debug_target): Move to start of file.
474 (target_read_memory_partial, target_write_memory_partial): Use
475 to_xfer_partial when target_xfer_partial_p.
476
f929a579
AC
477 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
478 inf_ptrace_xfer_memory with equivalent code.
479 * inftarg.c (child_xfer_partial): When performing a write, pass
480 writebuf to child_xfer_memory.
481
b8eb5af0
AC
482 * target.c (target_read_string): Use target_read_memory instead of
483 target_xfer_memory.
484
ee21b650
AC
4852004-09-29 Andrew Cagney <cagney@gnu.org>
486
d3e05d0d
AC
487 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
488 the address of status.
489
ee21b650
AC
490 * infptrace.c (ptrace_wait): Mention problem with HPUX.
491 (kill_inferior): Inline ptrace_wait call.
492 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
493 * inftarg.c (child_wait): Inline ptrace_wait call.
494
a182eed6
AC
495 * target.h (struct target_ops): Delete field to_post_wait.
496 (target_post_wait): Delete macro.
497 (child_post_wait): Delete declaration.
498 * target.c (update_current_target, update_current_target)
499 (debug_to_post_wait, setup_target_debug): Delete functions and
500 references.
501 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
502 * inftarg.c (child_post_wait): Delete.
503 (init_child_ops): Do not set to_post_wait.
504 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
505 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
506 * inf-child.c (inf_child_post_wait): Delete.
507 (inf_child_target): Do not set to_post_wait.
508 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
509 (inf_ptrace_target): Do not set to_post_wait.
510
ba0c540b
AC
511 * wince.c (child_ops): Delete.
512 * win32-nat.c (child_ops): Delete.
513
81977402
AC
514 * inftarg.c (inftarg_set_find_memory_regions)
515 (inftarg_set_make_corefile_notes): Delete functions.
516 (_initialize_linux_nat): Inline calls.
517
5ac10fd1
AC
518 * target.h (child_ops): Declare.
519 * inftarg.c (child_ops): Move from here ...
520 * target.c (child_ops): ... to here.
521 * wince.c (child_ops): Delete extern declaration.
522 * win32-nat.c (child_ops): Delete extern declaration.
523 * linux-nat.c (child_ops): Delete extern declaration.
524 * hpux-thread.c (child_ops): Delete extern declaration.
525
663408c2 5262004-09-28 Mark Kettenis <kettenis@gnu.org>
890c8f4d
MK
527
528 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
529
0dad8a66
MK
5302004-09-28 Mark Kettenis <kettenis@gnu.org>
531
532 * configure.in: Only set host_makefile_frag when building a native
533 debugger.
534 * configure: Regenerate.
e8d74ed3
MK
535
536 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
537 for OpenBSD ELF.
538
dba24537
AC
5392004-09-28 Andrew Cagney <cagney@gnu.org>
540
e979516b
AC
541 Problem identified by Paul Hilfinger.
542 * Makefile.in (ada_lex_c): Define.
543 (ada-lex.o): Delete rule.
544
dba24537
AC
545 * linux-proc.c: Delete file.
546 * Makefile.in: Update.
547 * config/sparc/linux64.mh (NATDEPFILES):
548 * config/sparc/linux.mh (NATDEPFILES): Update.
549 * config/s390/s390.mh (NATDEPFILES): Update.
550 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
551 * config/powerpc/linux.mh (NATDEPFILES): Update.
552 * config/pa/linux.mh (NATDEPFILES): Update.
553 * config/mips/linux.mh (NATDEPFILES): Update.
554 * config/m68k/linux.mh (NATDEPFILES): Update.
555 * config/ia64/linux.mh (NATDEPFILES): Update.
556 * config/i386/linux64.mh (NATDEPFILES): Update.
557 * config/i386/linux.mh (NATDEPFILES): Update.
558 * config/arm/linux.mh (NATDEPFILES): Update.
559 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
560 * linux-nat.c: Update copyright. Include <sys/param.h>,
561 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
562 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
563 (O_LARGEFILE): Possibly define.
564 (_initialize_linux_nat, linux_proc_pending_signals)
565 (add_line_to_sigset, linux_proc_xfer_memory)
566 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
567 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
568 (struct linux_corefile_thread_data)
569 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
570 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
571
d6b0e80f
AC
5722004-09-16 Andrew Cagney <cagney@gnu.org>
573
574 * lin-lwp.c: Delete file.
575 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
576 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
577 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
578 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
579 (linux_nat_attach, detach_callback, linux_nat_detach)
580 (resume_callback, resume_clear_callback, linux_nat_resume)
581 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
582 (stop_wait_callback, linux_nat_has_pending, flush_callback)
583 (status_callback, running_callback, count_events_callback)
584 (select_singlestep_lwp_callback, select_event_lwp_callback)
585 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
586 (child_wait, stop_and_resume_callback, linux_nat_wait)
587 (kill_callback, kill_wait_callback, linux_nat_kill)
588 (linux_nat_create_inferior, linux_nat_mourn_inferior)
589 (linux_nat_xfer_memory, linux_nat_thread_alive)
590 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
591 (_initialize_linux_nat): New functions.
592 * Makefile.in: Update all dependencies.
593 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
594 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
595 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
596 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
597 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
598 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
599 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
600 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
601 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
602 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
603 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
604 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
605 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
606
5a174d79
MK
6072004-09-27 Mark Kettenis <kettenis@gnu.org>
608
2f604c28
MK
609 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
610 config/i386/obsd64.mh (NAT_FILE): Remove variable.
611
5a174d79
MK
612 * configure.in: Don't comment out NATDEPFILES in the generated
613 Makefile if NAT_FILE is unset.
614 * configure: Regenerate.
615
b2ed1746
AC
6162004-09-27 Andrew Cagney <cagney@gnu.org>
617
44cbf7b5
AC
618 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
619 (insert_step_resume_breakpoint): Delete.
620 (insert_step_resume_breakpoint_at_frame): New function.
621 (insert_step_resume_breakpoint_at_sal): New function.
622 (handle_inferior_event, step_into_function)
623 (insert_step_resume_breakpoint): Simplify by using same.
624
b2ed1746
AC
625 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
626
3691b3be
MK
6272004-09-26 Mark Kettenis <kettenis@gnu.org>
628
36f391e8
MK
629 * fbsd-proc.c: Remove file.
630 * Makefile.in (fbsd-proc.o): Remove dependency.
631
771e236c
MK
632 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
633 code together.
634
3691b3be
MK
635 * config/i386/nm-fbsd64.h: Remove file.
636 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
637
6a5c78a3
MK
6382004-09-26 Mark Kettenis <kettenis@gnu.org>
639
640 * amd64-nat.h: Update copyright year.
641 (amd64bsd_target): New prototype.
642 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
643 (amd64bsd_target): New function.
644 (amd64bsd_fetch_inferior_registers): Rename from
645 fetch_inferior_registers. Make static.
646 (amd64bsd_store_inferior_registers): Rename from
647 store_inferior_registers. Make static.
648 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
649 (_initialize_amd64fbsd_nat): Construct and add target vector.
650 * amd64nbsd-nat.o: Include "target.h".
651 (_initialize_amd64nbsd_nat): Construct and add target vector.
652 * amd64obsd-nat.c: Include "target.h".
653 (_initialize_amd64obsd_nat): Construct and add target vector.
654 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
655 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
656 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
657 fbsd-nat.o.
658 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
659 Remove infptrace.o and inftarg.o. Add inf-child.o and
660 inf-ptrace.o.
661 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
662 (amd64obsd-nat.o): Update dependencies.
663
27acbe61
MK
6642004-09-25 Mark Kettenis <kettenis@gnu.org>
665
509a5e7d
MK
666 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
667 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
668 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
669 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
670 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
671
6e1e94ea
MK
672 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
673 Inline attach call.
674 (inf_ptrace_detach): Inline detach call.
675
8b9cf735
MK
676 * configure.in: Check for waddstr instead of mvwaddstr when
677 searching for curses library. Check for wborder.
678 * configure, config.in: Regenerate.
679 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
680 available.
681
27acbe61
MK
682 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
683
b96ec7ac
AC
6842004-09-24 Robert Picco <Robert.Picco@hp.com>
685
686 Committed by Andrew Cagney.
687 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
688 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
689 configuration.
690 (fetch_register_using_p): Implement 'p' packet. Based on code by
691 Fernando Nasser.
692 (remote_fetch_registers): Call fetch_register_using_p.
693 (init_all_packet_configs, show_remote_cmd)
694 (_initialize_remote): Add p-packet.
695
62ece330
MK
6962004-09-24 Mark Kettenis <kettenis@gnu.org>
697
698 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
699 instead of call_ptrace. Call wait directly instead of
700 ptrace_wait.
701 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
702 (inf_ptrace_wait): Inline ptrace_wait call.
703
00937274
PH
7042004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
705
706 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
707 rolled back instead.
708
3f2c7a45
PH
7092004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
710
711 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
712 the new argument order.
713
b6fcb393
CV
7142004-09-23 Corinna Vinschen <vinschen@redhat.com>
715
716 * MAINTAINERS: Remove "broken" from XStormy16 entry.
717 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
718 (struct gdbarch_tdep): Remove.
719 (struct xstormy16_frame_cache): New frame cache structure.
720 (xstormy16_register_byte, xstormy16_register_raw_size)
721 (xstormy16_reg_virtual_type, xstormy16_register_type)
722 (xstormy16_push_arguments, xstormy16_push_return_address)
723 (xstormy16_pop_frame, xstormy16_store_struct_return)
724 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
725 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
726 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
727 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
728 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
729 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
730 (xstormy16_use_struct_convention): Drop gcc_p parameter.
731 (xstormy16_extract_return_value, xstormy16_store_return_value):
732 Regcachify. Drop useless struct convention handling.
733 (xstormy16_register_type, xstormy16_return_value)
734 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
735 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
736 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
737 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
738 (xstormy16_unwind_sp, xstormy16_unwind_pc)
739 (xstormy16_unwind_dummy_id) : New functions.
740 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
741 of xstormy16_scan_prologue.
742 (xstormy16_frame_unwind): New frame_unwind structure.
743 (xstormy16_frame_base): New frame_base structure.
744 (xstormy16_gdbarch_init): Accomodate all of the above changes.
745 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
746
1285b746
MK
7472004-09-22 Mark Kettenis <kettenis@gnu.org>
748
749 * language.c (language_gdbarch_post_init): Fix off-by one error.
750
1c379e20
DJ
7512004-09-21 Daniel Jacobowitz <dan@debian.org>
752
753 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
754 (struct dwarf2_offset_and_type): New.
755 (set_die_type, reset_die_and_siblings_types, get_die_type)
756 (offset_and_type_hash, offset_and_type_eq): New functions.
757 (read_structure_type, read_enumeration_type, read_array_type)
758 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
759 (read_tag_reference_type, read_tag_const_type)
760 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
761 (read_typedef, read_base_type, read_subrange_type): Use
762 set_die_type.
763
ae038cb0
DJ
7642004-09-20 Daniel Jacobowitz <dan@debian.org>
765
766 * Makefile.in (dwarf2read.o): Update dependencies.
767 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
768 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
769 and read_in_chain.
770 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
771 mark, and has_form_ref_addr.
772 (struct dwarf2_per_cu_data): New.
773 (dwarf2_max_cache_age): New.
774 (dwarf2_build_psymtabs_hard): Free cached compilation units
775 after loading. Create and manage the list of compilation units.
776 Remove unnecessary NULL initialization. Fix indentation.
777 (psymtab_to_symtab_1): Initialize all of CU.
778 (dwarf2_read_abbrevs): Set has_form_ref_addr.
779 (find_partial_die): Use dwarf2_find_containing_comp_unit
780 and load_comp_unit.
781 (free_stack_comp_unit): Update comments. Clear the per-cu
782 pointer. Handle aging.
783 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
784 (age_cached_comp_units, free_one_cached_comp_unit)
785 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
786 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
787 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
788 (show_dwarf2_cmd): New.
789 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
790 and "maint show dwarf2 max-cache-age".
791 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
792 externs.
793 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
794 global.
795
987504bb
JJ
7962004-09-20 Jeff Johnston <jjohnstn@redhat.com>
797
798 * dwarf2read.c (typename_concat): Change prototype to accept obstack
799 and dwarf2_cu struct pointer as arguments. Change function to use
800 obstack if provided and use dwarf2_cu to determine language-specific
801 separator.
802 (partial_die_parent_scope): Change comment to include java. Use
803 new version of typename_concat instead of obconcat.
804 (partial_die_full_name): Use typename_concat.
805 (read_namespace): Ditto.
806 (read_enumeration_type): Use typename_concat instead of obconcat.
807 (new_symbol): Ditto.
808 (add_partial_symbol): Enhance tests for C++ to also test for Java.
809 (guess_structure_name): Ditto.
810 (read_subroutine_type): Ditto.
811 (read_structure_type): Ditto.
812 (is_vtable_name): Add Java support.
813 (determine_class_name): Switch to new typename_concat call.
814 (determine_prefix): Switch to new typename_concat call.
815 * jv-exp.y (FuncStart): New pattern.
816 (MethodInvocation): Add support for simple function calls. Change
817 warning message for other forms of inferior call currently not
818 supported.
819 * valarith.c (value_subscript): Treat an array with upper-bound
820 of -1 as unknown size.
821
d9c8471e
DJ
8222004-09-20 Daniel Jacobowitz <dan@debian.org>
823
824 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
825 (lookup_partial_symtab): Use symtab_to_fullname.
826
d73f140a
JB
8272004-09-19 Jim Blandy <jimb@redhat.com>
828
829 * minsyms.c (lookup_minimal_symbol): Doc fix.
830
adbef1f0
AC
8312004-09-20 Andrew Cagney <cagney@gnu.org>
832
833 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
834 CHILD_RESUME.
835 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
836 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
837 KILL_INFERIOR.
838 * infptrace.c: Update.
839
d092d1a2
DJ
8402004-09-19 Daniel Jacobowitz <dan@debian.org>
841
842 * symtab.c (output_source_filename): Mark first argument as const.
843 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
844 for "info sources" output.
845
86d9e1d7
MK
8462004-09-20 Mark Kettenis <kettenis@gnu.org>
847
848 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
849 <machine/vmparam.h>.
850 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
851 (register_u_addr): Remove prototype.
852
9a6c8ef4
MK
8532004-09-19 Mark Kettenis <kettenis@gnu.org>
854
9692934b
MK
855 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
856 (i386bsd_fetch_inferior_registers): Rename from
857 fetch_inferior_registers. Make static.
858 (i386bsd_store_inferior_registers): Rename from
859 store_inferior_registers. Make static.
860 (i386bsd_target): New function.
861 * i386bsd-nat.h: New file.
862 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
863 "i386bsd-nat.h".
864 (i386fbsd_resume): Rename from child_resume. Make static.
865 (_initialize_i386fbsd_nat): Construct and add target vector.
866 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
867 (_initialize_i386nbsd_nat): Construct and add target vector.
868 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
869 Remove defines.
870 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
871 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
872 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
873 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
874 (LOADLIBES): New variable.
875 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
876 inf-ptrace.o. Remove inftarg.o.
877 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
878 inf-ptrace.o. Remove inftarg.o.
879 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
880 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
881 (LOADLIBES): New variable.
882 * Makefile.in (i386bsd_nat_h): New variable.
883 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
884 dependencies.
885
3510d1f2
MK
886 * sparc64nbsd-tdep.c: Include "objfiles.h".
887 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
888 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
889 svr4_lp64_fetch_link_map_offsets.
890 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
891 "nbsd-tdep.h".
892 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
893 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
894 svr4_lp64_fetch_link_map_offsets.
895 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
896 dependencies.
897
578c1c03
MK
898 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
899 * fbsd-nat.h: New file.
900 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
901 (fbsd_nat_h): New variable.
902 (fbsd-nat.o): New dependency.
903
7a7b73b7
MK
904 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
905 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
906
9a6c8ef4
MK
907 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
908 comment.
909
72d5681a
PH
9102004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
911
912 * ada-exp.y (type_int): New function to add layer of abstraction
913 around references to expression types.
914 (type_long): Ditto.
915 (type_long_long): Ditto.
916 (type_float): Ditto.
917 (type_double): Ditto.
918 (type_long_double): Ditto.
919 (type_char): Ditto.
920 (type_system_address): Ditto.
921 (simple_exp): Use type_* functions in place of builtin_*
922 variables.
923 (exp): Ditto.
924 (write_var_from_name): Ditto.
925 (write_object_renaming): Ditto.
926 * ada-lang.c (ada_create_fundamental_type): Remove redundant
927 declaration.
928 (build_ada_types): Remove, replacing with...
929 (ada_language_arch_info): New function to initialize primitive
930 type vector in language_arch_info.
931 (ada_array_length): Remove use of builtin_type_ada_int.
932 (value_pos_atr): Ditto.
933 (ada_evaluate_subexp): Ditto.
934 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
935 builtin_type_ada_long_long, builtin_type_ada_char,
936 builtin_type_ada_float, builtin_type_ada_double,
937 builtin_type_ada_long_double, builtin_type_ada_natural,
938 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
939 (ada_builtin_types): Remove.
940 (ada_language_defn): Remove entries for la_builtin_type_vector and
941 string_char_type and use ada_language_arch_info.
942 (_initialize_ada_language): Do type-vector initialization along
943 the lines of c-lang.c.
944 (ada_create_fundamental_type): Break up line.
945 (ada_dump_symtab): Remove unused function.
946 (enum ada_primitive_types): Define.
947 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
948 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
949 builtin_type_ada_float, builtin_type_ada_double,
950 builtin_type_ada_long_double, builtin_type_ada_natural,
951 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
952 * ada-lex.l: Use type_* functions in place of builtin_* variables.
953 (processInt): Ditto.
954 (processReal): Ditto.
955 (name_lookup): Ditto.
956 * ada-typeprint.c (print_range): Use builtin_type_int, not
957 builtin_type_ada_int.
958
4f0be353
MK
9592004-09-18 Mark Kettenis <kettenis@gnu.org>
960
30b0e2d8
MK
961 * i386-tdep.c (i386_register_name): Rename regno to regnum.
962
4f0be353
MK
963 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
964 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
965 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
966 * configure.in: Improve checks for curses library by checking for
967 mvwaddstr instead of initscr. Drop HP curses in favour of
968 standard curses on HP-UX.
969 * configure: Regenerated.
970
72d5681a 9712004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
6c038f32
PH
972
973 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
974 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
975 Minor formatting changes.
976 (empty_array): Slight rewrite for formatting.
977 (emit_char,parse,ada_language_defn,build_ada_types,
978 ada_is_exception_sym, _initialize_ada_language): Move
979 definitions around.
980 (ada_dump_symtab): Remove unused definition.
981 (ada_maybe_exception_partial_symbol): Remove unused definition.
982
1c8c7407
AC
9832004-09-16 Andrew Cagney <cagney@gnu.org>
984
7681f339
AC
985 * inf-child.c: Include "gdb_string.h".
986 (inf_child_core_file_to_sym_file): Delete.
987 (inf_child_target): Set to_fetch_registers and to_store_registers.
988 * inf-ptrace.c: Include "gdb_string.h".
989 * Makefile.in: Update all dependencies.
990
1c8c7407
AC
991 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
992 problem.
993
65596487
JB
9942004-09-14 Joel Brobecker <brobecker@gnat.com>
995
996 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
997 call to heuristic_proc_desc. Remove code that became redundant
998 as a consequence.
999 (read_next_frame_reg): Remove special case for SP_REGNUM.
1000 (set_reg_offset): Fix small typo.
1001 (reset_saved_regs): New procedure.
1002 (mips32_heuristic_proc_desc): No longer compute a fake
1003 procedure descriptor. Compute the full frame cache instead.
1004 Some minor comment reformatting.
1005
95575b2e
AC
10062004-09-14 Andrew Cagney <cagney@gnu.org>
1007
f200c492
AC
1008 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
1009 maintainer.
1010
95575b2e
AC
1011 * thread-db.c (thread_db_new_objfile): Assume that there is a
1012 child process.
1013
69657671
JB
10142004-09-13 Jim Blandy <jimb@redhat.com>
1015
1016 * valops.c (value_assign): Move 'buffer' to the enclosing block,
1017 so that its storage isn't referenced after its lifetime ends.
1018
6c4182dd
JB
1019 * valops.c (value_assign): 'use_buffer' is initialized to zero,
1020 and never assigned to. Delete it, and the 'if (use_buffer)'
1021 clauses. Delete 'raw_buffer', since it is now unused.
1022
ee31a58d
AC
10232004-09-13 Andrew Cagney <cagney@gnu.org>
1024
2c0fc042
AC
1025 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
1026 * configure: Re-generate.
1027 * nlm/Makefile.in (TAGS): Update.
1028 * Makefile.in (TAGS): Update.
1029 * config/vax/nbsd.mt (TM_FILE): Update.
1030 * config/sparc/vxworks.mt (TM_FILE): Update.
1031 * config/sparc/sol2.mt (TM_FILE): Update.
1032 * config/sparc/sol2-64.mt (TM_FILE): Update.
1033 * config/sparc/obsd64.mt (TM_FILE): Update.
1034 * config/sparc/obsd.mt (TM_FILE): Update.
1035 * config/sparc/nbsd64.mt (TM_FILE): Update.
1036 * config/sparc/nbsd.mt (TM_FILE): Update.
1037 * config/sparc/linux64.mt (TM_FILE): Update.
1038 * config/sparc/linux.mt (TM_FILE): Update.
1039 * config/sparc/fbsd.mt (TM_FILE): Update.
1040 * config/sh/wince.mt (TM_FILE): Update.
1041 * config/sh/nbsd.mt (TM_FILE): Update.
1042 * config/sh/linux.mt (TM_FILE): Update.
1043 * config/sh/embed.mt (TM_FILE): Update.
1044 * config/s390/s390.mt (TM_FILE): Update.
1045 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
1046 * config/rs6000/rs6000.mt (TM_FILE): Update.
1047 * config/rs6000/aix4.mt (TM_FILE): Update.
1048 * config/powerpc/vxworks.mt (TM_FILE): Update.
1049 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
1050 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
1051 * config/powerpc/obsd.mt (TM_FILE): Update.
1052 * config/powerpc/nbsd.mt (TM_FILE): Update.
1053 * config/powerpc/linux.mt (TM_FILE): Update.
1054 * config/powerpc/aix.mt (TM_FILE): Update.
1055 * config/pa/obsd.mt (TM_FILE): Update.
1056 * config/pa/linux.mt (TM_FILE): Update.
1057 * config/pa/hppahpux.mt (TM_FILE): Update.
1058 * config/pa/hppa64.mt (TM_FILE): Update.
1059 * config/pa/hppa.mt (TM_FILE): Update.
1060 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
1061 * config/mips/wince.mt (TM_FILE): Update.
1062 * config/mips/vxmips.mt (TM_FILE): Update.
1063 * config/mips/nbsd.mt (TM_FILE): Update.
1064 * config/mips/linux.mt (TM_FILE): Update.
1065 * config/mips/irix6.mt (TM_FILE): Update.
1066 * config/mips/irix5.mt (TM_FILE): Update.
1067 * config/mips/embed.mt (TM_FILE): Update.
1068 * config/m68k/vxworks68.mt (TM_FILE): Update.
1069 * config/m68k/st2000.mt (TM_FILE): Update.
1070 * config/m68k/os68k.mt (TM_FILE): Update.
1071 * config/m68k/obsd.mt (TM_FILE): Update.
1072 * config/m68k/nbsd.mt (TM_FILE): Update.
1073 * config/m68k/monitor.mt (TM_FILE): Update.
1074 * config/m68k/linux.mt (TM_FILE): Update.
1075 * config/m68k/cisco.mt (TM_FILE): Update.
1076 * config/ia64/linux.mt (TM_FILE): Update.
1077 * config/ia64/aix.mt (TM_FILE): Update.
1078 * config/ia64/ia64.mt (TM_FILE): Update.
1079 * config/i386/vxworks.mt (TM_FILE): Update.
1080 * config/i386/obsd64.mt (TM_FILE): Update.
1081 * config/i386/obsd.mt (TM_FILE): Update.
1082 * config/i386/nto.mt (TM_FILE): Update.
1083 * config/i386/nbsd64.mt (TM_FILE): Update.
1084 * config/i386/nbsd.mt (TM_FILE): Update.
1085 * config/i386/linux64.mt (TM_FILE): Update.
1086 * config/i386/linux.mt (TM_FILE): Update.
1087 * config/i386/i386sol2.mt (TM_FILE): Update.
1088 * config/i386/i386lynx.mt (TM_FILE): Update.
1089 * config/i386/fbsd64.mt (TM_FILE): Update.
1090 * config/i386/fbsd.mt (TM_FILE): Update.
1091 * config/i386/cygwin.mt (TM_FILE): Update.
1092 * config/h8300/h8300.mt (TM_FILE): Update.
1093 * config/frv/frv.mt (TM_FILE): Update.
1094 * config/cris/cris.mt (TM_FILE): Update.
1095 * config/arm/wince.mt (TM_FILE): Update.
1096 * config/arm/nbsd.mt (TM_FILE): Update.
1097 * config/arm/linux.mt (TM_FILE): Update.
1098 * config/arm/embed.mt (TM_FILE): Update.
1099 * config/alpha/nbsd.mt (TM_FILE): Update.
1100 * config/alpha/fbsd.mt (TM_FILE): Update.
1101 * config/alpha/alpha.mt (TM_FILE): Update.
1102 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
1103 * config/alpha/alpha-linux.mt (TM_FILE): Update.
1104
362646f5
AC
1105 Eliminate event_loop_p, always has the value 1.
1106 * defs.h (event_loop_p): Delete macro.
1107 * breakpoint.c (until_break_command): Simplify.
1108 * utils.c (prompt_for_continue): Simplify.
1109 * tracepoint.c (read_actions): Simplify.
1110 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
1111 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
1112 (set_prompt, init_main): Simplify.
1113 (init_signals, disconnect): Delete, unused.
1114 * remote.c (remote_async_resume)
1115 (extended_remote_async_create_inferior): Simplify.
1116 * mi/mi-interp.c (mi_input): Delete, unused.
1117 (mi_interpreter_resume, mi_command_loop): Simplify.
1118 * interps.c (current_interp_command_loop): Simplify.
1119 * infrun.c (proceed): Simplify.
1120 * infcmd.c (run_command, continue_command, step_1, jump_command)
1121 (until_command, advance_command, finish_command)
1122 (interrupt_target_command): Simplify.
1123 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
1124
ee31a58d
AC
1125 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1126 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1127 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1128 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1129 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1130 * mips-tdep.c (mips_dump_tdep): Do not print same.
1131
b7ffc4a8
AC
11322004-09-12 Andrew Cagney <cagney@gnu.org>
1133
2bfb72ee
AC
1134 * valprint.c (print_longest): Use fputs_filtered. Make "val"
1135 const.
1136 * Makefile.in (valprint.o): Delete explict rule.
1137
4f17c3c1
AC
1138 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
1139 reported by Dave Anderson.
1140
f810308b
AC
1141 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
1142
b7ffc4a8
AC
1143 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
1144
28b41c52
AC
11452004-09-12 Salvador E. Tropea <set@users.sf.net>
1146 Andrew Cagney <cagney@gnu.org>
1147
1148 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
1149 (mi_cmd_data_list_register_values)
1150 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
1151 the register number computation.
1152
5bf970f9
AC
11532004-09-12 Andrew Cagney <cagney@gnu.org>
1154
1155 * ppcnbsd-nat.c: Include "inf-ptrace.h".
1156 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
1157 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
1158 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
1159 target.
1160 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
1161 inf-ptrace.o and inf-child.o.
1162 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
1163 * Makefile.in: Update dependencies.
1164
0759e0bf
AC
11652004-09-11 Andrew Cagney <cagney@gnu.org>
1166
1167 * language.c (hex_string, hex_string_custom): Move from here ...
1168 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
1169 (CELLSIZE): Increase to 50.
1170 * language.h (hex_string, hex_string_custom): Move from here ...
1171 * defs.h: ... to here.
1172 * Makefile.in: Update all dependencies.
1173
bb599908
PH
11742004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
1175
1176 * language.c (local_hex_format_custom): Remove.
1177 (local_hex_string): Rename to hex_string, use C format, and move to
1178 utils.c
1179 (local_hex_string_custom): Rename to hex_string_custom and change
1180 interface. Now uses C format. Move to utils.c
1181 (local_octal_format_custom): Remove.
1182 (local_decimal_format_custom): Remove.
1183 (unknown_language_defn): Remove language-specific number
1184 formatting entries.
1185 (auto_language_defn): Ditto.
1186 (local_language_defn): Ditto.
1187 * language.h (struct language_format_info): Delete declaration.
1188 (struct language_defn): Remove language_format_info fields
1189 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
1190 (local_binary_format): Remove macro.
1191 (local_binary_format_prefix): Remove macro.
1192 (local_binary_format_specifier): Remove macro.
1193 (local_binary_format_suffix): Remove macro.
1194 (local_octal_format): Remove macro.
1195 (local_octal_format_prefix): Remove macro.
1196 (local_octal_format_specifier): Remove macro.
1197 (local_octal_format_suffix): Remove macro.
1198 (local_decimal_format): Remove macro.
1199 (local_decimal_format_prefix): Remove macro.
1200 (local_decimal_format_specifier): Remove macro.
1201 (local_decimal_format_suffix): Remove macro.
1202 (local_hex_format): Remove macro.
1203 (local_hex_format_prefix): Remove macro.
1204 (local_hex_format_specifier): Remove macro.
1205 (local_hex_format_suffix): Remove macro.
1206 (local_decimal_format_custom): Remove.
1207 (local_octal_format_custom): Remove.
1208 (local_hex_format_custom): Remove.
1209 (local_hex_string): Rename to hex_string and move to defs.h.
1210 (local_hex_string_custom): Rename to hex_string_custom, change
1211 interface, and move to defs.h.
1212 * utils.c: (int_string): New function.
1213 (hex_string): New function (from language.c).
1214 (hex_string_custom): New function (from language.c).
1215 (octal2str): New function.
1216 (decimal2str): Add width parameter.
1217 (paddr_u): Use new decimal2str interface.
1218 (paddr_d): Ditto.
1219 * defs.h (hex_string): Declare.
1220 (hex_string_custom): Declare.
1221 (int_string): Declare.
1222 * printcmd.c (print_scalar_formatted): Remove localized binary
1223 formatting.
1224 * valprint.c (print_longest): Use int_string.
1225 (print_floating): Use C hex format.
1226 (print_hex_chars): Ditto.
1227 (print_binary_chars): Remove language-specific formatting.
1228 (print_octal_chars): Use C octal format.
1229 (print_decimal_chars): Delocalize format.
1230 (print_decimal): Remove.
1231 * ada-lang.c (ada_language_defn): Remove language-specific number
1232 formatting entries.
1233 * p-lang.c (pascal_language_defn): Ditto.
1234 * c-lang.c (c_language_defn): Ditto.
1235 (cplus_language_defn): Ditto.
1236 (asm_language_defn): Ditto.
1237 (minimal_language_defn): Ditto.
1238 * f-lang.c (f_language_defn): Ditto.
1239 * jv-lang.c (java_language_defn): Ditto.
1240 * m2-lang.c (m2_language_defn): Ditto.
1241 * scm-lang.c (scm_language_defn): Ditto.
1242 * objc-lang.c (objc_language_defn): Ditto.
1243 * memattr.c (mem_info_command): Use renamed hex_string_custom with
1244 new interface.
1245 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
1246 * ui-out.c (ui_out_field_core_addr): Ditto.
1247 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
1248 * exec.c (print_section_info): Ditto.
1249 * i387-tdep.c (print_i387_status_word): Ditto.
1250 (print_i387_control_word): Ditto.
1251 (i387_print_float_info): Ditto.
1252 * maint.c (maint_print_section_info): Ditto.
1253 * solib.c (info_sharedlibrary_command): Ditto.
1254 * somsolib.c (som_sharedlibrary_info_command): Ditto.
1255 * symtab.c (print_msymbol_info): Ditto.
1256 * tracepoint.c (tracepoints_info): Ditto.
1257 * solib-frv.c (lm_base): Ditto.
1258 (frv_current_sos): Ditto.
1259 (enable_break2): Ditto.
1260 (enable_break): Ditto.
1261 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
1262 (process_one_symbol): Ditto.
1263 * infcmd.c (program_info): Ditto.
1264 * mdebugread.c (parse_partial_symbols): Ditto.
1265 * symfile.c (add_symbol_file_command): Ditto.
1266 * cli/cli-cmds.c (edit_command): Ditto.
1267 (list_command): Ditto.
1268 * infcall.c (call_function_by_hand): Ditto.
1269 * remote-vx.c (vx_run_files_info): Ditto.
1270 (vx_wait): Ditto.
1271 (vx_attach): Ditto.
1272 (vx_detach): Ditto.
1273 (vx_kill): Ditto.
1274 * aix-thread.c (pdc_symbol_addrs): Ditto.
1275 (pdc_read_regs): Ditto.
1276 (pdc_write_regs): Ditto.
1277 (pdc_read_data): Ditto.
1278 (pdc_write_data): Ditto.
1279 * d10v-tdep.c (display_trace): Ditto.
1280 * rs6000-nat.c (find_toc_address): Ditto.
1281 * aix-thread.c: Don't include language.h.
1282 * buildsym.c: Ditto.
1283 * dbxread.c: Ditto.
1284 * mdebugread.c: Ditto.
1285 * rs6000-nat.c: Ditto.
1286 * buildsym.c (make_blockvector): Use renamed hex_string.
1287
33f2d567
JM
12882004-09-10 Jason Molenda (jmolenda@apple.com)
1289
1290 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
1291 chars after 'if' or 'while' commands in user-defined commands.
1292
7b90c3f9
JB
12932004-09-08 Jim Blandy <jimb@redhat.com>
1294
1295 Fix bug reported and analyzed by Olivier Crete:
1296 * symfile.c (copy_section_addr_info): New function.
1297 (symbol_file_add_with_addrs_or_offsets): Use it to save the
1298 original set of address arguments, instead of handwritten code
1299 that uses one length to allocate and a different length to
1300 initialize. Use make_cleanup_free_section_addr_info.
1301 * symfile.h (copy_section_addr_info): New declaration.
1302 * utils.c: #include "symfile.h".
1303 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
1304 New functions.
1305 * defs.h (make_cleanup_free_section_addr_info): New declaration.
1306 * Makefile.in (utils.o): Update dependencies.
1307
b26a6851
AC
13082004-09-08 Andrew Cagney <cagney@gnu.org>
1309
1310 * thread-db.c (keep_thread_db): Delete.
1311 (thread_db_new_objfile, thread_db_create_inferior)
1312 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
1313
be24b061
MK
13142004-09-08 Mark Kettenis <kettenis@gnu.org>
1315
f6792ef4
MK
1316 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
1317 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
1318 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
1319 (i386_frameless_signal_p): Remove prototype.
1320 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
1321 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
1322 I386_SSE_NUM_REGS.
1323 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
1324 instead of FP0_REGNUM.
1325 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
1326 of FP0_REGNUM and FPC_REGNUM.
1327
eeefdaa7
MK
1328 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
1329 (sunos_solib_create_inferior_hook): Don't call
1330 sunos_relocate_main_executable.
1331
be24b061
MK
1332 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
1333 solib_svr4_fetch_link_map_offsets to
1334 svr4_ilp32_fetch_link_map_offsets.
1335 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
1336 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
1337 svr4_ilp32_fetch_link_map_offsets.
1338 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
1339
7c679d16
JB
13402004-09-07 Jim Blandy <jimb@redhat.com>
1341
1342 * frame.h (frame_register): Doc fix.
1343
1f04aa62
AC
13442004-09-07 Andrew Cagney <cagney@gnu.org>
1345
1346 * vx-share/wait.h: Delete #ifdef USG.
1347 * utils.c (request_quit): Ditto.
1348 * tui/tui.c (tui_reset): Ditto.
1349 * remote.c: Ditto.
1350 * remote-sds.c: Ditto.
1351 * remote-rdi.c: Ditto.
1352 * mdebugread.c: Ditto.
1353 * m68klinux-nat.c: Ditto.
1354 * infttrace.c: Ditto.
1355 * infptrace.c: Ditto.
1356 * i386v-nat.c: Ditto.
1357 * exec.c: Ditto.
1358 * dbxread.c: Ditto.
1359 * core-aout.c: Ditto.
1360
90edbfbc
JB
13612004-09-05 Joel Brobecker <brobecker@gnat.com>
1362
1363 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
1364 heuristic_proc_desc.
1365 (mips_insn32_frame_cache): Likewise.
1366
01f4bf2b
JB
13672004-09-04 Joel Brobecker <brobecker@gnat.com>
1368
1369 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
1370 left behind by error.
1371
8511a048
JB
13722004-09-04 Joel Brobecker <brobecker@gnat.com>
1373
1374 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
1375 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
1376
649dfe9f
JB
13772004-09-04 Joel Brobecker <brobecker@gnat.com>
1378
1379 * config/rs6000/xm-aix4.h: Remove this file.
1380 * config/rs6000/aix4.mh (XM_FILE): Delete.
1381
6e50f889
JB
13822004-09-04 Joel Brobecker <brobecker@gnat.com>
1383
1384 * config/rs6000/xm-rs6000.h: Remove this file.
1385 * config/rs6000/rs6000.mh (XM_FILE): Remove.
1386
b8c4aece
AC
13872004-09-03 Andrew Cagney <cagney@gnu.org>
1388
fb603883
AC
1389 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
1390 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
1391 only use.
1392
c9343fd1
AC
1393 * mips-tdep.c (temp_saved_regs): Delete.
1394 (set_reg_offset): Replace saved_regs parameter with this_cache.
1395 (heuristic_proc_desc, mips16_heuristic_proc_desc)
1396 (mips32_heuristic_proc_desc): Add this_cache parameter.
1397 (mips_insn32_frame_cache, mips_insn16_frame_cache)
1398 (after_prologue): Pass a NULL this_cache.
1399
9733cfe1
AC
1400 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
1401 non-kernel trap prologues.
1402
0d5febcc
AC
1403 * mips-tdep.c (find_proc_desc): Delete function.
1404 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
1405 simplify.
1406 (mips_insn16_frame_cache): Replace find_proc_desc with code from
1407 mips_insn32_frame_cache.
1408
9733cfe1 1409 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
283be873
AC
1410 Simplify as NEXT_FRAME is NULL.
1411 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
1412
177f84a3
AC
1413 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
1414 local variable.
1415 (mips_skip_prologue): Update.
1416
465f7520
AC
1417 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
1418 "cur_frame" parameter.
177f84a3
AC
1419 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
1420 (mips_insn32_frame_cache, find_proc_desc): Update
465f7520 1421
e38b8658
AC
1422 * config/vax/nm-obsd.h: Delete file.
1423 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1424 * config/vax/nm-nbsd.h: Delete file.
1425 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
1426 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1427 * config/sh/nm-nbsd.h: Delete file.
1428 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1429 * config/rs6000/nm-rs6000ly.h: Delete file.
1430 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
1431 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1432 * config/powerpc/nm-obsd.h: Delete file.
1433 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1434 * config/powerpc/nm-nbsd.h: Delete file.
1435 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1436 * config/pa/nm-obsd.h: Delete file.
1437 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1438 * config/mips/nm-nbsd.h: Delete file.
1439 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1440 * config/m88k/nm-obsd.h: Delete file.
1441 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1442 * config/m68k/nm-nbsd.h: Delete file.
1443 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
1444 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1445 * config/i386/nm-nbsd.h: Delete file.
1446 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
1447 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1448 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1449 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1450 * config/i386/nm-i386lynx.h: Delete file.
1451 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1452 * config/arm/nm-nbsd.h: Delete file.
1453 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
1454 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1455
be1ed680
AC
1456 * config/i386/tm-fbsd.h: Delete file.
1457 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
1458 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
1459
4b392b26
AC
1460 * config/rs6000/tm-rs6000-aix4.h: Delete file.
1461 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
1462 * config/rs6000/aix4.mt (TM_FILE): Set to
1463 config/rs6000/tm-rs6000.h.
1464 * config/powerpc/tm-ppc-aix.h: Delete file.
1465 * config/powerpc/aix.mt (TM_FILE): Set to
1466 config/rs6000/tm-rs6000.h.
1467 * config/m68k/tm-linux.h: Delete file.
1468 * config/m68k/linux.mt (TM_FILE): Set to solib.h
1469 * config/i386/tm-linux64.h: Delete file.
1470 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
1471 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
1472
f3219c75
AC
1473 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1474 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
1475 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
1476 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1477 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
1478 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
1479 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
1480 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
1481 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
1482
b8c4aece
AC
1483 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
1484 gdb_host_cpu.
1485
8ac2e020
JB
14862004-09-02 Joel Brobecker <brobecker@gnat.com>
1487
1488 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
1489 Minor reformatting. Some code factoring.
1490
c185a355
AC
14912004-09-02 Andrew Cagney <cagney@gnu.org>
1492
63f22f0d
AC
1493 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
1494 * config/vax/tm-nbsd.h: Delete file.
1495 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1496 * config/sparc/tm-vxworks.h: Delete file.
1497 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
1498 * config/sparc/tm-nbsd.h: Delete file.
1499 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
1500 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
1501 * config/sparc/tm-linux.h: Delete file.
1502 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
1503 * config/s390/tm-linux.h: Delete file.
1504 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
1505 * config/pa/tm-bsd.h: Delete file.
1506 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
1507 * config/m68k/tm-obsd.h: Delete file.
1508 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
1509 * config/m68k/tm-nbsd.h: Delete file.
1510 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1511 * config/i386/tm-vxworks.h: Delete file.
1512 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
1513 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
1514 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
1515 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
1516 * config/i386/tm-nbsd.h: Delete file.
1517 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
1518 * config/i386/tm-i386lynx.h: Delete file.
1519 * config/cris/cris.mt (TM_FILE): Set to solib.h.
1520 * config/cris/tm-cris.h: Delete file.
1521
0f475e27
AC
1522 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
1523 * configure: Re-generate.
1524 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
1525 * config/arm/tm-nbsd.h: Delete file.
1526
458ed000
AC
1527 * config/powerpc/tm-ppcle-sim.h: Delete.
1528 * config/powerpc/tm-ppcle-eabi.h: Delete.
1529 * config/powerpc/tm-nbsd.h: Delete.
1530 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
1531 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
1532 tm-ppcle-eabi.h.
1533
f14375f3
AC
1534 * config/i386/nto.mh (NAT_FILE): Delete.
1535 * config/i386/nm-nto.h: Delete.
1536
c34d127c
AC
1537 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
1538 * config/m68k/tm-os68k.h: Ditto.
1539 * config/m68k/tm-monitor.h: Ditto.
1540 * config/m68k/tm-cisco.h: Ditto.
1541 * config/m68k/st2000.mt (TM_FILE): Delete.
1542 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
1543 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
1544 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
1545 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
1546
f7f0fe03
AC
1547 * config/m68k/tm-st2000.h: Delete.
1548 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
1549 * config/sparc/fbsd.mt (TM_FILE): Delete.
1550 * config/sparc/tm-fbsd.h: Delete.
1551
a2558533
AC
1552 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
1553 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
1554 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
1555
b78960be
AC
1556 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
1557 GDB_TM_FILE and GDB_XM_FILE.
1558 * gdbarch.c: Re-generate.
1559 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
1560 quotes in macro definition.
1561 * configure.in: Re-generate.
1562
4d60522e
AC
1563 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
1564 validating architecture methods.
1565 * gdbarch.c: Re-generate.
1566
5010d38b
AC
1567 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
1568 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
1569 GDB_MULTI_ARCH_PARTIAL.
1570 * gdbarch.h: Re-generate.
1571
c185a355
AC
1572 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
1573 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
1574 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
1575 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
1576 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
1577 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
1578 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
1579 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
1580 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
1581 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
1582 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
1583 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
1584
14aaa6ab
AC
15852004-09-01 Andrew Cagney <cagney@gnu.org>
1586
1587 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
1588 and main_func_highpc.
1589 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
1590 * objfiles.c (init_entry_point_info, objfile_relocate): Update
1591 * nlmread.c (nlm_symfile_read): Update.
1592
a343eb3c
JB
15932004-09-01 Joel Brobecker <brobecker@gnat.com>
1594
1595 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
1596 (mips_insn32_frame_cache): Inline call to find_proc_desc.
1597 (find_proc_desc): Remove dead code.
1598
4fbbbd07
JB
15992004-09-01 Joel Brobecker <brobecker@gnat.com>
1600
1601 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
1602
84acb35a
JJ
16032004-09-01 Jeff Johnston <jjohnstn@redhat.com>
1604
1605 * observer.sh: Add struct so_list declaration.
1606 * Makefile.in: Add dependencies on observer.h for solib.c and
1607 breakpoint.c.
1608 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
1609 function.
1610 (_initialize_breakpoint): Register
1611 disable_breakpoints_in_unloaded_shlib as an observer of the
1612 "solib unloaded" observation event.
1613 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
1614 call decode_line_1 so unfound breakpoint errors are silent.
1615 * solib.c (update_solib_list): When a solib is discovered to have
1616 been unloaded by the program, notify all observers of the
1617 "solib unloaded" observation event.
1618
c8cd9f6c
AC
16192004-09-01 Andrew Cagney <cagney@gnu.org>
1620
1621 * frame.c: Include "objfiles.h".
1622 (inside_main_func): New function.
1623 (get_prev_frame): Use new inside_main_func.
1624 * Makefile.in (frame.o): Update dependencies.
1625 * defs.h (inside_main_func): Delete declaration.
1626 * blockframe.c (inside_main_func): Delete function.
1627
1168df01
JB
16282004-08-31 Jim Blandy <jimb@redhat.com>
1629
1630 * dwarf2read.c (is_vtable_name): New function, based on logic from
1631 read_structure_type, but passing the correct length to strncmp,
1632 and using 'sizeof' instead of 'strlen'.
1633 (read_structure_type): Call it.
1634
f14f9744
JB
16352004-08-31 Joel Brobecker <brobecker@gnat.com>
1636
1637 * config/powerpc/aix.mh: Add comment.
1638
386d4518
PG
16392004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
1640
1641 * MAINTAINERS: Add self to Write-After-Approval.
1642
7d97d5e2
MI
16432004-08-30 Manoj Iyer <manjo@austin.ibm.com>
1644
1645 * MAINTAINERS: Add self to Write-After-Approval.
1646
68f53502
AC
16472004-08-30 Andrew Cagney <cagney@gnu.org>
1648
1649 Fix PR breakpoints/1757.
1650 * infrun.c (struct execution_control_state): Replace
1651 remove_breakpoints_on_following_step with
1652 step_after_step_resume_breakpoint.
1653 (init_execution_control_state): Update.
1654 (handle_inferior_event): For signals, when stepping off a
1655 breakpoint, set step_after_step_resume_breakpoint. When
1656 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
1657 (keep_going): Delete code handling
1658 remove_breakpoints_on_following_step.
1659
7ca2d3a3
DL
16602004-08-29 David Lecomber <david@streamline-computing.com>
1661
1662 Fix PR gdb/648
1663 * language.h (enum array_ordering): New enum.
1664 * language.h (struct language_defn): New la_array_ordering
1665 attribute.
1666 * language.c (unknown_language_defn, auto_language_defn)
1667 (local_language_defn): Ditto.
1668 * ada-lang.c (ada_language_defn): Ditto.
1669 * c-lang.c (c_language_defn, cplus_language_defn)
1670 (asm_language_defn, minimal_language_defn): Ditto.
1671 * f-lang.c (f_language_defn): Ditto.
1672 * jv-lang.c (java_language_defn): Ditto.
1673 * m2-lang.c (f_language_defn): Ditto.
1674 * objc-lang.c (objc_language_defn): Ditto.
1675 * p-lang.c (pascal_language_defn): Ditto.
1676 * scm-lang.c (scm_language_defn): Ditto.
1677 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
1678 oriented large to small in type structure.
1679 * dwarf2read.c (read_array_order): New function.
1680 (read_array_type): Use read_array_order to check row/column
1681 major ordering.
1682
e354df01
NW
16832004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
1684
1685 * target.c (target_resize_to_sections): Check
1686 current_target.to_sections for an old value when updating.
1687
9185ddce
JB
16882004-08-27 Joel Brobecker <brobecker@gnat.com>
1689
1690 * procfs.c (dbx_link_bpt_addr): New static global variable.
1691 (dbx_link_shadow_contents): New static global variable.
1692 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
1693 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
1694 if we just hit it.
1695 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
1696 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
1697 from run to run.
1698 (procfs_create_inferior): Remove syssgi syscall-exit notifications
1699 after the inferior has been forked.
1700 (remove_dbx_link_breakpoint): New function.
1701 (dbx_link_addr): New function.
1702 (insert_dbx_link_bpt_in_file): New function.
1703 (insert_dbx_link_bpt_in_region): New function.
1704 (insert_dbx_link_breakpoint): New function.
1705 (proc_trace_syscalls_1): New function, extracted from
1706 proc_trace_syscalls.
1707 (proc_trace_syscalls): Replace extract code by call to
1708 proc_trace_syscalls_1.
1709 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
1710 is no longer valid.
1711
e6742ace
JB
17122004-08-25 Jim Blandy <jimb@redhat.com>
1713
1714 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
1715
8fb3e588
AC
17162004-08-25 Andrew Cagney <cagney@gnu.org>
1717
629a41ee
AC
1718 * infrun.c (struct execution_control_state): Delete field
1719 "stepping_through_sigtramp".
1720 (init_execution_control_state): Do not set same.
1721 (context_switch): Do not pass same to save_infrun_state and
1722 load_infrun_state.
1723 * gdbthread.h (struct thread_info): Delete field
1724 stepping_through_sigtramp.
1725 (save_infrun_state, load_infrun_state): Delete parameter
1726 stepping_through_sigtramp.
1727 * thread.c (load_infrun_state, save_infrun_state): Update.
1728
8fb3e588
AC
1729 * infrun.c: Re-indent. Move expression operators to the beginning
1730 of the line. Remove long disabled #if 0 code.
1731
49c54768
AC
17322004-08-24 Andrew Cagney <cagney@gnu.org>
1733
1734 * doublest.h (floatformat_ieee_quad): Rename
1735 floatformat_ia64_quad.
1736 * doublest.c (floatformat_ieee_quad): Rename
1737 floatformat_ia64_quad.
1738 (_initialize_doublest): Update.
1739
5ca2e327
JB
17402004-08-24 Jim Blandy <jimb@redhat.com>
1741
87808bd6
JB
1742 * dwarf2expr.h (struct dwarf_expr_context): New members
1743 'num_pieces' and 'pieces', for returning the result of an
1744 expression that uses DW_OP_piece.
1745 (struct dwarf_expr_piece): New struct type.
1746 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
1747 pieces.
1748 (free_dwarf_expr_context): Free pieces, if any.
1749 (add_piece): New function.
1750 (execute_stack_op): Implement DW_OP_piece.
1751 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
1752 expression is a list of pieces, print an error message.
1753 (dwarf2_loc_desc_needs_frame): If the expression yields
1754 pieces, and any piece is in a register, then we need a frame.
1755
5ca2e327
JB
1756 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
1757 the stack until we've decided what sort of result the evaluation
1758 has produced. Use separate variables, with more specific names.
1759
2afeb6b8
RE
17602004-08-23 Richard Earnshaw <rearnsha@arm.com>
1761
1762 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
1763 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
1764 (arm_netbsd_init_abi_common): Register them.
1765
5885ab49
MK
17662004-08-22 Mark Kettenis <kettenis@gnu.org>
1767
fda820a6
MK
1768 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
1769
1c5bf419
MK
1770 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
1771 safe_frame_unwind_memory instead of target_read_memory.
1772
8cbba7c8
MK
1773 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
1774 Reorder includes.
1775 (fetch_register, store_register): Remove prototypes.
1776 (child_resume): Reorganize code and comments such that it is
1777 grouped a bit more logically.
1778 (attach): Explicitly compare errno against 0.
1779 (detach): Likewise. Use perror_with_name instead of
1780 print_sys_errmsg.
1781 * Makefile.in (infptrace.o): Update dependencies.
1782
c5fa4245
MK
1783 * ia64-linux-nat.c: Update copyright year.
1784 (fetch_debug_register, store_debug_register)
1785 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
1786 PTRACE_TYPE_ARG3.
1787 * config/ia64/nm-linux.h: Update copyright year.
1788 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
1789
387c058c
MK
1790 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
1791 from CORE_ADDR to struct frame_info *. Use
1792 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
1793 (amd64_linux_sigtramp_p): Adjust for changed signature of
1794 and64_linux_sigtramp_start
1795
277215a6
MK
1796 * gdb_ptrace.h: GNU/Linux.
1797
25f6178e
MK
1798 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1799 Remove defines.
1800
652fc137
MK
1801 * infptrace.c: Include "gdb_assert.h".
1802 (PTRACE_XFER_TYPE): Remove define.
1803 (offsetof): Only define if U_REGS_OFFSET isn't defined.
1804 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
1805 Tweak comment.
1806 (fetch_inferior_registers, store_inferior_registers): Remove
1807 redundant culry braces. Tweak comment. s/regno/regnum.
1808 * Makefile.in (infptrace.o): Update dependencies.
1809
5885ab49
MK
1810 * configure.in: Change test for return type of ptrace to default
1811 to `long' instead of `int'.
1812 * configure: Regenerate.
1813
11003ae3
MK
18142004-08-21 Mark Kettenis <kettenis@gnu.org>
1815
6b95110c
MK
1816 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
1817
bcb3dc3d
MK
1818 * configure.in: Check for ttrace function.
1819 * configure, config.in: Regenerate.
1820
11003ae3
MK
1821 * gdb_ptrace.h: New file.
1822 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
1823 <sys/ptrace.h>.
1824 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
1825 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
1826 (attach): Don't define PT_ATTACH.
1827 (detach): Don't define PT_DETACH.
1828 * Makefile.in (gdb_ptrace_h): New variable.
1829 (infptrace.o): Update dependencies.
1830
f8707cac
MK
18312004-08-16 Mark Kettenis <kettenis@gnu.org>
1832
1833 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
1834 instead of `int' if not already defined.
1835 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
1836 PTRACE_TYPE_ARG3.
1837 * infptrace.c (call_ptrace): Revert change that replaced
1838 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1839
655c5466
MK
18402004-08-15 Mark Kettenis <kettenis@gnu.org>
1841
156e5ba7
MK
1842 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1843 Remove defines.
1844
de9a9e51
MK
1845 * linux-nat.c (kill_inferior): Add missing third and fourth
1846 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
1847
88800403
MK
1848 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
1849 PTRACE_TYPE_RET.
1850
849a1d7c
MK
1851 * proc-why.c (proc_prettyfprint_why): Fix format string.
1852
61ad16d1
MK
1853 * solib-osf.c (osf_current_sos): Remove unsused label.
1854
a6ed5501
MK
1855 * configure.in: Add <ncurses/ncurses.h> to the list of possible
1856 curses headers.
1857 * configure, config.in: Regenerate.
1858 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
1859 <ncurses/ncurses.h>.
1860
016ddeca
MK
1861 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
1862 * config/nm-nbsd.h: Update copyright year.
1863 (PTRACE_ARG3_TYPE): Remove define.
1864
49ec097f
MK
1865 * sparc-nat.c (fetch_inferior_registers)
1866 (store_inferior_registers, sparc_xfer_wcookie):
1867 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1868
9f8e0089
MK
1869 * alphabsd-nat.c (fetch_inferior_registers):
1870 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1871 PTRACE_TYPE_ARG3.
1872 * amd64bsd-nat.c (fetch_inferior_registers)
1873 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1874 PTRACE_TYPE_ARG3.
1875 * armnbsd-nat.c: Update copyright year.
1876 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
1877 (store_register, store_regs, store_fp_register, store_fp_regs):
1878 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1879 * hppabsd-nat.c (fetch_inferior_registers)
1880 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1881 PTRACE_TYPE_ARG3.
1882 * i386bsd-nat.c (fetch_inferior_registers)
1883 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
1884 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1885 * m68kbsd-nat.c (fetch_inferior_registers)
1886 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1887 PTRACE_TYPE_ARG3.
1888 * m88kbsd-nat.c (fetch_inferior_registers)
1889 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1890 PTRACE_TYPE_ARG3.
1891 * mipsnbsd-nat.c: Update copyright year.
1892 (fetch_inferior_registers, store_inferior_registers):
1893 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1894 * ns32knbsd-nat.c: Update copyright year.
1895 (fetch_inferior_registers, store_inferior_registers):
1896 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1897 * ppcnbsd-nat.c (fetch_inferior_registers):
1898 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1899 PTRACE_TYPE_ARG3.
1900 * ppcobsd-nat.c (fetch_inferior_registers):
1901 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1902 PTRACE_TYPE_ARG3.
1903 * shnbsd-nat.c: Update copyright year.
1904 (fetch_inferior_registers, store_inferior_registers):
1905 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1906 * vaxbsd-nat.c (fetch_inferior_registers)
1907 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1908 PTRACE_TYPE_ARG3.
1909
655c5466
MK
1910 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
1911 PTRACE_TYPE_ARG3.
1912 * infptrace.c (call_ptrace, child_resume, attach, detach)
1913 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
1914 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1915 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
1916 PTRACE_TYPE_ARG3.
1917
c40d0d10
MK
19182004-08-14 Mark Kettenis <kettenis@gnu.org>
1919
5cb0ff31
MK
1920 * defs.h: Remove out-of-date comment.
1921 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
1922 [!GETENV_PROVIDED] (getenv): Remove prototype.
1923
5f0f34cb
MK
1924 * standalone.c: Remove file.
1925 * Makefile.in (standalone.o): Remove dependency.
1926
7532965f
MK
1927 * i386-linux-nat.c (dummy_sse_values): Remove function and
1928 prototype.
1929 (i386_linux_dr_get): Fix typo in comment.
1930 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
1931
1bdc6c53
MK
1932 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
1933
c40d0d10
MK
1934 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1935 from declaration.
1936 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1937 from definition.
1938
64218d3e
MK
19392004-08-13 Mark Kettenis <kettenis@gnu.org>
1940
1941 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
1942 parenthesis in definition.
1943 * configure: Regenerated.
1944
926c94e7
MC
19452004-08-12 Michael Chastain <mec.gnu@mindspring.com>
1946
1947 * PROBLEMS: Mention build/1411.
1948
69489883
NN
19492004-08-09 Robert Millan <robertmh@gnu.org>
1950
1951 Committed by Nathanael Nerode.
1952 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
1953 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
1954
ebb7c577
AC
19552004-08-12 Andrew Cagney <cagney@gnu.org>
1956
1957 * NEWS: Mention fixes in GDB 6.2.1.
1958 * PROBLEMS: Remove mention of mips-irix.
1959
232d697c
JB
19602004-08-11 Joel Brobecker <brobecker@gnat.com>
1961
1962 * config/powerpc/xm-aix.h: Delete.
1963 * config/powerpc/aix.mh (MH_FILE): Remove.
1964 * config/powerpc/aix432.mh (MH_FILE): Remove.
1965
72f4e82b
JB
19662004-08-11 Joel Brobecker <brobecker@gnat.com>
1967
1968 * config/powerpc/aix.mh: Remove obsolete comment.
1969 * config/powerpc/aix432.mh: Likewise.
1970
0687ccb2
JB
19712004-08-11 Joel Brobecker <brobecker@gnat.com>
1972
1973 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
1974
dbf3ada7
JB
19752004-08-11 Joel Brobecker <brobecker@gnat.com>
1976
e08e1886
JB
1977 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
1978 this file is now empty.
1979 * config/xm-aix4.h: Remove, this file is no longer included
1980 anywhere.
1981
19822004-08-11 Joel Brobecker <brobecker@gnat.com>
1983
1984 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
1985 that file is now empty.
dbf3ada7
JB
1986 (termdef): Remove prototype, function no longer used.
1987
4c525ef6
JB
19882004-08-11 Joel Brobecker <brobecker@gnat.com>
1989
1990 * doc/gdbint.texinfo (Host Definition): Remove documentation
1991 for USE_O_NOCTTY, no longer used.
1992 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
1993 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
1994
82e0b968
JB
19952004-08-11 Joel Brobecker <brobecker@gnat.com>
1996
1997 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
1998 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
1999 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
2000
f2acbe1c
MK
20012004-08-11 Mark Kettenis <kettenis@gnu.org>
2002
daa98270
MK
2003 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
2004 instead of FIVE_ARG_PTRACE.
2005
f2acbe1c
MK
2006 * inflow.c (O_NOCTTY): Define to zero if not already defined.
2007 (new_tty): Use O_NOCTTY unconditionally.
2008
cc377e6b
MK
20092004-08-10 Mark Kettenis <kettenis@gnu.org>
2010
2011 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
2012 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
2013 fflush on stdout.
2014
3bcc18fa
JB
20152004-08-10 Joel Brobecker <brobecker@gnat.com>
2016
2017 * xcoff_symfile_finish: Replace last call to xmfree by call
2018 to xfree.
2019
7936743b
AC
20202004-08-10 Andrew Cagney <cagney@gnu.org>
2021
cc503c8a
AC
2022 * main.c (captured_main): Delete call to init_malloc.
2023 * defs.h (init_malloc): Delete declaration.
2024 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
2025 (init_malloc): Delete functions.
2026
2dc74dc1
AC
2027 * defs.h (xmfree): Delete.
2028 * utils.c (xmfree): Delete function.
2029 (xfree): Inline calls to xmfree and mfree.
2030 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
2031 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
2032 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
2033 * somread.c (som_symfile_finish): Ditto.
2034 * objfiles.c (allocate_objfile, free_objfile):
2035 * nlmread.c (nlm_symfile_finish): Ditto.
2036 * hpread.c (hpread_symfile_finish): Ditto.
2037 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
2038 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
2039 * coffread.c (coff_symfile_finish): Ditto.
2040
aa2ee5f6
AC
2041 * defs.h (xmcalloc): Delete declaration.
2042 * utils.c (xmcalloc): Delete.
2043 (xcalloc): Inline calls to xmcalloc and mcalloc.
2044 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
2045 xcalloc and xfree.
2046 * symtab.c (create_demangled_names_hash): Ditto.
2047
0efffb96
AC
2048 * defs.h (xmrealloc): Delete.
2049 * utils.c (xmrealloc): Delete.
2050 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
2051 * symmisc.c (extend_psymbol_list): Use xrealloc.
2052 * source.c (find_source_lines): Ditto.
2053 * hpread.c (hpread_lookup_type): Ditto.
2054 * dbxread.c (add_bincl_to_list): Ditto.
2055
7936743b
AC
2056 * utils.c (xmmalloc): Delete.
2057 (xmalloc): Inline xmmalloc and mmalloc calls.
2058 (msavestring): Use xmalloc.
2059 * defs.h (xmmalloc): Delete declaration.
2060 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
2061 xmmalloc.
2062 * symmisc.c (extend_psymbol_list): Ditto.
2063 * symfile.c (init_psymbol_list): Ditto.
2064 * source.c (find_source_lines): Ditto.
2065 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
2066 * elfread.c (elf_symtab_read): Ditto.
2067 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
2068 * coffread.c (coff_symfile_init): Ditto.
2069
252ab814
DC
20702004-08-10 David Carlton <carlton@bactrian.org>
2071
2072 * MAINTAINERS: Remove David Carlton from c++ testsuite
2073 maintainers.
2074
8f5ba92b
JG
20752004-08-10 Jerome Guitton <guitton@gnat.com>
2076
2077 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
2078 print a line feed before the prompt.
2079
21749010
MK
20802004-08-10 Mark Kettenis <kettenis@gnu.org>
2081
2082 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
2083
1f011ce2
JB
20842004-08-09 Joel Brobecker <brobecker@gnat.com>
2085
2086 General cleanup of the AIX xm include file:
2087 * config/xm-aix4.h (fd_set): Remove undefine.
2088 Remove include of <sys/select.h>.
2089 (HAVE_TERMIO): Remove define.
2090 (USG): Likewise.
2091 (NULL): Remove redefine.
2092 (alloca): Remove #pragma.
2093 (vfork): Remove define.
2094 (termdef): Remove.
2095 (SIGWINCH_HANDLER): Remove.
2096 (SIGWINCH_HANDLER_BODY): Remove.
2097
cf4e7692
MK
20982004-08-09 Mark Kettenis <kettenis@gnu.org>
2099
2100 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
2101 GDB_OSABI_OPENBSD_ELF.
2102
ac5754fa
MK
21032004-08-07 Robert Millan <robertmh@gnu.org>
2104
2105 * bsd-kvm.c: Check for nlist.h before including it.
2106
086ec9eb
MK
21072004-08-09 Mark Kettenis <kettenis@gnu.org>
2108
bbe06c74
MK
2109 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
2110 sigcontext' offset consistency checks for ancient BSD.
2111
3aa7b3b3
MK
2112 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
2113
086ec9eb
MK
2114 * configure.in: Check for <sys/types.h>. Check return and
2115 argument types of ptrace.
2116 * configure, config.in: Regenerate.
2117
09991fa0
JB
21182004-08-09 Jim Blandy <jimb@redhat.com>
2119
2120 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
2121 rs6000_register_sim_regno): Doc fixes.
2122
fed7ba43
JB
21232004-08-08 Joel Brobecker <brobecker@gnat.com>
2124
2125 * mips-tdep.c: Include "floatformat.h".
2126 (n32n64_floatformat_always_valid): New function.
2127 (floatformat_n32n64_long_double_big): New constant.
2128 (mips_gdbarch_init): Set size and format of long double
2129 for N32 and N64 ABIs.
2130 * Makefile.in (mips-tdep.o): Update dependencies.
2131
456fcf94
AC
21322004-08-08 Andrew Cagney <cagney@gnu.org>
2133
2f9b146e
AC
2134 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
2135 print. Improve script's error messages.
2136 * gdbarch.h: Re-generate.
2137
456fcf94
AC
2138 * gdbarch.sh (pformat): New function.
2139 (float_format, double_format, long_double_format): List with bit
2140 members. Use pformat when printing.
2141 * gdbarch.c, gdbarch.h: Re-generate.
2142
69e9e646
NW
21432004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
2144
2145 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
2146 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
2147 (ppcnbsd_supply_pcb): New function.
2148 (_initialize_ppcnbsd_nat): New prototype and function.
2149 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
2150 (LOADLIBES): New variable.
2151 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
2152
5ef2d0aa
AC
21532004-08-08 Andrew Cagney <cagney@gnu.org>
2154
2155 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
2156 (builtin_type_ieee_double, builtin_type_ia64_quad)
2157 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
2158 BE/LE floating-point types.
2159 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
2160 (builtin_type_ieee_double, builtin_type_ia64_quad)
2161 (builtin_type_ia64_spill): Declare.
2162 * doublest.c (_initialize_doublest, floatformat_ieee_single)
2163 (floatformat_ieee_double, floatformat_arm_ext)
2164 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
2165 of LE/BE floatformats.
2166 * doublest.h: (struct floatformat, floatformat_ieee_single)
2167 (floatformat_ieee_double, floatformat_arm_ext)
2168 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
2169
5c7f2947
MK
21702004-08-08 Mark Kettenis <kettenis@gnu.org>
2171
ecac404d
MK
2172 * i386gnu-nat.c (gnu_store_registers): Fix typo.
2173
9b8607ce
MK
2174 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
2175 instead of regcache_raw_supply when storing the registers.
2176
f6052080
MK
2177 * i386gnu-nat.c: Update copyright year.
2178 (gnu_store_registers): Don't use deprecated_registers and
2179 deprecated_registers_valid. Use regcache_valid_p and
2180 regcache_raw_supply instead.
2181
17777823
MK
2182 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
2183 frame_pc_unwind.
2184
5240ceac
MK
2185 * procfs.c (procfs_pid_to_str): Remove redundant and unused
2186 variables. Incapitalized "process".
2187
5c7f2947
MK
2188 * configure.in: Add cursesX to the list of possible curses libs.
2189 Add cursesX.h to the list of possible curses headers.
2190 * configure, config.in: Regenerate.
2191
da7d81e3
NW
21922004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
2193
2194 * configure.in: Test for struct lwp in <sys/lwp.h>.
2195 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
2196 the offset of l_addr in struct lwp.
2197
7f245d65
NW
21982004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
2199
2200 * bsd-kvm.c: Include "gdbcore.h"
2201 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
2202
47b3f456
AC
22032004-08-07 Andrew Cagney <cagney@gnu.org>
2204
70bd8e24
AC
2205 * gdbtypes.c (build_flt, build_complex): New functions.
2206 (gdbtypes_post_init): Use.
2207
9b0dea39
AC
2208 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
2209
5cf7abac
AC
2210 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
2211 through to builtin_type_uint128.
2212
64d2b26d
AC
2213 * c-exp.y: Use builtin_type function to obtain builtin types.
2214
7ad6570d
AC
2215 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
2216 builtin_uint128.
2217 * gdbtypes.c (gdbtypes_post_init): Update.
2218 (build_gdbtypes): Move initialization of builtin_type_int0
2219 through to builtin_type_uint128 from here ...
2220 (_initialize_gdbtypes): ... to here.
2221 * d10v-tdep.c (d10v_register_type): Update.
2222
47b3f456
AC
2223 * doublest.c: Update copyright.
2224 (floatformat_from_length): Call error when floatformat is NULL.
2225 (extract_floating_by_length): Remove NULL fmt check.
2226 (store_floating_by_length): Ditto.
2227
0a8146bf
AC
22282004-08-07 Andrew Cagney <cagney@gnu.org>
2229
2230 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
2231 that the register is valid.
2232
c0ccb908
MK
22332004-08-05 Mark Kettenis <kettenis@chello.nl>
2234
8e6bed05
MK
2235 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2236 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
2237 struct frame_info *. Use safe_frame_unwind_memory instead of
2238 deprecated_read_memory_nobpt.
2239 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
2240 changed signature of i386_linux_sigtramp_start and
2241 i386_linux_rt_sigtramp_start.
2242
24f9f5e3
MK
2243 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
2244 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
2245 instead of deprecated_read_memory_nobpt.
2246 (i386nbsd_sigtramp_p): Adjust for changed signature of
2247 i386nbsd_sigtramp_offset.
2248
c822af0c
MK
2249 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
2250 safe_frame_unwind_memory instead of target_read_memory.
2251
c0ccb908
MK
2252 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2253 !NO_SYS_FILE.
2254 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
2255 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
2256 (_initialize_kernel_u_addr): Remove prototype and function.
2257 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2258 !NO_SYS_FILE.
2259 * xcoffread.c: Likewise.
2260
b9e1c0d6
MK
22612004-08-06 Mark Kettenis <kettenis@gnu.org>
2262
2263 * vax-nat.c: New file.
2264 * vaxbsd-nat.c: Tweak comment.
2265 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
2266 vaxnbsd-tdep.c.
2267 (vax-nat.o): New dependency.
2268 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
2269 (vax-*-ultrix2*): Remove.
2270 * config/vax/vax.mh: New file.
2271 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
2272 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
2273 (vax_register_u_addr): New prototype.
2274 (REGISTER_U_ADDR): Define using vax_register_u_addr.
2275 * config/vax/vaxult2.mh: Remove file.
2276 * config/vax/vaxult.mh: Remove file.
2277 * config/vax/vaxbsd.mh: Remove file.
2278 * config/vax/vax.mt (TM_FILE): Remove.
2279 * config/vax/tm-vaxbsd.h: Remove file.
2280
9ad7bec7
JB
22812004-08-06 Joel Brobecker <brobecker@gnat.com>
2282
2283 * aix-thread.c (get_signaled_thread): New function.
2284 (iter_trap): Delete, no longer used.
2285 (iter_tid): New function.
2286 (pd_update): Find the thread that received the SIGTRAP signal
2287 by first locating the kernel thread, and then finding its
2288 associated thread.
2289
bf0d233d
UW
22902004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
2291
2292 * lin-lwp.c (child_wait): Continue inferior after processing
2293 PTRACE_EVENT_CLONE event.
2294
d0f853e1
NN
22952004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
2296
2297 * MAINTAINERS: Add self to Write-After-Approval.
2298
ab14aeb0
JJ
22992004-08-05 Jeff Johnston <jjohnstn@redhat.com>
2300
2301 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
2302 libunwind-xxxx.so" where xxxx is UNW_TARGET.
2303
9c8dbfa9
AC
23042004-08-05 Andrew Cagney <cagney@gnu.org>
2305
c8f3ca46
AC
2306 * config/xm-sysv4.h: Delete file.
2307 * config/mips/xm-irix5.h: Delete file.
2308 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
2309 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
2310 * config/ia64/xm-aix.h: Delete file.
2311 * config/ia64/aix.mh (XM_FILE): Delete.
2312 * config/pa/xm-hppah.h: Delete file.
2313 * config/pa/hpux11w.mh (XM_FILE): Delete.
2314 * config/pa/hpux11.mh (XM_FILE): Delete.
2315 * config/pa/hpux1020.mh (XM_FILE): Delete.
2316 * config/pa/hppahpux.mh (XM_FILE): Delete.
2317
5f7daaff
AC
2318 * config/alpha/xm-alphalinux.h: Delete file.
2319 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
2320 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
2321 * config/alpha/xm-alphaosf.h: Delete file.
2322 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
2323 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
2324 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
2325 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
2326
69babf95
AC
2327 * config/i386/xm-i386v.h: Delete file.
2328 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
2329 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
2330 * config/i386/xm-i386sco.h: Delete file.
2331 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
2332 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
2333 * config/i386/xm-i386v4.h: Delete file.
2334 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
2335 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
2336 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
2337 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
2338
6f009c8a
AC
2339 * config/vax/xm-vax.h: Delete file.
2340 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
2341 * config/vax/xm-vaxult2.h: Delete file.
2342 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
2343 * config/vax/vaxult2.mh (XM_FILE): Delete.
2344 * config/vax/xm-vaxult.h: Delete file.
2345 * config/vax/vaxult.mh (XM_FILE): Delete.
2346 * config/vax/xm-vaxbsd.h: Delete file.
2347 * config/vax/vaxbsd.mh (XM_FILE): Delete.
2348
9c8dbfa9
AC
2349 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
2350 * gdbarch.h, gdbarch.c: Re-generate.
2351 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
2352 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
2353 * frame.h: Delete deprecated_read_fp from comments.
2354 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
2355 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
2356
84367a3e
MK
23572004-08-04 Mark Kettenis <kettenis@gnu.org>
2358
9c8e3411
MK
2359 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
2360 trampoline in OpenBSD 3.5-current.
2361
b87bc0d8
MK
2362 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
2363 SSE registers.
2364
84367a3e
MK
2365 * Makefile.in: Remove embedded page breaks.
2366
a44bddec
JB
23672004-08-04 Jim Blandy <jimb@redhat.com>
2368
7ab3286f
JB
2369 * regcache.c (regcache_raw_read): Assert that, after calling
2370 target_fetch_registers, the register we're reading is cached.
2371
a44bddec
JB
2372 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
2373 a call to 'internal_error', with a more helpful error message.
2374 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 2375 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 2376
35124113
AC
23772004-08-04 Andrew Cagney <cagney@gnu.org>
2378
2379 * Makefile.in: Update dependencies.
2380
9f643768
JB
23812004-08-04 Jim Blandy <jimb@redhat.com>
2382
6ced10dd
JB
2383 Change the layout of the PowerPC E500 raw register cache to allow
2384 the lower 32-bit halves of the GPRS to be their own raw registers,
2385 not pseudoregisters.
2386 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
2387 add ppc_ev0_upper_regnum flag.
2388 * rs6000-tdep.c: #include "reggroups.h".
2389 (spe_register_p): Recognize the ev upper half registers as SPE
2390 registers.
2391 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
2392 registers.
2393 (e500_move_ev_register): New function.
2394 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
2395 vector registers are the pseudo-registers now, formed by splicing
2396 together the gprs and the upper-half registers.
2397 (e500_register_reggroup_p): New function.
2398 (P): Macro deleted.
2399 (P8, A4): New macro.
2400 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
2401 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
2402 macros.
2403 (registers_e500): Rearrange register set so that the raw register
2404 set contains 32-bit GPRs and upper-half registers, and the SPE
2405 vector registers become pseudo-registers.
2406 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
2407 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
2408 register numbers are now the same for the E500 as they are for
2409 other PowerPC variants. Register e500_register_reggroup_p as the
2410 register group function for the E500.
2411 * Makefile.in (rs6000-tdep.o): Update dependencies.
2412
2413 Adapt PPC E500 native support to the new raw regcache layout.
2414 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
2415 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
2416 (fetch_spe_register, store_spe_register): Handle fetching/storing
2417 all the SPE registers at once, if regno == -1. These now take
2418 over the job of fetch_spe_registers and store_spe_registers.
2419 (fetch_spe_registers, store_spe_registers): Deleted.
2420 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
2421 unconditionally; they're always raw. Fetch/store SPE upper half
2422 registers, if present, instead of ev registers.
2423 (fetch_register, store_register): Remove sanity checks: gprs are
2424 never pseudo-registers now, so we never need to even mention any
2425 registers that are ever pseudoregisters.
2426
9f643768
JB
2427 Use a fixed register numbering when communicating with the PowerPC
2428 simulator.
2429 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
2430 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
2431 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
2432 New functions.
2433 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
2434 init_sim_regno_table.
2435 * Makefile.in (gdb_sim_ppc_h): New variable.
2436 (rs6000-tdep.o): Update dependencies.
2437
1e2279c8
AC
24382004-08-02 Andrew Cagney <cagney@gnu.org>
2439
1d94326f
AC
2440 * cris-tdep.c (cris_register_size): Restore function, still used
2441 locally.
2442
331ae7ed
AC
2443 * gdbarch.sh (deprecated_target_read_fp)
2444 (deprecated_frame_locals_address, deprecated_frame_args_address)
2445 (deprecated_frame_chain_valid, deprecated_frame_chain)
2446 (deprecated_init_extra_frame_info, deprecated_pop_frame)
2447 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
2448 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
2449 * gdbarch.h, gdbarch.c: Re-generate.
2450 * regcache.c (deprecated_read_fp): Do not call
2451 DEPRECATED_TARGET_READ_FP_P.
2452 * infcmd.c (default_print_registers_info): Do not call
2453 DEPRECATED_DO_REGISTERS_INFO.
2454 * frame-base.c (default_frame_locals_address): Do not call
2455 DEPRECATED_FRAME_LOCALS_ADDRESS.
2456 (default_frame_args_address): Do not call
2457 DEPRECATED_FRAME_ARGS_ADDRESS.
2458
1e2279c8
AC
2459 * gdbarch.sh (deprecated_register_raw_size)
2460 (deprecated_register_virtual_size:int): Delete.
2461 * gdbarch.h, gdbarch.c: Re-generate.
2462 * cris-tdep.c (cris_register_size): Delete.
2463 (cris_gdbarch_init): Update.
2464 * alpha-tdep.c (alpha_register_raw_size)
2465 (alpha_register_virtual_size): Delete.
2466 (alpha_gdbarch_init): Update.
2467
a90c06b4
AC
2468 * gdbarch.sh (deprecated_register_virtual_type)
2469 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
2470 (deprecated_dummy_write_sp): Delete.
2471 * gdbarch.h, gdbarch.c: Re-generate.
2472
f42accbe
AC
2473 * gdbarch.sh (deprecated_register_bytes): Delete.
2474 * gdbarch.h, gdbarch.c: Re-generate.
2475 * regcache.c (deprecated_register_bytes): New function.
2476 * regcache.h (deprecated_register_bytes): Declare.
2477 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2478 * v850-tdep.c (v850_gdbarch_init): Update.
2479 * sh64-tdep.c (sh64_gdbarch_init): Update.
2480 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
2481 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2482 * mcore-tdep.c (mcore_gdbarch_init): Update.
2483 * cris-tdep.c (cris_gdbarch_init): Update.
2484 * arm-tdep.c (arm_gdbarch_init): Update.
2485 * remote.c (init_remote_state): Update.
2486 * remote-vx.c (vx_prepare_to_store): Update.
2487 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
2488 * irix5-nat.c (fetch_core_registers): Update.
2489 * cris-tdep.c (cris_register_bytes_ok): Update.
2490 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
2491
45c9dd44
AC
2492 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
2493 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
2494 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
2495 (mips_insn16_frame_base_address, mips_insn16_frame_base)
2496 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
2497 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
2498 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
2499 (mips_insn32_frame_base_address, mips_insn32_frame_base)
2500 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
2501 with mips_insn16 and mips_insn32.
2502
3acba339
AC
2503 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
2504 * rs6000-tdep.c (rs6000_push_dummy_call)
2505 (rs6000_extract_return_value): Use register_size.
2506 * xstormy16-tdep.c (xstormy16_get_saved_register)
2507 (xstormy16_extract_return_value): Ditto.
2508 * valops.c (value_assign): Ditto.
2509 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
2510 * v850-tdep.c (v850_extract_return_value): Ditto.
2511 * tracepoint.c (collect_symbol): Ditto.
2512 * target.c (debug_print_register): Ditto.
2513 * stack.c (frame_info): Ditto.
2514 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
2515 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
2516 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
2517 (store_register_using_P): Ditto.
2518 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
2519 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
2520 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
2521 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
2522 * regcache.c (deprecated_read_register_bytes)
2523 (deprecated_write_register_bytes, read_register)
2524 (write_register): Ditto.
2525 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
2526 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
2527 * monitor.c (monitor_supply_register, monitor_fetch_register)
2528 (monitor_store_register): Ditto.
2529 * mn10300-tdep.c (mn10300_pop_frame_regular)
2530 (mn10300_print_register): Ditto.
2531 * mipsv4-nat.c (fill_fpregset): Ditto.
2532 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
2533 (mips64_fill_fpregset): Ditto.
2534 * mi/mi-main.c (register_changed_p, get_register)
2535 (mi_cmd_data_write_register_values): Ditto.
2536 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
2537 * irix5-nat.c (fill_gregset, fetch_core_registers):
2538 * infrun.c (write_inferior_status_register): Ditto.
2539 * infptrace.c (fetch_register, store_register): Ditto.
2540 * infcmd.c (default_print_registers_info): Ditto.
2541 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
2542 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
2543 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
2544 * hpux-thread.c (hpux_thread_fetch_registers)
2545 (hpux_thread_store_registers): Ditto.
2546 * hppah-nat.c (store_inferior_registers, fetch_register):
2547 * findvar.c (value_from_register): Ditto.
2548 * dve3900-rom.c (fetch_bitmapped_register):
2549 * cris-tdep.c (cris_gdbarch_init): Ditto.
2550 * alpha-tdep.h: Ditto.
2551 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
2552
01e1877c
AC
2553 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
2554 DEPRECATED_REGISTER_RAW_SIZE from comments.
2555 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
2556 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
2557 DEPRECATED_REGISTER_RAW_SIZE.
2558 * findvar.c (value_of_register): Simplify by assuming that the
2559 registers raw and virtual sizes are identical.
2560 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
2561 comment.
2562 * arch-utils.c (generic_register_size): Simplify by assuming
2563 register_type.
2564
73f458fb
AC
2565 * regcache.c (legacy_read_register_gen, real_register)
2566 (legacy_write_register_gen): Delete, not used.
2567
336a3131
AC
2568 * regcache.c (struct regcache_descr): Delete legacy_p.
2569 (init_legacy_regcache_descr): Delete function.
2570 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
2571 Do not use deprecated register functions.
2572 (regcache_raw_read, deprecated_write_register_gen):
2573 (deprecated_read_register_gen, regcache_raw_write): Delete code
2574 predicated on legacy_p.
2575 (register_size): Delete check against register raw size.
2576
c1d546cd
AC
2577 * cris-tdep.c (cris_register_type): Replace
2578 cris_register_virtual_type.
2579 (cris_gdbarch_init): Update, set register_type.
2580
48c2c0a6
AC
2581 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
2582 * gdbarch.h, gdbarch.c: Re-generate.
2583 * arm-tdep.c (arm_frameless_function_invocation): Delete.
2584 (arm_gdbarch_init) Do not set frameless function invocation.
2585 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
2586 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
2587 * frv-tdep.c (frv_frameless_function_invocation): Delete.
2588 (frv_gdbarch_init): Do not set frameless function invocation.
2589 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
2590 * sh-tdep.c (sh_gdbarch_init): Ditto.
2591 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
2592 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2593 * avr-tdep.c (avr_gdbarch_init): Ditto.
2594
474093a6
AC
2595 * blockframe.c (legacy_frame_chain_valid): Delete function.
2596
3c109c8b
AC
2597 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
2598 and pc. Update comments.
2599 (pc_in_dummy_frame): Delete function.
2600 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
2601 use the "id".
2602 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
2603 call_hi, top and pc, use the id.
2604 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
2605
96860204
AC
2606 * dummy-frame.c: Include "gdb_string.h".
2607 (generic_save_call_dummy_addr, generic_push_dummy_frame)
2608 (generic_save_dummy_frame_tos): Delete.
2609 (dummy_frame_push): New function, replaces above.
2610 * dummy-frame.h: Update copyright.
2611 (dummy_frame_push): Declare.
2612 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
2613 (generic_save_call_dummy_addr): Delete declarations.
2614 * infcall.c: Include "dummy-frame.h".
2615 (call_function_by_hand): Add locals caller_regcache,
2616 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
2617 with call to frame_save_as_regcache plus cleanup. Delete calls to
2618 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
2619 Move clear_proceed_status to just before the resume, add call to
2620 dummy_frame_push (discard cleanup).
2621 * Makefile.in (infcall.o): Add $(dummy_frame_h).
2622 (dummy-frame.o): Add $(gdb_string_h).
2623
d67ec5db
AC
26242004-08-01 Andrew Cagney <cagney@gnu.org>
2625
2626 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
2627 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
2628 * dummy-frame.c (find_dummy_frame): Delete.
2629 (struct dummy_frame_cache, dummy_frame_sniffer)
2630 (dummy_frame_prev_register, dummy_frame_this_id)
2631 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
2632 frame unwinder using a dummy_frame_cache.
2633
a81dcb05
AC
26342004-08-01 Andrew Cagney <cagney@gnu.org>
2635
2636 * frame.h (frame_save_as_regcache): Declare.
2637 * frame.c (frame_save_as_regcache): New function.
2638 (do_frame_read_register): Replace do_frame_unwind_register.
2639 (frame_pop): Use frame_save_as_regcache.
2640 * dummy-frame.c (generic_push_dummy_frame): Use
2641 frame_save_as_regcache.
2642
aa495d11
JB
26432004-08-01 Joel Brobecker <brobecker@gnat.com>
2644
2645 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
2646 file as included until we record the first line in the linetable.
2647
ff65ac78
AC
26482004-08-01 Andrew Cagney <cagney@gnu.org>
2649
2650 * frame.h (deprecated_pop_dummy_frame)
2651 (deprecated_read_register_dummy)
2652 (deprecated_generic_find_dummy_frame): Delete.
2653 * dummy-frame.c (deprecated_generic_find_dummy_frame)
2654 (deprecated_read_register_dummy)
2655 (deprecated_find_dummy_frame_regcache)
2656 (discard_innermost_dummy)
2657 (deprecated_pop_dummy_frame): Delete.
2658 (dummy_frame_this_id): Simplify.
2659 (struct dummy_frame): Delete "fp" and "sp".
2660 (find_dummy_frame): Simplify.
2661 (generic_push_dummy_frame): Do not set "fp" or "sp".
2662 (fprint_dummy_frames): Do not print "fp" and "sp"
2663
37bdc87e
MK
26642004-08-01 Mark Kettenis <kettenis@gnu.org>
2665
2666 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
2667 (struct i386_insn): New structure.
2668 (i386_match_insn): New function.
2669 (i386_frame_setup_skip_insns): New variable.
2670 (i386_analyze_frame_setup): Change to use i386_match_insn and the
2671 array i386_frame_setup_insns of instructions that should be
2672 skipped inside the frame setup sequence.
2673
8241eaa6
AC
26742004-08-01 Andrew Cagney <cagney@gnu.org>
2675
5bc602c7
AC
2676 * frame.h (deprecated_frame_xmalloc_with_cleanup)
2677 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2678 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2679 * stack.c (frame_info): Delete references to
2680 DEPRECATED_FRAME_INIT_SAVED_REGS and
2681 deprecated_get_frame_saved_regs.
2682 * frame.c (struct frame_info): Delete saved_regs and extra_info.
2683 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
2684 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
2685 (frame_unwind_register_signed)
2686 (frame_unwind_register_unsigned)
2687 (frame_unwind_unsigned_register): Use register_size.
2688 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
2689 (deprecated_frame_xmalloc_with_cleanup)
2690 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2691 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2692
03d363a1
AC
2693 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
2694 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
2695 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
2696 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
2697
8241eaa6
AC
2698 * infcall.c (call_function_by_hand): Do not use
2699 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
2700 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
2701 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
2702 DEPRECATED_STACK_ALIGN.
2703
f00df8b7
AC
27042004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
2705
2706 Committed by Andrew Cagney.
2707 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
2708
eec63939
AC
27092004-08-01 Andrew Cagney <cagney@gnu.org>
2710
2711 * mips-tdep.c (mips16_frame_cache)
2712 (mips16_frame_this_id, mips16_frame_prev_register)
2713 (mips16_frame_unwind, mips16_frame_sniffer)
2714 (mips16_frame_base_address, mips16_frame_base)
2715 (mips16_frame_base_sniffer, mips32_frame_cache)
2716 (mips32_frame_this_id, mips32_frame_prev_register)
2717 (mips32_frame_unwind, mips32_frame_sniffer)
2718 (mips32_frame_base_address, mips32_frame_base)
2719 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
2720 separate heuristic mips16 and mips32 unwinders.
2721 (mips_stub_frame_cache, mips_stub_frame_this_id)
2722 (mips_stub_frame_prev_register)
2723 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
2724 (mips_stub_frame_base_address, mips_stub_frame_base)
2725 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
2726 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
2727 match true mdebug frames.
2728 (non_heuristic_proc_desc): Add forward declaration.
2729
e66299b3
AC
27302004-08-01 Andrew Cagney <cagney@gnu.org>
2731
83cbbf3e
AC
2732 * config/mips/tm-irix6.h: Delete file.
2733 * config/mips/tm-irix5.h: Delete file.
2734 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
2735 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
2736
22d41b37
AC
2737 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
2738 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
2739 * config/nm-gnu.h (NO_CORE_OPS): Delete.
2740 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
2741 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
2742 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
2743 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
2744 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
2745 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
2746 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
2747 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
2748 (TARGET_SIGNAL_RAW_VALUES): Delete.
2749 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
2750 Delete.
2751 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
2752 (TARGET_HW_WATCH_LIMIT): Delete.
2753 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
2754 * minimon.h: Delete file.
2755
e66299b3
AC
2756 * trad-frame.c (trad_frame_get_this_base)
2757 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
2758 functions.
2759 * trad-frame.h (trad_frame_set_this_base)
2760 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
2761
1f67027d
AC
27622004-07-31 Andrew Cagney <cagney@gnu.org>
2763
2764 * trad-frame.c (trad_frame_get_prev_register): Rename
2765 trad_frame_get_prev_register.
2766 * vax-tdep.c (vax_frame_prev_register): Update.
2767 * trad-frame.h: Update.
2768 * trad-frame.c (trad_frame_get_register): Update.
2769 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
2770 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
2771 Update.
2772 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
2773 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
2774 Update.
2775 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
2776 Update.
2777 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
2778 Update.
2779 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
2780 Update.
2781 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
2782 Update.
2783 * s390-tdep.c (s390_frame_prev_register)
2784 (s390_stub_frame_prev_register)
2785 (s390_sigtramp_frame_prev_register): Update.
2786 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
2787 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
2788 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
2789 * m88k-tdep.c (m88k_frame_prev_register)
2790 * m68hc11-tdep.c (m68hc11_frame_prev_register)
2791 * m32r-tdep.c (m32r_frame_prev_register): Update.
2792 * hppa-tdep.c (hppa_frame_prev_register_helper)
2793 * frv-tdep.c (frv_frame_prev_register): Update.
2794 * d10v-tdep.c (d10v_frame_prev_register): Update.
2795 * cris-tdep.c (cris_frame_prev_register): Update.
2796 * avr-tdep.c (avr_frame_prev_register): Update.
2797 * arm-tdep.c (arm_prologue_prev_register)
2798 (arm_sigtramp_prev_register): Update.
2799
c1bf6f65
AC
28002004-07-31 Andrew Cagney <cagney@gnu.org>
2801
2802 * frame.h (legacy_saved_regs_unwind)
2803 (legacy_frame_chain_valid, legacy_frame_p)
2804 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
2805 * dummy-frame.c (dummy_frame_this_id): Simplify.
2806 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
2807 * frame.c (struct frame_info): Delete the field "type".
2808 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
2809 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
2810 (legacy_saved_regs_unwind, legacy_frame_p)
2811 (frame_type_from_pc): Delete.
2812 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
2813 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
2814
dc856692
MK
28152004-07-31 Mark Kettenis <kettenis@gnu.org>
2816
5a5effe1
MK
2817 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
2818 indentation.
2819
d4fd50a6
MK
2820 * mips-nat.c: Remove file.
2821 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
2822 (mips-nat.o): Remove dependency.
2823
2689df5a
MK
2824 * infptrace.c: Update copyright year.
2825 (fetch_register): Pass NULL in regcache_raw_supply call instead of
2826 explicitly setting the buffer to all zeroes.
2827
dc856692
MK
2828 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
2829 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
2830
763910e0
AC
28312004-07-30 Andrew Cagney <cagney@gnu.org>
2832
2833 * GDB 6.2 released from gdb_6_2-branch.
2834
0b66e38c
EZ
28352004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
2836
2837 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
2838
2839 * exec.c (exec_file_attach):
2840 * nto-tdep.c (nto_find_and_open_solib):
2841 * pa64solib.c (pa64_solib_sizeof_symbol_table):
2842 * solib.c (solib_open):
2843 * somsolib.c (som_solib_sizeof_symbol_table):
2844 * source.c (is_regular_file, openp, open_source_file):
2845 * symfile.c (symfile_bfd_open):
2846 * wince.c (upload_to_device): Differentiate between the search for
2847 binary and source files.
2848
be7d7357
AC
28492004-07-30 Andrew Cagney <cagney@gnu.org>
2850
2851 * complaints.c (_initialize_complaints): Pass NULL to
2852 add_setshow_zinteger_cmd for help_doc.
2853 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
2854
ddc9cd0f
AC
28552004-07-30 Andrew Cagney <cagney@gnu.org>
2856
2857 Fix PR i18n/761.
2858 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
2859 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
2860 $(PACKAGE).pot and update-po.
2861 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
2862 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
2863 (update-po): New rules.
2864 (localedir): Define using autoconf.
2865 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
2866 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
2867 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
2868 * configure.in: Generate CATALOGS and LINGUAS from contents of
2869 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
2870 * configure: Re-generate.
2871 * po/gdbtext: New file
2872
e92f3704
JG
28732004-07-30 Jerome Guitton <guitton@gnat.com>
2874
2875 * MAINTAINERS: Reorder Write After Approval list in alphabetical
2876 order.
2877
b0f35d58
DL
28782004-07-30 David Lecomber <dsl@sources.redhat.com>
2879
2880 * dwarf2read.c (read_file_scope): Set producer if attribute
2881 present.
2882 (struct dwarf2_cu): Added new member producer.
2883
ce7d4522
JG
28842004-07-30 Jerome Guitton <guitton@gnat.com>
2885
2886 * inflow.c (kill_command): release file handles in BFD.
2887 * exec.c (exec_file_attach): Ditto.
2888 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
2889
05ee07c7
AC
28902004-07-29 Andrew Cagney <cagney@gnu.org>
2891
2892 * PROBLEMS (mips-irix): Note that it is broken.
2893
62eceb47
AC
28942004-07-29 Andrew Cagney <cagney@gnu.org>
2895
e57b8d41
AC
2896 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
2897 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
2898
d334389b
AC
2899 * config/xm-nbsd.h: Delete file.
2900 * config/arm/xm-nbsd.h: Delete file.
2901 * config/i386/xm-nbsd.h: Delete file.
2902 * config/ns32k/xm-nbsd.h: Delete file.
2903 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
2904 * config/i386/nbsdelf.mh (XM_FILE): Delete.
2905 * config/i386/nbsdaout.mh (XM_FILE): Delete.
2906 * config/arm/nbsdelf.mh (XM_FILE): Delete.
2907 * config/arm/nbsdaout.mh (XM_FILE): Delete.
2908
e910f676
AC
2909 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
2910 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
2911 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
2912 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
2913 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
2914 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
2915
6fa856b9
AC
2916 * config/powerpc/xm-linux.h: Delete empty file.
2917 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
2918 * config/powerpc/linux.mh (XM_FILE): Delete.
2919 * config/m68k/xm-linux.h: Delete empty file.
2920 * config/m68k/linux.mh (XM_FILE): Delete.
2921 * config/ia64/xm-linux.h: Delete empty file.
2922 * config/ia64/linux.mh (XM_FILE): Delete.
2923 * config/arm/xm-linux.h: Delete empty file.
2924 * config/arm/linux.mh (XM_FILE): Delete.
2925
471ae5ae
AC
2926 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2927 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
2928 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2929 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
2930 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2931 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
2932 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2933 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
2934
62eceb47
AC
2935 * config/m68k/xm-m68k.h: Delete file.
2936 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
2937 copyright.
2938 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
2939 * config/pa/xm-linux.h: Delete empty file.
2940 * config/pa/linux.mh (XM_FILE): Delete.
2941 * config/i386/xm-i386.h: Delete empty file.
2942 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
2943 "i386/xm-i386.h".
2944 * config/i386/obsdaout.mh (XM_FILE): Delete.
2945 * config/i386/obsd64.mh (XM_FILE): Delete.
2946 * config/i386/fbsd64.mh (XM_FILE): Delete.
2947 * config/i386/nto.mh (XM_FILE): Delete.
2948 * config/i386/obsd.mh (XM_FILE): Delete.
2949 * config/i386/linux64.mh (XM_FILE): Delete.
2950 * config/i386/linux.mh (XM_FILE): Delete.
2951 * config/i386/i386sol2.mh (XM_FILE): Delete.
2952 * config/i386/i386gnu.mh (XM_FILE): Delete.
2953 * config/i386/fbsd.mh (XM_FILE): Delete.
2954 * config/i386/nbsd64.mh (XM_FILE): Delete.
2955
c35f4ffc
AC
29562004-07-29 Andrew Cagney <cagney@gnu.org>
2957
2958 * config/pa/xm-linux.h: Do not include "floatformat.h".
2959 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2960 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
2961 * config/i386/xm-i386.h: Do not include "floatformat.h".
2962 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2963 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
2964 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2965 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
2966 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
2967 GDB_HOST_LONG_DOUBLE_FORMAT instead.
2968 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
2969 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
2970 * configure, config.in: Regenerate.
2971 * configure.host (gdb_host_float_format, gdb_host_double_format)
2972 (gdb_host_long_double_format): Set according to the host.
2973
624a44a3
AC
29742004-07-29 Andrew Cagney <cagney@gnu.org>
2975
2976 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
2977
0dea2468
AC
29782004-07-28 Andrew Cagney <cagney@gnu.org>
2979
2980 * PROBLEMS: Mention threads/1650.
2981 * NEWS: Mention the NPTL fix.
2982
b3f42336
AC
29832004-07-28 Andrew Cagney <cagney@gnu.org>
2984
2985 * cli/cli-decode.c (add_setshow_cmd): Delete function.
2986 (add_setshow_cmd_full): Make static.
2987 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
2988 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
2989 * cli/cli-decode.c (add_setshow_filename_cmd)
2990 (add_setshow_string_cmd): New functions.
2991 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
2992 * mips-tdep.c (_initialize_mips_tdep): Update.
2993 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
2994 * cli/cli-logging.c (_initialize_cli_logging): Update.
2995 * complaints.c (_initialize_complaints): Update.
2996 * remote.c (_initialize_remote): Update.
2997
3b64bf98
AC
29982004-07-28 Andrew Cagney <cagney@gnu.org>
2999
3000 * cli/cli-decode.c (add_setshow_zinteger_cmd)
3001 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
3002 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
3003 print parameters. Make string parameters constant.
3004 * command.h: Update. Update copyright.
3005 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
3006 * observer.c (_initialize_observer): Ditto.
3007 * frame.c (_initialize_frame): Ditto.
3008 * complaints.c (_initialize_complaints): Ditto.
3009 * maint.c (_initialize_maint_cmds): Ditto.
3010 * target.c (initialize_targets): Ditto.
3011 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
3012 * infcall.c (_initialize_infcall): Ditto.
3013 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3014 * m32r-rom.c (_initialize_m32r_rom): Ditto.
3015 * remote-rdi.c (_initialize_remote_rdi): Ditto.
3016 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
3017 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3018
e9667a65
AC
30192004-07-28 Andrew Cagney <cagney@gnu.org>
3020
54a5b07d
AC
3021 * gdbtypes.c (lookup_primitive_typename): Delete function.
3022 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
3023 * ada-lex.l: Use language_lookup_primitive_type_by_name.
3024 * gdbtypes.c (lookup_typename): Ditto.
3025 * f-exp.y (yylex): Ditto.
3026 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
3027
e9667a65
AC
3028 * scm-lang.c (c_builtin_types): Delete extern declaration.
3029 (scm_language_defn): Replace
3030 string_char_type and primitive_type_vector with
3031 la_language_arch_info.
3032 * jv-lang.c (java_language_defn): Replace
3033 string_char_type and primitive_type_vector with
3034 la_language_arch_info.
3035 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
3036 c_builtin_types in comment.
3037 * c-lang.h (struct language_arch_info): Declare opaque.
3038 (c_language_arch_info): Declare.
3039 (c_builtin_types): Delete declaration.
3040 * c-lang.c (c_language_arch_info): Set string_char_type to
3041 builtin_char, not builtin_true_char. Make global.
3042 (c_builtin_types): Delete array.
3043 (asm_language_defn, minimal_language_defn): Replace
3044 string_char_type and primitive_type_vector with
3045 la_language_arch_info.
3046
685419e2
AC
30472004-07-28 Andrew Cagney <cagney@gnu.org>
3048
3049 * gdbtypes.h (struct builtin_type): Rename true_char to
3050 builtin_true_char.
3051 * gdbtypes.c (gdbtypes_post_init): Update.
3052 * c-lang.c (arch_info): New function.
3053 (enum c_primitive_types): New enum.
3054 (c_language_defn): Instead of string_char_type and
3055 primitive_type_vector set la_language_arch_info.
3056
5a44ea29
AC
30572004-07-28 Andrew Cagney <cagney@gnu.org>
3058
3059 * language.h (struct language_arch_info): Fix typo
3060 s/primative/primitive/.
3061 * gdbtypes.c (lookup_primitive_typename): Ditto.
3062 * language.c (language_lookup_primitive_type_by_name)
3063 (unknown_language_arch_info): Ditto.
3064
f290d38e
AC
30652004-07-27 Andrew Cagney <cagney@gnu.org>
3066
3067 * defs.h (enum language): Add nr_languages.
3068 * language.h (struct language_arch_info): Define.
3069 (struct language_defn): Add la_language_arch_info.
3070 (language_lookup_primative_type_by_name): Declare.
3071 (language_string_char_type): Declare.
3072 * language.c (_initialize_language, language_gdbarch_post_init)
3073 (struct language_gdbarch, language_gdbarch_data): Implement
3074 per-architecture language information.
3075 (unknown_language_arch_info, language_string_char_type)
3076 (language_lookup_primative_type_by_name): New functions.
3077 (unknown_language_defn, auto_language_defn)
3078 (local_language_defn): Set la_language_arch_info to
3079 unknown_language_arch_info.
3080 (unknown_builtin_types): Delete.
3081 * gdbtypes.c (lookup_primitive_typename): Use
3082 language_lookup_primative_type_by_name.
3083 (create_string_type): Use language_string_char_type.
3084 * values.c (value_from_string): Use language_string_char_type.
3085 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
3086 * p-lang.c (pascal_language_defn): Ditto.
3087 * m2-lang.c (m2_language_defn): Ditto.
3088 * jv-lang.c (java_language_defn): Ditto.
3089 * objc-lang.c (objc_language_defn): Ditto.
3090 * f-lang.c (f_language_defn): Ditto.
3091 * c-lang.c (c_language_defn, cplus_language_defn)
3092 (asm_language_defn, minimal_language_defn): Ditto.
3093
000177f0
AC
30942004-07-27 Andrew Cagney <cagney@gnu.org>
3095
3096 * gdbtypes.h (struct builtin_type): Declare.
3097 (builtin_type): Declare.
3098 * d10v-tdep.c (d10v_register_type): Use builtin_type.
3099 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
3100 (gdbtypes_post_init): New function.
3101 (builtin_type): New function.
3102
e22f895c
KI
31032004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
3104
3105 * remote-m32r-sdi.c: Fix breakpoint bug.
3106 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
3107 recv_char_data, recv_long_data): New functions to replace communication
3108 sequences.
3109
536517dd
MC
31102004-07-26 Michael Chastain <mec.gnu@mindspring.com>
3111
3112 Document PR threads/1650.
3113 * PROBLEMS (Threads): Document problem with many threads
3114
a0a44d18
AC
31152004-07-26 Andrew Cagney <cagney@gnu.org>
3116
3117 * gdb-mi.el: Move from here ...
3118 * mi/gdb-mi.el: ... to here.
3119
7ac4ac06
AC
31202004-07-26 Andrew Cagney <cagney@gnu.org>
3121
3122 Problem reported by Ashley Pittman <ashley@quadrics.com>.
3123 * main.c (captured_main): When in batch mode always detach.
3124
a1b461bf
AC
31252004-07-26 Andrew Cagney <cagney@gnu.org>
3126
3127 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
3128 and h8300 as broken.
3129 * NEWS: END-OF-LIFE frame compatibility module.
3130 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
3131 specific comments.
3132
cb1a6d5f
AC
31332004-07-26 Andrew Cagney <cagney@gnu.org>
3134
3135 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
3136 * xcoffsolib.c (_initialize_xcoffsolib): Update.
3137 * wince.c (_initialize_wince): Update.
3138 * win32-nat.c (_initialize_win32_nat): Update.
3139 * varobj.c (_initialize_varobj): Update.
3140 * valops.c (_initialize_valops): Update.
3141 * utils.c (initialize_utils, initialize_utils): Update.
3142 * tui/tui-win.c (_initialize_tui_win): Update.
3143 * top.c (init_main): Update.
3144 * symfile.c (_initialize_symfile): Update.
3145 * source.c (_initialize_source): Update.
3146 * somsolib.c (_initialize_som_solib): Update.
3147 * solib.c (_initialize_solib): Update.
3148 * solib-frv.c (_initialize_frv_solib): Update.
3149 * serial.c (_initialize_serial): Update.
3150 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
3151 * remote.c (_initialize_remote, _initialize_remote): Update.
3152 * remote-vx.c (_initialize_vx): Update.
3153 * remote-utils.c (_initialize_sr_support): Update.
3154 * remote-sds.c (_initialize_remote_sds): Update.
3155 * remote-mips.c (_initialize_remote_mips): Update.
3156 * remote-e7000.c (_initialize_remote_e7000): Update.
3157 * proc-api.c (_initialize_proc_api): Update.
3158 * printcmd.c: Update.
3159 * parse.c (_initialize_parse): Update.
3160 * pa64solib.c (_initialize_pa64_solib): Update.
3161 * p-valprint.c (_initialize_pascal_valprint): Update.
3162 * monitor.c (_initialize_remote_monitors): Update.
3163 * mips-tdep.c (_initialize_mips_tdep): Update.
3164 * mcore-tdep.c (_initialize_mcore_tdep): Update.
3165 * maint.c (_initialize_maint_cmds): Update.
3166 * lin-lwp.c (_initialize_lin_lwp): Update.
3167 * language.c (_initialize_language): Update.
3168 * kod.c (_initialize_kod): Update.
3169 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
3170 * i386-tdep.c (_initialize_i386_tdep): Update.
3171 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
3172 * gdbarch.sh: Update.
3173 * gdbarch.c: Re-generate.
3174 * gdb-events.sh: Update.
3175 * gdb-events.c: Re-generate.
3176 * frame.c (_initialize_frame): Update.
3177 * exec.c: Update.
3178 * demangle.c (_initialize_demangler): Update.
3179 * dcache.c (_initialize_dcache): Update.
3180 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
3181 * cp-valprint.c (_initialize_cp_valprint): Update.
3182 * corefile.c (_initialize_core): Update.
3183 * command.h: Update.
3184 * cli/cli-decode.h: Update.
3185 * cli/cli-cmds.c (init_cli_cmds): Update.
3186 * charset.c (_initialize_charset): Update.
3187 * breakpoint.c (_initialize_breakpoint): Update.
3188 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
3189 * alpha-tdep.c (_initialize_alpha_tdep): Update.
3190 * aix-thread.c (_initialize_aix_thread): Update.
3191
b4632131
MK
31922004-07-24 Mark Kettenis <kettenis@gnu.org>
3193
3194 Partial fix for PR backtrace/1718.
3195 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
3196 that GCC migrates into the prolugue. Don't handle any
3197 instructions that clobber %ebx.
3198
822c9732
AC
31992004-07-23 Andrew Cagney <cagney@gnu.org>
3200
3201 Use regcache_raw_collect instead of regcache_collect.
3202 * regcache.h (regcache_collect): Delete declaration.
3203 * regcache.c (regcache_colect): Delete function.
3204 * win32-nat.c (do_child_store_inferior_registers): Update.
3205 * sol-thread.c (sol_thread_store_registers): Update.
3206 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
3207 * rs6000-nat.c (store_register): Update.
3208 * remote.c (store_register_using_P, remote_store_registers): Update.
3209 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
3210 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
3211 (fill_vrregset, store_spe_registers, fill_gregset)
3212 (fill_gregset): Update.
3213 * nto-procfs.c (procfs_store_registers): Update.
3214 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
3215 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
3216 * m68klinux-nat.c (store_register, fill_gregset): Update.
3217 * m68k-tdep.c (fill_gregset): Update.
3218 * infptrace.c (store_register): Update.
3219 * i386-nto-tdep.c (i386nto_regset_fill): Update.
3220 * i386-linux-nat.c (store_register, fill_gregset): Update.
3221 * hppa-linux-nat.c (fill_gregset): Update.
3222 * go32-nat.c (store_register): Update.
3223 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
3224 (store_fp_regs): Update.
3225 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
3226 (store_nwfpe_extended, store_fpregister, store_fpregs)
3227 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
3228 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
3229 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
3230 (store_regs_user_thread, store_regs_kernel_thread): Update.
3231
32b05c07
MK
32322004-07-24 Mark Kettenis <kettenis@gnu.org>
3233
3234 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
3235 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
3236 encoding.
3237 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
3238 member of `struct comp_unit'.
3239
8567c30f
AC
32402004-07-23 Andrew Cagney <cagney@gnu.org>
3241
3242 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
3243 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
3244
f6da8dd8
MH
32452004-07-23 Martin Hunt <hunt@redhat.com>
3246 Kevin Buettner <kevinb@redhat.com>
3247
3248 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
3249 alignment was being added to the offset instead of multiplied.
3250
bd921882
MK
32512004-07-23 Mark Kettenis <kettenis@gnu.org>
3252
24f033e8
MK
3253 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
3254 changed signal trampoline in OpenBSD 3.5-current.
3255
90f3cecd
MK
3256 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
3257 <machine/pcb.h> and "bsd-kvm.h".
3258 (sparc64nbsd_supply_pcb): New function.
3259 (_initialize_sparc64nbsd_nat): Renamed from
3260 _initialize_sparcnbsd_nat. Enable libkvm interface.
3261 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
3262 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
3263 (LOADLIBES): New variable.
3264
a4954a62
MK
3265 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
3266
bd921882
MK
3267 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
3268
23a6d369
AC
32692004-07-21 Andrew Cagney <cagney@gnu.org>
3270
3271 Use regcache_raw_supply instead of supply_register.
3272 * regcache.h (supply_register): Delete declaration.
3273 * regcache.c (supply_register): Delete function.
3274 * wince.c (do_child_fetch_inferior_registers): Update.
3275 * win32-nat.c (do_child_fetch_inferior_registers)
3276 (fetch_elf_core_registers): Update.
3277 * v850ice.c (v850ice_fetch_registers): Update.
3278 * thread-db.c (thread_db_store_registers): Update.
3279 * sol-thread.c (sol_thread_store_registers): Update.
3280 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
3281 * rs6000-nat.c (fetch_register): Update.
3282 * rom68k-rom.c (rom68k_supply_one_register): Update.
3283 * remote.c (remote_wait, remote_async_wait): Update.
3284 * remote-st.c (get_hex_regs): Update.
3285 * remote-sim.c (gdbsim_fetch_register): Update.
3286 * remote-sds.c (sds_fetch_registers): Update.
3287 * remote-rdp.c (remote_rdp_fetch_register): Update.
3288 * remote-rdi.c (arm_rdi_fetch_registers): Update.
3289 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
3290 * remote-m32r-sdi.c (m32r_fetch_register): Update.
3291 * remote-hms.c (init_hms_cmds): Update.
3292 * remote-est.c (init_est_cmds): Update.
3293 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
3294 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
3295 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
3296 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
3297 (fetch_register, supply_vrregset, supply_vrregset)
3298 (fetch_spe_registers): Update.
3299 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
3300 * monitor.c (monitor_supply_register): Update.
3301 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
3302 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
3303 (mipsnbsd_supply_fpreg): Update.
3304 * mips-nat.c (fetch_inferior_registers)
3305 (fetch_core_registers): Update.
3306 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
3307 (supply_fpregset, mips64_supply_gregset)
3308 (mips64_supply_fpregset): Update.
3309 * m68klinux-nat.c (fetch_register, supply_gregset)
3310 (supply_fpregset): Update.
3311 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
3312 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
3313 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
3314 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
3315 * infptrace.c (fetch_register): Update.
3316 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
3317 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
3318 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
3319 (gnu_fetch_registers, gnu_store_registers): Update.
3320 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
3321 * i386-linux-nat.c (fetch_register, supply_gregset)
3322 (dummy_sse_values): Update.
3323 * hpux-thread.c (hpux_thread_fetch_registers): Update.
3324 * hppah-nat.c (fetch_register): Update.
3325 * hppa-linux-nat.c (fetch_register, supply_gregset)
3326 (supply_fpregset): Update.
3327 * go32-nat.c (fetch_register): Update.
3328 * dve3900-rom.c (fetch_bitmapped_register)
3329 (_initialize_r3900_rom): Update.
3330 * cris-tdep.c (supply_gregset): Update.
3331 * abug-rom.c (init_abug_cmds): Update.
3332 * core-aout.c (fetch_core_registers): Update.
3333 * armnbsd-nat.c (supply_gregset, supply_fparegset)
3334 (fetch_register, fetch_fp_register): Update.
3335 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
3336 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
3337 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
3338 * alphanbsd-tdep.c (fetch_core_registers): Update.
3339 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
3340 * alpha-nat.c (fetch_osf_core_registers)
3341 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
3342 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
3343 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
3344
73cc75f3
AC
33452004-07-21 Andrew Cagney <cagney@gnu.org>
3346
3347 * PROBLEMS: Mention breakpoints/1702.
3348 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
3349 that is known to work.
3350
a53c66de
AC
33512004-07-21 Andrew Cagney <cagney@gnu.org>
3352
3353 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
3354 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
3355 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
3356 (handle_inferior_event): Wrap call to deprecated
3357 IGNORE_HELPER_CALL in #ifdef.
3358 * config/mips/tm-nbsd.h: Update.
3359
708ff411
JB
33602004-07-20 Jim Blandy <jimb@redhat.com>
3361
412b3060
JB
3362 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
3363 bfd_mach_ppc has no segment registers.
3364
13ac140c
JB
3365 Include PowerPC SPR numbers for special-purpose registers.
3366 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
3367 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
3368 new member in initializer.
3369 (S, S4, SN4, S64): New macros for defining special-purpose
3370 registers.
3371 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
3372 registers_403, registers_403GC, registers_505, registers_860,
3373 registers_601, registers_602, registers_603, registers_604,
3374 registers_750, registers_e500): Use them.
3375
708ff411
JB
3376 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
3377 replace references with expression used to initialize variable.
3378
1f602b35
AC
33792004-07-20 Andrew Cagney <cagney@gnu.org>
3380
3381 * breakpoint.c (deprecated_read_memory_nobpt): Rename
3382 read_memory_nobpt.
3383 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
3384 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
3385 (s390_sigtramp_frame_sniffer): Update.
3386 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
3387 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
3388 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
3389 (mips32_fetch_instruction): Update.
3390 * mcore-tdep.c (get_insn): Update.
3391 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
3392 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
3393 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
3394 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3395 (i386_linux_rt_sigtramp_start): Update.
3396 * i386-linux-nat.c (child_resume): Update.
3397 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
3398 * hppa-linux-tdep.c (insns_match_pattern): Update.
3399 * gdbcore.h: Update.
3400 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
3401 * frame.c (safe_frame_unwind_memory): Update.
3402 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
3403 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
3404 * alpha-tdep.c (alpha_read_insn): Update.
3405
2cd8546d
AC
34062004-07-20 Andrew Cagney <cagney@gnu.org>
3407
3408 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
3409 containing both bytes and mask. Add "frame_type".
3410 * tramp-frame.c (tramp_frame_start): Update.
3411 (tramp_frame_prepend_unwinder): Update.
3412 * mips-linux-tdep.c (mips_linux_o32_sigframe)
3413 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
3414 (mips_linux_n64_rt_sigframe): Update. Make "static const".
3415 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
3416
f928dd62
EZ
34172004-07-19 Eli Zaretskii <eliz@gnu.org>
3418
3419 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
3420 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
3421 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
3422 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
3423
d5c560f7
AC
34242004-07-17 Andrew Cagney <cagney@gnu.org>
3425
860660cb
AC
3426 * NEWS, PROBLEMS: Update for 6.2.
3427
8c266f54
AC
3428 * README: Update to 6.2.
3429
a552edd9
AC
3430 * utils.c (xvasprintf): Call xstrvprintf.
3431
c4a172b5
AC
3432 * parse.c: Update copyright.
3433 (null_post_parser): Eliminate ARGSUSED.
3434
da745b36
AC
3435 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
3436 * tui/tui-win.c (tui_get_cmd_list): Ditto.
3437 * symfile-mem.c (_initialize_symfile_mem): Ditto.
3438
9cbc6ef0
AC
3439 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
3440 * ppc-linux-nat.c: Use "Linux kernel".
3441 * hppa-linux-tdep.c: Use GNU/Linux.
3442 * hppa-linux-nat.c: Use GNU/Linux.
3443 * dwarfread.c: Add [sic] to use of Linux.
3444
1b89295f
AC
3445 * hppa-linux-nat.c: Do not include <string.h>.
3446 (supply_fpregset): Remove "register" attribute.
3447
d5c560f7
AC
3448 * solib-frv.c (fetch_loadmap): Use xfree, not free.
3449
7ddd7709
MK
34502004-07-17 Mark Kettenis <kettenis@gnu.org>
3451
b1d19a62
MK
3452 * configure.in: Define _MSE_INT_H on Solaris 9 too.
3453 * configure, config.in: Regenerated.
3454
7ddd7709
MK
3455 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
3456 "bsd-kvm.h".
3457 (vaxbsd_supply_pcb): New function.
3458 (_initialize_vaxbsd_nat): New prototype and function.
3459 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
3460 solib-sunos.o.
3461 (LOADLIBES): New variable.
3462 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3463 (LOADLIBES): New variable.
3464 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3465 (LOADLIBES): New variable.
3466 * Makefile.in (vaxbsd-nat.o): Update dependencies.
3467
2c07db7a
AC
34682004-07-16 Andrew Cagney <cagney@gnu.org>
3469
3470 * defs.h (event_loop_p): Replace variable declaration with macro,
3471 always 1.
3472 * main.c (captured_main): Delete options "-async" and "-noasync".
3473 (event_loop_p): Delete variable.
3474 * NEWS: Mention that "-async" and "-noasync" were removed.
3475
717eb1cf
AC
34762004-07-16 Andrew Cagney <cagney@gnu.org>
3477
3478 * remote-m32r-sdi.c: Re-indent.
3479
c101bc14
JB
34802004-07-16 Jim Blandy <jimb@redhat.com>
3481
5109a438
JB
3482 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
3483 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
3484 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
3485 missing MPC823 SPRs.
3486 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
3487 incorrect. (This was corrected in GDB's register name tables on
3488 2004-07-14.)
3489
c101bc14
JB
3490 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
3491 should be "esasrr" ("ESA Save and Restore Register").
3492
7ce450bd
AC
34932004-07-16 Andrew Cagney <cagney@gnu.org>
3494
3495 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
3496 calls, no longer applicable. Update comments and rename parameter
3497 "step_frame" to "return_frame".
3498
ca73dd9d
AC
34992004-07-16 Andrew Cagney <cagney@gnu.org>
3500
3501 * frame.c (fprint_field): New function.
3502 (fprint_frame_id): Use fprint_field.
3503
31941f6d
JB
35042004-07-15 Joel Brobecker <brobecker@gnat.com>
3505
3506 * ada-lang.c (ada_language_defn): Remove commented out code.
3507
f86a7158
JB
35082004-07-15 Jim Blandy <jimb@redhat.com>
3509
3510 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
3511 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
3512
c24791ec
JB
35132004-07-14 Jim Blandy <jimb@redhat.com>
3514
29bb1356
JB
3515 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
3516
cc98b5cc
JB
3517 * ppc-tdep.h (ppc_num_vrs): New enum constant.
3518
8f088af7
JB
3519 * ppc-tdep.h (ppc_num_srs): New enum constant.
3520
0ea0ec5f
JB
3521 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
3522 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
3523 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
3524 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
3525 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
3526 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
3527 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
3528 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
3529 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
3530 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
3531 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
3532 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
3533 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
3534 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
3535 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
3536 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
3537 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
3538 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
3539 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
3540 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
3541 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
3542 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
3543 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
3544 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
3545 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
3546 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
3547 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
3548 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
3549 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
3550 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
3551 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
3552 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
3553 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
3554 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
3555 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
3556 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
3557 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
3558 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
3559 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
3560 special-purpose register numbers.
3561
c24791ec
JB
3562 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
3563 manual mentions 'md_twb', but many mention 'm_twb', and at that
3564 point in the register list.)
3565
d833db3b
AC
35662004-07-14 Andrew Cagney <cagney@gnu.org>
3567
3568 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
3569 instead of "internal-error".
3570
080228b2
JB
35712004-07-10 Joel Brobecker <brobecker@gnat.com>
3572
3573 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
3574 that was inserted inside a comment.
3575
c268433a
RC
35762004-07-10 Randolph Chung <tausq@debian.org>
3577
3578 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
3579 function.
3580 (hppa_hpux_push_dummy_code): New function.
3581 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
3582 Set find_global_pointer method.
3583
71009278
MK
35842004-07-10 Mark Kettenis <kettenis@gnu.org>
3585
3586 * NEWS: Mention BSD libkvm interface.
3587
b2fa5097
MS
35882004-07-10 Michael Snyder <msnyder@redhat.com>
3589
3590 * symfile.c (generic_load): Comment typo.
3591 * stack.c (get_selected_block): Ditto.
3592 * regcache.c (regcache_cooked_read): Ditto.
3593 * monitor.c (monitor_debug): Ditto.
3594 * mips-tdep.c (mips_read_pc): Ditto.
3595 * i386-linux-nat.c (ps_get_thread_area): Ditto.
3596 * gdb_mbuild.sh: Ditto.
3597 * gdbarch.sh: Ditto.
3598 * gdbarch.h: Ditto.
3599
c3e5cd34
PH
36002004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
3601
8a2225b2
PH
3602 * ada-tasks.c: Remove file.
3603
c3e5cd34
PH
3604 Remove ARI problems:
3605
3606 * ada-exp.y (write_var_from_sym): Reformat to put operator at
3607 beginning of line.
3608
3609 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
3610 Add comment.
3611 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
3612 (MIN_OF_SIZE): Rename min_of_size. Add comment.
3613 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
3614 (UMIN_OF_SIZE): Remove.
3615 (max_of_type): New function to replace orphan macro in gdbtypes.h
3616 (min_of_type): Ditto.
3617 (discrete_type_high_bound): Use max_of_type.
3618 (discrete_type_low_bound): Use min_of_type.
3619 (possible_user_operator_p): Move operator to beginning of line.
3620 (ada_is_variant_part): Ditto.
3621 (ensure_lval): Rewrite to avoid deprecated operations.
3622 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
3623 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
3624 (ada_enum_name): Remove assignments in 'if' statements.
3625 (build_ada_types): Add gdbarch parameter.
3626 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
3627 with gdbarch_data_register_post_init.
3628 Use add_setshow_uinteger_cmd rather than add_set_cmd and
3629 add_show_from_set.
3630
3631 * ada-valprint.c (inspect_it): Remove declaration.
3632 (repeat_count_threshold): Remove declaration.
3633 (ada_print_floating): Remove assignments in 'if' statements.
3634 (print_str): Move operator to beginning of line.
3635
61ce229a
JB
36362004-07-08 Jim Blandy <jimb@redhat.com>
3637
3638 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
3639
09bcec80
BR
36402004-07-08 Bob Rossi <bob@brasko.net>
3641
3642 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
3643
31c27f77
JJ
36442004-07-06 Jeff Johnston <jjohnstn@redhat.com>
3645
3646 * language.h (struct_language_defn): Add new function pointer:
3647 la_class_name_from_physname. Also add new prototype for
3648 language_class_name_from_physname.
3649 * language.c (language_class_name_from_physname): New function.
3650 (unk_lang_class_name): Ditto.
3651 (unknown_language_defn, auto_language_defn): Change
3652 to add unk_lang_class_name function pointer for
3653 la_class_name_from_physname.
3654 (local_language_defn): Ditto.
3655 * dwarf2read.c (guess_structure_name): Change to call
3656 language_class_name_from_physname.
3657 (determine_class_name): Ditto.
3658 * cp-support.c (class_name_from_physname): Renamed.
3659 (cp_class_name_from_physname): New name of function.
3660 * cp-support.h: Ditto.
3661 * c-lang.c (c_language_defn): Change to add NULL
3662 for class_name_from_physname function pointer.
3663 (cplus_language_defn): Change to add cp_class_name_from_physname.
3664 * jv-lang.c (java_class_name_physname): New function.
3665 (java_find_last_component): New static routine.
3666 (java_language_defn): Add java_class_name_from_physname pointer.
3667 * ada-lang.c (ada_language_defn): Change to add NULL
3668 for class_name_from_physname function pointer.
3669 * f-lang.c (f_language_defn): Ditto.
3670 * m2-lang.c (m2_language_defn): Ditto.
3671 * objc-lang.c (objc_language_defn): Ditto.
3672 * p-lang.c (pascal_language_defn): Ditto.
3673 * scm-lang.c (scm_language_defn): Ditto.
3674
ee28ca0f
AC
36752004-07-06 Andrew Cagney <cagney@gnu.org>
3676
3677 Patch from Bart Robinson.
3678 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
3679 (O_LARGEFILE): Define to 0, if not defined.
3680
fdb1bf9d
MK
36812004-07-03 Mark Kettenis <kettenis@gnu.org>
3682
cb162ff6
MK
3683 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
3684 <machine/pcb.h> and "bsd-kvm.h".
3685 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
3686 (m68kbsd_supply_pcb): New function.
3687 (_initialize_m68kbsd_nat): New prototype and function.
3688 * Makefile.in (m68kbsd-nat.o): Update dependencies.
3689 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3690 (LOADLIBES): New variable.
3691 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3692 (LOADLIBES): New variable.
3693
fdb1bf9d
MK
3694 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
3695
963c4174
MK
36962004-07-03 Mark Kettenis <kettenis@gnu.org>
3697
3698 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
3699 <sys/proc.h>.
3700 (bsd_kvm_cmdlist): New variable.
3701 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
3702 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
3703 command and "kvm proc" command.
3704 * Makefile.in (bsd-kvm.o): Update dependencies.
3705
533f1d8f
MK
37062004-07-02 Mark Kettenis <kettenis@gnu.org>
3707
3708 * osabi.c: Update copyright year.
3709 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
3710 notes if EI_OSABI is set to ELFOSABI_HPUX.
3711
6780dcde
MS
37122004-07-01 Michael Snyder <msnyder@redhat.com>
3713
3714 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
3715 that seems to have gotten whacked out of line.
3716
67bebe79
MK
37172004-07-01 Mark Kettenis <kettenis@gnu.org>
3718
3719 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
3720 code.
3721
0b5d8877
PH
37222004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3723
3724 * ada-lang.c (decode_packed_array): Minor change to comment.
3725 (ada_value_slice_ptr): New function.
3726 (ada_value_slice): New function.
3727 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
3728 test. Don't know why it is there.
3729 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
3730 to avoid dereferencing huge arrays from which one is slicing.
3731 (empty_array): Correct to return an array rather than
3732 a subrange value.
3733 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
3734 on empty arrays (let'em use 'FIRST instead).
3735
19c1ef65
PH
37362004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3737
3738 Address complaints from gdb_ari.sh:
3739
3740 * ada-exp.y: Include gdb_string.h rather than string.h.
3741 (convert_char_literal): Reformat declaration.
3742 * ada-lang.h: Include opaque struct declaration for struct frame_info.
3743 * ada-lex.l: Change use of free to xfree (the macro would do so
3744 anyway, but this is harmless).
3745 Include gdb_string.h rather than string.h.
3746 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
3747
3748 * ada-lang.c (parse): Remove K&Rism in parameter list.
3749 (is_name_suffix): Correct Linux => GNU/Linux in comment.
3750
d81cbc94
MK
37512004-06-30 Mark Kettenis <kettenis@gnu.org>
3752
3753 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
3754 dead code.
3755
07681759
MK
37562004-06-30 Mark Kettenis <kettenis@gnu.org>
3757
3758 * alphabsd-nat.c: Update copyright year.
3759 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
3760
f7948b5f
JB
37612004-06-29 Joel Brobecker <brobecker@gnat.com>
3762
6e0cdd28 3763 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
3764 (i386_cygwin_in_solib_call_trampoline): New function.
3765 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
3766 and skip_trampoline_code gdbarch methods.
3767
8f113c9a
JB
37682004-06-29 Jim Blandy <jimb@redhat.com>
3769
3770 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
3771 name actually used in the dependency lists.
3772
97dc871c
RC
37732004-06-29 Randolph Chung <tausq@debian.org>
3774
3775 * NEWS (New native configurations): Mention GNU/Linux/hppa.
3776
47216e51
CV
37772004-06-29 Corinna Vinschen <vinschen@redhat.com>
3778
3779 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 3780 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
3781 functionality.
3782
e623b504
AC
37832004-06-28 Andrew Cagney <cagney@gnu.org>
3784
3785 * defs.h (xstrvprintf): Declare.
3786 * utils.c (xstrvprintf): New function.
3787 (internal_vproblem, xstrprintf, xasprintf)
3788 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
3789 * serial.c (serial_printf): Ditto.
3790 * complaints.c (vcomplaint): Ditto.
3791
79acc9b3
CV
37922004-06-29 Corinna Vinschen <vinschen@redhat.com>
3793
3794 * infcmd.c (attach_command): Move call to target_terminal_inferior
3795 behind loading symbol table.
3796
1daf35d9
AC
37972004-06-28 Andrew Cagney <cagney@gnu.org>
3798
3799 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
3800 change - add back extern deprecated_ui_loop_hook declaration.
3801
b435e160
AC
38022004-06-28 Andrew Cagney <cagney@gnu.org>
3803
3804 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
3805 xstrprintf.
3806 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
3807 (c_value_of_variable): Ditto.
3808 * utils.c (internal_vproblem): Ditto.
3809 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
3810 * remote.c (add_packet_config_cmd): Ditto.
3811 * remote-rdp.c (rdp_set_command_line): Ditto.
3812 * regcache.c (regcache_dump): Ditto.
3813 * frv-tdep.c (new_variant, new_variant): Ditto.
3814 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
3815 (fbsd_find_memory_regions): Ditto.
3816 * breakpoint.c (create_thread_event_breakpoint)
3817 (create_breakpoints): Ditto.
3818 * aix-thread.c (aix_thread_pid_to_str): Ditto.
3819 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
3820
06d5cf63
JB
38212004-06-28 Joel Brobecker <brobecker@gnat.com>
3822
3823 * ada-lang.c: Re-indent file, with some massaging to help indent
3824 a bit when the result is otherwise really too ugly.
3825
35809fad
UW
38262004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3827
3828 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
3829 code_addr_p and special_addr_p to 'unsigned int'.
3830
40e20472
MK
38312004-06-27 Mark Kettenis <kettenis@gnu.org>
3832
3833 * i386v4-nat.c: Update copyright year and tweak comment.
3834 (regmap): Remove trailing comma.
3835 (supply_gregset): Rename local variable i to regnum. Call
3836 regcache_raw_supply instead of supply_register.
3837 (fill_gregset): Rename argument regno to regnum. Call
3838 regcache_raw_collect instead of regcache_collect.
3839
12b0b6de
UW
38402004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3841
3842 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
3843 and special_addr_p.
3844 (frame_id_build, frame_id_build_special): Update comments.
3845 (frame_id_build_wild): New prototype.
3846 * frame.c (frame_id_build, frame_id_build_special): Fill in new
3847 struct frame_id fields.
3848 (frame_id_build_wild): New function.
3849 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
3850
47b42a3e
MK
38512004-06-27 Mark Kettenis <kettenis@gnu.org>
3852
3853 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
3854 hppabsd-tdep.c.
3855
1265e4aa
JB
38562004-06-27 Joel Brobecker <brobecker@gnat.com>
3857
3858 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
3859
76a01679
JB
38602004-06-27 Joel Brobecker <brobecker@gnat.com>
3861
3862 * ada-lang.c: Re-indent file.
3863
7aca490a
JB
38642004-06-27 Joel Brobecker <brobecker@gnat.com>
3865
3866 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
3867 (no_symtab_msg): Likewise.
3868
5e987968
AS
38692004-06-27 Andreas Schwab <schwab@suse.de>
3870
3871 * source.c: Fix whitespace.
3872
315c4276
MK
38732004-06-27 Mark Kettenis <kettenis@gnu.org>
3874
d15be926
MK
3875 * configure.in: Include <sys/param.h> for td_pcb test.
3876 * configure: Regenerated.
3877
9062529b
MK
3878 * i386nbsd-nat.c: New file.
3879 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
3880 i386obsd-nat.c and i386obsd-tdep.c.
3881 (i386nbsd-nat.o): New dependency.
3882 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
3883 bsd-kvm.o.
3884 (LOADLIBES): New variable.
3885 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
3886 bsd-kvm.o.
3887 (LOADLIBES): New variable.
3888
8010310e
MK
3889 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
3890 (LOADLIBES): New variable.
3891
efe1d7b9
MK
3892 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
3893 fetching from BSD_KVM_PADDR. Correctly lookup address for
3894 "_thread0".
3895
315c4276
MK
3896 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
3897 "bsd-kvm.h".
3898 (amd64fbsd_supply_pcb): New funcion.
3899 (_initialize_amd64fbsd_nat): Enable libkvm interface.
3900
399cfac6
DL
39012004-06-27 <david@streamline-computing.com>
3902
3903 Partial fix for PR cli/1056.
3904 * valarith.c: Check for zero in division and remainder
3905 evaluation.
3906
6235f9c8
MK
39072004-06-27 Mark Kettenis <kettenis@gnu.org>
3908
3909 * i387-tdep.c: Remove excessive whitespace.
3910
2726dafc
AC
39112004-06-26 Andrew Cagney <cagney@gnu.org>
3912
3913 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
3914 * gdb-events.h, gdb-events.c: Re-generate.
3915 * tui/tui-hooks.c (tui_install_hooks): Update.
3916 (tui_remove_hooks): Update.
3917 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
3918
0e56aeaf
MK
39192004-06-26 Mark Kettenis <kettenis@gnu.org>
3920
cb461069
MK
3921 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
3922 (gregset_t, fpregset_t): Remove typedefs.
3923 (REG_OFFSET): Rename argument.
3924 (amd64bsd_r_reg_offset): Rename from reg_offset.
3925 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
3926 Remove functions.
3927 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
3928 of reg_offset.
3929 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
3930
ecba89de
MK
3931 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
3932
4cd80476
MK
3933 * vax-tdep.c: Tweak comment.
3934
0e56aeaf
MK
3935 Add OpenBSD/hppa support.
3936 * NEWS (New native configurations): Mention OpenBSD/hppa.
3937 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
3938 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
3939 files.
3940 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
3941 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
3942 * configure.host: Add hppa*-*-openbsd*.
3943 * configure.tgt: Add hppa*-*-openbsd*.
3944
98bbd631
AC
39452004-06-25 Andrew Cagney <cagney@gnu.org>
3946
3947 * defs.h (deprecated_ui_loop_hook): Deprecated.
3948 * wince.c (child_wait): Update.
3949 * win32-nat.c (child_wait): Update.
3950 * v850ice.c (v850ice_wait): Update.
3951 * top.c (deprecated_ui_loop_hook): Update.
3952 * serial.h: Update.
3953 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
3954 (do_unix_readchar): Update.
3955 * ser-tcp.c (net_open): Update.
3956 * remote-sim.c (gdb_os_poll_quit): Update.
3957 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
3958
769d7dc4
AC
39592004-06-24 Andrew Cagney <cagney@gnu.org>
3960
3961 * defs.h (deprecated_pre_add_symbol_hook)
3962 (deprecated_post_add_symbol_hook): Deprecated.
3963 * symfile.c (symbol_file_add_with_addrs_or_offsets)
3964 (symbol_file_add_with_addrs_or_offsets): Update references.
3965
11c949aa
AC
39662004-06-24 Andrew Cagney <cagney@gnu.org>
3967
3968 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
3969 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
3970 * wince.c (ui_loop_hook): Delete extern declaration.
3971 * win32-nat.c (ui_loop_hook): Delete extern declaration..
3972 * v850ice.c (ui_loop_hook): Delete extern declaration..
3973 * ser-unix.c (ui_loop_hook): Delete extern declaration..
3974 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
3975 * remote-sim.c (ui_loop_hook): Delete extern declaration..
3976 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
3977 ui_loop_hook declaration.
3978
eedc19af
AC
39792004-06-24 Andrew Cagney <cagney@gnu.org>
3980
3981 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
3982 entry_func_highpc fields.
3983 * objfiles.c (init_entry_point_info): Do not clear
3984 entry_func_lowpc and entry_func_highpc.
3985 (objfile_relocate): Do not relocate entry_func_lowpc and
3986 entry_func_highpc.
3987 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
3988 entry_func_highpc.
3989 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
3990 entry_func_highpc.
3991 * blockframe.c (legacy_frame_chain_valid): Replace tests against
3992 entry_func_lowpc and entry_func_highpc with call to
3993 inside_entry_func.
3994
d47079be
MK
39952004-06-24 Mark Kettenis <kettenis@gnu.org>
3996
3997 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
3998 quad-precision floating point arguments in registers.
3999
2107e348
MK
40002004-06-24 Mark Kettenis <kettenis@gnu.org>
4001
4002 From Michael Mueller <m.mueller99@kay-mueller.de>:
4003 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
4004 account.
4005
46587c42
JJ
40062004-06-22 Jeff Johnston <jjohnstn@redhat.com>
4007
4008 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
4009 to -1.
4010 * breakpoint.c (bpstat_stop_status): Move check for ignoring
4011 untriggered watchpoints to a separate if clause. Update function
4012 comment regarding STOPPED_BY_WATCHPOINT argument.
4013
226f5cf4
JB
40142004-06-22 Jim Blandy <jimb@redhat.com>
4015
4016 * gdbarch.sh: Doc fix.
4017
f10683bb
MH
40182004-06-21 Martin Hunt <hunt@redhat.com>
4019 Kevin Buettner <kevinb@redhat.com>
4020
4021 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
4022 * mips-tdep.h (MIPS_SP_REGNUM): Define.
4023 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
4024 to set_gdbarch_sp_regnum(). Use cooked register number.
4025 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
4026
412d5987
AC
40272004-06-21 Andrew Cagney <cagney@gnu.org>
4028
4029 * gdbarch.sh: When the macro field is empty, do not generate a
4030 macro definition. When the macro field is "=", generate the macro
4031 name from the upper-case function name.
4032 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
4033 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
4034 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
4035 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
4036 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
4037 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
4038 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
4039 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
4040 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
4041 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
4042 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
4043 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
4044 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
4045 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
4046 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
4047 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
4048 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
4049 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
4050 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
4051 (DEPRECATED_USE_STRUCT_CONVENTION)
4052 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4053 (DEPRECATED_FRAME_INIT_SAVED_REGS)
4054 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
4055 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
4056 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
4057 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
4058 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
4059 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
4060 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
4061 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
4062 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
4063 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
4064 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
4065 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
4066 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
4067 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
4068 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
4069 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
4070
68908a3e
AC
40712004-06-21 Andrew Cagney <cagney@gnu.org>
4072
48f7351b
AC
4073 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
4074 macro name, and the function rather than macro value. Only wrap
4075 macro print statements in #ifdef. Move format logic to where it
4076 is needed.
4077 * gdbarch.c: Re-generate.
4078
283354d8
AC
4079 * gdbarch.sh (read): Delete "print_p" and "description", add
4080 "garbage_at_eol". Check for non-empty garbage at end-of-line.
4081 Delete references to print_p.
4082 (TARGET_ARCHITECTURE): Delete print predicate.
4083 * gdbarch.c: Re-generate.
4084
68908a3e
AC
4085 * gdbarch.sh: Check that multi-arch methods do not provide a
4086 macro.
4087 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
4088 (print_registers_info, print_float_info, print_vector_info)
4089 (adjust_breakpoint_address, remote_translate_xfer_address)
4090 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
4091 (address_class_type_flags_to_name, unwind_sp): Remove the macro
4092 name from the multi-arch definition.
4093
a2428dbe
AC
40942004-06-20 Andrew Cagney <cagney@gnu.org>
4095
4096 * gdbarch.sh: Sort by the function, instead of macro name.
4097 * gdbarch.c: Re-generate.
4098
750eb019
AC
40992004-06-20 Andrew Cagney <cagney@gnu.org>
4100
66d659b1
AC
4101 * gdbarch.sh: Use the function, instead of macro name in
4102 errors and the log file.
4103 (return_value): Remove stray ":" in spec.
4104
750eb019
AC
4105 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
4106 * gdbarch.h, gdbarch.c: Re-generate.
4107 * Makefile.in (arch-utils.o): Update dependencies.
4108 * values.c (using_struct_return): Move code calling
4109 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
4110 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
4111 to legacy_return_value, simplify.
4112 * infcmd.c (print_return_value): Move code calling
4113 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
4114 to legacy_return_value, simplify.
4115 * infcall.c (call_function_by_hand): Move code calling
4116 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
4117 * arch-utils.c: Update copyright. Include "gdbcore.h".
4118 (legacy_return_value): New function.
4119 * arch-utils.h: Update copyright.
4120 (legacy_return_value): Declare.
4121
b5622e8d
AC
41222004-06-20 Andrew Cagney <cagney@gnu.org>
4123
4124 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
4125 * gdbarch.h, gdbarch.c: Re-generate.
4126 * values.c (using_struct_return): Update call.
4127 * mcore-tdep.c: Update comment.
4128 * infcall.c (call_function_by_hand): Update comment.
4129 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4130 * arch-utils.h (always_use_struct_convention): Update.
4131 * v850-tdep.c (v850_gdbarch_init): Update.
4132 * sh64-tdep.c (sh64_gdbarch_init): Update.
4133 * sh-tdep.c (sh_gdbarch_init): Update.
4134 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4135 * mips-tdep.c (mips_gdbarch_init): Update.
4136 * mcore-tdep.c (mcore_gdbarch_init): Update.
4137 * m32r-tdep.c (m32r_gdbarch_init): Update.
4138 * ia64-tdep.c (ia64_gdbarch_init): Update.
4139 * h8300-tdep.c (h8300_gdbarch_init): Update.
4140 * frv-tdep.c (frv_gdbarch_init): Update.
4141 * cris-tdep.c (cris_gdbarch_init): Update.
4142 * arm-tdep.c (arm_gdbarch_init): Update.
4143 * alpha-tdep.c (alpha_gdbarch_init): Update.
4144
5191de37
MC
41452004-06-18 Michael Chastain <mec.gnu@mindspring.com>
4146
4147 * PROBLEMS: Add more specific information, and a work-around,
4148 for PR gdb/1458.
4149
782263ab
AC
41502004-06-18 Andrew Cagney <cagney@gnu.org>
4151
4152 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
4153 * gdbarch.h, gdbarch.c: Re-generate.
4154 * ada-lang.c (ada_finish_decode_line_1): Update.
4155 * infrun.c (handle_inferior_event): Update.
4156 * infcall.c (find_function_addr): Update.
4157 * linespec.c (minsym_found): Update.
4158 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
4159 Update.
4160 * blockframe.c (legacy_frameless_look_for_prologue): Update.
4161 * cli/cli-cmds.c (disassemble_command): Update.
4162 * vax-tdep.c (vax_gdbarch_init): Update.
4163
2f305df1
MK
41642004-06-18 Mark Kettenis <kettenis@gnu.org>
4165
4166 * i386-tdep.c (i386_collect_fpregset): Fix comment.
4167
e5fe55f7
AC
41682004-06-17 Andrew Cagney <cagney@gnu.org>
4169
4170 GDB 6.1.1 released from the GDB 6.1 branch.
4171 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
4172 * PROBLEMS: Ditto.
4173
473b7be6
DJ
41742004-06-16 Daniel Jacobowitz <dan@debian.org>
4175
4176 PR gdb/1658
4177 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
4178 operation as a uleb128. Found by Michael Coulter.
4179
96d887e8
PH
41802004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
4181
4182 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
4183 make it non-static.
4184 * ada-lang.h (task_control_block): declaration moved from ada-task.c
4185 to ada-lang.h; this is needed to be able to implement the kill command
4186 in multi-task mode.
4187 (task_ptid): Ditto.
4188 (task_entry): Ditto.
4189 (task_list): Ditto.
4190 (ada_build_task_list): Ditto.
4191
4192 * ada-lang.c: Conditionalize routines and data structures related
4193 to breakpoints, exceptions, completion, and symbol caching on
4194 GNAT_GDB, since these are not yet used in the submitted public sources.
4195 (ada_main_name): Editorial: Move definition out of exception-related
4196 code.
4197
31eef181
AC
41982004-06-15 Andrew Cagney <cagney@gnu.org>
4199
4200 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
4201 deprecated_pc_in_call_dummy.
4202
2c500098
AM
42032004-06-15 Alan Modra <amodra@bigpond.net.au>
4204
4205 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
4206 bfd_get_section_size_before_reloc or _raw_size.
4207 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
4208 * dwarf2read.c (dwarf2_locate_sections): Likewise.
4209 (dwarf2_read_section): Likewise.
4210 * elfread.c (elf_locate_sections): Likewise.
4211 * gcore.c (derive_heap_segment): Likewise.
4212 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
4213 * remote-e7000.c (e7000_load): Likewise.
4214 * remote-m32r-sdi.c (m32r_load): Likewise.
4215 * remote-mips.c (mips_load_srec): Likewise.
4216 (pmon_load_fast): Likewise.
4217 * remote.c (compare_sections_command): Likewise.
4218 * symfile.c (add_section_size_callback): Likewise.
4219 (load_section_callback): Likewise.
4220 (pc_in_unmapped_range): Likewise.
4221 (pc_in_mapped_range): Likewise.
4222 (sections_overlap): Likewise.
4223 (list_overlays_command): Likewise.
4224 (simple_overlay_update_1): Likewise.
4225 (simple_overlay_update): Likewise.
4226 * tracepoint.c (remote_set_transparent_ranges): Likewise.
4227 * win32-nat.c (core_section_load_dll_symbols): Likewise.
4228
90f943f1
RC
42292004-06-14 Randolph Chung <tausq@debian.org>
4230
4231 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
4232 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
4233 static.
4234 (hppa_hpux_inferior_created): New function.
4235 (hppa_hpux_init_abi): Register observer.
4236 * symfile.c (hp_cxx_exception_support_initialized)
4237 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
4238 (symbol_file_add_main_1, symbol_file_clear): Likewise.
4239
700c15aa
RC
42402004-06-14 Randolph Chung <tausq@debian.org>
4241
3973a7d3
AC
4242 * MAINTAINERS (Write After Approval): Alphabetize my entry
4243 correctly.
700c15aa 4244
cea4838c
AC
42452004-06-14 Andrew Cagney <cagney@gnu.org>
4246
4247 * MAINTAINERS (testsuite): List Michael Chastain as the lead
4248 testsuite maintainer.
4249
97092415
AC
42502004-06-13 Andrew Cagney <cagney@gnu.org>
4251
e8c3165b
AC
4252 * infcmd.c (print_return_value): Fix logic, allow
4253 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
4254
bceabdd8
AC
4255 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
4256 defining any macros.
4257 * gdbarch.h: Re-generate.
4258
57010b1c
AC
4259 * gdbarch.sh: Delete "level" attribute. Only check for a macro
4260 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
4261 * gdbarch.h: Re-generate.
4262
bc87dfa0
AC
4263 * values.c (generic_use_struct_convention): Don't check gcc_p.
4264
15ac804d
AC
4265 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
4266 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
4267 * gdbarch.h, gdbarch.c: Regenerate.
4268 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
4269 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
4270 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4271 deprecated_max_register_raw_size and
4272 deprecated_max_register_virtual_size.
4273 * v850-tdep.c (v850_gdbarch_init): Ditto.
4274 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
4275 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4276 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4277 * cris-tdep.c (cris_gdbarch_init): Ditto.
4278
97092415
AC
4279 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
4280 * gdbarch.h, gdbarch.c: Re-generate.
4281 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
4282 (m68hc11_use_struct_convention): Delete function.
4283 (m68hc11_extract_struct_value_address): Delete function.
4284 (m68hc11_return_value): New function.
4285 (m68hc11_gdbarch_init): Instead of store_return_value,
4286 extract_return_value, return_value_on_stack,
4287 deprecated_extract_struct_value_address and use_struct_convention,
4288 set return_value.
4289 * values.c (using_struct_return): Do not call
4290 RETURN_VALUE_ON_STACK.
4291 * arch-utils.h (generic_return_value_on_stack_not): Delete
4292 declaration.
4293 * arch-utils.c (generic_return_value_on_stack_not): Delete
4294 function.
4295
44e5158b
AC
42962004-06-12 Andrew Cagney <cagney@gnu.org>
4297
4298 * values.c (register_value_being_returned): Delete function.
4299 * infcmd.c (legacy_return_value): Delete function.
4300 * infcall.c (call_function_by_hand): Inline
4301 "register_value_being_returned", simplify.
4302 * values.c (using_struct_return): Update comment, refer to
4303 print_return_value instead of register_value_being_returned.
4304 * infcmd.c (print_return_value): Inline calls to
4305 register_value_being_returned and legacy_return_value. Simplify.
4306
b887c273
RC
43072004-06-11 Randolph Chung <tausq@debian.org>
4308
4309 * somread.c (som_symtab_read): Exclude gcc local symbols.
4310
1b2bfbb9
RC
43112004-06-11 Randolph Chung <tausq@debian.org>
4312
3973a7d3
AC
4313 * infrun.c (handle_inferior_event): Handle the case when a
4314 trampoline ends up in the runtime resolver, and if the trampoline
4315 has no name. Rearrange the code so that all the trampoline
4316 processing happens before other step-out-of-range handling.
1b2bfbb9 4317
a9d61c86
MH
43182004-06-11 Martin Hunt <hunt@redhat.com>
4319
4320 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
4321 has no fpu.
4322
2c87cf5a
AC
43232004-06-10 Andrew Cagney <cagney@gnu.org>
4324
4325 * blockframe.c (legacy_inside_entry_func): Delete.
4326 (legacy_frame_chain_valid): Inline call to
4327 legacy_inside_entry_func, simplify.
4328
0b67b468 43292004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
4330
4331 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
4332 * dwarf2read.c (partial_die_info): Add dirname field.
4333 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
4334 (read_partial_die): Save away DW_AT_comp_dir.
4335 * defs.h (symtab_to_filename): Removed.
4336 * source.c (find_and_open_source): Added.
57c22c6c 4337 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
4338 (symtab_to_filename): Removed.
4339 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
4340 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
4341 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
4342 symtab_to_filename.
4343 * symtab.h (partial_symtab): Add dirname field.
4344 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
4345 (mi_cmd_file_list_exec_source_file): Call new function
4346 symtab_to_fullname to find fullname.
57c22c6c 4347 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 4348 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
4349 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
4350
9a1dd1ad
AC
43512004-06-10 Andrew Cagney <cagney@gnu.org>
4352
239ae8c7
AC
4353 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
4354 to generic_use_struct_convention, the default value.
4355
fc720350
AC
4356 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
4357 of abort.
4358
9a1dd1ad
AC
4359 * ns32k-tdep.c (ns32k_push_arguments): New function.
4360 (ns32k_gdbarch_init): Set deprecated_push_arguments.
4361 * infcall.c (call_function_by_hand): Call error instead of
4362 legacy_push_arguments.
4363 * value.h (legacy_push_arguments): Delete declaration.
4364 * valops.c (legacy_push_arguments): Delete function.
4365 (value_push): Delete function.
4366
fea25152
BF
43672004-06-10 Brian Ford <ford@vss.fsi.com>
4368
4369 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
4370 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
4371 info.
4372 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
4373
30a4a8e0
AC
43742004-06-10 Andrew Cagney <cagney@gnu.org>
4375
4376 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
4377 * gdbarch.h, gdbarch.c: Re-generate.
4378 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
4379 parameters.
4380 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
4381 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
4382 deprecated_pc_in_call_dummy instead of
4383 DEPRECATED_PC_IN_CALL_DUMMY.
4384 (arm_skip_prologue): Ditto.
4385 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
4386 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
4387 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
4388 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
4389 Ditto.
4390 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
4391 (sh64_init_extra_frame_info, sh64_get_saved_register)
4392 (sh64_pop_frame): Ditto.
4393 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
4394 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
4395 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
4396 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
4397 (h8300_pop_frame): Ditto.
4398 * blockframe.c (legacy_inside_entry_func)
4399 (legacy_frame_chain_valid): Ditto.
4400 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
4401 to deprecated_pc_in_call_dummy.
4402
81cfbe54
AC
44032004-06-09 Andrew Cagney <cagney@gnu.org>
4404
a1f4a1b6
AC
4405 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
4406 provide a default value.
4407 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
4408 * gdbarch.h, gdbarch.c: Re-generate.
4409 * arch-utils.c (generic_convert_register_p): Rename
4410 legacy_convert_register_p
4411 (legacy_register_to_value, legacy_value_to_register): Delete
4412 functions.
4413 * arch-utils.h (generic_convert_register_p): Rename
4414 legacy_convert_register_p.
4415 (legacy_register_to_value, legacy_value_to_register): Delete
4416 declarations.
4417
9730f241
AC
4418 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
4419 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
4420 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
4421 * gdbarch.h, gdbarch.c: Re-generate.
4422 * infcmd.c (default_print_registers_info): Simplify.
4423 * findvar.c (value_of_register): Simplify.
4424 * mi/mi-main.c (get_register): Simplify.
4425 * arch-utils.c (legacy_convert_register_p): Always return 0.
4426 (legacy_register_to_value, legacy_value_to_register): Always call
4427 internal_error.
4428
8a1bf479
AC
4429 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
4430 #ifdef CLEAR_INSN_CACHE code.
4431 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
4432 Delete #ifdef CLEAR_DEFERRED_STORES code.
4433
4b38d6f1
AC
4434 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
4435
2d62ecc7
AC
4436 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
4437 copyright.
4438 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
4439
be4f7469
AC
4440 * config/mips/mipsv4.mh: Delete file.
4441
81cfbe54
AC
4442 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
4443 unreferenced macro.
4444 (hpread_adjust_stack_address): Delete declaration.
4445
d966f0cb
AC
44462004-06-08 Andrew Cagney <cagney@gnu.org>
4447
4448 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4449 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
4450 PTRACE_ATTACH / PTRACE_DETACH available call error.
4451 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
4452 * infttrace.c (update_thread_state_after_attach, attach, detach):
4453 Remove #ifdef wrappers.
4454 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
4455 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4456 * config/nm-bsd.h (ATTACH_DETACH): Delete.
4457 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
4458 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
4459 * config/nm-linux.h (ATTACH_DETACH): Delete.
4460 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
4461 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
4462 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
4463 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
4464 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
4465
d91670b9
CV
44662004-06-08 Corinna Vinschen <vinschen@redhat.com>
4467
4468 * configure.in: Set $configdir to the right OS specific value.
4469 Use value when setting $tcldir and $tkdir.
4470 * configure: Regenerate.
4471
28ba0b33
PB
44722004-06-06 Paul Brook <paul@codesourcery.com>
4473
4474 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
4475 records.
4476
f26caa11
PH
44772004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
4478
4479 * ada-lang.c (lookup_symbol_in_language): New function to allow
4480 re-use of another language's symbol lookup code. (Placed here
4481 temporarily while Ada support is being integrated into the public
4482 tree).
4483 (restore_language): New auxiliary function for
4484 lookup_symbol_in_language.
4485 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
4486 temporarily while Ada support is being integrated into the public
4487 tree).
4488
d560a54b
AO
44892004-06-08 Alexandre Oliva <aoliva@redhat.com>
4490
e75d110c
AO
4491 * Makefile.in (check//%): New.
4492
d560a54b
AO
4493 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
4494 (mn10300_store_return_value): Rewrite.
4495 (mn10300_type_align): New.
4496 (mn10300_use_struct_convention): Rewrite.
4497 (mn10300_return_value): New, using all of the above.
4498 (mn10300_pop_frame_regular): Add saved_regs_size.
4499 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
4500
a72fbdb7
AO
4501 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
4502 regs if PC is on movm.
4503
01904826
JB
45042004-06-07 Jim Blandy <jimb@redhat.com>
4505
4506 Add native Linux support for the PowerPC E500.
4507 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
4508 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
4509 all architectures except the E500.
4510 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
4511 #definitions.
4512 (struct gdb_evrregset_t): New type.
4513 (have_ptrace_getsetevrregs): New variable.
4514 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
4515 fetch_spe_registers): New functions.
4516 (fetch_register): Call fetch_spe_register as appropriate.
4517 Assert that we're only passed raw register numbers.
4518 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
4519 Don't fetch gprs if they're pseudoregisters.
4520 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
4521 store_spe_registers): New functions.
4522 (store_register): Call store_spe_register as appropriate.
4523 Assert that we're only passed raw register numbers.
4524 (store_ppc_registers): Call store_spe_registers as appropriate.
4525 Don't store gprs if they're pseudoregisters.
4526
f90ef764
JJ
45272004-06-07 Jeff Johnston <jjohnstn@redhat.com>
4528
4529 * thread-db.c (thread_get_info_callback): Fill in the thread_info
4530 struct if one exists, even if we are dealing with a zombie thread.
4531
45b75230
AC
45322004-06-07 Andrew Cagney <cagney@gnu.org>
4533
4534 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
4535 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
4536 Rename PC_REQUIRES_RUN_BEFORE_USE.
4537 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
4538 #ifdef.
4539
1658da49
RC
45402004-06-07 Randolph Chung <tausq@debian.org>
4541
4542 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
4543 unwinding after sp has been saved to the stack but before the end
4544 of the prologue, and after the fp has been modified but before it has
4545 been saved to the stack.
4546 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
4547 Remove superfluous definitions.
4548 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
4549
9a727a3c
RC
45502004-06-07 Guy Martin <gmsoft@gentoo.org>
4551
4552 Committed by Randolph Chung.
4553 * hppa-linux-nat.c: Include the correct version of the header file
4554 depending on the kernel version.
4555
9e500012
RC
45562004-06-06 Randolph Chung <tausq@debian.org>
4557
4558 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
4559 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
4560
3388d7ff
RC
45612004-06-06 Randolph Chung <tausq@debian.org>
4562
4563 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
4564 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
4565 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
4566 * hppa-tdep.c (hppa_symbol_address): New function definition.
4567 * hppa-tdep.h (hppa_symbol_address): New function declaration.
4568
d49771ef
RC
45692004-06-06 Randolph Chung <tausq@debian.org>
4570
4571 * hppa-tdep.h (struct value): Forward declaration.
4572 (gdbarch_tdep): Define tdep find_global_pointer method.
4573 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
4574 associated with the function we are trying to call, and write it
4575 to the gp register.
4576 (hppa32_convert_from_funct_ptr_addr): New function.
4577 (hppa_find_global_pointer): New function.
4578 (hppa_gdbarch_init): Set default find_global_pointer method; set
4579 convert_from_func_ptr_addr method.
4580 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
4581 (hppa_linux_init_abi): Set find_global_pointer method.
4582 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
4583
7d9b040b
RC
45842004-06-06 Randolph Chung <tausq@debian.org>
4585
4586 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
4587 to struct value *function.
4588 * gdbarch.c: Regenerate.
4589 * gdbarch.h: Likewise.
4590 * infcall.c (call_function_by_hand): Pass entire function value
4591 to push_dummy_call.
4592
4593 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
4594 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
4595 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
4596 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
4597 * arm-tdep.c (arm_push_dummy_call): Likewise.
4598 * avr-tdep.c (avr_push_dummy_call): Likewise.
4599 * cris-tdep.c (cris_push_dummy_call): Likewise.
4600 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
4601 * frv-tdep.c (frv_push_dummy_call): Likewise.
4602 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
4603 * hppa-tdep.c (hppa32_push_dummy_call)
4604 (hppa64_push_dummy_call): Likewise.
4605 * i386-tdep.c (i386_push_dummy_call): Likewise.
4606 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
4607 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
4608 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
4609 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
4610 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
4611 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4612 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
4613 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
4614 (ppc64_sysv_abi_push_dummy_call): Likewise.
4615 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
4616 (ppc64_sysv_abi_push_dummy_call): Likewise.
4617 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4618 * s390-tdep.c (s390_push_dummy_call): Likewise.
4619 * sh-tdep.c (sh_push_dummy_call_fpu)
4620 (sh_push_dummy_call_nofpu): Likewise.
4621 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
4622 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
4623 * vax-tdep.c (vax_push_dummy_call): Likewise.
4624
4a19ea35
JB
46252004-06-04 Jim Blandy <jimb@redhat.com>
4626
8327ccee
JB
4627 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
4628 gdbarch argument to register_size.
4629
a3c001ce
JB
4630 * rs6000-tdep.c (rs6000_store_return_value): Use
4631 regcache_cooked_write_part instead of
4632 deprecated_write_register_bytes.
4633 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
4634 not gdbarch_deprecated_store_return_value.
4635
4a19ea35
JB
4636 * ppc-linux-nat.c (store_register, fetch_register): Remove
4637 incorrect assertions. Simplify and generalize handling of
4638 transfers whose sizes are not multiples of, or less than, sizeof
4639 (PTRACE_XFER_TYPE).
4640
b9b5d7ea
JJ
46412004-06-04 Jeff Johnston <jjohnstn@redhat.com>
4642
4643 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
4644 as a new thread event.
720c7d64 4645 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 4646 zombie, return TD_THR_ZOMBIE.
720c7d64 4647 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
4648 TD_THR_ZOMBIE, check if the thread is still on the thread list
4649 and return a -1 ptid if not found.
4650 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
4651 change the status to TARGET_WAITKIND_SPURIOUS.
4652
c8a3b559
CV
46532004-06-03 Corinna Vinschen <vinschen@redhat.com>
4654
4655 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
4656 double values in little endian mode.
4657
20605361
AC
46582004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
4659
4660 Committed by Andrew Cagney.
4661 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
4662 after last enum constant to avoid error from IBM C
4663 compiler.
4664
bc97b3ba
JB
46652004-06-02 Jim Blandy <jimb@redhat.com>
4666
4667 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
4668 to 'message', and make it local to the lone block that uses it.
4669
1da28ab0
JB
4670 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
4671
4c4b4cd2
PH
46722004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
4673
8a2225b2
PH
4674 * ada-exp.y: Update copyright notice.
4675 Include block.h.
4676
4677 Replace REGNAME, LAST, INTERNAL_VARIABLE with
4678 SPECIAL_VARIABLE and unify the treatment of these cases.
4679
4680 (write_attribute_call0): Remove.
4681 (write_attribute_call1): Remove.
4682 (write_attribute_calln): Remove.
4683 (save_qualifier): Add missing semicolon.
4684
4685 (simple_exp,exp): Decomment (i.e., reactivate) code that was
4686 temporarily disabled to allow compilation with FSF head version.
4687
4688 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
4689 use individual operators (OP_*) for all attributes.
4690 (exp syntax): Use write_int.
4691 Handle STRING literals with OP_STRING.
4692 (variable syntax): Add limit parameter to calls to
4693 write_object_renaming.
4694
4695 (temp_parse_space): New definition to hold entities that need
4696 only live until the next call to ada_parse.
4697 (string_to_operator): Rename fields of ada_opname_table entries.
4698
4699 (write_var_from_sym): Record block.
4700 (write_var_from_name): Minor reformatting.
4701 Make sure saved name is properly encoded in the case of multiple
4702 matches, and set its language to Ada.
4703 Update comment.
4704 Modify to indicate unresolved name as symbol in the UNRESOLVED
4705 namespace, allocated in temp_parse_space.
4706 (write_int): New function.
4707
4708 (write_object_renaming): Add max_depth parameter to limit
4709 chains of object renamings.
4710 Handle case where root of renaming expression is itself a renaming.
4711 Use temp_parse_space for temporary name buffer.
4712 Handle renamings to dereferenced pointers (___XEXA suffices).
4713
4714 (ada_parse, yyerror, string_to_operator,
4715 write_var_from_sym, write_var_from_name, write_attribute_call0,
4716 write_attribute_call1, write_attribute_calln,
4717 write_object_renaming): Protoize.
4718
4719 (_initialize_ada_exp): New function.
4720
4721 * ada-lang.c: Update copyright notice.
4722 General terminology change to conform to GNAT compiler usage:
4723 mangle => encode, demangle => decode
4724 Include gdb_obstack.h.
4725 Include gdb_regex.h
4726 Include frame.h
4727 Include hashtab.h
4728 Include completer.h
4729 Include gdb_stat.h
4730 Include block.h
4731 Include infcall.h
4732
4733 (ADA_RETAIN_DOTS): Make sure this is defined.
4734 (TRUNCATION_TOWARDS_ZERO): Define.
4735 (struct string_vector): Define.
4736 (unresolved_names): Remove definition.
4737 (xnew_string_vector): New function.
4738 (string_vector_append): New function.
4739 (extract_string): Make static.
4740 (ada_unqualified_name): New function.
4741 (add_angle_brackets): New function.
4742 (function_name_from_pc): New function.
4743 (place_on_stack): Rename to ensure_lval.
4744
4745 (ensure_lval): Renamed from place_on_stack.
4746 Make identity on lvals.
4747 Update comment.
4748 (is_nonfunction): New interface.
4749 Only symbols in LOC_CONST class can be enumerals.
4750 (fill_in_ada_prototype): Remove; now independent of language.
4751 (add_defn_to_vec): Add obstack and symtab arguments.
4752 Use obstack to hold collected definitions.
4753 (num_defns_collected): New function.
4754 (defns_collected): New function.
4755 (ada_resolve_subexp): Rename to resolve_subexp.
4756 (resolve_subexp): Renamed from ada_resolve_subexp.
4757 (ada_op_name): Return non-const result.
4758 (ada_decoded_op_name): Renamed from ada_op_name, now used for
4759 other purposes.
4760
4761 (to_fixed_array_type): Add declaration.
4762 (coerce_unspec_val_to_type): Remove offset parameter.
4763 (find_sal_from_funcs_and_line): New interface.
4764 (find_line_in_linetable): Ditto.
4765
4766 (all_sals_for_line): Rename to ada_sals_for_line and make
4767 global.
4768 Add new parameter. When set, do not ask the user to choose the
4769 instance, but use the first one found instead.
4770 Use given line number in returned sals.
4771 Fix comment.
4772 Skip the prologue if funfirstline is set.
4773 Correct for memory leak when 0 lines found.
4774
4775 (value_pos_atr): Use pos_atr.
4776 (pos_atr): New function.
4777 (standard_lookup): Add block parameter.
4778
4779 (makeTimeStart): Remove declaration and uses.
4780 (makeTimeStop): Remove declaration and uses.
4781
4782 (ada_completer_word_break_characters): Allow for VMS.
4783 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
4784 (raise_sym_name): New constant.
4785 (raise_unhandled_sym_name): New constant.
4786 (raise_assert_sym_name): New constant.
4787 (process_raise_exception_name): New constant.
4788 (longest_exception_template): New constant.
4789 (warning_limit): New variable to limit warnings during expression
4790 evaluation.
4791 (warnings_issued): New variable to keep track of warnings issued.
4792 (known_runtime_file_name_patterns): New constant.
4793 (known_auxiliary_function_name_patterns): New constant.
4794 (symbol_list_obstack): New variable.
4795
4796 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
4797 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
4798 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
4799 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
4800 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
4801 ada_variant_discrim_name, field_alignment, dynamic_template_type,
4802 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
4803 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
4804 and strcmp.
4805
4806 (ada_get_field_index): New function.
4807 (lim_warning): New function.
4808 (ada_translate_error_message): New function.
4809 (MAX_OF_SIZE): New function.
4810 (MIN_OF_SIZE): New function.
4811 (UMAX_OF_SIZE): New function.
4812 (UMIN_OF_SIZE): New function.
4813 (discrete_type_high_bound): New function.
4814 (discrete_type_low_bound): New function.
4815 (base_type): New function.
4816 (do_command): Remove.
4817
4818 (ada_update_initial_language): Use language_ada, not language_unknown.
4819 (ada_encode): Renamed from ada_mangle.
4820 Obey ADA_RETAIN_DOTS.
4821 (ada_decode): Renamed from ada_demangle.
4822 Update coding conventions.
4823 (decoded_names_store): New hash table.
4824 (ada_decode_symbol): New function.
4825 (ada_la_decode): New function.
4826
4827 (modify_general_field): Correct computations of offset and bit
4828 position.
4829 (desc_base_type): Handle ref types, too.
4830 (ada_is_direct_array_type): New function.
4831
4832 (ada_is_simple_array): Rename to ada_is_simple_array_type.
4833 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
4834 (ada_is_bogus_array_descriptor,ada_type_of_array,
4835 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
4836 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
4837 ada_is_array_descriptor_type.
4838
4839 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
4840 (ada_is_packed_array_type): Handle pointers or
4841 references to packed arrays as well.
4842 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
4843 (decode_packed_array_type): Search for the packed array type
4844 symbol in the currently selected block and associated
4845 superblocks too.
4846 Use lookup_symbol again.
4847
4848 (decode_packed_array): Handle pointers and references.
4849 Update call to coerce_unspec_val_to_type.
4850 (decode_packed_array_type,value_subscript_packed): Limit warnings.
4851 (ada_value_primitive_packed_val): Improve comment.
4852
4853 (ada_index_type): Substitute int type for "undefined".
4854 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
4855 ada_array_langth, ada_is_string_type): Use renamed
4856 ada_is_simple_array_type.
4857 (empty_array): New function.
4858
4859 (ada_resolve): Rename to resolve.
4860 (resolve): Make static.
4861 Call renamed resolve_subexp.
4862 Update comment.
4863 (ada_resolve_subexp): Rename to resolve_subexp.
4864 (resolve_subexp): Update comment.
4865 Decomment disabled code.
4866 Add LOC_COMPUTED* cases.
4867 Modify to use temporary struct symbols (marked as being in
4868 UNDEF_NAMESPACE) to indicate unresolved names, instead of
4869 OP_UNRESOLVED_VALUE.
4870 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
4871 Add OP_STRING case.
4872 Remove OP_ARRAY.
4873 Use SYMBOL_PRINT_NAME instead of ada_demangle.
4874 Use new ada_lookup_symbol_list interface.
4875 Use new ada_resolve_function interface.
4876 Remove OP_TYPE case.
4877
4878 (ada_args_match): Idiot proof against null actuals.
4879 Use intermediate variables to clarify.
4880 (ada_resolve_function): Update comment and interface.
4881 (mangled_ordered_before): Rename to encoded_ordered_before and
4882 update comment.
4883 (sort_choices): Update comment and interface.
4884 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
4885 (user_select_syms): New interface.
4886 Use new sort_choices interface.
4887 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
4888 (possible_user_operator_p): Idiot-proof against null values.
4889 (ada_simple_renamed_entity): Don't make cleanup; rely on
4890 caller to free result string.
4891 Remove const from return type.
4892 (make_array_descriptor): Rename uses of place_on_stack to
4893 ensure_lval.
4894 Make sure that arrays are on stack.
4895
4896 (HASH_SIZE): Define.
4897 (struct cache_entry): Define.
4898 (cache_space): Define.
4899 (cache): Define.
4900 (clear_ada_sym_cache): New function.
4901 (find_entry): New function.
4902 (lookup_cached_symbol): New function.
4903 (defn_vector_size): Define.
4904 (cache_symbol): New function.
4905 (defn_symbols): Remove.
4906
4907 (standard_lookup): Use lookup_symbol_in_language to get effect of
4908 C lookup.
4909 Cache results.
4910
4911 (symbol_completion_match): New function.
4912 (symbol_completion_add): New function.
4913 (ada_make_symbol_completion_list): New function.
4914
4915 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
4916 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
4917 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
4918 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
4919
4920 (ada_lookup_simple_minsym): New function.
4921 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
4922
4923 (add_symbols_from_enclosing_procs): New interface.
4924 Conditionalize more helpfully.
4925 Don't bother if program isn't running.
4926 Use new interface to get_frame_block.
4927 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
4928
4929 (remove_extra_symbols): New interface.
4930 (xget_renaming_scope): New function.
4931 (is_package_name): New function.
4932 (renaming_is_visible): New function.
4933 (remove_out_of_scope_renamings): New function.
4934
4935 (ada_lookup_symbol_list): New interface.
4936 Properly reinitialize the symbol list obstack.
4937 Don't call add_symbols_from_enclosing_procs if we start from a
4938 static or global block.
4939 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
4940 add_symbols_from_enclosing_procs.
4941 Add symtab data to cached entries.
4942 Handle symbols prefixed with
4943 "standard__" specially; strip prefix and don't look in local symbols.
4944 Do not include out of scope renaming symbols in list of
4945 symbols returned.
4946 Add const to block parameter.
4947 Move check for non-local, non-global symbols earlier.
4948 Remove timing stuff.
4949 (ada_lookup_symbol): New interface.
4950 Find symtab as well.
4951 (ada_lookup_symbol_nonlocal): New function.
4952
4953 (is_name_suffix): Enhance suffix detection to recognize
4954 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
4955 (is_dot_digits_suffix): New function.
4956 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
4957
4958 (ada_add_block_symbols): New interface. Use obstack to return results
4959 in a vector of struct ada_symbol_infos. Add symtab argument.
4960 Use new interface to add_defn_to_vec.
4961 Remove calls to fill_in_ada_prototype.
4962 Use BLOCK_BUCKETS, BLOCK_BUCKET.
4963
4964 (ada_finish_decode_line_1): Add const qualification to local to fix
4965 warning.
4966 Start looking in static block for functions to avoid attempts
4967 to search frame chain for up-level variables.
4968 Adapt to new ada_sals_for_line interface.
4969 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
4970 Handle quoting of the function name inside the spec string.
4971 Skip prologue when funfirstline is set and update the
4972 function documentation to that effect.
4973
4974 (debug_print_lines, debug_print_block, debug_print_blocks,
4975 debug_print_symtab): Remove.
4976
4977 (ada_main_name): New function.
4978 (ada_exception_breakpoint_type): New function.
4979 (is_known_support_routine): New function.
4980 (ada_find_printable_frame): Renamed from find_printable_frame and made
4981 global.
4982 Remove level parameter.
4983 Use new interface to select_frame.
4984
4985 (begin_command): Remove.
4986 (ada_adjust_exception_stop): New function.
4987 (ada_print_exception_stop): New function.
4988 (exception_name_from_cond): New function.
4989 (ada_report_exception_break): Replace disabled code with
4990 conditionalization on GNAT_GDB.
4991 Get the exception name from the condition string.
4992 Remove and move functionality into new functions
4993 ada_print_exception_breakpoint_task and
4994 ada_print_exception_breakpoint_nontask.
4995 (error_breakpoint_runtime_sym_not_found): New function.
4996 (is_runtime_sym_defined): New function.
4997 (ada_breakpoint_rewrite): Uncomment suppressed code.
4998 Use symbolic error-message and runtime-symbol names.
4999 Surround runtime symbol names in quotes.
5000 Allow non-specific breakpoints on exceptions and assertions before
5001 program starts.
5002
5003 (ada_is_tagged_type): Add parameter.
5004 (ada_is_tag_type): New function.
5005 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
5006 (ada_variant_discrim_type): Ditto.
5007 (value_tag_from_contents_and_address): New function.
5008 (type_from_tag): New function.
5009 (struct tag_args): New structure used to communicate with
5010 ada_tag_name_1.
5011 (ada_tag_name_1): New function.
5012 (ada_tag_name): New function.
5013
5014 (ada_scan_number): Update comment.
5015 (find_struct_field): New function.
5016 (ada_search_struct_field): Make static.
5017 (ada_value_struct_elt): New version that returns references when
5018 given pointers or references to structs.
5019 (ada_lookup_struct_elt_type): Add 'refok' parameter.
5020 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
5021 interface.
5022 (ada_value_ind): Use new ada_to_fixed_value interface.
5023 (ada_coerce_ref): Ditto.
5024 (field_offset): Remove.
5025
5026 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
5027 (ada_find_renaming_symbol): New function.
5028 (ada_prefer_type): Prefer named types over unnamed ones.
5029 (variant_field_index): New function.
5030 (contains_variant_part): Removed: subsumed by variant_field_index.
5031 (ada_template_to_fixed_record_type): New function, mostly from
5032 template_to_fixed_record_type.
5033 (template_to_fixed_record_type):
5034 Do not scan the type fields beyond the last one; prevents a
5035 potential SEGV.
5036 Handle case where variant field is listed BEFORE discriminant it
5037 depends on.
5038 Fix calculation of record length when bit length is
5039 not evenly divisible by char length.
5040 Move code to ada_template_to_fixed_record_type and call it.
5041
5042 (template_to_static_fixed_type): Revise comment.
5043 Modify to work on ordinary record types as well as templates,
5044 so as to handle fields that use ___XVE or ___XVU encodings.
5045 (to_record_with_fixed_variant_part): Fill out comment.
5046 Initialize C++ stuff in right type.
5047 Allow case where DVAL is null.
5048 Handle case where variant field is not last.
5049 Fix typo concerning record length.
5050 (to_fixed_record_type): Decomment disabled code.
5051 (to_fixed_record_type): Use variant_field_index instead of
5052 contains_variant_part.
5053 (to_fixed_variant_branch_type): Ditto.
5054 (to_fixed_array_type): Decomment disabled code.
5055 (ada_to_fixed_type): Convert tagged types to the specific type.
5056 Deactivate the size-check for array types in order to avoid
5057 some false size alarms.
5058 (to_static_fixed_type): Decomment disabled code.
5059 Modify to call template_to_static_fixed_type
5060 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
5061 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
5062 Remove valaddr argument, as it is never really used.
5063 (ada_to_fixed_value): Change interface to act on single struct value*
5064 operand.
5065 (adjust_pc_past_prologue): New function.
5066 (ada_attribute_name): Modify to take enum exp_opcode argument.
5067
5068 (ada_enum_name): Recognize new homonym-distinguishing convention.
5069 Adjust local variable's type to remove compiler warning.
5070 Fix a small problem in the part that unqualifies the enumeration name.
5071 (ada_value_binop): New function.
5072 (ada_value_equal): New function.
5073
5074 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
5075 Don't give error message when not doing normal evaluation
5076 and a tagged type doesn't seem to contain a structure member.
5077 Give error message for packed arrays.
5078 For indexing arrays, handle pointers to packed arrays correctly.
5079 Handle case of 'first and 'last attributes of bare integral type
5080 without encoded subtype info.
5081 Remove some unnecessary casts.
5082 Fix uninitialized value of type in computing 'first, 'last, or 'length
5083 of array object.
5084 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
5085 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
5086 calls.
5087 Attributes are now exp_opcode values.
5088 Correct treatment of 'modulus.
5089 Better error message for taking 'length of wrong kind of type;
5090 improve comment.
5091 Change EVAL_NORMAL to noside for consistency.
5092 Use ada_value_binop for DIV, MOD, REM.
5093 Make special case out of array of length 0, since an argument
5094 of 0 upsets some platforms' malloc.
5095 Use OP_STRING instead of OP_ARRAY.
5096 For slice, add check that we have an array type before extracting
5097 a slice out of it. Avoids a SEGV.
5098 When evaluating an array slice, if the array type is a reference to
5099 an aligner type, then replace the aligner type by the actual type.
5100 Decomment disabled code.
5101 Remove some dead code.
5102 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
5103 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
5104 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
5105 and UNOP_MBR to UNOP_IN_RANGE.
5106 If an array type has a parallel ___XVE type, then use it.
5107 Turn arrays into pointers for lvalue arrays.
5108 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
5109 bounds error and handle 0-length slices.
5110 Use lim_warning.
5111 When selecting fields, apply ada_to_fixed_value (because the fields
5112 might have ___XVU or ___XVE encodings even if not dynamic.)
5113 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
5114 (ada_is_system_address_type): New function.
5115
5116 (get_var_value): Use new interface to ada_lookup_symbol_list.
5117 (get_int_var_value): New interface.
5118 (to_fixed_range_type): Allow unknown bound, with warning.
5119 (ada_is_modular_type): Decomment disabled code.
5120 (ADA_OPERATORS): New definition.
5121 (ada_operator_length): New function.
5122 (ada_expr_op_name): New function.
5123 (ada_forward_operator_length): New function.
5124 (ada_dump_subexp_body): New function.
5125 (ada_print_subexp): New function.
5126 (ada_exp_descriptor): New constant.
5127 (ada_op_print_tab): Add 'size. Remove FIXMEs.
5128 (ada_language_defn): Add ada_exp_descriptor entry.
5129 Change ada_parse => parse.
5130 Add post-parser entry.
5131 Use ada-specific non-local symbol lookup.
5132 Don't use C-style arrays.
5133 String lower-bound is 1.
5134 Decomment disabled code.
5135 (parse): New function.
5136 New fields ada_translate_error_message, ada_lookup_symbol,
5137 ada_lookup_minimal_symbol.
5138
5139 * ada-lang.h: Update copyright dates.
5140 Replace the mangle/demangle terminology throughout by the
5141 more appropriate encode/decode one.
5142 Include breakpoint.h.
5143 Forward declare struct partial_symbol, struct block.
5144 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
5145 (EXTRACT_ADDRESS): Remove.
5146 (EXTRACT_INT): Remove.
5147 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
5148 (MAX_ENCLOSING_FRAME_LEVELS): Define.
5149 (MAX_RENAMING_CHAIN_LENGTH): Define.
5150 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
5151
5152 (enum task_states): Remove.
5153 ada_task_states: Remove.
5154 (fat_string): Remove.
5155 (struct entry_call): Remove.
5156 (struct task_fields): Remove.
5157 (struct task_entry): Remove.
5158
5159 (struct ada_symbol_info): Define.
5160 (enum ada_attribute): Remove.
5161 (enum ada_operator): Define.
5162
5163 (ada_get_field_index): Declare.
5164 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
5165 (ada_is_simple_array): Rename to ada_is_simple_array_type.
5166 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5167 (ada_lookup_symbol_list): New interface.
5168 (ada_decode_symbol): Declare.
5169 (ada_decode): Declare.
5170 (ada_lookup_symbol): New interface.
5171 (ada_update_initial_language): Declare.
5172 (ada_lookup_simple_minsym): Declare.
5173 (user_select_syms): New interface.
5174 (ada_sals_for_line): Declare.
5175 (ada_is_tagged_type): New interface.
5176 (ada_tag_name): Declare.
5177 (ada_lookup_struct_elt_type): Remove declaration.
5178 (ada_search_struct_field): Remove declaration.
5179 (ada_attribute_name): New interface.
5180 (ada_is_system_address_type): Declare.
5181 (ada_to_fixed_value): Remove declaration.
5182 (ada_template_to_fixed_record_type_1): Declare.
5183 (get_int_var_value): New interface.
5184 (ada_find_any_symbol): Declare.
5185 (ada_find_renaming_symbol): Declare.
5186 (ada_mangle): Rename to ada_encode.
5187 (ada_simple_renamed_entity): Remove const.
5188 (ada_main_name): Declare.
5189 (get_current_task): Rename to ada_get_current_task.
5190 (get_entry_number): Remove declaration.
5191 (ada_report_exception_break): Remove declaration.
5192 (ada_print_exception_breakpoint_nontask): Declare.
5193 (ada_print_exception_breakpoint_task): Declare.
5194 (ada_find_printable_frame): Declare.
5195
5196 * ada-lex.l: Update copyright notices.
5197 Use xmalloc and xfree instead of malloc and free.
5198 Use new interface to name_lookup.
5199 Use new interface to
5200 ada_mangle=>ada_encode.
5201 Redo handling of '$...' variable to parallel current treatment
5202 in c-exp.y.
5203 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
5204 digit_to_int, strtoulst, processInt, processReal, processId,
5205 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
5206 yywrap): Protoize.
5207
5208 (processInt): Use cast to remove harmless warning.
5209 (processReal): Modify to get rid of compiler warning on scan formats.
5210
5211 (processId): Replace xmalloc with obstack_alloc for name and remove
5212 call to ada_name_string_cleanup.
5213 Remove obsolete disabled code.
5214 (name_lookup): Ditto.
5215 New interface.
5216 Use obsavestring on temp_parse_space instead of savestring
5217 on name, and remove call to ada_name_string_cleanup.
5218 Free string returned from ada_simple_renamed_entity.
5219 Use new interface to ada_lookup_symbol_list.
5220 Decomment disabled code.
5221 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
5222 not types.
5223 When a type name lookup succeeds as a result of
5224 lookup_primitive_typename, check for regular type entry that has not
5225 yet been read in.
5226 Limit length of chain of renamed symbols we are willing to follow.
5227 Do not break names beginning with "standard__" into segments.
5228 (block_lookup): Use new interface to ada_lookup_symbol_list.
5229
5230 * ada-typeprint.c: Update copyright notice.
5231 (demangled_type_name): Rename to decoded_type_name.
5232 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
5233 (print_range_bound): Correct handling of negative
5234 bounds that make the index type looked unsigned under STABS.
5235 (print_dynamic_range_bound): Use new interface to get_int_var_value.
5236 (print_range_type_named): Use the builtin int type if no type
5237 corresponding to the given type name could be found.
5238 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
5239 Add some bullet-proofing.
5240 (print_variant_clauses): Allow for variant branches with ___XVU
5241 encodings that are not dynamic fields.
5242 Use new interface to ada_is_tagged_type.
5243 (print_record_type): Allow for fields with ___XVE encodings that
5244 are not dynamic fields.
5245 Use new interface to ada_is_tagged_type.
5246 (ada_print_type): ada_is_array_descriptor =>
5247 ada_is_array_descriptor_type.
5248
5249 * ada-valprint.c: Update copyright notice.
5250 Include gdb_string.h
5251 Include infcall.h
5252 (ui_memcpy): New function.
5253 (ada_print_floating): New function.
5254 (ada_print_str): Order arguments correctly.
5255 Correct handling of empty arrays and arrays of 0-length items.
5256 ada_is_array_descriptor => ada_is_array_descriptor_type
5257 Print values of type System.Address in hexadecimal format.
5258 Use ada_print_floating to print floating-point numbers in Ada format.
5259 Print class tag values with type names.
5260 No longer print the address of reference values. Avoids
5261 a potential confusion.
5262 (ada_value_print): Stop printing the object type for reference
5263 values, but preserve that behavior for access types. Avoids
5264 a potential confusion.
5265 Simplify one conditional expression, as the first part is now
5266 necessarily true.
5267 ada_is_array_descriptor => ada_is_array_descriptor_type
5268 Add check for arrays for null records, and print them by hand.
4c4b4cd2 5269
f65f91b5
JB
52702004-06-01 Jim Blandy <jimb@redhat.com>
5271
5272 * ppc-tdep.h: Delete unused 'regoff' member.
5273 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
5274
d4687fa0
MC
52752004-06-01 Michael Chastain <mec.gnu@mindspring.com>
5276
5277 Fix PR symtab/1661.
5278 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
5279 (hpread_read_struct_type): Likewise.
5280
de169ec9
AC
52812004-06-01 Andrew Cagney <cagney@gnu.org>
5282
c6902d46
AC
5283 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
5284 instead of xasprintf.
5285 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
5286 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
5287 (mi_cmd_data_list_register_names)
5288 (mi_cmd_data_list_changed_registers)
5289 (mi_cmd_data_list_register_values)
5290 (get_register, mi_cmd_data_write_register_values)
5291 (mi_cmd_data_write_register_values)
5292 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
5293 (mi_cmd_target_download, mi_cmd_target_select)
5294 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
5295 (mi_execute_cli_command, mi_execute_async_cli_command)
5296 (mi_execute_async_cli_command): Ditto.
5297 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
5298 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
5299
6085fc2d
AC
5300 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
5301 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
5302 error_last_message instead of mi_error_last_message.
5303 * mi/mi-main.c (mi_error_last_message): Delete function.
5304
de169ec9
AC
5305 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
5306 "invalid number of columns" error. Delete redundant "out of
5307 memory" check.
5308
1fc7d519
MK
53092004-05-31 Mark Kettenis <kettenis@gnu.org>
5310
6cfb2041
MK
5311 * i386bsd-nat.c: Don't include <sys/procfs.h>.
5312 (gregset_t, fpregset_t): Remove typedefs.
5313 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
5314 (REG_OFFSET): Rename argument.
5315 (i386bsd_r_reg_offset): Rename from reg_offset.
5316 (REG_ADDR): Remove macro.
5317 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
5318 functions.
5319 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
5320 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
5321 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
5322 instead of supply_gregset.
5323 (store_inferior_registers): Use `struct reg' and `struct fpreg'
5324 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
5325 instead of fill_gregset.
5326 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
5327
1fc7d519
MK
5328 * i386bsd-nat.c: Don't include "gregset.h".
5329 (supply_gregset, fill_gregset): Make static.
5330 (supply_fpregset, fill_fpregset): Remove.
5331 * Makefile.in (i386bsd-nat.o): Update dependencies.
5332
2c34abbe
MK
53332004-05-30 Mark Kettenis <kettenis@gnu.org>
5334
448724fb
MK
5335 * fbsd-proc.c: Include "regcache.h", "regset.h" and
5336 "gdb_assert.h". Con't include "gregset.h".
5337 (fbsd_make_corefile_notes): Use regset-based core file support
5338 instead off fill_gregset and fill_fpregset.
5339 * Makefile.in (fbsd-proc.o): Update dependencies.
5340
5ca8ca7c
MK
5341 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
5342 instructions.
5343 (m88k_frame_prev_register): Simplify code a bit.
5344
593adc23
MK
5345 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
5346 (amd64_collect_fpregset): New function.
5347 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
5348
8d1b517b
MK
5349 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
5350
7fdafb5a
MK
5351 * i386-tdep.c (i386_supply_gregset): Adjust comment.
5352 (i386_collect_gregset): New function.
5353 (i386_supply_fpregset): Adjust comment.
5354 (i386_collect_fpregset): New function.
5355 (i386_regset_from_core_section): Use i386_collect_gregset and
5356 i386_collect_fpregset.
5357
8693c419
MK
5358 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
5359 handle VALUEP being null.
5360
2c34abbe
MK
5361 * regset.h (collect_regset_ftype): Unconstify fourth argument.
5362
45d134d8
MK
53632004-05-29 Mark Kettenis <kettenis@gnu.org>
5364
1698f4e7
MK
5365 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
5366
45d134d8
MK
5367 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
5368 assembler in OpenBSD 3.5-current.
5369 (amd64obsd_sigcontext_addr): Likewise.
5370
691d145a
JB
53712004-05-28 Jim Blandy <jimb@redhat.com>
5372
5373 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
5374 register set, so our regcache isn't declared "legacy" and our E500
5375 pseudoregister read and write functions aren't ignored.
5376 (rs6000_register_byte, rs6000_register_raw_size,
5377 rs6000_register_virtual_type, rs6000_register_convertible,
5378 rs6000_register_convert_to_virtual,
5379 rs6000_register_convert_to_raw): Deleted.
5380 (rs6000_register_type, rs6000_convert_register_p,
5381 rs6000_register_to_value, rs6000_value_to_register): New
5382 functions.
5383 (rs6000_gdbarch_init): Don't register
5384 gdbarch_deprecated_register_size,
5385 gdbarch_deprecated_register_bytes,
5386 gdbarch_deprecated_register_byte,
5387 gdbarch_deprecated_register_raw_size,
5388 gdbarch_deprecated_register_virtual_type,
5389 gdbarch_deprecated_register_convertible,
5390 gdbarch_deprecated_register_convert_to_virtual, or
5391 gdbarch_deprecated_register_convert_to_raw methods. Instead,
5392 register gdbarch_register_type, gdbarch_convert_register_p,
5393 gdbarch_register_to_value, and gdbarch_value_to_register methods.
5394
18ed0c4e
JB
53952004-05-26 Jim Blandy <jimb@redhat.com>
5396
5397 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
5398 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
5399 functions, updated to match the register numberings used in GCC.
5400 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
5401 rs6000_dwarf2_reg_to_regnum as register number conversions
5402 functions for STABS and Dwarf2.
5403
779af9e3
RC
54042004-05-26 Randolph Chung <tausq@debian.org>
5405
5406 * infttrace.h (target_waitkind): Forward declare type instead of pulling
5407 in header file.
5408
c23968a2
JB
54092004-05-25 Joel Brobecker <brobecker@gnat.com>
5410
5411 * NEWS: Document new "start" command.
5412
3a7d1c27
RC
54132004-05-25 Randolph Chung <tausq@debian.org>
5414
5415 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
5416 hppa-linux.
5417
43613416
RC
54182004-05-25 Randolph Chung <tausq@debian.org>
5419
5420 * hppa-hpux-tdep.c (offsetof): Define.
5421 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
5422 (hppa32_hpux_frame_base_before_sigtramp)
5423 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
5424 (hppa64_hpux_frame_saved_pc_in_sigtramp)
5425 (hppa64_hpux_frame_base_before_sigtramp)
5426 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
5427 functions.
5428 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
5429 (hppa_hpux_sigtramp_frame_unwind_cache)
5430 (hppa_hpux_sigtramp_frame_this_id)
5431 (hppa_hpux_sigtramp_frame_prev_register)
5432 (hppa_hpux_sigtramp_frame_unwind)
5433 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
5434 (hppa_hpux_init_abi): Register sigtramp unwinder.
5435 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
5436
6d1be3f1
RC
54372004-05-25 Randolph Chung <tausq@debian.org>
5438
5439 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
5440 and multiple stack unwinds.
5441 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
5442
97c34f65
AC
54432004-05-25 Andrew Cagney <cagney@gnu.org>
5444
5445 * symfile.h (symbol_file_add_from_memory): Delete declaration.
5446 * symfile-mem.h: Delete file.
5447 * symfile-mem.c: Do not include "symfile-mem.h".
5448 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
5449 "struct bfd_section". When an error do not bother returning NULL.
5450 (add_symbol_file_from_memory_command): Use "struct bfd" and
5451 "struct bfd_section".
5452 * Makefile.in (symfile_mem_h): Delete.
5453 (symfile-mem.o): Update dependencies.
5454
e23cbd82
NR
54552004-05-25 Nick Roberts <nickrob@gnu.org>
5456
5457 * gdb-mi.el: New file.
5458
20d2ca3e
AC
54592004-05-25 Andrew Cagney <cagney@gnu.org>
5460
5461 * inftarg.c: Include "observer.h".
5462 (child_attach, child_create_inferior): Notify inferior_created.
5463 * corelow.c: Include "observer.h".
5464 (core_open): Notify inferior_created.
5465 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
5466
c27cda74
AC
54672004-05-25 Andrew Cagney <cagney@gnu.org>
5468
5469 * target.h (struct target_ops): Add from_tty to
5470 to_create_inferior.
5471 (target_create_inferior, find_default_create_inferior): Update.
5472 * infcmd.c (run_command): Update.
5473 * wince.c (child_create_inferior): Update.
5474 * win32-nat.c (child_create_inferior): Update.
5475 * uw-thread.c (uw_thread_create_inferior): Update.
5476 * thread-db.c (thread_db_create_inferior): Update.
5477 * target.c (debug_to_create_inferior)
5478 (find_default_create_inferior): Update.
5479 (maybe_kill_then_create_inferior): Update.
5480 * sol-thread.c (sol_thread_create_inferior): Update.
5481 * remote.c (extended_remote_async_create_inferior)
5482 (extended_remote_create_inferior): Update.
5483 * remote-vx.c (vx_create_inferior): Update.
5484 * remote-st.c (st2000_create_inferior): Update.
5485 * remote-sim.c (gdbsim_create_inferior): Update.
5486 * remote-sds.c (sds_create_inferior): Update.
5487 * remote-rdp.c (remote_rdp_create_inferior): Update.
5488 * remote-rdi.c (arm_rdi_create_inferior): Update.
5489 * remote-m32r-sdi.c (m32r_create_inferior): Update.
5490 * remote-e7000.c (e7000_create_inferior): Update.
5491 * procfs.c (procfs_create_inferior): Update.
5492 * ocd.c (ocd_create_inferior): Update.
5493 * ocd.h (ocd_create_inferior): Update.
5494 * nto-procfs.c (procfs_create_inferior): Update.
5495 * monitor.c (monitor_create_inferior): Update.
5496 * lin-lwp.c (lin_lwp_create_inferior): Update.
5497 * inftarg.c (child_create_inferior): Update.
5498 * hpux-thread.c (hpux_thread_create_inferior): Update.
5499 * gnu-nat.c (gnu_create_inferior): Update.
5500
1db2a798
AC
55012004-05-25 Andrew Cagney <cagney@gnu.com>
5502
5503 * MAINTAINERS: Update e-mail address.
5504
007d08bb
RC
55052004-05-24 Randolph Chung <tausq@debian.org>
5506
5507 * thread.c (info_threads_command, thread_apply_all_command)
5508 (thread_apply_command, thread_command, do_captured_thread_select):
5509 Remove HPUXHPPA-specific code.
5510
69e7b95e
RC
55112004-05-24 Randolph Chung <tausq@debian.org>
5512
5513 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
5514 unused symbols.
5515 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
5516 references.
5517
a4d5f2e0
JB
55182004-05-24 Joel Brobecker <brobecker@gnat.com>
5519
5520 * infcmd.c (kill_if_already_running): New function, extracted
5521 from run_command().
5522 (run_command): Replace extracted code by call to
5523 kill_if_already_running().
5524 (start_command): New function.
5525 (_initialize_infcmd): Add "start" command.
5526
bf2ca189
MK
55272004-05-24 Mark Kettenis <kettenis@gnu.org>
5528
5529 Add OpenBSD/m88k support.
5530 * NEWS (New native configurations): Mention OpenBSD/m88k.
5531 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
5532 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
5533 * Makefile.in (m88k_tdep_h): New variable.
5534 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
5535 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
5536 * configure.host: Add m88*-*-openbsd*.
5537 * configure.tgt: Add m88*-*-openbsd*.
5538
80fadb11
JB
55392004-05-24 Jim Blandy <jimb@redhat.com>
5540
5541 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
5542 to approve changes.
5543
19e2d14b
KB
55442004-05-24 Kevin Buettner <kevinb@redhat.com>
5545
5546 * symtab.c (fixup_section): Search section table when lookup by
5547 name fails.
5548
1b07b470
RC
55492004-05-24 Randolph Chung <tausq@debian.org>
5550
5551 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
5552 be "small_struct".
5553
368702b1
MK
55542004-05-24 Mark Kettenis <kettenis@gnu.org>
5555
5df97fde
MK
5556 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
5557 register number in regcache_raw_collect call.
5558 (m68kbsd_collect_fpregset): Likewise.
5559 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
5560
368702b1
MK
5561 * regset.h (struct regset): Add back `regset' member.
5562
a770d4ec
MK
55632004-05-23 Mark Kettenis <kettenis@gnu.org>
5564
70f9f479
MK
5565 * configure.in: Check for td_pcb in `struct thread'.
5566 * configure, config.in: Regenerated.
5567
2e16d79e
MK
5568 * dpx2-nat.c: Remove file.
5569 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
5570 (dpx2-nat.o): Remove dependencies.
5571
492cf391
MK
5572 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
5573 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
5574 (amd64obsd_supply_pcb): New function.
5575 (_initialize_amd64obsd_nat): Enable libkvm interface.
5576 * Makefile.in (amd64obsd-nat.o): Update dependencies.
5577 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
5578 (LOADLIBES): New variable.
5579
a770d4ec
MK
5580 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
5581 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
5582 (sparc32nbsd_supply_pcb): New function.
5583 (_initialize_sparcnbsd_nat): Enable libkvm interface.
5584 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
5585 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5586 (LOADLIBES): New variable.
5587
9ea75c57
MK
55882004-05-22 Mark Kettenis <kettenis@gnu.org>
5589
2e0c3539
MK
5590 * bsd-kvm.c, bsd-kvm.h: New files.
5591 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5592 "bsd-kvm.h".
5593 (i386fbsd_supply_pcb): New function.
5594 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
5595 (i386fbsd-nat.o): Update dependencies.
5596 (bsd_kvm_h): New variable.
5597 (bsd-kvm.o): New dependency.
5598 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
5599 (LOADLIBES): New variable.
5600
9ea75c57
MK
5601 * regset.c: Tweak comment.
5602 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
5603 macro.
5604 * regset.h: Update copyright year.
5605 (struct regset): Remove `descr' member, add `gdbarch' member.
5606 (regset_alloc): Adjust prototype and comment.
5607 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
5608 (i386_supply_fpregset): Likewise.
5609 (i386_regset_from_core_section): Update call to regset_alloc.
5610 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
5611 REGSET->arch.
5612 (i386obsd_aout_regset_from_core_section): Update call to
5613 regset_alloc.
5614 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
5615 REGSET->arch.
5616 (i386nbsd_aout_regset_from_core_section): Update call to
5617 regset_alloc.
5618 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
5619 REGSET->arch.
5620 (amd64_regset_from_core_section): Update call to regset_alloc.
5621 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
5622 REGSET->arch.
5623 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
5624 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
5625 &sparc32nbsd_gregset in sparc32_supply_gregset call.
5626 (sparc32nbsd_init_abi): Update call to regset_alloc.
5627 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
5628 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
5629 (sparc64obsd_init_abi): Update call to regset_alloc.
5630 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
5631 &sparc64nbsd_gregset in sparc64_supply_gregset call.
5632 (sparc64nbsd_init_abi): Update call to regset_alloc.
5633 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
5634 &sparc64fbsd_gregset in sparc64_supply_gregset call.
5635 (sparc64fbsd_init_abi): Update call to regset_alloc.
5636
867e2dc5
JB
56372004-05-22 Jim Blandy <jimb@redhat.com>
5638
5639 * ppc-tdep.h (spe_register_p): New declaration.
5640 (struct gdbarch_tdep): New members: ppc_acc_regnum and
5641 ppc_spefscr_regnum.
5642 * rs6000-tdep.c (spe_register_p): New function.
5643 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
5644 spefscr.
5645 (rs6000_gdbarch_init): Initialize the new members of the tdep
5646 structure.
5647
617a4cba
JB
56482004-05-21 Jim Blandy <jimb@redhat.com>
5649
0397dee1
JB
5650 * ppc-linux-nat.c (fetch_register): Move code back to be next
5651 to the comment that describes it. (Moved code, instead of
5652 comment, for symmetry with store_register.)
5653
617a4cba
JB
5654 Allocate regset structures in the gdbarch's obstack, not using
5655 xmalloc.
5656 * regset.c (regset_alloc): Renamed from regset_xmalloc.
5657 Add 'arch' argument. Allocate the regset on arch's obstack, not
5658 using xmalloc.
5659 * regset.h (regset_alloc): Update declaration.
5660 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
5661 gdbarch argument.
5662 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5663 * i386-tdep.c (i386_regset_from_core_section): Same.
5664 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5665 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5666 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5667 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5668 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5669 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5670
9aa3914d
JB
56712004-05-21 Joel Brobecker <brobecker@gnat.com>
5672
5673 * config/djgpp/fnchange.lst: Undo previous change, was useless.
5674
99c87dab
JB
56752004-05-21 Jim Blandy <jimb@redhat.com>
5676
5677 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
5678 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
5679
c2b6b4aa
JB
56802004-05-20 Jim Blandy <jimb@redhat.com>
5681
5682 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
5683
144529d0
MK
56842004-05-20 Mark Kettenis <kettenis@gnu.org>
5685
5686 * regset.h: Make prototype const-correct.
5687 * regset.c (regset_xmalloc): Make const-correct.
5688
4725b721
PH
56892004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
5690
5691 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
5692 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
5693 (symbol_search_name): Declare.
5694
5695 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
5696 (iter_name_next_hashed): Ditto.
5697 (iter_name_next_linear): Ditto.
5698 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
5699
5700 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
5701 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
5702 (symbol_search_name): New function.
5703
5704 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
5705
5706 * minsyms.c (build_minimal_symbol_hash_tables): Change
5707 test for adding to demangled hash table to check for difference
5708 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
5709
be07a590
JB
57102004-05-19 Jim Blandy <jimb@redhat.com>
5711
5712 Use a constructor function to create regset structures.
5713 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
5714 (struct regset): Use supply_regset_ftype. Add new
5715 'collect_regset' member.
5716 (regset_xmalloc): New declaration.
5717 * regset.c: New file.
5718 * am64-tdep.c (amd64_regset_from_core_section): Use
5719 regset_xmalloc to construct regset structures.
5720 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5721 * i386-tdep.c (i386_regset_from_core_section): Same.
5722 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5723 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5724 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5725 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5726 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5727 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5728 * Makefile.in (COMMON_OBS): Add regset.o.
5729 (regset.o): New rule.
5730
604368f5
JB
57312004-05-19 Joel Brobecker <brobecker@gnat.com>
5732
5733 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
5734 and pthread_cond_wait.c.
5735
82d69f8b
JB
57362004-05-18 Jim Blandy <jimb@redhat.com>
5737
5738 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
5739 before the mach-specific switch, and then let the individual cases
5740 override the defaults, rather than leaving them uninitialized
5741 until the switch and then setting them in each case.
5742
5859efe5
RC
57432004-05-18 Randolph Chung <tausq@debian.org>
5744
5745 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
5746 millicode functions.
5747
9ca80cf8
RC
57482004-05-18 Randolph Chung <tausq@debian.org>
5749
5750 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
5751 references to dld_flags_buffer consistent.
5752
ed70ba00
RC
57532004-05-18 Randolph Chung <tausq@debian.org>
5754
5755 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
5756 it for unwinding the stack.
5757
63100632
RC
57582004-05-18 Randolph Chung <tausq@debian.org>
5759
5760 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
5761 Undefine these so we can overide them using gdbarch.
5762
090ccbb7
RC
57632004-05-18 Randolph Chung <tausq@debian.org>
5764
5765 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
5766 handling for 64-bit HPUX (elf).
5767
594706e6
DJ
57682004-05-18 Daniel Jacobowitz <dan@debian.org>
5769
5770 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
5771 constants.
5772 * amd64-tdep.c (amd64_skip_prologue): Likewise.
5773 * ia64-tdep.c (examine_prologue): Likewise.
5774 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
5775 * v850-tdep.c (v850_fix_call_dummy): Likewise.
5776
e5483145
MK
57772004-05-18 Mark Kettenis <kettenis@gnu.org>
5778
5779 * vax-tdep.c (vax_return_value): Implement
5780 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5781
caed1a45
MK
57822004-05-17 Mark Kettenis <kettenis@gnu.org>
5783
5784 * vax-tdep.c (vax_return_value): Fix typo.
5785
3c0b7db2
AC
57862004-05-17 Andrew Cagney <cagney@redhat.com>
5787
5aae53e5
AC
5788 * MAINTAINERS: Mark Salter was also responsible for
5789 testsuite/config/
5790
3c0b7db2
AC
5791 * NEWS: Mention signal fixes.
5792
22b0923d
RC
57932004-05-17 Randolph Chung <tausq@debian.org>
5794
5795 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
5796 check to see if we are unwinding an export stub. Export stubs clobber
5797 the %rp in the call path and stores the original rp in a stack slot.
5798
22f2b2f3
JB
57992004-05-17 Jim Blandy <jimb@redhat.com>
5800
5801 * MAINTAINERS: Update address for J.T. Conklin.
5802
cea96d64
RC
58032004-05-17 Randolph Chung <tausq@debian.org>
5804
5805 * hppa-tdep.c: Remove superfluous #include's.
5806 * Makefile.in (hppa-tdep.o): Update dependencies.
5807
f08f6a4a
RC
58082004-05-17 Randolph Chung <tausq@debian.org>
5809
5810 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
5811 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
5812 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
5813 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
5814 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
5815 Remove static function declarations.
5816
51da707a
MK
58172004-05-17 Mark Kettenis <kettenis@gnu.org>
5818
caed1a45
MK
5819 * alphabsd-nat.c: Update copyright year.
5820 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
5821
c0c2b0db
MK
5822 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
5823 and M68K_A2_REGNUM.
5824
51da707a
MK
5825 * m68k-tdep.c (m68k_svr4_return_value): Implement
5826 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5827
8d027a04
MK
58282004-05-16 Mark Kettenis <kettenis@gnu.org>
5829
5830 * sol-thread.c Update copyright year. Fix various coding
5831 standards violations. Tweak a few comments.
5832 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
5833 Delete prototypes.
5834
0d99fdb9
RC
58352004-05-15 Randolph Chung <tausq@debian.org>
5836
5837 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
5838 as pointer instead of array reference since HPUX compiler does
5839 not accept unsized array arguments.
5840 * somsolib.c (dld_flags_buffer): Use constant array size.
5841
f7e3843a
MK
58422004-05-15 Mark Kettenis <kettenis@gnu.org>
5843
0fe85704
MK
5844 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
5845 offset with decimal offset.
5846 (amd64obsd_sigcontext_addr): Return correct address for entire
5847 signal trampoline.
5848
a54f9a00
MK
5849 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
5850 instead of get_frame_base.
5851
feae6502
MK
5852 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
5853 (fill_gregset): Use regcache_raw_collect.
5854
0382d099
MK
5855 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
5856 ppcobsd-tdep.c.
5857
f7e3843a
MK
5858 * config/sparc/tm-nbsd64.h: Remove file.
5859 * config/tm-sunos.h: Remove file.
5860
773df3e5
JB
58612004-05-15 Joel Brobecker <brobecker@gnat.com>
5862
5863 * rs6000-tdep.c (store_param_on_stack_p): New function,
5864 an improved version of some code extracted from skip_prologue().
5865 (skip_prologue): Use store_param_on_stack_p() to detect
5866 instructions saving a parameter on the stack. Detect when r0
5867 is used to save a parameter.
5868 Do not mark "li rx, SIMM" instructions as part of the prologue,
5869 unless the following instruction is also part of the prologue.
5870
95918acb
AC
58712004-05-14 Andrew Cagney <cagney@redhat.com>
5872
06f32659
AC
5873 * infrun.c (handle_inferior_event): Simplify
5874 STEP_OVER_UNDEBUGGABLE.
5875
95918acb
AC
5876 * infrun.c (handle_step_into_function): Delete function.
5877 (handle_inferior_event): Inline calls to
5878 handle_step_into_function.
5879
40711ff1 58802004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
5881
5882 * rs6000-nat.c: Fix a comment.
5883
02f60eae
JB
58842004-05-12 David Anderson <davea@sgi.com>
5885
5886 Committed by Jim Blandy <jimb@redhat.com>:
5887 * regcache.c (struct regcache_descr): fix comment spelling.
5888
552e377b
JB
58892004-05-13 J. Brobecker <brobecker@gnat.com>
5890
5891 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
5892 Fixes a link link failure.
5893
349766b2
JB
58942004-05-13 J. Brobecker <brobecker@gnat.com>
5895
5896 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
5897 error that was causing the build to fail.
5898
0d4d5484
JB
58992004-05-13 J. Brobecker <brobecker@gnat.com>
5900
5901 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
5902 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
5903
0b30808c
AC
59042004-05-13 Andrew Cagney <cagney@redhat.com>
5905
5906 * infrun.c (handle_inferior_event): Check for
5907 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
5908 calls. Update comments.
5909
cdf2c5f5
JB
59102004-05-13 Jim Blandy <jimb@redhat.com>
5911
063715bf
JB
5912 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
5913 (fetch_regs_user_thread, fetch_regs_kernel_thread)
5914 (store_regs_user_thread, store_regs_kernel_thread): Use
5915 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
5916 * ppc-linux-nat.c (fill_gregset): Same.
5917 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
5918 (ppc_linux_sigtramp_cache): Same.
5919 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
5920 (ppcnbsd_sigtramp_cache_init): Same.
5921 * rs6000-nat.c (fetch_core_registers): Same.
5922 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
5923 (rs6000_frame_cache): Same.
5924
cdf2c5f5
JB
5925 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
5926 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
5927 of assuming that the gprs are numbered starting with zero.
5928 * ppc-linux-nat.c (fill_gregset): Same.
5929 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
5930 * ppcnbsd-nat.c (getregs_supplies): Same.
5931 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
5932 * rs6000-nat.c (fetch_core_registers): Same.
5933 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
5934
450bd37b
MS
59352004-05-07 Michael Snyder <msnyder@redhat.com>
5936
5937 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
5938 LOC_COMPUTED_ARG, and LOC_INDIRECT.
5939
4a72a2a6
AC
59402004-05-13 Andrew Cagney <cagney@redhat.com>
5941
5942 * infrun.c (handle_inferior_event): Use frame_unwind_id.
5943
8edfa926
BM
59442004-05-13 Bryce McKinlay <mckinlay@redhat.com>
5945
5946 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
5947 base_address for shared libraries.
5948
723e0e3d
BM
59492004-05-13 Bryce McKinlay <mckinlay@redhat.com>
5950
5951 * MAINTAINERS (write after approval): Add myself.
5952
00d4360e
UW
59532004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
5954
5955 * breakpoint.c (bpstat_stop_status): Add new argument
5956 STOPPED_BY_WATCHPOINT. Use it instead of testing
5957 target_stopped_data_address agaist 0 to check whether
5958 or not we stopped due to a hardware watchpoint.
5959 * breakpoint.h (bpstat_stop_status): Adapt prototype.
5960 * infrun.c (handle_inferior_event): Call bpstat_stop_status
5961 with new argument.
5962
ec76baa5
JB
59632004-05-12 Jim Blandy <jimb@redhat.com>
5964
5965 * configure.in: When checking whether we should use the -bbigtoc
5966 option, don't forget to restore the original value of LDFLAGS.
5967 * configure: Regenerated.
5968
f2c9ca08
AC
59692004-05-12 Andrew Cagney <cagney@redhat.com>
5970
5971 * thread.c (load_infrun_state): Delete step_sp.
5972 * infrun.c (context_switch): Ditto.
5973 * inferior.h (step_sp): Ditto.
5974 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
5975 * gdbthread.h (struct thread_info, save_infrun_state)
5976 (restore_infrun_state): Ditto.
5977
090ddb2a
UW
59782004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
5979
5980 * MAINTAINERS (write after approval): Add myself.
5981
8aad930b
AC
59822004-05-12 Andrew Cagney <cagney@redhat.com>
5983
5984 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
5985 eliminate reference to step_sp.
5986 (struct execution_control_state, init_execution_control_state)
5987 (handle_inferior_event, keep_going): Delete update_step_sp and
5988 step_sp.
5989 * infcmd.c (step_sp): Note that variable is unused.
5990
922d5ae0
AC
59912004-05-11 Andrew Cagney <cagney@redhat.com>
5992
5993 * infrun.c (step_over_function): Delete function.
5994 (handle_step_into_function): Use insert_step_resume_breakpoint.
5995 (insert_step_resume_breakpoint): Fix assertion.
5996
017c5ca5
NR
59972004-05-11 Nick Roberts <nickrob@gnu.org>
5998
5999 * utils.c (defaulted_query): Just use the normal query input type
6000 when printing the annotations.
6001
42edda50
AC
60022004-05-11 Andrew Cagney <cagney@redhat.com>
6003
6004 * infrun.c (handle_inferior_event): Simplify code handling
6005 step-into or return-from a signal trampoline.
6006
d28b44a7
AC
60072004-05-11 Andrew Cagney <cagney@redhat.com>
6008
6009 * ppcnbsd-tdep.c: Include "gdb_assert.h".
6010 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
6011
383f0f5b
JB
60122004-05-10 Jim Blandy <jimb@redhat.com>
6013
d0b57c3a
JB
6014 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
6015 with a call to internal_error.
6016
383f0f5b
JB
6017 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
6018 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
6019 processor variant lacks those registers.
6020 (ppc_floating_point_unit_p): Change description to make it clear
6021 that this returns info about the ISA, not the ABI.
6022 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
6023 return true or false by checking tdep->ppc_fp0_regnum and
6024 tdep->ppc_fpscr_regnum. The original code replicated the BFD
6025 arch/mach switching done in rs6000_gdbarch_init; it's better to
6026 keep that logic there, and just check the results here.
6027 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
6028 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
6029 floating-point registers.
6030 (ppc_supply_fpregset, ppc_collect_fpregset)
6031 (rs6000_push_dummy_call, rs6000_extract_return_value)
6032 (rs6000_store_return_value): Assert that we have floating-point
6033 registers.
6034 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
6035 (rs6000_frame_cache): Don't note the locations at which
6036 floating-point registers were saved if we have no fprs.
6037 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
6038 registers.
6039 (fetch_regs_user_thread, fetch_regs_kernel_thread)
6040 (store_regs_user_thread, store_regs_kernel_thread): Only call
6041 supply_fprs / fill_fprs if we actually have floating-point
6042 registers.
6043 (special_register_p): Check ppc_fpscr_regnum before matching
6044 against it.
6045 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
6046 supply / collect fpscr if we don't have it.
6047 * ppc-bdm.c: #include "gdb_assert.h".
6048 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
6049 have floating-point registers, since I can't test this code on
6050 FP-free systems to adapt it.
6051 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
6052 fpscr and floating point register numbers if they don't exist.
6053 (fetch_register): Assert that we have floating-point registers
6054 before we reach the code that handles them.
6055 (store_register): Same. And use tdep instead of calling
6056 gdbarch_tdep again.
6057 (fill_fpregset): Don't try to collect FP registers and fpscr if we
6058 don't have them.
6059 (ppc_linux_sigtramp_cache): Don't record the saved locations of
6060 fprs and fpscr if we don't have them.
6061 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
6062 don't have them.
6063 * ppcnbsd-nat.c: #include "gdb_assert.h".
6064 (getfpregs_supplies): Assert that we have floating-point registers.
6065 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
6066 * ppcobsd-tdep.c: #include "gdb_assert.h".
6067 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
6068 have floating-point registers.
6069 * rs6000-nat.c (regmap): Don't match against the fpscr and
6070 floating point register numbers if they don't exist.
6071 (fetch_inferior_registers, store_inferior_registers,
6072 fetch_core_registers): Only fetch / store / supply the
6073 floating-point registers and the fpscr if we have them.
6074 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
6075 (ppcobsd-tdep.o): Update dependencies.
6076
15960608
AC
60772004-05-10 Andrew Cagney <cagney@redhat.com>
6078
6079 * infrun.c (through_sigtramp_breakpoint): Delete variable.
6080 (context_switch): Do not switch through_sigtramp_breakpoint.
6081 * gdbthread.h (save_infrun_state, load_infrun_state)
6082 (struct thread_info): Delete through_sigtramp_breakpoint parameter
6083 and structure member.
6084 * thread.c (load_infrun_state, save_infrun_state): Update.
6085
5ab5aa0f
MK
60862004-05-10 Mark Kettenis <kettenis@gnu.org>
6087
6088 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
6089
da78b0e7
DJ
60902004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6091
6092 * acinclude.m4: Quote macro names being defined by AC_DEFUN
6093 throughout.
6094 * aclocal.m4: Regenerate.
6095
cca0d3b0
NW
60962004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
6097
6098 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
6099
d303a6c7
AC
61002004-05-10 Andrew Cagney <cagney@redhat.com>
6101
6102 * infrun.c (check_sigtramp2): Delete function.
6103 (handle_inferior_event): When single stepping, and taking a
6104 signal, set a breakpoint at the signal return address. Delete
6105 redundant calls to check_sigtramp2.
6106 (insert_step_resume_breakpoint): New function.
6107 (through_sigtramp_breakpoint, handle_inferior_event)
6108 (follow_exec, wait_for_inferior, fetch_inferior_event)
6109 (currently_stepping, keep_going): Delete most uses of
6110 through_sigtramp_breakpoint, not that it should be deleted.
6111 (delete_breakpoint_current_contents): Delete function.
6112
03f4cc20
RC
61132004-05-10 Randolph Chung <tausq@debian.org>
6114
6115 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
6116 target.
6117 * config/pa/tm-linux.h: New file.
6118
37fc812e
DJ
61192004-05-10 Daniel Jacobowitz <drow@mvista.com>
6120
6121 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
6122 of prefixes. Don't print the prefix twice in the CLI.
6123
26c0b942
JB
61242004-05-10 Jim Blandy <jimb@redhat.com>
6125
2e56e9c1
JB
6126 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
6127 collect all the gprs.
6128
26c0b942
JB
6129 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
6130 loop collecting gprs.
6131
dc497459
AC
61322004-05-09 Andrew Cagney <cagney@redhat.com>
6133
6134 * remote-vx.c (net_step): Delete step-range code.
6135 * remote.c (remote_resume, init_all_packet_configs)
6136 (set_remote_protocol_E_packet_cmd)
6137 (show_remote_protocol_E_packet_cmd)
6138 (remote_protocol_E, show_remote_cmd, _initialize_remote)
6139 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
6140 (show_remote_protocol_e_packet_cmd): Ditto.
6141
0543f387
MK
61422004-05-09 Mark Kettenis <kettenis@gnu.org>
6143
c481d1ca
MK
6144 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
6145
f626a069
MK
6146 * hppa-tdep.h: Update copyright year.
6147 (struct trad_frame_saved_reg): Add opaque declaration.
6148
6fa57a7d
MK
6149 * amd64-tdep.c (amd64_return_value): Implement
6150 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6151
e47577ab
MK
6152 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
6153 (m68k_value_to_register): New functions.
6154 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
6155 value_to_register.
6156
31db7b6c
MK
6157 * defs.h (enum return_value_convention): Add
6158 RETURN_VALUE_ABI_RETURNS_ADDRESS and
6159 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
6160 * infcmd.c (legacy_return_value): New function.
6161 (print_return_value): Rwerite to implement
6162 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6163 * values.c (using_struct_return): Check for inequality to
6164 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
6165 RETURN_VALUE_STRUCT_CONVENTION.
6166 * i386-tdep.c (i386_return_value): Implement
6167 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6168
0543f387
MK
6169 * vax-tdep.c: Tweak comments. Reorder include files. Don't
6170 include "symtab.h", "opcode/vax.h" and "inferior.h".
6171 (vax_skip_prologue): Replace calls to read_memory_integer by calls
6172 to read_memory_unsigned_integer.
6173 (vax_gdbarch_init): Reorder.
6174 (_initialize_vax_tdep): Spell out prototype.
6175 * Makefile.in (vax-tdep.o): Update dependencies.
6176
0c93b7b6
AC
61772004-05-08 Andrew Cagney <cagney@redhat.com>
6178
e6b55ae2
AC
6179 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
6180 * target.c (target_detach, target_disconnect): Ditto.
6181
1ac839b8
AC
6182 * infcall.c (call_function_by_hand): When no
6183 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
6184 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
6185 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
6186 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6187 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6188
28954179
AC
6189 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
6190 * gdbarch.h, gdbarch.c: Re-generate.
6191 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6192 deprecated_fix_call_dummy.
6193 * v850-tdep.c (v850_gdbarch_init): Ditto.
6194 * infcall.c (call_function_by_hand): Do not call
6195 DEPRECATED_FIX_CALL_DUMMY.
6196
434b87dd
AC
6197 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
6198 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
6199 * gdbarch.h, gdbarch.c: Re-generate.
6200 * arm-linux-tdep.c (arm_linux_call_dummy_words)
6201 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
6202 deprecated_sizeof_call_dummy_words.
6203 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
6204 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6205 * v850-tdep.c (v850_gdbarch_init): Ditto.
6206 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
6207 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
6208 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6209 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6210 * arch-utils.h (legacy_call_dummy_words)
6211 (legacy_sizeof_call_dummy_words): Delete declarations.
6212 * arch-utils.c (legacy_call_dummy_words)
6213 (legacy_sizeof_call_dummy_words): Delete variables.
6214
58d28df8
AC
6215 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
6216 * gdbarch.h, gdbarch.c: Re-generate.
6217 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
6218 * infcall.c (call_function_by_hand): Eliminate call to
6219 DEPRECATED_PUSH_DUMMY_FRAME.
6220 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6221 push_dummy_frame.
6222 (ns32k_push_dummy_frame): Delete function.
6223
e4a2df64
AC
6224 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6225 deprecated_call_dummy_breakpoint_offset or
6226 deprecated_call_dummy_start_offset.
6227 * dummy-frame.c, arm-tdep.c: Update comments.
6228 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
6229 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
6230 * gdbarch.h, gdbarch.c: Re-generate.
6231
d3712828
AC
6232 * infcall.c (legacy_push_dummy_code): Delete function.
6233 (push_dummy_code): Delete call.
6234
7a882905
AC
6235 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
6236 * gdbarch.h, gdbarch.c: Re-generate.
6237 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
6238 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
6239 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
6240 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
6241
0ec5872b
AC
6242 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
6243 (struct frame_info): Delete opaque declaration.
6244 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
6245 * frame.c (get_frame_type): Delete call.
6246
0c93b7b6
AC
6247 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6248 pc_in_call_dummy.
6249 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
6250 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
6251
75536971
MK
62522004-05-08 Mark Kettenis <kettenis@gnu.org>
6253
527ca6bb
MK
6254 * alphanbsd-tdep.c: Include "gdb_string.h".
6255 * armnbsd-tdep.c: Update copyright year.
6256 Include "gdb_string.h".
6257 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
6258 dependencies.
6259
d39fdc61
MK
6260 * delta68-nat.c: Remove file.
6261 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
6262 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
6263 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
6264 (delta68-nat.o): Remove dependency.
6265
75536971
MK
6266 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
6267 function.
6268 (m68k_gdbarch_init): Don't set
6269 deprecated_frameless_function_invocation.
6270
f4ca1d1f
RC
62712004-05-07 Randolph Chung <tausq@debian.org>
6272
6273 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
6274 read_memory_nobpt for code reading when doing frame unwinding.
6275 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
6276
2f0e8c7a
RC
62772004-05-07 Randolph Chung <tausq@debian.org>
6278
6279 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
6280 instead of sp, handle sigaltstack case.
6281 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
6282 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
6283 signal handler and not that of the caller.
6284 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
6285 hppa_linux_sigtramp_find_sigcontext.
6286
959464ff
RC
62872004-05-07 Randolph Chung <tausq@debian.org>
6288
6289 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
6290 hppa-linux-nat.c.
6291 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
6292 * hppa-linux-nat.c (fetch_register, store_register): Define.
6293 (fetch_inferior_registers, store_inferior_registers): Define.
6294 (supply_gregset): Add comment and clean up some unneeded code.
6295 (fill_gregset): Add comment and fix so that it saves registers in
6296 the right place in the gregset.
6297 (fill_fpregset): Fix buffer overrun problem.
6298 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
6299
0da28f8a
RC
63002004-05-07 Randolph Chung <tausq@debian.org>
6301
6302 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
6303 do common handling of the pcoqt register.
6304 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
6305 to use helper function.
6306 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
6307 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
6308 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
6309 generic fallback unwinder when all else fails.
6310 (hppa_gdbarch_init): Add fallback sniffer.
6311 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
6312 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
6313 to use helper function.
6314
b9ec757a
JB
63152004-05-08 Joel Brobecker <brobecker@gnat.com>
6316
6317 * config/djgpp/fnchange.lst: Add translation rules for
6318 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
6319
756e95f1
MK
63202004-05-08 Mark Kettenis <kettenis@gnu.org>
6321
6322 * frame.c (get_prev_frame_1): Work around GCC bug.
6323 * frame.h: Add comment about GCC bug.
6324
2b4855ab
AC
63252004-05-07 Andrew Cagney <cagney@redhat.com>
6326
6327 * observer.c: Include "commands.h" and "gdbcmd.h".
6328 (observer_debug, _initialize_observer): Add the
6329 command "set/show debug observer".
6330 * observer.sh: When observer debugging, log notify calls.
6331 * Makefile.in (observer.o): Update dependencies.
6332
ba3e8e46
JM
63332004-05-07 Jason Molenda (jmolenda@apple.com)
6334
6335 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
6336
16796152
JB
63372004-05-07 Jim Blandy <jimb@redhat.com>
6338
daf6dc85
JB
6339 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
6340 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
6341 to recognize gpr regnums, instead of assuming that
6342 tdep->ppc_fp0_regnum marks the end of the general-purpose
6343 registers.
6344
16796152
JB
6345 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
6346 the given architecture has floating-point registers.
6347
c69b8bfc
AC
63482004-05-07 Andrew Cagney <cagney@redhat.com>
6349
6350 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
6351 macro defined to 1.
6352 * gdbarch.h, gdbarch.c: Re-generate.
6353 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6354 deprecated_use_generic_dummy_frames.
6355
7243600a
BF
63562004-05-07 Brian Ford <ford@vss.fsi.com>
6357
6358 * NEWS: Mention Cygwin DWARF 2 support.
6359
73c1e0a1
AC
63602004-05-07 Andrew Cagney <cagney@redhat.com>
6361
6362 * objfiles.h (struct entry_info): Delete unused fields
6363 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
6364 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
6365 * mipsread.c (mipscoff_symfile_read): Update.
6366 * mdebugread.c (parse_partial_symbols): Update.
6367 * dwarfread.c (read_file_scope): Update.
6368 * dwarf2read.c (read_file_scope): Update.
6369 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
6370 * coffread.c (complete_symtab): Update.
6371
1d3056ac
MK
63722004-05-07 Mark Kettenis <kettenis@gnu.org>
6373
6374 * infcall.c (_initialize_infcall): Fix typo.
6375
15170568
AC
63762004-05-07 Andrew Cagney <cagney@redhat.com>
6377
6378 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
6379 * command.h (add_setshow_zinteger_cmd): Declare.
6380
34f75cc1
RC
63812004-05-06 Randolph Chung <tausq@debian.org>
6382
6383 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
6384 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
6385 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
6386 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
6387 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
6388 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
6389 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
6390 definitions ...
6391 * hppa-tdep.h: ... to here, with HPPA_ prefix.
6392 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
6393 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
6394 (hppa64_hpux_frame_find_saved_regs_in_sig)
6395 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
6396 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
6397 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
6398 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
6399 (hppa_linux_sigtramp_frame_prev_register): Likewise.
6400 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
6401 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
6402 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
6403 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
6404 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
6405 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
6406 (hppa32_register_type, hppa_cannot_store_register)
6407 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
6408 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
6409 * hpread.c (hpread_process_one_debug_symbol): Likewise.
6410 * pa64solib.c (pa64_solib_have_load_event)
6411 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
6412 (pa64_solib_unloaded_library_pathname): Likewise.
6413 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
6414 (som_solib_library_pathname): Likewise.
6415
0a5e7efe
JI
64162004-05-05 Jim Ingham <jingham@apple.com>
6417
6418 * breakpoint.c (create_breakpoints): Copy the ignore count and
6419 thread id over from the pended breakpoint to the actual
6420 breakpoint.
6421
10a4b113
AC
64222004-05-05 Andrew Cagney <cagney@redhat.com>
6423
6424 * gdbarch.sh (PARM_BOUNDARY): Delete.
6425 gdbarch.h, gdbarch.c: Re-generate.
6426 * valops.c (PARM_BOUNDARY): Delete macro.
6427 (value_push): Delete PARM_BOUNDARY code.
6428 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
6429
366f009f
JB
64302004-05-04 Jim Blandy <jimb@redhat.com>
6431
32b99774
JB
6432 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
6433 Don't assume that the gprs, fprs, and UISA sprs are
6434 contiguous, start at register number zero, and end with fpscr.
6435 Instead, use the numbers from the tdep structure.
6436
366f009f
JB
6437 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
6438 should no longer be used in code specific to the RS6000 and its
6439 derivatives.
6440 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
6441 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
6442 tdep->ppc_fp0_regnum.
6443 (ppc_supply_fpregset, ppc_collect_fpregset)
6444 (rs6000_push_dummy_call, rs6000_extract_return_value)
6445 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
6446 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
6447 FP0_REGNUM.
6448 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
6449 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
6450 Same.
6451 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
6452 bdm_ppc_store_registers): Same.
6453 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
6454 (store_register, fill_fpregset): Same.
6455 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
6456 (ppc_linux_supply_fpregset): Same.
6457 * ppcnbsd-nat.c (getfpregs_supplies): Same.
6458 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
6459 Same.
6460 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
6461 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
6462 ppc64_sysv_abi_return_value): Same.
6463 * rs6000-nat.c (regmap, fetch_inferior_registers)
6464 (store_inferior_registers, fetch_core_registers): Same.
6465
827f338d
MK
64662004-05-01 Mark Kettenis <kettenis@gnu.org>
6467
6468 * m68knbsd-nat.c: Remove file.
6469 * m68knbsd-tdep.c: Remove file.
6470 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
6471 dependencies.
6472 * configure.host: Add m68k-*-netbsdelf*.
6473 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
6474 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
6475 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
6476 (XM_FILE): Remove.
6477 * config/m68k/nbsdelf.mh: New file.
6478 * config/m68k/nbsd.mt: New file.
6479 * config/m68k/nbsdaout.mt: Remove file.
6480 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
6481 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
6482 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
6483 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
6484 (use_struct_convention): Remove prototype.
6485 (USE_STRUCT_CONVENTION): Remove define.
6486 * config/m68k/xm-nbsd.h: Remove file.
6487
66894781
MS
64882004-05-04 Michael Snyder <msnyder@redhat.com>
6489
6490 * m68k-tdep.c (m68k_gdbarch_init): Default to using
6491 reg_struct_return method (as gcc usually does for cross targets).
6492
f0f63663
AC
64932004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6494
6495 Committed by Andrew Cagney.
6496 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
6497 alignment padding when accessing ucontext struct members.
6498
edf61169
JB
64992004-05-04 Jim Blandy <jimb@redhat.com>
6500
8bf659e8
JB
6501 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
6502 'ppc_gplast_regnum' member.
6503 (ppc_num_gprs): New enum constant.
6504 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
6505 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
6506 * rs6000-nat.c (regmap, fetch_inferior_registers,
6507 store_inferior_registers): Same.
6508 * rs6000-tdep.c (e500_pseudo_register_read)
6509 (e500_pseudo_register_write): Same.
6510 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
6511
b967e06f
JB
6512 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
6513 * ppc-tdep.h (ppc_num_fprs): New enum constant.
6514 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
6515 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
6516 FPLAST_REGNUM.
6517 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6518 Same.
6519 * ppc-linux-nat.c (ppc_register_u_addr): Same.
6520 * rs6000-nat.c (regmap, fetch_inferior_registers)
6521 (store_inferior_registers): Same.
6522
edf61169
JB
6523 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
6524 with FPLAST_REGNUM.
6525
58a9656e
JB
65262004-05-03 Joel Brobecker <brobecker@gnat.com>
6527
6528 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
6529 failure detected by recent versions of GCC.
6530 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
6531 to be consistent with the usage in dwarf2_create_include_psymtab.
6532
dc305454
MS
65332004-05-03 Michael Snyder <msnyder@redhat.com>
6534
6535 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
6536 (heuristic_proc_start): Whitespace cleanup.
6537
29972665
MK
65382004-05-04 Mark Kettenis <kettenis@gnu.org>
6539
6b57680d
MK
6540 * sun3-nat.c: Remove file.
6541 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
6542 dependencies.
6543 (ALLDEPFILES): Remove sun3-nat.c.
6544 (sun3-nat.o): Remove dependencies.
6545
29972665
MK
6546 * i386-interix-nat.c, i386-interix-tdep.c,
6547 config/i386/nm-interix.h, config/i386/interix.mh,
6548 config/i386/interix.mt: Remove files.
6549 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
6550 dependencies.
6551
f595cb19
MK
65522004-05-03 Mark Kettenis <kettenis@gnu.org>
6553
6554 * m68k-tdep.h (struct gdbarch_tdep): Add member
6555 struct_value_regnum.
6556 (m68k_svr4_init_abi): New prototype.
6557 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
6558 different calling conventions.
6559 (m68k_extract_return_value): Remove code dealing with single-field
6560 structs.
6561 (m68k_store_return_value): Remove code dealing with single-field
6562 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
6563 (m68k_extract_struct_value_address): Remove function.
6564 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
6565 (m68k_reg_struct_return_p, m68k_return_value)
6566 (m68k_svr4_return_value): New functions.
6567 (m68k_use_struct_convention): Remove function.
6568 (m68k_push_dummy_call): Use new struct_value_regnum member of
6569 `struct gdbarch_tdep' instead of hardcoded register number to
6570 store STRUCT_ADDR.
6571 (m68k_svr4_init_abi): New function.
6572 (m68k_gdbarch_init): Don't set extract_return_value,
6573 store_return_values, deprecated_extract_struct_value_address and
6574 use_struct_convention. Set return_value instead. Initialize new
6575 struct_value_regnum member of `struct gdbarch_tdep'.
6576 * m68klinux-tdep.c: Update copyright year.
6577 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
6578 (m68k_linux_extract_struct_value_address): Remove function.
6579 (m68k_linux_init_abi): Don't set extract_return_value,
6580 store_return_values, deprecated_extract_struct_value_address and
6581 use_struct_convention. Call m68k_svr4_init_abi but override the
6582 new struct_value_regnum member of `struct gdbarch_tdep'.
6583 * Makefile.in (m68k-tdep.o): Update dependencies.
6584
aaa75496
JB
65852004-05-03 J. Brobecker <brobecker@gnat.com>
6586
6587 * dwarf2read.c (line_header): Add new included_p field in
6588 field file_names.
6589 (partial_die_info): New field has_stmt_list. New field line_offset.
6590 (dwarf2_create_include_psymtab): New function.
6591 (dwarf2_build_include_psymtabs): New function.
6592 (add_file_name): Add forward declaration. Initialize new field.
6593 (dwarf_decode_lines): Add new parameter. Enhance this procedure
6594 to be able to determine the list of files included by the
6595 given unit, and build their associated psymtabs.
6596 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
6597 files as well.
6598 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
6599 (read_file_scope): Update call to dwarf_decode_lines.
6600 (read_partial_die): Handle DW_AT_stmt_list attributes.
6601
c848556f
MC
66022004-05-02 Michael Chastain <mec.gnu@mindspring.com>
6603
6604 Unfix PR gdb/1626.
6605 * configure.in: Revert special case for osf5.*.
6606 * configure: Regenerate.
6607
eb4556d7
JB
66082004-05-02 Jim Blandy <jimb@redhat.com>
6609
6610 Move the symbol-file-from-memory functions into their own file.
6611 * symfile-mem.c, symfile-mem.h: New files.
6612 * symfile.c (symbol_file_add_from_bfd): New function.
6613 (symbol_file_add): Call symbol_file_add_from_bfd.
6614 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
6615 Moved to symfile-mem.c.
6616 (_initialize_symfile): Move definition of
6617 add-symbol-file-from-memory command to symfile-mem.c.
6618 * symfile.h (symbol_file_add_from_bfd): New declaration.
6619 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
6620 * config/powerpc/linux.mt (TDEPFILES): Same.
6621 * Makefile.in (SFILES): Add symfile-mem.c.
6622 (symfile_mem_h): New variable.
6623 (HFILES_NO_SRCDIR): Add symfile-mem.h.
6624 (symfile-mem.o): New rule.
6625
80bb239e
AC
66262004-05-01 Andrew Cagney <cagney@redhat.com>
6627
7789d0fa
AC
6628 * breakpoint.c (insert_bp_location): Use get_frame_id, and
6629 frame_find_by_id instead of frame_relative_level.
6630 (do_enable_breakpoint): Ditto.
6631 * thread.c: Update copyright.
6632 (info_threads_command): Ditto, simplify.
6633
80bb239e
AC
6634 * frame.c (deprecated_generic_get_saved_register): Delete
6635 function, moved to "xstormy16-tdep.c".
6636 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
6637 deprecated_generic_get_saved_register from "frame.c".
6638 (xstormy16_frame_saved_register): Call
6639 xstormy16_get_saved_register.
6640 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
6641 static.
6642 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
6643 * frame.h (deprecated_generic_get_saved_register): Delete.
6644
b2a871dd
MC
66452004-05-01 Michael Chastain <mec.gnu@mindspring.com>
6646
6647 * dwarfread.c: Update documentation on the state of dwarf-1.
6648
0e100dab
AC
66492004-05-01 Andrew Cagney <cagney@redhat.com>
6650
acd8056e
AC
6651 * stack.c (select_frame_command): Delete call to
6652 frame_relative_level.
6653 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
6654 Delete #if0 code.
6655 (frame_info): Do not print FRAMELESS.
6656 (print_block_frame_labels): Replace DEPRECATED_STREQ.
6657 (catch_info): Delete #if0 code.
6658
0e100dab
AC
6659 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
6660 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
6661 of frame_relative_level.
6662 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
6663 to SENTINEL_FRAME.
6664 * frame.h (enum frame_type): Add SENTINEL_FRAME.
6665 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
6666 frame_relative_level.
6667
55699d59
AC
6668 * frame.h (deprecated_set_frame_type): Delete declaration.
6669 * frame.c (deprecated_set_frame_type): Delete function, update
6670 comments.
6671
fcf70625
AC
6672 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
6673 * gdbarch.h, gdbarch.c: Re-generate.
6674 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
6675 (shnbsd_pc_in_sigtramp): Delete.
6676 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
6677 pc_in_sigtramp.
6678 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
6679 pc_in_sigtramp.
6680 * frame.h: Update comments.
6681 * ppc-linux-tdep.c: Update comments.
6682 * breakpoint.c (bpstat_what): Update comments.
6683
ac5eccb7
AC
6684 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
6685 m68klinux-tdep.o's dependencies, were previously added to
6686 m68klinux-nat.o.
6687
f2524b93
AC
6688 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
6689 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
6690 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6691 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6692 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6693
17e20bce
AC
6694 * Makefile.in (m68klinux-nat.o): Update dependencies.
6695 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6696 (m68k_linux_sigtramp_frame_cache)
6697 (m68k_linux_sigtramp_frame_this_id)
6698 (m68k_linux_sigtramp_frame_prev_register)
6699 (m68k_linux_sigtramp_frame_unwind)
6700 (m68k_linux_sigtramp_frame_sniffer)
6701 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
6702 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
6703 names, use trad-frame.h.
6704 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
6705 (struct m68k_sigtramp_info): Delete.
6706 * m68k-tdep.c (m68k_sigtramp_frame_cache)
6707 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
6708 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
6709 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
6710 "m68klinux-tdep.c".
6711
c8864fa2
AC
6712 * infrun.c (check_sigtramp2): Delete check for
6713 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
6714
511dd2cd
MK
67152004-05-01 Mark Kettenis <kettenis@gnu.org>
6716
6717 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
6718
8c6b0e06
AC
67192004-05-01 Andrew Cagney <cagney@redhat.com>
6720
9df0bb3f
AC
6721 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6722 (frv_linux_sigtramp_frame_cache)
6723 (frv_linux_sigtramp_frame_this_id)
6724 (frv_linux_sigtramp_frame_prev_register)
6725 (frv_linux_sigtramp_frame_unwind)
6726 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
6727 include "linux" in function and variable names, directly call
6728 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
6729 the latest trad-frame code.
6730 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
6731 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
6732 * Makefile.in (frv-linux-tdep.o): Update dependencies.
6733 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
6734 * frv-tdep.c (frv_sigtramp_frame_cache)
6735 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
6736 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
6737 frv-linux-tdep.c.
6738 (frv_gdbarch_init): Do not append a sigtramp sniffer.
6739 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
6740 (frv_set_sigcontext_reg_addr): Delete function.
6741
8c6b0e06
AC
6742 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
6743 (DEPRECATED_SIGTRAMP_END): Delete.
6744 * gdbarch.h, gdbarch.c: Re-generate.
6745 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
6746 * config/vax/tm-vaxbsd.h: Update copyright.
6747 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6748 (DEPRECATED_IN_SIGTRAMP): Define.
6749 * config/m68k/tm-nbsd.h: Update copyright.
6750 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6751 (DEPRECATED_IN_SIGTRAMP): Define.
6752
50ea7769
MK
67532004-05-01 Mark Kettenis <kettenis@gnu.org>
6754
03ac2a74
MK
6755 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
6756 encondings. Fixes PR gdb/1628.
6757
50ea7769
MK
6758 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
6759 DW_CFA_restore state without a matching DW_CFA_remember_state
6760 instead of aborting. Fixes PR backtrace/1589.
6761
9a5d7be1
JB
67622004-04-30 Joel Brobecker <brobecker@gnat.com>
6763
6764 * MAINTAINERS: Add self as AIX maintainer.
6765 Update my e-mail address in write-after-approval section.
6766
2593d1cd
AC
67672004-04-30 Andrew Cagney <cagney@redhat.com>
6768
ce12bbf9
AC
6769 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
6770 (legacy_get_prev_frame): Ditto.
6771
36710c63
AC
6772 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
6773 (mips_gdbarch_init): Do not set pc_in_sigtramp.
6774 * mipsread.c (sigtramp_address): Delete extern variable.
6775 (mipscoff_new_init): Delete reference.
6776 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
6777 (fixup_sigtramp): Delete function.
6778 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
6779 (fixup_sigtramp): Delete declarations.
6780
2593d1cd
AC
6781 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
6782 deprecated_pc_in_sigtramp.
6783 (ppcnbsd_pc_in_sigtramp): Delete function.
6784
2a25f91c
MK
67852004-05-01 Mark Kettenis <kettenis@gnu.org>
6786
6787 * config/m68k/nm-nbsd.h: Tweak comments.
6788 * config/m68k/nm-nbsdaout.h: Likewise.
6789
0b281939
AC
67902004-04-30 Andrew Cagney <cagney@redhat.com>
6791
6792 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
6793 legacy_pc_in_sigtramp.
6794 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
6795
8f2d3ea0
MK
67962004-05-01 Mark Kettenis <kettenis@gnu.org>
6797
6798 Add OpenBSD/m68k support.
6799 * NEWS (New native configurations): Mention OpenBSD/m68k.
6800 * m68kbsd-tdep.c: New file.
6801 * m68kbsd-nat.c: New file.
6802 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
6803 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
6804 * configure.host: Add m68k-*-openbsd.
6805 * configure.tgt: Add m68k-*-openbsd.
6806 * config/m68k/tm-obsd.h: New file.
6807 * config/m68k/obsd.mt: New file.
6808 * config/m68k/obsd.mh: New file.
6809 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
6810 m68kbsd-tdep.c.
6811
c40f49a4
AC
68122004-04-30 Andrew Cagney <cagney@redhat.com>
6813
6814 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
6815 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
6816
e81554cd
MK
68172004-04-30 Mark Kettenis <kettenis@gnu.org>
6818
6819 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
6820 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
6821
d4dc1a91
BF
68222004-04-30 Brian Ford <ford@vss.fsi.com>
6823
6824 Revert 2004-04-16 change.
6825 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
6826 (i386_coff_init_abi): Remove.
6827 * i386-tdep.h (i386_coff_init_abi): Remove.
6828 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
6829
2f72f850
AC
68302004-04-30 Andrew Cagney <cagney@redhat.com>
6831
e492f9d6
AC
6832 * blockframe.c (find_pc_partial_function): Delete use of
6833 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
6834 DEPRECATED_SIGTRAMP_END.
6835
7b7adad0
AC
6836 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
6837 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
6838 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
6839 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
6840 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
6841
2f72f850
AC
6842 * defs.h (deprecated_inside_entry_file): Delete declaration.
6843 * blockframe.c (deprecated_inside_entry_file): Delete function.
6844 (legacy_frame_chain_valid): Delete call.
6845 * sh64-tdep.c (sh64_frame_chain): Delete call.
6846 * objfiles.h: Update comments.
6847 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
6848 call.
6849 * frame.c (get_prev_frame): Delete call, update comments.
6850
283f90a7
BF
68512004-04-30 Brian Ford <ford@vss.fsi.com>
6852
6853 * MAINTAINERS (Write After Approval): Add myself.
6854
8ee56bcf
AC
68552004-04-30 Andrew Cagney <cagney@redhat.com>
6856
6857 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
6858 * gdbarch.h, gdbarch.c: Re-generate.
6859 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
6860 code.
6861
ee27e1b6
AC
68622004-04-30 Andrew Cagney <cagney@redhat.com>
6863
6864 * gdb-events.sh (selected_thread_changed)
6865 (selected_frame_level_changed, target_changed): Delete.
6866 * gdb-events.h, gdb-events.c: Re-generate.
6867 * valops.c (value_assign): Update.
6868 * stack.c (select_frame_command, up_silently_base)
6869 (down_silently_base): Update.
6870
d5ac5a39
AC
68712004-04-29 Andrew Cagney <cagney@redhat.com>
6872
6873 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
6874 registers correctly.
6875 (print_gp_register_row, mips32_heuristic_proc_desc)
6876 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
6877 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
6878 references to mips_isa_regsize.
6879
ceae6e75
AC
68802004-04-29 Andrew Cagney <cagney@redhat.com>
6881
6882 * mips-tdep.c (struct gdbarch_tdep): Delete
6883 mips_fp_register_double.
6884 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
6885 mips_abi_regsize.
6886 (mips_gdbarch_init): Do not set mips_fp_register_double.
6887 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
6888
a587af0b
AC
68892004-04-29 Joel Brobecker <brobecker@gnat.com>
6890
6891 Committed by Andrew Cagney.
6892 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
6893 function calls.
6894
13326b4e
AC
68952004-04-29 Andrew Cagney <cagney@redhat.com>
6896
6897 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
6898 gdbarch, use mips_abi, update callers.
6899 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
6900 mips_abi_regsize, update callers.
6901 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
6902 mips_default_abi_regsize.
6903 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
6904 mips_default_abi_regsize.
6905
711cc5cd
AC
69062004-04-29 Andrew Cagney <cagney@redhat.com>
6907
1b13c4f6
AC
6908 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
6909 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
6910 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
6911 mips_default_abi_regsize.
6912 (mips_isa_regsize): Rename mips_regisze.
6913 * mipsnbsd-tdep.c: Update.
6914 * mips-linux-tdep.c: Update.
6915 * irix5-nat.c: Update.
6916 * mips-tdep.h (mips_isa_regsize): Update.
6917
711cc5cd
AC
6918 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
6919 Delete all disabled code.
6920 * gdb-events.h, gdb-events.c: Re-generate.
6921
e63bbc88
MK
69222004-04-19 Jerome Guitton <guitton@gnat.com>
6923 Mark Kettenis <kettenis@gnu.org>
6924
6925 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
6926 the function begins with a branch instruction.
6927
fd35795f
MK
69282004-04-29 Mark Kettenis <kettenis@gnu.org>
6929
6930 * i386-tdep.c: Fix spelling mistakes.
6931
c960c18f
AC
69322004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6933 Andrew Cagney <cagney@redhat.com>
6934
6935 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
6936 <sys/proc.h>.
6937 * acconfig.h: Provide default _KMEMUSER value.
6938 * config.in, configure: Re-generate.
6939 * NEWS: Mention fix.
6940
50306a9d
RC
69412004-04-24 Randolph Chung <tausq@debian.org>
6942
6943 * configure.host (hppa*-*-linux*): New target.
6944 * configure.tgt (hppa*-*-linux*): Likewise.
6945 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
6946 gdbarch_init_osabi() call earlier so that osabi-specific frame
6947 unwinders can be registered first.
6948 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
6949 hppa-linux-nat.c.
6950 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
6951 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
6952 * config/pa/linux.mh: New file.
6953 * config/pa/linux.mt: New file.
6954 * config/pa/nm-linux.h: New file.
6955 * config/pa/xm-linux.h: New file.
6956 * hppa-linux-nat.c: New file.
6957 * hppa-linux-tdep.c: New file.
6958
2a6228ef
RC
69592004-04-28 Randolph Chung <tausq@debian.org>
6960
6961 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
6962 return values.
6963 (hppa32_push_dummy_call): Fix small struct and floating point argument
6964 passing, and make sure the stack frame is properly aligned.
6965
82c10df6
AC
69662004-04-28 Andrew Cagney <cagney@redhat.com>
6967
d762c46a
AC
6968 * stack.c (print_stack_frame): Fix description.
6969
82c10df6
AC
6970 * NEWS: Mention gdb/gdbserver/configure execute permission
6971 changed. PR server/519.
6972
0faf0076
AC
69732004-04-28 Andrew Cagney <cagney@redhat.com>
6974
6975 * stack.c (print_stack_frame_stub): Delete declaration.
6976 (struct print_stack_frame_args, print_stack_frame)
6977 (print_frame_info, print_frame): Replace "source" with print what.
6978 Replace "print" with "print_level". Replace "args" with
6979 "print_args".
6980 * frame.h (show_and_print_stack_frame, print_stack_frame)
6981 (print_frame_info): Update declarations.
6982 * stack.c (select_and_print_frame, frame_command)
6983 (current_frame_command, up_command, down_command): Update calls -
6984 use get_selected_frame, pass "enum print_what" for source, do not
6985 call frame_relative_level.
6986 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
6987 * remote-rdp.c (remote_rdp_open): Ditto.
6988 * remote-mips.c (common_open): Ditto.
6989 * remote-e7000.c (e7000_start_remote): Ditto.
6990 * ocd.c (ocd_start_remote): Ditto.
6991 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
6992 * infrun.c (normal_stop): Ditto.
6993 * inflow.c (kill_command): Ditto.
6994 * infcmd.c (finish_command): Ditto.
6995 * corelow.c (core_open): Ditto.
6996 * tracepoint.c (finish_tfind_command): Ditto.
6997 * thread.c (info_threads_command, info_threads_command)
6998 (restore_current_thread, do_captured_thread_select): Ditto.
6999 * ada-tasks.c (task_command): Ditto.
7000
f4c5303c
OF
70012004-04-26 Orjan Friberg <orjanf@axis.com>
7002
7003 * frame.c: Include "observer.h".
7004 (frame_observer_target_changed): New function.
7005 (_initialize_frame): Attach target_changed observer.
7006 * regcache.c: Include "observer.h".
7007 (regcache_observer_target_changed): New function.
7008 (_initialize_regcache): Attach target_changed observer.
7009 * valops.c: Include "observer.h".
7010 (value_assign): Notify target_changed event when modifying register.
7011 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
7012
7270d8f2
OF
70132004-04-26 Orjan Friberg <orjanf@axis.com>
7014
7015 From Paul Koning <pkoning@equallogic.com>:
7016 * breakpoint.c (free_valchain): New function.
7017 (insert_bp_location, delete_breakpoint): Use free_valchain.
7018 (remove_breakpoint): Do not remove the valchain.
7019 (bpstat_stop_status): If not stopped by watchpoint, skip
7020 watchpoints when generating stop status list.
7021 * infrun.c (handle_inferior_event): Make
7022 stepped_after_stopped_by_watchpoint a global variable.
7023 * remote.c (remote_stopped_data_address): Return watch data
7024 address rather than zero if stepped_after_stopped_by_watchpoint is
7025 set.
7026
02d62932
MC
70272004-04-25 Michael Chastain <mec.gnu@mindspring.com>
7028
7029 Fix PR gdb/1626.
7030 * configure.in: Check for curses after termcap.
7031 On osf5.*, do not check for ncurses.
7032 * configure: Regenerate.
7033
3e9a183c
MK
70342004-04-25 Mark Kettenis <kettenis@gnu.org>
7035
c79ac407
MK
7036 * ppcobsd-nat.c: Include "ppc-tdep.h".
7037 * Makefile.in (ppcobsd-nat.o): Update dependencies.
7038
3e9a183c
MK
7039 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
7040 Fixes PR tdep/1623 and PR tdep/1624.
7041
38cc9c28
MC
70422004-04-24 Michael Chastain <mec.gnu@mindspring.com>
7043
7044 * xmodem.h, xmodem.c: Remove files.
7045 * Makefile.in: Remove references to xmodem.h, xmodem.c.
7046
7f07c5b6
RC
70472004-04-23 Randolph Chung <tausq@debian.org>
7048
7049 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
7050 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
7051 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
7052 for handling stackless frames.
7053 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
7054
9f7194c3
RC
70552004-04-23 Randolph Chung <tausq@debian.org>
7056
7057 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
7058 starts at a pc before the frame is created.
7059
dcff6009
JB
70602004-04-23 Joel Brobecker <brobecker@gnat.com>
7061
7062 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
7063
40711ff1 70642004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
7065
7066 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
7067 use convert_typed_floating to get the appropriate format.
7068
abc485a1
RC
70692004-04-22 Randolph Chung <tausq@debian.org>
7070
7071 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
7072 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
7073 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
7074 (hppa_sign_extend): Add prototype.
7075 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
7076 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
7077 (sign_extend): Rename with hppa_ prefix and make non-static. Other
7078 hppa targets will also use these functions.
7079 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
7080 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
7081 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
7082 (hppa_gdbarch_init): Remove gdbarch setting of
7083 skip_trampoline_code, in_solib_call_trampoline and
7084 in_solib_return_trampoline.
7085 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
7086 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
7087 hppa_in_solib_call_trampoline.
7088 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
7089 Moved from hppa-tdep.c.
7090 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
7091 in_solib_call_trampoline and in_solib_return_trampoline.
7092
369aa520
RC
70932004-04-22 Randolph Chung <tausq@debian.org>
7094
7095 * hppa-tdep.c (hppa_debug): New variable.
7096 (find_unwind_entry, hppa_frame_cache): Add debug output.
7097 (_initialize_hppa_tdep): Add command to set debug flag.
7098
476be15e
AC
70992004-04-22 Andrew Cagney <cagney@redhat.com>
7100
7101 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
7102 "trad-frame.h".
7103 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
7104 signal trampoline unwinder.
7105 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
7106
d195bc9f
MK
71072004-04-22 Mark Kettenis <kettenis@gnu.org>
7108
7109 Add OpenBSD/powerpc support.
7110 * NEWS (New native configurations): Mention OpenBSD/powerpc.
7111 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
7112 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
7113 (ppc_collect_fpregset): New prototypes.
7114 * ppcobsd-nat.c: New file.
7115 * ppcobsd-tdep.c: New file.
7116 * ppcobsd-tdep.h: New file.
7117 * rs6000-tdep.c: Include "regset.h".
7118 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
7119 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
7120 New functions.
7121 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
7122 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
7123 (rs6000-tdep.o): Update dependencies.
7124 * configure.host: Add powerpc-*-openbsd.
7125 * configure.tgt: Add powerpc-*-openbsd.
7126 * config/powerpc/obsd.mh: New file.
7127 * config/powerpc/nm-obsd.h: New file.
7128 * config/powerpc/obsd.mt: New file.
7129
6f14cc33
AC
71302004-04-22 Andrew Cagney <cagney@redhat.com>
7131
fcf29e5f
AC
7132 * frame.h (show_frame_info): Delete declaration.
7133
6f14cc33
AC
7134 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
7135 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
7136 * m32r-tdep.c (m32r_frame_this_id): Ditto.
7137 * frv-tdep.c (frv_frame_this_id): Ditto.
7138 * avr-tdep.c (avr_frame_this_id): Ditto.
7139
e5786a5c
EZ
71402004-04-22 Elena Zannoni <ezannoni@redhat.com>
7141
7142 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
7143
26e75e5c
JB
71442004-04-22 Jim Blandy <jimb@redhat.com>
7145
7146 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
7147 register number zero.
7148
d8d65dd3
MS
71492004-04-21 Michael Snyder <msnyder@redhat.com>
7150
7151 * mips-tdep.c (heuristic_proc_start):
7152 Warning() already prefixes "Warning: ".
7153
9a4105ab
AC
71542004-04-21 Andrew Cagney <cagney@redhat.com>
7155
7156 * annotate.h (deprecated_annotate_starting_hook)
7157 (deprecated_annotate_stopped_hook)
7158 (deprecated_annotate_exited_hook)
7159 (deprecated_annotate_signal_hook)
7160 (deprecated_annotate_signalled_hook): Deprecate.
7161 * tracepoint.h (deprecated_create_tracepoint_hook)
7162 (deprecated_delete_tracepoint_hook)
7163 (deprecated_modify_tracepoint_hook)
7164 (deprecated_trace_find_hook)
7165 (deprecated_trace_start_stop_hook): Deprecate.
7166 * target.h (deprecated_target_new_objfile_hook): Deprecate.
7167 * remote.h (deprecated_target_resume_hook)
7168 (deprecated_target_wait_loop_hook): Deprecate.
7169 * gdbcore.h (deprecated_exec_file_display_hook)
7170 (deprecated_file_changed_hook): Deprecate.
7171 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
7172 * defs.h (deprecated_modify_breakpoint_hook)
7173 (deprecated_command_loop_hook, deprecated_show_load_progress)
7174 (deprecated_print_frame_info_listing_hook)
7175 (deprecated_query_hook, deprecated_warning_hook)
7176 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
7177 (deprecated_delete_breakpoint_hook)
7178 (deprecated_interactive_hook, deprecated_registers_changed_hook)
7179 (deprecated_readline_begin_hook, deprecated_readline_hook)
7180 (deprecated_readline_end_hook, deprecated_register_changed_hook)
7181 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
7182 (deprecated_context_hook, deprecated_target_wait_hook)
7183 (deprecated_attach_hook, deprecated_detach_hook)
7184 (deprecated_call_command_hook, deprecated_set_hook)
7185 (deprecated_error_hook, deprecated_error_begin_hook)
7186 (deprecated_ui_load_progress_hook): Deprecate.
7187 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
7188 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
7189 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
7190 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
7191 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
7192 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
7193 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
7194 * annotate.c, aix-thread.c: Update.
7195
62cf13cc
AC
71962004-04-21 Andrew Cagney <cagney@redhat.com>
7197
b2e31a62
AC
7198 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
7199 * vaxnbsd-tdep.c: Include "gdb_string.h".
7200
62cf13cc
AC
7201 * symfile.c (symbol_file_add_from_memory): #if 0 function.
7202 (add_symbol_file_from_memory_command): #if 0 function body, call
7203 error instead.
7204
00e32a35
AC
72052004-04-21 Andrew Cagney <cagney@redhat.com>
7206
7207 * gdbcore.h: Update copyright.
7208 (deprecated_add_core_fns): Rename add_core_fns.
7209 * win32-nat.c (_initialize_core_win32): Update.
7210 * sun3-nat.c (_initialize_core_sun3): Update.
7211 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
7212 * rs6000-nat.c (_initialize_core_rs6000): Update.
7213 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
7214 * nto-tdep.c (_initialize_nto_tdep): Update.
7215 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
7216 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
7217 * mips-nat.c (_initialize_core_mips): Update.
7218 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7219 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
7220 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
7221 * lynx-nat.c (_initialize_core_lynx): Update.
7222 * irix5-nat.c (_initialize_core_irix5): Update.
7223 * i386-interix-nat.c (_initialize_core_interix): Update.
7224 * cris-tdep.c (_initialize_cris_tdep): Update.
7225 * corelow.c (deprecated_add_core_fns): Update.
7226 * core-regset.c (_initialize_core_regset): Update.
7227 * core-aout.c (_initialize_core_aout): Update.
7228 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
7229 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
7230 * alpha-nat.c (_initialize_core_alpha): Update.
7231
13c7b1ca
JB
72322004-04-21 Jim Blandy <jimb@redhat.com>
7233
7234 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
7235
7b5a2f43
DJ
72362004-04-19 Daniel Jacobowitz <drow@mvista.com>
7237
7238 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
7239 Delete.
7240 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
7241 (read_attribute_value): Update calls to dwarf_alloc_block.
7242 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
7243 dwarf2_tmp_obstack.
7244 (psymtab_to_symtab_1): Likewise. Clean up using
7245 free_stack_comp_unit.
7246 (add_to_cu_func_list): Use the comp_unit_obstack.
7247
05cf31d1
JB
72482004-04-19 Joel Brobecker <brobecker@gnat.com>
7249
7250 * dwarf2read.c (dwarf2_flag_true_p): New function.
7251 (die_is_declaration): Use the function above. Add some comments.
7252
adf93a2f
MK
72532004-04-19 Mark Kettenis <kettenis@gnu.org>
7254
7255 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
7256 architecture when registering sparcnbsd_core_osabi_sniffer.
7257 Adjust comment.
7258
748894bf
MK
72592004-04-18 Mark Kettenis <kettenis@gnu.org>
7260
f622ad42
MK
7261 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
7262 return value.
7263
c4fc7f1b
MK
7264 Based on a patch from Brian Ford <ford@vss.fsi.com>:
7265 * i386-tdep.c: Correct register numbering scheme comments
7266 throughout.
7267 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
7268 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
7269 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
7270 (i386_gdb_arch_init): Likewise.
7271
b4ead1bd
MK
7272 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
7273 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
7274 ppcnbsd-tdep.o.
7275
748894bf
MK
7276 * m68k-tdep.h: Tweak comments.
7277 * m68k-tdep.c: Tweak comment.
7278
fdd72f95
RC
72792004-04-17 Randolph Chung <tausq@debian.org>
7280
7281 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
7282 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
7283 (hppa_hpux_som_init_abi): Set is_elf to 0.
7284 (hppa_hpux_elf_init_abi): Set is_elf to 1.
7285 * hppa-tdep.c (low_text_segment_address): Remove global.
7286 (record_text_segment_lowaddr): Pass in low address as parameter. Use
7287 section offset to calculate segment address.
7288 (internalize_unwinds): Define low_text_segment_address as local and
7289 pass to record_text_segment_lowaddr for ELF targets.
7290 (hppa_gdbarch_init): Zero fill tdep structure.
7291 (hppa_dump_tdep): Print tdep structure.
7292 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
7293
0f8d9d59
RC
72942004-04-17 Randolph Chung <tausq@debian.org>
7295
7296 * hppa-tdep.c (hppa_pseudo_register_read): Define.
7297 (hppa_gdbarch_init): Set pseudo_register_read.
7298 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
7299 * regcache.c (supply_register): Remove check for
7300 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
7301
7c46b9fb
RC
73022004-04-17 Randolph Chung <tausq@debian.org>
7303
7304 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
7305 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
7306 (hpread_adjust_stack_address): Move to hpread.c.
7307 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7308 obj_private_struct): Move from tm-hppa.h.
7309 * hpread.c (hppa-tdep.h): Include.
7310 (hpread_adjust_stack_address): Move from hppa-tdep.c.
7311 (hpread_read_function_type, hpread_read_doc_function_type)
7312 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
7313 directly.
7314 * pa64solib.c (hppa-tdep.h): Include.
7315 * somsolib.c (hppa-tdep.h): Include.
7316 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
7317 inferior_status): Remove unused forward declarations.
7318 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
7319 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7320 obj_private_struct): Move to hppa-tdep.h.
7321 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
7322
8d153463
RC
73232004-04-17 Randolph Chung <tausq@debian.org>
7324
7325 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
7326 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
7327 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
7328 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
7329 Remove forward declaration and make static.
7330 (hppa_reg_struct_has_addr): Remove.
7331
350c2e5b
JB
73322004-04-16 Joel Brobecker <brobecker@gnat.com>
7333
7334 * observer.sh: Move comments in sed command to first column.
7335
bbde78fa
JM
73362004-04-16 Jason Molenda (jmolenda@apple.com)
7337
7338 * frame.c: Minor typeo corrections in comments.
7339
e0270fd9
JB
73402004-04-16 Joel Brobecker <brobecker@gnat.com>
7341
7342 * observer.c (observer_test_first_notification_function): Update
7343 function profile.
7344 (observer_test_second_notification_function): Likewise.
7345 (observer_test_third_notification_function): Likewise.
7346
3d049254
MK
73472004-04-16 Mark Kettenis <kettenis@gnu.org>
7348
7349 From Brian Ford <ford@vss.fsi.com>:
7350 * i386-tdep.c (i386_coff_init_abi): New function.
7351 * i386-tdep.h (i386_coff_init_abi): New prototype.
7352 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
7353 register number translation functions for DWARF and DWARF 2.
7354
7867684d
JB
73552004-04-16 Joel Brobecker <brobecker@gnat.com>
7356
7357 * dwarf2read.c: Back out my previous change, it was incorrect.
7358
72bf9492
DJ
73592004-04-16 Daniel Jacobowitz <drow@mvista.com>
7360
7361 * dwarf2read.c: Include "hashtab.h".
7362 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
7363 has_namespace_info.
7364 (struct partial_die_info): Add comments. Use bitfields to reduce
7365 memory footprint. Add scope, scope_set, has_specification,
7366 spec_offset, die_parent, die_child, and die_sibling.
7367 (peek_die_abbrev): Add prototype.
7368 (partial_read_comp_unit_head): New function, broken out from
7369 dwarf2_build_psymtabs_hard.
7370 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
7371 Use partial_read_comp_unit_head. Initialize the CU and
7372 comp_unit_obstack. Update calls to read_partial_die and
7373 scan_partial_symbols. Use free_stack_comp_unit and
7374 load_partial_dies.
7375 (scan_partial_symbols): Change PDI to a pointer. Use the child and
7376 sibling pointers to walk partial DIEs. Call fixup_partial_die.
7377 Update calls to helper functions. Remove NAMESPACE argument.
7378 Update comments.
7379 (partial_die_parent_scope, partial_die_full_name): New functions.
7380 (add_partial_symbol): Remove namespace argument. Update call to
7381 pdi_needs_namespace. Use partial_die_full_name. Handle
7382 DW_TAG_namespace. Check has_namespace_info flag.
7383 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
7384 tag. Handle namespaces.
7385 (add_partial_namespace, add_partial_enumeration): Simplify.
7386 (guess_structure_name): New function, derived from
7387 add_partial_structure.
7388 (add_partial_structure): Remove.
7389 (determine_class_name): Update comment.
7390 (dwarf2_read_abbrevs): Set has_namespace_info flag.
7391 (is_type_tag_for_partial, load_partial_dies): New functions.
7392 (read_partial_die): Pass abbrev and abbrev_len as arguments.
7393 Record specifications instead of following them immediately.
7394 (find_partial_die_in_comp_unit, find_partial_die)
7395 (fixup_partial_die, free_stack_comp_unit)
7396 (hashtab_obstack_allocate, dummy_obstack_deallocate)
7397 (partial_die_hash, partial_die_eq): New functions.
7398 * Makefile.in (hashtab_h): Define.
7399 (dwarf2read.o): Update dependencies.
7400 (observer_inc, observer_h): Move to the correct section.
7401
fdc860a3
JB
74022004-04-15 Joel Brobecker <brobecker@gnat.com>
7403
7404 * dwarf2read.c (dwarf2_attribute_true_p): New function.
7405 (die_is_declaration): Use the function above. Add comment.
7406
dc718098
JB
74072004-04-15 Joel Brobecker <brobecker@gnat.com>
7408
7409 * dwarf2read.c (read_structure_scope): Identify stub types
7410 using die_is_declaration() only.
7411
8718a420
RM
74122004-04-15 Roland McGrath <roland@redhat.com>
7413
7414 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
7415 argument instead of NAME.
7416 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
7417 in call to symbol_file_add_with_addrs_or_offsets.
7418 (build_addr_info): New function, helper for ...
7419 (symbol_file_add_from_memory): New function.
7420 (add_symbol_file_from_memory_command): New function using that.
7421 (_initialize_symfile): Register it for add-symbol-file-from-memory.
7422 (pre_add_symbol_hook): Add const to argument type.
7423 * symfile.h (symbol_file_add_from_memory): Declare it.
7424
8b910bab
MK
74252004-04-15 Mark Kettenis <kettenis@gnu.org>
7426
9f076e7a
MK
7427 * NEWS (New native configurations): Mention OpenBSD/vax.
7428 * configure.host: Add vax-*-openbsd*.
7429 * config/vax/obsd.mh: New file.
7430 * config/vax/nm-obsd.h: New file.
7431
8b910bab
MK
7432 * vax-tdep.c: Include "regset.h".
7433 (vax_supply_gregset): New function.
7434 (vax_gregset): New variable.
7435 (vax_regset_from_core_section): New function.
7436 (vax_gdbarch_init): Set regset_from_core_section.
7437 * Makefile.in (vax-tdep.o): Update dependencies.
7438
7a464420
AC
74392004-04-15 Andrew Cagney <cagney@redhat.com>
7440
7441 * observer.c (normal_stop_subject, observer_notify_normal_stop)
7442 (observer_normal_stop_notification_stub)
7443 (observer_attach_normal_stop, observer_detach_normal_stop):
7444 Delete, replaced by #include "observer.inc".
7445 * infrun.c (normal_stop): Pass "stop_bpstat" to
7446 observer_notify_normal_stop.
7447 * Makefile.in (observer_inc): Define.
7448 (observer.o): Update dependencies.
7449 (observer.h, observer.inc): New rules.
7450 * observer.h: Delete file.
7451 * observer.sh: New file.
7452
e36ad527
MK
74532004-04-15 Mark Kettenis <kettenis@gnu.org>
7454
7455 * vax-tdep.c (vax_frame_cache): Fix typo.
7456
67b441e1
MK
74572004-04-14 Mark Kettenis <kettenis@gnu.org>
7458
6f606e1c
MK
7459 * NEWS (New native configurations): Mention NetBSD/vax.
7460 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
7461 * config/vax/nbsdelf.mh: New file.
7462 * config/vax/nbsdaout.mh: New file.
7463 * config/vax/nm-nbsd.h: New file.
7464 * config/vax/nm-nbsdaout.h: New file.
7465
9c5519a5
MK
7466 * vaxnbsd-tdep.c: New file.
7467 * Makefile.in (vaxnbsd-tdep.o): New dependency.
7468 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
7469 * config/vax/nbsd.mt: New file.
7470 * config/vax/tm-nbsd.h: New file.
7471
4844a614
MK
7472 * Makefile.in (vaxbsd-nat.o): New dependency.
7473
67b441e1
MK
7474 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
7475 * vax-tdep.c (vax_store_arguments): Remove struct_return and
7476 struct_addr arguments. Don't push return value address.
7477 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
7478 arguments to vax_store_arguments. Store return value address in
7479 R1.
7480 (vax_store_struct_return, vax_extract_return_value)
7481 (vax_store_return_value): Remove functions.
7482 (vax_return_value): New function.
7483 (vax_gdbarch_init): Set return value. Don't set
7484 deprecated_store_struct_return, deprecated_extract_struct_return
7485 and deprecated_store_return_value.
7486
6672f2ae
AS
74872004-04-14 Andreas Schwab <schwab@suse.de>
7488
7489 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
7490 value buffer.
7491 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
7492
7346c184
MK
74932004-04-14 Mark Kettenis <kettenis@gnu.org>
7494
7495 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
7496 (vax_unwind_dummy_id): New functions.
7497 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
7498 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
7499 variables.
7500 (vax_fix_call_dummy): Remove function.
7501 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
7502 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
7503 call_dummy_location, deprecated_call_dummy_words,
7504 deprecated_sizeof_call_dummy_words,
7505 deprecated_call_dummy_breakpoint_offset,
7506 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
7507 and deprecated_dummy_write_sp.
7508
58e23df4
DC
75092004-04-13 David Carlton <carlton@kealia.com>
7510
7511 * MAINTAINERS: Move myself to "paper trail" section.
7512
5e6b39ff
MK
75132004-04-12 Mark Kettenis <kettenis@gnu.org>
7514
7def7fef
MK
7515 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
7516 "trad-frame.h".
7517 (vax_frame_init_saved_regs): Remove function.
7518 (vax_sigtramp_saved_pc): Remove function.
7519 (vax_frame_saved_pc): Remove function.
7520 (vax_frame_args_address): Remove function.
7521 (vax_frame_num_args): Rewrite.
7522 (vax_frame_chain): Remove function.
7523 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
7524 VAX_FP_REGNUM.
7525 (vax_pop_frame): Likewise.
7526 (vax_saved_pc_after_call): Remove function.
7527 (struct vax_frame_cache): New structure.
7528 (vax_frame_cache): New function.
7529 (vax_frame_this_id): New function.
7530 (vax_frame_prev_register): New function.
7531 (vax_frame_unwind): New variable.
7532 (vax_frame_sniffer): New function.
7533 (vax_frame_base_address): New function.
7534 (vax_frame_args_address): New function.
7535 (vax_frame_base): New variable.
7536 (vax_unwind_pc): New function.
7537 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
7538 deprecated_fp_regnum, deprecated_saved_pc_after_call,
7539 deprecated_frame_chain, deprecated_frame_saved_pc,
7540 deprecated_frame_args_address and
7541 deprecated_frame_init_saved_regs.
7542 * Makefile.in (vax-tdep.o): Update dependencies.
7543
53284fc1
MK
7544 * vaxbsd-nat.c: New file.
7545
5e6b39ff
MK
7546 * vax-tdep.h: Update copyright year. Adjust comments.
7547 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
7548 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
7549 (vax_regnum): New enum. Replacing...
7550 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
7551 (VAX_PS_REGNUM): ... these removed macros.
7552 * vax-tdep.c (vax_register_name): Remove prototype.
7553 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
7554 (vax_register_byte, vax_register_raw_size,
7555 vax_register_virtual_size, vax_register_virtual_type): Remove
7556 functions.
7557 (vax_register_type): New function.
7558 (vax_breakpoint_from_pc): Reorganize.
7559 (vax_gdbarch_init): Set register_type. Don't set
7560 deprecated_register_size, deprecated_register_bytes,
7561 deprecated_register_byte, deprecated_register_raw_size,
7562 deprecated_max_register_raw_size,
7563 deprecated_register_virtual_size,
7564 deprecated_max_register_virtual_size and
7565 deprecated_register_virtual_type. Add comment on stack direction.
7566
e9c71e9f
MK
75672004-04-11 Mark Kettenis <kettenis@gnu.org>
7568
7569 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
7570 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 7571 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 7572
d46f1176 75732004-04-10 Randolph Chung <tausq@debian.org>
8718a420 7574
d46f1176
RC
7575 * MAINTAINERS (write after approval): Add myself.
7576
a2a84a72
RC
75772004-04-07 Randolph Chung <tausq@debian.org>
7578
7579 * hppa-tdep.c (hppa_inner_than): Remove.
7580 (is_pa_2): Remove unused static variable.
8718a420 7581 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 7582
e85c3284
PH
75832004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
7584
7585 * language.h (language_defn): Add new la_post_parser field.
7586 * parser-defs.h (null_post_parser): New declaration (default for
7587 la_post_parser).
8718a420 7588
e85c3284
PH
7589 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
7590 insert call to that function.
7591 (parse_exp_in_context): New function, including code formerly in
8718a420 7592 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
7593 prefixification.
7594 (parse_expression_in_context): New exported function.
7595 (null_post_parser): New definition.
7596 * expression.h (parse_expression_in_context): Add declaration.
8718a420 7597
e85c3284
PH
7598 * p-lang.c (pascal_language_defn): Add trivial post-parser.
7599 * c-lang.c (c_language_defn): Ditto.
7600 (cplus_language_defn): Ditto.
7601 (asm_language_defn): Ditto.
7602 (minimal_language_defn): Ditto.
7603 * f-lang.c (f_language_defn): Ditto.
7604 * jv-lang.c (java_language_defn): Ditto.
7605 * language.c (unknown_language_defn): Ditto.
7606 (auto_language_defn): Ditto.
7607 (local_language_defn): Ditto.
7608 * m2-lang.c (m2_language_defn): Ditto.
7609 * scm-lang.c (scm_language_defn): Ditto.
7610 * obj-lang.c (objc_language_defn): Ditto.
8718a420 7611
d9f8c85b
MK
76122004-04-10 Mark Kettenis <kettenis@gnu.org>
7613
fa34704a
MK
7614 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
7615 (amd64nbsd_mcontext_addr): New function.
7616 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
7617 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
7618 with amd64nbsd_r_reg_offset, instead of building it on the fly.
7619
403e1656
MK
7620 * corelow.c (core_xfer_partial): Fix coding standards violation.
7621 Add support for TARGET_OBJECT_WCOOKIE.
7622
a57e5a95
MK
7623 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
7624 deprecated_pc_in_sigtramp.
7625 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
7626 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
7627 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
7628 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7629 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
7630 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7631 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
7632
377d9ebd
MK
7633 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
7634 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
7635 Fix typo.
7636
f0ef85a5
MK
7637 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
7638 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
7639 (amd64_collect_fxsave): Likewise.
7640
d9f8c85b
MK
7641 * i386-sol2-tdep.c: Include "gdb_string.h".
7642 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
7643 name.
7644 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7645
75f501b5
MK
76462004-04-10 Mark Kettenis <kettenis@gnu.org>
7647
7648 * i386-sol2-tdep.c: Include "solib-svr4.h".
7649 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7650 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7651 * config/i386/tm-i386sol2.h: Include :solib.h".
7652 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
7653 solib-svr4.o and solib-legacy.o.
7654 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
7655 solib-svr4.o.
7656
b31bc724
MK
76572004-04-09 Mark Kettenis <kettenis@gnu.org>
7658
18bbbd9e
MK
7659 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
7660 whether a register is supplied by PTRACE_GETFPREGS.
7661 (store_inferior_registers): Likewise.
7662 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
7663 whether a register is supplied by PT_GETFPREGS.
7664 (store_inferior_registers): Likewise.
7665
3c30bf1b
MK
7666 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
7667 * config/i386/linux64.mt (TDEPFILES): Likewise.
7668
a4194092
MK
7669 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
7670
911bc6ee
MK
7671 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
7672 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
7673 the program counter is in the range specified by `struct
7674 gdbarch_tdep'.
7675 * amd64-linux-tdep.c: Include "symtab.h".
7676 (amd64_linux_pc_in_sigtramp): Remove function.
7677 (amd64_linux_sigtramp_p): New function.
7678 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
7679 deprecated_pc_in_sigtramp.
7680 * amd64nbsd-tdep.c: Include "symtab.h".
7681 (amd64nbsd_sigtramp_p): New function.
7682 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
7683 deprecated_pc_in_sigtramp.
7684 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
7685 few comments.
7686 (amd64obsd_pc_in_sigtramp): Remove function.
7687 (amd64obsd_sigtramp_p): New function.
7688 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
7689 deprecated_pc_in_sigtramp.
7690 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
7691 (i386bsd_pc_ins_sigtramp): Remove prototype.
7692 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
7693 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
7694 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
7695 the program counter is in the range specified by `struct
7696 gdbarch_tdep'.
7697 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
7698 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
7699 (i386_go32_pc_in_sigtramp): Remove function.
7700 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
7701 Initialize TDEP->sigtramp_p.
7702 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
7703 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
7704 deprecated_pc_in_sigtramp.
7705 * i386-linux-tdep.c: Adjust comments.
7706 (i386_linux_pc_in_sigtramp): Remove function.
7707 (i386_linux_sigtramp_p): New function.
7708 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
7709 deprecated_pc_in_sigtramp.
7710 * i386-nto-tdep.c: Update copyright year.
7711 (i386nto_pc_in_sigtramp): Remove function.
7712 (i386nto_sigtramp_p): New function.
7713 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
7714 SP_REGNUM.
7715 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
7716 deprecated_pc_in_sigtramp.
7717 * i386-sol2-tdep.c: Update copyright year.
7718 (i386_sol2_pc_in_sigtramp): Remove function.
7719 (i386_sol2_sigtramp_p): New function.
7720 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
7721 deprecated_pc_in_sigtramp.
7722 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
7723 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
7724 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7725 deprecated_sigtramp_start and deprecated_sigtramp_end.
7726 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
7727 (i386nbsd_pc_in_sigtramp): Remove function.
7728 (i386nbsd_sigtramp_p): New function.
7729 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7730 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
7731 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
7732 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
7733 (i386obsd_pc_in_sigtramp): Remove function.
7734 (i386obsd_sigtramp_p): New function.
7735 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
7736 functions.
7737 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7738 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
7739 TDEP->sigtramp_p.
7740 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
7741 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
7742 dependencies.
7743
e083e6ec
MK
7744 * config/i386/i386aout.mt: Remove file.
7745
bd153b94
MK
7746 * configure.tgt: Remove i[34567]86-*-go32*,
7747 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
7748 and i[34567]86-*-isc*. Set gdb_target to i386 for
7749 i[34567]86-*-netware* and i[34567]86-*-*.
7750 * config/i386/i386.mt: New file.
7751 * config/i386/embed.mt: Remove file.
7752 * config/i386/go32.mt: Remove file.
7753 * config/i386/i386nw.mt: Remove file.
7754 * config/i386/i386v.mt: Remove file.
7755 * config/i386/tm-go32.h: Remove file.
7756
4a1bcc8c
MK
7757 * tui/tui-hooks.c: Include "readline/readline.h" after
7758 "gdb_curses.h" instead of before.
7759 * tui/tui-io.c: Likewise.
7760
f9a79064
MK
7761 * tui/tui.c: Fix typo in comment.
7762
b31bc724
MK
7763 * sparc64-tdep.c (sparc_address_from_register): Remove function.
7764
f83f82bc
AC
77652004-04-08 Andrew Cagney <cagney@redhat.com>
7766
7767 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
7768 (deprecated_exception_support_initialized): Declare.
8718a420 7769 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
7770 (initialize_hp_cxx_exception_support)
7771 (child_enable_exception_callback): Update.
7772 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
7773 (deprecated_exception_support_initialized): Rename
7774 deprecated_exception_catchpoints_are_fragile and
7775 deprecated_exception_support_initialized.
7776 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
7777
7778 * symtab.c (deprecated_hp_som_som_object_present): Rename
7779 hp_som_som_object_present.
7780 * symtab.h (deprecated_hp_som_som_object_present): Declare.
7781 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
7782 Update. Delete extern declaration.
7783 * valops.c (hp_som_som_object_present): Ditto.
8718a420 7784 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
7785 (parse_nested_classes_for_hpacc): Ditto.
7786 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 7787 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
7788 (initialize_hp_cxx_exception_support): Ditto.
7789 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 7790 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 7791 (cp_print_class_method): Ditto.
8718a420 7792 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
7793 (c_type_print_base): Ditto.
7794 * c-exp.y (hp_som_som_object_present): Ditto.
7795
fb2be677
AC
77962004-04-08 Andrew Cagney <cagney@redhat.com>
7797
7798 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
7799 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
7800 (frame_unwind_find_by_frame): Re-implement the unwind code so
7801 that it can both prepend and append sniffers. Replace
7802 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
7803 * tramp-frame.c (tramp_frame_append): Use
7804 frame_unwind_prepend_unwinder.
7805 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
7806 frame_unwind_register_unwinder.
7807 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
7808 tramp_frame_append.
7809 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 7810 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
7811 (mips_linux_init_abi): Update.
7812
67faf007
KB
78132004-04-08 Kevin Buettner <kevinb@redhat.com>
7814
7815 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
7816 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
7817 file support.
7818
8973ff21
KB
78192004-04-07 Kevin Buettner <kevinb@redhat.com>
7820
7821 * ia64-tdep.c (elf.h): Don't include.
7822 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
7823
4a0e2f88
JM
78242004-04-07 Jason Molenda (jmolenda@apple.com)
7825
7826 * frame.h: Typeo corrections in comments.
7827
9872ad24
JB
78282004-04-07 Jim Blandy <jimb@redhat.com>
7829
7830 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
7831 %esp and %ebp
7832
70b216c8
MK
78332004-04-07 Mark Kettenis <kettenis@gnu.org>
7834
11d5789c
MK
7835 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
7836 * config/sparc/linux64.mt (TDEPFILES): Likewise.
7837 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
7838 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
7839 and solib-legacy.o.
7840 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
7841 solib-svr4.o.
7842 * config/sparc/tm-sol2.h: Update copyright year. Include
7843 "solib.h".
7844
70b216c8
MK
7845 * sparc-sol2-tdep.c: Update copyright year. Include
7846 "solib-svr4.h".
7847 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7848 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
7849 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 7850 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
7851 dependencies.
7852
6339dc9e
AC
78532004-04-06 Andrew Cagney <cagney@redhat.com>
7854
7855 * infttrace.c: Include "infttrace.h".
7856 * infttrace.h: Include "target.h".
7857 * Makefile.in (infttrace_h): Update.
7858 (infttrace.o): Update.
8718a420 7859
93449403
AC
78602004-04-06 Andrew Cagney <cagney@redhat.com>
7861
6d518969
AC
7862 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
7863 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
7864 move extern declarations from here ...
7865 * infttrace.h: ... to here.
7866 * Makefile.in (hppah-nat.o): Update dependencies.
7867
85f4f2d8
AC
7868 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
7869 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 7870 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
7871 (hppa_breakpoint_from_pc): Delete.
7872
93449403
AC
7873 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
7874
71456ec6
AC
78752004-04-05 Andrew Cagney <cagney@redhat.com>
7876
7877 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
7878 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
7879 <sys/file.h>.
8718a420 7880
4c02c60c
AC
78812004-04-06 Randolph Chung <tausq@debian.org>
7882
7883 Committed by Andrew Cagney (mechanical change).
7884 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
7885 exception_catchpoints_are_fragile, find_stub_with_shl_get,
7886 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
7887 child_enable_exception_callback, current_ex_event,
7888 null_symtab_and_line, child_get_current_exception_event,
7889 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
7890 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
7891 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
7892 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
7893 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
7894 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
7895 Move hpux-specific definitions ...
7896 * hppa-hpux-tdep.c: ... to here.
7897
3a515653
AC
78982004-04-05 Andrew Cagney <cagney@redhat.com>
7899
7900 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
7901 skip_prologue_using_sal.
7902
c1730d02
AC
79032004-04-05 Andrew Cagney <cagney@redhat.com>
7904
7905 * config/i386/tm-i386.h: Delete file.
7906 * config/i386/tm-vxworks.h: Update copyright, do not include
7907 "tm-i386.h".
7908 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
7909 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
7910 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
7911 * config/i386/ncr3000.mt (TM_FILE): Delete.
7912 * config/i386/interix.mt (TM_FILE): Delete.
7913 * config/i386/i386v.mt (TM_FILE): Delete.
7914 * config/i386/i386nw.mt (TM_FILE): Delete.
7915 * config/i386/i386gnu.mt (TM_FILE): Delete.
7916 * config/i386/i386aout.mt (TM_FILE): Delete.
7917 * config/i386/embed.mt (TM_FILE): Delete.
7918
8b67aa36
KB
79192004-04-05 Kevin Buettner <kevinb@redhat.com>
7920
7921 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
7922 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
7923 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
7924 (accg7_regnum): New constants.
7925 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
7926 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
7927 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
7928 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
7929 for accg registers.
7930 (frv_register_sim_regno): Update spr_map[].
7931
3c7012f5
AC
79322004-04-04 Andrew Cagney <cagney@redhat.com>
7933
7934 * config/mips/xm-riscos.h: Delete.
7935 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
7936 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
7937 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
7938 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
7939 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
7940 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
7941 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
7942 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
7943 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
7944 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
7945 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
7946 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
7947 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
7948 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
7949 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
7950 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
7951 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
7952 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
7953 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
7954 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
7955 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
7956 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
7957 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
7958 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
7959 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
7960 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 7961
3c7012f5
AC
7962 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
7963 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
7964 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
7965 * configure.host: Remove m680[01]0-sun-sunos3*,
7966 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
7967 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
7968 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
7969 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
7970 mips-*-riscos*.
7971 * NEWS: Mention removed systems.
7972
99d16a21
AC
79732004-04-04 Andrew Cagney <cagney@redhat.com>
7974
7975 GDB 6.1 release created from 6.1 branch.
7976
6cdf9d98
AC
79772004-04-04 Andrew Cagney <cagney@redhat.com>
7978
98d346c3
AC
7979 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
7980 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
7981 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
7982
6cdf9d98
AC
7983 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
7984 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
7985 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
7986
859a326d
JB
79872004-04-03 Jim Blandy <jimb@redhat.com>
7988
7989 * MAINTAINERS: Chris Faylor has changed employers; add him to
7990 "paper trail" section, and update his E-mail address.
7991
b87178c3
AC
79922004-04-03 Andrew Cagney <cagney@redhat.com>
7993
4ea2acf0
AC
7994 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
7995 generic dummy frames.
7996 * dummy-frame.c: Update copyright.
7997 (dummy_frame_sniffer): Delete check for generic dummy frames.
7998
d0bd2d18 7999 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 8000 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
8001 (REG_PARM_STACK_SPACE): Delete.
8002 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
8003 Inline reference to REG_PARM_STACK_SPACE.
8004
b87178c3
AC
8005 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
8006 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8007 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
8008 (FRAME_BASE_BEFORE_SIGTRAMP)
8009 (hppa32_hpux_frame_base_before_sigtramp)
8010 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
8011 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
8012 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
8013 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8014 (FRAME_BASE_BEFORE_SIGTRAMP)
8015 (hppa64_hpux_frame_base_before_sigtramp)
8016 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
8017
43e2e1a0
AC
80182004-04-03 Andrew Cagney <cagney@redhat.com>
8019
8020 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
8021
ddc135a4
AC
80222004-04-02 Andrew Cagney <cagney@redhat.com>
8023
8024 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
8025 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
8026 * dummy-frame.h: Delete out-of-date comments.
8027 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
8028 * gdbarch.h, gdbarch.c: Re-generate.
8029
d15bfd3a 80302004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 8031
d15bfd3a
AC
8032 Committed by Andrew Cagney <cagney@redhat.com>.
8033 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
8034 into account an instruction saving a register if we have already
8035 seen an earlier instruction saving that same register.
8036
f04ceafa
AC
80372004-04-02 Andrew Cagney <cagney@redhat.com>
8038
08be3abd
AC
8039 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
8040 * gdbarch.h, gdbarch.c: Re-generate.
8041 * frame.c (legacy_get_prev_frame): Delete references to
8042 DEPRECATED_INIT_FRAME_PC_FIRST.
8043
f04ceafa
AC
8044 * infrun.c (pc_in_sigtramp): Delete function.
8045 (check_sigtramp2): Inline call to pc_in_sigtramp, use
8046 get_frame_type.
8047
08e69816
AC
80482004-04-02 Andrew Cagney <cagney@redhat.com>
8049
8050 * infrun.c (handle_step_into_function): Delete code conditional on
8051 legacy_frame_p.
8052 (handle_inferior_event, step_over_function): Ditto.
8053
adb54772
AC
80542004-04-02 Andrew Cagney <cagney@redhat.com>
8055
8056 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
8057 "previous frame inner to this frame" test.
8058
304396fb
AC
80592004-04-02 Andrew Cagney <cagney@redhat.com>
8060
8061 * frame.c (safe_frame_unwind_memory): New function.
8062 * frame.h (safe_frame_unwind_memory): Declare. Update description
8063 of /safe_/ methods.
8064 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
8065 "next_frame". Use safe_frame_unwind_memory.
8066 (tramp_frame_sniffer): Update call to tramp_frame_start.
8067
6502dd73
DJ
80682004-04-01 Daniel Jacobowitz <drow@mvista.com>
8069
8070 * dwarf2read.c (dwarf2_objfile_data_key): New.
8071 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
8072 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
8073 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
8074 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
8075 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
8076 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
8077 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
8078 Remove variables.
8079 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
8080 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
8081 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
8082 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
8083 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
8084 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
8085 Remove macros.
8086 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
8087 data.
8088 (dwarf2_locate_sections, dwarf2_build_psymtabs)
8089 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
8090 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
8091 (read_partial_die, read_full_die, read_indirect_string)
8092 (dwarf_decode_line_header, dwarf_decode_macros)
8093 (dwarf2_symbol_mark_computed): Remove use of removed macros.
8094 Update uses of removed variables.
8095 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
8096 of removed macros.
8097 (_initialize_dwarf2_read): New function.
8098 * symfile.h (dwarf2_has_info): Update prototype.
8099 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
8100 * elfread.c (elf_symfile_read): Likewise.
8101
408752b0
JB
81022004-04-01 Jim Blandy <jimb@redhat.com>
8103
9f744501
JB
8104 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
8105 function for register numbers on all the rs6000-derived targets.
8106 (rs6000_gdbarch_init): Don't register a separate
8107 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
8108 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
8109 variants.
8110
408752b0
JB
8111 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
8112 numbering.
8113
2de41bce
PH
81142004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
8115
8116 * valarith.c: Update copyright notice.
8117 (value_add): Handle range types.
8118 (value_sub): Ditto.
8119 (value_equal): Ditto.
8120 (value_less): Ditto.
8121 (value_neg): Ditto.
8122 (value_complement): Ditto.
8718a420 8123 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 8124 eliminiating unnecessary COERCE_ENUMs.
8718a420 8125
5613d8d3
AC
81262004-03-31 Andrew Cagney <cagney@redhat.com>
8127
8128 * frame.h (frame_unwind_id): Declare.
8129 * frame.c (frame_unwind_id): New function.
8130 (get_prev_frame_1): New function.
8131 (frame_debug_got_null_frame): New function.
8132 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
8133 code proper to prev_frame, update description.
8134 * infrun.c (step_over_function): Use frame_unwind_id.
8135
c4557624
JB
81362004-04-31 J. Brobecker <brobecker@gnat.com>
8137
8138 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
8139 (hppa64_push_dummy_call): Likewise.
8140
3e6bb910
JB
81412004-03-30 Jim Blandy <jimb@redhat.com>
8142
8143 From Ulrich Weigand:
8144 * utils.c (query): Do not use a va_list variable multiple times.
8145
a2f23071
DJ
81462004-03-29 Daniel Jacobowitz <drow@mvista.com>
8147
8148 * Makefile.in (linux_nat_h): Update dependencies.
8149 * configure.in: Check for <gnu/libc-version.h>.
8150 * configure: Regenerate.
8151 * config.in: Regenerate.
8152 * linux-nat.h: Include "target.h". Add waitstatus field to
8153 struct lwp_info.
8154 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
8155 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
8156 to.
8157 (lin_lwp_handle_extended): New function. Handle clone events.
8158 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
8159 thread exit events.
8160 (child_wait): Handle clone events.
8161 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
8162 * linux-nat.c (linux_enable_event_reporting): Turn on
8163 PTRACE_O_TRACECLONE.
8164 (linux_handle_extended_wait): Handle clone events.
8165 * thread-db.c: Include <gnu/libc-version.h>.
8166 (struct private_thread_info): Add dying flag.
8167 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
8168 higher.
8169 (attach_thread): Update comments. Handle dying threads.
8170 (detach_thread): Set the dying flag.
8171 (check_event): Always call attach_thread.
8172
8d5f9dcb
DJ
81732004-03-29 Daniel Jacobowitz <drow@mvista.com>
8174
8175 * mips-tdep.c (mips_pdr_data): New.
8176 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
8177 (_initialize_mips_tdep): Initialize mips_pdr_data.
8178
66337bb1
CV
81792004-03-29 Corinna Vinschen <vinschen@redhat.com>
8180
8181 * minsyms.c (install_minimal_symbols): Move dropping leading
8182 char from linkage name from here...
8183 (prim_record_minimal_symbol_and_info): ...to here. Simplify
8184 test for "__gnu_compiled*" symbols.
8185
e802b915
JB
81862004-03-28 Jim Blandy <jimb@redhat.com>
8187
8188 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
8189 registers to temp register r0 and byte stores as prologue
8190 instructions.
8191
72b56458
AC
81922004-03-28 Andrew Cagney <cagney@redhat.com>
8193
8194 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
8195 arm*-*-*.
8196
0bfbda3b
SC
81972004-03-28 Stephane Carrez <stcarrez@nerim.fr>
8198
8199 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
8200 and switch the layout to force a display of register window.
8201
5a7225ed
JB
82022004-02-26 J. Brobecker <brobecker@gnat.com>
8203
8204 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
8205 of the INTEGER class.
8206
81a07a45
JB
82072004-03-26 Jim Blandy <jimb@redhat.com>
8208
8209 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
8210 bytes long on PPC GNU/Linux.
8211
8c691c7a
DC
82122004-03-26 David Carlton <carlton@kealia.com>
8213
8214 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
8215
103a0089
AC
82162004-03-25 Andrew Cagney <cagney@redhat.com>
8217
8218 * PROBLEMS: Add general section titles, remove references to
8219 specific releases.
8220
7a5ea0d4
DJ
82212004-03-25 Daniel Jacobowitz <drow@mvista.com>
8222
8223 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
8224 INT_REGISTER_SIZE.
8225 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
8226 FP_REGISTER_VIRTUAL_SIZE.
8227 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
8228 of DEPRECATED_REGISTER_RAW_SIZE.
8229 (arm_register_type): Add gdbarch argument.
8230 (arm_register_raw_size, arm_register_virtual_size): Delete.
8231 (arm_register_byte, arm_extract_return_value)
8232 (arm_store_return_value, arm_get_longjmp_target): Update references
8233 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
8234 (arm_gdbarch_init): Likewise. Don't set
8235 deprecated_register_raw_size, deprecated_register_virtual_size,
8236 deprecated_max_register_raw_size,
8237 deprecated_max_register_virtual_size, or
8238 deprecated_max_register_virtual_type. Do set register_type.
8239 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
8240 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
8241 (FP_REGISTER_VIRTUAL_SIZE): Delete.
8242 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
8243 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
8244 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
8245 INT_REGISTER_SIZE.
8246 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
8247 (remote_rdp_store_register): Likewise.
8248
5792a79b
DJ
82492004-03-24 Daniel Jacobowitz <drow@mvista.com>
8250
8251 * Makefile.in (mips-linux-tdep.o): Update dependencies.
8252 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
8253 to after osabi initialization.
8254 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
8255 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
8256 functions.
8257 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
8258 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
8259 variables.
8260 (mips_linux_init_abi): Append signal trampoline unwinders.
8261
1196bfda
AC
82622004-03-24 Andrew Cagney <cagney@redhat.com>
8263
8264 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
8265 * tramp-frame.c: Include "gdb_assert.h".
8266 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
8267 correct sizeof.
8268 (tramp_frame_append): Validate the tramp frame's instructions.
8269 * Makefile.in (tramp-frame.o): Update dependencies.
8270
4be282b4
AC
82712004-03-23 Andrew Cagney <cagney@redhat.com>
8272
8273 * trad-frame.h (trad_frame_set_reg_addr): Declare.
8274
69aec09b
AC
82752004-03-23 Andrew Cagney <cagney@redhat.com>
8276
8277 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
8278 Nasser as past testsuite/lib/ (and other) maintainers.
8279
63ed89b4
DJ
82802004-03-23 Daniel Jacobowitz <drow@mvista.com>
8281
8282 * infcmd.c (attach_command): Reread symbols if we already have
8283 an exec file.
8284
f3b36427
AC
82852004-03-23 Andrew Cagney <cagney@redhat.com>
8286
8287 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
8288
aa2a3f87
AC
82892004-03-23 Andrew Cagney <cagney@redhat.com>
8290
8291 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
8292 * gdbarch.h, gdbarch.c: Re-generate.
8293 * i386obsd-tdep.c (i386obsd_init_abi): Update.
8294 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8295 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 8296 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 8297 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 8298 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
8299 (DEPRECATED_SIGTRAMP_START): Update.
8300 * blockframe.c (find_pc_sect_partial_function): Update.
8301 * arch-utils.c (legacy_pc_in_sigtramp): Update.
8302
00cac895
DJ
83032004-03-23 Daniel Jacobowitz <drow@mvista.com>
8304
8305 * remote.c (remote_open_1): Reopen the exec file and reread symbols
8306 if necessary.
8307
f561f026
AC
83082004-03-23 Andrew Cagney <cagney@redhat.com>
8309
8310 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
8311 predicate, deprecate.
8312 * gdbarch.h, gdbarch.c: Re-generate.
8313 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8314 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8315 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
8316 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8317 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
8318 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
8319 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
8320 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
8321 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
8322 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
8323 * blockframe.c (find_pc_partial_function): Update.
8324 * breakpoint.c (bpstat_what): Update.
8325 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
8326 * frv-linux-tdep.c (frv_linux_init_abi): Update.
8327 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
8328 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
8329 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8330 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8331 * i386-nto-tdep.c (i386nto_init_abi): Update.
8332 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
8333 * i386-tdep.c (i386_sigtramp_frame_sniffer)
8334 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
8335 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8336 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8337 * i386obsd-tdep.c (i386obsd_init_abi): Update.
8338 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
8339 * infrun.c (pc_in_sigtramp): Update.
8340 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
8341 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
8342 * mips-tdep.c (mips_gdbarch_init): Update.
8343 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
8344 * ppc-linux-tdep.c: Update comment.
8345 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
8346 * shnbsd-tdep.c (shnbsd_init_abi): Update.
8347 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
8348 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
8349 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
8350 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
8351 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
8352 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
8353 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
8354 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 8355
8050c72f
AC
83562004-03-23 Andrew Cagney <cagney@redhat.com>
8357
d2259dd3
AC
8358 * tramp-frame.h, tramp-frame.h: New files.
8359 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
8360 Update rules to include "tramp-frame.h" and "tramp-frame.c".
8361
8050c72f
AC
8362 * Makefile.in: Update all dependencies.
8363
0db9b4b7
AC
83642004-03-23 Andrew Cagney <cagney@redhat.com>
8365
8366 * Makefile.in (trad_frame_h): Add $(frame_h).
8367 * trad-frame.h: Update copyright. Include "frame.h".
8368 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
8369 (trad_frame_set_id, trad_frame_get_id): Declare.
8370 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
8371 * trad-frame.c: Update copyright.
8372 (struct trad_frame_cache): Define.
8373 (trad_frame_cache_zalloc): New function.
8374 (trad_frame_set_id, trad_frame_get_id): New functions.
8375 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 8376
8e645ae7
AC
83772004-03-22 Andrew Cagney <cagney@redhat.com>
8378
8379 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
8380 s390_pltstub_unwind_cache.
8381 (s390_stub_frame_unwind_cache): Rename
8382 s390_pltstub_frame_unwind_cache.
8383 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
8384 (s390_stub_frame_prev_register): Rename
8385 s390_pltstub_frame_prev_register.
8386 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
8387 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
8388
8389 From Ulrich Weigand:
8390 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
8391 pointer calls like PLT calls.
8392
34fcf120
DJ
83932004-03-22 Daniel Jacobowitz <drow@mvista.com>
8394
8395 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
8396 PC rather than the partial function start address. Use the start
8397 address to sanity check the found PDR.
8398
5b917078
DJ
83992004-03-22 Daniel Jacobowitz <drow@mvista.com>
8400
8401 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
8402 linux_handle_extended_wait.
8403
8adf9e78
AC
84042004-03-22 Andrew Cagney <cagney@redhat.com>
8405
c3122434
AC
8406 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
8407 function.
8408
8adf9e78
AC
8409 * frame.h (generic_pop_current_frame): Delete declaration.
8410 (deprecate_pop_dummy_frame): Deprecate
8411 generic_pop_dummy_frame.
8412 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
8413 (generic_pop_current_frame): Delete function.
8414 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
8415 generic_pop_current_frame.
8416 * v850-tdep.c (v850_pop_frame): Update.
8417 * mcore-tdep.c (mcore_pop_frame): Update.
8418 * sh64-tdep.c (sh64_pop_frame): Update.
8419 * h8300-tdep.c (h8300_pop_frame): Update.
8420
90ba813f
AC
84212004-03-22 Andrew Cagney <cagney@redhat.com>
8422
8423 * frame.h (deprecated_pc_in_call_dummy): Rename
8424 generic_pc_in_call_dummy.
8425 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
8426 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
8427 generic_pc_in_call_dummy.
8428 (pc_in_dummy_frame): Make static.
8429 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
8430 * gdbarch.h, gdbarch.c: Re-generate.
8431 * dummy-frame.c (dummy_frame_sniffer): Simplify.
8432 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
8433 (legacy_get_prev_frame): Ditto.
8434 * inferior.h: Delete reference to generic_pc_in_call_dummy in
8435 comment.
8718a420 8436
ca4bb888
AC
84372004-03-21 Andrew Cagney <cagney@redhat.com>
8438
244675f9
AC
8439 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
8440 declaration and out-of-date comment.
8441 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
8442 Delete function.
8443 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
8444 deprecated_pc_in_call_dummy.
8445
ca4bb888
AC
8446 * infrun.c (handle_inferior_event): For non legacy frames, use the
8447 frame ID and frame type to identify a signal trampoline. Update
8448 comments.
8449
1777c7b4
NW
84502004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
8451
8452 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
8453 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
8454
82417da5
AC
84552004-03-21 Andrew Cagney <cagney@redhat.com>
8456
8457 * frame-unwind.h: Update copyright.
8458 (struct frame_data): Add opaque declaration.
8459 (frame_sniffer_ftype): Declare.
8460 (struct frame_unwind): Add "unwind_data" and "sniffer".
8461 (frame_unwind_register_unwinder): Declare.
8462 (frame_unwind_find_by_frame): Add parameter "this_cache".
8463 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
8464 (legacy_get_prev_frame, legacy_get_prev_frame)
8465 (get_frame_type): Pass the prologue_cache to
8466 frame_unwind_find_by_frame.
8467 * frame-unwind.c (struct frame_unwind_table_entry): Add field
8468 "unwinder".
8469 (frame_unwind_register_unwinder): New function.
8470 (frame_unwind_find_by_frame): Handle an unwind sniffer.
8471
b2ba182e
PH
84722004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
8473
8474 * bcache.c (print_percentage): Use floating point to avoid
8475 incorrect results when portion*100 overflows.
8476
81332287
KB
84772004-03-19 Kevin Buettner <kevinb@redhat.com>
8478
8479 * ppc_tdep.h (ppc_linux_frame_saved_pc)
8480 (ppc_linux_init_extra_frame_info)
8481 (ppc_linux_frameless_function_invocation)
8482 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
8483 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
8484 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
8485 (rs6000_frame_chain): Delete declarations.
8486 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
8487 (ppc_linux_init_extra_frame_info)
8488 (ppc_linux_frameless_function_invocation)
8489 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
8490 (ppc_linux_init_abi): Remove registration of above deleted functions.
8491 * rs6000-tdep.c (rs6000_init_extra_frame_info)
8492 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
8493 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
8494 (rs6000_pop_frame, rs6000_frameless_function_invocation)
8495 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
8496 (rs6000_gdbarch_init): Remove registration of above deleted functions.
8497 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
8498 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
8499 frame management for all OSABIs.
8500
61a65099
KB
85012004-03-19 Andrew Cagney <cagney@redhat.com>
8502
8503 Committed by Kevin Buettner <kevinb@redhat.com>.
8504
8505 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
8506 Update copyright.
8507 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
8508 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
8509 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
8510 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
8511 unwinders. #ifdef legacy frame code.
8512 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8513 "frame-base.h".
8514 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
8515 (struct rs6000_frame_cache, rs6000_frame_cache)
8516 (rs6000_frame_this_id, rs6000_frame_prev_register)
8517 (rs6000_frame_sniffer, rs6000_frame_unwind)
8518 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
8519 (rs6000_frame_base): Implement a traditional frame unwinder.
8520 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
8521 frame unwinder.
8522
88f7da05
KB
85232004-03-19 Kevin Buettner <kevinb@redhat.com>
8524
8525 * breakpoint.c (adjust_breakpoint_address): Don't adjust
8526 breakpoint address for watchpoints or the catch eventpoints.
8527 Add new paramter ``bptype''. Adjust all callers.
8528
f826dce1
AC
85292004-03-19 Andrew Cagney <cagney@redhat.com>
8530
33cb8b0f
AC
8531 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
8532
f826dce1
AC
8533 * PROBLEMS: Delete note that ARM does not use frame code, problem
8534 fixed.
8535
43b1ab88
AC
85362004-03-18 Andrew Cagney <cagney@redhat.com>
8537
292ab034
AC
8538 * stack.c (return_command): Delete code wrapped in #ifdef
8539 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
8540
43b1ab88
AC
8541 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
8542
dbfe4626
AC
85432004-03-18 Andrew Cagney <cagney@redhat.com>
8544
8545 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
8546 DEPRECATED_IN_SIGTRAMP.
8547 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8548 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
8549 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8550 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8551 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8552 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8553 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8554 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8555 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
8556 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
8557
0cad6aec
AC
85582004-03-18 Andrew Cagney <cagney@redhat.com>
8559
8560 * frame-base.c: Update copyright. Include "gdb_obstack.h".
8561 (struct frame_base_table_entry): Define.
8562 (struct frame_base_table): Re-implement as a linked list.
8563 (frame_base_init): Re-implement.
8564 (frame_base_table): Delete function.
8565 (append_predicate): Delete function.
8566 (frame_base_append_sniffer): Update.
8567 (frame_base_set_default): Update.
8568 (frame_base_find_by_frame): Update.
8569 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
8570 * Makefile.in (frame-base.o): Update dependencies.
8571
9982c2e7
AC
85722004-03-17 Andrew Cagney <cagney@redhat.com>
8573
8574 * frame.c (legacy_get_prev_frame): Pass correct frame to
8575 frame_unwind_find_by_frame.
8576
8dfe8985
DC
85772004-03-17 David Carlton <carlton@kealia.com>
8578
8579 * NEWS: Mention C++ nested types and namespaces
8580
ed47347a
MC
85812004-03-16 Michael Chastain <mec.gnu@mindspring.com>
8582
8583 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
8584 and "Regressions since gdb 5.3.". Add known regressions since
8585 gdb 6.0.
8586
90aeadfc
DC
85872004-03-16 David Carlton <carlton@kealia.com>
8588
8589 * dwarf2read.c (process_structure_scope): Process children even
8590 when we're a declaration.
8591
73912b9b
AC
85922004-03-16 Andrew Cagney <cagney@redhat.com>
8593
8594 * symtab.h (find_pc_sect_partial_function): Delete declaration.
8595 * blockframe.c (find_pc_partial_function)
8596 (find_pc_sect_partial_function): Merge into a single
8597 find_pc_partial_function.
8598
283accbc
MK
85992004-03-16 Mark Kettenis <kettenis@gnu.org>
8600
8601 * i386bsd-nat.c: s/regno/regnum/g.
8602 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
8603 FP0_REGNUM.
8604 (store_inferior_registers): Likewise.
8605
f5b1afdf
MK
86062004-03-16 Mark Kettenis <kettenis@gnu.org>
8607
8608 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
8609 of i387_fill_fsave.
8610 (store_inferior_registers): Call i387_collect_fsave and
8611 i387_collect_fxsave instead of i387_fill_fsave and
8612 i387_fill_fxsave.
8613
41fe5eb3
AC
86142004-03-15 Andrew Cagney <cagney@redhat.com>
8615
8616 * Makefile.in (frame-unwind.o): Update dependencies.
8617 * frame-unwind.c: Include "gdb_obstack.h".
8618 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
8619 parameter.
8620 (append_predicate): Delete function.
8621 (struct frame_unwind_table_entry): New structure.
8622 (struct frame_unwind_table): Replace "sniffer" with "head" and
8623 "tail".
8624 (frame_unwind_append_sniffer): Update.
8625 (frame_unwind_find_by_frame): Update.
8626 (_initialize_frame_unwind): Registe frame_unwind_init using
8627 gdbarch_data_register_pre_init.
8628
3f63813d
MK
86292004-03-15 Mark Kettenis <kettenis@gnu.org>
8630
8631 * i386bsd-nat.c: Update copyright year.
8632 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
8633 define unconditionally.
8634
3248c325 86352004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
8636
8637 * i387-tdep.h (i387_collect_fsave): New prototype.
8638 * i387-tdep.c (i387_collect_fsave): New function containing most
8639 of the code from i387_fill_fsave.
3248c325 8640 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 8641
871fbe6a
MK
86422004-03-15 Mark Kettenis <kettenis@gnu.org>
8643
8644 * i386-linux-tdep.c: Update copyright year.
8645 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
8646 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
8647 svr4_ilp32_link_map_offsets instead of
8648 i386_linux_svr4_fetch_link_map_offsets.
8649
8176b9b8
DC
86502004-03-15 David Carlton <carlton@kealia.com>
8651
8652 Fix for PR c++/1553:
8653 * dwarf2read.c (read_structure_type): Determine type name by
8654 calling determine_class_name.
8655 (determine_class_name): New.
8656 (determine_prefix): Look at TYPE_TAG_NAME and call
8657 determine_class_name when appropriate.
8658 (determine_prefix_aux, class_name): Delete.
9d58e29d 8659 (read_namespace): Set die->type.
8176b9b8 8660
fe8bf7d7
KB
86612004-03-15 Kevin Buettner <kevinb@redhat.com>
8662
8663 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
8664 unused macro definition. The definition in target.h (or perhaps
8665 elsewhere) takes precedence.
8666
ed6edd9b
AC
86672004-03-15 Andrew Cagney <cagney@redhat.com>
8668
f9be684a
AC
8669 * ppc-tdep.h: Update copyright.
8670 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
8671 function signatures to match "regsets.h".
8672 * ppc-linux-tdep.c: Include "regset.h".
8673 (ELF_GREGSET_SIZE): Delete.
8674 (right_supply_register): New function.
8675 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
8676 using right_supply_register.
8677 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
8678 functions.
8679 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
8680 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
8681 (_initialize_ppc_linux_tdep): Do not register
8682 ppc_linux_regset_core_fns.
8683 (ppc_linux_regset_from_core_section): Replace
8684 fetch_core_registers.
8685 (ppc_linux_regset_core_fns): Delete.
8686 * ppc-linux-nat.c: (right_fill_reg): New function.
8687 (supply_gregset): Update call to ppc_linux_supply_gregset.
8688 (fill_gregset): Clear the register set, use right_fill_reg.
8689 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
8690 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
8691
ed6edd9b
AC
8692 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
8693 unsigned.
8694
030f20e1
AC
86952004-03-15 Andrew Cagney <cagney@redhat.com>
8696
8697 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
8698 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
8699 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
8700 and register_gdbarch_data.
8701 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
8702 (struct gdbarch_data): Replace "init" by "pre_init" and
8703 "post_init".
8704 * gdbarch.h, gdbarch.c: Re-generate.
8705 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
8706 with"obstack", use OBSTACK_ZALLOC.
8707 (dwarf2_frame_ops): Delete.
8708 (dwarf2_frame_set_init_reg): Use gdbarch_data.
8709 (dwarf2_frame_init_reg): Use gdbarch_data.
8710 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 8711 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
8712 (_initialize_svr4_solib): Update.
8713 * user-regs.c (_initialize_user_regs): Update.
8714 * reggroups.c (_initialize_reggroup): Update.
8715 * regcache.c (_initialize_regcache): Update.
8716 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8717 * libunwind-frame.c (_initialize_libunwind_frame): Update.
8718 * gnu-v3-abi.c (init_gnuv3_ops): Update.
8719 * frame-unwind.c (_initialize_frame_unwind): Update.
8720 * frame-base.c (_initialize_frame_base): Update.
8721 * user-regs.c (user_reg_add): Update.
8722 * reggroups.c (reggroup_add): Update.
8723 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
8724 * libunwind-frame.c (libunwind_frame_set_descr): Update.
8725 * frame-unwind.c (frame_unwind_append_sniffer): Update.
8726 * frame-base.c (frame_base_table): Update.
8727 * remote.c (_initialize_remote): Update.
8728 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 8729
3111a3fc
AC
87302004-03-15 Andrew Cagney <cagney@redhat.com>
8731
8732 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
8733
5ecb7103
KB
87342004-03-15 Kevin Buettner <kevinb@redhat.com>
8735
8736 * Makefile.in (frv-linux-tdep.o): Add dependencies.
8737 * frv-linux-tdep.c: New file.
8738 * frv-tdep.c (struct gdbarch_tdep): Add new field
8739 ``sigcontext_reg_addr''.
8740 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
8741 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8742 (frv_sigramp_frame_sniffer): New functions.
8743 (frv_sigtramp_frame_unwind): New static global.
8744 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
8745 sniffers.
8746 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
8747 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
8748
1ccda5e9
KB
87492004-03-15 Kevin Buettner <kevinb@redhat.com>
8750
8751 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
8752 but not via a call to error(), when unable to read memory.
8753
b375a0a5
KB
87542004-03-15 Kevin Buettner <kevinb@redhat.com>
8755
8756 * frv-tdep.c (frv_call_dummy_words): Delete.
8757 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
8758
4fdf6121
AC
87592004-03-15 Andrew Cagney <cagney@redhat.com>
8760
8761 * infrun.c (handle_step_into_function, step_over_function): Only
8762 update and use STEP_FRAME_ID when the system is using legacy
8763 frames. Update comments.
8764
34021503
MK
87652004-03-14 Mark Kettenis <kettenis@gnu.org>
8766
187e21d1
MK
8767 * amd64-linux-tdep.h: Remove file.
8768 * amd64-linux-tdep.c: Don't include "inferior.h" and
8769 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
8770 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
8771 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
8772 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
8773 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
8774 macros.
8775 (user_to_gdb_regmap): Remove variable.
8776 (amd64_linux_gregset_reg_offset): New variable.
8777 (amd64_core_fns): Remove variable.
8778 (fetch_core_registers): Remove function.
8779 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
8780 functions.
8781 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
8782 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
8783 * Makefile.in (amd64_linux_tdep_h): Remove.
8784 (amd64-linux-nat.o): Update dependencies.
8785 (amd64-linux-tdep.o): Update dependencies.
8786
99679982
MK
8787 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
8788 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
8789 functions.
8790 (fetch_inferior_registers, store_inferior_registers): Rewrite.
8791
34021503
MK
8792 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
8793 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
8794
134d01f1
DJ
87952004-03-14 Daniel Jacobowitz <drow@mvista.com>
8796
8797 * dwarf2read.c (read_structure_type): Rename from
8718a420 8798 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
8799 Return immediately if die->type is set. Call read_type_die before
8800 dwarf2_add_member_fn.
8801 (process_structure_scope): New function.
8802 (read_enumeration_type, process_enumeration_scope): New functions,
8803 broken out from read_enumeration. Don't create the enumeration
8804 type if it has already been created.
8805 (read_enumeration): Removed.
8806 (process_die): Call read_structure_type, process_structure_scope,
8807 read_enumeration_type, and process_enumeration_scope. Just call
8808 new_symbol for base and subrange types. Add a comment about other
8809 type dies.
8810 (read_type_die): Call read_enumeration_type.
8811 (add_partial_structure, new_symbol): Update comments.
8812
65760afb
SC
88132004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8814
8815 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
8816
10f59415
SC
88172004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8818
8819 * tui/tui-win.h (tui_get_cmd_list): Declare.
8820 * tui/tui-win.c (tui_command): New function.
8821 (tui_get_cmd_list): New function.
8822 (_initialize_tui_win): Moved initialization of tui command in
8823 tui_get_cmd_list.
8824
8825 * tui/tui-data.c (init_content_element): Setup new data members.
8826 (init_win_info): Likewise.
8827 (free_content_elements): Free it.
8828 * tui/tui-data.h (struct tui_data_element): Store the register
8829 content to print.
8830 (struct tui_data_info): Keep the current register group.
8831
8832 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
8833
8834 * tui/tui-regs.h (tui_show_registers): Update prototype.
8835 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
8836 (tui_resize_all): No need to calculate anything for register window.
8837 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
8838 (tui_set_register_element, tui_set_general_regs_content): Remove.
8839 (tui_set_special_regs_content): Remove.
8840 (tui_set_general_and_special_regs_content): Remove.
8841 (tui_set_float_regs_content): Remove.
8842 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
8843 (tui_set_regs_content): Remove.
8844 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
8845 (tui_v_show_registers_command_support): Remove.
8846 (tui_show_registers): Use a reggroup to specify the registers to show.
8847 (tui_show_register_group): New function.
8848 (tui_display_registers_from): Compute the layout of register window
8849 and refresh with new API; be sure to delete old register windows.
8850 (tui_check_register_values): Update to use tui_get_register and
8851 tui_display_data.
8852 (tui_display_register): Just refresh the register window part.
8853 (tui_register_format): Format registers and save in tui_data_element.
8854 (tui_get_register): New to combine tui_reg_value_has_changed and
8855 tui_get_register_raw_value; fix to use the new gdb API.
8856 (tui_show_float_command): Renamed tui_reg_float_command.
8857 (tui_show_general_command): Renamed tui_reg_general_command.
8858 (tui_show_special_command): Renamed tui_reg_system_command.
8859 (_initialize_tui_regs): Remove unused commands.
8860
c3364ea4
MK
88612004-03-13 Mark Kettenis <kettenis@gnu.org>
8862
27d1e716
MK
8863 * NEWS (New native configurations): Mention OpenBSD/amd64.
8864
c3364ea4
MK
8865 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
8866 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
8867 Remove defines.
8868 * config/i386/nm-fbsd64.h: Likewise.
8869 * config/i386/nm-obsd.h: Likewise.
8870 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
8871 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
8872
b2d6d697
KB
88732004-03-12 Kevin Buettner <kevinb@redhat.com>
8874
8875 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
8876 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
8877 New constants.
8878
76e43199
KB
8879 From Richard Sandiford <rsandifo@redhat.com>:
8880 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
8881
34ce532e
KB
88822004-03-12 Kevin Buettner <kevinb@redhat.com>
8883
8884 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
8885 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
8886 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
8887 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
8888 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
8889 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
8890 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
8891 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
8892 definitions from frv-tdep.c to frv-tdep.h.
8893
c4d10515
KB
88942004-03-12 Kevin Buettner <kevinb@redhat.com>
8895
8896 Add shared library support for FR-V FDPIC ABI:
8897 * Makefile.in (solib-frv.o): Add dependencies.
8898 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
8899 New functions.
8900 (frv_push_dummy_call): Add support for FDPIC ABI.
8901 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
8902 for FDPIC ABI.
8903 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
8904 (frv_fdpic_find_canonical_descriptor): Declare.
8905 * solib-frv.c: New file.
8906 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
8907 * config/frv/tm-frv.h (solib.h): Include.
8908
ed1bd989
KB
89092004-03-12 Kevin Buettner <kevinb@redhat.com>
8910
8911 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
8912 (frv-tdep.o): Update dependencies.
8913 * frv-tdep.h: New file.
8914 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
8915 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
8916 constants.
8917 (struct gdbarch_tdep): Add new member ``frv_abi''.
8918 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
8919 functions.
8920 (new_variant): Set ``frv_abi'' field.
8921 (gdb_arch_init): Detect FDPIC executables.
8922
82b38f72
MK
89232004-03-12 Mark Kettenis <kettenis@gnu.org>
8924
8925 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
8926 wrapper.
8927
db1ea9ba
AC
89282004-03-11 Andrew Cagney <cagney@redhat.com>
8929
8930 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
8931
f8766ec1
KB
89322004-03-11 Kevin Buettner <kevinb@redhat.com>
8933
8934 * solist.h (master_so_list): New function.
8935 * solib.c (master_so_list): Likewise.
8936 * solib-svr4.c (enable_break): Iterate over so_list entries
8937 obtained from master list instead of entries obtained directly
8938 via svr4_current_sos().
8939
523f6a27
BE
89402004-03-10 Ben Elliston <bje@gnu.org>
8941
8942 * MAINTAINERS: Update my mail address.
8943
37814c18
KI
89442004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
8945
8946 * remote-m32r-sdi.c: Support hardware watchpoint.
8947
8b9740d8
DJ
89482004-03-09 Daniel Jacobowitz <drow@mvista.com>
8949
8950 * user-regs.c: Update copyright years.
8951 (struct user_regs): Rename to gdb_user_regs.
8952 (append_user_reg, builtin_user_regs, user_regs_init)
8953 (user_reg_add, user_reg_map_name_to_regnum)
8954 (usernum_to_user_reg): Update.
8955
4bb7a0a7
DJ
89562004-03-09 Daniel Jacobowitz <drow@mvista.com>
8957
8958 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
8959 (skip_children): New functions.
8960 (locate_pdi_sibling): Call skip_children.
8961
44e1a9eb
DJ
89622004-03-09 Daniel Jacobowitz <drow@mvista.com>
8963
8964 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
8965 * gdbtypes.c (check_typedef): Update comments.
8966
f3dd6933
DJ
89672004-03-09 Daniel Jacobowitz <drow@mvista.com>
8968
8969 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
8970 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
8971 pointer. Update comment about comp_unit_head.
8972 (struct abbrev_info): Shorten two int flags.
8973 (dwarf_alloc_abbrev): Take a CU argument.
8974 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
8975 each time through the loop. Update cleanup argument.
8976 (psymtab_to_symtab_1): Update cleanup call.
8977 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
8978 abbrev_obstack.
8979 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
8980 Just call obstack_free and clear the pointer.
8981
b40c7d58
DJ
89822004-03-09 Daniel Jacobowitz <drow@mvista.com>
8983
8984 * infrun.c (handle_inferior_event): Remove short-circuit code for
8985 events in a different thread.
8986
333dabeb
DJ
89872004-03-09 Daniel Jacobowitz <drow@mvista.com>
8988
8989 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
8990 print the whole transfer.
8991 (initialize_targets): Update description of "set debug target".
8992
aa17d93e
DJ
89932004-03-09 Daniel Jacobowitz <drow@mvista.com>
8994
8995 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
8996
0b71f08f
NW
89972004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
8998
8999 * MAINTAINERS (write after approval): Add myself.
9000
3930f270
CV
90012004-03-08 Corinna Vinschen <vinschen@redhat.com>
9002
9003 * sh-tdep.c (sh_print_registers_info): Use for loop.
9004 Don't skip multiple registers when a float register is encountered.
9005
a2b4a96c
CV
90062004-03-08 Corinna Vinschen <vinschen@redhat.com>
9007
9008 Fix PR tdep/1291.
9009 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
9010 to official SH documentation.
9011
f15a4bc0
AC
90122004-03-07 Andrew Cagney <cagney@redhat.com>
9013
9014 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
9015 unused function.
9016
9498281f
DJ
90172004-03-07 Daniel Jacobowitz <drow@mvista.com>
9018
9019 * arm-tdep.c (thumb_get_next_pc): Handle BX.
9020 (arm_get_next_pc): Handle BX and BLX.
9021
449e1137
AC
90222004-03-07 Andrew Cagney <cagney@redhat.com>
9023
eded0a31
AC
9024 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
9025 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
9026 HPPA_SP_REGNUM.
9027 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
9028 (hppa_target_read_fp): Delete.
9029 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
9030 register_virtual_size, max_register_raw_size,
9031 max_register_virtual_size, register_byte, register_size,
9032 target_read_fp, fp_regnum, and register_bytes. Set register_type
9033 instead of register_virtual_type.
9034 (hppa32_register_type, hppa64_register_type): Replace
9035 hppa32_register_virtual_type and hppa64_register_virtual_type.
9036 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
9037 (HPPA_FP_REGNUM): Define.
9038
f5f907e2
AC
9039 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
9040
69b4bbe4
AC
9041 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
9042 (pa_do_registers_info): Delete.
9043 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 9044 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 9045 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 9046
78161e48
AC
9047 * infcall.c (legacy_push_dummy_code): Delete #ifdef
9048 GDB_TARGET_IS_HPPA code.
9049 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 9050 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
9051 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
9052 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
9053 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
9054 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
9055 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 9056 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
9057 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
9058 (hppa_frameless_function_invocation, hppa64_store_return_value)
9059 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 9060 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 9061 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 9062 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
9063 (find_proc_framesize, deposit_21, restore_pc_queue)
9064 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 9065 (rp_saved, pc_in_linker_stub): Delete.
78161e48 9066
782eae8b
AC
9067 Unconditionally enable 64-bit frame and ABI code.
9068 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
9069 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
9070 push_dummy_frame, fix_call_dummy, push_arguments,
9071 call_dummy_location, extract_return_value, use_struct_convention,
9072 store_return_value, store_struct_return, saved_pc_after_call,
9073 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
9074 frame_chain, frame_chain_valid, frameless_function_invocation,
9075 frame_saved_pc, and pop_frame.
78161e48 9076
449e1137
AC
9077 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
9078 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
9079 (hppa_gdbarch_init): Do not set PC_REGNUM.
9080
12507572
MK
90812004-03-06 Mark Kettenis <kettenis@gnu.org>
9082
9083 * config/alpha/tm-fbsd.h: Remove file.
9084 * config/alpha/fbsd.mt: Tweak comment.
9085 (TM_FILE): Set to tm-alpha.h.
9086
c107cc1b
AC
90872004-03-05 Andrew Cagney <cagney@redhat.com>
9088
9089 * infrun.c (step_over_function): When non-legacy code, and no
9090 step_frame_id, use the unwinder to get the caller's frame ID.
9091
f2e7c15d
MK
90922004-03-05 Mark Kettenis <kettenis@gnu.org>
9093
8b0c3633
MK
9094 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
9095 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
9096 bfd_arch_unknown. Adjust comment.
9097
f2e7c15d
MK
9098 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
9099 * i386obsd-tdep.c: Correct spelling in comment.
9100 * i386nbsd-tdep.c: Correct spelling in comment.
9101 * sparc-tdep.c: Correct spelling in comments.
9102
1198ecbe
DC
91032004-03-05 David Carlton <carlton@kealia.com>
9104
9105 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
9106 bug.
9107
9eb42ed1
MK
91082004-03-05 Mark Kettenis <kettenis@gnu.org>
9109
9110 * sparc-tdep.c: Fix typo in comment.
9111
52b5e991
JB
91122004-03-04 J. Brobecker <brobecker@gnat.com>
9113
9114 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
9115
d8151005
DJ
91162004-03-04 Daniel Jacobowitz <drow@mvista.com>
9117
9118 * dwarf2read.c: Add comment describing memory lifetimes.
9119 (struct dwarf2_pinfo): Update comment.
9120 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
9121 (read_enumeration, new_symbol): Don't use obsavestring.
9122
cbeae229
MK
91232004-03-04 Mark Kettenis <kettenis@gnu.org>
9124
722d18c2
MK
9125 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
9126 instead of amd64_fill_fxsave.
9127 * amd64bsd-nat.c (store_inferior_registers): Likewise.
9128 * amd64fbsd-nat.c (fill_fpregset): Likewise.
9129
cbeae229
MK
9130 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
9131 Reorganize code a bit.
9132
b4206d25
OF
91332004-03-04 Orjan Friberg <orjanf@axis.com>
9134
9135 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
9136 when the frame pointer is pushed. Don't set the frame pointer's
9137 address on the stack unless it's actually located there.
b4206d25
OF
9138 Set the SRP's address on the stack correctly when the PC is still in
9139 the prologue.
9140 (cris_return_value): New function.
9141 (cris_gdbarch_init): Clear deprecated store_return_value,
9142 extract_return_value.
9143
49b0b195
JB
91442004-03-02 Jim Blandy <jimb@redhat.com>
9145
9146 * stabsread.c (reg_value_complaint): The maximum register number
9147 is one less than the number of registers.
9148
e9ff708b
AC
91492004-03-02 Andrew Cagney <cagney@redhat.com>
9150
9151 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
9152 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
9153 trailing comma and redundant assignment of I386_ST0_REGNUM.
9154 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
9155 32-bit segment registers.
9156
d4715e41
AC
91572004-03-01 Andrew Cagney <cagney@redhat.com>
9158
9159 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
9160 use frame_relative_level and get_next_frame.
9161
3ce2bf18
AC
91622004-02-29 Andrew Cagney <cagney@redhat.com>
9163
9164 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
9165 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
9166 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
9167 Delete macro.
9168
2da6aac3
DJ
91692004-02-29 Daniel Jacobowitz <drow@mvista.com>
9170
9171 * inflow.c (terminal_inferior): Don't give up the terminal if we
9172 previously couldn't get the inferior's terminal state.
9173
6ba34a8d
DJ
91742004-02-29 Daniel Jacobowitz <drow@mvista.com>
9175
9176 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
9177 PC_REGNUM.
9178
faae5abe
AC
91792004-02-28 Andrew Cagney <cagney@redhat.com>
9180
9181 * NEWS: Refer to GDB 6.1.
9182 * README: Refer to GDB 6.1.
9183 * PROBLEMS: Refer to GDB 6.1.
9184
2227a3c5
DJ
91852004-02-28 Daniel Jacobowitz <drow@mvista.com>
9186
9187 * thread-db.c (disable_thread_signals): Remove unused function.
9188
80571bff
MK
91892004-02-28 Mark Kettenis <kettenis@gnu.org>
9190
041bd74b
MK
9191 * amd64-nat.c: Include "gdb_string.h".
9192 (amd64_collect_native_gregset): Zero-extend the 32-bit
9193 general-purpose registers and %eip.
9194
3c017e40
MK
9195 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
9196 * amd64-tdep.c (amd64_collect_fxsave): New function.
9197 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
9198
80571bff
MK
9199 * i387-tdep.h: Update copyright year.
9200 (i387_collect_fxsave): New prototype.
9201 * i387-tdep.c: Update copyright year.
9202 (i387_collect_fxsave): New function containing most of the code
9203 from i387_fill_fxsave.
9204 (i387_fill_fxsave): Call i387_collect_fxsave.
9205
50d71875
AC
92062004-02-28 Andrew Cagney <cagney@redhat.com>
9207
9208 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
9209 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
9210
4a28816e
MK
92112004-02-28 Mark Kettenis <kettenis@gnu.org>
9212
9213 * amd64-tdep.c (amd64_frame_cache): Fix comment.
9214
dbda9972
AC
92152004-02-28 Andrew Cagney <cagney@redhat.com>
9216
9217 * utils.c: Use "", instead of <>, to include readline.
9218 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
9219 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
9220 * source.c, solib.c, exec.c, event-top.c: Ditto.
9221 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
9222 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
9223 * Makefile.in: Update all dependencies.
9224 (readline_tilde_h, readline_history_h): Define.
9225 (readline_headers): Delete.
9226
83277a99
MK
92272004-02-28 Mark Kettenis <kettenis@gnu.org>
9228
91ae4303
MK
9229 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
9230 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
9231 "config/i386/tm-lx64.h".
9232
83277a99
MK
9233 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
9234 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
9235 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
9236
6e1d7d6c
AC
92372004-02-28 Andrew Cagney <cagney@redhat.com>
9238
ecc9ac84
AC
9239 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
9240
6e1d7d6c
AC
9241 * breakpoint.c (_initialize_breakpoint): Use
9242 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
9243 Add help to show command.
9244
9671aeef
MK
92452004-02-28 Mark Kettenis <kettenis@gnu.org>
9246
7fa2737c
MK
9247 * i386-nat.c: Reformat to be closer to coding standards.
9248 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
9249 `retval'. Make variables `align' and `size' local to while-loop.
9250 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
9251 (_initialize_i386_nat): New prototype.
9252
9671aeef
MK
9253 * tui/tui.c: Include <readline/readline.h> instead of
9254 "readline/readline.h". Include it after <term.h> and
9255 "gdb_curses.h".
9256
fca7aa43
AC
92572004-02-27 Andrew Cagney <cagney@redhat.com>
9258
412275d5
AC
9259 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
9260 the new frame unwind code.
9261 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
9262 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
9263 PCOQ_HEAD_REGNUM.
9264
fca7aa43
AC
9265 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
9266 "return_value" and "push_dummy_call".
9267 (hppa32_use_struct_convention): Delete unused function.
9268 (hppa32_store_return_value): Delete unused function.
9269 (hppa32_extract_return_value): Delete unused function.
9270 (hppa32_stack_align): Delete function.
9271
e6a8a7d2
EZ
92722004-02-27 Eli Zaretskii <eliz@elta.co.il>
9273
9274 * coffread.c (enter_linenos): Don't let rawptr reference memory
9275 outside linetab[]'s limits.
9276
1797a8f6
AC
92772004-02-27 Andrew Cagney <cagney@redhat.com>
9278
9279 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
9280 inferior stack space - the stack needs to grow upwards.
9281 (hppa32_frame_align): New function.
9282 (hppa64_frame_align): Replace hppa_frame_align.
9283 (hppa_gdbarch_init): Update.
9284
2e4b5889
OF
92852004-02-26 Orjan Friberg <orjanf@axis.com>
9286
9287 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
9288 (dwarf2-frame.h): Include.
9289 (enum cris_regnums): New enum CRIS_FP_REGNUM.
9290 Remove static variables related to ABI setting.
9291 (struct gdbarch_tdep): Remove cris_abi member.
9292 (struct frame_extra_info): Remove.
9293 (cris_unwind_cache, stack_item): New structs.
9294 (cris_frame_unwind, cris_frame_base): New variables.
9295 (push_stack_item, pop_stack_item)
9296 (cris_frame_unwind_cache, cris_frame_this_id)
9297 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
9298 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
9299 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
9300 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
9301 (cris_reg_struct_has_addr): New functions.
9302 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 9303 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
9304 (cris_store_struct_return, cris_frameless_function_invocation)
9305 (cris_pop_frame, cris_skip_prologue_main)
9306 (cris_abi_original_store_return_value)
9307 (cris_abi_v2_store_return_value)
9308 (cris_abi_original_extract_return_value)
9309 (cris_abi_v2_extract_return_value)
9310 (cris_abi_original_reg_struct_has_addr)
9311 (cris_abi_v2_reg_struct_has_addr)
9312 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
9313 (cris_push_return_address, cris_abi_update): Remove.
9314 (_initialize_cris_tdep): Remove ABI command.
9315 (cris_dump_tdep): Ditto.
8718a420 9316 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
9317 Set store_return_value, extract_return_value, push_dummy_code,
9318 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
9319 frame_unwind_append_sniffer, frame_base_set_default.
9320 Clear deprecated init_frame_pc, push_arguments, store_return_value,
9321 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
9322 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 9323 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
9324 init_extra_frame_info, frameless_function_invocation, frame_chain,
9325 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
9326 dummy_write_sp.
8718a420 9327
6b9acc27
JJ
93282004-02-26 Jeff Johnston <jjohnstn@redhat.com>
9329
9330 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
9331 * valprint.c (print_hex_chars): Change from static to external.
9332 (print_char_chars): New function.
9333 * printcmd.c (print_scalar_formatted): For integer and enum types
9334 that are longer than LONGEST, perform processing via appropriate
9335 print_*_chars routines.
9336
a431654a
AC
93372004-02-26 Andrew Cagney <cagney@redhat.com>
9338
9339 * Makefile.in: Update dependencies.
9340 Changes from Ulrich Weigand,
9341 * s390-tdep.c: Include "dwarf2-frame.h".
9342 (s390_dwarf2_frame_init_reg): New function.
9343 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
9344 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
9345
fa8d40ab
JJ
93462004-02-26 Jeff Johnston <jjohnstn@redhat.com>
9347
9348 * breakpoint.c (pending_break_support): New setting variable.
9349 (break_command_1): Account for pending_break_support setting
9350 when creating pending breakpoints.
9351 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
9352 (_initialize_breakpoint): Add "set breakpoint pending" and
9353 "show breakpoint pending" commands.
9354
0dcd613f
AC
93552004-02-26 Andrew Cagney <cagney@redhat.com>
9356
9357 Fix PR i18n/1570.
9358 * charset.c (backslashable, backslashed, represented): Remove 'e'
9359 from list of escaped characters, not part of ISO-C.
9360
479272a3
JB
93612004-02-25 J. Brobecker <brobecker@gnat.com>
9362
9363 From Peter Schauer <schauer@pdf.de>:
9364 * tui/tui.c: Move system header includes after local includes.
9365 Fixes a build failure on solaris systems.
9366
7613d933
JB
93672004-02-25 J. Brobecker <brobecker@gnat.com>
9368
9369 * configure.in: Refine the previous change.
9370 * configure: Regenerate.
9371
9c1488cb
MK
93722004-02-25 Mark Kettenis <kettenis@gnu.org>
9373
9374 * amd64-tdep.h: Renamed from x86-64-tdep.h.
9375 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
9376 "amd64-tdep.h" instead of "x86-64-tdep.h".
9377 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9378 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
9379 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
9380 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9381 and "x86-64-tdep.c".
9382 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
9383 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9384 and "x86-64-tdep.c".
9385 * amd64bsd-nat.c: Update copyright year.
9386 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9387 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
9388 "x86-64-tdep.h".
9389 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
9390 "x86-64-tdep.h".
9391 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
9392 "x86-64-tdep.h".
9393 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
9394 "x86-64-tdep.h".
9395 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
9396 "x86-64-tdep.h".
9397 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
9398 "x86-64-tdep.h".
8718a420 9399 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
9400 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
9401 * Makefile.in (amd64_linux_tdep_h): Renamed from
9402 x86_64_linux_tdep_h.
9403 (amd64_tdep_h): Renamed from x86_64_tdep_h.
9404 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
9405 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
9406 (amd64obsd-tdep.o): Update dependencies.
9407 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
9408 dependencies.
9409 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
9410 dependencies.
9411 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
9412 amd64-linux-nat.c amd64-linux-tdep.c.
9413 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
9414 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
9415 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
9416 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
9417 amd64-tdep.o and amd64-linux-tdep.o.
9418 (TM_FILE): Set to tm-linux64.h.
9419 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
9420 (NAT_FILE): Set to nm-linux64.h.
9421 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
9422 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9423 amd64-tdep.o.
9424 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9425 amd64-tdep.o.
9426 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9427 amd64-tdep.o.
9428
4b8dad4a
RM
94292004-02-25 Roland McGrath <roland@redhat.com>
9430
9431 * remote.c (remote_protocol_qPart_auxv): New variable.
9432 (init_all_packet_configs): Initialize it.
9433 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
9434 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
9435 (show_remote_cmd): Call it.
9436 (_initialize_remote): Initialize commands.
9437 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
9438 service TARGET_OBJECT_AUXV requests.
9439
66745969
JB
94402004-02-25 J. Brobecker <brobecker@gnat.com>
9441
9442 * configure.in: Make sure that the wborder function is available.
9443 Otherwise, search for it in the cur_colr library.
9444 * configure: Regenerate.
9445
79508e1e
AC
94462004-02-25 Andrew Cagney <cagney@redhat.com>
9447
9448 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
9449
571ee600
MK
94502004-02-25 Mark Kettenis <kettenis@gnu.org>
9451
9452 * config/i386/tm-x86-64linux.h: Tweak comments.
9453
2b1b322f 94542004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
9455
9456 * MAINTAINERS: Add self to write-after-approval list.
9457
4d2acc65
AC
94582004-02-25 Andrew Cagney <cagney@redhat.com>
9459
4b8dad4a 9460 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
9461 * cli/cli-script.c (execute_control_command): Unconditionally
9462 install a cleanup. Default "ret" to "invalid_control". Use
9463 "break" instead of "return" to escape from the switch.
9464
4cfcaf21
JB
94652004-02-24 J. Brobecker <brobecker@gnat.com>
9466
9467 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
9468 with the lines macro defined in term.h on AiX.
9469 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
9470 a collision with the label_width macro defined in term.h on AiX.
9471
54a5c8d8
KB
94722004-02-23 David Mosberger <davidm@hpl.hp.com>
9473
9474 Committed by Kevin Buettner <kevinb@redhat.com>.
9475
9476 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
9477 * ia64-tdep.c (ia64_write_pc): Make it a global function.
9478 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
9479 instead of ia64_write_pc().
9480 * ia64-linux-tdep.c (regcache.h): Include.
9481 (ia64_linux_write_pc): New function.
4b8dad4a 9482
8a1dac83
RM
94832004-02-23 Roland McGrath <roland@redhat.com>
9484
9485 * auxv.c (info_auxv_command): Fix typos in error messages.
9486
90f90721
MK
94872004-02-23 Mark Kettenis <kettenis@gnu.org>
9488
8a1dac83 9489 * x86-64-tdep.h: Tweak comment.
90f90721
MK
9490 (enum amd64_regnum): New.
9491 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
9492 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
9493 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
9494 (X86_64_XMM1_REGNUM): Removed.
9495 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
9496 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
9497 prototypes for renamed functions.
9498 * x86-64-tdep.c: Fix typo.
9499 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
9500 register numbers.
9501 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
9502 Use constants from `enum amd64_regnum' for register numbers.
9503 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
9504 (amd64_analyze_prologue, amd64_frame_cache,
9505 amd64_sigtramp_frame_cache): Use constants from `enum
9506 amd64_regnum' for register numbers.
9507 (amd64_supply_fpregset): Adjust for renamed functions.
9508 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
9509 `enum amd64_regnum' for register numbers.
9510 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
9511 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
9512 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
9513 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
9514 (amd64_linux_fill_gregset): Adjust for renamed macros.
9515 (fetch_core_registers): Adjust for renamed functions.
9516 (amd64_linux_init_abi): Adjust for renamed functions.
9517 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
9518 renamed functions.
9519 * amd64-nat.c: Adjust for renamed macros.
9520 * amd64bsd-nat.c (fetch_inferior_registers)
9521 (store_inferior_registers): Use constants from `enum amd64_regnum'
9522 for register numbers. Adjust for renamed variables.
9523 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
9524 renamed variables.
9525 (_initialize_amd64fbsd_nat): Use constants from `enum
9526 amd64_regnum' for register numbers.
9527 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
9528 `enum amd64_regnum' for register numbers.
9529 (amd64fbsd_init_abi): Adjust for renamed functions.
9530 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
9531 `enum amd64_regnum' for register numbers.
9532 (amd64nbsd_init_abi): Adjust for renamed functions.
9533 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
9534 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
9535 `enum amd64_regnum' for register numbers.
9536 (amd64obsd_init_abi): Adjust for renamed functions.
9537 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
9538
d5479188
JJ
95392004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9540
9541 * breakpoint.c (print_one_breakpoint): Do not output spaces
9542 after printing <PENDING> for a pending breakpoint.
9543
81cb7cc9
JJ
95442004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9545
9546 * printcmd.c (print_scalar_formatted): Initialize val_long
9547 to remove compiler warning message.
9548
cbdeadca
JJ
95492004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9550
9551 * defs.h (nquery, yquery): New prototypes.
9552 * breakpoint.c (break_command_1): Use new nquery interface.
9553 * utils.c (defaulted_query, nquery, yquery): New functions.
9554
da6bab63
AC
95552004-02-23 Andrew Cagney <cagney@redhat.com>
9556
2f690297
AC
9557 * hppa-tdep.c (hppa_frame_align): New function.
9558 (hppa32_push_dummy_call): New function.
9559 (hppa64_push_dummy_call): New function.
9560 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
9561 disabled.
8a1dac83 9562
da6bab63
AC
9563 * infcall.c (legacy_push_dummy_code): Don't call deprecated
9564 FIX_CALL_DUMMY when push_dummy_call is available.
9565 (call_function_by_hand, push_dummy_code): Ditto.
9566
abf9b42d
AC
95672004-02-22 Andrew Cagney <cagney@redhat.com>
9568
9569 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
9570 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
9571 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
9572 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
9573 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
9574 call_dummy_location to ON_STACK.
9575
10fc94a4
MK
95762004-02-22 Mark Kettenis <kettenis@gnu.org>
9577
51433e4b
MK
9578 * x86-64-linux-tdep.c: Tweak comment.
9579 (amd64_linux_supply_gregset): Renamed from
9580 x86_64_linux_supply_gresget.
9581 (amd64_linux_fill_gregset): Renamed from
9582 x86_64_linux_fill_gregset.
9583 (fetch_core_registers): Adjust for renamed functions.
9584 (amd64_core_fns): Renamed from x86_64_core_fns.
9585 (amd64_linux_sigtramp_start): Renamed from
9586 x86_64_linux_sigtramp_start.
9587 (amd64_linux_pc_in_sigtramp): Renamed from
9588 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
9589 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
9590 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
9591 (amd64_linux_sigcontext_addr): Renamed from
9592 x86_64_linux_sigcontext_addr.
9593 (amd64_linux_sc_reg_offset): Renamed from
9594 x86_64_linux_sc_reg_offset.
9595 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
9596 Adjust for renamed functions and variables.
9597 (_initialize_amd64_linux_tdep): Renamed from
9598 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
9599 variables.
9600 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
9601 Adjust for renamed functions.
9602
430eaf2e
MK
9603 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
9604 from x86_64_linux_gregset64_reg_offset.
9605 (amd64_linux_gregset32_reg_offset): Rename from
9606 x86_64_linux_gregset64_reg_offset.
9607 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
9608 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
9609 (amd64_linux_dr_set_control): Renamed from
9610 x86_64_linux_dr_set_control. Adjust for renamed functions.
9611 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
9612 Adjust for renamed functions.
9613 (amd64_linux_dr_reset_addr): Renamed from
9614 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
9615 (amd64_linux_dr_get_status): Renamed from
9616 x86_64_linux_dr_get_status. Adjust for renamed functions.
9617 (_initialize_amd64_linux_nat): Renamed from
9618 _initialize_x86_64_linux_nat. Adjust for renamed variables and
9619 functions.
9620 * config/i386/nm-x86-64linux.h: Update copyright year.
9621 Adjust for renamed functions.
9622
10fc94a4
MK
9623 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
9624 amd64fbsd_sigtramp_start.
9625 (amd64fbsd_sigtramp_end_addr): Renamed from
9626 amd64fbsd_sigtramp_end.
9627 (amd64fbsd_init_abi): Adjust for renamed variables.
9628 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
9629 variables.
9630 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
9631 amd64fbsd_sigtramp_start.
9632 (amd64fbsd_sigtramp_end_addr): Renamed from
9633 amd64fbsd_sigtramp_end.
9634
343af405
AC
96352004-02-22 Andrew Cagney <cagney@redhat.com>
9636
537987fc
AC
9637 * hppa-tdep.c (hppa32_return_value): New function.
9638 (hppa64_return_value): New function.
9639 (hppa_gdbarch_init): Set return_value; keep disabled.
9640
fad850b2
AC
9641 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
9642 struct-return and inferior function call methods.
9643
26d08f08
AC
9644 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9645 "frame-base.h".
9646 (struct hppa_frame_cache): Define.
9647 (hppa_frame_cache, hppa_frame_this_id): New functions.
9648 (hppa_frame_prev_register): New function.
9649 (hppa_frame_unwind, hppa_frame_base): New variables.
9650 (hppa_frame_unwind_sniffer): New function.
9651 (hppa_frame_base_address, hppa_unwind_pc): New function.
9652 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
9653 sniffer, and frame base sniffer; keep disabled.
9654 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
9655 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
9656
e7d7bd65
AC
9657 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
9658 to predicates for "seriously old code".
9659
e963316f
AC
9660 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
9661 runtime if(0).
9662
56132691
AC
9663 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
9664 unsigned.
9665 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 9666
343af405
AC
9667 * config/pa/tm-hppa.h: Update copyright.
9668 (DEPRECATED_INIT_FRAME_PC): Delete macro.
9669 (deprecated_init_frame_pc_default): Delete declaration.
9670 (hppa_frame_init_saved_regs): Delete declaration.
9671 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9672 * hppa-tdep.c: Include "arch-utils.h".
9673 (hppa_gdbarch_init): Set deprecated init_frame_pc
9674 and deprecated frame_init_saved_regs.
9675 (hppa_frame_init_saved_regs): Make static.
9676
f5859b4d
MK
96772004-02-22 Mark Kettenis <kettenis@gnu.org>
9678
86f6f8e7 9679 Remove old 386BSD support.
cf7c5c23 9680 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
9681 * configure.host: Remove i[34567]86-*-bsd*.
9682 * configure.tgt: Remove i[34567]86-*-bsd*.
9683 * i386b-nat.c: Removed.
9684 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
9685 (i386b-nat.o): Remove dependencies.
9686
86f6f8e7
MK
9687 * config/i386/i386bsd.mh: Removed.
9688 * config/i386/i386bsd.mt: Removed.
9689 * config/i386/nm-i386bsd.h: Removed.
9690 * config/i386/tm-i386bsd.h: Removed.
9691 * config/i386/xm-i386bsd.h: Removed.
9692
971218cd
MK
9693 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
9694
7e654c37
MK
9695 * amd64fbsd-tdep.c: Include "solib-svr4.h".
9696 (amd64fbsd_init_abi): Set link map offsets.
9697 * amd64nbsd-tdep.c: Include "slib-svr4.h".
9698 (amd64nbsd_init_abi): Set link map offsets.
9699 * amd64obsd-tdep.c: Include "solib-svr4.h".
9700 (amd64obsd_init_abi): Set link map offsets.
9701 * i386fbsd-tdep.c: Include "solib-svr4.h".
9702 (i386fbsd_init_abi): Set link map offsets.
9703 * i386nbsd-tdep.c: Include "solib-svr4.h".
9704 (i386nbsdelf_init_abi): Set link map offsets.
9705 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
9706 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
9707 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
9708 solib-legacy.o and core-aout.o. Reformat.
9709 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
9710 solib-svr4.o, solib-legacy.o. Reformat.
9711 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
9712 * config/i386/nbsdelf.mh: Reformat.
9713 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
9714 solib-svr4.o, solib-legacy.o and corelow.o.
9715 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
9716 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
9717 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
9718 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9719 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9720 (TM_FILE): Set to tm-fbsd.h.
9721 * config/i386/nbsd.mt (TDEPFILES): Reformat.
9722 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
9723 solib-svr4.o.
9724 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
9725 solib-svr4.o.
9726 (TM_FILE): Set to nm-nbsd.h.
9727 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
9728 Simplify shared library support. Don't include "elf/common.h".
9729 (SVR4_SHARED_LIBS): Don't define.
9730 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
9731 "solib.h".
9732 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
9733 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
9734 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
9735 Don't include "i386/tm-i386.h". Include "solib.h".
9736 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
9737 Don't include "i386/tm-i386.h".
9738 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
9739 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
9740 Include "i386/xm-i386.h".
9741 (HOST_LONG_DOUBLE_FORMAT): Remove.
9742
5d93ae8c
MK
9743 Fix OpenBSD/i386 sigtramp recognition.
9744 * i386-tdep.h: Update copyright year.
9745 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
9746 (i386bsd_sigtramp_end): New prototypes.
9747 (i386fbsd_sigtramp_start_addr): Renamed from
9748 i386fbsd_sigtramp_start.
9749 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9750 (i386obsd_sigtramp_start_addr): Renamed from
9751 i386obsd_sigtramp_start.
9752 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9753 * i386bsd-tdep.c: Update copyright year.
9754 (i386bsd_pc_in_sigtramp): Make public.
9755 * i386fbsd-nat.c: Update copyright year.
9756 (_initialize_i386fbsd_nat): Adjust for renamed variables.
9757 * i386fbsd-tdep.c: Update copyright year.
9758 (i386fbsd_sigtramp_start_addr): Renamed from
9759 i386fbsd_sigtramp_start.
9760 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9761 (i386fbsdaout_init_abi): Adjust for renamed variables.
9762 * i386obsd-nat.c: Update copyright year.
9763 (_initialize_i386obsd_nat): Adjust for renamed variables.
9764 * i386obsd-tdep.c: Include "target.h".
9765 (i386obsd_page_size): New variable.
9766 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
9767 (i386obsd_sigtramp_end): New functions.
9768 (i386obsd_sigtramp_start_addr): Renamed from
9769 i386obsd_sigtramp_start.
9770 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9771 (i386obsd_init_abi): Adjust for renamed variables. Set
9772 pc_in_sigtramp, sigtramp_start and sigtramp_end.
9773 * Makefile.in (i386obsd-tdep.o): Update dependencies.
9774
84d04465
MK
9775 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
9776 trampoline change in OpenBSD kernel.
9777
b053aceb
MK
9778 * amd64-nat.c: Update copyright year.
9779 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
9780 architecture from REGCACHE.
9781
f5859b4d
MK
9782 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
9783 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
9784
e4bbbda8
MK
97852004-02-21 Mark Kettenis <kettenis@gnu.org>
9786
ba361932
MK
9787 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
9788 i[34567]86-*-openbsd3.[0-3].
9789 * config/i386/obsdaout.mh: New file.
9790
d3e48264
MK
9791 * config/i386/obsd.mh (MH_FLAGS): Remove.
9792
60a6eeb6
MK
9793 Fix PR build/1549.
9794 * i386obsd-tdep.c: Update copyright years. Include
9795 "solib-svr4.h".
9796 (i386obsd_init_abi): Don't set regset_from_core_section here.
9797 (i386obsd_aout_init_abi): New function. Set
9798 regset_from_core_section here.
9799 (i386obsd_elf_init_abi): New function.
9800 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
9801 * Makefile.in (i386obsd-tdep.o): Update dependecies.
9802 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9803 (TM_FILE): Set to tm-nbsd.h.
9804
9805 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
9806 solib-sunos.o.
9807
e4bbbda8
MK
9808 * solib-svr4.h: Update copyright year.
9809 (svr4_ilp32_fetch_link_map_offsets)
9810 (svr4_lp64_fetch_link_map_offsets): New prototype.
9811 * solib-svr4.c: Update copyright year.
9812 (svr4_ilp32_fetch_link_map_offsets)
9813 (svr4_lp64_fetch_link_map_offsets): New function.
9814
f6fe98ef
DJ
98152004-02-20 Daniel Jacobowitz <drow@mvista.com>
9816
9817 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
9818 to the partial symbol table.
9819
589ca796
JB
98202004-02-20 J. brobecker <brobecker@gnat.com>
9821
9822 * PROBLEMS: Add description of problem documented under gdb/1560.
9823
2031c21a
MK
98242004-02-20 Mark Kettenis <kettenis@gnu.org>
9825
30b344b1
MK
9826 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
9827 comments.
9828 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
9829 functions.
9830 (amd64obsd_init_abi): Reorder initializations. Use
9831 amd64obsd_r_reg_offset to initialize the general-purpose register
9832 set details. Set regset_from_core_section.
9833 (_initialize_amd64obsd_tdep): Rename from
9834 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
9835 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
9836 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
9837
2031c21a
MK
9838 * NEWS (New native configurations): Mention OpenBSD/alpha.
9839 * configure.tgt: Add alpha*-*-openbsd*.
9840 * configure.host: Add alpha*-*-openbsd*.
9841 * alphanbsd-tdep.c: Update copyright year.
9842 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
9843
42471775
AC
98442004-02-20 Andrew Cagney <cagney@redhat.com>
9845
9846 Fix PR tdep/1372.
9847 * configure.tgt: Delete target "none-*-*".
9848 * configure.host: Delete host "none-*-*".
9849 * config/none/none.mh: Delete file.
9850 * config/none/none.mt: Delete file.
9851 * config/none/xm-none.h: Delete file.
9852 * config/none/tm-none.h: Delete file.
9853 * config/none/nm-none.h: Delete file.
9854
960ccd7d
FF
98552004-02-19 Fred Fish <fnf@redhat.com>
9856
9857 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
9858 cache->uses_fp prior to setting it.
9859
5f883edd
FF
98602004-02-19 Fred Fish <fnf@redhat.com>
9861
9862 Fix for PR breakpoint/1558.
9863 * sh-tdep.c (IS_JSR): New macro.
9864 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
9865
f98c22d5
JB
98662004-02-19 Jim Blandy <jimb@redhat.com>
9867
9868 * findvar.c (value_from_register): Doc fix.
9869
95051d27
JJ
98702004-02-19 Jeff Johnston <jjohnstn@redhat.com>
9871
9872 * printcmd.c (print_scalar_formatted): Do not check for sizeof
9873 type being greater than sizeof of host's LONGEST. Always use
9874 unpack_long() unless format 'f' chosen.
9875
ccefbec3
EZ
98762004-02-19 Joel Brobecker <brobecker@gnat.com>
9877
9878 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 9879
ccefbec3
EZ
9880 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
9881 contains a symbol wich is the best, non-exact match for the given
9882 pc. Update comments.
9883
98842004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 9885
2ede629f
EZ
9886 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
9887 macro, which was part of the now removed Mach 3 port.
9888 * utils.c (request_quit): Ditto.
9889
567ee972
MK
98902004-02-18 Mark Kettenis <kettenis@gnu.org>
9891
9892 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
9893 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
9894
50cca7bb
MK
98952004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9896
9897 Committed by Mark Kettenis <kettenis@gnu.org>.
9898
9899 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
9900 Define.
9901
226361c4
AC
99022004-02-18 Andrew Cagney <cagney@redhat.com>
9903
9904 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
9905 CONFIG_INSTALL and CONFIG_UNINSTALL.
9906 * configure: Re-generate.
9907 * interps.h (INTERP_TUI): Define.
9908 * Makefile.in: Update dependencies.
9909 (TUI): New macro.
9910 (tui-main.o): Specify dependencies.
9911 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
9912 * tui/tui-main.c: New file.
9913
49cfa46f
MK
99142004-02-18 Mark Kettenis <kettenis@gnu.org>
9915
e2879ccb
MK
9916 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
9917 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
9918 dependencies.
9919 * configure.host: Add x86_64-*-openbsd*.
9920 * configure.tgt: Add x86_64-*-openbsd*.
9921 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
9922
c43f4bec
MK
9923 * tui/tui.c: Don't include <malloc.h>.
9924
09ae75b6
MK
9925 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
9926 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
9927 amd64nbsd-tdep.c.
9928
49cfa46f 9929 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 9930 static. Remove extraneous whitespace.
49cfa46f
MK
9931 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
9932 static.
9933
05957fdb
JB
99342004-02-17 Jim Blandy <jimb@redhat.com>
9935
9936 * findvar.c (value_from_register): Doc fix.
9937
d0f54f9d
JB
99382004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9939
9940 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 9941
8a1dac83 9942 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
9943 CORE_ADDR as type for selectors. Correct types for GNU run time
9944 message lookup function to use double indirection.
9945 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
9946 * objc-lang.h (lookup_child_selector): Adapt prototype.
9947
9cbd5950
JB
9948 * s390-nat.c (SUBOFF): New macro.
9949 (supply_gregset, fill_gregset): Use it to handle debugging
9950 of 32-bit exectuables running under a 64-bit kernel.
9951 * s390-tdep.c: Include "solib-svr4.h".
9952 (s390_svr4_fetch_link_map_offset): New function.
9953 (s390x_svr_fetch_link_map_offset): Likewise.
9954 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
9955 * Makefile.in (s390-tdep.o): Update dependencies.
9956
a8c99f38
JB
9957 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
9958 "frame-unwind.h".
9959 (s390_readinstruction): Reformat. Use read_memory_nobpt.
9960 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
9961 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
9962 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
9963 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
9964 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 9965 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
9966 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
9967 (struct frame_extra_info): Remove.
9968 (s390_memset_extra_info): Remove.
f73b1eff
JB
9969 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
9970 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
9971 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
9972 (is_rse): Renamed to ...
9973 (is_rsy): ... this. Support long displacements.
9974 (is_rxe): Renamed to ...
9975 (is_rxy): ... this. Support long displacements.
9976 (compute_x_addr): Support long displacements.
9977 (struct s390_prologue_data): New data type.
9978 (s390_on_stack): Change API to use struct s390_prologue_data.
9979 (s390_store): Reimplement.
9980 (s390_load): New function.
9981 (s390_get_signal_frame_info): Remove.
9982 (s390_get_frame_info): Remove, replace by ...
9983 (s390_analyze_prolog): ... this new function.
9984 (s390_check_function_end): Remove.
9985 (s390_function_start): Remove.
9986 (s390_frameless_function_invokation): Remove.
9987 (s390_is_sigreturn): Remove.
9988 (s390_init_frame_pc_first): Remove.
9989 (s390_init_frame_extra_info): Remove.
9990 (s390_frame_init_saved_regs): Remove.
9991 (s390_frame_saved_pc_nofix): Remove.
9992 (s390_frame_saved_pc): Remove.
9993 (s390_frame_chain): Remove.
9994 (s390_fp_regnum, s390_read_fp): Remove.
9995 (s390_pop_frame_regular, s390_pop_frame): Remove.
9996 (s390_saved_pc_after_call): Remove.
9997 (s390_skip_prologue): Reimplement.
9998 (s390_in_function_epilogue_p): Support long displacements.
9999 (struct s390_unwind_cache): New data structure.
10000 (s390_frame_unwind_cache): New function.
10001 (s390_prologue_frame_unwind_cache): Likewise.
10002 (s390_backchain_frame_unwind_cache): Likewise.
10003 (s390_frame_this_id, s390_frame_prev_register): Likewise.
10004 (s390_frame_unwind): Define.
10005 (s390_frame_sniffer): New function.
10006 (struct s390_pltstub_unwind_cache): New data structure.
10007 (s390_pltstub_frame_unwind_cache): New function.
10008 (s390_pltstub_frame_this_id): Likewise.
10009 (s390_pltstub_frame_prev_register): Likewise.
10010 (s390_pltstub_frame_unwind): Define.
10011 (s390_pltstub_frame_sniffer): New function.
10012 (struct s390_sigtramp_unwind_cache): New data structure.
10013 (s390_sigtramp_frame_unwind_cache): New function.
10014 (s390_sigtramp_frame_this_id): Likewise.
10015 (s390_sigtramp_frame_prev_register): Likewise.
10016 (s390_sigtramp_frame_unwind): Define.
10017 (s390_sigtramp_frame_sniffer): New function.
10018 (s390_frame_base_address, s390_local_base_address): New functions.
10019 (s390_frame_base): Define.
10020 (s390_unwind_pc, s390_unwind_sp): New function.
10021 (s390_push_dummy_call): Use new frame base location.
10022 (s390_unwind_dummy_id): Likewise.
10023 (s390_gdbarch_init): Remove calls to:
10024 set_gdbarch_frameless_function_invocation,
10025 set_gdbarch_deprecated_init_frame_pc,
10026 set_gdbarch_deprecated_frame_chain,
10027 set_gdbarch_deprecated_frame_init_saved_regs,
10028 set_gdbarch_deprecated_pop_frame,
10029 set_gdbarch_deprecated_init_extra_frame_info,
10030 set_gdbarch_deprecated_init_frame_pc_first,
10031 set_gdbarch_deprecated_target_read_fp,
10032 set_gdbarch_deprecated_frame_saved_pc,
10033 set_gdbarch_deprecated_saved_pc_after_call,
10034 set_gdbarch_deprecated_fp_regnum.
10035 Add calls to:
10036 set_gdbarch_in_solib_call_trampoline,
10037 frame_unwind_append_sniffer,
10038 frame_base_set_default,
10039 set_gdbarch_unwind_pc,
10040 set_gdbarch_unwind_sp.
10041 * Makefile.in (s390-tdep.o): Update dependencies.
10042
b0cf273e
JB
10043 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
10044 (S390_STACK_FRAME_OVERHEAD): Remove.
10045 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
10046 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
10047 (s390_promote_integer_argument): Remove.
10048 (s390_cannot_extract_struct_value_address): Remove.
10049 (s390_use_struct_convention, s390_store_struct_return): Remove.
10050 (s390_extract_return_value, s390_store_return_value): Remove.
10051 (s390_return_value_convention, s390_return_value): New functions.
10052 (is_float_singleton): Handle typedefs.
8a1dac83 10053 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
10054 Remove, replace by ...
10055 (s390_function_arg_pass_by_reference, s390_function_arg_float,
10056 s390_function_arg_integer): ... these new functions.
10057 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
10058 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
10059 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
10060 Fill in tdep->abi.
10061 Remove calls to:
10062 set_gdbarch_deprecated_store_struct_return,
10063 set_gdbarch_deprecated_extract_return_value,
10064 set_gdbarch_deprecated_store_return_value,
10065 set_gdbarch_use_struct_convention,
10066 set_gdbarch_extract_struct_value_address,
10067 set_gdbarch_deprecated_pc_in_call_dummy,
10068 set_gdbarch_deprecated_push_arguments,
10069 set_gdbarch_deprecated_save_dummy_frame_tos,
10070 set_gdbarch_deprecated_push_return_address,
10071 set_gdbarch_deprecated_sizeof_call_dummy_words,
10072 set_gdbarch_deprecated_call_dummy_words,
10073 set_gdbarch_deprecated_dummy_write_sp.
10074 Add calls to:
10075 set_gdbarch_push_dummy_call,
10076 set_gdbarch_unwind_dummy_id,
10077 set_gdbarch_return_value.
8a1dac83 10078
e1457d83
JB
10079 * config/s390/nm-linux.h: Update comments.
10080 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
10081 (STOPPED_BY_WATCHPOINT): Redefine.
10082 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
10083 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
10084 (s390_stopped_by_watchpoint): Likewise.
10085 (watch_area_cnt): Remove.
10086 * s390-nat.c: Update comments.
10087 (watch_area): Remove typedef.
10088 Global replace watch_area by struct watch_area.
10089 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 10090 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
10091 use s390_inferior_tid. Add short-cut for the no watchpoint case.
10092 (s390_fix_watch_points): Remove pid argument,
10093 use s390_inferior_tid. Recompute area spanned by watchpoints.
10094 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
10095 argument. Reimplement.
10096
d0f54f9d
JB
10097 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
10098 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
10099 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 10100 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
10101 core-regset.o.
10102 * config/s390/s390x.mt: Remove.
10103 * config/s390/tm-s390.h: Remove.
10104 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
10105 (TARGET_ELF64): Remove.
10106 (SKIP_TRAMPOLINE_CODE): Do not undefine.
10107 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
10108 s390*-*-* case; always set gdb_target to s390.
10109 * regformats/reg-s390.dat: Remove control registers.
10110 * regformats/reg-s390x.dat: Likewise.
10111 * s390-tdep.h: New file.
8a1dac83 10112 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
10113 Include "inferior.h" and "s390-tdep.h".
10114 Remove private definition of offsetof.
10115 (s390_register_u_addr): Remove.
10116 (regmap_gregset, regmap_fpregset): Define.
10117 (supply_gregset, fill_gregset): Reimplement.
10118 (supply_fpregset, fill_fpregset): Likewise.
10119 (s390_inferior_tid): New function.
10120 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
10121 (fetch_inferior_registers, store_inferior_registers): Likewise.
10122 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
10123 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
10124 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
10125 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
10126 (struct gdbarch_tdep): Define.
10127 (struct s390_register_info): Define.
10128 (s390_register_info): New variable.
10129 (s390_register_name): Reimplement.
10130 (s390_register_type): New function.
10131 (s390_register_raw_size, s390x_register_raw_size): Remove.
10132 (s390_cannot_fetch_register): Remove.
10133 (s390_register_byte): Remove.
10134 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
10135 (s390_dwarf_regmap): New variable.
10136 (s390_dwarf_reg_to_regnum): New function.
10137 (s390_stab_reg_to_regnum): Remove.
10138 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
10139 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
10140 (s390_convert_register_p): Likewise.
10141 (s390_register_to_value, s390_value_to_register): Likewise.
10142 (s390_register_reggroup_p): Likewise.
10143 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
10144 s390_gregset, s390x_gregset, s390_fpregset): New variables.
10145 (s390_supply_regset, s390_regset_from_core_section): New functions.
10146 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
10147 (S390_FPR_SIZE): Likewise.
10148 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
10149 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
10150 (S390_NUM_GPRS): Move here from tm-s390.h.
10151 (S390_NUM_FPRS): Likewise.
10152 (s390_in_function_epilogue_p): New function.
10153 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
10154 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
10155 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
10156 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
10157 Replace S390_FP_REGNUM by S390_SP_REGNUM.
10158 Remove calls to:
10159 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
10160 set_gdbarch_deprecated_max_register_virtual_size,
10161 set_gdbarch_deprecated_register_byte,
d0f54f9d 10162 set_gdbarch_cannot_fetch_register,
8a1dac83 10163 set_gdbarch_cannot_store_register,
d0f54f9d
JB
10164 set_gdbarch_deprecated_register_size,
10165 set_gdbarch_deprecated_register_raw_size,
10166 set_gdbarch_deprecated_register_virtual_size,
10167 set_gdbarch_deprecated_register_virtual_type,
10168 set_gdbarch_deprecated_register_bytes.
10169 Add calls to:
10170 set_gdbarch_num_pseudo_regs,
10171 set_gdbarch_register_type,
10172 set_gdbarch_convert_register_p,
10173 set_gdbarch_register_to_value,
10174 set_gdbarch_value_to_register,
10175 set_gdbarch_register_reggroup_p,
10176 set_gdbarch_regset_from_core_section,
10177 set_gdbarch_pseudo_register_read,
10178 set_gdbarch_pseudo_register_write,
10179 set_gdbarch_in_function_epilogue_p.
10180 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
10181 (s390_tdep_h): New variable.
10182
8cfe231d
JB
101832004-02-17 Jim Blandy <jimb@redhat.com>
10184
4589a601
JB
10185 * findvar.c (value_from_register): If the type has no length, just
10186 return an acceptable value --- don't report an internal error.
10187
8cfe231d
JB
10188 * stabsread.c (read_type): If we find any type numbers that are
10189 forward references, complain if the references aren't resolved by
10190 the time we're finished reading.
10191 (cleanup_undefined_types): Make error message more appropriate for
10192 a complaint.
10193
5bf0017e
EZ
101942004-02-17 Elena Zannoni <ezannoni@redhat.com>
10195
9d62932d
EZ
10196 * Makefile.in (defs_h): Remove dependency on progress_h.
10197 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
10198 progress.h.
10199 * main.c (captured_main): Delete use of START_PROGRESS and
10200 END_PROGRESS.
10201
102022004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 10203
5bf0017e
EZ
10204 * objfiles.c (terminate_minimal_symbol_table): Add back
10205 initialization of MSYMBOL_TYPE.
10206
9fc9f5e2
AC
102072004-02-17 David Mosberger <davidm@hpl.hp.com>
10208
10209 Committed by Andrew Cagney.
10210 * Makefile.in (ia64_tdep_h): New macro.
10211 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
10212 (ia64-tdep.o): Likewise.
10213 * ia64-tdep.h: New file.
10214 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
10215 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
10216 (ia64_aix_sigcontext_register_address): Likewise.
10217 (ia64_linux_getunwind_table): Delete declaration.
10218 * ia64-linux-tdep.c: Likewise.
10219
76cd2bd9
CV
102202004-02-17 Corinna Vinschen <vinschen@redhat.com>
10221
10222 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
10223 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
10224 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
10225
634aa483
AC
102262004-02-17 Andrew Cagney <cagney@redhat.com>
10227
10228 * symtab.c (skip_prologue_using_sal): New function.
10229 * symtab.h (skip_prologue_using_sal): Declare.
10230 * frv-tdep.c: Include "symtab.h".
10231 (skip_prologue_using_sal): Delete function.
10232 * mips-tdep.c (skip_prologue_using_sal): Delete function.
10233 * rs6000-tdep.c (refine_prologue_limit): Mention
10234 skip_prologue_using_sal.
10235 * ia64-tdep.c (refine_prologue_limit): Ditto.
10236 * Makefile.in: Update dependencies.
10237
102382004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 10239
39ce7b3f
AC
10240 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
10241 START_INFERIOR_TRAPS_EXPECTED.
10242 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
10243 START_INFERIOR_TRAPS_EXPECTED.
10244 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
10245 Delete macro.
10246 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
10247 macro, moved to "nm-osf.h". Update copyright.
10248 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
10249 update copyright.
10250
19772a2c
AC
10251 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
10252 and function replacing FRAMELESS_FUNCTION_INVOCATION.
10253 * blockframe.c (legacy_frameless_look_for_prologue): Rename
10254 frameless_look_for_prologue.
10255 * frame.h (legacy_frameless_look_for_prologue): Rename
10256 frameless_look_for_prologue.
10257 * gdbarch.h, gdbarch.c: Re-generate.
10258 * sh64-tdep.c (sh64_gdbarch_init): Update.
10259 * sh-tdep.c (sh_gdbarch_init): Update.
10260 * s390-tdep.c (s390_gdbarch_init): Update.
10261 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10262 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10263 * m68k-tdep.c (m68k_gdbarch_init): Update.
10264 (delta68_frame_args_address): Update.
10265 * m32r-tdep.c (m32r_gdbarch_init): Update.
10266 * hppa-tdep.c (hppa_gdbarch_init): Update.
10267 * h8300-tdep.c (h8300_gdbarch_init): Update.
10268 * frv-tdep.c (frv_gdbarch_init): Update.
10269 (frv_frameless_function_invocation): Update.
10270 * cris-tdep.c (cris_gdbarch_init): Update.
10271 (cris_frameless_function_invocation): Update.
10272 * avr-tdep.c (avr_gdbarch_init): Update.
10273 * arm-tdep.c (arm_gdbarch_init): Update.
10274 * stack.c (frame_info): Update, call predicate.
10275 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
10276 * frame.c (legacy_get_prev_frame): Update, call predicate..
10277 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
10278 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
10279 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
10280 invocation.
10281 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10282 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10283 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
10284
10285 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
10286 function.
10287
7dcaac91
DJ
102882004-02-16 Daniel Jacobowitz <drow@mvista.com>
10289
10290 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
10291 initializations.
10292
88289b6e
AC
102932004-02-16 Andrew Cagney <cagney@redhat.com>
10294
10295 * tui/tui-windata.c: Include "gdb_string.h".
10296 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
10297 * tui/tui-layout.c, tui/tui-command.c: Ditto.
10298 * Makefile.in: Update dependencies.
10299
9f976b41
DJ
103002004-02-16 Daniel Jacobowitz <drow@mvista.com>
10301
10302 * Makefile.in (infrun.o): Add $(gdb_assert_h).
10303 * infrun.c: Include "gdb_assert.h".
10304 (singlestep_ptid, saved_singlestep_ptid)
10305 (stepping_past_singlestep_breakpoint): New variables.
10306 (resume): Set singlestep_ptid. Check for singlestep thread
10307 hop.
10308 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
10309 (handle_inferior_event): Handle singlestep thread hop.
10310
c324d747
AC
103112004-02-16 Andrew Cagney <cagney@redhat.com>
10312
f090b9b1
AC
10313 * dwarf2-frame.c (dwarf2_frame_ops): New function.
10314 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
10315 (dwarf2_frame_init_reg): Ditto.
10316
fd33e6cb
AC
10317 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
10318 suggested by Joshua Neuheisel
10319
c324d747
AC
10320 * configure.in: Always check for curses, including pdcurses.
10321 Warn, instead of error, when no curses are found. Enable TUI when
10322 curses is available.
10323 * configure: Re-generate.
10324
b66ba949
CV
103252004-02-16 Corinna Vinschen <vinschen@redhat.com>
10326
10327 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
10328 sh_sh4_register_convert_to_virtual.
10329 (sh_register_convert_to_raw): Rename from
10330 sh_sh4_register_convert_to_raw.
10331 (sh_pseudo_register_read): Accomodate above name change.
10332 (sh_pseudo_register_write): Ditto.
10333
b58cbbf2
CV
103342004-02-16 Corinna Vinschen <vinschen@redhat.com>
10335
10336 * sh-tdep.c (sh_generic_register_name): Remove.
10337 (sh_gdbarch_init): Use sh_sh_register_name in default case.
10338
5929a910
AC
103392004-02-15 Andrew Cagney <cagney@redhat.com>
10340
4566dfcf
AC
10341 * configure.in (build_warnings): Add -Wunused-function.
10342 * configure: Re-generate.
10343
db11ed55
AC
10344 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
10345 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
10346
46ac7a5d
AC
10347 * procfs.c (procfs_init_inferior): Assume that
10348 START_INFERIOR_TRAPS_EXPECTED is defined.
10349 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
10350 * config/ns32k/tm-nbsd.h: Delete file,
10351 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
10352
ba801595
AC
10353 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
10354 * config/vax/tm-vax.h: Delete file.
10355
5929a910
AC
10356 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10357 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10358 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10359 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10360 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
10361 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10362 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
10363
8f22cb90
MK
103642004-02-15 Mark Kettenis <kettenis@gnu.org>
10365
10366 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
10367 * dwarf2-frame.c (dwarf2_frame_data): New variable.
10368 (struct dwarf2_frame_ops): New.
10369 (dwarf2_frame_default_init_reg): New function, based on
10370 dwarf2_frame_init_reg.
10371 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
10372 (dwarf2_frame_init_reg): Call architecture-specific function.
10373 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
10374 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
10375 instead of dwarf2_frame_data.
10376 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
10377 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
10378
8132723e
AC
103792004-02-15 Andrew Cagney <cagney@redhat.com>
10380
046a4708
AC
10381 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
10382 register_gdbarch_swap.
10383 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
10384 * f-lang.c (_initialize_f_language): Update, use
10385 DEPRECATED_REGISTER_GDBARCH_SWAP.
10386 * remote.c (_initialize_remote): Ditto.
10387 * regcache.c (_initialize_regcache): Ditto.
10388 * parse.c (_initialize_parse): Ditto.
10389 * infrun.c (_initialize_infrun): Ditto.
10390 * mi/mi-main.c (_initialize_mi_main): Ditto.
10391 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 10392
549c1eea
AC
10393 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
10394 poking .cacheable directly.
10395 * symfile.c (symfile_bfd_open): Ditto.
10396
0c0b39de
AC
10397 * Makefile.in: Update all dependencies.
10398
8132723e
AC
10399 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
10400 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
10401 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
10402 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
10403 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 10404
b9d26eb9
AC
104052004-02-14 Andrew Cagney <cagney@redhat.com>
10406
8e1f669a
AC
10407 * arch-utils.c (legacy_convert_register_p): Check
10408 DEPRECATED_REGISTER_CONVERTIBLE_P.
10409 * findvar.c (value_of_register): Ditto.
10410
cd0bfa36
AC
10411 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
10412 * gdbarch.h, gdbarch.c: Re-generate.
10413 * arch-utils.c (deprecated_register_convertible_not): Delete.
10414 * arch-utils.h (deprecated_register_convertible_not): Delete.
10415 * mi/mi-main.c (get_register): Update. Update copyright.
10416 * infcmd.c (default_print_registers_info): Update.
10417
b9d26eb9
AC
10418 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10419 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
10420 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 10421 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
10422 * frame.c (deprecated_get_next_frame_hack): Delete function.
10423 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
10424 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10425 Update.
10426 * infcall.c (call_function_by_hand): Update.
10427
9ab9195f
EZ
104282004-02-14 Elena Zannoni <ezannoni@redhat.com>
10429
10430 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 10431 from here...
9ab9195f
EZ
10432 * objfiles.c (init_entry_point_info, entry_point_address):..to
10433 here.
10434 * symfile.h (init_entry_point_info, entry_point_address): Remove
10435 prototypes.
10436 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 10437 prototypes.
9ab9195f
EZ
10438 * cris-tdep.c: Remove include of symfile.h. Add include of
10439 objfiles.h.
10440 * infcall.c: Ditto.
10441 * mcore-tdep.c: Ditto.
10442 * mn10300-tdep.c: Ditto.
10443 * sh64-tdep.c: Ditto.
10444 * v850-tdep.c: Ditto.
10445 * arm-tdep.c: Remove include of symfile.h.
10446 * blockframe.c: Ditto.
10447 * coffread.c: Ditto.
10448 * dbxread.c: Ditto.
10449 * dwarf2read.c: Ditto.
10450 * dwarfread.c: Ditto.
8a1dac83 10451 * frv-tdep.c: Ditto.
9ab9195f
EZ
10452 * ia64-tdep.c: Ditto.
10453 * mdebugread.c: Ditto.
10454 * mipsread.c: Ditto.
8a1dac83 10455 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
10456 * s390-tdep.c: Ditto.
10457 * sh-tdep.c: Ditto.
8a1dac83 10458 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
10459 * gdbarch.sh: Remove include of symfile.h.
10460 * gdbarch.c: Regenerate.
10461 * solib-irix.c (enable_break): Use entry_point_address().
10462 Add comment about include file.
10463 * xcoffread.c: Add comment about include file.
8a1dac83
RM
10464 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
10465 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
10466 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
10467 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
10468 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
10469
c4c5b7ba
AC
104702004-02-13 Andrew Cagney <cagney@redhat.com>
10471
10472 * corelow.c (core_xfer_partial): Use "struct bfd_section".
10473 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
10474 copyright.
10475 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
10476
3e7879de
FF
104772004-02-12 Fred Fish <fnf@redhat.com>
10478
10479 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
10480 set_gdbarch_store_return_value.
10481
6a7760b6
AC
104822004-02-12 Andrew Cagney <cagney@redhat.com>
10483
10484 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
10485 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
10486 (interrupt_query): Ditto.
10487 (ofunc): Delete unused variable.
10488 * cris-tdep.c (cris_abi): Delete unused function.
10489 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
10490 (cris_get_wide_opcode, cris_get_short_size): Ditto.
10491 (cris_get_asr_quick_shift_steps): Ditto.
10492 (cris_skip_prologue_frameless_p): Ditto.
10493 * arm-tdep.c (arm_push_return_address): Delete unused function.
10494 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
10495 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
10496 * s390-tdep.c (s390_function_start): Delete unused function.
10497
31687c3c
AC
104982004-02-12 Andrew Cagney <cagney@redhat.com>
10499
10500 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
10501 gdbarch.h, gdbarch.c: Re-generate.
10502 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
10503 to generic_prologue_frameless_p.
10504 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
10505 * arch-utils.c (generic_prologue_frameless_p): Delete function.
10506
6de918a6
DJ
105072004-02-11 Daniel Jacobowitz <drow@mvista.com>
10508
10509 * mips-linux-tdep.c: Include "frame.h".
10510 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
10511 (mips_linux_skip_resolver): New functions.
10512 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
10513 and set_gdbarch_in_solib_call_trampoline.
10514 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
10515 to after set_gdbarch_in_solib_return_trampoline. Only set the
10516 solib hooks to mips16 functions if the OS ABI is unknown.
10517 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
10518 including "config/tm-linux.h".
10519 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
10520 * Makefile.in (mips-linux-tdep.o): Update.
10521
87b3ede8
DC
105222004-02-11 David Carlton <carlton@kealia.com>
10523
10524 * linespec.c (decode_compound): Only look for a class symbol when
10525 considering all but the rightmost component.
10526
5979bc46
AC
105272004-02-11 Andrew Cagney <cagney@redhat.com>
10528
10529 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
10530 abi code are are separatly grouped.
10531
5867a2fb
AC
105322004-02-11 Andrew Cagney <cagney@redhat.com>
10533
10534 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
10535 * gdbarch.h, gdbarch.c: Re-generate.
10536 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10537 * v850-tdep.c (v850_gdbarch_init): Update.
10538 * sh64-tdep.c (sh64_gdbarch_init): Update.
10539 * sh-tdep.c (sh_gdbarch_init): Update.
10540 * s390-tdep.c (s390_gdbarch_init): Update.
10541 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10542 * mips-tdep.c (mips_gdbarch_init): Update.
10543 * mcore-tdep.c (mcore_gdbarch_init): Update.
10544 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10545 * m32r-tdep.c (m32r_gdbarch_init): Update.
10546 * ia64-tdep.c (ia64_gdbarch_init): Update.
10547 * hppa-tdep.c (hppa_gdbarch_init): Update.
10548 * h8300-tdep.c (h8300_gdbarch_init): Update.
10549 * frv-tdep.c (frv_gdbarch_init): Update.
10550 * d10v-tdep.c (d10v_gdbarch_init): Update.
10551 * cris-tdep.c (cris_gdbarch_init): Update.
10552 * avr-tdep.c (avr_gdbarch_init): Update.
10553 * arm-tdep.c (arm_gdbarch_init): Update.
10554 * alpha-tdep.c (alpha_gdbarch_init): Update.
10555
026a72f8
CV
105562004-02-11 Corinna Vinschen <vinschen@redhat.com>
10557
10558 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
10559 comma.
10560 (sh_sh4al_dsp_register_name): Ditto.
10561
3903d437
AC
105622004-02-10 Andrew Cagney <cagney@redhat.com>
10563
10564 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
10565 (mips_init_frame_pc_first): Delete function.
10566 (mips_frame_saved_pc): Delete function.
10567 (mips_frame_chain): Delete function.
10568 (mips_init_extra_frame_info): Delete function.
10569 (mips_xfer_register): Delete unused variable "reg".
10570 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
10571 (mips_n32n64_return_value): Delete unused variable "reg".
10572 (mips_n32n64_return_value): Delete unused variable "pos".
10573 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
10574 (mips_o32_return_value): Delete unused variable "pos".
10575 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
10576 (mips_print_fp_register): Delete unused variable "namelen"
10577 (mips_print_fp_register): Delete unused variable "flt2"
10578 (get_frame_pointer): Delete function.
10579 (cached_proc_desc): Delete static variable.
10580 (mips_pop_frame): Delete function.
10581 (mips_find_saved_regs): Delete function.
10582 (mips_get_saved_register): Delete function.
10583 (mips_saved_pc_after_call): Delete function.
10584 (SIGFRAME_BASE): Delete macro.
10585 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
10586 (SIGFRAME_PC_OFF): Delete macro.
10587 (SIGFRAME_REGSAVE_OFF): Delete macro.
10588 (mips_dump_tdep): Do not print deleted macro definitions.
10589
b9fb98bd
AC
105902004-02-10 Andrew Cagney <cagney@redhat.com>
10591
10592 * Makefile.in (SFILES): Remove explictly listed tui files.
10593 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
10594
78ced177 105952004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 10596
78ced177
JJ
10597 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
10598 to use paddr functions to format ia64 addresses and long values.
10599 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
10600 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
10601 (get_kernel_table, ia64_find_proc_info_x): Ditto.
10602 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
10603 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
10604
6a83354a
AC
106052004-02-10 Andrew Cagney <cagney@redhat.com>
10606
10607 * defs.h: Do not include "tui.h".
10608 * gdb_curses.h: New file.
10609 * tui/tui-hooks.h: New file.
10610 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
10611 (tui_install_hooks, tui_remove_hooks): Delete declarations.
10612 (tui_initialize_io): Delete declaration.
10613 (tui_initialize_readline: Delete redundant declaration.
10614 (struct tui_point): Delete definition.
10615 * tui/tui-data.h (struct tui_point): Define.
10616 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
10617 * utils.c: Include "tui/tui.h".
10618 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
10619 * printcmd.c [TUI]: Include "tui/tui.h".
10620 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
10621 * tui/tui-command.c: Include "gdb_curses.h".
10622 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
10623 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
10624 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
10625 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
10626 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
10627 * Makefile.in: Update all dependencies.
10628 (tui_hooks_h, gdb_curses_h): Define.
10629 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
10630
997470ef
EZ
106312004-02-10 Elena Zannoni <ezannoni@redhat.com>
10632
10633 * objfiles.h (struct objfile): Remove unused fields auxf1 and
10634 auxf2. Add comments about some other rarely used fields.
10635
4ff2cc4d
AC
106362004-02-10 Andrew Cagney <cagney@redhat.com>
10637
10638 * Makefile.in (init.c): Fix script removing duplicates. Problem
10639 reported by Peter Schauer.
10640
1ab21617
EZ
106412004-02-09 Elena Zannoni <ezannoni@redhat.com>
10642
10643 * bcache.c (bcache_xmalloc): Use obstack_init instead of
10644 obstack_specify_allocation.
10645 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 10646 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
10647 (allocate_rt_common_objfile): Ditto.
10648 * symfile.c (reread_symbols): Ditto.
10649 * gdb_obstack.h: Add comment.
10650
17763fd9
EZ
106512004-02-09 Elena Zannoni <ezannoni@redhat.com>
10652
10653 * linespec.c (decode_line_1, locate_first_half)
10654 (decode_compound, lookup_prefix_sym): Update comments. Delete old
10655 commented out code.
10656
ec5cdd75
DJ
106572004-02-09 Daniel Jacobowitz <drow@mvista.com>
10658
10659 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
10660 obstack_free.
10661
43b54b88
AC
106622004-02-09 Andrew Cagney <cagney@redhat.com>
10663
10664 * blockframe.c (find_pc_partial_function): If find_pc_overlay
10665 fails, try find_pc_section. Fix PR c++/1267.
10666 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
10667 instead of find_pc_mapped_section.
10668 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
10669 not default to the section containing PC. Fix PR symtab/1519.
10670
edfae063
AC
106712004-02-09 Andrew Cagney <cagney@redhat.com>
10672
10673 * Makefile.in (mips-tdep.o): Update dependencies.
10674 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
10675 "trad-frame.h".
10676 (mips_unwind_pc): Return the pseudo PC register.
10677 (mips_unwind_dummy_id): New function.
10678 (mips16_fetch_instruction): New function.
10679 (mips32_fetch_instruction): New function.
10680 (struct mips_frame_cache): Define.
10681 (mips_mdebug_frame_cache): New function.
10682 (mips_mdebug_frame_this_id): New function.
10683 (mips_mdebug_frame_prev_register): New function.
10684 (mips_mdebug_frame_unwind): Define.
10685 (mips_mdebug_frame_sniffer): New function.
10686 (mips_mdebug_frame_base_address): New function.
10687 (mips_mdebug_frame_base): Define.
10688 (mips_mdebug_frame_base_sniffer): New function.
10689 (mips_gdbarch_init): Append unwind and base sniffers. Set
10690 unwind_dummy_id.
10691
defc864c
AC
106922004-02-08 Andrew Cagney <cagney@redhat.com>
10693
6764ddad
AC
10694 * frame.c: Print both the register number and name.
10695
defc864c
AC
10696 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
10697 and a sed into a single sed. Make .c and .o patterns more robust.
10698 (OBS): Delete.
10699 (INIT_FILES): Replace OBS with COMMON_OBS.
10700 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
10701
645d6d10
MK
107022004-02-08 Mark Kettenis <kettenis@gnu.org>
10703
10704 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
10705 the PT_WCOOKIE request.
10706
23e3c3fc
AC
107072004-02-08 Andrew Cagney <cagney@redhat.com>
10708
58dfe9ff
AC
10709 * mips-tdep.c (mips_unwind_pc): New function.
10710 (mips_gdbarch_init): Set mips_unwind_pc.
10711
1152e35e
AC
10712 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
10713 (get_frame_id): Allow the UNKNOWN_FRAME.
10714 (frame_register_unwind, get_frame_type): Ditto.
10715
31b75dbf
AC
10716 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
10717 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
10718 unwind_dummy_id indicates a legacy frame.
10719
3483b318
AC
10720 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
10721 * configure: Re-generate.
10722
23e3c3fc
AC
10723 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
10724 methods.
10725
33f8ca73
AC
107262004-02-08 Andrew Cagney <cagney@redhat.com>
10727
10728 * configure.in (CONFIG_ALL): Set to Makefile target, and not
10729 makefile macro.
10730 * configure: Re-generate.
10731 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
10732 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
10733 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
10734 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
10735 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
10736 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
10737 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
10738 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
10739 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
10740 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
10741
6ba8e26f 107422004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 10743
20d286a5
AC
10744 * Makefile.in: Update all dependencies.
10745
d836ee13
AC
10746 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
10747 * configure: Re-generate.
10748 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
10749 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
10750 (COMMON_OBS): Add "main.o" and "annotate.o".
10751 (ANNOTATE_OBS): Delete.
10752 (OBS): Remove ANNOTATE_OBS.
10753 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
10754 CONFIG_INITS.
10755 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
10756 against CONFIG_OBS and "main.o".
10757 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
10758 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
10759
d02c80cd
AC
10760 * tui/tui-command.c: Include "gdb_string.h", delete register
10761 attribute, use ISO-C function signatures.
10762 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
10763 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10764 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
10765 * tui/tui.c: Ditto.
6ba8e26f
AC
10766
10767 * tui/tui-command.c: Change variable and function names to lower
10768 case.
10769 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
10770 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
10771 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
10772 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10773 * tui/tui-winsource.c, tui/tui.c: Ditto.
10774
4a146b47
EZ
107752004-02-07 Elena Zannoni <ezannoni@redhat.com>
10776
10777 * buildsym.c (free_pending_blocks, finish_block)
10778 (record_pending_block, make_blockvector, end_symtab): Replace
10779 symbol_obstack with objfile_obstack.
8a1dac83 10780 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 10781 (coff_read_enum_type): Ditto.
8a1dac83 10782 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 10783 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 10784 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
10785 (dwarf2_symbol_mark_computed): Ditto.
10786 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
10787 * elfread.c (elf_symtab_read): Ditto.
10788 * hpread.c (hpread_symfile_init, hpread_symfile_init)
10789 (hpread_read_enum_type, hpread_read_function_type)
10790 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
10791 Ditto.
8a1dac83 10792 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 10793 (java_link_class_type): Ditto.
8a1dac83 10794 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
10795 (new_symbol): Ditto.
10796 * minsyms.c (install_minimal_symbols): Ditto.
10797 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
10798 (terminate_minimal_symbol_table): Replace symbol_obstack with
10799 objfile_obstack.
10800 (free_objfile): Remove freeing of symbol_obstack.
10801 * objfiles.h: Remove symbol_obstack field.
10802 * pa64solib.c (add_to_solist): Replace symbol_obstack with
10803 objfile_obstack.
10804 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10805 symbol_obstack.
10806 (solib_add_common_symbols): Replace symbol_obstack with
10807 objfile_obstack.
10808 * somsolib.c (som_solib_add): Ditto.
10809 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10810 (common_block_start, common_block_end): Ditto.
10811 * symfile.c (reread_symbols): Remove freeing and init of
10812 symbol_obstack.
10813 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
10814 * symfile.h: Update comment.
10815 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
10816 stats printing.
10817 * symtab.c (symbol_set_names): Replace symbol_obstack with
10818 objfile_obstack.
10819 * symtab.h (struct general_symbol_info, struct minimal_symbol):
10820 Update comments.
10821 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
10822 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
10823 objfile_obstack.
10824
6d012f14
AC
108252004-02-07 Andrew Cagney <cagney@redhat.com>
10826
10827 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
10828 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
10829 fields and variables.
10830 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
10831 (m_beInvisible): Delete macro.
10832 * tui/tui-data.h: Fix case case fields and variables.
10833 (m_genWinPtrIsNull): Delete macro.
10834 (tui_win_list): Rename winList.
10835 (TUI_SRC_WIN): Rename srcWin.
10836 (TUI_DISASM_WIN): Rename disassemWin.
10837 (TUI_DATA_WIN): Rename dataWin.
10838 (TUI_CMD_WIN): Rename cmdWin.
10839 (m_genWinPtrNotNull): Delete macro.
10840 (m_winPtrIsNull): Delete macro.
10841 (m_winPtrNotNull): Delete macro.
10842 (tui_win_is_source_type): Replace m_winIsSourceType
10843 (tui_win_is_auxillary): Replace m_winIsAuzillary.
10844 (tui_win_has_locator): Replace m_hasLocator.
10845 (tui_set_win_highlight): Replace m_setWinHighlightOn and
10846 m_setWinHighlightOff.
10847 * tui/tui-data.c: Update references.
10848 (tui_win_is_source_type, tui_set_win_highlight): New functions.
10849 (tui_win_has_locator, tui_win_is_auxillary): New functions.
10850 * tui/tui-command.c, tui/tui-disasm.c: Update references.
10851 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
10852 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
10853 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10854 * tui/tui-winsource.c, tui/tui.c: Ditto.
10855
7d34766b
MK
108562004-02-07 Mark Kettenis <kettenis@gnu.org>
10857
1c800673
MK
10858 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
10859 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
10860 StackGhost.
10861
7d34766b
MK
10862 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
10863 variable `i6' to `i7'.
10864 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
10865
22940a24
AC
108662004-02-07 Andrew Cagney <cagney@redhat.com>
10867
10868 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
10869 (TuiPoint, TuiPointPtr): Ditto.
10870 (TuiStatus, TuiStatusPtr): Ditto.
10871 (TuiWinType, TuiWinTypePtr): Ditto.
10872 (struct tui_point): Rename _TuiPoint.
10873 (tui_get_low_disassembly_address): Rename
10874 tuiGetLowDisassemblyAddress.
10875 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
10876 (tuiFree): Delete declaration.
10877 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
10878 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
10879 * tui/tui.c (tuiFree): Delete function.
10880 * cli/cli-cmds.c (disassemble_command): Update references.
10881 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
10882 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10883 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
10884 * tui/tui-winsource.c: Ditto.
10885
8b92e4d5
EZ
108862004-02-07 Elena Zannoni <ezannoni@redhat.com>
10887
10888 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
10889 coffstab_build_psymtabs, elfstab_build_psymtabs)
10890 (stabsect_build_psymtabs): Replace psymbol_obstack with
10891 objfile_obstack.
10892 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
10893 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
10894 Ditto.
10895 * dwarfread.c (scan_compilation_units): Ditto.
10896 * elfread.c (elfstab_offset_sections): Ditto.
10897 * hppa-tdep.c (read_unwind_info): Ditto.
10898 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
10899 (hpread_end_psymtab): Ditto.
10900 * mdebugread.c (mdebug_build_psymtabs, add_pending)
10901 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
10902 Ditto.
10903 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 10904 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
10905 (build_objfile_section_table): Ditto.
10906 (allocate_objfile): Remove init of psymbol_obstack.
10907 (free_objfile): Remove freeing of psymbol_obstack.
10908 * objfiles.h (struct objfile): Remove field
10909 psymbol_obstack. Update comments.
10910 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
10911 psymbol_obstack with objfile_obstack.
10912 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10913 psymbol_obstack.
10914 * somread.c (som_symfile_offsets, init_import_symbols)
10915 (init_export_symbols): Replace psymbol_obstack with
10916 objfile_obstack.
10917 * somsolib.c (som_solib_add_solib_objfile): Ditto.
10918 * symfile.c (default_symfile_offsets, syms_from_objfile)
10919 (reread_symbols): Remove freeing and init of psymbol_obstack.
10920 (cashier_psymtab): Update comment.
10921 * symmisc.c (print_objfile_statistics): Don't report stats for
10922 psymbol obstack.
10923 * symtab.h (struct general_symbol_info, struct partial_symtab):
10924 Update comments.
10925 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
10926 (xcoff_symfile_offsets): Replace psymbol_obstack with
10927 objfile_obstack.
10928
b99607ea
EZ
109292004-02-07 Elena Zannoni <ezannoni@redhat.com>
10930
10931 * objfiles.h (struct objfile): Add objfile_obstack field.
10932 Remove type_obstack field.
10933
10934 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
10935 read_structure_scope read_enumeration, new_symbol): Replace
10936 type_obstack with objfile_obstack.
10937 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 10938 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
10939 (lookup_fundamental_type): Ditto.
10940 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
10941 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
10942 (hpread_read_doc_function_type, hpread_read_struct_type)
10943 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 10944 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 10945 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
10946 (java_link_class_type): Ditto.
10947 * mdebugread.c (parse_type): Ditto.
10948 * objfiles.c (allocate_objfile, free_objfile): Ditto.
10949 * solib-sunos.c (solib_add_common_symbols): Ditto.
10950 * stabsread.c (define_symbol, read_type, read_member_functions,
10951 read_cpp_abbrev, read_one_struct_field): Ditto.
10952 * symfile.c (reread_symbols): Ditto.
10953 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 10954
2a8854a7
AC
109552004-02-07 Andrew Cagney <cagney@redhat.com>
10956
10957 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
10958 (tui_exec_info_content): Rename TuiExecInfoContent.
10959 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
10960 (TuiWinInfo, TuiWinInfoPtr): Ditto.
10961 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
10962 (TuiList, TuiListPtr): Ditto.
10963 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
10964 (TuiDataType, TuiDataTypePtr): Ditto.
10965 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
10966 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
10967 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
10968 (TuiSourceElement, TuiSourceElementPtr): Ditto.
10969 (TuiDataElement, TuiDataElementPtr): Ditto.
10970 (TuiWinElement, TuiWinElementPtr): Ditto.
10971 (TuiDataInfo, TuiDataInfoPtr): Ditto.
10972 (TuiCommandElement, TuiCommandElementPtr): Ditto.
10973 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
10974 (TuiWhichElement, TuiWhichElementPtr): Ditto.
10975 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
10976 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
10977 * tui/tui-command.c, tui/tui-data.c: Update references.
10978 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
10979 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
10980 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10981 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 10982
05cbe71a
MK
109832004-02-07 Mark Kettenis <kettenis@gnu.org>
10984
10985 * dwarf2-frame.h: Update copyright.
10986 (enum dwarf2_frame_reg_rule): New.
10987 (struct dwarf2_frame_state_reg): New.
10988 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
10989 * dwarf2-frame.c: Update copyright.
10990 (enum dwarf2_reg_rule): Remove.
10991 (struct dwarf2_frame_state): Remove defenition of `struct
10992 dwarf2_frame_state_reg'.
10993 (read_reg): Call get_frame_arch to get the architecture instead of
10994 using CURRENT_GDBARCH.
10995 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
10996 DWARF2_FRAME_.
10997 (dwarf2_frame_init_reg): New function.
10998 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
10999 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
11000 initialize the register state. Prefix old `enum dwarf2_reg_rule'
11001 tags with DWARF2_FRAME_.
11002 (dwarf2_frame_prev_register): Call get_frame_arch to get the
11003 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
11004 dwarf2_reg_rule' tags with DWARF2_FRAME_.
11005
ec7d9e56
AC
110062004-02-06 Andrew Cagney <cagney@redhat.com>
11007
dd1abb8c
AC
11008 * tui/tui-data.h (struct tui_list): Rename _TuiList.
11009 (enum tui_data_type): Rename _TuiDataType.
11010 (struct tui_layout_def): Rename _TuiLayoutDef.
11011 (struct tui_source_element): Rename _TuiSourceElement.
11012 (struct tui_data_element): Rename _TuiDataElement.
11013 (struct tui_command_element): Rename _TuiCommandElement.
11014 (struct tui_locator_element): Rename _TuiLocatorElement.
11015 (union tui_which_element): Define.
11016 (struct tui_win_element): Rename _TuiWinElement.
11017 (struct tui_data_info): Rename _TuiDataInfo.
11018 (struct tui_source_info): Rename _TuiSourceInfo.
11019 (struct tui_command_info): Rename _TuiCommandInfo.
11020 (tui_initialize_static_data): Rename initializeStaticData.
11021 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
11022 (tui_alloc_win_info): Rename allocWinInfo.
11023 (tui_init_generic_part): Rename initGenericPart.
11024 (tui_init_win_info): Rename initWinInfo.
11025 (tui_alloc_content): Rename allocContent.
11026 (tui_add_content_elements): Rename addContentElements.
11027 (tui_init_content_element): Rename initContentElement.
11028 (tui_free_window): Rename freeWindow.
11029 (tui_free_win_content): Rename freeWinContent.
11030 (tui_free_data_content): Rename freeDataContent.
11031 (tui_free_all_source_wins_content): Rename
11032 freeAllSourceWinsContent.
11033 (tui_del_window): Rename tuiDelWindow.
11034 (tui_del_data_windows): Rename tuiDelDataWindows.
11035 (tui_partial_win_by_name): Rename partialWinByName.
11036 (tui_win_name): Rename winName.
11037 (tui_current_layout): Rename currentLayout.
11038 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
11039 (tui_term_height): Rename termHeight.
11040 (tui_set_term_height_to): Rename setTermHeightTo.
11041 (tui_term_width): Rename termWidth.
11042 (tui_set_term_width_to): Rename setTermWidthTo.
11043 (tui_set_gen_win_origin): Rename setGenWinOrigin.
11044 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
11045 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
11046 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
11047 (tui_source_windows): Rename sourceWindows.
11048 (tui_clear_source_windows): Rename clearSourceWindows.
11049 (tui_clear_source_windows_detail): Rename
11050 clearSourceWindowsDetail.
11051 (tui_clear_win_detail): Rename clearWinDetail.
11052 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
11053 (tui_default_tab_len): Rename tuiDefaultTabLen.
11054 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
11055 (tui_win_with_focus): Rename tuiWinWithFocus.
11056 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
11057 (tui_layout_def): Rename tuiLayoutDef.
11058 (tui_win_resized): Rename tuiWinResized.
11059 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
11060 (tui_next_win): Rename tuiNextWin.
11061 (tui_prev_win): Rename tuiPrevWin.
11062 (tui_add_to_source_windows): Rename addToSourceWindows.
11063 * tui/tui-winsource.c, tui/tui-win.c: Update references.
11064 * tui/tui-layout.c, tui/tui-source.c: Ditto.
11065 * tui/tui-stack.c, tui/tui-io.c: Ditto.
11066 * tui/tui.c, tui/tui-data.c: Ditto.
11067 * tui/tui-interp.c, tui/tui-data.c: Ditto.
11068 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
11069
a358af15
AC
11070 * tui/tui-source.h: Update copyright. Include "tui-data.h".
11071 (struct symtab): Declare.
11072 (tui_set_source_content): Rename tuiSetSourceContent.
11073 (tui_show_symtab_source): Rename tuiShowSource.
11074 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
11075 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
11076 * tui/tui-source.c: Update copyright. Update references.
11077 * tui/tui-win.c, tui/tui-winsource.c: Update references.
11078 * tui/tui-stack.c: Update references.
11079
a21fcd8f
AC
11080 * tui/tui-win.h: Update copyright. Include "tui-data.h".
11081 (struct tui_win_info): Declare.
11082 (tui_scroll_forward): Rename tuiScrollForward.
11083 (tui_scroll_backward): Rename tuiScrollBackward.
11084 (tui_scroll_left): Rename tuiScrollLeft.
11085 (tui_scroll_right): Rename tuiScrollRight.
11086 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
11087 (tui_resize_all): Rename tuiResizeAll.
11088 (tui_refresh_all_win): Rename tuiRefreshAll.
11089 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
11090 * tui/tui-layout.c, * tui/tui-io.c: Update references.
11091 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
11092 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
11093
edae1ccf
AC
11094 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
11095 (tui_erase_data_content): Rename tuiEraseDataContent.
11096 (tui_display_all_data): Rename tuiDisplayAllData.
11097 (tui_check_data_values): Rename tuiCheckDataValues.
11098 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
11099 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
11100 (tui_first_data_element_no_in_line): Rename
11101 tuiFirstDataElementNoInLine.
11102 (tui_delete_data_content_windows): Rename
11103 tuiDeleteDataContentWindows.
11104 (tui_refresh_data_win): Rename tuiRefreshDataWin.
11105 (tui_display_data_from): Rename tuiDisplayDataFrom.
11106 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
11107 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
11108 * tui/tui-win.c, tui/tui-regs.c: Update references.
11109 * tui/tui-layout.c, tui/tui.c: Update references.
11110
ec7d9e56
AC
11111 * tui/tui-wingeneral.h: Update copyright.
11112 (m_allBeVisible): Delete macro.
8a1dac83 11113 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
11114 (struct tui_gen_win_info): Declare.
11115 (struct tui_win_info): Declare.
11116 (tui_unhighlight_win): Rename unhighlightWin.
11117 (tui_make_visible, tui_make_invisible): Replace makeVisible.
11118 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
11119 (tui_make_window): Rename makeWindow.
11120 (tui_copy_win): Rename copyWin.
11121 (tui_box_win): Rename boxWin.
11122 (tui_highlight_win): Rename highlightWin.
11123 (tui_check_and_display_highlight_if_needed): Rename
11124 checkAndDisplayHighlightIfNeeded.
11125 (tui_refresh_all): Rename refreshAll.
11126 (tui_delete_win): Rename tuiDelwin.
11127 (tui_refresh_win): Rename tuiRefreshWin.
11128 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
11129 (tui_make_visible, tui_make_invisible): New functions.
11130 (tui_make_all_visible, tui_make_all_invisible): New functions.
11131 (make_all_visible): Rename makeAllVisible.
11132 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
11133 * tui/tui-data.c, tui/tui-winsource.c: Update references.
11134 * tui/tui-windata.c, tui/tui-win.c: Update references.
11135 * tui/tui-regs.c, tui/tui-layout.c: Update references.
11136 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
11137
1e52e2eb
MK
111382004-02-06 Mark Kettenis <kettenis@gnu.org>
11139
11140 * proc-api.c (write_with_trace): Initialize local variable to
11141 silence compiler warning.
11142
f80bda8e
AC
111432004-02-06 Andrew Cagney <cagney@redhat.com>
11144
11145 * tui/tui-source.h: Do not include "defs.h".
11146 (struct tui_win_info): Declare.
11147 (tui_set_source_content_nil): Declare.
11148 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
11149 (union tui_line_or_address): Rename _TuiLineOrAddress.
11150 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
11151 (tui_update_source_window): Rename tuiUpdateSourceWindow.
11152 (tui_update_source_window_as_is): Rename
11153 tuiUpdateSourceWindowAsIs.
11154 (tui_update_source_windows_with_addr): Rename
11155 tuiUpdateSourceWindowsWithAddr.
11156 (tui_update_source_windows_with_line): Rename
11157 tuiUpdateSourceWindowsWithLine.
11158 (tui_clear_source_content): Rename tuiClearSourceContent.
11159 (tui_erase_source_content): Rename tuiEraseSourceContent.
11160 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
11161 (tui_show_source_content): Rename tuiShowSourceContent.
11162 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
11163 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
11164 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
11165 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
11166 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
11167 (tui_update_exec_info): Rename tuiUpdateExecInfo.
11168 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
11169 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
11170 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
11171 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
11172 (struct tui_win_info): Declare.
11173 * tui/tui-stack.c: Update references.
11174 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
11175 * tui/tui-win.c, tui/tui-source.c: Ditto.
11176 * tui/tui.c, tui/tui-disasm.c: Ditto.
11177
9fbfb822
MK
111782004-02-06 Mark Kettenis <kettenis@gnu.org>
11179
11180 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
11181 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
11182
03cebad2
MK
111832004-02-05 Mark Kettenis <kettenis@gnu.org>
11184
11185 * infrun.c (handle_inferior_event): Allow for breakpoint
11186 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
11187 and SIGEMT. Update comments.
11188 * NEWS (Revised SPARC target): Mention support for non-executable
11189 stack.
11190
290281b1
MK
111912004-02-04 Mark Kettenis <kettenis@gnu.org>
11192
11193 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
11194 * inftarg.c: Update copyright year.
11195 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
11196 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
11197 (sparc_xfer_wcookie): New function.
11198 * sparc-tdep.c (sparc_fetch_wcookie): New function.
11199 * Makefile.in (sparc-nat.o): Update dependencies.
11200 * config/sparc/nm-nbsd.h: Include "target.h".
11201 (NATIVE_XFER_WCOOKIE): New define.
11202 (sparc_xfer_wcookie): New prototype.
11203
212161df
AC
112042004-02-04 Andrew Cagney <cagney@redhat.com>
11205
11206 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
11207 SYSCALL_TRAP function.
11208 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
11209
6e4c6c91
DJ
112102004-02-04 Andrew Cagney <cagney@redhat.com>
11211 Daniel Jacobowitz <drow@mvista.com>
11212
11213 * objfiles.h: Delete comments refering to inside_entry_func and
11214 DEPRECATED_FRAME_CHAIN_VALID.
11215 * defs.h (inside_entry_func): Update prototype..
11216 * blockframe.c (inside_entry_func): Rename to
11217 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
11218 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
11219
cae688ec
JJ
112202004-02-03 Jeff Johnston <jjohnstn@redhat.com>
11221
11222 * breakpoint.c (struct captured_parse_breakpoint_args): Move
11223 outside of #ifdef SOLIB_ADD region.
11224 (do_restore_lang_radix_cleanup): Ditto.
11225 (resolve_pending_breakpoint): Ditto.
11226
19217676
AC
112272004-02-03 Andrew Cagney <cagney@redhat.com>
11228
11229 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
11230 (process_note_abi_tag_sections): Delete unused function.
11231 (ia64_read_fp): Delete unused function.
11232 (gdbarch_extract_struct_value_address): Delete declaration.
11233
876753be
AC
112342004-02-02 Andrew Cagney <cagney@redhat.com>
11235
11236 * vax-tdep.c (vax_frame_chain): Delete call to
11237 deprecated_inside_entry_file.
11238 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
11239
d4f10bf2
MK
112402004-02-02 Mark Kettenis <kettenis@gnu.org>
11241
11242 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
11243 column that's "empty" or "same value" when eliminating REG_RA
11244 rules.
11245
cae688ec
JJ
112462004-02-02 Jeff Johnston <jjohnstn@redhat.com>
11247
11248 * NEWS: Add information about new pending breakpoint support.
11249
0101ce28
JJ
112502004-02-02 Jeff Johnston <jjohnstn@redhat.com>
11251
11252 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
11253 and pending fields for pending breakpoint support.
11254 * breakpoint.c (breakpoint_enabled): Add check for not pending.
11255 (condition_command): Only parse condition if not a pending
11256 breakpoint.
11257 (print_one_breakpoint): Add support for pending breakpoints.
11258 (describe_other_breakpoints): Add checks to verify we are not
11259 dealing with pending breakpoints.
11260 (check_duplicates): Don't check pending breakpoints.
11261 (set_raw_breakpoint): Initialize pending flag.
11262 (do_restore_lang_radix_cleanup): New cleanup routine.
11263 (resolve_pending_breakpoint): New function.
11264 (re_enable_breakpoints_in_shlibs): Try and resolve any
11265 pending breakpoints via resolve_pending_breakpoint.
11266 (mention): Add pending breakpoint support.
11267 (parse_breakpoint_sals): Add new parameter to pass to
11268 decode_line_1 to indicate silent errors when files or functions
11269 are not found. Change all callers.
11270 (do_captured_parse_breakpoint): New function.
11271 (break_command_1): Change prototype to return an rc value and to
11272 take an optional pending breakpoint pointer. Support creating
11273 a pending breakpoint if a "not found" form of error occurs when
11274 parsing the breakpoint. Also support resolving an existing pending
11275 breakpoint and be silent if the resolution fails.
11276 (create_breakpoints): Change prototype to take pending breakpoint
11277 pointer. When resolving a pending breakpoint, use the new pointer
11278 to provide a conditional or commands added by the end-user.
11279 (delete_breakpoint): Add appropriate check for pending.
11280 (breakpoint_re_set_one): Ditto.
11281 (do_enable_breakpoint): Ditto.
11282
8d577d32
DC
112832004-02-02 David Carlton <carlton@kealia.com>
11284
11285 * valops.c (enum oload_classification): New.
11286 (find_overload_match): Break implementation into separate
11287 functions; delete #if 0'd code; look for symbols within
11288 namespaces.
11289 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
11290 (find_oload_champ,oload_method_static,classify_oload_match): New.
11291 * cp-support.h: Add declaration for cp_func_name; update
11292 declaration for make_symbol_overload_list.
11293 * cp-support.c (cp_func_name): New.
11294 (overload_list_add_symbol): Fix comment, use
11295 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
11296 (make_symbol_overload_list): Take a function name and a namespace
11297 instead of a symbol; change implementation.
11298 (make_symbol_overload_list_using): New.
11299 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
11300
22e8e3c7
FF
113012004-02-02 Fred Fish <fnf@redhat.com>
11302
11303 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 11304 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
11305 * remote-sim.c (gdb_os_write_stderr): Write output to
11306 gdb_stdtargerr stream instead of gdb_stdtarg stream.
11307 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 11308 gdb_stderr stream and update copyright years.
22e8e3c7 11309
6b753f60
DJ
113102004-02-01 Daniel Jacobowitz <drow@mvista.com>
11311
11312 * Makefile.in (mips-linux-nat.o): Update dependencies.
11313 * mips-linux-nat.c: Include mips-tdep.h.
11314
113152004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
11316
11317 * sol-thread.c (sol_thread_xfer_partial): New function.
11318 (init_sol_thread_ops): Use that for to_xfer_partial hook.
11319 (init_sol_core_ops): Likewise.
11320
11321 * procfs.c (procfs_xfer_partial): New function.
11322 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
11323 * Makefile.in (procfs.o): Add $(auxv_h) dep.
11324
11325 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
11326 procfs_xfer_auxv function.
11327
11328 * procfs.c (procfs_make_note_section): If we can read
11329 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
11330 * linux-proc.c (linux_make_note_section): Likewise.
11331
11332 * auxv.h: New file.
11333 * auxv.c: New file.
11334 * Makefile.in (auxv_h): New variable.
11335 (COMMON_OBS): Add auxv.o here.
11336 (auxv.o): New target.
11337
11338 * corelow.c (core_xfer_partial): New function.
11339 (init_core_ops): Use it for core_ops.to_xfer_partial.
11340
11341 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
11342 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
11343 macro if that is defined.
11344
fa5281d0
DJ
113452004-02-01 Daniel Jacobowitz <drow@mvista.com>
11346
11347 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
11348 and check the specified thread for each breakpoint.
11349 * breakpoint.h (bpstat_stop_status): Update prototype.
11350 * infrun.c (handle_inferior_event): Update calls to
11351 bpstat_stop_status.
11352
26ee262d
DJ
113532004-02-01 Daniel Jacobowitz <drow@mvista.com>
11354
11355 * Makefile.in (cli-cmds.o): Add $(readline_h).
11356
d9b52655
DJ
113572004-02-01 Daniel Jacobowitz <drow@mvista.com>
11358
11359 * cli/cli-cmds.c: Include readline.h.
11360 (complete_command): Pass the start of the last word to
11361 complete_line.
11362
9709f61c
DJ
113632004-01-31 Daniel Jacobowitz <drow@mvista.com>
11364
11365 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
11366 argument, and change first argument to a CORE_ADDR.
11367 * breakpoint.h (bpstat_stop_status): Update prototype.
11368 * infrun.c (adjust_pc_after_break): Add a new comment.
11369 (handle_inferior_event): Update calls to bpstat_stop_status.
11370
4f1280bb
DJ
113712004-01-31 Daniel Jacobowitz <drow@mvista.com>
11372
11373 * breakpoint.h: Update copyright years.
11374
4fa8626c
DJ
113752004-01-31 Daniel Jacobowitz <drow@mvista.com>
11376
11377 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
11378 (bpstat_stop_status): Don't decrement PC.
11379 * breakpoint.h (software_breakpoint_inserted_here_p): Add
11380 prototype.
11381 * infrun.c (adjust_pc_after_break): New function.
11382 (handle_inferior_event): Call it, early. Remove later references
11383 to DECR_PC_AFTER_BREAK.
11384 (normal_stop): Add commentary.
11385
fad0733a
DJ
113862004-01-31 Daniel Jacobowitz <drow@mvista.com>
11387
11388 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
11389 2004-01-27 double-free fix.
11390
42cdca6c
MK
113912004-01-31 Mark Kettenis <kettenis@gnu.org>
11392
11393 * sparc-tdep.c (sparc_fetch_wcookie): New function.
11394 (sparc32_frame_prev_register): Handle StackGhost.
11395 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11396
932d5416
RM
113972004-01-29 Roland McGrath <roland@redhat.com>
11398
11399 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
11400 * configure: Regenerated.
11401
11402 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
11403 * Makefile.in (procfs.o): Add dep.
11404
47d3492a
AC
114052004-01-28 Andrew Cagney <cagney@redhat.com>
11406
11407 * tui/tui-stack.h: Update copyright.
11408 (struct frame_info): Add opaque declaration.
11409 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
11410 (tui_show_locator_content): Rename tuiShowLocatorContent.
11411 (tui_show_frame_info): Rename tuiShowFrameInfo.
11412 * tui/tui-stack.c: Update copyright. Update references.
11413 * tui/tui-winsource.c: Update references.
11414 * tui/tui-win.c: Update references.
11415 * tui/tui-layout.c: Update references.
11416 * tui/tui-hooks.c: Update copyright, update references.
11417 * tui/tui.c: Update copyright, update references.
11418 * tui/tui-disasm.c: Update references.
11419
5d51ca54
DC
114202004-01-28 David Carlton <carlton@kealia.com>
11421
11422 * dwarf2read.c (add_partial_structure): Use demangled name if
11423 namespace equals "".
11424
086ed43d
JB
114252004-01-27 Jim Blandy <jimb@redhat.com>
11426
11427 Clean up misapplied patch:
11428 * dwarf2read.c (determine_prefix): Change one of the two forward
11429 declarations for 'determine_prefix_aux' to a declaration for this.
11430 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
11431 argument to 'die_specification'.
11432
2a35147e
JB
11433 * dwarf2read.c (read_func_scope): Re-indent comment.
11434
a355c7de 114352004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 11436
a355c7de
AC
11437 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
11438 b->exp to NULL after freeing so that error during re-parsing or
11439 evaluation of expressions associated with breakpoint don't
11440 eventually lead to re-freeing of storage.
11441 Committed by Andrew Cagney.
11442
63ff5125
AC
114432004-01-27 Andrew Cagney <cagney@redhat.com>
11444
11445 * source.c (ambiguous_line_spec): Delete undefined declaration.
11446 * m32r-rom.c (m32r_set_board_address): Delete unused function.
11447 (m32r_set_server_address, m32r_set_download_path): Ditto.
11448 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
11449
e142c38c
DJ
114502004-01-27 Daniel Jacobowitz <drow@mvista.com>
11451
11452 * dwarf2read.c: Update calls to changed and renamed functions, and
11453 references to moved variables.
11454
11455 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
11456 language, language_defn, list_in_scope, and ftypes members.
11457 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
11458 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
11459 (baseaddr): Remove globals.
11460
11461 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
11462 (set_cu_language, die_is_declaration, die_specification)
11463 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
11464 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
11465 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
11466 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
11467
11468 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
11469 cu.list_in_scope. Don't initialize cu_header_offset.
11470 (add_partial_symbol): Add local baseaddr.
11471 (psymtab_to_symtab_1): Add local baseaddr. Use
11472 objfile->section_offsets for consistency. Don't initialize
11473 cu_header_offset; do initialize cu.header.offset and
11474 cu.list_in_scope.
11475 (read_file_scope, read_func_scope, read_lexical_block_scope)
11476 (dwarf_decode_lines, new_symbol): Add local baseaddr.
11477
c6e06ede
MC
114782004-01-27 Michael Chastain <mec.gnu@mindspring.com>
11479
fb328ecc 11480 * PROBLEMS: Add gdb/1516.
c6e06ede 11481
48184fd4
AC
114822003-12-29 Robert Millan <robertmh@gnu.org>
11483
11484 Patch committed by Andrw Cagney.
11485 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
11486 * configure.tgt: Match knetbsd*-gnu.
11487
c1321b30
AC
114882004-01-26 Andrew Cagney <cagney@redhat.com>
11489
f3699be3
AC
11490 * breakpoint.c (catch_command_1): Delete #ifdef code.
11491 (catch_fork_command_1): Delete #ifdef wrapper.
11492 (catch_exec_command_1): Ditto.
11493 (catch_load_command_1): Ditto.
11494 (catch_unload_command_1): Ditto.
11495
c1321b30
AC
11496 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
11497 (catch_breakpoint): Delete #if0ed function.
11498 (disable_catch_breakpoint): Ditto.
11499 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
11500 (disable_catch, enable_catch, delete_catch): Ditto.
11501
b4501125
AC
115022004-01-26 Andrew Cagney <cagney@redhat.com>
11503
11504 * remote.c (echo_check, quit_flag): Delete variables.
11505 (cisco_kernel_mode): Delete variable.
11506 (minitelnet_return, tty_input, escape_count): Delete variables.
11507 (remote_cisco_mode): Delete variable.
11508 (remote_cisco_open, remote_cisco_close): Delete function.
11509 (remote_cisco_mourn, remote_cisco_wait): Delete function.
11510 (init_remote_cisco_ops): Delete function.
11511 (_initialize_remote): Do not install "remote cisco" code.
11512 (read_frame): Delete cisco specific code.
11513 (remote_info_process): Delete function.
11514 (remote_wait): Delete cisco specific code.
11515 (remote_cisco_section_offsets): Delete function.
11516 (remote_cisco_objfile_relocate): Delete function.
11517 (remote_async_wait): Delete cisco specific code.
11518 (minitelnet, readtty, readsocket): Delete function.
11519
74055713
AC
115202004-01-26 Andrew Cagney <cagney@redhat.com>
11521
11522 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
11523 comments mentioning extract_returned_value_address.
11524 * infcmd.c (print_return_value): Update. Add comments on
11525 extract_returned_value_address.
11526 * stack.c (return_command): Add comments on
11527 extract_returned_value_address.
11528 * values.c: Update comment.
11529 * m32r-tdep.c: Update comment.
11530 * sparc-tdep.c: Update comment.
11531 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
11532 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11533 * sh64-tdep.c (sh64_gdbarch_init): Update.
11534 * sh-tdep.c (sh_gdbarch_init): Update.
11535 * s390-tdep.c (s390_gdbarch_init): Update.
11536 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11537 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
11538 * m68k-tdep.c (m68k_gdbarch_init): Update.
11539 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11540 * m32r-tdep.c (m32r_gdbarch_init): Update.
11541 * ia64-tdep.c (ia64_gdbarch_init): Update.
11542 * h8300-tdep.c (h8300_gdbarch_init): Update.
11543 * frv-tdep.c (frv_gdbarch_init): Update.
11544 * arm-tdep.c (arm_gdbarch_init): Update.
11545 * alpha-tdep.c (alpha_gdbarch_init): Update.
11546
a67af2b9
AC
115472004-01-26 Andrew Cagney <cagney@redhat.com>
11548
11549 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
11550 SYMBOL_LOCATION_FUNCS
11551 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
11552 "struct symbol_ops".
11553 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
11554 type to "struct symbol_ops".
11555 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
11556 (struct symbol): Replace ".aux_value.loc.funcs" and
11557 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
11558 (SYMBOL_OBJFILE): Delete macro.
11559 (SYMBOL_LOCATION_FUNCS): Delete macro.
11560 (SYMBOL_LOCATION_BATON): Update.
11561 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
11562 intead of SYMBOL_LOCATION_FUNCS.
11563 * ax-gdb.c (gen_var_ref): Ditto.
11564 * printcmd.c (address_info): Ditto.
11565 * findvar.c (read_var_value): Ditto.
11566 (symbol_read_needs_frame): Ditto.
11567
c034e007
AC
115682004-01-26 Andrew Cagney <cagney@redhat.com>
11569
11570 * dwarf2read.c (read_func_scope): Document frame-base hack.
11571
bb472c1e
MK
115722004-01-25 Mark Kettenis <kettenis@gnu.org>
11573
11574 * infcmd.c (print_return_value): Plug memory leak; delete
11575 ui_stream object. Rename argument `structure_return' to
11576 `struct_return'.
11577
c8e737d5
MK
115782004-01-25 Mark Kettenis <kettenis@gnu.org>
11579
f941662f
MK
11580 * infcmd.c (print_return_value): Wrap long lines.
11581 (finish_command_continuation, finish_command): Remove unused
11582 variable `funcaddr'. Fix some coding-standards problems.
11583
c558d81a 11584 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 11585 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
11586 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
11587 TDEP->fpregset to zero.
11588
bf1e5861 11589 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
11590 floating-point registers for traditional NetBSD core files.
11591 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
11592 TDEP->sizeof_fpregset here.
11593
4c72d57a
MK
115942004-01-25 Mark Kettenis <kettenis@gnu.org>
11595
566626fa
MK
11596 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
11597 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
11598 function with code split out from
11599 sparc32nbsd_sigcontext_frame_cache.
11600 (sparc32nbsd_sigcontext_frame_cache): Use
11601 sparc32nbsd_sigcontext_saved_regs.
11602 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
11603 OpenBSD.
11604 * sparcobsd-tdep.c: New file.
11605 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
11606 (sparcobsd-tdep.o): New dependency.
11607 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
11608 * config/sparc/obsd.mt: New file.
11609
4c72d57a
MK
11610 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
11611 TDEP->fpregset to be initialized to enable core file register
11612 sets.
11613
7e5e9f88
MK
116142004-01-24 Mark Kettenis <kettenis@gnu.org>
11615
f0f207fd 11616 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
11617 Add opaque declarations.
11618 (sparc64nbsd_sigcontext_saved_regs): New prototype.
11619 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
11620 function with code split out from
11621 sparc64nbsd_sigcontext_frame_cache.
11622 (sparc64nbsd_sigcontext_frame_cache): Use
11623 sparc64nbsd_sigcontext_saved_regs.
11624 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
11625 OpenBSD.
11626 * sparc64obsd-tdep.c: New file.
11627 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
11628 (sparc64obsd-tdep.o): New dependency.
11629 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
11630 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
11631 * config/sparc/obsd64.mt: New file.
11632
690668cc
MK
11633 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
11634 read the instruction at PC.
11635
7e5e9f88
MK
11636 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
11637 value of GDB_OSABI_DEFAULT.
11638 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
11639 instead of GDB_OSABI_NETBSD_AOUT.
11640
68b6dce9
NR
116412004-01-24 Nick Roberts <nick@nick.uklinux.net>
11642
11643 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
11644 copyright.
11645
080ce8c0
AC
116462004-01-23 Andrew Cagney <cagney@redhat.com>
11647
11648 * printcmd.c (display_command): Replace tui_set_display call with
11649 tui_set_layout_for_display_command.
11650 * tui/tui.h (enum tui_win_type): Define.
11651 (tui_set_layout): Delete declaration.
11652 (tui_set_layout_for_display_command): Rename set_tui_layout.
11653 * tui/tui-data.h (enum tui_layout_type): Define.
11654 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
11655 "tui.h".
11656 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
11657 (tui_default_win_height): Rename tuiDefaultWinHeight.
11658 (tui_default_win_viewport_height): Rename
11659 tuiDefaultWinViewportHeight.
11660 (tui_set_layout): RenametuiSetLayout.
11661 * tui/tui-layout.c: Update references.
11662 * tui/tui.c: Update references.
11663 * tui/tui-disasm.c: Update references.
11664
b368761e
DC
116652004-01-23 David Carlton <carlton@kealia.com>
11666
11667 Partial workaround for PR c++/1511:
11668 * cp-namespace.c: Include frame.h.
11669 (cp_lookup_transparent_type): New
11670 (cp_lookup_transparent_type_loop): New.
11671 * cp-support.h: Declare cp_lookup_transparent_type.
11672 * symtab.c (basic_lookup_transparent_type): Renamed from
11673 lookup_transparent_type.
11674 (lookup_transparent_type): Replace old body by a call to
11675 current_language->la_lookup_transparent_type.
11676 * symtab.h: Update copyright. Declare
11677 basic_lookup_transparent_type.
11678 * language.h: Update copyright.
11679 (struct language_defn): Add la_lookup_transparent_type.
11680 * language.c: Update copyright.
11681 (unknown_language_defn): Add basic_lookup_transparent_type.
11682 (auto_language_defn): Add basic_lookup_transparent_type.
11683 (local_language_defn): Add basic_lookup_transparent_type.
11684 * ada-lang.c: Update copyright.
11685 (ada_language_defn): Add basic_lookup_transparent_type.
11686 * c-lang.c: Update copyright.
11687 (c_language_defn): Add basic_lookup_transparent_type.
11688 (cplus_language_defn): Add basic_lookup_transparent_type.
11689 (asm_language_defn): Add basic_lookup_transparent_type.
11690 (minimal_language_defn): Add basic_lookup_transparent_type.
11691 * f-lang.c: Update copyright.
11692 (f_language_defn): Add basic_lookup_transparent_type.
11693 * jv-lang.c: Update copyright.
11694 (java_language_defn): Add basic_lookup_transparent_type.
11695 * m2-lang.c: Update copyright.
11696 (m2_language_defn): Add basic_lookup_transparent_type.
11697 * objc-lang.c: Update copyright.
11698 (objc_language_defn): Add basic_lookup_transparent_type.
11699 * p-lang.c: Update copyright.
11700 (p_language_defn): Add basic_lookup_transparent_type.
11701 * scm-lang.c: Update copyright.
11702 (scm_language_defn): Add basic_lookup_transparent_type.
11703 * Makefile.in (cp-namespace.o): Depend on frame.h.
11704
fdde2d81
DC
117052004-01-23 David Carlton <carlton@kealia.com>
11706
11707 Patch for PR c++/1520:
11708 * dwarf2read.c (read_func_scope): Set processing_current_prefix
11709 properly if we have a specification die.
11710 (determine_prefix_aux): Rename from determine_prefix.
11711 (determine_prefix): Like the old determine_prefix, but never
11712 returns NULL.
11713
5b828b6b
TR
117142004-01-23 Theodore A. Roth <troth@openavr.org>
11715
11716 * avr-tdep.c: Update copyright.
11717 (avr_iaddr_p): Delete unused function.
11718 (avr_saddr_p): Delete unused function.
11719
a1b8c067
DC
117202004-01-23 David Carlton <carlton@kealia.com>
11721
11722 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
11723 Fix for PR symtab/1534.
11724
f2cab569
MK
117252004-01-23 Mark Kettenis <kettenis@gnu.org>
11726
11727 * NEWS (New native configurations): Mention OpenBSD/sparc and
11728 OpenBSD/sparc64.
11729 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
11730 * configure.host: Likewise.
11731 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
11732 handler for OpenBSD.
11733 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
11734
642d8300
MK
117352004-01-22 Mark Kettenis <kettenis@gnu.org>
11736
89aac506
MK
11737 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
11738 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
11739
36662fde
MK
11740 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
11741 * cli/cli-cmds.c (shell_escape): Likewise.
11742
642d8300
MK
11743 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
11744 OpenBSD .note.openbsd.ident sections.
11745
fae299cd
DC
117462004-01-22 David Carlton <carlton@kealia.com>
11747
11748 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
11749 get_scope_pc_bounds.
11750 (read_file_scope): Ditto.
11751 (get_scope_pc_bounds): New function, produced by extracting code
11752 from the above two functions, consolidating it, and adding support
11753 for DW_TAG_namespace.
11754
a49d618c
MK
117552004-01-22 Mark Kettenis <kettenis@gnu.org>
11756
11757 * osabi.c (MAX_NOTESZ): New define.
11758 (check_note): New function.
11759 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
11760 check_note.
11761
fe61caab
RM
117622004-01-21 Roland McGrath <roland@redhat.com>
11763
11764 * MAINTAINERS (write after approval): Add myself.
11765
ec145965
EZ
117662004-01-21 Eli Zaretskii <eliz@gnu.org>
11767
11768 * utils.c (init_page_info): Move declarations of `rows' and
11769 `cols' before the __GO32__-specific code. Move the closing brace
11770 outside the #ifdef __GO32__..#endif block.
11771 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
11772
877522db
PB
117732004-01-21 Paul Brook <paul@codesourcery.com>
11774
11775 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
11776 BPSTAT_WHAT_CHECK_SHLIBS.
11777
dbf5be1c
PB
117782004-01-21 Paul Brook <paul@codesourcery.com>
11779
11780 * MAINTAINERS: Add myself to write-after-approval.
11781
81f08b92
AC
117822004-01-20 Andrew Cagney <cagney@redhat.com>
11783
5a1efed7
AC
11784 * ax-gdb.c (print_axs_value): Delete unused function.
11785 * jv-lang.c (java_lookup_type): Delete unused function.
11786 * cli/cli-dump.c (dump_filetype): Delete unused function.
11787 * remote-mips.c (remote_mips_insert_hw_breakpoint)
11788 (remote_mips_remove_hw_breakpoint): Delete unused functions.
11789 (mips_getstring): Delete unused function.
11790 (pmon_insert_breakpoint): Delete #if0ed function.
11791 (PMON_MAX_BP): Delete #if0ed MACRO.
11792 (mips_pmon_bp_info): Delete #if0ed variable.
11793 (pmon_remove_breakpoint): Delete #if0ed function.
11794 * monitor.c (monitor_write_even_block): Delete unused function.
11795 (monitor_write_memory_block): Delete #if0ed code.
11796 * dink32-rom.c (dink32_load): Delete unused function.
11797 (_initialize_dink32_rom): Delete #if0ed code.
11798 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
11799
b0a30fce
AC
11800 * tui/tui-command.c: Update references.
11801 * tui/tui-io.c: Update references.
11802 * tui/tui-command.h: Update copyright.
11803 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
11804
81f08b92
AC
11805 * source.c (ambiguous_line_spec): Delete never-defined function.
11806 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
11807 * gdbtypes.c (add_name, add_mangled_type): Ditto.
11808 * cli/cli-cmds.c (validate_comname): Ditto.
11809
65f05602
AC
11810 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
11811 "tui-data.h".
11812 (tui_set_disassem_content): Rename tuiSetDisassemContent.
11813 (tui_show_disassem): Rename tuiShowDisassem.
11814 (tui_show_disassem_and_update_source): Rename
11815 tuiVerticalDisassemScroll.
11816 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
11817 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
11818 * tui/tui.h: Update copyright.
11819 (enum tui_status): Define.
11820 * tui/tui-data.h (enum tui_scroll_direction): Define.
11821 * tui/tui-disasm.c: Update copyright. Update references.
11822 * tui/tui-winsource.c: Update copyright. Update references.
11823 * tui/tui-win.c: Update references.
11824 * tui/tui-layout.c: Update references.
11825
6bb0384f
AC
118262004-01-20 Andrew Cagney <cagney@redhat.com>
11827
11828 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
11829 sym2 to start of block.
11830
9175c9a3
MC
118312004-01-19 Michael Chastain <mec.gnu@mindspring.com>
11832
11833 * MAINTAINERS: Delete mmalloc.
11834 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
11835 * NEWS: Mention removal of --with-malloc.
11836 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
11837 * config.in: Regenerate.
11838 * configure: Regenerate.
6bb0384f
AC
11839 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
11840 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
11841 * gdbinit.in: Remove mmalloc.
11842 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
11843 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
11844 * config/i386/go32.mh: Likewise.
11845 * config/i386/interix.mh: Likewise.
11846 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
11847
4fcef00a
JJ
118482004-01-19 Jeff Johnston <jjohnstn@redhat.com>
11849
11850 * linespec.c (decode_variable, symtab_from_filename): Call
11851 error_silent with error message instead of throwing an exception
11852 directly.
11853 * defs.h (error_silent, error_output_message): Add prototypes.
11854 (catch_exceptions_with_msg): Ditto.
11855 * utils.c (error_silent, error_output_message): New functions.
11856 * top.c (catch_exceptions_with_msg): New function.
11857
8e94b928
NR
118582004-01-20 Nick Roberts <nick@nick.uklinux.net>
11859
11860 * mi/mi-cmds.h (enum print_values): Add definition.
11861
11862 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
11863 type and value for simple data types and just the name and type
11864 for complex ones, if required.
11865
11866 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
11867 children, if required.
11868
a02d6af8
KB
118692004-01-19 Kevin Buettner <kevinb@redhat.com>
11870
11871 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
11872 unused declarations.
11873
78a4a9b9
AC
118742004-01-19 Andrew Cagney <cagney@redhat.com>
11875
11876 * top.h (mapped_symbol_files): Delete declaration.
11877 * main.c (captured_main): Delete option "m" and "mapped".
11878 * objfiles.c (mapped_symbol_files): Delete variable.
11879 * symfile.c (symbol_file_command): Delete mmap code.
11880 (symbol_file_add_with_addrs_or_offsets): Ditto.
11881 (add_symbol_file_command, reread_separate_symbols): Ditto.
11882 * objfiles.h (OBJF_MAPPED): Delete.
11883 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
11884 (free_objfile) [USE_MMALLOC]: Ditto.
11885 (open_existing_mapped_file): Delete function.
11886 (open_mapped_file): Delete function.
11887 (map_to_file): Delete function.
11888
2dbd5e30
KB
118892004-01-19 Kevin Buettner <kevinb@redhat.com>
11890
11891 * infrun.c (step_into_function): Account for possible breakpoint
11892 adjustment when computing ``stop_func_start''.
11893
437b434f
KB
118942004-01-19 Kevin Buettner <kevinb@redhat.com>
11895
11896 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
11897 the region size against the size of a pointer, not the size of
11898 a register as given by DEPRECATED_REGISTER_SIZE.
11899
55fb0713
AC
119002004-01-19 Andrew Cagney <cagney@redhat.com>
11901
11902 * tui/tui-regs.h: Include "tui-data.h".
11903 (tuiFirstRegElementNoInLine): Delete declaration.
11904 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
11905 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
11906 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
11907 (tui_calculate_regs_column_count): Rename
11908 tuiCalculateRegsColumnCount.
11909 (tui_check_register_values): Rename tuiCheckRegisterValues.
11910 (tui_show_registers): Rename tuiShowRegisters.
11911 (tui_display_registers_from_line): Rename
11912 tuiDisplayRegistersFromLine.
11913 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
11914 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
11915 (tui_first_reg_element_no_inline): Rename
11916 tuiFirstRegElementNoInLine.
11917 * tui/tui-data.h: Update copyright.
11918 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
11919 * tui/tui-windata.c: Update copyright, update references.
11920 * tui/tui-regs.c: Update copyright, update references.
11921 * tui/tui-win.c: Update copyright, update references.
11922 * tui/tui-layout.c: Update copyright, update references.
fe61caab 11923
cebe9500
AC
119242004-01-18 Andrew Cagney <cagney@redhat.com>
11925
bcdf1568
AC
11926 * tui/tui-io.c: Update copyright.
11927 (key_is_end_sequence, key_is_backspace): New functions.
11928 (key_is_command_char, key_is_start_sequence): New function.
11929 (tui_getc): Update references.
11930 * tui/tui-io.h: Update copyright.
11931 (m_tuiStartNewLine): Delete macro.
11932 (m_isBackspace, m_isDeleteChar): Delete macros.
11933 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
11934 (m_isNextPage, m_isPrevPage): Delete macros.
11935 (m_isLeftArrow, m_isRightArrow): Delete macros.
11936 (m_isXdbStyleCommandChar): Delete macro.
11937 (key_is_start_sequence): Declare, replace m_isStartSequence.
11938 (key_is_end_sequence): Declare, replace m_isEndSequence.
11939 (key_is_backspace): Declare ,replace m_isBackspace.
11940 (key_is_command_char): Declare, replace m_isCommandChar.
11941 * tui/tui-command.c: Update copyright.
11942 (tuiDispatchCtrlChar): Update references.
11943
130d87e6
AC
11944 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
11945 tuiSourceWin.h.
11946
d7b2e967
AC
11947 * tui/tui-command.c: Rename tui/tuiCommand.c.
11948 * tui/tui-command.h: Rename tui/tuiCommand.h.
11949 * tui/tui-data.c: Rename tui/tuiData.c.
11950 * tui/tui-data.h: Rename tui/tuiData.h.
11951 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
11952 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
11953 * tui/tui-io.c: Rename tui/tuiIO.c.
11954 * tui/tui-io.h: Rename tui/tuiIO.h.
11955 * tui/tui-layout.c: Rename tui/tuiLayout.c.
11956 * tui/tui-layout.h: Rename tui/tuiLayout.h.
11957 * tui/tui-regs.c: Rename tui/tuiRegs.c.
11958 * tui/tui-regs.h: Rename tui/tuiRegs.h.
11959 * tui/tui-source.c: Rename tui/tuiSource.c.
11960 * tui/tui-source.h: Rename tui/tuiSource.h.
11961 * tui/tui-stack.c: Rename tui/tuiStack.c.
11962 * tui/tui-stack.h: Rename tui/tuiStack.h.
11963 * tui/tui-win.c: Rename tui/tuiWin.c.
11964 * tui/tui-win.h: Rename tui/tuiWin.h.
11965 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
11966 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
11967 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
11968 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
11969 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
11970 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
11971 * tui/tui-file.c: Update includes.
11972 * tui/tui-hooks.c: Update includes.
11973 * tui/tui-interp.c: Update includes.
11974 * tui/tui.c: Update includes.
11975 * Makefile.in: Update all tui/ dependencies.
11976 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
11977
b2100910
AC
11978 * Makefile.in: Update copyright. Update dependencies.
11979
cebe9500
AC
11980 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
11981 problem.
11982
c6f0559b
AC
119832004-01-18 Andrew Cagney <cagney@redhat.com>
11984
43e9390b
AC
11985 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
11986 instead of register_gdbarch_init.
11987
c6f0559b
AC
11988 * remote-sds.c (tohex): Delete unused function. Update copyright.
11989 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
11990 * v850-tdep.c (v850_register_virtual_size): Ditto.
11991 * target.c (normal_target_post_startup_inferior): Ditto.
11992 * source.c (ambiguous_line_spec): Ditto.
11993 * remote.c (adapt_remote_get_threadinfo): Ditto.
11994 * mi/mi-out.c (out_field_fmt): Ditto.
11995 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
11996 (output_control_change_notification): Ditto.
11997 * m68k-tdep.c (m68k_register_byte): Ditto.
11998 (m68k_remote_breakpoint_from_pc): Ditto.
11999 * ui-out.c (init_ui_out_state): Delete unused declaration.
12000 * stabsread.c (search_value): Ditto.
12001 * mi/mi-cmd-env.c (env_cli_command): Ditto.
12002 * maint.c (print_section_table): Ditto.
12003 * infrun.c (set_follow_fork_mode_command): Ditto.
12004
a8504492
MK
120052004-01-18 Mark Kettenis <kettenis@gnu.org>
12006
12007 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
12008 DW_CFA_def_cfa_exporession. Add support for
12009 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
12010 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
12011
0bd8997e
AC
120122004-01-18 Andrew Cagney <cagney@redhat.com>
12013
12014 * ocd.c: Update copyright.
12015 (bdm_read_register_command): Delete unused function.
12016 (_initialize_remote_ocd): Delete commented out reference.
12017 (get_quoted_char, reset_packet): Delete #if0ed function.
12018 (output_packet, put_quoted_char): Delete #if0ed function.
12019 (stu_put_packet, stu_get_packet): Delete #if0ed function.
12020 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
12021 (BDM_BREAKPOINT): Delete #if0ed macro.
12022 (remote_timeout): Delete #if0ed variable.
12023
31bb40e4
MK
120242004-01-18 Mark Kettenis <kettenis@gnu.org>
12025
12026 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
12027 (core-sol2.o): Remove dependency.
12028 * core-sol2.c: Remove file.
12029
887432a5
AC
120302004-01-17 Andrew Cagney <cagney@redhat.com>
12031
12032 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
12033 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
12034 enums.
12035
29182b13
DJ
120362004-01-17 Daniel Jacobowitz <drow@mvista.com>
12037
12038 * remote.c: Update copyright years.
12039
2963ee1d
DJ
120402004-01-17 Daniel Jacobowitz <drow@mvista.com>
12041
12042 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
12043
79d45cd4
AC
120442004-01-17 Andrew Cagney <cagney@redhat.com>
12045
ee300cd4
AC
12046 * mdebugread.c: Update copyright.
12047 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
12048 (parse_type, parse_procedure): Ditto.
12049 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
12050
fcacc9c2
AC
12051 * cris-tdep.c (cris_store_struct_return): Put back accidently
12052 deleted function.
12053
79d45cd4
AC
12054 * gdbarch.sh: Update copyright year.
12055 * gdbarch.h, gdbarch.c: Re-generate.
12056
b263358a
DJ
120572004-01-17 Daniel Jacobowitz <drow@mvista.com>
12058
12059 Suggested by George Anzinger.
12060 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
12061 correct stack offset. Include unknown opcode numbers in the error
12062 message.
12063
931aecf5
AC
120642004-01-17 Andrew Cagney <cagney@redhat.com>
12065
12066 * x86-64-tdep.c (x86_64_init_abi): No need to clear
12067 extract_struct_value_address, i386 does not set it.
12068 * sparc64-tdep.c (sparc64_init_abi): Do not set
12069 extract_struct_value_address, never called.
12070 (sparc64_extract_struct_value_address): Delete function.
12071 * m68hc11-tdep.c: Update copyright.
12072 (m68hc11_gdbarch_init): Delete redundant assignment of
12073 extract_struct_value_address.
12074 * i386-tdep.c: Update copyright.
12075 (i386_gdbarch_init): Do not set extract_struct_value_address,
12076 never called.
12077 (i386_extract_struct_value_address): Delete function.
12078 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
12079 extract_struct_value_address, never called.
12080 (sparc32_extract_struct_value_address): #if 0 function. Add
12081 comments explaining its future.
12082
756fe439
DJ
120832004-01-17 Daniel Jacobowitz <drow@mvista.com>
12084
12085 * arm-tdep.c (arm_write_pc): New function.
12086 (arm_gdbarch_init): Call set_gdbarch_write_pc.
12087
e74f0f02
DJ
120882004-01-17 Daniel Jacobowitz <drow@mvista.com>
12089
12090 * breakpoint.c (must_shift_inst_regs): Delete.
12091 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
12092 and SHIFT_INST_REGS.
12093 * infcmd.c (step_1, step_1_continuation): Delete references to
12094 SHIFT_INST_REGS.
12095 * infrun.c (keep_going): Likewise.
12096 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
12097 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
12098
b6cb9035
AC
120992004-01-17 Andrew Cagney <cagney@redhat.com>
12100
444a1e2e
AC
12101 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12102 * gdbarch.h, gdbarch.c: Re-generate.
12103 * infcmd.c (print_return_value): Delete reference to
12104 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
12105
def7e6ed
AC
12106 * cris-tdep.c (cris_gdbarch_init): Do not set
12107 deprecated_extract_struct_value_address.
12108
07be497a
AC
12109 * xstormy16-tdep.c: Update copyright.
12110 (xstormy16_extract_struct_value_address): Update to current
12111 extract struct value address interface.
12112 (xstormy16_gdbarch_init): Set extract_struct_value_address.
12113 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
12114 current extract struct value address interface.
12115 (sh64_gdbarch_init): Set extract_struct_value_address.
12116
6b4d5c91
AC
12117 * cris-tdep.c: Update copyright.
12118 (cris_extract_struct_value_address): Delete function.
12119 (struct_return_address): Delete variable.
12120 (cris_store_struct_return): Do not set struct_return_address.
12121
464e0365
AC
12122 * mcore-tdep.c: Update copyright.
12123 (mcore_extract_struct_value_address): Delete function. Update
12124 comments.
12125 (mcore_gdbarch_init): Update.
12126 * mn10300-tdep.c: Update copyright.
12127 (mn10300_extract_struct_value_address): Delete function.
12128 (mn10300_gdbarch_init): Update.
12129 * v850-tdep.c: Update copyright.
12130 (v850_extract_struct_value_address): Delete.
12131 (v850_gdbarch_init): Update.
12132 * ns32k-tdep.c: Update copyright.
12133 (ns32k_extract_struct_value_address): Delete.
12134 (ns32k_gdbarch_init): Update.
12135 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
12136 (hppa_gdbarch_init): Update.
12137 * vax-tdep.c: Update copyright.
12138 (vax_extract_struct_value_address): Delete.
12139 (vax_gdbarch_init): Update.
12140
afb18d0f
AC
12141 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
12142 * gdbarch.h, gdbarch.c: Re-generate.
12143 * procfs.c (procfs_fetch_registers): Delete reference to
12144 DEPRECATED_NPC_REGNUM.
12145 (procfs_store_registers): Ditto.
12146 * regcache.c (generic_target_write_pc): Simplify.
12147 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
12148
a698f53e
AC
12149 * core-sol2.c (fetch_core_registers): Replace
12150 DEPRECATED_NPC_REGNUM with equivalent tdep value.
12151
adc11376
AC
12152 * hppa-tdep.c: Update copyright year.
12153 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
12154 NPC_REGNUM.
12155 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
12156
b6cb9035
AC
12157 * mips-tdep.c (mips_write_pc): New function.
12158 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
12159 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
12160 (mips_find_saved_regs, mips_software_single_step: Ditto.
12161 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
12162 mips_init_extra_frame_info, mips_pop_frame): Ditto.
12163
6d82d43b
AC
121642004-01-17 Andrew Cagney <cagney@redhat.com>
12165
12166 * mips-tdep.c: Re-indent. Group functions by ABI.
12167
71bd6bd4
AC
121682004-01-17 Andrew Cagney <cagney@redhat.com>
12169
12170 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
12171 * gdbarch.c: Re-generate.
12172 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12173 DECR_PC_AFTER_BREAK to zero.
12174 * vax-tdep.c (vax_gdbarch_init): Ditto.
12175 * v850-tdep.c (v850_gdbarch_init): Ditto.
12176 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12177 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12178 * sh-tdep.c (sh_gdbarch_init): Ditto.
12179 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12180 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12181 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12182 * mips-tdep.c (mips_gdbarch_init): Ditto.
12183 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12184 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12185 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12186 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12187 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12188 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12189 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12190 * frv-tdep.c (frv_gdbarch_init): Ditto.
12191 * cris-tdep.c (cris_gdbarch_init): Ditto.
12192 * avr-tdep.c (avr_gdbarch_init): Ditto.
12193 * arm-tdep.c (arm_gdbarch_init): Ditto.
12194 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
12195
a02abb62
JB
121962004-01-17 J. Brobecker <brobecker@gnat.com>
12197
12198 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
12199 Delete, no longer used.
12200 (read_subrange_type): New function, mostly extracted from
12201 read_array_type().
12202 (read_array_type): Replace extracted code by call to
12203 read_subrange_type().
12204 (dwarf2_get_attr_constant_value): New function.
12205 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
12206 (add_partial_symbol): Likewise.
12207 (process_die): Likewise.
12208 (new_symbol): Likewise.
12209 (read_type_die): Likewise.
12210
cf5b2f1b
AC
122112004-01-16 Andrew Cagney <cagney@redhat.com>
12212
12213 * symfile.c: Update copyright year.
12214 (compare_symbols): Delete unused function.
12215 * stabsread.c: Update copyright year.
12216 (lrs_general_complaint): Delete unused function.
12217 (ref_search_value): Ditto.
12218 (get_substring): Delete declaration.
12219 * sh64-tdep.c: Update copyright year.
12220 (sh64_get_gdb_regnum): Delete unused function.
12221 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
12222 Delete unused function.
12223
d33b9831
MK
122242004-01-17 Mark Kettenis <kettenis@gnu.org>
12225
12226 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
12227 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
12228
7aea86e6
AC
122292004-01-16 Andrew Cagney <cagney@redhat.com>
12230
12231 Changes from Peter Schauer.
12232 * rs6000-tdep.c: Update copyright year.
12233 (rs6000_push_dummy_call): Update the stack pointer before
12234 accessing the corresponding stack region.
12235 * rs6000-nat.c: Update copyright year.
12236 (set_host_arch): Set "info.abfd" to "exec_bfd".
12237
26b0da32
MK
122382004-01-15 Mark Kettenis <kettenis@gnu.org>
12239
12240 * blockframe.c: Update copyright year.
12241 (inside_entry_func): Don't treat a zero PC specially.
12242
86fbe6cc
EZ
122432004-01-14 Elena Zannoni <ezannoni@redhat.com>
12244
12245 * gcore.c (gcore_copy_callback): Use paddr_d to print size
12246 variable.
12247 (gcore_create_callback): Ditto. Skip any memory segment that has
12248 no permissions set.
12249
63d06c5c
DC
122502004-01-14 David Carlton <carlton@kealia.com>
12251
12252 Change symbols for C++ nested types to contain the fully qualified
12253 name, if possible. (At least in the DWARF-2 case.) Partial fix
12254 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
12255 c++/895.
12256 * c-exp.y (qualified_type): Handle types nested within classes.
12257 * cp-namespace.c: Update comments.
12258 (cp_set_block_scope): Delete #if 0.
12259 (cp_lookup_nested_type): Handle types nested within classes.
12260 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
12261 when appropriate.
12262 (add_partial_symbol): Add the name of the enclosing namespace to
12263 types.
12264 (pdi_needs_namespace): New.
12265 (add_partial_namespace): Tweak comment.
12266 (add_partial_structure): New.
12267 (psymtab_to_symtab_1): Initialize processing_current_prefix
12268 here...
12269 (process_die): instead of here.
12270 (read_structure_scope): Try to figure out the name of the class or
12271 namespace that the structure might be defined within.
12272 (read_enumeration): Generate fully-qualified names, if possible.
12273 (read_namespace): Don't set name to NULL.
12274 (die_specification): New.
12275 (new_symbol): Generate fully-qualified names for types.
12276 (read_type_die): Determine appropriate prefix.
12277 (determine_prefix): New.
12278 (typename_concat): New.
12279 (class_name): New.
12280 * valops.c (value_aggregate_elt): Pass NOSIDE to
12281 value_struct_elt_for_reference.
12282 (value_struct_elt_for_reference): Make static, add NOSIDE
12283 parameter, call value_maybe_namespace_elt as a last resort.
12284 (value_namespace_elt): Break out code into
12285 value_maybe_namespace_elt.
12286 (value_maybe_namespace_elt): New.
12287
87783b8b
AC
122882004-01-12 Andrew Cagney <cagney@redhat.com>
12289
12290 * mips-tdep.c (mips_convert_register_p): Handle both raw and
12291 cooked floating-point registers.
12292 (mips_gdbarch_init): Set convert_register_p, register_to_value,
12293 and value_to_register.
12294
6503b91e
AC
122952004-01-13 Andrew Cagney <cagney@redhat.com>
12296
12297 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
12298 * gdbarch.c: Re-generate.
12299 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12300 FUNCTION_START_OFFSET.
12301 * v850-tdep.c (v850_gdbarch_init): Ditto.
12302 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12303 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12304 * sh-tdep.c (sh_gdbarch_init): Ditto.
12305 * s390-tdep.c (s390_gdbarch_init): Ditto.
12306 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12307 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12308 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12309 * mips-tdep.c (mips_gdbarch_init): Ditto.
12310 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12311 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
12312 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12313 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12314 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12315 * i386-tdep.c (i386_gdbarch_init): Ditto.
12316 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12317 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12318 * frv-tdep.c (frv_gdbarch_init): Ditto.
12319 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12320 * cris-tdep.c (cris_gdbarch_init): Ditto.
12321 * avr-tdep.c (avr_gdbarch_init): Ditto.
12322 * arm-tdep.c (arm_gdbarch_init): Ditto.
12323 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12324
ea1dd7bc
DJ
123252004-01-13 Daniel Jacobowitz <drow@mvista.com>
12326
12327 * infrun.c (follow_fork_mode_ask): Remove.
12328 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
12329 (follow_fork): Simplify and remove internal error for
12330 follow_fork_mode_ask.
12331 (_initialize_infrun): Update "set follow-fork-mode" help text.
12332
0f0cffd2
AC
123332004-01-13 Andrew Cagney <cagney@redhat.com>
12334
12335 * configure.in: Update copyright year.
12336 (build_warnings): Add -Wunused-label.
12337 * configure: Re-generate.
12338
de38af99
AC
123392004-01-12 Andrew Cagney <cagney@redhat.com>
12340
954a7fba
AC
12341 * exec.h (exec_ops): Make "extern".
12342
de38af99
AC
12343 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
12344 the function is void.
12345 (mips_pseudo_register_write): Ditto.
12346
1a111ce3
AC
123472004-01-12 Andrew Cagney <cagney@redhat.com>
12348
12349 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
12350 call. Never defined.
12351 * sparc-tdep.h (struct frame_info): Add opaque declaration.
12352 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
12353 (struct sparc_gregset, struct regcache): Ditto.
12354 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
12355
48efe704
AC
123562004-01-12 Andrew Cagney <cagney@redhat.com>
12357
12358 * mi/ChangeLog: Delete file. Renamed to ...
12359 * mi/ChangeLog-1999-2003: New file.
12360 * tui/ChangeLog: Delete file. Renamed to ...
12361 * tui/ChangeLog-1998-2003: New file.
fe61caab 12362
a54124c5
MK
123632004-01-11 Mark Kettenis <kettenis@gnu.org>
12364
2ca62865
MK
12365 * sparc64nbsd-tdep.c: Include "regset.h".
12366 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
12367 Remove variables.
12368 (fetch_core_registers): Remove function.
12369 (sparc64nbsd_core_fns): Remove variable.
12370 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
12371 functions.
12372 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
12373 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
12374 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
12375
ca9d58e9
MK
12376 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
12377 sparc_extract_struct_value_address.
12378 (sparc32_gdbarch_init): Set extract_struct_value_address.
12379 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
12380 function.
12381 (sparc64_init_abi): Set extract_struct_value_address. Don't set
12382 return_value_on_stack.
12383
3cc87ec0
MK
12384 * NEWS: Mention that %cs and %ss have been added to the AMD64
12385 configurations
12386
5bf00f29
MK
12387 * frame.c: Update copyright year.
12388 (get_prev_frame): Improve comment.
12389
4f7ec84e
MK
12390 * sparc64fbsd-tdep.c: Include "regset.h".
12391 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12392 Remove variables.
12393 (fetch_core_registers): Remove function.
12394 (sparc64fbsd_core_fns): Remove variable.
12395 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
12396 functions.
12397 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
12398 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 12399 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 12400
4e7b0cd3
MK
12401 * sparcnbsd-tdep.c: Include "regset.h".
12402 (fetch_core_registers): Remove function.
12403 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
12404 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
12405 functions.
12406 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
12407 TDEP->fpregset.
46b58ce9 12408 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 12409
a54124c5
MK
12410 * sparc-tdep.h (struct regset): Provide opaque declaration.
12411 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
12412 fpregset and sizeof_fpregset members.
12413 * sparc-tdep.c (struct regset): Provide opaque declaration.
12414 (sparc_regset_from_core_section): New function.
12415 (sparc32_gdbarch_init): Initialize TDEP->gregset,
12416 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
12417 Set regset_from_core_section when appropriate.
12418
29ff87c5
MK
124192004-01-10 Mark Kettenis <kettenis@gnu.org>
12420
79b1ab3d
MK
12421 * x86-64-tdep.c (amd64_non_pod_p): New function.
12422 (amd64_classify_aggregate): Return class memory for non-POD
12423 C++ structure types.
12424
6470d250
MK
12425 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
12426 argument. Use it to reserve a register if necessary.
12427 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
12428 amd64_push_arguments.
12429
562c50c2
MK
12430 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
12431
af233647
MK
12432 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
12433 register numbers in comments.
12434 * x86-64-tdep.h: Update copyright year.
12435 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
12436 Adjust for addition of %cs and %ss.
12437 * amd64fbsd-nat.c: Update copyright year.
12438 (reg_offset): Add register offsets for %cs and %ss.
12439 * amd64fbsd-tdep.c: Update copyright year.
12440 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
12441 (amd64fbsd_sc_reg_offset): Likewise.
12442 * x86-64-linux-nat.c: Update copyright year.
12443 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
12444 and %ss.
12445 * amd64nbsd-nat.c: Update copyright year.
12446 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
12447 * amd64nbsd-tdep.c: Update copyright year.
12448 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
12449 * x86-64-linux-tdep.c: Update copyright year.
12450 (user_to_gdb_regmap): Add mapping for %cs and %ss.
12451 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
12452 * regformats/reg-x86-64.dat: Add %cs and %ss.
12453
29ff87c5
MK
12454 * blockframe.c (inside_entry_func): Reformat. Introduce new local
12455 variables to prevent long lines. Update comments to reflect
12456 reality.
12457
38d518c9
EZ
124582004-01-09 David Carlton <carlton@kealia.com>
12459
12460 Checked in by Elena Zannoni <ezannoni@redhat.com>.
12461 * dwarf2read.c (read_namespace): Pull out name-generating code
12462 into namespace_name. Rename previous_namespace to previous_prefix
12463 and processing_current_namespace to processing_current_prefix..
12464 (namespace_name): New function.
12465 (add_partial_symbol): Substitute uses of pdi->name with
12466 actual_name.
12467 * cp-support.h: Rename processing_current_namespace to
12468 processing_current_prefix.
12469 Update copyright year.
12470 * cp-namespace.c: Rename processing_current_namespace to
12471 processing_current_prefix.
12472 Update copyright year.
fe61caab 12473
1e4728e7
AC
124742004-01-09 Andrew Cagney <cagney@redhat.com>
12475
12476 * jv-valprint.c, ser-unix.c: Add missing copyright years.
12477
c77c642a
MK
124782004-01-09 Mark Kettenis <kettenis@gnu.org>
12479
12480 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
12481 complaining.
12482 (process_one_symbol): Deal with N_PATCH stabs.
12483
b44e9041
EZ
124842004-01-09 Elena Zannoni <ezannoni@redhat.com>
12485
12486 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
12487 ifdeffed code.
12488 Update copyright year.
38d518c9 12489
eccfb640
MC
124902004-01-08 Michael Chastain <mec.gnu@mindspring.com>
12491
12492 * config/pa/tm-hppa.h: Update extern declarations for
12493 hppa32_hpux_frame_saved_pc_in_sigtramp,
12494 hppa32_hpux_frame_base_before_sigtramp, and
12495 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
12496
848c5feb
MC
124972004-01-08 Michael Chastain <mec.gnu@mindspring.com>
12498
12499 * config/pa/tm-hppah.h: Update copyright years.
12500
3cc5d663
AC
125012004-01-08 Andrew Cagney <cagney@redhat.com>
12502
12503 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
12504 (mips_o32_reg_struct_has_addr): Delete function.
12505 (mips_gdbarch_init): Update.
12506 (mips_extract_struct_value_address): Delete function.
12507
bfec0b41
JJ
125082004-01-08 David Mosberger <davidm@hpl.hp.com>
12509
12510 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
12511 reality.
12512
16e109ca
AC
125132004-01-07 Andrew Cagney <cagney@redhat.com>
12514
6214a8a1
AC
12515 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
12516 architecture's elf flags (when available).
12517
8d5838b5
AC
12518 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
12519 FPU to the start, check the MIPS FPU when looking for an old
12520 architecture.
12521 (set_mipsfpu_single_command): Update the architecture.
12522 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
12523
480d3dd2
AC
12524 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
12525 (mips_mask_address_p): Add "tdep" parameter.
12526 (show_mask_address, mips_addr_bits_remove): Update.
12527 (mips_dump_tdep): Update.
12528 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
12529 (MIPS_STACK_ARGSIZE): Delete macro.
12530 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
12531 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
12532 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
12533 (mips_dump_tdep): Update.
12534 (MIPS_SAVED_REGSIZE): Delete macro.
12535 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
12536 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
12537 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
12538 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
12539 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
12540 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
12541 (mips_pop_frame, return_value_location): Update.
12542 (mips_n32n64_return_value, mips_dump_tdep): Update.
12543
ec03c1ac
AC
12544 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
12545 MIPS ABI.
12546
16e109ca
AC
12547 * mips-tdep.c: Update copyright.
12548 (mips_gdbarch_init): Merge two code blocks handling the register
12549 name and number layout.
12550
15255275
MS
125512004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
12552
12553 * tracepoint.c (validate_actionline): Fix segv at EOF
12554
9f9057da
MC
125552004-01-07 Michael Chastain <mec.gnu@mindspring.com>
12556
12557 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
12558 properly for static fields.
12559
0127c0d3 125602004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 12561 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
12562
12563 * disasm.c: Update copyright to include 2004.
12564 (do_mixed_source_and_assembly): For uiout asm list
12565 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 12566 NULL and do so prior to loop. Only reset when we close off
0127c0d3 12567 the tuple/list. Move check for whether to close off the
fe61caab 12568 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
12569 on each loop iteration.
12570
5269965e
AC
125712004-01-05 Andrew Cagney <cagney@redhat.com>
12572
54f1137d
AC
12573 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
12574 should be a switch case and not a label.
12575 * mips-tdep.c (mips32_next_pc): Delete unused labels
12576 "greater_equal_branch" and "less_zero_branch".
12577 * jv-valprint.c (java_print_value_fields): Delete unused label
12578 "flush_it".
12579
5269965e
AC
12580 * target.c (unpush_target): Only close a target that is in the
12581 target stack.
12582
dbc22fa1
MK
125832004-01-05 Mark Kettenis <kettenis@gnu.org>
12584
9515395e
MK
12585 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
12586 address from [sp + 64] instead of %o2.
12587
dbc22fa1
MK
12588 * frame.c (get_prev_frame): Don't try to unwind the PC. This
12589 fixes PR backtrace/1476.
12590
5439edaa
AC
125912004-01-05 Andrew Cagney <cagney@redhat.com>
12592
12593 * libunwind-frame.h (struct frame_id): Add opaque declaration,
12594 move to start of file.
12595 * i386-tdep.h (struct regcache): Add opaque declaration.
12596 * config/ia64/nm-linux.h (struct target_ops): Add opaque
12597 declaration.
12598 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
12599 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
12600 * win32-nat.c (fake_create_process): Use ISO C style definition.
12601 * stabsread.c (define_symbol): Delete #ifndef
12602 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
12603 stabs_argument_has_addr call, macro never defined.
12604
19061abe
MC
126052004-01-04 Michael Chastain <mec.gnu@mindspring.com>
12606
12607 * op50-rom.c: Delete.
12608 * w89k-rom.c: Delete.
12609 * Makefile.in: Remove references.
12610
e53bef9f
MK
126112004-01-04 Mark Kettenis <kettenis@gnu.org>
12612
12613 * x86-64-tdep.c: Update copyright year.
12614 (struct amd64_register_info): Rename from x86_64_register_info.
12615 (amd64_register_info): Rename from x86_64_register_info.
12616 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
12617 (amd64_register_name): Rename from x86_64_register_name.
12618 (amd64_register_type): Rename from x86_64_register_type.
12619 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
12620 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
12621 (amd64_dwarf_reg_to_regnum): Rename from
12622 x86_64_dwarf_reg_to_regnum.
12623 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
12624 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
12625 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
12626 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
12627 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
12628 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
12629 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
12630 (amd64_frame_cache): Rename from x86_64_frame_cache.
12631 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
12632 (amd64_frame_prev_register): Rename from
12633 x86_64_frame_prev_register.
12634 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
12635 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
12636 (amd64_sigtramp_frame_cache): Rename from
12637 x86_64_sigtramp_frame_cache.
12638 (amd64_sigtramp_frame_prev_register): Rename from
12639 x86_64_sigtramp_frame_prev_register.
12640 (amd64_sigtramp_frame_unwind): Rename from
12641 x86_64_sigtramp_frame_unwind.
12642 (amd64_sigtramp_frame_sniffer): Rename from
12643 x86_64_sigtramp_frame_sniffer.
12644 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
12645 (amd64_frame_base): Rename from x86_64_frame_base.
12646 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
12647 (amd64_frame_align): Rename from x86_64_frame_align.
12648 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
12649 (amd64_regset_from_core_section): Rename from
12650 x86_64_regset_from_core_section.
12651 (x86_64_init_abi): Update comments.
12652
fca6aa58
NR
126532004-01-04 Nick Roberts <nick@nick.uklinux.net>
12654
12655 * MAINTAINERS (write after approval): Add myself.
12656
8ada74e3
MK
126572004-01-04 Mark Kettenis <kettenis@gnu.org>
12658
12659 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
12660 `float' arguments.
12661
5154b0cd
MK
126622004-01-04 Mark Kettenis <kettenis@gnu.org>
12663
12664 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
12665 such that it mentions a specific version of GCC that exhibits this
12666 bug.
12667
fb316966
MK
126682004-01-03 Mark Kettenis <kettenis@gnu.org>
12669
200cc553
MK
12670 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
12671 structure that has a single `float' member, store it in %f1 in
12672 addition to %f0.
12673
e226a4a0
MK
12674 * sparc-sol2-nat.c: Add missing '\'.
12675
b9d4c5ed
MK
12676 * sparc-tdep.c (sparc32_return_value): New function.
12677 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
12678 Remove functions.
12679 (sparc32_gdbarch_init): Set return_value, don't set
12680 extract_return_value, store_return_value, use_struct_convention
12681 and return_value_on_stack.
12682
fb316966
MK
12683 * sparc-sol2-nat.c: Add missing ')'.
12684
1af510a8
JB
126852004-01-03 J. Brobecker <brobecker@gnat.com>
12686
12687 * infrun.c (handle_step_into_function): New function.
12688 (handle_inferior_event): Extract out some code into the new
12689 function above.
12690
5cf4d23a
JB
126912004-01-03 J. Brobecker <brobecker@gnat.com>
12692
12693 * infrun.c (handle_inferior_event): Move the declaration of
12694 real_stop_pc inside the if blocks where it is used.
12695
60af1db2
MK
126962004-01-03 Mark Kettenis <kettenis@gnu.org>
12697
12698 * sparc64-tdep.c (sparc64_16_byte_align_p)
12699 (sparc64_store_floating_fields, sparc64_store_floating_fields):
12700 Use check_typedef to get subtypes of structures and unions.
12701 (sparc64_store_return_value): Fix calculation of the appropriate
12702 offset into VALBUF when storing a structure or union.
12703 (sparc64_return_value): New function.
12704 (sparc64_use_struct_convention): Remove function.
12705 (sparc64_init_abi): Set return_value, don't set
12706 extract_return_value, store_return_value and
12707 use_struct_convention.
12708
1a901d3f
EZ
127092004-01-03 Eli Zaretskii <eliz@elta.co.il>
12710
12711 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
12712 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
12713 gdb/config/alpha/xm-alphaosf.h,
12714 gdb/config/powerpc/tm-ppcle-eabi.h,
12715 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
12716 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
12717 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
12718 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
12719 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
12720 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
12721 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
12722 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
12723 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
12724 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
12725 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
12726 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
12727 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
12728 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
12729 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
12730 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
12731 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
12732 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
12733 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
12734 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
12735 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
12736 Remove lines for .cvsignore files.
12737
ef52e463
JB
127382004-01-03 J. Brobecker <brobecker@gnat.com>
12739
12740 * infrun.c: Back out the previous change.
12741
cb1bf9dc
MK
127422004-01-03 Mark Kettenis <kettenis@gnu.org>
12743
f0424ef6
MK
12744 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
12745 sparc-*-sunos4* to the list of REMOVED configurations.
12746
cb1bf9dc
MK
12747 * configure.tgt: Add back sparc-*-vxworks*.
12748 * remote-vxsparc.c: Remove all includes except for "defs.h",
12749 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
12750 Include "sparc-tdep.h".
12751 (SPARC_R_G1): New define.
12752 (vxsparc_gregset): New variable.
12753 (ext_format_sparc): Remove extern declaration.
12754 (vx_read_register): Rewrite to use sparc32_supply_gregset and
12755 sparc32_supply_fpregset.
12756 (vx_write_register): Rewrite to use sparc32_collect_gregset,
12757 sparc_collect_rwindow and sparc32_collect_fpregset.
12758 * config/sparc/tm-vxworks.h: New file, based on recently removed
12759 tm-vxsparc.h.
12760 * config/sparc/vxworks.mt: New file, based on recently removed
12761 vxworks.mt.
fe61caab 12762
5e938f9f
JB
127632004-01-03 J. Brobecker <brobecker@gnat.com>
12764
12765 * infrun.c (handle_step_into_function): New function.
12766 (handle_inferior_event): Extract out some code into the new
12767 function above.
12768
386c036b
MK
127692004-01-02 Mark Kettenis <kettenis@gnu.org>
12770
12771 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
12772 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
12773 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
12774 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
12775 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
12776 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
12777 (sparc_nat_h): New variable.
12778 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
12779 (tm-sun4os4.h): Remove dependency.
12780 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
12781 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
12782 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
12783 sparc-tdep.o): Update dependencies.
12784 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
12785 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
12786 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
12787 dependencies.
12788 * configure.host: Remove existing sparc-*-lynxos*,
12789 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
12790 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
12791 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
12792 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
12793 triplets.
12794 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
12795 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
12796 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
12797 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
12798 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
12799 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
12800 sparc64-*-solaris2* and sparc64-*-* triplets.
12801 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
12802 "symtab.h" and "objfiles.h".
12803 (BIAS): Remove define.
12804 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
12805 (X_DISP19): Remove macros.
12806 (sparc_fetch_instruction): Remove function.
12807 (struct gdbarch_tdep): Remove definition.
12808 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
12809 (sparc_breakpoint_from_pc): Remove function.
12810 (struct sparc64_frame_cache): Remove definition.
12811 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
12812 sparc64_unwind_pc): Remove functions.
12813 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
12814 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
12815 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
12816 (sparc64_frame_cache): Change return type to `struct
12817 sparc_frame_cache *'. Simply call sparc_frame_cache.
12818 (sparc64_frame_this_id, sparc64_frame_prev_register,
12819 sparc64_frame_base_address): Use `struct sparc_frame_cache'
12820 instead of `struct sparc64_frame_cache.
12821 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
12822 sparc_analyze_control_transfer, sparc_software_single_step,
12823 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
12824 _initialize_sparc64_tdep): Remove functions.
12825 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
12826 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
12827 macros.
12828 (sparc64_supply_gregset, sparc64_collect_gregset,
12829 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
12830 (sparc64_init_abi): New function.
12831 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
12832 inclusion guard. Include "sparc-tdep.h".
12833 (BIAS): Define.
12834 (r_tstate_offset, r_fprs_offset): New defines.
12835 (enum sparc_regnum): Remove defenition.
12836 (enum sparc64_regnum): Reformat.
12837 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
12838 (sparc64_init_abi, sparc64_supply_gregset,
12839 sparc64_collect_gregset, sparc64_supply_fpregset,
12840 sparc64_collect_fpregset): New prototypes.
12841 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
12842 Add extern declarations.
12843 (sparc64_sol2_init_abi): New prototype.
12844 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12845 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12846 prototypes.
12847 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
12848 "sparnbsd-nat.h".
12849 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
12850 functions.
12851 (_initialize_sparc64fbsd_nat): Remove initialization of
12852 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
12853 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 12854 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
12855 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
12856 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
12857 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
12858 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
12859 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
12860 (sparc64fbsd_r_y_offset): Remove variables.
12861 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12862 Make static and const.
12863 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12864 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12865 functions.
12866 (sparc64fbsd_gregset): New variable.
12867 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
12868 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
12869 and sparc64_supply_fpregset.
12870 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
12871 (sparc64fbsd_sigtramp_frame_this_id)
12872 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
12873 (sparc64fbsd_sigtramp_frame_unwind): New variable.
12874 (sparc64fbsd_sigtramp_frame_sniffer): New function.
12875 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
12876 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
12877 * sparcnbsd-tdep.c: Update copyright year. Include
12878 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
12879 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
12880 "value.h" and "sparcnbsd-tdep.h".
12881 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
12882 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
12883 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
12884 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
12885 defines.
12886 (sparcnbsd_gregset): New variable.
12887 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
12888 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
12889 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
12890 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
12891 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
12892 variables.
12893 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
12894 (sparc32nbsd_sigcontext_frame_this_id)
12895 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
12896 (sparc32nbsd_sigcontext_frame_unwind): New variable.
12897 (sparc32nbsd_sigtramp_frame_sniffer): New function.
12898 (sparcnbsd_get_longjmp_target_32,
12899 sparcnbsd_get_longjmp_target_64): Remove functions.
12900 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
12901 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
12902 sparcnbsd_init_elf): Remove.
12903 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
12904 (sparcnbsd_elf_init_abi): New functions.
12905 (_initialize_sparcnbsd_tdep): New prototype.
12906 (_initialize_sparnbsd_tdep): Update.
12907 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
12908 corelow.o. Add sparc64-nat.o and sparc-nat.o.
12909 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
12910 * config/sparc/linux.mh: Update comment.
12911 (XM_FILE, HOST_IPC): Remove variables.
12912 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
12913 sparc-linux-nat.o.
12914 * config/sparc/linux.mt: Update comment.
12915 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
12916 * config/sparc/nbsd.mt: Reformat.
12917 * config/sparc/nbsd64.mh: Update comment.
12918 (NATDEPFILES): Add sparc-nat.o.
12919 * config/sparc/nbsd64.mt: Update comment.
12920 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
12921 (TM_FILE): Set to tm-nbsd.h.
12922 * config/sparc/nbsdelf.mh: Update comment.
12923 (NATDEPFILES): Add sparc-nat.o.
12924 (XM_FILE): Delete.
12925 * config/sparc/nbsdaout.mh: Update comment.
12926 (NATDEPFILES): Add sparc-nat.o
12927 (XM_FILE): Delete.
12928 * config/sparc/nm-linux.h: Update copyright year. Don't include
12929 "config/nm-svr4.h" and "solib.h". Add protection against multiple
12930 inclusion.
12931 (KERNEL_U_SIZE): Remove define.
12932 (kernel_u_size): Remove prototype.
12933 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
12934 * config/sparc/nm-nbsd.h: Update copyright. Don't include
12935 "regcache.h".
12936 (CHILD_PREPARE_TO_STORE): Remove define.
12937 * config/sparc/nm-nbsdaout.h: Tweak some comments.
12938 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
12939 sparcnbsd-nat.c: Rewrite files.
12940 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
12941 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
12942 sparcnbsd-tdep.h: Remove files.
12943 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
12944 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
12945 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
12946 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
12947 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
12948 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
12949 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
12950 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
12951 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
12952 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
12953 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
12954 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
12955 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
12956 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
12957 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
12958 * config/sparc/linux64.mh, config/sparc/linux64.mt,
12959 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
12960 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
12961 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
12962
ee84457a
AC
129632004-01-02 Andrew Cagney <cagney@redhat.com>
12964
12965 From 2003-12-18 Kazuhiro Inaoka:
12966 * configure.host: Add m32r-linux target.
12967
0bc2134e
MC
129682004-01-02 Michael Chastain <mec.gnu@mindspring.com>
12969
12970 * top.c (print_gdb_version): Update year to 2004.
12971
89a72f9c
MM
129722004-01-02 Mark Mitchell <mark@codesourcery.com>
12973
12974 * MAINTAINERS: Add myself to the write-after-approval category.
12975
86b013ed
DJ
129762004-01-02 Daniel Jacobowitz <drow@mvista.com>
12977
12978 From Bernardo Innocenti <bernie@develer.com>:
12979 * configure.tgt: Add uClinux target.
12980
e42c9534
AC
129812004-01-02 Andrew Cagney <cagney@redhat.com>
12982
12983 * utils.c (do_my_cleanups): Make static, add forward declaration.
12984 * defs.h (do_my_cleanups): Delete declaration.
12985
162467d3
EZ
129862004-01-02 Eli Zaretskii <eliz@elta.co.il>
12987
12988 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
12989 bfd/ChangeLog-0203.
12990
78434e59
MK
129912004-01-02 Mark Kettenis <kettenis@gnu.org>
12992
12993 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
12994 in <machine/reg.h>.
12995 * configure, config.in: Regenerate.
12996
48efe704
AC
12997For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
12998tui/ChangeLog-1998-2003.
c906108c
SS
12999\f
13000Local Variables:
13001mode: change-log
13002left-margin: 8
13003fill-column: 74
13004version-control: never
13005End:
This page took 1.553608 seconds and 4 git commands to generate.