* sparc-linux-tdep.c: Update copyright year.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
9cc52bde
MK
12004-10-10 Mark Kettenis <kettenis@gnu.org>
2
ee8aef23
MK
3 * sparc-linux-tdep.c: Update copyright year.
4 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
5 to struct frame_info *. Use safe_frame_unwind_memory instead of
6 deprecated_read_memory_nobpt.
7 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
8 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
9 changed signature of sparc_linux_sigtramp_start.
10 (sparc32_linux_pc_in_sigtramp): Remove function.
11 (sparc32_linux_sigtramp_p): New function.
12 (sparc32_linux_sigtramp_frame_sniffer): Use
13 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
14
bc73f8cc
MK
15 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
16 Remove function.
17 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
18
a2249542
MK
19 * ada-lang.c (lim_warning): Re-implement as a varargs function.
20 (decode_packed_array_type, value_subscript_packed)
21 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
22 argument in call to lim_warning.
23
9cc52bde
MK
24 * configure.in: Really disable the TUI if an enhanced curses
25 library isn't found.
26 * configure: Regenerate.
27
151fc45b
MK
282004-10-09 Mark Kettenis <kettenis@gnu.org>
29
30 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
31 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
32 * config/i386/nm-nbsdaout.h: Remove file.
33 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
34 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
35 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
36 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
37 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
38 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
39 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
40 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
41 (ldd, ld_un, ld_2): Remove defines.
42 * config/i386/nm-obsd.h: Likewise.
43
375c0479
PH
442004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
45
46 * ada-lex.l: Remove useless rule whose right-context clause
47 causes unreferenced static function warning for yyrealloc.
48 (ada_flex_use): Remove the artificial reference to yyrealloc.
49
c8e73a31
AC
502004-10-08 Andrew Cagney <cagney@gnu.org>
51
52 * target.h (struct target_ops): Rename to_xfer_memory to
53 deprecated_xfer_memory.
54 * target.c: Update.
55 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
56 * wince.c: Update.
57 * win32-nat.c: Update.
58 * v850ice.c: Update.
59 * uw-thread.c: Update.
60 * thread-db.c: Update.
61 * sol-thread.c: Update.
62 * remote.c: Update.
63 * remote-vx.c: Update.
64 * remote-st.c: Update.
65 * remote-sim.c: Update.
66 * remote-sds.c: Update.
67 * remote-rdp.c: Update.
68 * remote-rdi.c: Update.
69 * remote-mips.c: Update.
70 * remote-m32r-sdi.c: Update.
71 * remote-e7000.c: Update.
72 * procfs.c: Update.
73 * ppc-bdm.c: Update.
74 * nto-procfs.c: Update.
75 * monitor.c: Update.
76 * linux-nat.c: Update.
77 * inftarg.c: Update.
78 * hpux-thread.c: Update.
79 * go32-nat.c: Update.
80 * gnu-nat.c: Update.
81 * exec.c: Update.
82 * corelow.c: Update.
83 * bsd-kvm.c: Update.
84 * aix-thread.c: Update.
85
aa869812
AC
862004-10-08 Andrew Cagney <cagney@gnu.org>
87
88 * target.c (debug_target): Move to near start of file.
89 (target_stopped_data_address_p): Re-org logic, add casts.
90
8dcef9cf
MK
912004-10-02 Mark Kettenis <kettenis@gnu.org>
92
93 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
94 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
95 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
96 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
97 New defines.
98
4aa7a7f5
JJ
992004-10-08 Jeff Johnston <jjohnstn@redhat.com>
100
101 * target.h (to_stopped_data_address): Change prototype to
102 take a CORE_ADDR pointer and return an int.
103 * target.c (update_current_target): Change to_stopped_data_address
104 to match new prototype.
105 (debug_to_stopped_data_address): Change appropriately.
106 * breakpoint.c (bpstat_stop_status): Change call to
107 target_stopped_data_address to use new prototype.
108 * frv-tdep.c (frv_have_stopped_data_address): New function.
109 (frv_stopped_data_address): Change to new prototype and
110 functionality.
111 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
112 prototype and functionality.
113 (ia64_stopped_by_watchpoint): New function.
114 * i386-nat.c (i386_stopped_data_address): Change to new
115 prototype and functionality.
116 (i386_stopped_by_watchpoint): New function.
117 * remote.c (remote_stopped_data_address): Change to new prototype
118 and functionality.
119 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
120 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
121 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
122 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
123 new i386_stopped_by_watchpoint function.
124 (i386_stopped_by_watchpoint): New prototype.
125 (i386_stoppped_data_address): Change to new prototype.
126 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
127 new ia64_stopped_by_watchpoint function.
128 (ia64_stopped_by_watchpoint): New prototype.
129 (ia64_stopped_data_address): Ditto.
130
61ee279c
PH
1312004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
132
133 * ada-typeprint.c (ada_print_type): Use int_string for printing
134 modulus of modular type.
135 * ada-lang.h (ada_modulus): Change return type to unsigned.
136 * ada-lang.c (ada_language_arch_info): Correct type of
137 string_char_type.
138 (ada_modulus): Return unsigned result.
139 (ada_lookup_symbol): Remove user disambiguation and modify comment
140 accordingly.
141
1422004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
143
144 Committed by Paul Hilfinger.
145 * ada-lang.c (decode_packed_array): On big-endian targets,
146 left-justify the value if it comes with a modular type.
147
1482004-10-08 Joel Brobecker <brobecker@gnat.com>
149
150 Committed by Paul Hilfinger.
151 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
152 (is_name_suffix): Add support for "___JM" suffixes.
153 (ada_check_typedef): Renames ada_completed_type.
154 Update all users of CHECK_TYPEDEF, check_typedef, and
155 ada_complete_type to call ada_check_typedef.
156 * ada-typeprint.c: Likewise.
157 * ada-valprint.c: Likewise.
158
b6c25a56
CV
1592004-10-08 Corinna Vinschen <vinschen@redhat.com>
160
161 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
162
83ca6a46
NR
1632004-10-08 Nick Roberts <nickrob@snap.net.nz>
164
165 * MAINTAINERS: Update e-mail address.
166
1fd8cd20
DJ
1672004-10-07 Daniel Jacobowitz <dan@debian.org>
168
169 From Maciej W. Rozycki <macro@mips.com>:
170 * mips-tdep.c (mips32_next_pc): Check the register's contents,
171 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
172
cea15572
KI
1732004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
174
175 * m32r-tdep.c (decode_prologue): Support functions written
176 in assembler language. Recognize trap instructions as the
177 end of prologue.
178 (m32r_frame_unwind_cache): Ditto.
179 (m32r_skip_prologue): Extend search limit. Quit analyzing
180 prologue if pc's location is not readable.
181
23485554
PH
1822004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
183
184 * Makefile.in (.l.c): Do conversions of names of alloc and free
185 functions that are done for .y.c files, plus special one
186 for yy_flex_realloc. Also, correct missing-file tests here.
187 * ada-lex.l (malloc, free): Remove macros.
188 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
189 xrealloc.
190 (ada_flex_use): Dummy definition to remove warnings about unused
191 functions.
192 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
193 to suppress warning.
194
c0409442
CV
1952004-10-06 Corinna Vinschen <vinschen@redhat.com>
196
197 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
198 RETURN_VALUE.
199 (sh_return_value_fpu): Ditto for CPUs with FPU.
200 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
201 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
202 Install sh_return_value_nofpu resp. sh_return_value_fpu as
203 RETURN_VALUE functions.
204
9bed62d7
CV
2052004-10-06 Corinna Vinschen <vinschen@redhat.com>
206
207 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
208 (sh_pseudo_register_write): Ditto.
209
03131d99
CV
2102004-10-06 Corinna Vinschen <vinschen@redhat.com>
211
212 * sh-tdep.c (IS_MACL_STS): New define.
213 (IS_MOVI20): Ditto.
214 (IS_MACL_LDS): Ditto.
215 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
216 instructions in prologue.
217 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
218 instructions in epilogue.
219
da962468
CV
2202004-10-06 Corinna Vinschen <vinschen@redhat.com>
221
222 * sh-tdep.c (SH_NUM_REGS): Define as 67.
223 (sh_sh_register_name): Add eight empty register names.
224 (sh_sh3_register_name): Ditto.
225 (sh_sh3e_register_name): Ditto.
226 (sh_sh2e_register_name): Ditto.
227 (sh_sh2a_register_name): New function, defining SH2A register set.
228 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
229 in nofpu case.
230 (sh_sh_dsp_register_name): Add eight empty register names.
231 (sh_sh3_dsp_register_name): Ditto.
232 (sh_sh4_register_name): Ditto.
233 (sh_sh4_nofpu_register_name): Ditto.
234 (sh_sh4al_dsp_register_name): Ditto.
235 (sh2a_show_regs): New function.
236 (sh2a_nofpu_show_regs): New function.
237 (sh_sh2a_register_type): New function.
238 (do_bank_register_info): New function.
239 (sh_print_pseudo_register): Call do_bank_register_info.
240 Call sh_print_pseudo_register for valid "bank" register.
241 (sh_sh2a_register_sim_regno): New function.
242 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
243 Increment pseudo register count by one for all sh variants with
244 pseudo registers to accomodate pseudo bank register.
245 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
246 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
247 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
248 Increment pseudo register numbers.
249
1326e61b
CV
2502004-10-06 Corinna Vinschen <vinschen@redhat.com>
251
252 * dwarf2read.c (read_subroutine_type): Call make_function_type
253 instead of lookup_function_type.
254
146c42e3
JB
2552004-10-05 Jim Blandy <jimb@redhat.com>
256
257 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
258 (Previous change missed some uses.)
259
1df84f13
AC
2602004-10-05 Andrew Cagney <cagney@gnu.org>
261
262 * target.h (deprecated_child_ops): Rename child_ops.
263 * wince.c: Update copyright. Rename child_ops.
264 * win32-nat.c: Rename child_ops.
265 * target.c: Rename child_ops.
266 * rs6000-nat.c: Rename child_ops.
267 * linux-nat.c: Rename child_ops.
268 * infttrace.c: Rename child_ops.
269 * inftarg.c: Rename child_ops.
270 * infptrace.c: Rename child_ops.
271 * hppah-nat.c: Update copyright. Rename child_ops.
272 * hpux-thread.c: Update copyright. Rename child_ops.
273
21e3b9b9
DJ
2742004-10-05 Daniel Jacobowitz <dan@debian.org>
275
276 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
277
de83afe7
AC
2782004-10-05 Andrew Cagney <cagney@gnu.org>
279
280 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
281
10b3939b
DJ
2822004-10-05 Daniel Jacobowitz <dan@debian.org>
283
284 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
285 (die_ref_table): Remove.
286 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
287 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
288 the usage of this type.
289 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
290 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
291 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
292 (dwarf2_create_include_psymtab): Update comment.
293 (find_partial_die): Remove third argument. Remove unreachable call
294 to error ().
295 (dwarf2_find_containing_comp_unit): Update comments. Change one
296 assertion to an error. Remove an unreachable error.
297 (dwarf2_find_comp_unit): Update comments.
298 (type_at_offset): Remove dead code.
299 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
300 (store_in_ref_table): Add CU argument.
301 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
302 inter-compilation-unit references.
303 (load_full_comp_unit, process_full_comp_unit): New functions, based
304 on psymtab_to_symtab_1.
305 (psymtab_to_symtab_1): Use them.
306 (dwarf2_add_dependence): New function.
307 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
308 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
309 (partial_die_parent_scope, guess_structure_name): Update for changes
310 to find_partial_die.
311 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
312 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
313 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
314 (read_die_and_children): Update call to store_in_ref_table.
315 (do_free_die_list_cleanup): Remove.
316 (fixup_partial_die): Update for changes to find_partial_die.
317 (read_full_die): Handle queueing absolute references.
318 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
319 (dwarf2_attr, die_specification, die_type)
320 (die_containing_type, dwarf2_extension): Update calls to
321 follow_die_ref.
322 (dump_die): Update DW_FORM_ref* handling.
323 (dwarf2_get_ref_die_offset): Likewise.
324 (free_one_comp_unit): Release the dies list.
325 (dwarf2_mark_helper): New function.
326 (dwarf2_mark): Use it.
327
998bdd68
MK
3282004-10-05 Mark Kettenis <kettenis@jive.nl>
329
330 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
331 when writing to memory.
332
14588880
KI
3332004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
334
335 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
336 (m32r_extract_struct_value_address): Delete function.
337 (m32r_return_value): New function.
338 (m32r_gdbarch_init): Instead of store_return_value,
339 extract_return_value, deprecated_extract_struct_value_address
340 and deprecated_use_struct_convention, set return_value.
341
dd5e6932
DJ
3422004-10-03 Daniel Jacobowitz <dan@debian.org>
343
344 * dwarf2read.c (read_subrange_type): Add comment for variable
345 sized arrays.
346
7dc1ef8d
PH
3472004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
348
349 * Makefile.in (.l.c): Modify rule for compatibility with recent
350 versions of flex, and remove most command-line options.
351 * ada-lex.l: Add %options line in place of -I -i and -s command-line
352 options.
353
1f8173e6
PH
3542004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
355
356 Turn on initial Ada support (mainly expression evaluation).
357
358 * Makefile.in (SFILES): Remove ada-tasks.c.
359 (HFILES_NO_SRCDIR): Add ada-lang.h.
360 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
361 (YYOBJ): Add ada-exp.o.
362 (rule .l.c): Generalize to not mention ada.
363 * symtab.c: Include ada-lang.h.
364 (symbol_natural_name, symbol_demangled_name)
365 (symbol_search_name): Add Ada case.
366
cb85a953
AC
3672004-10-01 Andrew Cagney <cagney@gnu.org>
368
3f3db248
AC
369 * Makefile.in (COMMON_OBS): Add inf-child.o.
370 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
371 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
372 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
373 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
374 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
375 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
376 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
377 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
378 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
379 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
380 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
381 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
382 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
383
cb85a953
AC
384 * target.c (xfer_using_stratum): Change return type to LONGEST.
385 On each iteration offset, readbuf and writebuf.
386 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
387 partial_length, and read/modify/write predicate, update comments.
388 Pass buffer.word to ptrace write.
389
963a6417
PH
3902004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
391
392 * symfile.c (init_filename_language_table): Add extensions for
393 Ada.
394 * defs.h (enum language): Add language_ada.
395 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
396 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
397 (add_symbols_from_enclosing_procs): Make a no-op for now.
398 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
399 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
400 (find_line_in_linetable, find_next_line_in_linetable)
401 (read_all_symtabs, is_plausible_func_for_line)
402 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
403 (is_runtime_sym_defined, check_size): Remove declaration.
404 (function_name_from_pc, ada_translate_error_message)
405 (ada_lookup_minimal_symbol): Remove definition.
406 (ada_add_block_symbols): Remove useless label.
407 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
408 useless declaration.
409 (ada_is_exception_sym): Likewise.
410
9b32d526
KI
4112004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
412
413 Add m32r-linux support.
414 * configure.tgt: Add m32r*-*-linux*.
415 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
416 and m32r-linux-tdep.c.
417 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
418 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
419 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
420 m32r-linux-tdep.c.
421 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
422 config/m32r/linux.mh, config/m32r/linux.mt,
423 config/m32r/nm-linux.h: New files.
424
2de118d3
JB
4252004-09-30 Joel Brobecker <brobecker@gnat.com>
426
427 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
428 (mips32_fetch_instruction): Remove, unused.
429
a9fe69d1
JB
4302004-09-30 Joel Brobecker <brobecker@gnat.com>
431
432 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
433 conditions that will always be true.
434
bc8ffc12
MK
4352004-09-30 Mark Kettenis <kettenis@gnu.org>
436
ba0cd111
MK
437 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
438 (vaxbsd_fetch_inferior_registers): Rename from
439 fetch_inferior_registers. Make static.
440 (vaxbsd_store_inferior_registers): Rename from
441 store_inferior_registers. Make static.
442 (_initialize_vaxbsd_nat): Construct and add target vector.
443 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
444 inftarg.o. Add inf-child.o and inf-ptrace.o.
445 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
446 inftarg.o. Add inf-child.o and inf-ptrace.o.
447 (NAT_FILE): Remove.
448 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
449 inftarg.o. Add inf-child.o and inf-ptrace.o.
450 (NAT_FILE): Remove.
451 * Makefile.in (vaxbsd-nat.o): Update dependencies.
452
bc8ffc12
MK
453 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
454 (m88kbsd_fetch_inferior_registers): Rename from
455 fetch_inferior_registers. Make static.
456 (m88kbsd_store_inferior_registers): Rename from
457 store_inferior_registers. Make static.
458 (_initialize_m88kbsd_nat): New prototype and function.
459 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
460 inftarg.o. Add inf-child.o and inf-ptrace.o.
461 (NAT_FILE): Remove.
462 * Makefile.in (m88kbsd-nat.o): Update dependencies.
463
27394598
AC
4642004-09-30 Andrew Cagney <cagney@gnu.org>
465
466 * target.c (target_xfer_partial): New function.
467 (target_read_memory_partial, target_write_memory_partial)
468 (default_xfer_partial, target_read_partial, target_write_partial)
469 (xfer_using_stratum): Use.
470 (debug_to_xfer_partial): Delete function.
471 (setup_target_debug): Do not override to_xfer_partial.
472
74a4fe32
MK
4732004-09-30 Mark Kettenis <kettenis@chello.nl>
474
475 * fork-child.c: Update copyright year. Fix coding style.
476
982526a1
MK
4772004-09-29 Mark Kettenis <kettenis@gnu.org>
478
479 * defs.h (msavestring, mstrsave): Remove prototypes.
480 * utils.c (msavestring, mstrsave): Remove functions.
481 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
482 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
483 of mstrsave.
484 * source.c (find_and_open_source): Use xstrdup instead of
485 mstrsave.
486
b8eb5af0
AC
4872004-09-30 Andrew Cagney <cagney@gnu.org>
488
0779438d
AC
489 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
490 (inf_ptrace_xfer_memory): Delete.
491 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
492 (target_read_memory, target_write_memory): Use xfer_using_stratum
493 when target_xfer_partial_p.
494 (debug_target): Move to start of file.
495 (target_read_memory_partial, target_write_memory_partial): Use
496 to_xfer_partial when target_xfer_partial_p.
497
f929a579
AC
498 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
499 inf_ptrace_xfer_memory with equivalent code.
500 * inftarg.c (child_xfer_partial): When performing a write, pass
501 writebuf to child_xfer_memory.
502
b8eb5af0
AC
503 * target.c (target_read_string): Use target_read_memory instead of
504 target_xfer_memory.
505
ee21b650
AC
5062004-09-29 Andrew Cagney <cagney@gnu.org>
507
d3e05d0d
AC
508 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
509 the address of status.
510
ee21b650
AC
511 * infptrace.c (ptrace_wait): Mention problem with HPUX.
512 (kill_inferior): Inline ptrace_wait call.
513 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
514 * inftarg.c (child_wait): Inline ptrace_wait call.
515
a182eed6
AC
516 * target.h (struct target_ops): Delete field to_post_wait.
517 (target_post_wait): Delete macro.
518 (child_post_wait): Delete declaration.
519 * target.c (update_current_target, update_current_target)
520 (debug_to_post_wait, setup_target_debug): Delete functions and
521 references.
522 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
523 * inftarg.c (child_post_wait): Delete.
524 (init_child_ops): Do not set to_post_wait.
525 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
526 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
527 * inf-child.c (inf_child_post_wait): Delete.
528 (inf_child_target): Do not set to_post_wait.
529 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
530 (inf_ptrace_target): Do not set to_post_wait.
531
ba0c540b
AC
532 * wince.c (child_ops): Delete.
533 * win32-nat.c (child_ops): Delete.
534
81977402
AC
535 * inftarg.c (inftarg_set_find_memory_regions)
536 (inftarg_set_make_corefile_notes): Delete functions.
537 (_initialize_linux_nat): Inline calls.
538
5ac10fd1
AC
539 * target.h (child_ops): Declare.
540 * inftarg.c (child_ops): Move from here ...
541 * target.c (child_ops): ... to here.
542 * wince.c (child_ops): Delete extern declaration.
543 * win32-nat.c (child_ops): Delete extern declaration.
544 * linux-nat.c (child_ops): Delete extern declaration.
545 * hpux-thread.c (child_ops): Delete extern declaration.
546
663408c2 5472004-09-28 Mark Kettenis <kettenis@gnu.org>
890c8f4d
MK
548
549 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
550
0dad8a66
MK
5512004-09-28 Mark Kettenis <kettenis@gnu.org>
552
553 * configure.in: Only set host_makefile_frag when building a native
554 debugger.
555 * configure: Regenerate.
e8d74ed3
MK
556
557 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
558 for OpenBSD ELF.
559
dba24537
AC
5602004-09-28 Andrew Cagney <cagney@gnu.org>
561
e979516b
AC
562 Problem identified by Paul Hilfinger.
563 * Makefile.in (ada_lex_c): Define.
564 (ada-lex.o): Delete rule.
565
dba24537
AC
566 * linux-proc.c: Delete file.
567 * Makefile.in: Update.
568 * config/sparc/linux64.mh (NATDEPFILES):
569 * config/sparc/linux.mh (NATDEPFILES): Update.
570 * config/s390/s390.mh (NATDEPFILES): Update.
571 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
572 * config/powerpc/linux.mh (NATDEPFILES): Update.
573 * config/pa/linux.mh (NATDEPFILES): Update.
574 * config/mips/linux.mh (NATDEPFILES): Update.
575 * config/m68k/linux.mh (NATDEPFILES): Update.
576 * config/ia64/linux.mh (NATDEPFILES): Update.
577 * config/i386/linux64.mh (NATDEPFILES): Update.
578 * config/i386/linux.mh (NATDEPFILES): Update.
579 * config/arm/linux.mh (NATDEPFILES): Update.
580 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
581 * linux-nat.c: Update copyright. Include <sys/param.h>,
582 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
583 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
584 (O_LARGEFILE): Possibly define.
585 (_initialize_linux_nat, linux_proc_pending_signals)
586 (add_line_to_sigset, linux_proc_xfer_memory)
587 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
588 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
589 (struct linux_corefile_thread_data)
590 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
591 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
592
d6b0e80f
AC
5932004-09-16 Andrew Cagney <cagney@gnu.org>
594
595 * lin-lwp.c: Delete file.
596 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
597 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
598 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
599 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
600 (linux_nat_attach, detach_callback, linux_nat_detach)
601 (resume_callback, resume_clear_callback, linux_nat_resume)
602 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
603 (stop_wait_callback, linux_nat_has_pending, flush_callback)
604 (status_callback, running_callback, count_events_callback)
605 (select_singlestep_lwp_callback, select_event_lwp_callback)
606 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
607 (child_wait, stop_and_resume_callback, linux_nat_wait)
608 (kill_callback, kill_wait_callback, linux_nat_kill)
609 (linux_nat_create_inferior, linux_nat_mourn_inferior)
610 (linux_nat_xfer_memory, linux_nat_thread_alive)
611 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
612 (_initialize_linux_nat): New functions.
613 * Makefile.in: Update all dependencies.
614 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
615 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
616 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
617 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
618 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
619 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
620 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
621 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
622 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
623 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
624 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
625 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
626 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
627
5a174d79
MK
6282004-09-27 Mark Kettenis <kettenis@gnu.org>
629
2f604c28
MK
630 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
631 config/i386/obsd64.mh (NAT_FILE): Remove variable.
632
5a174d79
MK
633 * configure.in: Don't comment out NATDEPFILES in the generated
634 Makefile if NAT_FILE is unset.
635 * configure: Regenerate.
636
b2ed1746
AC
6372004-09-27 Andrew Cagney <cagney@gnu.org>
638
44cbf7b5
AC
639 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
640 (insert_step_resume_breakpoint): Delete.
641 (insert_step_resume_breakpoint_at_frame): New function.
642 (insert_step_resume_breakpoint_at_sal): New function.
643 (handle_inferior_event, step_into_function)
644 (insert_step_resume_breakpoint): Simplify by using same.
645
b2ed1746
AC
646 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
647
3691b3be
MK
6482004-09-26 Mark Kettenis <kettenis@gnu.org>
649
36f391e8
MK
650 * fbsd-proc.c: Remove file.
651 * Makefile.in (fbsd-proc.o): Remove dependency.
652
771e236c
MK
653 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
654 code together.
655
3691b3be
MK
656 * config/i386/nm-fbsd64.h: Remove file.
657 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
658
6a5c78a3
MK
6592004-09-26 Mark Kettenis <kettenis@gnu.org>
660
661 * amd64-nat.h: Update copyright year.
662 (amd64bsd_target): New prototype.
663 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
664 (amd64bsd_target): New function.
665 (amd64bsd_fetch_inferior_registers): Rename from
666 fetch_inferior_registers. Make static.
667 (amd64bsd_store_inferior_registers): Rename from
668 store_inferior_registers. Make static.
669 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
670 (_initialize_amd64fbsd_nat): Construct and add target vector.
671 * amd64nbsd-nat.o: Include "target.h".
672 (_initialize_amd64nbsd_nat): Construct and add target vector.
673 * amd64obsd-nat.c: Include "target.h".
674 (_initialize_amd64obsd_nat): Construct and add target vector.
675 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
676 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
677 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
678 fbsd-nat.o.
679 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
680 Remove infptrace.o and inftarg.o. Add inf-child.o and
681 inf-ptrace.o.
682 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
683 (amd64obsd-nat.o): Update dependencies.
684
27acbe61
MK
6852004-09-25 Mark Kettenis <kettenis@gnu.org>
686
509a5e7d
MK
687 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
688 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
689 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
690 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
691 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
692
6e1e94ea
MK
693 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
694 Inline attach call.
695 (inf_ptrace_detach): Inline detach call.
696
8b9cf735
MK
697 * configure.in: Check for waddstr instead of mvwaddstr when
698 searching for curses library. Check for wborder.
699 * configure, config.in: Regenerate.
700 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
701 available.
702
27acbe61
MK
703 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
704
b96ec7ac
AC
7052004-09-24 Robert Picco <Robert.Picco@hp.com>
706
707 Committed by Andrew Cagney.
708 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
709 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
710 configuration.
711 (fetch_register_using_p): Implement 'p' packet. Based on code by
712 Fernando Nasser.
713 (remote_fetch_registers): Call fetch_register_using_p.
714 (init_all_packet_configs, show_remote_cmd)
715 (_initialize_remote): Add p-packet.
716
62ece330
MK
7172004-09-24 Mark Kettenis <kettenis@gnu.org>
718
719 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
720 instead of call_ptrace. Call wait directly instead of
721 ptrace_wait.
722 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
723 (inf_ptrace_wait): Inline ptrace_wait call.
724
00937274
PH
7252004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
726
727 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
728 rolled back instead.
729
3f2c7a45
PH
7302004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
731
732 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
733 the new argument order.
734
b6fcb393
CV
7352004-09-23 Corinna Vinschen <vinschen@redhat.com>
736
737 * MAINTAINERS: Remove "broken" from XStormy16 entry.
738 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
739 (struct gdbarch_tdep): Remove.
740 (struct xstormy16_frame_cache): New frame cache structure.
741 (xstormy16_register_byte, xstormy16_register_raw_size)
742 (xstormy16_reg_virtual_type, xstormy16_register_type)
743 (xstormy16_push_arguments, xstormy16_push_return_address)
744 (xstormy16_pop_frame, xstormy16_store_struct_return)
745 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
746 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
747 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
748 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
749 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
750 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
751 (xstormy16_use_struct_convention): Drop gcc_p parameter.
752 (xstormy16_extract_return_value, xstormy16_store_return_value):
753 Regcachify. Drop useless struct convention handling.
754 (xstormy16_register_type, xstormy16_return_value)
755 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
756 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
757 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
758 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
759 (xstormy16_unwind_sp, xstormy16_unwind_pc)
760 (xstormy16_unwind_dummy_id) : New functions.
761 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
762 of xstormy16_scan_prologue.
763 (xstormy16_frame_unwind): New frame_unwind structure.
764 (xstormy16_frame_base): New frame_base structure.
765 (xstormy16_gdbarch_init): Accomodate all of the above changes.
766 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
767
1285b746
MK
7682004-09-22 Mark Kettenis <kettenis@gnu.org>
769
770 * language.c (language_gdbarch_post_init): Fix off-by one error.
771
1c379e20
DJ
7722004-09-21 Daniel Jacobowitz <dan@debian.org>
773
774 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
775 (struct dwarf2_offset_and_type): New.
776 (set_die_type, reset_die_and_siblings_types, get_die_type)
777 (offset_and_type_hash, offset_and_type_eq): New functions.
778 (read_structure_type, read_enumeration_type, read_array_type)
779 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
780 (read_tag_reference_type, read_tag_const_type)
781 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
782 (read_typedef, read_base_type, read_subrange_type): Use
783 set_die_type.
784
ae038cb0
DJ
7852004-09-20 Daniel Jacobowitz <dan@debian.org>
786
787 * Makefile.in (dwarf2read.o): Update dependencies.
788 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
789 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
790 and read_in_chain.
791 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
792 mark, and has_form_ref_addr.
793 (struct dwarf2_per_cu_data): New.
794 (dwarf2_max_cache_age): New.
795 (dwarf2_build_psymtabs_hard): Free cached compilation units
796 after loading. Create and manage the list of compilation units.
797 Remove unnecessary NULL initialization. Fix indentation.
798 (psymtab_to_symtab_1): Initialize all of CU.
799 (dwarf2_read_abbrevs): Set has_form_ref_addr.
800 (find_partial_die): Use dwarf2_find_containing_comp_unit
801 and load_comp_unit.
802 (free_stack_comp_unit): Update comments. Clear the per-cu
803 pointer. Handle aging.
804 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
805 (age_cached_comp_units, free_one_cached_comp_unit)
806 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
807 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
808 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
809 (show_dwarf2_cmd): New.
810 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
811 and "maint show dwarf2 max-cache-age".
812 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
813 externs.
814 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
815 global.
816
987504bb
JJ
8172004-09-20 Jeff Johnston <jjohnstn@redhat.com>
818
819 * dwarf2read.c (typename_concat): Change prototype to accept obstack
820 and dwarf2_cu struct pointer as arguments. Change function to use
821 obstack if provided and use dwarf2_cu to determine language-specific
822 separator.
823 (partial_die_parent_scope): Change comment to include java. Use
824 new version of typename_concat instead of obconcat.
825 (partial_die_full_name): Use typename_concat.
826 (read_namespace): Ditto.
827 (read_enumeration_type): Use typename_concat instead of obconcat.
828 (new_symbol): Ditto.
829 (add_partial_symbol): Enhance tests for C++ to also test for Java.
830 (guess_structure_name): Ditto.
831 (read_subroutine_type): Ditto.
832 (read_structure_type): Ditto.
833 (is_vtable_name): Add Java support.
834 (determine_class_name): Switch to new typename_concat call.
835 (determine_prefix): Switch to new typename_concat call.
836 * jv-exp.y (FuncStart): New pattern.
837 (MethodInvocation): Add support for simple function calls. Change
838 warning message for other forms of inferior call currently not
839 supported.
840 * valarith.c (value_subscript): Treat an array with upper-bound
841 of -1 as unknown size.
842
d9c8471e
DJ
8432004-09-20 Daniel Jacobowitz <dan@debian.org>
844
845 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
846 (lookup_partial_symtab): Use symtab_to_fullname.
847
d73f140a
JB
8482004-09-19 Jim Blandy <jimb@redhat.com>
849
850 * minsyms.c (lookup_minimal_symbol): Doc fix.
851
adbef1f0
AC
8522004-09-20 Andrew Cagney <cagney@gnu.org>
853
854 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
855 CHILD_RESUME.
856 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
857 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
858 KILL_INFERIOR.
859 * infptrace.c: Update.
860
d092d1a2
DJ
8612004-09-19 Daniel Jacobowitz <dan@debian.org>
862
863 * symtab.c (output_source_filename): Mark first argument as const.
864 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
865 for "info sources" output.
866
86d9e1d7
MK
8672004-09-20 Mark Kettenis <kettenis@gnu.org>
868
869 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
870 <machine/vmparam.h>.
871 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
872 (register_u_addr): Remove prototype.
873
9a6c8ef4
MK
8742004-09-19 Mark Kettenis <kettenis@gnu.org>
875
9692934b
MK
876 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
877 (i386bsd_fetch_inferior_registers): Rename from
878 fetch_inferior_registers. Make static.
879 (i386bsd_store_inferior_registers): Rename from
880 store_inferior_registers. Make static.
881 (i386bsd_target): New function.
882 * i386bsd-nat.h: New file.
883 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
884 "i386bsd-nat.h".
885 (i386fbsd_resume): Rename from child_resume. Make static.
886 (_initialize_i386fbsd_nat): Construct and add target vector.
887 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
888 (_initialize_i386nbsd_nat): Construct and add target vector.
889 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
890 Remove defines.
891 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
892 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
893 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
894 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
895 (LOADLIBES): New variable.
896 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
897 inf-ptrace.o. Remove inftarg.o.
898 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
899 inf-ptrace.o. Remove inftarg.o.
900 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
901 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
902 (LOADLIBES): New variable.
903 * Makefile.in (i386bsd_nat_h): New variable.
904 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
905 dependencies.
906
3510d1f2
MK
907 * sparc64nbsd-tdep.c: Include "objfiles.h".
908 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
909 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
910 svr4_lp64_fetch_link_map_offsets.
911 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
912 "nbsd-tdep.h".
913 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
914 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
915 svr4_lp64_fetch_link_map_offsets.
916 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
917 dependencies.
918
578c1c03
MK
919 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
920 * fbsd-nat.h: New file.
921 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
922 (fbsd_nat_h): New variable.
923 (fbsd-nat.o): New dependency.
924
7a7b73b7
MK
925 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
926 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
927
9a6c8ef4
MK
928 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
929 comment.
930
72d5681a
PH
9312004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
932
933 * ada-exp.y (type_int): New function to add layer of abstraction
934 around references to expression types.
935 (type_long): Ditto.
936 (type_long_long): Ditto.
937 (type_float): Ditto.
938 (type_double): Ditto.
939 (type_long_double): Ditto.
940 (type_char): Ditto.
941 (type_system_address): Ditto.
942 (simple_exp): Use type_* functions in place of builtin_*
943 variables.
944 (exp): Ditto.
945 (write_var_from_name): Ditto.
946 (write_object_renaming): Ditto.
947 * ada-lang.c (ada_create_fundamental_type): Remove redundant
948 declaration.
949 (build_ada_types): Remove, replacing with...
950 (ada_language_arch_info): New function to initialize primitive
951 type vector in language_arch_info.
952 (ada_array_length): Remove use of builtin_type_ada_int.
953 (value_pos_atr): Ditto.
954 (ada_evaluate_subexp): Ditto.
955 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
956 builtin_type_ada_long_long, builtin_type_ada_char,
957 builtin_type_ada_float, builtin_type_ada_double,
958 builtin_type_ada_long_double, builtin_type_ada_natural,
959 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
960 (ada_builtin_types): Remove.
961 (ada_language_defn): Remove entries for la_builtin_type_vector and
962 string_char_type and use ada_language_arch_info.
963 (_initialize_ada_language): Do type-vector initialization along
964 the lines of c-lang.c.
965 (ada_create_fundamental_type): Break up line.
966 (ada_dump_symtab): Remove unused function.
967 (enum ada_primitive_types): Define.
968 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
969 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
970 builtin_type_ada_float, builtin_type_ada_double,
971 builtin_type_ada_long_double, builtin_type_ada_natural,
972 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
973 * ada-lex.l: Use type_* functions in place of builtin_* variables.
974 (processInt): Ditto.
975 (processReal): Ditto.
976 (name_lookup): Ditto.
977 * ada-typeprint.c (print_range): Use builtin_type_int, not
978 builtin_type_ada_int.
979
4f0be353
MK
9802004-09-18 Mark Kettenis <kettenis@gnu.org>
981
30b0e2d8
MK
982 * i386-tdep.c (i386_register_name): Rename regno to regnum.
983
4f0be353
MK
984 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
985 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
986 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
987 * configure.in: Improve checks for curses library by checking for
988 mvwaddstr instead of initscr. Drop HP curses in favour of
989 standard curses on HP-UX.
990 * configure: Regenerated.
991
72d5681a 9922004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
6c038f32
PH
993
994 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
995 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
996 Minor formatting changes.
997 (empty_array): Slight rewrite for formatting.
998 (emit_char,parse,ada_language_defn,build_ada_types,
999 ada_is_exception_sym, _initialize_ada_language): Move
1000 definitions around.
1001 (ada_dump_symtab): Remove unused definition.
1002 (ada_maybe_exception_partial_symbol): Remove unused definition.
1003
1c8c7407
AC
10042004-09-16 Andrew Cagney <cagney@gnu.org>
1005
7681f339
AC
1006 * inf-child.c: Include "gdb_string.h".
1007 (inf_child_core_file_to_sym_file): Delete.
1008 (inf_child_target): Set to_fetch_registers and to_store_registers.
1009 * inf-ptrace.c: Include "gdb_string.h".
1010 * Makefile.in: Update all dependencies.
1011
1c8c7407
AC
1012 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
1013 problem.
1014
65596487
JB
10152004-09-14 Joel Brobecker <brobecker@gnat.com>
1016
1017 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
1018 call to heuristic_proc_desc. Remove code that became redundant
1019 as a consequence.
1020 (read_next_frame_reg): Remove special case for SP_REGNUM.
1021 (set_reg_offset): Fix small typo.
1022 (reset_saved_regs): New procedure.
1023 (mips32_heuristic_proc_desc): No longer compute a fake
1024 procedure descriptor. Compute the full frame cache instead.
1025 Some minor comment reformatting.
1026
95575b2e
AC
10272004-09-14 Andrew Cagney <cagney@gnu.org>
1028
f200c492
AC
1029 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
1030 maintainer.
1031
95575b2e
AC
1032 * thread-db.c (thread_db_new_objfile): Assume that there is a
1033 child process.
1034
69657671
JB
10352004-09-13 Jim Blandy <jimb@redhat.com>
1036
1037 * valops.c (value_assign): Move 'buffer' to the enclosing block,
1038 so that its storage isn't referenced after its lifetime ends.
1039
6c4182dd
JB
1040 * valops.c (value_assign): 'use_buffer' is initialized to zero,
1041 and never assigned to. Delete it, and the 'if (use_buffer)'
1042 clauses. Delete 'raw_buffer', since it is now unused.
1043
ee31a58d
AC
10442004-09-13 Andrew Cagney <cagney@gnu.org>
1045
2c0fc042
AC
1046 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
1047 * configure: Re-generate.
1048 * nlm/Makefile.in (TAGS): Update.
1049 * Makefile.in (TAGS): Update.
1050 * config/vax/nbsd.mt (TM_FILE): Update.
1051 * config/sparc/vxworks.mt (TM_FILE): Update.
1052 * config/sparc/sol2.mt (TM_FILE): Update.
1053 * config/sparc/sol2-64.mt (TM_FILE): Update.
1054 * config/sparc/obsd64.mt (TM_FILE): Update.
1055 * config/sparc/obsd.mt (TM_FILE): Update.
1056 * config/sparc/nbsd64.mt (TM_FILE): Update.
1057 * config/sparc/nbsd.mt (TM_FILE): Update.
1058 * config/sparc/linux64.mt (TM_FILE): Update.
1059 * config/sparc/linux.mt (TM_FILE): Update.
1060 * config/sparc/fbsd.mt (TM_FILE): Update.
1061 * config/sh/wince.mt (TM_FILE): Update.
1062 * config/sh/nbsd.mt (TM_FILE): Update.
1063 * config/sh/linux.mt (TM_FILE): Update.
1064 * config/sh/embed.mt (TM_FILE): Update.
1065 * config/s390/s390.mt (TM_FILE): Update.
1066 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
1067 * config/rs6000/rs6000.mt (TM_FILE): Update.
1068 * config/rs6000/aix4.mt (TM_FILE): Update.
1069 * config/powerpc/vxworks.mt (TM_FILE): Update.
1070 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
1071 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
1072 * config/powerpc/obsd.mt (TM_FILE): Update.
1073 * config/powerpc/nbsd.mt (TM_FILE): Update.
1074 * config/powerpc/linux.mt (TM_FILE): Update.
1075 * config/powerpc/aix.mt (TM_FILE): Update.
1076 * config/pa/obsd.mt (TM_FILE): Update.
1077 * config/pa/linux.mt (TM_FILE): Update.
1078 * config/pa/hppahpux.mt (TM_FILE): Update.
1079 * config/pa/hppa64.mt (TM_FILE): Update.
1080 * config/pa/hppa.mt (TM_FILE): Update.
1081 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
1082 * config/mips/wince.mt (TM_FILE): Update.
1083 * config/mips/vxmips.mt (TM_FILE): Update.
1084 * config/mips/nbsd.mt (TM_FILE): Update.
1085 * config/mips/linux.mt (TM_FILE): Update.
1086 * config/mips/irix6.mt (TM_FILE): Update.
1087 * config/mips/irix5.mt (TM_FILE): Update.
1088 * config/mips/embed.mt (TM_FILE): Update.
1089 * config/m68k/vxworks68.mt (TM_FILE): Update.
1090 * config/m68k/st2000.mt (TM_FILE): Update.
1091 * config/m68k/os68k.mt (TM_FILE): Update.
1092 * config/m68k/obsd.mt (TM_FILE): Update.
1093 * config/m68k/nbsd.mt (TM_FILE): Update.
1094 * config/m68k/monitor.mt (TM_FILE): Update.
1095 * config/m68k/linux.mt (TM_FILE): Update.
1096 * config/m68k/cisco.mt (TM_FILE): Update.
1097 * config/ia64/linux.mt (TM_FILE): Update.
1098 * config/ia64/aix.mt (TM_FILE): Update.
1099 * config/ia64/ia64.mt (TM_FILE): Update.
1100 * config/i386/vxworks.mt (TM_FILE): Update.
1101 * config/i386/obsd64.mt (TM_FILE): Update.
1102 * config/i386/obsd.mt (TM_FILE): Update.
1103 * config/i386/nto.mt (TM_FILE): Update.
1104 * config/i386/nbsd64.mt (TM_FILE): Update.
1105 * config/i386/nbsd.mt (TM_FILE): Update.
1106 * config/i386/linux64.mt (TM_FILE): Update.
1107 * config/i386/linux.mt (TM_FILE): Update.
1108 * config/i386/i386sol2.mt (TM_FILE): Update.
1109 * config/i386/i386lynx.mt (TM_FILE): Update.
1110 * config/i386/fbsd64.mt (TM_FILE): Update.
1111 * config/i386/fbsd.mt (TM_FILE): Update.
1112 * config/i386/cygwin.mt (TM_FILE): Update.
1113 * config/h8300/h8300.mt (TM_FILE): Update.
1114 * config/frv/frv.mt (TM_FILE): Update.
1115 * config/cris/cris.mt (TM_FILE): Update.
1116 * config/arm/wince.mt (TM_FILE): Update.
1117 * config/arm/nbsd.mt (TM_FILE): Update.
1118 * config/arm/linux.mt (TM_FILE): Update.
1119 * config/arm/embed.mt (TM_FILE): Update.
1120 * config/alpha/nbsd.mt (TM_FILE): Update.
1121 * config/alpha/fbsd.mt (TM_FILE): Update.
1122 * config/alpha/alpha.mt (TM_FILE): Update.
1123 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
1124 * config/alpha/alpha-linux.mt (TM_FILE): Update.
1125
362646f5
AC
1126 Eliminate event_loop_p, always has the value 1.
1127 * defs.h (event_loop_p): Delete macro.
1128 * breakpoint.c (until_break_command): Simplify.
1129 * utils.c (prompt_for_continue): Simplify.
1130 * tracepoint.c (read_actions): Simplify.
1131 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
1132 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
1133 (set_prompt, init_main): Simplify.
1134 (init_signals, disconnect): Delete, unused.
1135 * remote.c (remote_async_resume)
1136 (extended_remote_async_create_inferior): Simplify.
1137 * mi/mi-interp.c (mi_input): Delete, unused.
1138 (mi_interpreter_resume, mi_command_loop): Simplify.
1139 * interps.c (current_interp_command_loop): Simplify.
1140 * infrun.c (proceed): Simplify.
1141 * infcmd.c (run_command, continue_command, step_1, jump_command)
1142 (until_command, advance_command, finish_command)
1143 (interrupt_target_command): Simplify.
1144 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
1145
ee31a58d
AC
1146 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1147 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1148 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1149 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1150 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1151 * mips-tdep.c (mips_dump_tdep): Do not print same.
1152
b7ffc4a8
AC
11532004-09-12 Andrew Cagney <cagney@gnu.org>
1154
2bfb72ee
AC
1155 * valprint.c (print_longest): Use fputs_filtered. Make "val"
1156 const.
1157 * Makefile.in (valprint.o): Delete explict rule.
1158
4f17c3c1
AC
1159 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
1160 reported by Dave Anderson.
1161
f810308b
AC
1162 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
1163
b7ffc4a8
AC
1164 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
1165
28b41c52
AC
11662004-09-12 Salvador E. Tropea <set@users.sf.net>
1167 Andrew Cagney <cagney@gnu.org>
1168
1169 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
1170 (mi_cmd_data_list_register_values)
1171 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
1172 the register number computation.
1173
5bf970f9
AC
11742004-09-12 Andrew Cagney <cagney@gnu.org>
1175
1176 * ppcnbsd-nat.c: Include "inf-ptrace.h".
1177 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
1178 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
1179 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
1180 target.
1181 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
1182 inf-ptrace.o and inf-child.o.
1183 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
1184 * Makefile.in: Update dependencies.
1185
0759e0bf
AC
11862004-09-11 Andrew Cagney <cagney@gnu.org>
1187
1188 * language.c (hex_string, hex_string_custom): Move from here ...
1189 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
1190 (CELLSIZE): Increase to 50.
1191 * language.h (hex_string, hex_string_custom): Move from here ...
1192 * defs.h: ... to here.
1193 * Makefile.in: Update all dependencies.
1194
bb599908
PH
11952004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
1196
1197 * language.c (local_hex_format_custom): Remove.
1198 (local_hex_string): Rename to hex_string, use C format, and move to
1199 utils.c
1200 (local_hex_string_custom): Rename to hex_string_custom and change
1201 interface. Now uses C format. Move to utils.c
1202 (local_octal_format_custom): Remove.
1203 (local_decimal_format_custom): Remove.
1204 (unknown_language_defn): Remove language-specific number
1205 formatting entries.
1206 (auto_language_defn): Ditto.
1207 (local_language_defn): Ditto.
1208 * language.h (struct language_format_info): Delete declaration.
1209 (struct language_defn): Remove language_format_info fields
1210 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
1211 (local_binary_format): Remove macro.
1212 (local_binary_format_prefix): Remove macro.
1213 (local_binary_format_specifier): Remove macro.
1214 (local_binary_format_suffix): Remove macro.
1215 (local_octal_format): Remove macro.
1216 (local_octal_format_prefix): Remove macro.
1217 (local_octal_format_specifier): Remove macro.
1218 (local_octal_format_suffix): Remove macro.
1219 (local_decimal_format): Remove macro.
1220 (local_decimal_format_prefix): Remove macro.
1221 (local_decimal_format_specifier): Remove macro.
1222 (local_decimal_format_suffix): Remove macro.
1223 (local_hex_format): Remove macro.
1224 (local_hex_format_prefix): Remove macro.
1225 (local_hex_format_specifier): Remove macro.
1226 (local_hex_format_suffix): Remove macro.
1227 (local_decimal_format_custom): Remove.
1228 (local_octal_format_custom): Remove.
1229 (local_hex_format_custom): Remove.
1230 (local_hex_string): Rename to hex_string and move to defs.h.
1231 (local_hex_string_custom): Rename to hex_string_custom, change
1232 interface, and move to defs.h.
1233 * utils.c: (int_string): New function.
1234 (hex_string): New function (from language.c).
1235 (hex_string_custom): New function (from language.c).
1236 (octal2str): New function.
1237 (decimal2str): Add width parameter.
1238 (paddr_u): Use new decimal2str interface.
1239 (paddr_d): Ditto.
1240 * defs.h (hex_string): Declare.
1241 (hex_string_custom): Declare.
1242 (int_string): Declare.
1243 * printcmd.c (print_scalar_formatted): Remove localized binary
1244 formatting.
1245 * valprint.c (print_longest): Use int_string.
1246 (print_floating): Use C hex format.
1247 (print_hex_chars): Ditto.
1248 (print_binary_chars): Remove language-specific formatting.
1249 (print_octal_chars): Use C octal format.
1250 (print_decimal_chars): Delocalize format.
1251 (print_decimal): Remove.
1252 * ada-lang.c (ada_language_defn): Remove language-specific number
1253 formatting entries.
1254 * p-lang.c (pascal_language_defn): Ditto.
1255 * c-lang.c (c_language_defn): Ditto.
1256 (cplus_language_defn): Ditto.
1257 (asm_language_defn): Ditto.
1258 (minimal_language_defn): Ditto.
1259 * f-lang.c (f_language_defn): Ditto.
1260 * jv-lang.c (java_language_defn): Ditto.
1261 * m2-lang.c (m2_language_defn): Ditto.
1262 * scm-lang.c (scm_language_defn): Ditto.
1263 * objc-lang.c (objc_language_defn): Ditto.
1264 * memattr.c (mem_info_command): Use renamed hex_string_custom with
1265 new interface.
1266 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
1267 * ui-out.c (ui_out_field_core_addr): Ditto.
1268 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
1269 * exec.c (print_section_info): Ditto.
1270 * i387-tdep.c (print_i387_status_word): Ditto.
1271 (print_i387_control_word): Ditto.
1272 (i387_print_float_info): Ditto.
1273 * maint.c (maint_print_section_info): Ditto.
1274 * solib.c (info_sharedlibrary_command): Ditto.
1275 * somsolib.c (som_sharedlibrary_info_command): Ditto.
1276 * symtab.c (print_msymbol_info): Ditto.
1277 * tracepoint.c (tracepoints_info): Ditto.
1278 * solib-frv.c (lm_base): Ditto.
1279 (frv_current_sos): Ditto.
1280 (enable_break2): Ditto.
1281 (enable_break): Ditto.
1282 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
1283 (process_one_symbol): Ditto.
1284 * infcmd.c (program_info): Ditto.
1285 * mdebugread.c (parse_partial_symbols): Ditto.
1286 * symfile.c (add_symbol_file_command): Ditto.
1287 * cli/cli-cmds.c (edit_command): Ditto.
1288 (list_command): Ditto.
1289 * infcall.c (call_function_by_hand): Ditto.
1290 * remote-vx.c (vx_run_files_info): Ditto.
1291 (vx_wait): Ditto.
1292 (vx_attach): Ditto.
1293 (vx_detach): Ditto.
1294 (vx_kill): Ditto.
1295 * aix-thread.c (pdc_symbol_addrs): Ditto.
1296 (pdc_read_regs): Ditto.
1297 (pdc_write_regs): Ditto.
1298 (pdc_read_data): Ditto.
1299 (pdc_write_data): Ditto.
1300 * d10v-tdep.c (display_trace): Ditto.
1301 * rs6000-nat.c (find_toc_address): Ditto.
1302 * aix-thread.c: Don't include language.h.
1303 * buildsym.c: Ditto.
1304 * dbxread.c: Ditto.
1305 * mdebugread.c: Ditto.
1306 * rs6000-nat.c: Ditto.
1307 * buildsym.c (make_blockvector): Use renamed hex_string.
1308
33f2d567
JM
13092004-09-10 Jason Molenda (jmolenda@apple.com)
1310
1311 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
1312 chars after 'if' or 'while' commands in user-defined commands.
1313
7b90c3f9
JB
13142004-09-08 Jim Blandy <jimb@redhat.com>
1315
1316 Fix bug reported and analyzed by Olivier Crete:
1317 * symfile.c (copy_section_addr_info): New function.
1318 (symbol_file_add_with_addrs_or_offsets): Use it to save the
1319 original set of address arguments, instead of handwritten code
1320 that uses one length to allocate and a different length to
1321 initialize. Use make_cleanup_free_section_addr_info.
1322 * symfile.h (copy_section_addr_info): New declaration.
1323 * utils.c: #include "symfile.h".
1324 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
1325 New functions.
1326 * defs.h (make_cleanup_free_section_addr_info): New declaration.
1327 * Makefile.in (utils.o): Update dependencies.
1328
b26a6851
AC
13292004-09-08 Andrew Cagney <cagney@gnu.org>
1330
1331 * thread-db.c (keep_thread_db): Delete.
1332 (thread_db_new_objfile, thread_db_create_inferior)
1333 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
1334
be24b061
MK
13352004-09-08 Mark Kettenis <kettenis@gnu.org>
1336
f6792ef4
MK
1337 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
1338 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
1339 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
1340 (i386_frameless_signal_p): Remove prototype.
1341 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
1342 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
1343 I386_SSE_NUM_REGS.
1344 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
1345 instead of FP0_REGNUM.
1346 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
1347 of FP0_REGNUM and FPC_REGNUM.
1348
eeefdaa7
MK
1349 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
1350 (sunos_solib_create_inferior_hook): Don't call
1351 sunos_relocate_main_executable.
1352
be24b061
MK
1353 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
1354 solib_svr4_fetch_link_map_offsets to
1355 svr4_ilp32_fetch_link_map_offsets.
1356 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
1357 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
1358 svr4_ilp32_fetch_link_map_offsets.
1359 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
1360
7c679d16
JB
13612004-09-07 Jim Blandy <jimb@redhat.com>
1362
1363 * frame.h (frame_register): Doc fix.
1364
1f04aa62
AC
13652004-09-07 Andrew Cagney <cagney@gnu.org>
1366
1367 * vx-share/wait.h: Delete #ifdef USG.
1368 * utils.c (request_quit): Ditto.
1369 * tui/tui.c (tui_reset): Ditto.
1370 * remote.c: Ditto.
1371 * remote-sds.c: Ditto.
1372 * remote-rdi.c: Ditto.
1373 * mdebugread.c: Ditto.
1374 * m68klinux-nat.c: Ditto.
1375 * infttrace.c: Ditto.
1376 * infptrace.c: Ditto.
1377 * i386v-nat.c: Ditto.
1378 * exec.c: Ditto.
1379 * dbxread.c: Ditto.
1380 * core-aout.c: Ditto.
1381
90edbfbc
JB
13822004-09-05 Joel Brobecker <brobecker@gnat.com>
1383
1384 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
1385 heuristic_proc_desc.
1386 (mips_insn32_frame_cache): Likewise.
1387
01f4bf2b
JB
13882004-09-04 Joel Brobecker <brobecker@gnat.com>
1389
1390 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
1391 left behind by error.
1392
8511a048
JB
13932004-09-04 Joel Brobecker <brobecker@gnat.com>
1394
1395 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
1396 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
1397
649dfe9f
JB
13982004-09-04 Joel Brobecker <brobecker@gnat.com>
1399
1400 * config/rs6000/xm-aix4.h: Remove this file.
1401 * config/rs6000/aix4.mh (XM_FILE): Delete.
1402
6e50f889
JB
14032004-09-04 Joel Brobecker <brobecker@gnat.com>
1404
1405 * config/rs6000/xm-rs6000.h: Remove this file.
1406 * config/rs6000/rs6000.mh (XM_FILE): Remove.
1407
b8c4aece
AC
14082004-09-03 Andrew Cagney <cagney@gnu.org>
1409
fb603883
AC
1410 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
1411 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
1412 only use.
1413
c9343fd1
AC
1414 * mips-tdep.c (temp_saved_regs): Delete.
1415 (set_reg_offset): Replace saved_regs parameter with this_cache.
1416 (heuristic_proc_desc, mips16_heuristic_proc_desc)
1417 (mips32_heuristic_proc_desc): Add this_cache parameter.
1418 (mips_insn32_frame_cache, mips_insn16_frame_cache)
1419 (after_prologue): Pass a NULL this_cache.
1420
9733cfe1
AC
1421 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
1422 non-kernel trap prologues.
1423
0d5febcc
AC
1424 * mips-tdep.c (find_proc_desc): Delete function.
1425 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
1426 simplify.
1427 (mips_insn16_frame_cache): Replace find_proc_desc with code from
1428 mips_insn32_frame_cache.
1429
9733cfe1 1430 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
283be873
AC
1431 Simplify as NEXT_FRAME is NULL.
1432 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
1433
177f84a3
AC
1434 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
1435 local variable.
1436 (mips_skip_prologue): Update.
1437
465f7520
AC
1438 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
1439 "cur_frame" parameter.
177f84a3
AC
1440 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
1441 (mips_insn32_frame_cache, find_proc_desc): Update
465f7520 1442
e38b8658
AC
1443 * config/vax/nm-obsd.h: Delete file.
1444 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1445 * config/vax/nm-nbsd.h: Delete file.
1446 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
1447 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1448 * config/sh/nm-nbsd.h: Delete file.
1449 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1450 * config/rs6000/nm-rs6000ly.h: Delete file.
1451 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
1452 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1453 * config/powerpc/nm-obsd.h: Delete file.
1454 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1455 * config/powerpc/nm-nbsd.h: Delete file.
1456 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1457 * config/pa/nm-obsd.h: Delete file.
1458 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1459 * config/mips/nm-nbsd.h: Delete file.
1460 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1461 * config/m88k/nm-obsd.h: Delete file.
1462 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1463 * config/m68k/nm-nbsd.h: Delete file.
1464 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
1465 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1466 * config/i386/nm-nbsd.h: Delete file.
1467 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
1468 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1469 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1470 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1471 * config/i386/nm-i386lynx.h: Delete file.
1472 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1473 * config/arm/nm-nbsd.h: Delete file.
1474 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
1475 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1476
be1ed680
AC
1477 * config/i386/tm-fbsd.h: Delete file.
1478 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
1479 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
1480
4b392b26
AC
1481 * config/rs6000/tm-rs6000-aix4.h: Delete file.
1482 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
1483 * config/rs6000/aix4.mt (TM_FILE): Set to
1484 config/rs6000/tm-rs6000.h.
1485 * config/powerpc/tm-ppc-aix.h: Delete file.
1486 * config/powerpc/aix.mt (TM_FILE): Set to
1487 config/rs6000/tm-rs6000.h.
1488 * config/m68k/tm-linux.h: Delete file.
1489 * config/m68k/linux.mt (TM_FILE): Set to solib.h
1490 * config/i386/tm-linux64.h: Delete file.
1491 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
1492 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
1493
f3219c75
AC
1494 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1495 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
1496 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
1497 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1498 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
1499 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
1500 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
1501 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
1502 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
1503
b8c4aece
AC
1504 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
1505 gdb_host_cpu.
1506
8ac2e020
JB
15072004-09-02 Joel Brobecker <brobecker@gnat.com>
1508
1509 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
1510 Minor reformatting. Some code factoring.
1511
c185a355
AC
15122004-09-02 Andrew Cagney <cagney@gnu.org>
1513
63f22f0d
AC
1514 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
1515 * config/vax/tm-nbsd.h: Delete file.
1516 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1517 * config/sparc/tm-vxworks.h: Delete file.
1518 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
1519 * config/sparc/tm-nbsd.h: Delete file.
1520 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
1521 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
1522 * config/sparc/tm-linux.h: Delete file.
1523 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
1524 * config/s390/tm-linux.h: Delete file.
1525 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
1526 * config/pa/tm-bsd.h: Delete file.
1527 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
1528 * config/m68k/tm-obsd.h: Delete file.
1529 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
1530 * config/m68k/tm-nbsd.h: Delete file.
1531 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1532 * config/i386/tm-vxworks.h: Delete file.
1533 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
1534 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
1535 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
1536 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
1537 * config/i386/tm-nbsd.h: Delete file.
1538 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
1539 * config/i386/tm-i386lynx.h: Delete file.
1540 * config/cris/cris.mt (TM_FILE): Set to solib.h.
1541 * config/cris/tm-cris.h: Delete file.
1542
0f475e27
AC
1543 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
1544 * configure: Re-generate.
1545 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
1546 * config/arm/tm-nbsd.h: Delete file.
1547
458ed000
AC
1548 * config/powerpc/tm-ppcle-sim.h: Delete.
1549 * config/powerpc/tm-ppcle-eabi.h: Delete.
1550 * config/powerpc/tm-nbsd.h: Delete.
1551 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
1552 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
1553 tm-ppcle-eabi.h.
1554
f14375f3
AC
1555 * config/i386/nto.mh (NAT_FILE): Delete.
1556 * config/i386/nm-nto.h: Delete.
1557
c34d127c
AC
1558 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
1559 * config/m68k/tm-os68k.h: Ditto.
1560 * config/m68k/tm-monitor.h: Ditto.
1561 * config/m68k/tm-cisco.h: Ditto.
1562 * config/m68k/st2000.mt (TM_FILE): Delete.
1563 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
1564 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
1565 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
1566 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
1567
f7f0fe03
AC
1568 * config/m68k/tm-st2000.h: Delete.
1569 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
1570 * config/sparc/fbsd.mt (TM_FILE): Delete.
1571 * config/sparc/tm-fbsd.h: Delete.
1572
a2558533
AC
1573 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
1574 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
1575 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
1576
b78960be
AC
1577 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
1578 GDB_TM_FILE and GDB_XM_FILE.
1579 * gdbarch.c: Re-generate.
1580 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
1581 quotes in macro definition.
1582 * configure.in: Re-generate.
1583
4d60522e
AC
1584 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
1585 validating architecture methods.
1586 * gdbarch.c: Re-generate.
1587
5010d38b
AC
1588 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
1589 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
1590 GDB_MULTI_ARCH_PARTIAL.
1591 * gdbarch.h: Re-generate.
1592
c185a355
AC
1593 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
1594 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
1595 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
1596 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
1597 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
1598 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
1599 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
1600 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
1601 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
1602 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
1603 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
1604 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
1605
14aaa6ab
AC
16062004-09-01 Andrew Cagney <cagney@gnu.org>
1607
1608 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
1609 and main_func_highpc.
1610 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
1611 * objfiles.c (init_entry_point_info, objfile_relocate): Update
1612 * nlmread.c (nlm_symfile_read): Update.
1613
a343eb3c
JB
16142004-09-01 Joel Brobecker <brobecker@gnat.com>
1615
1616 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
1617 (mips_insn32_frame_cache): Inline call to find_proc_desc.
1618 (find_proc_desc): Remove dead code.
1619
4fbbbd07
JB
16202004-09-01 Joel Brobecker <brobecker@gnat.com>
1621
1622 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
1623
84acb35a
JJ
16242004-09-01 Jeff Johnston <jjohnstn@redhat.com>
1625
1626 * observer.sh: Add struct so_list declaration.
1627 * Makefile.in: Add dependencies on observer.h for solib.c and
1628 breakpoint.c.
1629 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
1630 function.
1631 (_initialize_breakpoint): Register
1632 disable_breakpoints_in_unloaded_shlib as an observer of the
1633 "solib unloaded" observation event.
1634 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
1635 call decode_line_1 so unfound breakpoint errors are silent.
1636 * solib.c (update_solib_list): When a solib is discovered to have
1637 been unloaded by the program, notify all observers of the
1638 "solib unloaded" observation event.
1639
c8cd9f6c
AC
16402004-09-01 Andrew Cagney <cagney@gnu.org>
1641
1642 * frame.c: Include "objfiles.h".
1643 (inside_main_func): New function.
1644 (get_prev_frame): Use new inside_main_func.
1645 * Makefile.in (frame.o): Update dependencies.
1646 * defs.h (inside_main_func): Delete declaration.
1647 * blockframe.c (inside_main_func): Delete function.
1648
1168df01
JB
16492004-08-31 Jim Blandy <jimb@redhat.com>
1650
1651 * dwarf2read.c (is_vtable_name): New function, based on logic from
1652 read_structure_type, but passing the correct length to strncmp,
1653 and using 'sizeof' instead of 'strlen'.
1654 (read_structure_type): Call it.
1655
f14f9744
JB
16562004-08-31 Joel Brobecker <brobecker@gnat.com>
1657
1658 * config/powerpc/aix.mh: Add comment.
1659
386d4518
PG
16602004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
1661
1662 * MAINTAINERS: Add self to Write-After-Approval.
1663
7d97d5e2
MI
16642004-08-30 Manoj Iyer <manjo@austin.ibm.com>
1665
1666 * MAINTAINERS: Add self to Write-After-Approval.
1667
68f53502
AC
16682004-08-30 Andrew Cagney <cagney@gnu.org>
1669
1670 Fix PR breakpoints/1757.
1671 * infrun.c (struct execution_control_state): Replace
1672 remove_breakpoints_on_following_step with
1673 step_after_step_resume_breakpoint.
1674 (init_execution_control_state): Update.
1675 (handle_inferior_event): For signals, when stepping off a
1676 breakpoint, set step_after_step_resume_breakpoint. When
1677 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
1678 (keep_going): Delete code handling
1679 remove_breakpoints_on_following_step.
1680
7ca2d3a3
DL
16812004-08-29 David Lecomber <david@streamline-computing.com>
1682
1683 Fix PR gdb/648
1684 * language.h (enum array_ordering): New enum.
1685 * language.h (struct language_defn): New la_array_ordering
1686 attribute.
1687 * language.c (unknown_language_defn, auto_language_defn)
1688 (local_language_defn): Ditto.
1689 * ada-lang.c (ada_language_defn): Ditto.
1690 * c-lang.c (c_language_defn, cplus_language_defn)
1691 (asm_language_defn, minimal_language_defn): Ditto.
1692 * f-lang.c (f_language_defn): Ditto.
1693 * jv-lang.c (java_language_defn): Ditto.
1694 * m2-lang.c (f_language_defn): Ditto.
1695 * objc-lang.c (objc_language_defn): Ditto.
1696 * p-lang.c (pascal_language_defn): Ditto.
1697 * scm-lang.c (scm_language_defn): Ditto.
1698 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
1699 oriented large to small in type structure.
1700 * dwarf2read.c (read_array_order): New function.
1701 (read_array_type): Use read_array_order to check row/column
1702 major ordering.
1703
e354df01
NW
17042004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
1705
1706 * target.c (target_resize_to_sections): Check
1707 current_target.to_sections for an old value when updating.
1708
9185ddce
JB
17092004-08-27 Joel Brobecker <brobecker@gnat.com>
1710
1711 * procfs.c (dbx_link_bpt_addr): New static global variable.
1712 (dbx_link_shadow_contents): New static global variable.
1713 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
1714 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
1715 if we just hit it.
1716 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
1717 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
1718 from run to run.
1719 (procfs_create_inferior): Remove syssgi syscall-exit notifications
1720 after the inferior has been forked.
1721 (remove_dbx_link_breakpoint): New function.
1722 (dbx_link_addr): New function.
1723 (insert_dbx_link_bpt_in_file): New function.
1724 (insert_dbx_link_bpt_in_region): New function.
1725 (insert_dbx_link_breakpoint): New function.
1726 (proc_trace_syscalls_1): New function, extracted from
1727 proc_trace_syscalls.
1728 (proc_trace_syscalls): Replace extract code by call to
1729 proc_trace_syscalls_1.
1730 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
1731 is no longer valid.
1732
e6742ace
JB
17332004-08-25 Jim Blandy <jimb@redhat.com>
1734
1735 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
1736
8fb3e588
AC
17372004-08-25 Andrew Cagney <cagney@gnu.org>
1738
629a41ee
AC
1739 * infrun.c (struct execution_control_state): Delete field
1740 "stepping_through_sigtramp".
1741 (init_execution_control_state): Do not set same.
1742 (context_switch): Do not pass same to save_infrun_state and
1743 load_infrun_state.
1744 * gdbthread.h (struct thread_info): Delete field
1745 stepping_through_sigtramp.
1746 (save_infrun_state, load_infrun_state): Delete parameter
1747 stepping_through_sigtramp.
1748 * thread.c (load_infrun_state, save_infrun_state): Update.
1749
8fb3e588
AC
1750 * infrun.c: Re-indent. Move expression operators to the beginning
1751 of the line. Remove long disabled #if 0 code.
1752
49c54768
AC
17532004-08-24 Andrew Cagney <cagney@gnu.org>
1754
1755 * doublest.h (floatformat_ieee_quad): Rename
1756 floatformat_ia64_quad.
1757 * doublest.c (floatformat_ieee_quad): Rename
1758 floatformat_ia64_quad.
1759 (_initialize_doublest): Update.
1760
5ca2e327
JB
17612004-08-24 Jim Blandy <jimb@redhat.com>
1762
87808bd6
JB
1763 * dwarf2expr.h (struct dwarf_expr_context): New members
1764 'num_pieces' and 'pieces', for returning the result of an
1765 expression that uses DW_OP_piece.
1766 (struct dwarf_expr_piece): New struct type.
1767 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
1768 pieces.
1769 (free_dwarf_expr_context): Free pieces, if any.
1770 (add_piece): New function.
1771 (execute_stack_op): Implement DW_OP_piece.
1772 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
1773 expression is a list of pieces, print an error message.
1774 (dwarf2_loc_desc_needs_frame): If the expression yields
1775 pieces, and any piece is in a register, then we need a frame.
1776
5ca2e327
JB
1777 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
1778 the stack until we've decided what sort of result the evaluation
1779 has produced. Use separate variables, with more specific names.
1780
2afeb6b8
RE
17812004-08-23 Richard Earnshaw <rearnsha@arm.com>
1782
1783 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
1784 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
1785 (arm_netbsd_init_abi_common): Register them.
1786
5885ab49
MK
17872004-08-22 Mark Kettenis <kettenis@gnu.org>
1788
fda820a6
MK
1789 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
1790
1c5bf419
MK
1791 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
1792 safe_frame_unwind_memory instead of target_read_memory.
1793
8cbba7c8
MK
1794 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
1795 Reorder includes.
1796 (fetch_register, store_register): Remove prototypes.
1797 (child_resume): Reorganize code and comments such that it is
1798 grouped a bit more logically.
1799 (attach): Explicitly compare errno against 0.
1800 (detach): Likewise. Use perror_with_name instead of
1801 print_sys_errmsg.
1802 * Makefile.in (infptrace.o): Update dependencies.
1803
c5fa4245
MK
1804 * ia64-linux-nat.c: Update copyright year.
1805 (fetch_debug_register, store_debug_register)
1806 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
1807 PTRACE_TYPE_ARG3.
1808 * config/ia64/nm-linux.h: Update copyright year.
1809 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
1810
387c058c
MK
1811 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
1812 from CORE_ADDR to struct frame_info *. Use
1813 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
1814 (amd64_linux_sigtramp_p): Adjust for changed signature of
1815 and64_linux_sigtramp_start
1816
277215a6
MK
1817 * gdb_ptrace.h: GNU/Linux.
1818
25f6178e
MK
1819 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1820 Remove defines.
1821
652fc137
MK
1822 * infptrace.c: Include "gdb_assert.h".
1823 (PTRACE_XFER_TYPE): Remove define.
1824 (offsetof): Only define if U_REGS_OFFSET isn't defined.
1825 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
1826 Tweak comment.
1827 (fetch_inferior_registers, store_inferior_registers): Remove
1828 redundant culry braces. Tweak comment. s/regno/regnum.
1829 * Makefile.in (infptrace.o): Update dependencies.
1830
5885ab49
MK
1831 * configure.in: Change test for return type of ptrace to default
1832 to `long' instead of `int'.
1833 * configure: Regenerate.
1834
11003ae3
MK
18352004-08-21 Mark Kettenis <kettenis@gnu.org>
1836
6b95110c
MK
1837 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
1838
bcb3dc3d
MK
1839 * configure.in: Check for ttrace function.
1840 * configure, config.in: Regenerate.
1841
11003ae3
MK
1842 * gdb_ptrace.h: New file.
1843 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
1844 <sys/ptrace.h>.
1845 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
1846 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
1847 (attach): Don't define PT_ATTACH.
1848 (detach): Don't define PT_DETACH.
1849 * Makefile.in (gdb_ptrace_h): New variable.
1850 (infptrace.o): Update dependencies.
1851
f8707cac
MK
18522004-08-16 Mark Kettenis <kettenis@gnu.org>
1853
1854 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
1855 instead of `int' if not already defined.
1856 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
1857 PTRACE_TYPE_ARG3.
1858 * infptrace.c (call_ptrace): Revert change that replaced
1859 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1860
655c5466
MK
18612004-08-15 Mark Kettenis <kettenis@gnu.org>
1862
156e5ba7
MK
1863 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1864 Remove defines.
1865
de9a9e51
MK
1866 * linux-nat.c (kill_inferior): Add missing third and fourth
1867 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
1868
88800403
MK
1869 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
1870 PTRACE_TYPE_RET.
1871
849a1d7c
MK
1872 * proc-why.c (proc_prettyfprint_why): Fix format string.
1873
61ad16d1
MK
1874 * solib-osf.c (osf_current_sos): Remove unsused label.
1875
a6ed5501
MK
1876 * configure.in: Add <ncurses/ncurses.h> to the list of possible
1877 curses headers.
1878 * configure, config.in: Regenerate.
1879 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
1880 <ncurses/ncurses.h>.
1881
016ddeca
MK
1882 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
1883 * config/nm-nbsd.h: Update copyright year.
1884 (PTRACE_ARG3_TYPE): Remove define.
1885
49ec097f
MK
1886 * sparc-nat.c (fetch_inferior_registers)
1887 (store_inferior_registers, sparc_xfer_wcookie):
1888 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1889
9f8e0089
MK
1890 * alphabsd-nat.c (fetch_inferior_registers):
1891 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1892 PTRACE_TYPE_ARG3.
1893 * amd64bsd-nat.c (fetch_inferior_registers)
1894 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1895 PTRACE_TYPE_ARG3.
1896 * armnbsd-nat.c: Update copyright year.
1897 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
1898 (store_register, store_regs, store_fp_register, store_fp_regs):
1899 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1900 * hppabsd-nat.c (fetch_inferior_registers)
1901 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1902 PTRACE_TYPE_ARG3.
1903 * i386bsd-nat.c (fetch_inferior_registers)
1904 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
1905 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1906 * m68kbsd-nat.c (fetch_inferior_registers)
1907 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1908 PTRACE_TYPE_ARG3.
1909 * m88kbsd-nat.c (fetch_inferior_registers)
1910 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1911 PTRACE_TYPE_ARG3.
1912 * mipsnbsd-nat.c: Update copyright year.
1913 (fetch_inferior_registers, store_inferior_registers):
1914 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1915 * ns32knbsd-nat.c: Update copyright year.
1916 (fetch_inferior_registers, store_inferior_registers):
1917 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1918 * ppcnbsd-nat.c (fetch_inferior_registers):
1919 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1920 PTRACE_TYPE_ARG3.
1921 * ppcobsd-nat.c (fetch_inferior_registers):
1922 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1923 PTRACE_TYPE_ARG3.
1924 * shnbsd-nat.c: Update copyright year.
1925 (fetch_inferior_registers, store_inferior_registers):
1926 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1927 * vaxbsd-nat.c (fetch_inferior_registers)
1928 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1929 PTRACE_TYPE_ARG3.
1930
655c5466
MK
1931 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
1932 PTRACE_TYPE_ARG3.
1933 * infptrace.c (call_ptrace, child_resume, attach, detach)
1934 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
1935 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1936 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
1937 PTRACE_TYPE_ARG3.
1938
c40d0d10
MK
19392004-08-14 Mark Kettenis <kettenis@gnu.org>
1940
5cb0ff31
MK
1941 * defs.h: Remove out-of-date comment.
1942 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
1943 [!GETENV_PROVIDED] (getenv): Remove prototype.
1944
5f0f34cb
MK
1945 * standalone.c: Remove file.
1946 * Makefile.in (standalone.o): Remove dependency.
1947
7532965f
MK
1948 * i386-linux-nat.c (dummy_sse_values): Remove function and
1949 prototype.
1950 (i386_linux_dr_get): Fix typo in comment.
1951 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
1952
1bdc6c53
MK
1953 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
1954
c40d0d10
MK
1955 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1956 from declaration.
1957 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
1958 from definition.
1959
64218d3e
MK
19602004-08-13 Mark Kettenis <kettenis@gnu.org>
1961
1962 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
1963 parenthesis in definition.
1964 * configure: Regenerated.
1965
926c94e7
MC
19662004-08-12 Michael Chastain <mec.gnu@mindspring.com>
1967
1968 * PROBLEMS: Mention build/1411.
1969
69489883
NN
19702004-08-09 Robert Millan <robertmh@gnu.org>
1971
1972 Committed by Nathanael Nerode.
1973 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
1974 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
1975
ebb7c577
AC
19762004-08-12 Andrew Cagney <cagney@gnu.org>
1977
1978 * NEWS: Mention fixes in GDB 6.2.1.
1979 * PROBLEMS: Remove mention of mips-irix.
1980
232d697c
JB
19812004-08-11 Joel Brobecker <brobecker@gnat.com>
1982
1983 * config/powerpc/xm-aix.h: Delete.
1984 * config/powerpc/aix.mh (MH_FILE): Remove.
1985 * config/powerpc/aix432.mh (MH_FILE): Remove.
1986
72f4e82b
JB
19872004-08-11 Joel Brobecker <brobecker@gnat.com>
1988
1989 * config/powerpc/aix.mh: Remove obsolete comment.
1990 * config/powerpc/aix432.mh: Likewise.
1991
0687ccb2
JB
19922004-08-11 Joel Brobecker <brobecker@gnat.com>
1993
1994 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
1995
dbf3ada7
JB
19962004-08-11 Joel Brobecker <brobecker@gnat.com>
1997
e08e1886
JB
1998 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
1999 this file is now empty.
2000 * config/xm-aix4.h: Remove, this file is no longer included
2001 anywhere.
2002
20032004-08-11 Joel Brobecker <brobecker@gnat.com>
2004
2005 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
2006 that file is now empty.
dbf3ada7
JB
2007 (termdef): Remove prototype, function no longer used.
2008
4c525ef6
JB
20092004-08-11 Joel Brobecker <brobecker@gnat.com>
2010
2011 * doc/gdbint.texinfo (Host Definition): Remove documentation
2012 for USE_O_NOCTTY, no longer used.
2013 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
2014 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
2015
82e0b968
JB
20162004-08-11 Joel Brobecker <brobecker@gnat.com>
2017
2018 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
2019 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
2020 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
2021
f2acbe1c
MK
20222004-08-11 Mark Kettenis <kettenis@gnu.org>
2023
daa98270
MK
2024 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
2025 instead of FIVE_ARG_PTRACE.
2026
f2acbe1c
MK
2027 * inflow.c (O_NOCTTY): Define to zero if not already defined.
2028 (new_tty): Use O_NOCTTY unconditionally.
2029
cc377e6b
MK
20302004-08-10 Mark Kettenis <kettenis@gnu.org>
2031
2032 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
2033 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
2034 fflush on stdout.
2035
3bcc18fa
JB
20362004-08-10 Joel Brobecker <brobecker@gnat.com>
2037
2038 * xcoff_symfile_finish: Replace last call to xmfree by call
2039 to xfree.
2040
7936743b
AC
20412004-08-10 Andrew Cagney <cagney@gnu.org>
2042
cc503c8a
AC
2043 * main.c (captured_main): Delete call to init_malloc.
2044 * defs.h (init_malloc): Delete declaration.
2045 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
2046 (init_malloc): Delete functions.
2047
2dc74dc1
AC
2048 * defs.h (xmfree): Delete.
2049 * utils.c (xmfree): Delete function.
2050 (xfree): Inline calls to xmfree and mfree.
2051 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
2052 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
2053 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
2054 * somread.c (som_symfile_finish): Ditto.
2055 * objfiles.c (allocate_objfile, free_objfile):
2056 * nlmread.c (nlm_symfile_finish): Ditto.
2057 * hpread.c (hpread_symfile_finish): Ditto.
2058 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
2059 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
2060 * coffread.c (coff_symfile_finish): Ditto.
2061
aa2ee5f6
AC
2062 * defs.h (xmcalloc): Delete declaration.
2063 * utils.c (xmcalloc): Delete.
2064 (xcalloc): Inline calls to xmcalloc and mcalloc.
2065 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
2066 xcalloc and xfree.
2067 * symtab.c (create_demangled_names_hash): Ditto.
2068
0efffb96
AC
2069 * defs.h (xmrealloc): Delete.
2070 * utils.c (xmrealloc): Delete.
2071 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
2072 * symmisc.c (extend_psymbol_list): Use xrealloc.
2073 * source.c (find_source_lines): Ditto.
2074 * hpread.c (hpread_lookup_type): Ditto.
2075 * dbxread.c (add_bincl_to_list): Ditto.
2076
7936743b
AC
2077 * utils.c (xmmalloc): Delete.
2078 (xmalloc): Inline xmmalloc and mmalloc calls.
2079 (msavestring): Use xmalloc.
2080 * defs.h (xmmalloc): Delete declaration.
2081 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
2082 xmmalloc.
2083 * symmisc.c (extend_psymbol_list): Ditto.
2084 * symfile.c (init_psymbol_list): Ditto.
2085 * source.c (find_source_lines): Ditto.
2086 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
2087 * elfread.c (elf_symtab_read): Ditto.
2088 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
2089 * coffread.c (coff_symfile_init): Ditto.
2090
252ab814
DC
20912004-08-10 David Carlton <carlton@bactrian.org>
2092
2093 * MAINTAINERS: Remove David Carlton from c++ testsuite
2094 maintainers.
2095
8f5ba92b
JG
20962004-08-10 Jerome Guitton <guitton@gnat.com>
2097
2098 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
2099 print a line feed before the prompt.
2100
21749010
MK
21012004-08-10 Mark Kettenis <kettenis@gnu.org>
2102
2103 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
2104
1f011ce2
JB
21052004-08-09 Joel Brobecker <brobecker@gnat.com>
2106
2107 General cleanup of the AIX xm include file:
2108 * config/xm-aix4.h (fd_set): Remove undefine.
2109 Remove include of <sys/select.h>.
2110 (HAVE_TERMIO): Remove define.
2111 (USG): Likewise.
2112 (NULL): Remove redefine.
2113 (alloca): Remove #pragma.
2114 (vfork): Remove define.
2115 (termdef): Remove.
2116 (SIGWINCH_HANDLER): Remove.
2117 (SIGWINCH_HANDLER_BODY): Remove.
2118
cf4e7692
MK
21192004-08-09 Mark Kettenis <kettenis@gnu.org>
2120
2121 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
2122 GDB_OSABI_OPENBSD_ELF.
2123
ac5754fa
MK
21242004-08-07 Robert Millan <robertmh@gnu.org>
2125
2126 * bsd-kvm.c: Check for nlist.h before including it.
2127
086ec9eb
MK
21282004-08-09 Mark Kettenis <kettenis@gnu.org>
2129
bbe06c74
MK
2130 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
2131 sigcontext' offset consistency checks for ancient BSD.
2132
3aa7b3b3
MK
2133 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
2134
086ec9eb
MK
2135 * configure.in: Check for <sys/types.h>. Check return and
2136 argument types of ptrace.
2137 * configure, config.in: Regenerate.
2138
09991fa0
JB
21392004-08-09 Jim Blandy <jimb@redhat.com>
2140
2141 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
2142 rs6000_register_sim_regno): Doc fixes.
2143
fed7ba43
JB
21442004-08-08 Joel Brobecker <brobecker@gnat.com>
2145
2146 * mips-tdep.c: Include "floatformat.h".
2147 (n32n64_floatformat_always_valid): New function.
2148 (floatformat_n32n64_long_double_big): New constant.
2149 (mips_gdbarch_init): Set size and format of long double
2150 for N32 and N64 ABIs.
2151 * Makefile.in (mips-tdep.o): Update dependencies.
2152
456fcf94
AC
21532004-08-08 Andrew Cagney <cagney@gnu.org>
2154
2f9b146e
AC
2155 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
2156 print. Improve script's error messages.
2157 * gdbarch.h: Re-generate.
2158
456fcf94
AC
2159 * gdbarch.sh (pformat): New function.
2160 (float_format, double_format, long_double_format): List with bit
2161 members. Use pformat when printing.
2162 * gdbarch.c, gdbarch.h: Re-generate.
2163
69e9e646
NW
21642004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
2165
2166 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
2167 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
2168 (ppcnbsd_supply_pcb): New function.
2169 (_initialize_ppcnbsd_nat): New prototype and function.
2170 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
2171 (LOADLIBES): New variable.
2172 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
2173
5ef2d0aa
AC
21742004-08-08 Andrew Cagney <cagney@gnu.org>
2175
2176 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
2177 (builtin_type_ieee_double, builtin_type_ia64_quad)
2178 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
2179 BE/LE floating-point types.
2180 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
2181 (builtin_type_ieee_double, builtin_type_ia64_quad)
2182 (builtin_type_ia64_spill): Declare.
2183 * doublest.c (_initialize_doublest, floatformat_ieee_single)
2184 (floatformat_ieee_double, floatformat_arm_ext)
2185 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
2186 of LE/BE floatformats.
2187 * doublest.h: (struct floatformat, floatformat_ieee_single)
2188 (floatformat_ieee_double, floatformat_arm_ext)
2189 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
2190
5c7f2947
MK
21912004-08-08 Mark Kettenis <kettenis@gnu.org>
2192
ecac404d
MK
2193 * i386gnu-nat.c (gnu_store_registers): Fix typo.
2194
9b8607ce
MK
2195 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
2196 instead of regcache_raw_supply when storing the registers.
2197
f6052080
MK
2198 * i386gnu-nat.c: Update copyright year.
2199 (gnu_store_registers): Don't use deprecated_registers and
2200 deprecated_registers_valid. Use regcache_valid_p and
2201 regcache_raw_supply instead.
2202
17777823
MK
2203 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
2204 frame_pc_unwind.
2205
5240ceac
MK
2206 * procfs.c (procfs_pid_to_str): Remove redundant and unused
2207 variables. Incapitalized "process".
2208
5c7f2947
MK
2209 * configure.in: Add cursesX to the list of possible curses libs.
2210 Add cursesX.h to the list of possible curses headers.
2211 * configure, config.in: Regenerate.
2212
da7d81e3
NW
22132004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
2214
2215 * configure.in: Test for struct lwp in <sys/lwp.h>.
2216 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
2217 the offset of l_addr in struct lwp.
2218
7f245d65
NW
22192004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
2220
2221 * bsd-kvm.c: Include "gdbcore.h"
2222 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
2223
47b3f456
AC
22242004-08-07 Andrew Cagney <cagney@gnu.org>
2225
70bd8e24
AC
2226 * gdbtypes.c (build_flt, build_complex): New functions.
2227 (gdbtypes_post_init): Use.
2228
9b0dea39
AC
2229 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
2230
5cf7abac
AC
2231 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
2232 through to builtin_type_uint128.
2233
64d2b26d
AC
2234 * c-exp.y: Use builtin_type function to obtain builtin types.
2235
7ad6570d
AC
2236 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
2237 builtin_uint128.
2238 * gdbtypes.c (gdbtypes_post_init): Update.
2239 (build_gdbtypes): Move initialization of builtin_type_int0
2240 through to builtin_type_uint128 from here ...
2241 (_initialize_gdbtypes): ... to here.
2242 * d10v-tdep.c (d10v_register_type): Update.
2243
47b3f456
AC
2244 * doublest.c: Update copyright.
2245 (floatformat_from_length): Call error when floatformat is NULL.
2246 (extract_floating_by_length): Remove NULL fmt check.
2247 (store_floating_by_length): Ditto.
2248
0a8146bf
AC
22492004-08-07 Andrew Cagney <cagney@gnu.org>
2250
2251 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
2252 that the register is valid.
2253
c0ccb908
MK
22542004-08-05 Mark Kettenis <kettenis@chello.nl>
2255
8e6bed05
MK
2256 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2257 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
2258 struct frame_info *. Use safe_frame_unwind_memory instead of
2259 deprecated_read_memory_nobpt.
2260 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
2261 changed signature of i386_linux_sigtramp_start and
2262 i386_linux_rt_sigtramp_start.
2263
24f9f5e3
MK
2264 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
2265 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
2266 instead of deprecated_read_memory_nobpt.
2267 (i386nbsd_sigtramp_p): Adjust for changed signature of
2268 i386nbsd_sigtramp_offset.
2269
c822af0c
MK
2270 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
2271 safe_frame_unwind_memory instead of target_read_memory.
2272
c0ccb908
MK
2273 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2274 !NO_SYS_FILE.
2275 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
2276 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
2277 (_initialize_kernel_u_addr): Remove prototype and function.
2278 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2279 !NO_SYS_FILE.
2280 * xcoffread.c: Likewise.
2281
b9e1c0d6
MK
22822004-08-06 Mark Kettenis <kettenis@gnu.org>
2283
2284 * vax-nat.c: New file.
2285 * vaxbsd-nat.c: Tweak comment.
2286 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
2287 vaxnbsd-tdep.c.
2288 (vax-nat.o): New dependency.
2289 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
2290 (vax-*-ultrix2*): Remove.
2291 * config/vax/vax.mh: New file.
2292 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
2293 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
2294 (vax_register_u_addr): New prototype.
2295 (REGISTER_U_ADDR): Define using vax_register_u_addr.
2296 * config/vax/vaxult2.mh: Remove file.
2297 * config/vax/vaxult.mh: Remove file.
2298 * config/vax/vaxbsd.mh: Remove file.
2299 * config/vax/vax.mt (TM_FILE): Remove.
2300 * config/vax/tm-vaxbsd.h: Remove file.
2301
9ad7bec7
JB
23022004-08-06 Joel Brobecker <brobecker@gnat.com>
2303
2304 * aix-thread.c (get_signaled_thread): New function.
2305 (iter_trap): Delete, no longer used.
2306 (iter_tid): New function.
2307 (pd_update): Find the thread that received the SIGTRAP signal
2308 by first locating the kernel thread, and then finding its
2309 associated thread.
2310
bf0d233d
UW
23112004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
2312
2313 * lin-lwp.c (child_wait): Continue inferior after processing
2314 PTRACE_EVENT_CLONE event.
2315
d0f853e1
NN
23162004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
2317
2318 * MAINTAINERS: Add self to Write-After-Approval.
2319
ab14aeb0
JJ
23202004-08-05 Jeff Johnston <jjohnstn@redhat.com>
2321
2322 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
2323 libunwind-xxxx.so" where xxxx is UNW_TARGET.
2324
9c8dbfa9
AC
23252004-08-05 Andrew Cagney <cagney@gnu.org>
2326
c8f3ca46
AC
2327 * config/xm-sysv4.h: Delete file.
2328 * config/mips/xm-irix5.h: Delete file.
2329 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
2330 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
2331 * config/ia64/xm-aix.h: Delete file.
2332 * config/ia64/aix.mh (XM_FILE): Delete.
2333 * config/pa/xm-hppah.h: Delete file.
2334 * config/pa/hpux11w.mh (XM_FILE): Delete.
2335 * config/pa/hpux11.mh (XM_FILE): Delete.
2336 * config/pa/hpux1020.mh (XM_FILE): Delete.
2337 * config/pa/hppahpux.mh (XM_FILE): Delete.
2338
5f7daaff
AC
2339 * config/alpha/xm-alphalinux.h: Delete file.
2340 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
2341 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
2342 * config/alpha/xm-alphaosf.h: Delete file.
2343 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
2344 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
2345 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
2346 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
2347
69babf95
AC
2348 * config/i386/xm-i386v.h: Delete file.
2349 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
2350 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
2351 * config/i386/xm-i386sco.h: Delete file.
2352 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
2353 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
2354 * config/i386/xm-i386v4.h: Delete file.
2355 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
2356 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
2357 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
2358 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
2359
6f009c8a
AC
2360 * config/vax/xm-vax.h: Delete file.
2361 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
2362 * config/vax/xm-vaxult2.h: Delete file.
2363 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
2364 * config/vax/vaxult2.mh (XM_FILE): Delete.
2365 * config/vax/xm-vaxult.h: Delete file.
2366 * config/vax/vaxult.mh (XM_FILE): Delete.
2367 * config/vax/xm-vaxbsd.h: Delete file.
2368 * config/vax/vaxbsd.mh (XM_FILE): Delete.
2369
9c8dbfa9
AC
2370 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
2371 * gdbarch.h, gdbarch.c: Re-generate.
2372 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
2373 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
2374 * frame.h: Delete deprecated_read_fp from comments.
2375 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
2376 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
2377
84367a3e
MK
23782004-08-04 Mark Kettenis <kettenis@gnu.org>
2379
9c8e3411
MK
2380 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
2381 trampoline in OpenBSD 3.5-current.
2382
b87bc0d8
MK
2383 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
2384 SSE registers.
2385
84367a3e
MK
2386 * Makefile.in: Remove embedded page breaks.
2387
a44bddec
JB
23882004-08-04 Jim Blandy <jimb@redhat.com>
2389
7ab3286f
JB
2390 * regcache.c (regcache_raw_read): Assert that, after calling
2391 target_fetch_registers, the register we're reading is cached.
2392
a44bddec
JB
2393 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
2394 a call to 'internal_error', with a more helpful error message.
2395 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 2396 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 2397
35124113
AC
23982004-08-04 Andrew Cagney <cagney@gnu.org>
2399
2400 * Makefile.in: Update dependencies.
2401
9f643768
JB
24022004-08-04 Jim Blandy <jimb@redhat.com>
2403
6ced10dd
JB
2404 Change the layout of the PowerPC E500 raw register cache to allow
2405 the lower 32-bit halves of the GPRS to be their own raw registers,
2406 not pseudoregisters.
2407 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
2408 add ppc_ev0_upper_regnum flag.
2409 * rs6000-tdep.c: #include "reggroups.h".
2410 (spe_register_p): Recognize the ev upper half registers as SPE
2411 registers.
2412 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
2413 registers.
2414 (e500_move_ev_register): New function.
2415 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
2416 vector registers are the pseudo-registers now, formed by splicing
2417 together the gprs and the upper-half registers.
2418 (e500_register_reggroup_p): New function.
2419 (P): Macro deleted.
2420 (P8, A4): New macro.
2421 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
2422 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
2423 macros.
2424 (registers_e500): Rearrange register set so that the raw register
2425 set contains 32-bit GPRs and upper-half registers, and the SPE
2426 vector registers become pseudo-registers.
2427 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
2428 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
2429 register numbers are now the same for the E500 as they are for
2430 other PowerPC variants. Register e500_register_reggroup_p as the
2431 register group function for the E500.
2432 * Makefile.in (rs6000-tdep.o): Update dependencies.
2433
2434 Adapt PPC E500 native support to the new raw regcache layout.
2435 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
2436 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
2437 (fetch_spe_register, store_spe_register): Handle fetching/storing
2438 all the SPE registers at once, if regno == -1. These now take
2439 over the job of fetch_spe_registers and store_spe_registers.
2440 (fetch_spe_registers, store_spe_registers): Deleted.
2441 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
2442 unconditionally; they're always raw. Fetch/store SPE upper half
2443 registers, if present, instead of ev registers.
2444 (fetch_register, store_register): Remove sanity checks: gprs are
2445 never pseudo-registers now, so we never need to even mention any
2446 registers that are ever pseudoregisters.
2447
9f643768
JB
2448 Use a fixed register numbering when communicating with the PowerPC
2449 simulator.
2450 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
2451 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
2452 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
2453 New functions.
2454 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
2455 init_sim_regno_table.
2456 * Makefile.in (gdb_sim_ppc_h): New variable.
2457 (rs6000-tdep.o): Update dependencies.
2458
1e2279c8
AC
24592004-08-02 Andrew Cagney <cagney@gnu.org>
2460
1d94326f
AC
2461 * cris-tdep.c (cris_register_size): Restore function, still used
2462 locally.
2463
331ae7ed
AC
2464 * gdbarch.sh (deprecated_target_read_fp)
2465 (deprecated_frame_locals_address, deprecated_frame_args_address)
2466 (deprecated_frame_chain_valid, deprecated_frame_chain)
2467 (deprecated_init_extra_frame_info, deprecated_pop_frame)
2468 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
2469 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
2470 * gdbarch.h, gdbarch.c: Re-generate.
2471 * regcache.c (deprecated_read_fp): Do not call
2472 DEPRECATED_TARGET_READ_FP_P.
2473 * infcmd.c (default_print_registers_info): Do not call
2474 DEPRECATED_DO_REGISTERS_INFO.
2475 * frame-base.c (default_frame_locals_address): Do not call
2476 DEPRECATED_FRAME_LOCALS_ADDRESS.
2477 (default_frame_args_address): Do not call
2478 DEPRECATED_FRAME_ARGS_ADDRESS.
2479
1e2279c8
AC
2480 * gdbarch.sh (deprecated_register_raw_size)
2481 (deprecated_register_virtual_size:int): Delete.
2482 * gdbarch.h, gdbarch.c: Re-generate.
2483 * cris-tdep.c (cris_register_size): Delete.
2484 (cris_gdbarch_init): Update.
2485 * alpha-tdep.c (alpha_register_raw_size)
2486 (alpha_register_virtual_size): Delete.
2487 (alpha_gdbarch_init): Update.
2488
a90c06b4
AC
2489 * gdbarch.sh (deprecated_register_virtual_type)
2490 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
2491 (deprecated_dummy_write_sp): Delete.
2492 * gdbarch.h, gdbarch.c: Re-generate.
2493
f42accbe
AC
2494 * gdbarch.sh (deprecated_register_bytes): Delete.
2495 * gdbarch.h, gdbarch.c: Re-generate.
2496 * regcache.c (deprecated_register_bytes): New function.
2497 * regcache.h (deprecated_register_bytes): Declare.
2498 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2499 * v850-tdep.c (v850_gdbarch_init): Update.
2500 * sh64-tdep.c (sh64_gdbarch_init): Update.
2501 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
2502 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2503 * mcore-tdep.c (mcore_gdbarch_init): Update.
2504 * cris-tdep.c (cris_gdbarch_init): Update.
2505 * arm-tdep.c (arm_gdbarch_init): Update.
2506 * remote.c (init_remote_state): Update.
2507 * remote-vx.c (vx_prepare_to_store): Update.
2508 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
2509 * irix5-nat.c (fetch_core_registers): Update.
2510 * cris-tdep.c (cris_register_bytes_ok): Update.
2511 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
2512
45c9dd44
AC
2513 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
2514 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
2515 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
2516 (mips_insn16_frame_base_address, mips_insn16_frame_base)
2517 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
2518 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
2519 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
2520 (mips_insn32_frame_base_address, mips_insn32_frame_base)
2521 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
2522 with mips_insn16 and mips_insn32.
2523
3acba339
AC
2524 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
2525 * rs6000-tdep.c (rs6000_push_dummy_call)
2526 (rs6000_extract_return_value): Use register_size.
2527 * xstormy16-tdep.c (xstormy16_get_saved_register)
2528 (xstormy16_extract_return_value): Ditto.
2529 * valops.c (value_assign): Ditto.
2530 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
2531 * v850-tdep.c (v850_extract_return_value): Ditto.
2532 * tracepoint.c (collect_symbol): Ditto.
2533 * target.c (debug_print_register): Ditto.
2534 * stack.c (frame_info): Ditto.
2535 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
2536 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
2537 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
2538 (store_register_using_P): Ditto.
2539 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
2540 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
2541 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
2542 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
2543 * regcache.c (deprecated_read_register_bytes)
2544 (deprecated_write_register_bytes, read_register)
2545 (write_register): Ditto.
2546 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
2547 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
2548 * monitor.c (monitor_supply_register, monitor_fetch_register)
2549 (monitor_store_register): Ditto.
2550 * mn10300-tdep.c (mn10300_pop_frame_regular)
2551 (mn10300_print_register): Ditto.
2552 * mipsv4-nat.c (fill_fpregset): Ditto.
2553 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
2554 (mips64_fill_fpregset): Ditto.
2555 * mi/mi-main.c (register_changed_p, get_register)
2556 (mi_cmd_data_write_register_values): Ditto.
2557 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
2558 * irix5-nat.c (fill_gregset, fetch_core_registers):
2559 * infrun.c (write_inferior_status_register): Ditto.
2560 * infptrace.c (fetch_register, store_register): Ditto.
2561 * infcmd.c (default_print_registers_info): Ditto.
2562 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
2563 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
2564 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
2565 * hpux-thread.c (hpux_thread_fetch_registers)
2566 (hpux_thread_store_registers): Ditto.
2567 * hppah-nat.c (store_inferior_registers, fetch_register):
2568 * findvar.c (value_from_register): Ditto.
2569 * dve3900-rom.c (fetch_bitmapped_register):
2570 * cris-tdep.c (cris_gdbarch_init): Ditto.
2571 * alpha-tdep.h: Ditto.
2572 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
2573
01e1877c
AC
2574 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
2575 DEPRECATED_REGISTER_RAW_SIZE from comments.
2576 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
2577 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
2578 DEPRECATED_REGISTER_RAW_SIZE.
2579 * findvar.c (value_of_register): Simplify by assuming that the
2580 registers raw and virtual sizes are identical.
2581 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
2582 comment.
2583 * arch-utils.c (generic_register_size): Simplify by assuming
2584 register_type.
2585
73f458fb
AC
2586 * regcache.c (legacy_read_register_gen, real_register)
2587 (legacy_write_register_gen): Delete, not used.
2588
336a3131
AC
2589 * regcache.c (struct regcache_descr): Delete legacy_p.
2590 (init_legacy_regcache_descr): Delete function.
2591 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
2592 Do not use deprecated register functions.
2593 (regcache_raw_read, deprecated_write_register_gen):
2594 (deprecated_read_register_gen, regcache_raw_write): Delete code
2595 predicated on legacy_p.
2596 (register_size): Delete check against register raw size.
2597
c1d546cd
AC
2598 * cris-tdep.c (cris_register_type): Replace
2599 cris_register_virtual_type.
2600 (cris_gdbarch_init): Update, set register_type.
2601
48c2c0a6
AC
2602 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
2603 * gdbarch.h, gdbarch.c: Re-generate.
2604 * arm-tdep.c (arm_frameless_function_invocation): Delete.
2605 (arm_gdbarch_init) Do not set frameless function invocation.
2606 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
2607 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
2608 * frv-tdep.c (frv_frameless_function_invocation): Delete.
2609 (frv_gdbarch_init): Do not set frameless function invocation.
2610 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
2611 * sh-tdep.c (sh_gdbarch_init): Ditto.
2612 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
2613 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2614 * avr-tdep.c (avr_gdbarch_init): Ditto.
2615
474093a6
AC
2616 * blockframe.c (legacy_frame_chain_valid): Delete function.
2617
3c109c8b
AC
2618 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
2619 and pc. Update comments.
2620 (pc_in_dummy_frame): Delete function.
2621 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
2622 use the "id".
2623 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
2624 call_hi, top and pc, use the id.
2625 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
2626
96860204
AC
2627 * dummy-frame.c: Include "gdb_string.h".
2628 (generic_save_call_dummy_addr, generic_push_dummy_frame)
2629 (generic_save_dummy_frame_tos): Delete.
2630 (dummy_frame_push): New function, replaces above.
2631 * dummy-frame.h: Update copyright.
2632 (dummy_frame_push): Declare.
2633 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
2634 (generic_save_call_dummy_addr): Delete declarations.
2635 * infcall.c: Include "dummy-frame.h".
2636 (call_function_by_hand): Add locals caller_regcache,
2637 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
2638 with call to frame_save_as_regcache plus cleanup. Delete calls to
2639 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
2640 Move clear_proceed_status to just before the resume, add call to
2641 dummy_frame_push (discard cleanup).
2642 * Makefile.in (infcall.o): Add $(dummy_frame_h).
2643 (dummy-frame.o): Add $(gdb_string_h).
2644
d67ec5db
AC
26452004-08-01 Andrew Cagney <cagney@gnu.org>
2646
2647 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
2648 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
2649 * dummy-frame.c (find_dummy_frame): Delete.
2650 (struct dummy_frame_cache, dummy_frame_sniffer)
2651 (dummy_frame_prev_register, dummy_frame_this_id)
2652 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
2653 frame unwinder using a dummy_frame_cache.
2654
a81dcb05
AC
26552004-08-01 Andrew Cagney <cagney@gnu.org>
2656
2657 * frame.h (frame_save_as_regcache): Declare.
2658 * frame.c (frame_save_as_regcache): New function.
2659 (do_frame_read_register): Replace do_frame_unwind_register.
2660 (frame_pop): Use frame_save_as_regcache.
2661 * dummy-frame.c (generic_push_dummy_frame): Use
2662 frame_save_as_regcache.
2663
aa495d11
JB
26642004-08-01 Joel Brobecker <brobecker@gnat.com>
2665
2666 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
2667 file as included until we record the first line in the linetable.
2668
ff65ac78
AC
26692004-08-01 Andrew Cagney <cagney@gnu.org>
2670
2671 * frame.h (deprecated_pop_dummy_frame)
2672 (deprecated_read_register_dummy)
2673 (deprecated_generic_find_dummy_frame): Delete.
2674 * dummy-frame.c (deprecated_generic_find_dummy_frame)
2675 (deprecated_read_register_dummy)
2676 (deprecated_find_dummy_frame_regcache)
2677 (discard_innermost_dummy)
2678 (deprecated_pop_dummy_frame): Delete.
2679 (dummy_frame_this_id): Simplify.
2680 (struct dummy_frame): Delete "fp" and "sp".
2681 (find_dummy_frame): Simplify.
2682 (generic_push_dummy_frame): Do not set "fp" or "sp".
2683 (fprint_dummy_frames): Do not print "fp" and "sp"
2684
37bdc87e
MK
26852004-08-01 Mark Kettenis <kettenis@gnu.org>
2686
2687 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
2688 (struct i386_insn): New structure.
2689 (i386_match_insn): New function.
2690 (i386_frame_setup_skip_insns): New variable.
2691 (i386_analyze_frame_setup): Change to use i386_match_insn and the
2692 array i386_frame_setup_insns of instructions that should be
2693 skipped inside the frame setup sequence.
2694
8241eaa6
AC
26952004-08-01 Andrew Cagney <cagney@gnu.org>
2696
5bc602c7
AC
2697 * frame.h (deprecated_frame_xmalloc_with_cleanup)
2698 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2699 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2700 * stack.c (frame_info): Delete references to
2701 DEPRECATED_FRAME_INIT_SAVED_REGS and
2702 deprecated_get_frame_saved_regs.
2703 * frame.c (struct frame_info): Delete saved_regs and extra_info.
2704 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
2705 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
2706 (frame_unwind_register_signed)
2707 (frame_unwind_register_unsigned)
2708 (frame_unwind_unsigned_register): Use register_size.
2709 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
2710 (deprecated_frame_xmalloc_with_cleanup)
2711 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2712 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2713
03d363a1
AC
2714 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
2715 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
2716 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
2717 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
2718
8241eaa6
AC
2719 * infcall.c (call_function_by_hand): Do not use
2720 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
2721 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
2722 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
2723 DEPRECATED_STACK_ALIGN.
2724
f00df8b7
AC
27252004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
2726
2727 Committed by Andrew Cagney.
2728 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
2729
eec63939
AC
27302004-08-01 Andrew Cagney <cagney@gnu.org>
2731
2732 * mips-tdep.c (mips16_frame_cache)
2733 (mips16_frame_this_id, mips16_frame_prev_register)
2734 (mips16_frame_unwind, mips16_frame_sniffer)
2735 (mips16_frame_base_address, mips16_frame_base)
2736 (mips16_frame_base_sniffer, mips32_frame_cache)
2737 (mips32_frame_this_id, mips32_frame_prev_register)
2738 (mips32_frame_unwind, mips32_frame_sniffer)
2739 (mips32_frame_base_address, mips32_frame_base)
2740 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
2741 separate heuristic mips16 and mips32 unwinders.
2742 (mips_stub_frame_cache, mips_stub_frame_this_id)
2743 (mips_stub_frame_prev_register)
2744 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
2745 (mips_stub_frame_base_address, mips_stub_frame_base)
2746 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
2747 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
2748 match true mdebug frames.
2749 (non_heuristic_proc_desc): Add forward declaration.
2750
e66299b3
AC
27512004-08-01 Andrew Cagney <cagney@gnu.org>
2752
83cbbf3e
AC
2753 * config/mips/tm-irix6.h: Delete file.
2754 * config/mips/tm-irix5.h: Delete file.
2755 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
2756 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
2757
22d41b37
AC
2758 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
2759 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
2760 * config/nm-gnu.h (NO_CORE_OPS): Delete.
2761 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
2762 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
2763 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
2764 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
2765 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
2766 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
2767 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
2768 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
2769 (TARGET_SIGNAL_RAW_VALUES): Delete.
2770 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
2771 Delete.
2772 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
2773 (TARGET_HW_WATCH_LIMIT): Delete.
2774 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
2775 * minimon.h: Delete file.
2776
e66299b3
AC
2777 * trad-frame.c (trad_frame_get_this_base)
2778 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
2779 functions.
2780 * trad-frame.h (trad_frame_set_this_base)
2781 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
2782
1f67027d
AC
27832004-07-31 Andrew Cagney <cagney@gnu.org>
2784
2785 * trad-frame.c (trad_frame_get_prev_register): Rename
2786 trad_frame_get_prev_register.
2787 * vax-tdep.c (vax_frame_prev_register): Update.
2788 * trad-frame.h: Update.
2789 * trad-frame.c (trad_frame_get_register): Update.
2790 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
2791 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
2792 Update.
2793 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
2794 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
2795 Update.
2796 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
2797 Update.
2798 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
2799 Update.
2800 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
2801 Update.
2802 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
2803 Update.
2804 * s390-tdep.c (s390_frame_prev_register)
2805 (s390_stub_frame_prev_register)
2806 (s390_sigtramp_frame_prev_register): Update.
2807 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
2808 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
2809 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
2810 * m88k-tdep.c (m88k_frame_prev_register)
2811 * m68hc11-tdep.c (m68hc11_frame_prev_register)
2812 * m32r-tdep.c (m32r_frame_prev_register): Update.
2813 * hppa-tdep.c (hppa_frame_prev_register_helper)
2814 * frv-tdep.c (frv_frame_prev_register): Update.
2815 * d10v-tdep.c (d10v_frame_prev_register): Update.
2816 * cris-tdep.c (cris_frame_prev_register): Update.
2817 * avr-tdep.c (avr_frame_prev_register): Update.
2818 * arm-tdep.c (arm_prologue_prev_register)
2819 (arm_sigtramp_prev_register): Update.
2820
c1bf6f65
AC
28212004-07-31 Andrew Cagney <cagney@gnu.org>
2822
2823 * frame.h (legacy_saved_regs_unwind)
2824 (legacy_frame_chain_valid, legacy_frame_p)
2825 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
2826 * dummy-frame.c (dummy_frame_this_id): Simplify.
2827 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
2828 * frame.c (struct frame_info): Delete the field "type".
2829 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
2830 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
2831 (legacy_saved_regs_unwind, legacy_frame_p)
2832 (frame_type_from_pc): Delete.
2833 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
2834 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
2835
dc856692
MK
28362004-07-31 Mark Kettenis <kettenis@gnu.org>
2837
5a5effe1
MK
2838 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
2839 indentation.
2840
d4fd50a6
MK
2841 * mips-nat.c: Remove file.
2842 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
2843 (mips-nat.o): Remove dependency.
2844
2689df5a
MK
2845 * infptrace.c: Update copyright year.
2846 (fetch_register): Pass NULL in regcache_raw_supply call instead of
2847 explicitly setting the buffer to all zeroes.
2848
dc856692
MK
2849 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
2850 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
2851
763910e0
AC
28522004-07-30 Andrew Cagney <cagney@gnu.org>
2853
2854 * GDB 6.2 released from gdb_6_2-branch.
2855
0b66e38c
EZ
28562004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
2857
2858 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
2859
2860 * exec.c (exec_file_attach):
2861 * nto-tdep.c (nto_find_and_open_solib):
2862 * pa64solib.c (pa64_solib_sizeof_symbol_table):
2863 * solib.c (solib_open):
2864 * somsolib.c (som_solib_sizeof_symbol_table):
2865 * source.c (is_regular_file, openp, open_source_file):
2866 * symfile.c (symfile_bfd_open):
2867 * wince.c (upload_to_device): Differentiate between the search for
2868 binary and source files.
2869
be7d7357
AC
28702004-07-30 Andrew Cagney <cagney@gnu.org>
2871
2872 * complaints.c (_initialize_complaints): Pass NULL to
2873 add_setshow_zinteger_cmd for help_doc.
2874 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
2875
ddc9cd0f
AC
28762004-07-30 Andrew Cagney <cagney@gnu.org>
2877
2878 Fix PR i18n/761.
2879 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
2880 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
2881 $(PACKAGE).pot and update-po.
2882 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
2883 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
2884 (update-po): New rules.
2885 (localedir): Define using autoconf.
2886 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
2887 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
2888 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
2889 * configure.in: Generate CATALOGS and LINGUAS from contents of
2890 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
2891 * configure: Re-generate.
2892 * po/gdbtext: New file
2893
e92f3704
JG
28942004-07-30 Jerome Guitton <guitton@gnat.com>
2895
2896 * MAINTAINERS: Reorder Write After Approval list in alphabetical
2897 order.
2898
b0f35d58
DL
28992004-07-30 David Lecomber <dsl@sources.redhat.com>
2900
2901 * dwarf2read.c (read_file_scope): Set producer if attribute
2902 present.
2903 (struct dwarf2_cu): Added new member producer.
2904
ce7d4522
JG
29052004-07-30 Jerome Guitton <guitton@gnat.com>
2906
2907 * inflow.c (kill_command): release file handles in BFD.
2908 * exec.c (exec_file_attach): Ditto.
2909 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
2910
05ee07c7
AC
29112004-07-29 Andrew Cagney <cagney@gnu.org>
2912
2913 * PROBLEMS (mips-irix): Note that it is broken.
2914
62eceb47
AC
29152004-07-29 Andrew Cagney <cagney@gnu.org>
2916
e57b8d41
AC
2917 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
2918 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
2919
d334389b
AC
2920 * config/xm-nbsd.h: Delete file.
2921 * config/arm/xm-nbsd.h: Delete file.
2922 * config/i386/xm-nbsd.h: Delete file.
2923 * config/ns32k/xm-nbsd.h: Delete file.
2924 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
2925 * config/i386/nbsdelf.mh (XM_FILE): Delete.
2926 * config/i386/nbsdaout.mh (XM_FILE): Delete.
2927 * config/arm/nbsdelf.mh (XM_FILE): Delete.
2928 * config/arm/nbsdaout.mh (XM_FILE): Delete.
2929
e910f676
AC
2930 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
2931 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
2932 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
2933 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
2934 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
2935 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
2936
6fa856b9
AC
2937 * config/powerpc/xm-linux.h: Delete empty file.
2938 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
2939 * config/powerpc/linux.mh (XM_FILE): Delete.
2940 * config/m68k/xm-linux.h: Delete empty file.
2941 * config/m68k/linux.mh (XM_FILE): Delete.
2942 * config/ia64/xm-linux.h: Delete empty file.
2943 * config/ia64/linux.mh (XM_FILE): Delete.
2944 * config/arm/xm-linux.h: Delete empty file.
2945 * config/arm/linux.mh (XM_FILE): Delete.
2946
471ae5ae
AC
2947 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2948 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
2949 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2950 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
2951 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2952 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
2953 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2954 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
2955
62eceb47
AC
2956 * config/m68k/xm-m68k.h: Delete file.
2957 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
2958 copyright.
2959 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
2960 * config/pa/xm-linux.h: Delete empty file.
2961 * config/pa/linux.mh (XM_FILE): Delete.
2962 * config/i386/xm-i386.h: Delete empty file.
2963 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
2964 "i386/xm-i386.h".
2965 * config/i386/obsdaout.mh (XM_FILE): Delete.
2966 * config/i386/obsd64.mh (XM_FILE): Delete.
2967 * config/i386/fbsd64.mh (XM_FILE): Delete.
2968 * config/i386/nto.mh (XM_FILE): Delete.
2969 * config/i386/obsd.mh (XM_FILE): Delete.
2970 * config/i386/linux64.mh (XM_FILE): Delete.
2971 * config/i386/linux.mh (XM_FILE): Delete.
2972 * config/i386/i386sol2.mh (XM_FILE): Delete.
2973 * config/i386/i386gnu.mh (XM_FILE): Delete.
2974 * config/i386/fbsd.mh (XM_FILE): Delete.
2975 * config/i386/nbsd64.mh (XM_FILE): Delete.
2976
c35f4ffc
AC
29772004-07-29 Andrew Cagney <cagney@gnu.org>
2978
2979 * config/pa/xm-linux.h: Do not include "floatformat.h".
2980 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2981 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
2982 * config/i386/xm-i386.h: Do not include "floatformat.h".
2983 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2984 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
2985 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2986 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
2987 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
2988 GDB_HOST_LONG_DOUBLE_FORMAT instead.
2989 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
2990 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
2991 * configure, config.in: Regenerate.
2992 * configure.host (gdb_host_float_format, gdb_host_double_format)
2993 (gdb_host_long_double_format): Set according to the host.
2994
624a44a3
AC
29952004-07-29 Andrew Cagney <cagney@gnu.org>
2996
2997 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
2998
0dea2468
AC
29992004-07-28 Andrew Cagney <cagney@gnu.org>
3000
3001 * PROBLEMS: Mention threads/1650.
3002 * NEWS: Mention the NPTL fix.
3003
b3f42336
AC
30042004-07-28 Andrew Cagney <cagney@gnu.org>
3005
3006 * cli/cli-decode.c (add_setshow_cmd): Delete function.
3007 (add_setshow_cmd_full): Make static.
3008 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
3009 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
3010 * cli/cli-decode.c (add_setshow_filename_cmd)
3011 (add_setshow_string_cmd): New functions.
3012 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
3013 * mips-tdep.c (_initialize_mips_tdep): Update.
3014 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
3015 * cli/cli-logging.c (_initialize_cli_logging): Update.
3016 * complaints.c (_initialize_complaints): Update.
3017 * remote.c (_initialize_remote): Update.
3018
3b64bf98
AC
30192004-07-28 Andrew Cagney <cagney@gnu.org>
3020
3021 * cli/cli-decode.c (add_setshow_zinteger_cmd)
3022 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
3023 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
3024 print parameters. Make string parameters constant.
3025 * command.h: Update. Update copyright.
3026 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
3027 * observer.c (_initialize_observer): Ditto.
3028 * frame.c (_initialize_frame): Ditto.
3029 * complaints.c (_initialize_complaints): Ditto.
3030 * maint.c (_initialize_maint_cmds): Ditto.
3031 * target.c (initialize_targets): Ditto.
3032 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
3033 * infcall.c (_initialize_infcall): Ditto.
3034 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3035 * m32r-rom.c (_initialize_m32r_rom): Ditto.
3036 * remote-rdi.c (_initialize_remote_rdi): Ditto.
3037 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
3038 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3039
e9667a65
AC
30402004-07-28 Andrew Cagney <cagney@gnu.org>
3041
54a5b07d
AC
3042 * gdbtypes.c (lookup_primitive_typename): Delete function.
3043 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
3044 * ada-lex.l: Use language_lookup_primitive_type_by_name.
3045 * gdbtypes.c (lookup_typename): Ditto.
3046 * f-exp.y (yylex): Ditto.
3047 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
3048
e9667a65
AC
3049 * scm-lang.c (c_builtin_types): Delete extern declaration.
3050 (scm_language_defn): Replace
3051 string_char_type and primitive_type_vector with
3052 la_language_arch_info.
3053 * jv-lang.c (java_language_defn): Replace
3054 string_char_type and primitive_type_vector with
3055 la_language_arch_info.
3056 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
3057 c_builtin_types in comment.
3058 * c-lang.h (struct language_arch_info): Declare opaque.
3059 (c_language_arch_info): Declare.
3060 (c_builtin_types): Delete declaration.
3061 * c-lang.c (c_language_arch_info): Set string_char_type to
3062 builtin_char, not builtin_true_char. Make global.
3063 (c_builtin_types): Delete array.
3064 (asm_language_defn, minimal_language_defn): Replace
3065 string_char_type and primitive_type_vector with
3066 la_language_arch_info.
3067
685419e2
AC
30682004-07-28 Andrew Cagney <cagney@gnu.org>
3069
3070 * gdbtypes.h (struct builtin_type): Rename true_char to
3071 builtin_true_char.
3072 * gdbtypes.c (gdbtypes_post_init): Update.
3073 * c-lang.c (arch_info): New function.
3074 (enum c_primitive_types): New enum.
3075 (c_language_defn): Instead of string_char_type and
3076 primitive_type_vector set la_language_arch_info.
3077
5a44ea29
AC
30782004-07-28 Andrew Cagney <cagney@gnu.org>
3079
3080 * language.h (struct language_arch_info): Fix typo
3081 s/primative/primitive/.
3082 * gdbtypes.c (lookup_primitive_typename): Ditto.
3083 * language.c (language_lookup_primitive_type_by_name)
3084 (unknown_language_arch_info): Ditto.
3085
f290d38e
AC
30862004-07-27 Andrew Cagney <cagney@gnu.org>
3087
3088 * defs.h (enum language): Add nr_languages.
3089 * language.h (struct language_arch_info): Define.
3090 (struct language_defn): Add la_language_arch_info.
3091 (language_lookup_primative_type_by_name): Declare.
3092 (language_string_char_type): Declare.
3093 * language.c (_initialize_language, language_gdbarch_post_init)
3094 (struct language_gdbarch, language_gdbarch_data): Implement
3095 per-architecture language information.
3096 (unknown_language_arch_info, language_string_char_type)
3097 (language_lookup_primative_type_by_name): New functions.
3098 (unknown_language_defn, auto_language_defn)
3099 (local_language_defn): Set la_language_arch_info to
3100 unknown_language_arch_info.
3101 (unknown_builtin_types): Delete.
3102 * gdbtypes.c (lookup_primitive_typename): Use
3103 language_lookup_primative_type_by_name.
3104 (create_string_type): Use language_string_char_type.
3105 * values.c (value_from_string): Use language_string_char_type.
3106 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
3107 * p-lang.c (pascal_language_defn): Ditto.
3108 * m2-lang.c (m2_language_defn): Ditto.
3109 * jv-lang.c (java_language_defn): Ditto.
3110 * objc-lang.c (objc_language_defn): Ditto.
3111 * f-lang.c (f_language_defn): Ditto.
3112 * c-lang.c (c_language_defn, cplus_language_defn)
3113 (asm_language_defn, minimal_language_defn): Ditto.
3114
000177f0
AC
31152004-07-27 Andrew Cagney <cagney@gnu.org>
3116
3117 * gdbtypes.h (struct builtin_type): Declare.
3118 (builtin_type): Declare.
3119 * d10v-tdep.c (d10v_register_type): Use builtin_type.
3120 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
3121 (gdbtypes_post_init): New function.
3122 (builtin_type): New function.
3123
e22f895c
KI
31242004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
3125
3126 * remote-m32r-sdi.c: Fix breakpoint bug.
3127 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
3128 recv_char_data, recv_long_data): New functions to replace communication
3129 sequences.
3130
536517dd
MC
31312004-07-26 Michael Chastain <mec.gnu@mindspring.com>
3132
3133 Document PR threads/1650.
3134 * PROBLEMS (Threads): Document problem with many threads
3135
a0a44d18
AC
31362004-07-26 Andrew Cagney <cagney@gnu.org>
3137
3138 * gdb-mi.el: Move from here ...
3139 * mi/gdb-mi.el: ... to here.
3140
7ac4ac06
AC
31412004-07-26 Andrew Cagney <cagney@gnu.org>
3142
3143 Problem reported by Ashley Pittman <ashley@quadrics.com>.
3144 * main.c (captured_main): When in batch mode always detach.
3145
a1b461bf
AC
31462004-07-26 Andrew Cagney <cagney@gnu.org>
3147
3148 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
3149 and h8300 as broken.
3150 * NEWS: END-OF-LIFE frame compatibility module.
3151 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
3152 specific comments.
3153
cb1a6d5f
AC
31542004-07-26 Andrew Cagney <cagney@gnu.org>
3155
3156 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
3157 * xcoffsolib.c (_initialize_xcoffsolib): Update.
3158 * wince.c (_initialize_wince): Update.
3159 * win32-nat.c (_initialize_win32_nat): Update.
3160 * varobj.c (_initialize_varobj): Update.
3161 * valops.c (_initialize_valops): Update.
3162 * utils.c (initialize_utils, initialize_utils): Update.
3163 * tui/tui-win.c (_initialize_tui_win): Update.
3164 * top.c (init_main): Update.
3165 * symfile.c (_initialize_symfile): Update.
3166 * source.c (_initialize_source): Update.
3167 * somsolib.c (_initialize_som_solib): Update.
3168 * solib.c (_initialize_solib): Update.
3169 * solib-frv.c (_initialize_frv_solib): Update.
3170 * serial.c (_initialize_serial): Update.
3171 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
3172 * remote.c (_initialize_remote, _initialize_remote): Update.
3173 * remote-vx.c (_initialize_vx): Update.
3174 * remote-utils.c (_initialize_sr_support): Update.
3175 * remote-sds.c (_initialize_remote_sds): Update.
3176 * remote-mips.c (_initialize_remote_mips): Update.
3177 * remote-e7000.c (_initialize_remote_e7000): Update.
3178 * proc-api.c (_initialize_proc_api): Update.
3179 * printcmd.c: Update.
3180 * parse.c (_initialize_parse): Update.
3181 * pa64solib.c (_initialize_pa64_solib): Update.
3182 * p-valprint.c (_initialize_pascal_valprint): Update.
3183 * monitor.c (_initialize_remote_monitors): Update.
3184 * mips-tdep.c (_initialize_mips_tdep): Update.
3185 * mcore-tdep.c (_initialize_mcore_tdep): Update.
3186 * maint.c (_initialize_maint_cmds): Update.
3187 * lin-lwp.c (_initialize_lin_lwp): Update.
3188 * language.c (_initialize_language): Update.
3189 * kod.c (_initialize_kod): Update.
3190 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
3191 * i386-tdep.c (_initialize_i386_tdep): Update.
3192 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
3193 * gdbarch.sh: Update.
3194 * gdbarch.c: Re-generate.
3195 * gdb-events.sh: Update.
3196 * gdb-events.c: Re-generate.
3197 * frame.c (_initialize_frame): Update.
3198 * exec.c: Update.
3199 * demangle.c (_initialize_demangler): Update.
3200 * dcache.c (_initialize_dcache): Update.
3201 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
3202 * cp-valprint.c (_initialize_cp_valprint): Update.
3203 * corefile.c (_initialize_core): Update.
3204 * command.h: Update.
3205 * cli/cli-decode.h: Update.
3206 * cli/cli-cmds.c (init_cli_cmds): Update.
3207 * charset.c (_initialize_charset): Update.
3208 * breakpoint.c (_initialize_breakpoint): Update.
3209 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
3210 * alpha-tdep.c (_initialize_alpha_tdep): Update.
3211 * aix-thread.c (_initialize_aix_thread): Update.
3212
b4632131
MK
32132004-07-24 Mark Kettenis <kettenis@gnu.org>
3214
3215 Partial fix for PR backtrace/1718.
3216 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
3217 that GCC migrates into the prolugue. Don't handle any
3218 instructions that clobber %ebx.
3219
822c9732
AC
32202004-07-23 Andrew Cagney <cagney@gnu.org>
3221
3222 Use regcache_raw_collect instead of regcache_collect.
3223 * regcache.h (regcache_collect): Delete declaration.
3224 * regcache.c (regcache_colect): Delete function.
3225 * win32-nat.c (do_child_store_inferior_registers): Update.
3226 * sol-thread.c (sol_thread_store_registers): Update.
3227 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
3228 * rs6000-nat.c (store_register): Update.
3229 * remote.c (store_register_using_P, remote_store_registers): Update.
3230 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
3231 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
3232 (fill_vrregset, store_spe_registers, fill_gregset)
3233 (fill_gregset): Update.
3234 * nto-procfs.c (procfs_store_registers): Update.
3235 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
3236 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
3237 * m68klinux-nat.c (store_register, fill_gregset): Update.
3238 * m68k-tdep.c (fill_gregset): Update.
3239 * infptrace.c (store_register): Update.
3240 * i386-nto-tdep.c (i386nto_regset_fill): Update.
3241 * i386-linux-nat.c (store_register, fill_gregset): Update.
3242 * hppa-linux-nat.c (fill_gregset): Update.
3243 * go32-nat.c (store_register): Update.
3244 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
3245 (store_fp_regs): Update.
3246 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
3247 (store_nwfpe_extended, store_fpregister, store_fpregs)
3248 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
3249 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
3250 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
3251 (store_regs_user_thread, store_regs_kernel_thread): Update.
3252
32b05c07
MK
32532004-07-24 Mark Kettenis <kettenis@gnu.org>
3254
3255 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
3256 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
3257 encoding.
3258 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
3259 member of `struct comp_unit'.
3260
8567c30f
AC
32612004-07-23 Andrew Cagney <cagney@gnu.org>
3262
3263 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
3264 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
3265
f6da8dd8
MH
32662004-07-23 Martin Hunt <hunt@redhat.com>
3267 Kevin Buettner <kevinb@redhat.com>
3268
3269 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
3270 alignment was being added to the offset instead of multiplied.
3271
bd921882
MK
32722004-07-23 Mark Kettenis <kettenis@gnu.org>
3273
24f033e8
MK
3274 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
3275 changed signal trampoline in OpenBSD 3.5-current.
3276
90f3cecd
MK
3277 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
3278 <machine/pcb.h> and "bsd-kvm.h".
3279 (sparc64nbsd_supply_pcb): New function.
3280 (_initialize_sparc64nbsd_nat): Renamed from
3281 _initialize_sparcnbsd_nat. Enable libkvm interface.
3282 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
3283 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
3284 (LOADLIBES): New variable.
3285
a4954a62
MK
3286 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
3287
bd921882
MK
3288 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
3289
23a6d369
AC
32902004-07-21 Andrew Cagney <cagney@gnu.org>
3291
3292 Use regcache_raw_supply instead of supply_register.
3293 * regcache.h (supply_register): Delete declaration.
3294 * regcache.c (supply_register): Delete function.
3295 * wince.c (do_child_fetch_inferior_registers): Update.
3296 * win32-nat.c (do_child_fetch_inferior_registers)
3297 (fetch_elf_core_registers): Update.
3298 * v850ice.c (v850ice_fetch_registers): Update.
3299 * thread-db.c (thread_db_store_registers): Update.
3300 * sol-thread.c (sol_thread_store_registers): Update.
3301 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
3302 * rs6000-nat.c (fetch_register): Update.
3303 * rom68k-rom.c (rom68k_supply_one_register): Update.
3304 * remote.c (remote_wait, remote_async_wait): Update.
3305 * remote-st.c (get_hex_regs): Update.
3306 * remote-sim.c (gdbsim_fetch_register): Update.
3307 * remote-sds.c (sds_fetch_registers): Update.
3308 * remote-rdp.c (remote_rdp_fetch_register): Update.
3309 * remote-rdi.c (arm_rdi_fetch_registers): Update.
3310 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
3311 * remote-m32r-sdi.c (m32r_fetch_register): Update.
3312 * remote-hms.c (init_hms_cmds): Update.
3313 * remote-est.c (init_est_cmds): Update.
3314 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
3315 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
3316 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
3317 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
3318 (fetch_register, supply_vrregset, supply_vrregset)
3319 (fetch_spe_registers): Update.
3320 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
3321 * monitor.c (monitor_supply_register): Update.
3322 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
3323 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
3324 (mipsnbsd_supply_fpreg): Update.
3325 * mips-nat.c (fetch_inferior_registers)
3326 (fetch_core_registers): Update.
3327 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
3328 (supply_fpregset, mips64_supply_gregset)
3329 (mips64_supply_fpregset): Update.
3330 * m68klinux-nat.c (fetch_register, supply_gregset)
3331 (supply_fpregset): Update.
3332 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
3333 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
3334 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
3335 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
3336 * infptrace.c (fetch_register): Update.
3337 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
3338 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
3339 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
3340 (gnu_fetch_registers, gnu_store_registers): Update.
3341 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
3342 * i386-linux-nat.c (fetch_register, supply_gregset)
3343 (dummy_sse_values): Update.
3344 * hpux-thread.c (hpux_thread_fetch_registers): Update.
3345 * hppah-nat.c (fetch_register): Update.
3346 * hppa-linux-nat.c (fetch_register, supply_gregset)
3347 (supply_fpregset): Update.
3348 * go32-nat.c (fetch_register): Update.
3349 * dve3900-rom.c (fetch_bitmapped_register)
3350 (_initialize_r3900_rom): Update.
3351 * cris-tdep.c (supply_gregset): Update.
3352 * abug-rom.c (init_abug_cmds): Update.
3353 * core-aout.c (fetch_core_registers): Update.
3354 * armnbsd-nat.c (supply_gregset, supply_fparegset)
3355 (fetch_register, fetch_fp_register): Update.
3356 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
3357 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
3358 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
3359 * alphanbsd-tdep.c (fetch_core_registers): Update.
3360 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
3361 * alpha-nat.c (fetch_osf_core_registers)
3362 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
3363 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
3364 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
3365
73cc75f3
AC
33662004-07-21 Andrew Cagney <cagney@gnu.org>
3367
3368 * PROBLEMS: Mention breakpoints/1702.
3369 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
3370 that is known to work.
3371
a53c66de
AC
33722004-07-21 Andrew Cagney <cagney@gnu.org>
3373
3374 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
3375 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
3376 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
3377 (handle_inferior_event): Wrap call to deprecated
3378 IGNORE_HELPER_CALL in #ifdef.
3379 * config/mips/tm-nbsd.h: Update.
3380
708ff411
JB
33812004-07-20 Jim Blandy <jimb@redhat.com>
3382
412b3060
JB
3383 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
3384 bfd_mach_ppc has no segment registers.
3385
13ac140c
JB
3386 Include PowerPC SPR numbers for special-purpose registers.
3387 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
3388 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
3389 new member in initializer.
3390 (S, S4, SN4, S64): New macros for defining special-purpose
3391 registers.
3392 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
3393 registers_403, registers_403GC, registers_505, registers_860,
3394 registers_601, registers_602, registers_603, registers_604,
3395 registers_750, registers_e500): Use them.
3396
708ff411
JB
3397 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
3398 replace references with expression used to initialize variable.
3399
1f602b35
AC
34002004-07-20 Andrew Cagney <cagney@gnu.org>
3401
3402 * breakpoint.c (deprecated_read_memory_nobpt): Rename
3403 read_memory_nobpt.
3404 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
3405 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
3406 (s390_sigtramp_frame_sniffer): Update.
3407 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
3408 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
3409 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
3410 (mips32_fetch_instruction): Update.
3411 * mcore-tdep.c (get_insn): Update.
3412 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
3413 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
3414 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
3415 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3416 (i386_linux_rt_sigtramp_start): Update.
3417 * i386-linux-nat.c (child_resume): Update.
3418 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
3419 * hppa-linux-tdep.c (insns_match_pattern): Update.
3420 * gdbcore.h: Update.
3421 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
3422 * frame.c (safe_frame_unwind_memory): Update.
3423 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
3424 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
3425 * alpha-tdep.c (alpha_read_insn): Update.
3426
2cd8546d
AC
34272004-07-20 Andrew Cagney <cagney@gnu.org>
3428
3429 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
3430 containing both bytes and mask. Add "frame_type".
3431 * tramp-frame.c (tramp_frame_start): Update.
3432 (tramp_frame_prepend_unwinder): Update.
3433 * mips-linux-tdep.c (mips_linux_o32_sigframe)
3434 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
3435 (mips_linux_n64_rt_sigframe): Update. Make "static const".
3436 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
3437
f928dd62
EZ
34382004-07-19 Eli Zaretskii <eliz@gnu.org>
3439
3440 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
3441 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
3442 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
3443 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
3444
d5c560f7
AC
34452004-07-17 Andrew Cagney <cagney@gnu.org>
3446
860660cb
AC
3447 * NEWS, PROBLEMS: Update for 6.2.
3448
8c266f54
AC
3449 * README: Update to 6.2.
3450
a552edd9
AC
3451 * utils.c (xvasprintf): Call xstrvprintf.
3452
c4a172b5
AC
3453 * parse.c: Update copyright.
3454 (null_post_parser): Eliminate ARGSUSED.
3455
da745b36
AC
3456 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
3457 * tui/tui-win.c (tui_get_cmd_list): Ditto.
3458 * symfile-mem.c (_initialize_symfile_mem): Ditto.
3459
9cbc6ef0
AC
3460 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
3461 * ppc-linux-nat.c: Use "Linux kernel".
3462 * hppa-linux-tdep.c: Use GNU/Linux.
3463 * hppa-linux-nat.c: Use GNU/Linux.
3464 * dwarfread.c: Add [sic] to use of Linux.
3465
1b89295f
AC
3466 * hppa-linux-nat.c: Do not include <string.h>.
3467 (supply_fpregset): Remove "register" attribute.
3468
d5c560f7
AC
3469 * solib-frv.c (fetch_loadmap): Use xfree, not free.
3470
7ddd7709
MK
34712004-07-17 Mark Kettenis <kettenis@gnu.org>
3472
b1d19a62
MK
3473 * configure.in: Define _MSE_INT_H on Solaris 9 too.
3474 * configure, config.in: Regenerated.
3475
7ddd7709
MK
3476 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
3477 "bsd-kvm.h".
3478 (vaxbsd_supply_pcb): New function.
3479 (_initialize_vaxbsd_nat): New prototype and function.
3480 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
3481 solib-sunos.o.
3482 (LOADLIBES): New variable.
3483 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3484 (LOADLIBES): New variable.
3485 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3486 (LOADLIBES): New variable.
3487 * Makefile.in (vaxbsd-nat.o): Update dependencies.
3488
2c07db7a
AC
34892004-07-16 Andrew Cagney <cagney@gnu.org>
3490
3491 * defs.h (event_loop_p): Replace variable declaration with macro,
3492 always 1.
3493 * main.c (captured_main): Delete options "-async" and "-noasync".
3494 (event_loop_p): Delete variable.
3495 * NEWS: Mention that "-async" and "-noasync" were removed.
3496
717eb1cf
AC
34972004-07-16 Andrew Cagney <cagney@gnu.org>
3498
3499 * remote-m32r-sdi.c: Re-indent.
3500
c101bc14
JB
35012004-07-16 Jim Blandy <jimb@redhat.com>
3502
5109a438
JB
3503 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
3504 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
3505 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
3506 missing MPC823 SPRs.
3507 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
3508 incorrect. (This was corrected in GDB's register name tables on
3509 2004-07-14.)
3510
c101bc14
JB
3511 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
3512 should be "esasrr" ("ESA Save and Restore Register").
3513
7ce450bd
AC
35142004-07-16 Andrew Cagney <cagney@gnu.org>
3515
3516 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
3517 calls, no longer applicable. Update comments and rename parameter
3518 "step_frame" to "return_frame".
3519
ca73dd9d
AC
35202004-07-16 Andrew Cagney <cagney@gnu.org>
3521
3522 * frame.c (fprint_field): New function.
3523 (fprint_frame_id): Use fprint_field.
3524
31941f6d
JB
35252004-07-15 Joel Brobecker <brobecker@gnat.com>
3526
3527 * ada-lang.c (ada_language_defn): Remove commented out code.
3528
f86a7158
JB
35292004-07-15 Jim Blandy <jimb@redhat.com>
3530
3531 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
3532 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
3533
c24791ec
JB
35342004-07-14 Jim Blandy <jimb@redhat.com>
3535
29bb1356
JB
3536 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
3537
cc98b5cc
JB
3538 * ppc-tdep.h (ppc_num_vrs): New enum constant.
3539
8f088af7
JB
3540 * ppc-tdep.h (ppc_num_srs): New enum constant.
3541
0ea0ec5f
JB
3542 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
3543 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
3544 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
3545 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
3546 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
3547 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
3548 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
3549 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
3550 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
3551 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
3552 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
3553 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
3554 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
3555 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
3556 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
3557 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
3558 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
3559 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
3560 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
3561 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
3562 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
3563 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
3564 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
3565 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
3566 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
3567 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
3568 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
3569 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
3570 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
3571 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
3572 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
3573 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
3574 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
3575 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
3576 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
3577 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
3578 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
3579 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
3580 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
3581 special-purpose register numbers.
3582
c24791ec
JB
3583 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
3584 manual mentions 'md_twb', but many mention 'm_twb', and at that
3585 point in the register list.)
3586
d833db3b
AC
35872004-07-14 Andrew Cagney <cagney@gnu.org>
3588
3589 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
3590 instead of "internal-error".
3591
080228b2
JB
35922004-07-10 Joel Brobecker <brobecker@gnat.com>
3593
3594 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
3595 that was inserted inside a comment.
3596
c268433a
RC
35972004-07-10 Randolph Chung <tausq@debian.org>
3598
3599 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
3600 function.
3601 (hppa_hpux_push_dummy_code): New function.
3602 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
3603 Set find_global_pointer method.
3604
71009278
MK
36052004-07-10 Mark Kettenis <kettenis@gnu.org>
3606
3607 * NEWS: Mention BSD libkvm interface.
3608
b2fa5097
MS
36092004-07-10 Michael Snyder <msnyder@redhat.com>
3610
3611 * symfile.c (generic_load): Comment typo.
3612 * stack.c (get_selected_block): Ditto.
3613 * regcache.c (regcache_cooked_read): Ditto.
3614 * monitor.c (monitor_debug): Ditto.
3615 * mips-tdep.c (mips_read_pc): Ditto.
3616 * i386-linux-nat.c (ps_get_thread_area): Ditto.
3617 * gdb_mbuild.sh: Ditto.
3618 * gdbarch.sh: Ditto.
3619 * gdbarch.h: Ditto.
3620
c3e5cd34
PH
36212004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
3622
8a2225b2
PH
3623 * ada-tasks.c: Remove file.
3624
c3e5cd34
PH
3625 Remove ARI problems:
3626
3627 * ada-exp.y (write_var_from_sym): Reformat to put operator at
3628 beginning of line.
3629
3630 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
3631 Add comment.
3632 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
3633 (MIN_OF_SIZE): Rename min_of_size. Add comment.
3634 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
3635 (UMIN_OF_SIZE): Remove.
3636 (max_of_type): New function to replace orphan macro in gdbtypes.h
3637 (min_of_type): Ditto.
3638 (discrete_type_high_bound): Use max_of_type.
3639 (discrete_type_low_bound): Use min_of_type.
3640 (possible_user_operator_p): Move operator to beginning of line.
3641 (ada_is_variant_part): Ditto.
3642 (ensure_lval): Rewrite to avoid deprecated operations.
3643 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
3644 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
3645 (ada_enum_name): Remove assignments in 'if' statements.
3646 (build_ada_types): Add gdbarch parameter.
3647 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
3648 with gdbarch_data_register_post_init.
3649 Use add_setshow_uinteger_cmd rather than add_set_cmd and
3650 add_show_from_set.
3651
3652 * ada-valprint.c (inspect_it): Remove declaration.
3653 (repeat_count_threshold): Remove declaration.
3654 (ada_print_floating): Remove assignments in 'if' statements.
3655 (print_str): Move operator to beginning of line.
3656
61ce229a
JB
36572004-07-08 Jim Blandy <jimb@redhat.com>
3658
3659 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
3660
09bcec80
BR
36612004-07-08 Bob Rossi <bob@brasko.net>
3662
3663 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
3664
31c27f77
JJ
36652004-07-06 Jeff Johnston <jjohnstn@redhat.com>
3666
3667 * language.h (struct_language_defn): Add new function pointer:
3668 la_class_name_from_physname. Also add new prototype for
3669 language_class_name_from_physname.
3670 * language.c (language_class_name_from_physname): New function.
3671 (unk_lang_class_name): Ditto.
3672 (unknown_language_defn, auto_language_defn): Change
3673 to add unk_lang_class_name function pointer for
3674 la_class_name_from_physname.
3675 (local_language_defn): Ditto.
3676 * dwarf2read.c (guess_structure_name): Change to call
3677 language_class_name_from_physname.
3678 (determine_class_name): Ditto.
3679 * cp-support.c (class_name_from_physname): Renamed.
3680 (cp_class_name_from_physname): New name of function.
3681 * cp-support.h: Ditto.
3682 * c-lang.c (c_language_defn): Change to add NULL
3683 for class_name_from_physname function pointer.
3684 (cplus_language_defn): Change to add cp_class_name_from_physname.
3685 * jv-lang.c (java_class_name_physname): New function.
3686 (java_find_last_component): New static routine.
3687 (java_language_defn): Add java_class_name_from_physname pointer.
3688 * ada-lang.c (ada_language_defn): Change to add NULL
3689 for class_name_from_physname function pointer.
3690 * f-lang.c (f_language_defn): Ditto.
3691 * m2-lang.c (m2_language_defn): Ditto.
3692 * objc-lang.c (objc_language_defn): Ditto.
3693 * p-lang.c (pascal_language_defn): Ditto.
3694 * scm-lang.c (scm_language_defn): Ditto.
3695
ee28ca0f
AC
36962004-07-06 Andrew Cagney <cagney@gnu.org>
3697
3698 Patch from Bart Robinson.
3699 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
3700 (O_LARGEFILE): Define to 0, if not defined.
3701
fdb1bf9d
MK
37022004-07-03 Mark Kettenis <kettenis@gnu.org>
3703
cb162ff6
MK
3704 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
3705 <machine/pcb.h> and "bsd-kvm.h".
3706 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
3707 (m68kbsd_supply_pcb): New function.
3708 (_initialize_m68kbsd_nat): New prototype and function.
3709 * Makefile.in (m68kbsd-nat.o): Update dependencies.
3710 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3711 (LOADLIBES): New variable.
3712 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3713 (LOADLIBES): New variable.
3714
fdb1bf9d
MK
3715 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
3716
963c4174
MK
37172004-07-03 Mark Kettenis <kettenis@gnu.org>
3718
3719 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
3720 <sys/proc.h>.
3721 (bsd_kvm_cmdlist): New variable.
3722 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
3723 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
3724 command and "kvm proc" command.
3725 * Makefile.in (bsd-kvm.o): Update dependencies.
3726
533f1d8f
MK
37272004-07-02 Mark Kettenis <kettenis@gnu.org>
3728
3729 * osabi.c: Update copyright year.
3730 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
3731 notes if EI_OSABI is set to ELFOSABI_HPUX.
3732
6780dcde
MS
37332004-07-01 Michael Snyder <msnyder@redhat.com>
3734
3735 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
3736 that seems to have gotten whacked out of line.
3737
67bebe79
MK
37382004-07-01 Mark Kettenis <kettenis@gnu.org>
3739
3740 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
3741 code.
3742
0b5d8877
PH
37432004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3744
3745 * ada-lang.c (decode_packed_array): Minor change to comment.
3746 (ada_value_slice_ptr): New function.
3747 (ada_value_slice): New function.
3748 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
3749 test. Don't know why it is there.
3750 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
3751 to avoid dereferencing huge arrays from which one is slicing.
3752 (empty_array): Correct to return an array rather than
3753 a subrange value.
3754 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
3755 on empty arrays (let'em use 'FIRST instead).
3756
19c1ef65
PH
37572004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3758
3759 Address complaints from gdb_ari.sh:
3760
3761 * ada-exp.y: Include gdb_string.h rather than string.h.
3762 (convert_char_literal): Reformat declaration.
3763 * ada-lang.h: Include opaque struct declaration for struct frame_info.
3764 * ada-lex.l: Change use of free to xfree (the macro would do so
3765 anyway, but this is harmless).
3766 Include gdb_string.h rather than string.h.
3767 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
3768
3769 * ada-lang.c (parse): Remove K&Rism in parameter list.
3770 (is_name_suffix): Correct Linux => GNU/Linux in comment.
3771
d81cbc94
MK
37722004-06-30 Mark Kettenis <kettenis@gnu.org>
3773
3774 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
3775 dead code.
3776
07681759
MK
37772004-06-30 Mark Kettenis <kettenis@gnu.org>
3778
3779 * alphabsd-nat.c: Update copyright year.
3780 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
3781
f7948b5f
JB
37822004-06-29 Joel Brobecker <brobecker@gnat.com>
3783
6e0cdd28 3784 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
3785 (i386_cygwin_in_solib_call_trampoline): New function.
3786 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
3787 and skip_trampoline_code gdbarch methods.
3788
8f113c9a
JB
37892004-06-29 Jim Blandy <jimb@redhat.com>
3790
3791 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
3792 name actually used in the dependency lists.
3793
97dc871c
RC
37942004-06-29 Randolph Chung <tausq@debian.org>
3795
3796 * NEWS (New native configurations): Mention GNU/Linux/hppa.
3797
47216e51
CV
37982004-06-29 Corinna Vinschen <vinschen@redhat.com>
3799
3800 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 3801 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
3802 functionality.
3803
e623b504
AC
38042004-06-28 Andrew Cagney <cagney@gnu.org>
3805
3806 * defs.h (xstrvprintf): Declare.
3807 * utils.c (xstrvprintf): New function.
3808 (internal_vproblem, xstrprintf, xasprintf)
3809 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
3810 * serial.c (serial_printf): Ditto.
3811 * complaints.c (vcomplaint): Ditto.
3812
79acc9b3
CV
38132004-06-29 Corinna Vinschen <vinschen@redhat.com>
3814
3815 * infcmd.c (attach_command): Move call to target_terminal_inferior
3816 behind loading symbol table.
3817
1daf35d9
AC
38182004-06-28 Andrew Cagney <cagney@gnu.org>
3819
3820 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
3821 change - add back extern deprecated_ui_loop_hook declaration.
3822
b435e160
AC
38232004-06-28 Andrew Cagney <cagney@gnu.org>
3824
3825 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
3826 xstrprintf.
3827 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
3828 (c_value_of_variable): Ditto.
3829 * utils.c (internal_vproblem): Ditto.
3830 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
3831 * remote.c (add_packet_config_cmd): Ditto.
3832 * remote-rdp.c (rdp_set_command_line): Ditto.
3833 * regcache.c (regcache_dump): Ditto.
3834 * frv-tdep.c (new_variant, new_variant): Ditto.
3835 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
3836 (fbsd_find_memory_regions): Ditto.
3837 * breakpoint.c (create_thread_event_breakpoint)
3838 (create_breakpoints): Ditto.
3839 * aix-thread.c (aix_thread_pid_to_str): Ditto.
3840 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
3841
06d5cf63
JB
38422004-06-28 Joel Brobecker <brobecker@gnat.com>
3843
3844 * ada-lang.c: Re-indent file, with some massaging to help indent
3845 a bit when the result is otherwise really too ugly.
3846
35809fad
UW
38472004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3848
3849 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
3850 code_addr_p and special_addr_p to 'unsigned int'.
3851
40e20472
MK
38522004-06-27 Mark Kettenis <kettenis@gnu.org>
3853
3854 * i386v4-nat.c: Update copyright year and tweak comment.
3855 (regmap): Remove trailing comma.
3856 (supply_gregset): Rename local variable i to regnum. Call
3857 regcache_raw_supply instead of supply_register.
3858 (fill_gregset): Rename argument regno to regnum. Call
3859 regcache_raw_collect instead of regcache_collect.
3860
12b0b6de
UW
38612004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3862
3863 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
3864 and special_addr_p.
3865 (frame_id_build, frame_id_build_special): Update comments.
3866 (frame_id_build_wild): New prototype.
3867 * frame.c (frame_id_build, frame_id_build_special): Fill in new
3868 struct frame_id fields.
3869 (frame_id_build_wild): New function.
3870 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
3871
47b42a3e
MK
38722004-06-27 Mark Kettenis <kettenis@gnu.org>
3873
3874 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
3875 hppabsd-tdep.c.
3876
1265e4aa
JB
38772004-06-27 Joel Brobecker <brobecker@gnat.com>
3878
3879 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
3880
76a01679
JB
38812004-06-27 Joel Brobecker <brobecker@gnat.com>
3882
3883 * ada-lang.c: Re-indent file.
3884
7aca490a
JB
38852004-06-27 Joel Brobecker <brobecker@gnat.com>
3886
3887 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
3888 (no_symtab_msg): Likewise.
3889
5e987968
AS
38902004-06-27 Andreas Schwab <schwab@suse.de>
3891
3892 * source.c: Fix whitespace.
3893
315c4276
MK
38942004-06-27 Mark Kettenis <kettenis@gnu.org>
3895
d15be926
MK
3896 * configure.in: Include <sys/param.h> for td_pcb test.
3897 * configure: Regenerated.
3898
9062529b
MK
3899 * i386nbsd-nat.c: New file.
3900 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
3901 i386obsd-nat.c and i386obsd-tdep.c.
3902 (i386nbsd-nat.o): New dependency.
3903 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
3904 bsd-kvm.o.
3905 (LOADLIBES): New variable.
3906 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
3907 bsd-kvm.o.
3908 (LOADLIBES): New variable.
3909
8010310e
MK
3910 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
3911 (LOADLIBES): New variable.
3912
efe1d7b9
MK
3913 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
3914 fetching from BSD_KVM_PADDR. Correctly lookup address for
3915 "_thread0".
3916
315c4276
MK
3917 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
3918 "bsd-kvm.h".
3919 (amd64fbsd_supply_pcb): New funcion.
3920 (_initialize_amd64fbsd_nat): Enable libkvm interface.
3921
399cfac6
DL
39222004-06-27 <david@streamline-computing.com>
3923
3924 Partial fix for PR cli/1056.
3925 * valarith.c: Check for zero in division and remainder
3926 evaluation.
3927
6235f9c8
MK
39282004-06-27 Mark Kettenis <kettenis@gnu.org>
3929
3930 * i387-tdep.c: Remove excessive whitespace.
3931
2726dafc
AC
39322004-06-26 Andrew Cagney <cagney@gnu.org>
3933
3934 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
3935 * gdb-events.h, gdb-events.c: Re-generate.
3936 * tui/tui-hooks.c (tui_install_hooks): Update.
3937 (tui_remove_hooks): Update.
3938 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
3939
0e56aeaf
MK
39402004-06-26 Mark Kettenis <kettenis@gnu.org>
3941
cb461069
MK
3942 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
3943 (gregset_t, fpregset_t): Remove typedefs.
3944 (REG_OFFSET): Rename argument.
3945 (amd64bsd_r_reg_offset): Rename from reg_offset.
3946 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
3947 Remove functions.
3948 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
3949 of reg_offset.
3950 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
3951
ecba89de
MK
3952 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
3953
4cd80476
MK
3954 * vax-tdep.c: Tweak comment.
3955
0e56aeaf
MK
3956 Add OpenBSD/hppa support.
3957 * NEWS (New native configurations): Mention OpenBSD/hppa.
3958 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
3959 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
3960 files.
3961 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
3962 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
3963 * configure.host: Add hppa*-*-openbsd*.
3964 * configure.tgt: Add hppa*-*-openbsd*.
3965
98bbd631
AC
39662004-06-25 Andrew Cagney <cagney@gnu.org>
3967
3968 * defs.h (deprecated_ui_loop_hook): Deprecated.
3969 * wince.c (child_wait): Update.
3970 * win32-nat.c (child_wait): Update.
3971 * v850ice.c (v850ice_wait): Update.
3972 * top.c (deprecated_ui_loop_hook): Update.
3973 * serial.h: Update.
3974 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
3975 (do_unix_readchar): Update.
3976 * ser-tcp.c (net_open): Update.
3977 * remote-sim.c (gdb_os_poll_quit): Update.
3978 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
3979
769d7dc4
AC
39802004-06-24 Andrew Cagney <cagney@gnu.org>
3981
3982 * defs.h (deprecated_pre_add_symbol_hook)
3983 (deprecated_post_add_symbol_hook): Deprecated.
3984 * symfile.c (symbol_file_add_with_addrs_or_offsets)
3985 (symbol_file_add_with_addrs_or_offsets): Update references.
3986
11c949aa
AC
39872004-06-24 Andrew Cagney <cagney@gnu.org>
3988
3989 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
3990 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
3991 * wince.c (ui_loop_hook): Delete extern declaration.
3992 * win32-nat.c (ui_loop_hook): Delete extern declaration..
3993 * v850ice.c (ui_loop_hook): Delete extern declaration..
3994 * ser-unix.c (ui_loop_hook): Delete extern declaration..
3995 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
3996 * remote-sim.c (ui_loop_hook): Delete extern declaration..
3997 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
3998 ui_loop_hook declaration.
3999
eedc19af
AC
40002004-06-24 Andrew Cagney <cagney@gnu.org>
4001
4002 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
4003 entry_func_highpc fields.
4004 * objfiles.c (init_entry_point_info): Do not clear
4005 entry_func_lowpc and entry_func_highpc.
4006 (objfile_relocate): Do not relocate entry_func_lowpc and
4007 entry_func_highpc.
4008 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
4009 entry_func_highpc.
4010 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
4011 entry_func_highpc.
4012 * blockframe.c (legacy_frame_chain_valid): Replace tests against
4013 entry_func_lowpc and entry_func_highpc with call to
4014 inside_entry_func.
4015
d47079be
MK
40162004-06-24 Mark Kettenis <kettenis@gnu.org>
4017
4018 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
4019 quad-precision floating point arguments in registers.
4020
2107e348
MK
40212004-06-24 Mark Kettenis <kettenis@gnu.org>
4022
4023 From Michael Mueller <m.mueller99@kay-mueller.de>:
4024 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
4025 account.
4026
46587c42
JJ
40272004-06-22 Jeff Johnston <jjohnstn@redhat.com>
4028
4029 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
4030 to -1.
4031 * breakpoint.c (bpstat_stop_status): Move check for ignoring
4032 untriggered watchpoints to a separate if clause. Update function
4033 comment regarding STOPPED_BY_WATCHPOINT argument.
4034
226f5cf4
JB
40352004-06-22 Jim Blandy <jimb@redhat.com>
4036
4037 * gdbarch.sh: Doc fix.
4038
f10683bb
MH
40392004-06-21 Martin Hunt <hunt@redhat.com>
4040 Kevin Buettner <kevinb@redhat.com>
4041
4042 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
4043 * mips-tdep.h (MIPS_SP_REGNUM): Define.
4044 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
4045 to set_gdbarch_sp_regnum(). Use cooked register number.
4046 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
4047
412d5987
AC
40482004-06-21 Andrew Cagney <cagney@gnu.org>
4049
4050 * gdbarch.sh: When the macro field is empty, do not generate a
4051 macro definition. When the macro field is "=", generate the macro
4052 name from the upper-case function name.
4053 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
4054 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
4055 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
4056 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
4057 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
4058 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
4059 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
4060 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
4061 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
4062 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
4063 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
4064 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
4065 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
4066 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
4067 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
4068 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
4069 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
4070 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
4071 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
4072 (DEPRECATED_USE_STRUCT_CONVENTION)
4073 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4074 (DEPRECATED_FRAME_INIT_SAVED_REGS)
4075 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
4076 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
4077 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
4078 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
4079 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
4080 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
4081 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
4082 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
4083 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
4084 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
4085 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
4086 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
4087 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
4088 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
4089 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
4090 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
4091
68908a3e
AC
40922004-06-21 Andrew Cagney <cagney@gnu.org>
4093
48f7351b
AC
4094 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
4095 macro name, and the function rather than macro value. Only wrap
4096 macro print statements in #ifdef. Move format logic to where it
4097 is needed.
4098 * gdbarch.c: Re-generate.
4099
283354d8
AC
4100 * gdbarch.sh (read): Delete "print_p" and "description", add
4101 "garbage_at_eol". Check for non-empty garbage at end-of-line.
4102 Delete references to print_p.
4103 (TARGET_ARCHITECTURE): Delete print predicate.
4104 * gdbarch.c: Re-generate.
4105
68908a3e
AC
4106 * gdbarch.sh: Check that multi-arch methods do not provide a
4107 macro.
4108 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
4109 (print_registers_info, print_float_info, print_vector_info)
4110 (adjust_breakpoint_address, remote_translate_xfer_address)
4111 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
4112 (address_class_type_flags_to_name, unwind_sp): Remove the macro
4113 name from the multi-arch definition.
4114
a2428dbe
AC
41152004-06-20 Andrew Cagney <cagney@gnu.org>
4116
4117 * gdbarch.sh: Sort by the function, instead of macro name.
4118 * gdbarch.c: Re-generate.
4119
750eb019
AC
41202004-06-20 Andrew Cagney <cagney@gnu.org>
4121
66d659b1
AC
4122 * gdbarch.sh: Use the function, instead of macro name in
4123 errors and the log file.
4124 (return_value): Remove stray ":" in spec.
4125
750eb019
AC
4126 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
4127 * gdbarch.h, gdbarch.c: Re-generate.
4128 * Makefile.in (arch-utils.o): Update dependencies.
4129 * values.c (using_struct_return): Move code calling
4130 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
4131 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
4132 to legacy_return_value, simplify.
4133 * infcmd.c (print_return_value): Move code calling
4134 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
4135 to legacy_return_value, simplify.
4136 * infcall.c (call_function_by_hand): Move code calling
4137 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
4138 * arch-utils.c: Update copyright. Include "gdbcore.h".
4139 (legacy_return_value): New function.
4140 * arch-utils.h: Update copyright.
4141 (legacy_return_value): Declare.
4142
b5622e8d
AC
41432004-06-20 Andrew Cagney <cagney@gnu.org>
4144
4145 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
4146 * gdbarch.h, gdbarch.c: Re-generate.
4147 * values.c (using_struct_return): Update call.
4148 * mcore-tdep.c: Update comment.
4149 * infcall.c (call_function_by_hand): Update comment.
4150 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4151 * arch-utils.h (always_use_struct_convention): Update.
4152 * v850-tdep.c (v850_gdbarch_init): Update.
4153 * sh64-tdep.c (sh64_gdbarch_init): Update.
4154 * sh-tdep.c (sh_gdbarch_init): Update.
4155 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4156 * mips-tdep.c (mips_gdbarch_init): Update.
4157 * mcore-tdep.c (mcore_gdbarch_init): Update.
4158 * m32r-tdep.c (m32r_gdbarch_init): Update.
4159 * ia64-tdep.c (ia64_gdbarch_init): Update.
4160 * h8300-tdep.c (h8300_gdbarch_init): Update.
4161 * frv-tdep.c (frv_gdbarch_init): Update.
4162 * cris-tdep.c (cris_gdbarch_init): Update.
4163 * arm-tdep.c (arm_gdbarch_init): Update.
4164 * alpha-tdep.c (alpha_gdbarch_init): Update.
4165
5191de37
MC
41662004-06-18 Michael Chastain <mec.gnu@mindspring.com>
4167
4168 * PROBLEMS: Add more specific information, and a work-around,
4169 for PR gdb/1458.
4170
782263ab
AC
41712004-06-18 Andrew Cagney <cagney@gnu.org>
4172
4173 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
4174 * gdbarch.h, gdbarch.c: Re-generate.
4175 * ada-lang.c (ada_finish_decode_line_1): Update.
4176 * infrun.c (handle_inferior_event): Update.
4177 * infcall.c (find_function_addr): Update.
4178 * linespec.c (minsym_found): Update.
4179 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
4180 Update.
4181 * blockframe.c (legacy_frameless_look_for_prologue): Update.
4182 * cli/cli-cmds.c (disassemble_command): Update.
4183 * vax-tdep.c (vax_gdbarch_init): Update.
4184
2f305df1
MK
41852004-06-18 Mark Kettenis <kettenis@gnu.org>
4186
4187 * i386-tdep.c (i386_collect_fpregset): Fix comment.
4188
e5fe55f7
AC
41892004-06-17 Andrew Cagney <cagney@gnu.org>
4190
4191 GDB 6.1.1 released from the GDB 6.1 branch.
4192 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
4193 * PROBLEMS: Ditto.
4194
473b7be6
DJ
41952004-06-16 Daniel Jacobowitz <dan@debian.org>
4196
4197 PR gdb/1658
4198 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
4199 operation as a uleb128. Found by Michael Coulter.
4200
96d887e8
PH
42012004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
4202
4203 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
4204 make it non-static.
4205 * ada-lang.h (task_control_block): declaration moved from ada-task.c
4206 to ada-lang.h; this is needed to be able to implement the kill command
4207 in multi-task mode.
4208 (task_ptid): Ditto.
4209 (task_entry): Ditto.
4210 (task_list): Ditto.
4211 (ada_build_task_list): Ditto.
4212
4213 * ada-lang.c: Conditionalize routines and data structures related
4214 to breakpoints, exceptions, completion, and symbol caching on
4215 GNAT_GDB, since these are not yet used in the submitted public sources.
4216 (ada_main_name): Editorial: Move definition out of exception-related
4217 code.
4218
31eef181
AC
42192004-06-15 Andrew Cagney <cagney@gnu.org>
4220
4221 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
4222 deprecated_pc_in_call_dummy.
4223
2c500098
AM
42242004-06-15 Alan Modra <amodra@bigpond.net.au>
4225
4226 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
4227 bfd_get_section_size_before_reloc or _raw_size.
4228 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
4229 * dwarf2read.c (dwarf2_locate_sections): Likewise.
4230 (dwarf2_read_section): Likewise.
4231 * elfread.c (elf_locate_sections): Likewise.
4232 * gcore.c (derive_heap_segment): Likewise.
4233 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
4234 * remote-e7000.c (e7000_load): Likewise.
4235 * remote-m32r-sdi.c (m32r_load): Likewise.
4236 * remote-mips.c (mips_load_srec): Likewise.
4237 (pmon_load_fast): Likewise.
4238 * remote.c (compare_sections_command): Likewise.
4239 * symfile.c (add_section_size_callback): Likewise.
4240 (load_section_callback): Likewise.
4241 (pc_in_unmapped_range): Likewise.
4242 (pc_in_mapped_range): Likewise.
4243 (sections_overlap): Likewise.
4244 (list_overlays_command): Likewise.
4245 (simple_overlay_update_1): Likewise.
4246 (simple_overlay_update): Likewise.
4247 * tracepoint.c (remote_set_transparent_ranges): Likewise.
4248 * win32-nat.c (core_section_load_dll_symbols): Likewise.
4249
90f943f1
RC
42502004-06-14 Randolph Chung <tausq@debian.org>
4251
4252 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
4253 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
4254 static.
4255 (hppa_hpux_inferior_created): New function.
4256 (hppa_hpux_init_abi): Register observer.
4257 * symfile.c (hp_cxx_exception_support_initialized)
4258 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
4259 (symbol_file_add_main_1, symbol_file_clear): Likewise.
4260
700c15aa
RC
42612004-06-14 Randolph Chung <tausq@debian.org>
4262
3973a7d3
AC
4263 * MAINTAINERS (Write After Approval): Alphabetize my entry
4264 correctly.
700c15aa 4265
cea4838c
AC
42662004-06-14 Andrew Cagney <cagney@gnu.org>
4267
4268 * MAINTAINERS (testsuite): List Michael Chastain as the lead
4269 testsuite maintainer.
4270
97092415
AC
42712004-06-13 Andrew Cagney <cagney@gnu.org>
4272
e8c3165b
AC
4273 * infcmd.c (print_return_value): Fix logic, allow
4274 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
4275
bceabdd8
AC
4276 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
4277 defining any macros.
4278 * gdbarch.h: Re-generate.
4279
57010b1c
AC
4280 * gdbarch.sh: Delete "level" attribute. Only check for a macro
4281 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
4282 * gdbarch.h: Re-generate.
4283
bc87dfa0
AC
4284 * values.c (generic_use_struct_convention): Don't check gcc_p.
4285
15ac804d
AC
4286 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
4287 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
4288 * gdbarch.h, gdbarch.c: Regenerate.
4289 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
4290 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
4291 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4292 deprecated_max_register_raw_size and
4293 deprecated_max_register_virtual_size.
4294 * v850-tdep.c (v850_gdbarch_init): Ditto.
4295 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
4296 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4297 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4298 * cris-tdep.c (cris_gdbarch_init): Ditto.
4299
97092415
AC
4300 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
4301 * gdbarch.h, gdbarch.c: Re-generate.
4302 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
4303 (m68hc11_use_struct_convention): Delete function.
4304 (m68hc11_extract_struct_value_address): Delete function.
4305 (m68hc11_return_value): New function.
4306 (m68hc11_gdbarch_init): Instead of store_return_value,
4307 extract_return_value, return_value_on_stack,
4308 deprecated_extract_struct_value_address and use_struct_convention,
4309 set return_value.
4310 * values.c (using_struct_return): Do not call
4311 RETURN_VALUE_ON_STACK.
4312 * arch-utils.h (generic_return_value_on_stack_not): Delete
4313 declaration.
4314 * arch-utils.c (generic_return_value_on_stack_not): Delete
4315 function.
4316
44e5158b
AC
43172004-06-12 Andrew Cagney <cagney@gnu.org>
4318
4319 * values.c (register_value_being_returned): Delete function.
4320 * infcmd.c (legacy_return_value): Delete function.
4321 * infcall.c (call_function_by_hand): Inline
4322 "register_value_being_returned", simplify.
4323 * values.c (using_struct_return): Update comment, refer to
4324 print_return_value instead of register_value_being_returned.
4325 * infcmd.c (print_return_value): Inline calls to
4326 register_value_being_returned and legacy_return_value. Simplify.
4327
b887c273
RC
43282004-06-11 Randolph Chung <tausq@debian.org>
4329
4330 * somread.c (som_symtab_read): Exclude gcc local symbols.
4331
1b2bfbb9
RC
43322004-06-11 Randolph Chung <tausq@debian.org>
4333
3973a7d3
AC
4334 * infrun.c (handle_inferior_event): Handle the case when a
4335 trampoline ends up in the runtime resolver, and if the trampoline
4336 has no name. Rearrange the code so that all the trampoline
4337 processing happens before other step-out-of-range handling.
1b2bfbb9 4338
a9d61c86
MH
43392004-06-11 Martin Hunt <hunt@redhat.com>
4340
4341 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
4342 has no fpu.
4343
2c87cf5a
AC
43442004-06-10 Andrew Cagney <cagney@gnu.org>
4345
4346 * blockframe.c (legacy_inside_entry_func): Delete.
4347 (legacy_frame_chain_valid): Inline call to
4348 legacy_inside_entry_func, simplify.
4349
0b67b468 43502004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
4351
4352 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
4353 * dwarf2read.c (partial_die_info): Add dirname field.
4354 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
4355 (read_partial_die): Save away DW_AT_comp_dir.
4356 * defs.h (symtab_to_filename): Removed.
4357 * source.c (find_and_open_source): Added.
57c22c6c 4358 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
4359 (symtab_to_filename): Removed.
4360 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
4361 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
4362 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
4363 symtab_to_filename.
4364 * symtab.h (partial_symtab): Add dirname field.
4365 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
4366 (mi_cmd_file_list_exec_source_file): Call new function
4367 symtab_to_fullname to find fullname.
57c22c6c 4368 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 4369 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
4370 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
4371
9a1dd1ad
AC
43722004-06-10 Andrew Cagney <cagney@gnu.org>
4373
239ae8c7
AC
4374 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
4375 to generic_use_struct_convention, the default value.
4376
fc720350
AC
4377 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
4378 of abort.
4379
9a1dd1ad
AC
4380 * ns32k-tdep.c (ns32k_push_arguments): New function.
4381 (ns32k_gdbarch_init): Set deprecated_push_arguments.
4382 * infcall.c (call_function_by_hand): Call error instead of
4383 legacy_push_arguments.
4384 * value.h (legacy_push_arguments): Delete declaration.
4385 * valops.c (legacy_push_arguments): Delete function.
4386 (value_push): Delete function.
4387
fea25152
BF
43882004-06-10 Brian Ford <ford@vss.fsi.com>
4389
4390 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
4391 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
4392 info.
4393 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
4394
30a4a8e0
AC
43952004-06-10 Andrew Cagney <cagney@gnu.org>
4396
4397 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
4398 * gdbarch.h, gdbarch.c: Re-generate.
4399 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
4400 parameters.
4401 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
4402 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
4403 deprecated_pc_in_call_dummy instead of
4404 DEPRECATED_PC_IN_CALL_DUMMY.
4405 (arm_skip_prologue): Ditto.
4406 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
4407 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
4408 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
4409 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
4410 Ditto.
4411 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
4412 (sh64_init_extra_frame_info, sh64_get_saved_register)
4413 (sh64_pop_frame): Ditto.
4414 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
4415 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
4416 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
4417 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
4418 (h8300_pop_frame): Ditto.
4419 * blockframe.c (legacy_inside_entry_func)
4420 (legacy_frame_chain_valid): Ditto.
4421 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
4422 to deprecated_pc_in_call_dummy.
4423
81cfbe54
AC
44242004-06-09 Andrew Cagney <cagney@gnu.org>
4425
a1f4a1b6
AC
4426 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
4427 provide a default value.
4428 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
4429 * gdbarch.h, gdbarch.c: Re-generate.
4430 * arch-utils.c (generic_convert_register_p): Rename
4431 legacy_convert_register_p
4432 (legacy_register_to_value, legacy_value_to_register): Delete
4433 functions.
4434 * arch-utils.h (generic_convert_register_p): Rename
4435 legacy_convert_register_p.
4436 (legacy_register_to_value, legacy_value_to_register): Delete
4437 declarations.
4438
9730f241
AC
4439 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
4440 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
4441 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
4442 * gdbarch.h, gdbarch.c: Re-generate.
4443 * infcmd.c (default_print_registers_info): Simplify.
4444 * findvar.c (value_of_register): Simplify.
4445 * mi/mi-main.c (get_register): Simplify.
4446 * arch-utils.c (legacy_convert_register_p): Always return 0.
4447 (legacy_register_to_value, legacy_value_to_register): Always call
4448 internal_error.
4449
8a1bf479
AC
4450 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
4451 #ifdef CLEAR_INSN_CACHE code.
4452 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
4453 Delete #ifdef CLEAR_DEFERRED_STORES code.
4454
4b38d6f1
AC
4455 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
4456
2d62ecc7
AC
4457 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
4458 copyright.
4459 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
4460
be4f7469
AC
4461 * config/mips/mipsv4.mh: Delete file.
4462
81cfbe54
AC
4463 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
4464 unreferenced macro.
4465 (hpread_adjust_stack_address): Delete declaration.
4466
d966f0cb
AC
44672004-06-08 Andrew Cagney <cagney@gnu.org>
4468
4469 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4470 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
4471 PTRACE_ATTACH / PTRACE_DETACH available call error.
4472 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
4473 * infttrace.c (update_thread_state_after_attach, attach, detach):
4474 Remove #ifdef wrappers.
4475 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
4476 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4477 * config/nm-bsd.h (ATTACH_DETACH): Delete.
4478 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
4479 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
4480 * config/nm-linux.h (ATTACH_DETACH): Delete.
4481 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
4482 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
4483 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
4484 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
4485 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
4486
d91670b9
CV
44872004-06-08 Corinna Vinschen <vinschen@redhat.com>
4488
4489 * configure.in: Set $configdir to the right OS specific value.
4490 Use value when setting $tcldir and $tkdir.
4491 * configure: Regenerate.
4492
28ba0b33
PB
44932004-06-06 Paul Brook <paul@codesourcery.com>
4494
4495 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
4496 records.
4497
f26caa11
PH
44982004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
4499
4500 * ada-lang.c (lookup_symbol_in_language): New function to allow
4501 re-use of another language's symbol lookup code. (Placed here
4502 temporarily while Ada support is being integrated into the public
4503 tree).
4504 (restore_language): New auxiliary function for
4505 lookup_symbol_in_language.
4506 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
4507 temporarily while Ada support is being integrated into the public
4508 tree).
4509
d560a54b
AO
45102004-06-08 Alexandre Oliva <aoliva@redhat.com>
4511
e75d110c
AO
4512 * Makefile.in (check//%): New.
4513
d560a54b
AO
4514 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
4515 (mn10300_store_return_value): Rewrite.
4516 (mn10300_type_align): New.
4517 (mn10300_use_struct_convention): Rewrite.
4518 (mn10300_return_value): New, using all of the above.
4519 (mn10300_pop_frame_regular): Add saved_regs_size.
4520 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
4521
a72fbdb7
AO
4522 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
4523 regs if PC is on movm.
4524
01904826
JB
45252004-06-07 Jim Blandy <jimb@redhat.com>
4526
4527 Add native Linux support for the PowerPC E500.
4528 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
4529 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
4530 all architectures except the E500.
4531 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
4532 #definitions.
4533 (struct gdb_evrregset_t): New type.
4534 (have_ptrace_getsetevrregs): New variable.
4535 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
4536 fetch_spe_registers): New functions.
4537 (fetch_register): Call fetch_spe_register as appropriate.
4538 Assert that we're only passed raw register numbers.
4539 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
4540 Don't fetch gprs if they're pseudoregisters.
4541 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
4542 store_spe_registers): New functions.
4543 (store_register): Call store_spe_register as appropriate.
4544 Assert that we're only passed raw register numbers.
4545 (store_ppc_registers): Call store_spe_registers as appropriate.
4546 Don't store gprs if they're pseudoregisters.
4547
f90ef764
JJ
45482004-06-07 Jeff Johnston <jjohnstn@redhat.com>
4549
4550 * thread-db.c (thread_get_info_callback): Fill in the thread_info
4551 struct if one exists, even if we are dealing with a zombie thread.
4552
45b75230
AC
45532004-06-07 Andrew Cagney <cagney@gnu.org>
4554
4555 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
4556 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
4557 Rename PC_REQUIRES_RUN_BEFORE_USE.
4558 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
4559 #ifdef.
4560
1658da49
RC
45612004-06-07 Randolph Chung <tausq@debian.org>
4562
4563 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
4564 unwinding after sp has been saved to the stack but before the end
4565 of the prologue, and after the fp has been modified but before it has
4566 been saved to the stack.
4567 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
4568 Remove superfluous definitions.
4569 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
4570
9a727a3c
RC
45712004-06-07 Guy Martin <gmsoft@gentoo.org>
4572
4573 Committed by Randolph Chung.
4574 * hppa-linux-nat.c: Include the correct version of the header file
4575 depending on the kernel version.
4576
9e500012
RC
45772004-06-06 Randolph Chung <tausq@debian.org>
4578
4579 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
4580 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
4581
3388d7ff
RC
45822004-06-06 Randolph Chung <tausq@debian.org>
4583
4584 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
4585 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
4586 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
4587 * hppa-tdep.c (hppa_symbol_address): New function definition.
4588 * hppa-tdep.h (hppa_symbol_address): New function declaration.
4589
d49771ef
RC
45902004-06-06 Randolph Chung <tausq@debian.org>
4591
4592 * hppa-tdep.h (struct value): Forward declaration.
4593 (gdbarch_tdep): Define tdep find_global_pointer method.
4594 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
4595 associated with the function we are trying to call, and write it
4596 to the gp register.
4597 (hppa32_convert_from_funct_ptr_addr): New function.
4598 (hppa_find_global_pointer): New function.
4599 (hppa_gdbarch_init): Set default find_global_pointer method; set
4600 convert_from_func_ptr_addr method.
4601 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
4602 (hppa_linux_init_abi): Set find_global_pointer method.
4603 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
4604
7d9b040b
RC
46052004-06-06 Randolph Chung <tausq@debian.org>
4606
4607 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
4608 to struct value *function.
4609 * gdbarch.c: Regenerate.
4610 * gdbarch.h: Likewise.
4611 * infcall.c (call_function_by_hand): Pass entire function value
4612 to push_dummy_call.
4613
4614 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
4615 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
4616 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
4617 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
4618 * arm-tdep.c (arm_push_dummy_call): Likewise.
4619 * avr-tdep.c (avr_push_dummy_call): Likewise.
4620 * cris-tdep.c (cris_push_dummy_call): Likewise.
4621 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
4622 * frv-tdep.c (frv_push_dummy_call): Likewise.
4623 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
4624 * hppa-tdep.c (hppa32_push_dummy_call)
4625 (hppa64_push_dummy_call): Likewise.
4626 * i386-tdep.c (i386_push_dummy_call): Likewise.
4627 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
4628 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
4629 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
4630 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
4631 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
4632 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4633 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
4634 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
4635 (ppc64_sysv_abi_push_dummy_call): Likewise.
4636 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
4637 (ppc64_sysv_abi_push_dummy_call): Likewise.
4638 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4639 * s390-tdep.c (s390_push_dummy_call): Likewise.
4640 * sh-tdep.c (sh_push_dummy_call_fpu)
4641 (sh_push_dummy_call_nofpu): Likewise.
4642 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
4643 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
4644 * vax-tdep.c (vax_push_dummy_call): Likewise.
4645
4a19ea35
JB
46462004-06-04 Jim Blandy <jimb@redhat.com>
4647
8327ccee
JB
4648 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
4649 gdbarch argument to register_size.
4650
a3c001ce
JB
4651 * rs6000-tdep.c (rs6000_store_return_value): Use
4652 regcache_cooked_write_part instead of
4653 deprecated_write_register_bytes.
4654 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
4655 not gdbarch_deprecated_store_return_value.
4656
4a19ea35
JB
4657 * ppc-linux-nat.c (store_register, fetch_register): Remove
4658 incorrect assertions. Simplify and generalize handling of
4659 transfers whose sizes are not multiples of, or less than, sizeof
4660 (PTRACE_XFER_TYPE).
4661
b9b5d7ea
JJ
46622004-06-04 Jeff Johnston <jjohnstn@redhat.com>
4663
4664 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
4665 as a new thread event.
720c7d64 4666 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 4667 zombie, return TD_THR_ZOMBIE.
720c7d64 4668 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
4669 TD_THR_ZOMBIE, check if the thread is still on the thread list
4670 and return a -1 ptid if not found.
4671 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
4672 change the status to TARGET_WAITKIND_SPURIOUS.
4673
c8a3b559
CV
46742004-06-03 Corinna Vinschen <vinschen@redhat.com>
4675
4676 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
4677 double values in little endian mode.
4678
20605361
AC
46792004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
4680
4681 Committed by Andrew Cagney.
4682 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
4683 after last enum constant to avoid error from IBM C
4684 compiler.
4685
bc97b3ba
JB
46862004-06-02 Jim Blandy <jimb@redhat.com>
4687
4688 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
4689 to 'message', and make it local to the lone block that uses it.
4690
1da28ab0
JB
4691 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
4692
4c4b4cd2
PH
46932004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
4694
8a2225b2
PH
4695 * ada-exp.y: Update copyright notice.
4696 Include block.h.
4697
4698 Replace REGNAME, LAST, INTERNAL_VARIABLE with
4699 SPECIAL_VARIABLE and unify the treatment of these cases.
4700
4701 (write_attribute_call0): Remove.
4702 (write_attribute_call1): Remove.
4703 (write_attribute_calln): Remove.
4704 (save_qualifier): Add missing semicolon.
4705
4706 (simple_exp,exp): Decomment (i.e., reactivate) code that was
4707 temporarily disabled to allow compilation with FSF head version.
4708
4709 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
4710 use individual operators (OP_*) for all attributes.
4711 (exp syntax): Use write_int.
4712 Handle STRING literals with OP_STRING.
4713 (variable syntax): Add limit parameter to calls to
4714 write_object_renaming.
4715
4716 (temp_parse_space): New definition to hold entities that need
4717 only live until the next call to ada_parse.
4718 (string_to_operator): Rename fields of ada_opname_table entries.
4719
4720 (write_var_from_sym): Record block.
4721 (write_var_from_name): Minor reformatting.
4722 Make sure saved name is properly encoded in the case of multiple
4723 matches, and set its language to Ada.
4724 Update comment.
4725 Modify to indicate unresolved name as symbol in the UNRESOLVED
4726 namespace, allocated in temp_parse_space.
4727 (write_int): New function.
4728
4729 (write_object_renaming): Add max_depth parameter to limit
4730 chains of object renamings.
4731 Handle case where root of renaming expression is itself a renaming.
4732 Use temp_parse_space for temporary name buffer.
4733 Handle renamings to dereferenced pointers (___XEXA suffices).
4734
4735 (ada_parse, yyerror, string_to_operator,
4736 write_var_from_sym, write_var_from_name, write_attribute_call0,
4737 write_attribute_call1, write_attribute_calln,
4738 write_object_renaming): Protoize.
4739
4740 (_initialize_ada_exp): New function.
4741
4742 * ada-lang.c: Update copyright notice.
4743 General terminology change to conform to GNAT compiler usage:
4744 mangle => encode, demangle => decode
4745 Include gdb_obstack.h.
4746 Include gdb_regex.h
4747 Include frame.h
4748 Include hashtab.h
4749 Include completer.h
4750 Include gdb_stat.h
4751 Include block.h
4752 Include infcall.h
4753
4754 (ADA_RETAIN_DOTS): Make sure this is defined.
4755 (TRUNCATION_TOWARDS_ZERO): Define.
4756 (struct string_vector): Define.
4757 (unresolved_names): Remove definition.
4758 (xnew_string_vector): New function.
4759 (string_vector_append): New function.
4760 (extract_string): Make static.
4761 (ada_unqualified_name): New function.
4762 (add_angle_brackets): New function.
4763 (function_name_from_pc): New function.
4764 (place_on_stack): Rename to ensure_lval.
4765
4766 (ensure_lval): Renamed from place_on_stack.
4767 Make identity on lvals.
4768 Update comment.
4769 (is_nonfunction): New interface.
4770 Only symbols in LOC_CONST class can be enumerals.
4771 (fill_in_ada_prototype): Remove; now independent of language.
4772 (add_defn_to_vec): Add obstack and symtab arguments.
4773 Use obstack to hold collected definitions.
4774 (num_defns_collected): New function.
4775 (defns_collected): New function.
4776 (ada_resolve_subexp): Rename to resolve_subexp.
4777 (resolve_subexp): Renamed from ada_resolve_subexp.
4778 (ada_op_name): Return non-const result.
4779 (ada_decoded_op_name): Renamed from ada_op_name, now used for
4780 other purposes.
4781
4782 (to_fixed_array_type): Add declaration.
4783 (coerce_unspec_val_to_type): Remove offset parameter.
4784 (find_sal_from_funcs_and_line): New interface.
4785 (find_line_in_linetable): Ditto.
4786
4787 (all_sals_for_line): Rename to ada_sals_for_line and make
4788 global.
4789 Add new parameter. When set, do not ask the user to choose the
4790 instance, but use the first one found instead.
4791 Use given line number in returned sals.
4792 Fix comment.
4793 Skip the prologue if funfirstline is set.
4794 Correct for memory leak when 0 lines found.
4795
4796 (value_pos_atr): Use pos_atr.
4797 (pos_atr): New function.
4798 (standard_lookup): Add block parameter.
4799
4800 (makeTimeStart): Remove declaration and uses.
4801 (makeTimeStop): Remove declaration and uses.
4802
4803 (ada_completer_word_break_characters): Allow for VMS.
4804 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
4805 (raise_sym_name): New constant.
4806 (raise_unhandled_sym_name): New constant.
4807 (raise_assert_sym_name): New constant.
4808 (process_raise_exception_name): New constant.
4809 (longest_exception_template): New constant.
4810 (warning_limit): New variable to limit warnings during expression
4811 evaluation.
4812 (warnings_issued): New variable to keep track of warnings issued.
4813 (known_runtime_file_name_patterns): New constant.
4814 (known_auxiliary_function_name_patterns): New constant.
4815 (symbol_list_obstack): New variable.
4816
4817 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
4818 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
4819 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
4820 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
4821 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
4822 ada_variant_discrim_name, field_alignment, dynamic_template_type,
4823 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
4824 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
4825 and strcmp.
4826
4827 (ada_get_field_index): New function.
4828 (lim_warning): New function.
4829 (ada_translate_error_message): New function.
4830 (MAX_OF_SIZE): New function.
4831 (MIN_OF_SIZE): New function.
4832 (UMAX_OF_SIZE): New function.
4833 (UMIN_OF_SIZE): New function.
4834 (discrete_type_high_bound): New function.
4835 (discrete_type_low_bound): New function.
4836 (base_type): New function.
4837 (do_command): Remove.
4838
4839 (ada_update_initial_language): Use language_ada, not language_unknown.
4840 (ada_encode): Renamed from ada_mangle.
4841 Obey ADA_RETAIN_DOTS.
4842 (ada_decode): Renamed from ada_demangle.
4843 Update coding conventions.
4844 (decoded_names_store): New hash table.
4845 (ada_decode_symbol): New function.
4846 (ada_la_decode): New function.
4847
4848 (modify_general_field): Correct computations of offset and bit
4849 position.
4850 (desc_base_type): Handle ref types, too.
4851 (ada_is_direct_array_type): New function.
4852
4853 (ada_is_simple_array): Rename to ada_is_simple_array_type.
4854 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
4855 (ada_is_bogus_array_descriptor,ada_type_of_array,
4856 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
4857 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
4858 ada_is_array_descriptor_type.
4859
4860 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
4861 (ada_is_packed_array_type): Handle pointers or
4862 references to packed arrays as well.
4863 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
4864 (decode_packed_array_type): Search for the packed array type
4865 symbol in the currently selected block and associated
4866 superblocks too.
4867 Use lookup_symbol again.
4868
4869 (decode_packed_array): Handle pointers and references.
4870 Update call to coerce_unspec_val_to_type.
4871 (decode_packed_array_type,value_subscript_packed): Limit warnings.
4872 (ada_value_primitive_packed_val): Improve comment.
4873
4874 (ada_index_type): Substitute int type for "undefined".
4875 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
4876 ada_array_langth, ada_is_string_type): Use renamed
4877 ada_is_simple_array_type.
4878 (empty_array): New function.
4879
4880 (ada_resolve): Rename to resolve.
4881 (resolve): Make static.
4882 Call renamed resolve_subexp.
4883 Update comment.
4884 (ada_resolve_subexp): Rename to resolve_subexp.
4885 (resolve_subexp): Update comment.
4886 Decomment disabled code.
4887 Add LOC_COMPUTED* cases.
4888 Modify to use temporary struct symbols (marked as being in
4889 UNDEF_NAMESPACE) to indicate unresolved names, instead of
4890 OP_UNRESOLVED_VALUE.
4891 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
4892 Add OP_STRING case.
4893 Remove OP_ARRAY.
4894 Use SYMBOL_PRINT_NAME instead of ada_demangle.
4895 Use new ada_lookup_symbol_list interface.
4896 Use new ada_resolve_function interface.
4897 Remove OP_TYPE case.
4898
4899 (ada_args_match): Idiot proof against null actuals.
4900 Use intermediate variables to clarify.
4901 (ada_resolve_function): Update comment and interface.
4902 (mangled_ordered_before): Rename to encoded_ordered_before and
4903 update comment.
4904 (sort_choices): Update comment and interface.
4905 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
4906 (user_select_syms): New interface.
4907 Use new sort_choices interface.
4908 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
4909 (possible_user_operator_p): Idiot-proof against null values.
4910 (ada_simple_renamed_entity): Don't make cleanup; rely on
4911 caller to free result string.
4912 Remove const from return type.
4913 (make_array_descriptor): Rename uses of place_on_stack to
4914 ensure_lval.
4915 Make sure that arrays are on stack.
4916
4917 (HASH_SIZE): Define.
4918 (struct cache_entry): Define.
4919 (cache_space): Define.
4920 (cache): Define.
4921 (clear_ada_sym_cache): New function.
4922 (find_entry): New function.
4923 (lookup_cached_symbol): New function.
4924 (defn_vector_size): Define.
4925 (cache_symbol): New function.
4926 (defn_symbols): Remove.
4927
4928 (standard_lookup): Use lookup_symbol_in_language to get effect of
4929 C lookup.
4930 Cache results.
4931
4932 (symbol_completion_match): New function.
4933 (symbol_completion_add): New function.
4934 (ada_make_symbol_completion_list): New function.
4935
4936 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
4937 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
4938 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
4939 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
4940
4941 (ada_lookup_simple_minsym): New function.
4942 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
4943
4944 (add_symbols_from_enclosing_procs): New interface.
4945 Conditionalize more helpfully.
4946 Don't bother if program isn't running.
4947 Use new interface to get_frame_block.
4948 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
4949
4950 (remove_extra_symbols): New interface.
4951 (xget_renaming_scope): New function.
4952 (is_package_name): New function.
4953 (renaming_is_visible): New function.
4954 (remove_out_of_scope_renamings): New function.
4955
4956 (ada_lookup_symbol_list): New interface.
4957 Properly reinitialize the symbol list obstack.
4958 Don't call add_symbols_from_enclosing_procs if we start from a
4959 static or global block.
4960 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
4961 add_symbols_from_enclosing_procs.
4962 Add symtab data to cached entries.
4963 Handle symbols prefixed with
4964 "standard__" specially; strip prefix and don't look in local symbols.
4965 Do not include out of scope renaming symbols in list of
4966 symbols returned.
4967 Add const to block parameter.
4968 Move check for non-local, non-global symbols earlier.
4969 Remove timing stuff.
4970 (ada_lookup_symbol): New interface.
4971 Find symtab as well.
4972 (ada_lookup_symbol_nonlocal): New function.
4973
4974 (is_name_suffix): Enhance suffix detection to recognize
4975 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
4976 (is_dot_digits_suffix): New function.
4977 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
4978
4979 (ada_add_block_symbols): New interface. Use obstack to return results
4980 in a vector of struct ada_symbol_infos. Add symtab argument.
4981 Use new interface to add_defn_to_vec.
4982 Remove calls to fill_in_ada_prototype.
4983 Use BLOCK_BUCKETS, BLOCK_BUCKET.
4984
4985 (ada_finish_decode_line_1): Add const qualification to local to fix
4986 warning.
4987 Start looking in static block for functions to avoid attempts
4988 to search frame chain for up-level variables.
4989 Adapt to new ada_sals_for_line interface.
4990 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
4991 Handle quoting of the function name inside the spec string.
4992 Skip prologue when funfirstline is set and update the
4993 function documentation to that effect.
4994
4995 (debug_print_lines, debug_print_block, debug_print_blocks,
4996 debug_print_symtab): Remove.
4997
4998 (ada_main_name): New function.
4999 (ada_exception_breakpoint_type): New function.
5000 (is_known_support_routine): New function.
5001 (ada_find_printable_frame): Renamed from find_printable_frame and made
5002 global.
5003 Remove level parameter.
5004 Use new interface to select_frame.
5005
5006 (begin_command): Remove.
5007 (ada_adjust_exception_stop): New function.
5008 (ada_print_exception_stop): New function.
5009 (exception_name_from_cond): New function.
5010 (ada_report_exception_break): Replace disabled code with
5011 conditionalization on GNAT_GDB.
5012 Get the exception name from the condition string.
5013 Remove and move functionality into new functions
5014 ada_print_exception_breakpoint_task and
5015 ada_print_exception_breakpoint_nontask.
5016 (error_breakpoint_runtime_sym_not_found): New function.
5017 (is_runtime_sym_defined): New function.
5018 (ada_breakpoint_rewrite): Uncomment suppressed code.
5019 Use symbolic error-message and runtime-symbol names.
5020 Surround runtime symbol names in quotes.
5021 Allow non-specific breakpoints on exceptions and assertions before
5022 program starts.
5023
5024 (ada_is_tagged_type): Add parameter.
5025 (ada_is_tag_type): New function.
5026 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
5027 (ada_variant_discrim_type): Ditto.
5028 (value_tag_from_contents_and_address): New function.
5029 (type_from_tag): New function.
5030 (struct tag_args): New structure used to communicate with
5031 ada_tag_name_1.
5032 (ada_tag_name_1): New function.
5033 (ada_tag_name): New function.
5034
5035 (ada_scan_number): Update comment.
5036 (find_struct_field): New function.
5037 (ada_search_struct_field): Make static.
5038 (ada_value_struct_elt): New version that returns references when
5039 given pointers or references to structs.
5040 (ada_lookup_struct_elt_type): Add 'refok' parameter.
5041 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
5042 interface.
5043 (ada_value_ind): Use new ada_to_fixed_value interface.
5044 (ada_coerce_ref): Ditto.
5045 (field_offset): Remove.
5046
5047 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
5048 (ada_find_renaming_symbol): New function.
5049 (ada_prefer_type): Prefer named types over unnamed ones.
5050 (variant_field_index): New function.
5051 (contains_variant_part): Removed: subsumed by variant_field_index.
5052 (ada_template_to_fixed_record_type): New function, mostly from
5053 template_to_fixed_record_type.
5054 (template_to_fixed_record_type):
5055 Do not scan the type fields beyond the last one; prevents a
5056 potential SEGV.
5057 Handle case where variant field is listed BEFORE discriminant it
5058 depends on.
5059 Fix calculation of record length when bit length is
5060 not evenly divisible by char length.
5061 Move code to ada_template_to_fixed_record_type and call it.
5062
5063 (template_to_static_fixed_type): Revise comment.
5064 Modify to work on ordinary record types as well as templates,
5065 so as to handle fields that use ___XVE or ___XVU encodings.
5066 (to_record_with_fixed_variant_part): Fill out comment.
5067 Initialize C++ stuff in right type.
5068 Allow case where DVAL is null.
5069 Handle case where variant field is not last.
5070 Fix typo concerning record length.
5071 (to_fixed_record_type): Decomment disabled code.
5072 (to_fixed_record_type): Use variant_field_index instead of
5073 contains_variant_part.
5074 (to_fixed_variant_branch_type): Ditto.
5075 (to_fixed_array_type): Decomment disabled code.
5076 (ada_to_fixed_type): Convert tagged types to the specific type.
5077 Deactivate the size-check for array types in order to avoid
5078 some false size alarms.
5079 (to_static_fixed_type): Decomment disabled code.
5080 Modify to call template_to_static_fixed_type
5081 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
5082 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
5083 Remove valaddr argument, as it is never really used.
5084 (ada_to_fixed_value): Change interface to act on single struct value*
5085 operand.
5086 (adjust_pc_past_prologue): New function.
5087 (ada_attribute_name): Modify to take enum exp_opcode argument.
5088
5089 (ada_enum_name): Recognize new homonym-distinguishing convention.
5090 Adjust local variable's type to remove compiler warning.
5091 Fix a small problem in the part that unqualifies the enumeration name.
5092 (ada_value_binop): New function.
5093 (ada_value_equal): New function.
5094
5095 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
5096 Don't give error message when not doing normal evaluation
5097 and a tagged type doesn't seem to contain a structure member.
5098 Give error message for packed arrays.
5099 For indexing arrays, handle pointers to packed arrays correctly.
5100 Handle case of 'first and 'last attributes of bare integral type
5101 without encoded subtype info.
5102 Remove some unnecessary casts.
5103 Fix uninitialized value of type in computing 'first, 'last, or 'length
5104 of array object.
5105 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
5106 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
5107 calls.
5108 Attributes are now exp_opcode values.
5109 Correct treatment of 'modulus.
5110 Better error message for taking 'length of wrong kind of type;
5111 improve comment.
5112 Change EVAL_NORMAL to noside for consistency.
5113 Use ada_value_binop for DIV, MOD, REM.
5114 Make special case out of array of length 0, since an argument
5115 of 0 upsets some platforms' malloc.
5116 Use OP_STRING instead of OP_ARRAY.
5117 For slice, add check that we have an array type before extracting
5118 a slice out of it. Avoids a SEGV.
5119 When evaluating an array slice, if the array type is a reference to
5120 an aligner type, then replace the aligner type by the actual type.
5121 Decomment disabled code.
5122 Remove some dead code.
5123 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
5124 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
5125 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
5126 and UNOP_MBR to UNOP_IN_RANGE.
5127 If an array type has a parallel ___XVE type, then use it.
5128 Turn arrays into pointers for lvalue arrays.
5129 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
5130 bounds error and handle 0-length slices.
5131 Use lim_warning.
5132 When selecting fields, apply ada_to_fixed_value (because the fields
5133 might have ___XVU or ___XVE encodings even if not dynamic.)
5134 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
5135 (ada_is_system_address_type): New function.
5136
5137 (get_var_value): Use new interface to ada_lookup_symbol_list.
5138 (get_int_var_value): New interface.
5139 (to_fixed_range_type): Allow unknown bound, with warning.
5140 (ada_is_modular_type): Decomment disabled code.
5141 (ADA_OPERATORS): New definition.
5142 (ada_operator_length): New function.
5143 (ada_expr_op_name): New function.
5144 (ada_forward_operator_length): New function.
5145 (ada_dump_subexp_body): New function.
5146 (ada_print_subexp): New function.
5147 (ada_exp_descriptor): New constant.
5148 (ada_op_print_tab): Add 'size. Remove FIXMEs.
5149 (ada_language_defn): Add ada_exp_descriptor entry.
5150 Change ada_parse => parse.
5151 Add post-parser entry.
5152 Use ada-specific non-local symbol lookup.
5153 Don't use C-style arrays.
5154 String lower-bound is 1.
5155 Decomment disabled code.
5156 (parse): New function.
5157 New fields ada_translate_error_message, ada_lookup_symbol,
5158 ada_lookup_minimal_symbol.
5159
5160 * ada-lang.h: Update copyright dates.
5161 Replace the mangle/demangle terminology throughout by the
5162 more appropriate encode/decode one.
5163 Include breakpoint.h.
5164 Forward declare struct partial_symbol, struct block.
5165 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
5166 (EXTRACT_ADDRESS): Remove.
5167 (EXTRACT_INT): Remove.
5168 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
5169 (MAX_ENCLOSING_FRAME_LEVELS): Define.
5170 (MAX_RENAMING_CHAIN_LENGTH): Define.
5171 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
5172
5173 (enum task_states): Remove.
5174 ada_task_states: Remove.
5175 (fat_string): Remove.
5176 (struct entry_call): Remove.
5177 (struct task_fields): Remove.
5178 (struct task_entry): Remove.
5179
5180 (struct ada_symbol_info): Define.
5181 (enum ada_attribute): Remove.
5182 (enum ada_operator): Define.
5183
5184 (ada_get_field_index): Declare.
5185 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
5186 (ada_is_simple_array): Rename to ada_is_simple_array_type.
5187 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5188 (ada_lookup_symbol_list): New interface.
5189 (ada_decode_symbol): Declare.
5190 (ada_decode): Declare.
5191 (ada_lookup_symbol): New interface.
5192 (ada_update_initial_language): Declare.
5193 (ada_lookup_simple_minsym): Declare.
5194 (user_select_syms): New interface.
5195 (ada_sals_for_line): Declare.
5196 (ada_is_tagged_type): New interface.
5197 (ada_tag_name): Declare.
5198 (ada_lookup_struct_elt_type): Remove declaration.
5199 (ada_search_struct_field): Remove declaration.
5200 (ada_attribute_name): New interface.
5201 (ada_is_system_address_type): Declare.
5202 (ada_to_fixed_value): Remove declaration.
5203 (ada_template_to_fixed_record_type_1): Declare.
5204 (get_int_var_value): New interface.
5205 (ada_find_any_symbol): Declare.
5206 (ada_find_renaming_symbol): Declare.
5207 (ada_mangle): Rename to ada_encode.
5208 (ada_simple_renamed_entity): Remove const.
5209 (ada_main_name): Declare.
5210 (get_current_task): Rename to ada_get_current_task.
5211 (get_entry_number): Remove declaration.
5212 (ada_report_exception_break): Remove declaration.
5213 (ada_print_exception_breakpoint_nontask): Declare.
5214 (ada_print_exception_breakpoint_task): Declare.
5215 (ada_find_printable_frame): Declare.
5216
5217 * ada-lex.l: Update copyright notices.
5218 Use xmalloc and xfree instead of malloc and free.
5219 Use new interface to name_lookup.
5220 Use new interface to
5221 ada_mangle=>ada_encode.
5222 Redo handling of '$...' variable to parallel current treatment
5223 in c-exp.y.
5224 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
5225 digit_to_int, strtoulst, processInt, processReal, processId,
5226 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
5227 yywrap): Protoize.
5228
5229 (processInt): Use cast to remove harmless warning.
5230 (processReal): Modify to get rid of compiler warning on scan formats.
5231
5232 (processId): Replace xmalloc with obstack_alloc for name and remove
5233 call to ada_name_string_cleanup.
5234 Remove obsolete disabled code.
5235 (name_lookup): Ditto.
5236 New interface.
5237 Use obsavestring on temp_parse_space instead of savestring
5238 on name, and remove call to ada_name_string_cleanup.
5239 Free string returned from ada_simple_renamed_entity.
5240 Use new interface to ada_lookup_symbol_list.
5241 Decomment disabled code.
5242 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
5243 not types.
5244 When a type name lookup succeeds as a result of
5245 lookup_primitive_typename, check for regular type entry that has not
5246 yet been read in.
5247 Limit length of chain of renamed symbols we are willing to follow.
5248 Do not break names beginning with "standard__" into segments.
5249 (block_lookup): Use new interface to ada_lookup_symbol_list.
5250
5251 * ada-typeprint.c: Update copyright notice.
5252 (demangled_type_name): Rename to decoded_type_name.
5253 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
5254 (print_range_bound): Correct handling of negative
5255 bounds that make the index type looked unsigned under STABS.
5256 (print_dynamic_range_bound): Use new interface to get_int_var_value.
5257 (print_range_type_named): Use the builtin int type if no type
5258 corresponding to the given type name could be found.
5259 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
5260 Add some bullet-proofing.
5261 (print_variant_clauses): Allow for variant branches with ___XVU
5262 encodings that are not dynamic fields.
5263 Use new interface to ada_is_tagged_type.
5264 (print_record_type): Allow for fields with ___XVE encodings that
5265 are not dynamic fields.
5266 Use new interface to ada_is_tagged_type.
5267 (ada_print_type): ada_is_array_descriptor =>
5268 ada_is_array_descriptor_type.
5269
5270 * ada-valprint.c: Update copyright notice.
5271 Include gdb_string.h
5272 Include infcall.h
5273 (ui_memcpy): New function.
5274 (ada_print_floating): New function.
5275 (ada_print_str): Order arguments correctly.
5276 Correct handling of empty arrays and arrays of 0-length items.
5277 ada_is_array_descriptor => ada_is_array_descriptor_type
5278 Print values of type System.Address in hexadecimal format.
5279 Use ada_print_floating to print floating-point numbers in Ada format.
5280 Print class tag values with type names.
5281 No longer print the address of reference values. Avoids
5282 a potential confusion.
5283 (ada_value_print): Stop printing the object type for reference
5284 values, but preserve that behavior for access types. Avoids
5285 a potential confusion.
5286 Simplify one conditional expression, as the first part is now
5287 necessarily true.
5288 ada_is_array_descriptor => ada_is_array_descriptor_type
5289 Add check for arrays for null records, and print them by hand.
4c4b4cd2 5290
f65f91b5
JB
52912004-06-01 Jim Blandy <jimb@redhat.com>
5292
5293 * ppc-tdep.h: Delete unused 'regoff' member.
5294 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
5295
d4687fa0
MC
52962004-06-01 Michael Chastain <mec.gnu@mindspring.com>
5297
5298 Fix PR symtab/1661.
5299 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
5300 (hpread_read_struct_type): Likewise.
5301
de169ec9
AC
53022004-06-01 Andrew Cagney <cagney@gnu.org>
5303
c6902d46
AC
5304 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
5305 instead of xasprintf.
5306 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
5307 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
5308 (mi_cmd_data_list_register_names)
5309 (mi_cmd_data_list_changed_registers)
5310 (mi_cmd_data_list_register_values)
5311 (get_register, mi_cmd_data_write_register_values)
5312 (mi_cmd_data_write_register_values)
5313 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
5314 (mi_cmd_target_download, mi_cmd_target_select)
5315 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
5316 (mi_execute_cli_command, mi_execute_async_cli_command)
5317 (mi_execute_async_cli_command): Ditto.
5318 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
5319 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
5320
6085fc2d
AC
5321 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
5322 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
5323 error_last_message instead of mi_error_last_message.
5324 * mi/mi-main.c (mi_error_last_message): Delete function.
5325
de169ec9
AC
5326 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
5327 "invalid number of columns" error. Delete redundant "out of
5328 memory" check.
5329
1fc7d519
MK
53302004-05-31 Mark Kettenis <kettenis@gnu.org>
5331
6cfb2041
MK
5332 * i386bsd-nat.c: Don't include <sys/procfs.h>.
5333 (gregset_t, fpregset_t): Remove typedefs.
5334 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
5335 (REG_OFFSET): Rename argument.
5336 (i386bsd_r_reg_offset): Rename from reg_offset.
5337 (REG_ADDR): Remove macro.
5338 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
5339 functions.
5340 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
5341 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
5342 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
5343 instead of supply_gregset.
5344 (store_inferior_registers): Use `struct reg' and `struct fpreg'
5345 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
5346 instead of fill_gregset.
5347 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
5348
1fc7d519
MK
5349 * i386bsd-nat.c: Don't include "gregset.h".
5350 (supply_gregset, fill_gregset): Make static.
5351 (supply_fpregset, fill_fpregset): Remove.
5352 * Makefile.in (i386bsd-nat.o): Update dependencies.
5353
2c34abbe
MK
53542004-05-30 Mark Kettenis <kettenis@gnu.org>
5355
448724fb
MK
5356 * fbsd-proc.c: Include "regcache.h", "regset.h" and
5357 "gdb_assert.h". Con't include "gregset.h".
5358 (fbsd_make_corefile_notes): Use regset-based core file support
5359 instead off fill_gregset and fill_fpregset.
5360 * Makefile.in (fbsd-proc.o): Update dependencies.
5361
5ca8ca7c
MK
5362 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
5363 instructions.
5364 (m88k_frame_prev_register): Simplify code a bit.
5365
593adc23
MK
5366 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
5367 (amd64_collect_fpregset): New function.
5368 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
5369
8d1b517b
MK
5370 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
5371
7fdafb5a
MK
5372 * i386-tdep.c (i386_supply_gregset): Adjust comment.
5373 (i386_collect_gregset): New function.
5374 (i386_supply_fpregset): Adjust comment.
5375 (i386_collect_fpregset): New function.
5376 (i386_regset_from_core_section): Use i386_collect_gregset and
5377 i386_collect_fpregset.
5378
8693c419
MK
5379 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
5380 handle VALUEP being null.
5381
2c34abbe
MK
5382 * regset.h (collect_regset_ftype): Unconstify fourth argument.
5383
45d134d8
MK
53842004-05-29 Mark Kettenis <kettenis@gnu.org>
5385
1698f4e7
MK
5386 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
5387
45d134d8
MK
5388 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
5389 assembler in OpenBSD 3.5-current.
5390 (amd64obsd_sigcontext_addr): Likewise.
5391
691d145a
JB
53922004-05-28 Jim Blandy <jimb@redhat.com>
5393
5394 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
5395 register set, so our regcache isn't declared "legacy" and our E500
5396 pseudoregister read and write functions aren't ignored.
5397 (rs6000_register_byte, rs6000_register_raw_size,
5398 rs6000_register_virtual_type, rs6000_register_convertible,
5399 rs6000_register_convert_to_virtual,
5400 rs6000_register_convert_to_raw): Deleted.
5401 (rs6000_register_type, rs6000_convert_register_p,
5402 rs6000_register_to_value, rs6000_value_to_register): New
5403 functions.
5404 (rs6000_gdbarch_init): Don't register
5405 gdbarch_deprecated_register_size,
5406 gdbarch_deprecated_register_bytes,
5407 gdbarch_deprecated_register_byte,
5408 gdbarch_deprecated_register_raw_size,
5409 gdbarch_deprecated_register_virtual_type,
5410 gdbarch_deprecated_register_convertible,
5411 gdbarch_deprecated_register_convert_to_virtual, or
5412 gdbarch_deprecated_register_convert_to_raw methods. Instead,
5413 register gdbarch_register_type, gdbarch_convert_register_p,
5414 gdbarch_register_to_value, and gdbarch_value_to_register methods.
5415
18ed0c4e
JB
54162004-05-26 Jim Blandy <jimb@redhat.com>
5417
5418 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
5419 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
5420 functions, updated to match the register numberings used in GCC.
5421 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
5422 rs6000_dwarf2_reg_to_regnum as register number conversions
5423 functions for STABS and Dwarf2.
5424
779af9e3
RC
54252004-05-26 Randolph Chung <tausq@debian.org>
5426
5427 * infttrace.h (target_waitkind): Forward declare type instead of pulling
5428 in header file.
5429
c23968a2
JB
54302004-05-25 Joel Brobecker <brobecker@gnat.com>
5431
5432 * NEWS: Document new "start" command.
5433
3a7d1c27
RC
54342004-05-25 Randolph Chung <tausq@debian.org>
5435
5436 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
5437 hppa-linux.
5438
43613416
RC
54392004-05-25 Randolph Chung <tausq@debian.org>
5440
5441 * hppa-hpux-tdep.c (offsetof): Define.
5442 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
5443 (hppa32_hpux_frame_base_before_sigtramp)
5444 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
5445 (hppa64_hpux_frame_saved_pc_in_sigtramp)
5446 (hppa64_hpux_frame_base_before_sigtramp)
5447 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
5448 functions.
5449 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
5450 (hppa_hpux_sigtramp_frame_unwind_cache)
5451 (hppa_hpux_sigtramp_frame_this_id)
5452 (hppa_hpux_sigtramp_frame_prev_register)
5453 (hppa_hpux_sigtramp_frame_unwind)
5454 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
5455 (hppa_hpux_init_abi): Register sigtramp unwinder.
5456 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
5457
6d1be3f1
RC
54582004-05-25 Randolph Chung <tausq@debian.org>
5459
5460 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
5461 and multiple stack unwinds.
5462 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
5463
97c34f65
AC
54642004-05-25 Andrew Cagney <cagney@gnu.org>
5465
5466 * symfile.h (symbol_file_add_from_memory): Delete declaration.
5467 * symfile-mem.h: Delete file.
5468 * symfile-mem.c: Do not include "symfile-mem.h".
5469 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
5470 "struct bfd_section". When an error do not bother returning NULL.
5471 (add_symbol_file_from_memory_command): Use "struct bfd" and
5472 "struct bfd_section".
5473 * Makefile.in (symfile_mem_h): Delete.
5474 (symfile-mem.o): Update dependencies.
5475
e23cbd82
NR
54762004-05-25 Nick Roberts <nickrob@gnu.org>
5477
5478 * gdb-mi.el: New file.
5479
20d2ca3e
AC
54802004-05-25 Andrew Cagney <cagney@gnu.org>
5481
5482 * inftarg.c: Include "observer.h".
5483 (child_attach, child_create_inferior): Notify inferior_created.
5484 * corelow.c: Include "observer.h".
5485 (core_open): Notify inferior_created.
5486 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
5487
c27cda74
AC
54882004-05-25 Andrew Cagney <cagney@gnu.org>
5489
5490 * target.h (struct target_ops): Add from_tty to
5491 to_create_inferior.
5492 (target_create_inferior, find_default_create_inferior): Update.
5493 * infcmd.c (run_command): Update.
5494 * wince.c (child_create_inferior): Update.
5495 * win32-nat.c (child_create_inferior): Update.
5496 * uw-thread.c (uw_thread_create_inferior): Update.
5497 * thread-db.c (thread_db_create_inferior): Update.
5498 * target.c (debug_to_create_inferior)
5499 (find_default_create_inferior): Update.
5500 (maybe_kill_then_create_inferior): Update.
5501 * sol-thread.c (sol_thread_create_inferior): Update.
5502 * remote.c (extended_remote_async_create_inferior)
5503 (extended_remote_create_inferior): Update.
5504 * remote-vx.c (vx_create_inferior): Update.
5505 * remote-st.c (st2000_create_inferior): Update.
5506 * remote-sim.c (gdbsim_create_inferior): Update.
5507 * remote-sds.c (sds_create_inferior): Update.
5508 * remote-rdp.c (remote_rdp_create_inferior): Update.
5509 * remote-rdi.c (arm_rdi_create_inferior): Update.
5510 * remote-m32r-sdi.c (m32r_create_inferior): Update.
5511 * remote-e7000.c (e7000_create_inferior): Update.
5512 * procfs.c (procfs_create_inferior): Update.
5513 * ocd.c (ocd_create_inferior): Update.
5514 * ocd.h (ocd_create_inferior): Update.
5515 * nto-procfs.c (procfs_create_inferior): Update.
5516 * monitor.c (monitor_create_inferior): Update.
5517 * lin-lwp.c (lin_lwp_create_inferior): Update.
5518 * inftarg.c (child_create_inferior): Update.
5519 * hpux-thread.c (hpux_thread_create_inferior): Update.
5520 * gnu-nat.c (gnu_create_inferior): Update.
5521
1db2a798
AC
55222004-05-25 Andrew Cagney <cagney@gnu.com>
5523
5524 * MAINTAINERS: Update e-mail address.
5525
007d08bb
RC
55262004-05-24 Randolph Chung <tausq@debian.org>
5527
5528 * thread.c (info_threads_command, thread_apply_all_command)
5529 (thread_apply_command, thread_command, do_captured_thread_select):
5530 Remove HPUXHPPA-specific code.
5531
69e7b95e
RC
55322004-05-24 Randolph Chung <tausq@debian.org>
5533
5534 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
5535 unused symbols.
5536 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
5537 references.
5538
a4d5f2e0
JB
55392004-05-24 Joel Brobecker <brobecker@gnat.com>
5540
5541 * infcmd.c (kill_if_already_running): New function, extracted
5542 from run_command().
5543 (run_command): Replace extracted code by call to
5544 kill_if_already_running().
5545 (start_command): New function.
5546 (_initialize_infcmd): Add "start" command.
5547
bf2ca189
MK
55482004-05-24 Mark Kettenis <kettenis@gnu.org>
5549
5550 Add OpenBSD/m88k support.
5551 * NEWS (New native configurations): Mention OpenBSD/m88k.
5552 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
5553 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
5554 * Makefile.in (m88k_tdep_h): New variable.
5555 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
5556 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
5557 * configure.host: Add m88*-*-openbsd*.
5558 * configure.tgt: Add m88*-*-openbsd*.
5559
80fadb11
JB
55602004-05-24 Jim Blandy <jimb@redhat.com>
5561
5562 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
5563 to approve changes.
5564
19e2d14b
KB
55652004-05-24 Kevin Buettner <kevinb@redhat.com>
5566
5567 * symtab.c (fixup_section): Search section table when lookup by
5568 name fails.
5569
1b07b470
RC
55702004-05-24 Randolph Chung <tausq@debian.org>
5571
5572 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
5573 be "small_struct".
5574
368702b1
MK
55752004-05-24 Mark Kettenis <kettenis@gnu.org>
5576
5df97fde
MK
5577 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
5578 register number in regcache_raw_collect call.
5579 (m68kbsd_collect_fpregset): Likewise.
5580 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
5581
368702b1
MK
5582 * regset.h (struct regset): Add back `regset' member.
5583
a770d4ec
MK
55842004-05-23 Mark Kettenis <kettenis@gnu.org>
5585
70f9f479
MK
5586 * configure.in: Check for td_pcb in `struct thread'.
5587 * configure, config.in: Regenerated.
5588
2e16d79e
MK
5589 * dpx2-nat.c: Remove file.
5590 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
5591 (dpx2-nat.o): Remove dependencies.
5592
492cf391
MK
5593 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
5594 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
5595 (amd64obsd_supply_pcb): New function.
5596 (_initialize_amd64obsd_nat): Enable libkvm interface.
5597 * Makefile.in (amd64obsd-nat.o): Update dependencies.
5598 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
5599 (LOADLIBES): New variable.
5600
a770d4ec
MK
5601 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
5602 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
5603 (sparc32nbsd_supply_pcb): New function.
5604 (_initialize_sparcnbsd_nat): Enable libkvm interface.
5605 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
5606 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5607 (LOADLIBES): New variable.
5608
9ea75c57
MK
56092004-05-22 Mark Kettenis <kettenis@gnu.org>
5610
2e0c3539
MK
5611 * bsd-kvm.c, bsd-kvm.h: New files.
5612 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5613 "bsd-kvm.h".
5614 (i386fbsd_supply_pcb): New function.
5615 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
5616 (i386fbsd-nat.o): Update dependencies.
5617 (bsd_kvm_h): New variable.
5618 (bsd-kvm.o): New dependency.
5619 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
5620 (LOADLIBES): New variable.
5621
9ea75c57
MK
5622 * regset.c: Tweak comment.
5623 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
5624 macro.
5625 * regset.h: Update copyright year.
5626 (struct regset): Remove `descr' member, add `gdbarch' member.
5627 (regset_alloc): Adjust prototype and comment.
5628 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
5629 (i386_supply_fpregset): Likewise.
5630 (i386_regset_from_core_section): Update call to regset_alloc.
5631 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
5632 REGSET->arch.
5633 (i386obsd_aout_regset_from_core_section): Update call to
5634 regset_alloc.
5635 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
5636 REGSET->arch.
5637 (i386nbsd_aout_regset_from_core_section): Update call to
5638 regset_alloc.
5639 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
5640 REGSET->arch.
5641 (amd64_regset_from_core_section): Update call to regset_alloc.
5642 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
5643 REGSET->arch.
5644 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
5645 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
5646 &sparc32nbsd_gregset in sparc32_supply_gregset call.
5647 (sparc32nbsd_init_abi): Update call to regset_alloc.
5648 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
5649 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
5650 (sparc64obsd_init_abi): Update call to regset_alloc.
5651 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
5652 &sparc64nbsd_gregset in sparc64_supply_gregset call.
5653 (sparc64nbsd_init_abi): Update call to regset_alloc.
5654 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
5655 &sparc64fbsd_gregset in sparc64_supply_gregset call.
5656 (sparc64fbsd_init_abi): Update call to regset_alloc.
5657
867e2dc5
JB
56582004-05-22 Jim Blandy <jimb@redhat.com>
5659
5660 * ppc-tdep.h (spe_register_p): New declaration.
5661 (struct gdbarch_tdep): New members: ppc_acc_regnum and
5662 ppc_spefscr_regnum.
5663 * rs6000-tdep.c (spe_register_p): New function.
5664 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
5665 spefscr.
5666 (rs6000_gdbarch_init): Initialize the new members of the tdep
5667 structure.
5668
617a4cba
JB
56692004-05-21 Jim Blandy <jimb@redhat.com>
5670
0397dee1
JB
5671 * ppc-linux-nat.c (fetch_register): Move code back to be next
5672 to the comment that describes it. (Moved code, instead of
5673 comment, for symmetry with store_register.)
5674
617a4cba
JB
5675 Allocate regset structures in the gdbarch's obstack, not using
5676 xmalloc.
5677 * regset.c (regset_alloc): Renamed from regset_xmalloc.
5678 Add 'arch' argument. Allocate the regset on arch's obstack, not
5679 using xmalloc.
5680 * regset.h (regset_alloc): Update declaration.
5681 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
5682 gdbarch argument.
5683 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5684 * i386-tdep.c (i386_regset_from_core_section): Same.
5685 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5686 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5687 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5688 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5689 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5690 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5691
9aa3914d
JB
56922004-05-21 Joel Brobecker <brobecker@gnat.com>
5693
5694 * config/djgpp/fnchange.lst: Undo previous change, was useless.
5695
99c87dab
JB
56962004-05-21 Jim Blandy <jimb@redhat.com>
5697
5698 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
5699 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
5700
c2b6b4aa
JB
57012004-05-20 Jim Blandy <jimb@redhat.com>
5702
5703 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
5704
144529d0
MK
57052004-05-20 Mark Kettenis <kettenis@gnu.org>
5706
5707 * regset.h: Make prototype const-correct.
5708 * regset.c (regset_xmalloc): Make const-correct.
5709
4725b721
PH
57102004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
5711
5712 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
5713 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
5714 (symbol_search_name): Declare.
5715
5716 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
5717 (iter_name_next_hashed): Ditto.
5718 (iter_name_next_linear): Ditto.
5719 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
5720
5721 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
5722 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
5723 (symbol_search_name): New function.
5724
5725 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
5726
5727 * minsyms.c (build_minimal_symbol_hash_tables): Change
5728 test for adding to demangled hash table to check for difference
5729 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
5730
be07a590
JB
57312004-05-19 Jim Blandy <jimb@redhat.com>
5732
5733 Use a constructor function to create regset structures.
5734 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
5735 (struct regset): Use supply_regset_ftype. Add new
5736 'collect_regset' member.
5737 (regset_xmalloc): New declaration.
5738 * regset.c: New file.
5739 * am64-tdep.c (amd64_regset_from_core_section): Use
5740 regset_xmalloc to construct regset structures.
5741 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5742 * i386-tdep.c (i386_regset_from_core_section): Same.
5743 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5744 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5745 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5746 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5747 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5748 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5749 * Makefile.in (COMMON_OBS): Add regset.o.
5750 (regset.o): New rule.
5751
604368f5
JB
57522004-05-19 Joel Brobecker <brobecker@gnat.com>
5753
5754 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
5755 and pthread_cond_wait.c.
5756
82d69f8b
JB
57572004-05-18 Jim Blandy <jimb@redhat.com>
5758
5759 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
5760 before the mach-specific switch, and then let the individual cases
5761 override the defaults, rather than leaving them uninitialized
5762 until the switch and then setting them in each case.
5763
5859efe5
RC
57642004-05-18 Randolph Chung <tausq@debian.org>
5765
5766 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
5767 millicode functions.
5768
9ca80cf8
RC
57692004-05-18 Randolph Chung <tausq@debian.org>
5770
5771 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
5772 references to dld_flags_buffer consistent.
5773
ed70ba00
RC
57742004-05-18 Randolph Chung <tausq@debian.org>
5775
5776 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
5777 it for unwinding the stack.
5778
63100632
RC
57792004-05-18 Randolph Chung <tausq@debian.org>
5780
5781 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
5782 Undefine these so we can overide them using gdbarch.
5783
090ccbb7
RC
57842004-05-18 Randolph Chung <tausq@debian.org>
5785
5786 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
5787 handling for 64-bit HPUX (elf).
5788
594706e6
DJ
57892004-05-18 Daniel Jacobowitz <dan@debian.org>
5790
5791 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
5792 constants.
5793 * amd64-tdep.c (amd64_skip_prologue): Likewise.
5794 * ia64-tdep.c (examine_prologue): Likewise.
5795 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
5796 * v850-tdep.c (v850_fix_call_dummy): Likewise.
5797
e5483145
MK
57982004-05-18 Mark Kettenis <kettenis@gnu.org>
5799
5800 * vax-tdep.c (vax_return_value): Implement
5801 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5802
caed1a45
MK
58032004-05-17 Mark Kettenis <kettenis@gnu.org>
5804
5805 * vax-tdep.c (vax_return_value): Fix typo.
5806
3c0b7db2
AC
58072004-05-17 Andrew Cagney <cagney@redhat.com>
5808
5aae53e5
AC
5809 * MAINTAINERS: Mark Salter was also responsible for
5810 testsuite/config/
5811
3c0b7db2
AC
5812 * NEWS: Mention signal fixes.
5813
22b0923d
RC
58142004-05-17 Randolph Chung <tausq@debian.org>
5815
5816 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
5817 check to see if we are unwinding an export stub. Export stubs clobber
5818 the %rp in the call path and stores the original rp in a stack slot.
5819
22f2b2f3
JB
58202004-05-17 Jim Blandy <jimb@redhat.com>
5821
5822 * MAINTAINERS: Update address for J.T. Conklin.
5823
cea96d64
RC
58242004-05-17 Randolph Chung <tausq@debian.org>
5825
5826 * hppa-tdep.c: Remove superfluous #include's.
5827 * Makefile.in (hppa-tdep.o): Update dependencies.
5828
f08f6a4a
RC
58292004-05-17 Randolph Chung <tausq@debian.org>
5830
5831 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
5832 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
5833 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
5834 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
5835 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
5836 Remove static function declarations.
5837
51da707a
MK
58382004-05-17 Mark Kettenis <kettenis@gnu.org>
5839
caed1a45
MK
5840 * alphabsd-nat.c: Update copyright year.
5841 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
5842
c0c2b0db
MK
5843 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
5844 and M68K_A2_REGNUM.
5845
51da707a
MK
5846 * m68k-tdep.c (m68k_svr4_return_value): Implement
5847 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5848
8d027a04
MK
58492004-05-16 Mark Kettenis <kettenis@gnu.org>
5850
5851 * sol-thread.c Update copyright year. Fix various coding
5852 standards violations. Tweak a few comments.
5853 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
5854 Delete prototypes.
5855
0d99fdb9
RC
58562004-05-15 Randolph Chung <tausq@debian.org>
5857
5858 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
5859 as pointer instead of array reference since HPUX compiler does
5860 not accept unsized array arguments.
5861 * somsolib.c (dld_flags_buffer): Use constant array size.
5862
f7e3843a
MK
58632004-05-15 Mark Kettenis <kettenis@gnu.org>
5864
0fe85704
MK
5865 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
5866 offset with decimal offset.
5867 (amd64obsd_sigcontext_addr): Return correct address for entire
5868 signal trampoline.
5869
a54f9a00
MK
5870 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
5871 instead of get_frame_base.
5872
feae6502
MK
5873 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
5874 (fill_gregset): Use regcache_raw_collect.
5875
0382d099
MK
5876 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
5877 ppcobsd-tdep.c.
5878
f7e3843a
MK
5879 * config/sparc/tm-nbsd64.h: Remove file.
5880 * config/tm-sunos.h: Remove file.
5881
773df3e5
JB
58822004-05-15 Joel Brobecker <brobecker@gnat.com>
5883
5884 * rs6000-tdep.c (store_param_on_stack_p): New function,
5885 an improved version of some code extracted from skip_prologue().
5886 (skip_prologue): Use store_param_on_stack_p() to detect
5887 instructions saving a parameter on the stack. Detect when r0
5888 is used to save a parameter.
5889 Do not mark "li rx, SIMM" instructions as part of the prologue,
5890 unless the following instruction is also part of the prologue.
5891
95918acb
AC
58922004-05-14 Andrew Cagney <cagney@redhat.com>
5893
06f32659
AC
5894 * infrun.c (handle_inferior_event): Simplify
5895 STEP_OVER_UNDEBUGGABLE.
5896
95918acb
AC
5897 * infrun.c (handle_step_into_function): Delete function.
5898 (handle_inferior_event): Inline calls to
5899 handle_step_into_function.
5900
40711ff1 59012004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
5902
5903 * rs6000-nat.c: Fix a comment.
5904
02f60eae
JB
59052004-05-12 David Anderson <davea@sgi.com>
5906
5907 Committed by Jim Blandy <jimb@redhat.com>:
5908 * regcache.c (struct regcache_descr): fix comment spelling.
5909
552e377b
JB
59102004-05-13 J. Brobecker <brobecker@gnat.com>
5911
5912 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
5913 Fixes a link link failure.
5914
349766b2
JB
59152004-05-13 J. Brobecker <brobecker@gnat.com>
5916
5917 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
5918 error that was causing the build to fail.
5919
0d4d5484
JB
59202004-05-13 J. Brobecker <brobecker@gnat.com>
5921
5922 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
5923 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
5924
0b30808c
AC
59252004-05-13 Andrew Cagney <cagney@redhat.com>
5926
5927 * infrun.c (handle_inferior_event): Check for
5928 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
5929 calls. Update comments.
5930
cdf2c5f5
JB
59312004-05-13 Jim Blandy <jimb@redhat.com>
5932
063715bf
JB
5933 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
5934 (fetch_regs_user_thread, fetch_regs_kernel_thread)
5935 (store_regs_user_thread, store_regs_kernel_thread): Use
5936 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
5937 * ppc-linux-nat.c (fill_gregset): Same.
5938 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
5939 (ppc_linux_sigtramp_cache): Same.
5940 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
5941 (ppcnbsd_sigtramp_cache_init): Same.
5942 * rs6000-nat.c (fetch_core_registers): Same.
5943 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
5944 (rs6000_frame_cache): Same.
5945
cdf2c5f5
JB
5946 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
5947 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
5948 of assuming that the gprs are numbered starting with zero.
5949 * ppc-linux-nat.c (fill_gregset): Same.
5950 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
5951 * ppcnbsd-nat.c (getregs_supplies): Same.
5952 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
5953 * rs6000-nat.c (fetch_core_registers): Same.
5954 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
5955
450bd37b
MS
59562004-05-07 Michael Snyder <msnyder@redhat.com>
5957
5958 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
5959 LOC_COMPUTED_ARG, and LOC_INDIRECT.
5960
4a72a2a6
AC
59612004-05-13 Andrew Cagney <cagney@redhat.com>
5962
5963 * infrun.c (handle_inferior_event): Use frame_unwind_id.
5964
8edfa926
BM
59652004-05-13 Bryce McKinlay <mckinlay@redhat.com>
5966
5967 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
5968 base_address for shared libraries.
5969
723e0e3d
BM
59702004-05-13 Bryce McKinlay <mckinlay@redhat.com>
5971
5972 * MAINTAINERS (write after approval): Add myself.
5973
00d4360e
UW
59742004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
5975
5976 * breakpoint.c (bpstat_stop_status): Add new argument
5977 STOPPED_BY_WATCHPOINT. Use it instead of testing
5978 target_stopped_data_address agaist 0 to check whether
5979 or not we stopped due to a hardware watchpoint.
5980 * breakpoint.h (bpstat_stop_status): Adapt prototype.
5981 * infrun.c (handle_inferior_event): Call bpstat_stop_status
5982 with new argument.
5983
ec76baa5
JB
59842004-05-12 Jim Blandy <jimb@redhat.com>
5985
5986 * configure.in: When checking whether we should use the -bbigtoc
5987 option, don't forget to restore the original value of LDFLAGS.
5988 * configure: Regenerated.
5989
f2c9ca08
AC
59902004-05-12 Andrew Cagney <cagney@redhat.com>
5991
5992 * thread.c (load_infrun_state): Delete step_sp.
5993 * infrun.c (context_switch): Ditto.
5994 * inferior.h (step_sp): Ditto.
5995 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
5996 * gdbthread.h (struct thread_info, save_infrun_state)
5997 (restore_infrun_state): Ditto.
5998
090ddb2a
UW
59992004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
6000
6001 * MAINTAINERS (write after approval): Add myself.
6002
8aad930b
AC
60032004-05-12 Andrew Cagney <cagney@redhat.com>
6004
6005 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
6006 eliminate reference to step_sp.
6007 (struct execution_control_state, init_execution_control_state)
6008 (handle_inferior_event, keep_going): Delete update_step_sp and
6009 step_sp.
6010 * infcmd.c (step_sp): Note that variable is unused.
6011
922d5ae0
AC
60122004-05-11 Andrew Cagney <cagney@redhat.com>
6013
6014 * infrun.c (step_over_function): Delete function.
6015 (handle_step_into_function): Use insert_step_resume_breakpoint.
6016 (insert_step_resume_breakpoint): Fix assertion.
6017
017c5ca5
NR
60182004-05-11 Nick Roberts <nickrob@gnu.org>
6019
6020 * utils.c (defaulted_query): Just use the normal query input type
6021 when printing the annotations.
6022
42edda50
AC
60232004-05-11 Andrew Cagney <cagney@redhat.com>
6024
6025 * infrun.c (handle_inferior_event): Simplify code handling
6026 step-into or return-from a signal trampoline.
6027
d28b44a7
AC
60282004-05-11 Andrew Cagney <cagney@redhat.com>
6029
6030 * ppcnbsd-tdep.c: Include "gdb_assert.h".
6031 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
6032
383f0f5b
JB
60332004-05-10 Jim Blandy <jimb@redhat.com>
6034
d0b57c3a
JB
6035 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
6036 with a call to internal_error.
6037
383f0f5b
JB
6038 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
6039 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
6040 processor variant lacks those registers.
6041 (ppc_floating_point_unit_p): Change description to make it clear
6042 that this returns info about the ISA, not the ABI.
6043 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
6044 return true or false by checking tdep->ppc_fp0_regnum and
6045 tdep->ppc_fpscr_regnum. The original code replicated the BFD
6046 arch/mach switching done in rs6000_gdbarch_init; it's better to
6047 keep that logic there, and just check the results here.
6048 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
6049 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
6050 floating-point registers.
6051 (ppc_supply_fpregset, ppc_collect_fpregset)
6052 (rs6000_push_dummy_call, rs6000_extract_return_value)
6053 (rs6000_store_return_value): Assert that we have floating-point
6054 registers.
6055 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
6056 (rs6000_frame_cache): Don't note the locations at which
6057 floating-point registers were saved if we have no fprs.
6058 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
6059 registers.
6060 (fetch_regs_user_thread, fetch_regs_kernel_thread)
6061 (store_regs_user_thread, store_regs_kernel_thread): Only call
6062 supply_fprs / fill_fprs if we actually have floating-point
6063 registers.
6064 (special_register_p): Check ppc_fpscr_regnum before matching
6065 against it.
6066 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
6067 supply / collect fpscr if we don't have it.
6068 * ppc-bdm.c: #include "gdb_assert.h".
6069 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
6070 have floating-point registers, since I can't test this code on
6071 FP-free systems to adapt it.
6072 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
6073 fpscr and floating point register numbers if they don't exist.
6074 (fetch_register): Assert that we have floating-point registers
6075 before we reach the code that handles them.
6076 (store_register): Same. And use tdep instead of calling
6077 gdbarch_tdep again.
6078 (fill_fpregset): Don't try to collect FP registers and fpscr if we
6079 don't have them.
6080 (ppc_linux_sigtramp_cache): Don't record the saved locations of
6081 fprs and fpscr if we don't have them.
6082 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
6083 don't have them.
6084 * ppcnbsd-nat.c: #include "gdb_assert.h".
6085 (getfpregs_supplies): Assert that we have floating-point registers.
6086 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
6087 * ppcobsd-tdep.c: #include "gdb_assert.h".
6088 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
6089 have floating-point registers.
6090 * rs6000-nat.c (regmap): Don't match against the fpscr and
6091 floating point register numbers if they don't exist.
6092 (fetch_inferior_registers, store_inferior_registers,
6093 fetch_core_registers): Only fetch / store / supply the
6094 floating-point registers and the fpscr if we have them.
6095 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
6096 (ppcobsd-tdep.o): Update dependencies.
6097
15960608
AC
60982004-05-10 Andrew Cagney <cagney@redhat.com>
6099
6100 * infrun.c (through_sigtramp_breakpoint): Delete variable.
6101 (context_switch): Do not switch through_sigtramp_breakpoint.
6102 * gdbthread.h (save_infrun_state, load_infrun_state)
6103 (struct thread_info): Delete through_sigtramp_breakpoint parameter
6104 and structure member.
6105 * thread.c (load_infrun_state, save_infrun_state): Update.
6106
5ab5aa0f
MK
61072004-05-10 Mark Kettenis <kettenis@gnu.org>
6108
6109 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
6110
da78b0e7
DJ
61112004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6112
6113 * acinclude.m4: Quote macro names being defined by AC_DEFUN
6114 throughout.
6115 * aclocal.m4: Regenerate.
6116
cca0d3b0
NW
61172004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
6118
6119 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
6120
d303a6c7
AC
61212004-05-10 Andrew Cagney <cagney@redhat.com>
6122
6123 * infrun.c (check_sigtramp2): Delete function.
6124 (handle_inferior_event): When single stepping, and taking a
6125 signal, set a breakpoint at the signal return address. Delete
6126 redundant calls to check_sigtramp2.
6127 (insert_step_resume_breakpoint): New function.
6128 (through_sigtramp_breakpoint, handle_inferior_event)
6129 (follow_exec, wait_for_inferior, fetch_inferior_event)
6130 (currently_stepping, keep_going): Delete most uses of
6131 through_sigtramp_breakpoint, not that it should be deleted.
6132 (delete_breakpoint_current_contents): Delete function.
6133
03f4cc20
RC
61342004-05-10 Randolph Chung <tausq@debian.org>
6135
6136 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
6137 target.
6138 * config/pa/tm-linux.h: New file.
6139
37fc812e
DJ
61402004-05-10 Daniel Jacobowitz <drow@mvista.com>
6141
6142 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
6143 of prefixes. Don't print the prefix twice in the CLI.
6144
26c0b942
JB
61452004-05-10 Jim Blandy <jimb@redhat.com>
6146
2e56e9c1
JB
6147 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
6148 collect all the gprs.
6149
26c0b942
JB
6150 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
6151 loop collecting gprs.
6152
dc497459
AC
61532004-05-09 Andrew Cagney <cagney@redhat.com>
6154
6155 * remote-vx.c (net_step): Delete step-range code.
6156 * remote.c (remote_resume, init_all_packet_configs)
6157 (set_remote_protocol_E_packet_cmd)
6158 (show_remote_protocol_E_packet_cmd)
6159 (remote_protocol_E, show_remote_cmd, _initialize_remote)
6160 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
6161 (show_remote_protocol_e_packet_cmd): Ditto.
6162
0543f387
MK
61632004-05-09 Mark Kettenis <kettenis@gnu.org>
6164
c481d1ca
MK
6165 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
6166
f626a069
MK
6167 * hppa-tdep.h: Update copyright year.
6168 (struct trad_frame_saved_reg): Add opaque declaration.
6169
6fa57a7d
MK
6170 * amd64-tdep.c (amd64_return_value): Implement
6171 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6172
e47577ab
MK
6173 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
6174 (m68k_value_to_register): New functions.
6175 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
6176 value_to_register.
6177
31db7b6c
MK
6178 * defs.h (enum return_value_convention): Add
6179 RETURN_VALUE_ABI_RETURNS_ADDRESS and
6180 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
6181 * infcmd.c (legacy_return_value): New function.
6182 (print_return_value): Rwerite to implement
6183 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6184 * values.c (using_struct_return): Check for inequality to
6185 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
6186 RETURN_VALUE_STRUCT_CONVENTION.
6187 * i386-tdep.c (i386_return_value): Implement
6188 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6189
0543f387
MK
6190 * vax-tdep.c: Tweak comments. Reorder include files. Don't
6191 include "symtab.h", "opcode/vax.h" and "inferior.h".
6192 (vax_skip_prologue): Replace calls to read_memory_integer by calls
6193 to read_memory_unsigned_integer.
6194 (vax_gdbarch_init): Reorder.
6195 (_initialize_vax_tdep): Spell out prototype.
6196 * Makefile.in (vax-tdep.o): Update dependencies.
6197
0c93b7b6
AC
61982004-05-08 Andrew Cagney <cagney@redhat.com>
6199
e6b55ae2
AC
6200 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
6201 * target.c (target_detach, target_disconnect): Ditto.
6202
1ac839b8
AC
6203 * infcall.c (call_function_by_hand): When no
6204 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
6205 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
6206 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
6207 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6208 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6209
28954179
AC
6210 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
6211 * gdbarch.h, gdbarch.c: Re-generate.
6212 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6213 deprecated_fix_call_dummy.
6214 * v850-tdep.c (v850_gdbarch_init): Ditto.
6215 * infcall.c (call_function_by_hand): Do not call
6216 DEPRECATED_FIX_CALL_DUMMY.
6217
434b87dd
AC
6218 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
6219 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
6220 * gdbarch.h, gdbarch.c: Re-generate.
6221 * arm-linux-tdep.c (arm_linux_call_dummy_words)
6222 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
6223 deprecated_sizeof_call_dummy_words.
6224 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
6225 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6226 * v850-tdep.c (v850_gdbarch_init): Ditto.
6227 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
6228 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
6229 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6230 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6231 * arch-utils.h (legacy_call_dummy_words)
6232 (legacy_sizeof_call_dummy_words): Delete declarations.
6233 * arch-utils.c (legacy_call_dummy_words)
6234 (legacy_sizeof_call_dummy_words): Delete variables.
6235
58d28df8
AC
6236 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
6237 * gdbarch.h, gdbarch.c: Re-generate.
6238 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
6239 * infcall.c (call_function_by_hand): Eliminate call to
6240 DEPRECATED_PUSH_DUMMY_FRAME.
6241 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6242 push_dummy_frame.
6243 (ns32k_push_dummy_frame): Delete function.
6244
e4a2df64
AC
6245 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6246 deprecated_call_dummy_breakpoint_offset or
6247 deprecated_call_dummy_start_offset.
6248 * dummy-frame.c, arm-tdep.c: Update comments.
6249 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
6250 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
6251 * gdbarch.h, gdbarch.c: Re-generate.
6252
d3712828
AC
6253 * infcall.c (legacy_push_dummy_code): Delete function.
6254 (push_dummy_code): Delete call.
6255
7a882905
AC
6256 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
6257 * gdbarch.h, gdbarch.c: Re-generate.
6258 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
6259 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
6260 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
6261 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
6262
0ec5872b
AC
6263 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
6264 (struct frame_info): Delete opaque declaration.
6265 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
6266 * frame.c (get_frame_type): Delete call.
6267
0c93b7b6
AC
6268 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6269 pc_in_call_dummy.
6270 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
6271 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
6272
75536971
MK
62732004-05-08 Mark Kettenis <kettenis@gnu.org>
6274
527ca6bb
MK
6275 * alphanbsd-tdep.c: Include "gdb_string.h".
6276 * armnbsd-tdep.c: Update copyright year.
6277 Include "gdb_string.h".
6278 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
6279 dependencies.
6280
d39fdc61
MK
6281 * delta68-nat.c: Remove file.
6282 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
6283 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
6284 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
6285 (delta68-nat.o): Remove dependency.
6286
75536971
MK
6287 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
6288 function.
6289 (m68k_gdbarch_init): Don't set
6290 deprecated_frameless_function_invocation.
6291
f4ca1d1f
RC
62922004-05-07 Randolph Chung <tausq@debian.org>
6293
6294 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
6295 read_memory_nobpt for code reading when doing frame unwinding.
6296 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
6297
2f0e8c7a
RC
62982004-05-07 Randolph Chung <tausq@debian.org>
6299
6300 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
6301 instead of sp, handle sigaltstack case.
6302 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
6303 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
6304 signal handler and not that of the caller.
6305 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
6306 hppa_linux_sigtramp_find_sigcontext.
6307
959464ff
RC
63082004-05-07 Randolph Chung <tausq@debian.org>
6309
6310 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
6311 hppa-linux-nat.c.
6312 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
6313 * hppa-linux-nat.c (fetch_register, store_register): Define.
6314 (fetch_inferior_registers, store_inferior_registers): Define.
6315 (supply_gregset): Add comment and clean up some unneeded code.
6316 (fill_gregset): Add comment and fix so that it saves registers in
6317 the right place in the gregset.
6318 (fill_fpregset): Fix buffer overrun problem.
6319 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
6320
0da28f8a
RC
63212004-05-07 Randolph Chung <tausq@debian.org>
6322
6323 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
6324 do common handling of the pcoqt register.
6325 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
6326 to use helper function.
6327 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
6328 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
6329 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
6330 generic fallback unwinder when all else fails.
6331 (hppa_gdbarch_init): Add fallback sniffer.
6332 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
6333 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
6334 to use helper function.
6335
b9ec757a
JB
63362004-05-08 Joel Brobecker <brobecker@gnat.com>
6337
6338 * config/djgpp/fnchange.lst: Add translation rules for
6339 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
6340
756e95f1
MK
63412004-05-08 Mark Kettenis <kettenis@gnu.org>
6342
6343 * frame.c (get_prev_frame_1): Work around GCC bug.
6344 * frame.h: Add comment about GCC bug.
6345
2b4855ab
AC
63462004-05-07 Andrew Cagney <cagney@redhat.com>
6347
6348 * observer.c: Include "commands.h" and "gdbcmd.h".
6349 (observer_debug, _initialize_observer): Add the
6350 command "set/show debug observer".
6351 * observer.sh: When observer debugging, log notify calls.
6352 * Makefile.in (observer.o): Update dependencies.
6353
ba3e8e46
JM
63542004-05-07 Jason Molenda (jmolenda@apple.com)
6355
6356 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
6357
16796152
JB
63582004-05-07 Jim Blandy <jimb@redhat.com>
6359
daf6dc85
JB
6360 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
6361 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
6362 to recognize gpr regnums, instead of assuming that
6363 tdep->ppc_fp0_regnum marks the end of the general-purpose
6364 registers.
6365
16796152
JB
6366 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
6367 the given architecture has floating-point registers.
6368
c69b8bfc
AC
63692004-05-07 Andrew Cagney <cagney@redhat.com>
6370
6371 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
6372 macro defined to 1.
6373 * gdbarch.h, gdbarch.c: Re-generate.
6374 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6375 deprecated_use_generic_dummy_frames.
6376
7243600a
BF
63772004-05-07 Brian Ford <ford@vss.fsi.com>
6378
6379 * NEWS: Mention Cygwin DWARF 2 support.
6380
73c1e0a1
AC
63812004-05-07 Andrew Cagney <cagney@redhat.com>
6382
6383 * objfiles.h (struct entry_info): Delete unused fields
6384 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
6385 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
6386 * mipsread.c (mipscoff_symfile_read): Update.
6387 * mdebugread.c (parse_partial_symbols): Update.
6388 * dwarfread.c (read_file_scope): Update.
6389 * dwarf2read.c (read_file_scope): Update.
6390 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
6391 * coffread.c (complete_symtab): Update.
6392
1d3056ac
MK
63932004-05-07 Mark Kettenis <kettenis@gnu.org>
6394
6395 * infcall.c (_initialize_infcall): Fix typo.
6396
15170568
AC
63972004-05-07 Andrew Cagney <cagney@redhat.com>
6398
6399 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
6400 * command.h (add_setshow_zinteger_cmd): Declare.
6401
34f75cc1
RC
64022004-05-06 Randolph Chung <tausq@debian.org>
6403
6404 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
6405 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
6406 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
6407 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
6408 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
6409 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
6410 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
6411 definitions ...
6412 * hppa-tdep.h: ... to here, with HPPA_ prefix.
6413 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
6414 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
6415 (hppa64_hpux_frame_find_saved_regs_in_sig)
6416 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
6417 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
6418 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
6419 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
6420 (hppa_linux_sigtramp_frame_prev_register): Likewise.
6421 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
6422 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
6423 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
6424 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
6425 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
6426 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
6427 (hppa32_register_type, hppa_cannot_store_register)
6428 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
6429 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
6430 * hpread.c (hpread_process_one_debug_symbol): Likewise.
6431 * pa64solib.c (pa64_solib_have_load_event)
6432 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
6433 (pa64_solib_unloaded_library_pathname): Likewise.
6434 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
6435 (som_solib_library_pathname): Likewise.
6436
0a5e7efe
JI
64372004-05-05 Jim Ingham <jingham@apple.com>
6438
6439 * breakpoint.c (create_breakpoints): Copy the ignore count and
6440 thread id over from the pended breakpoint to the actual
6441 breakpoint.
6442
10a4b113
AC
64432004-05-05 Andrew Cagney <cagney@redhat.com>
6444
6445 * gdbarch.sh (PARM_BOUNDARY): Delete.
6446 gdbarch.h, gdbarch.c: Re-generate.
6447 * valops.c (PARM_BOUNDARY): Delete macro.
6448 (value_push): Delete PARM_BOUNDARY code.
6449 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
6450
366f009f
JB
64512004-05-04 Jim Blandy <jimb@redhat.com>
6452
32b99774
JB
6453 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
6454 Don't assume that the gprs, fprs, and UISA sprs are
6455 contiguous, start at register number zero, and end with fpscr.
6456 Instead, use the numbers from the tdep structure.
6457
366f009f
JB
6458 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
6459 should no longer be used in code specific to the RS6000 and its
6460 derivatives.
6461 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
6462 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
6463 tdep->ppc_fp0_regnum.
6464 (ppc_supply_fpregset, ppc_collect_fpregset)
6465 (rs6000_push_dummy_call, rs6000_extract_return_value)
6466 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
6467 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
6468 FP0_REGNUM.
6469 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
6470 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
6471 Same.
6472 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
6473 bdm_ppc_store_registers): Same.
6474 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
6475 (store_register, fill_fpregset): Same.
6476 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
6477 (ppc_linux_supply_fpregset): Same.
6478 * ppcnbsd-nat.c (getfpregs_supplies): Same.
6479 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
6480 Same.
6481 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
6482 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
6483 ppc64_sysv_abi_return_value): Same.
6484 * rs6000-nat.c (regmap, fetch_inferior_registers)
6485 (store_inferior_registers, fetch_core_registers): Same.
6486
827f338d
MK
64872004-05-01 Mark Kettenis <kettenis@gnu.org>
6488
6489 * m68knbsd-nat.c: Remove file.
6490 * m68knbsd-tdep.c: Remove file.
6491 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
6492 dependencies.
6493 * configure.host: Add m68k-*-netbsdelf*.
6494 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
6495 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
6496 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
6497 (XM_FILE): Remove.
6498 * config/m68k/nbsdelf.mh: New file.
6499 * config/m68k/nbsd.mt: New file.
6500 * config/m68k/nbsdaout.mt: Remove file.
6501 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
6502 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
6503 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
6504 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
6505 (use_struct_convention): Remove prototype.
6506 (USE_STRUCT_CONVENTION): Remove define.
6507 * config/m68k/xm-nbsd.h: Remove file.
6508
66894781
MS
65092004-05-04 Michael Snyder <msnyder@redhat.com>
6510
6511 * m68k-tdep.c (m68k_gdbarch_init): Default to using
6512 reg_struct_return method (as gcc usually does for cross targets).
6513
f0f63663
AC
65142004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6515
6516 Committed by Andrew Cagney.
6517 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
6518 alignment padding when accessing ucontext struct members.
6519
edf61169
JB
65202004-05-04 Jim Blandy <jimb@redhat.com>
6521
8bf659e8
JB
6522 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
6523 'ppc_gplast_regnum' member.
6524 (ppc_num_gprs): New enum constant.
6525 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
6526 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
6527 * rs6000-nat.c (regmap, fetch_inferior_registers,
6528 store_inferior_registers): Same.
6529 * rs6000-tdep.c (e500_pseudo_register_read)
6530 (e500_pseudo_register_write): Same.
6531 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
6532
b967e06f
JB
6533 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
6534 * ppc-tdep.h (ppc_num_fprs): New enum constant.
6535 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
6536 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
6537 FPLAST_REGNUM.
6538 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6539 Same.
6540 * ppc-linux-nat.c (ppc_register_u_addr): Same.
6541 * rs6000-nat.c (regmap, fetch_inferior_registers)
6542 (store_inferior_registers): Same.
6543
edf61169
JB
6544 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
6545 with FPLAST_REGNUM.
6546
58a9656e
JB
65472004-05-03 Joel Brobecker <brobecker@gnat.com>
6548
6549 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
6550 failure detected by recent versions of GCC.
6551 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
6552 to be consistent with the usage in dwarf2_create_include_psymtab.
6553
dc305454
MS
65542004-05-03 Michael Snyder <msnyder@redhat.com>
6555
6556 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
6557 (heuristic_proc_start): Whitespace cleanup.
6558
29972665
MK
65592004-05-04 Mark Kettenis <kettenis@gnu.org>
6560
6b57680d
MK
6561 * sun3-nat.c: Remove file.
6562 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
6563 dependencies.
6564 (ALLDEPFILES): Remove sun3-nat.c.
6565 (sun3-nat.o): Remove dependencies.
6566
29972665
MK
6567 * i386-interix-nat.c, i386-interix-tdep.c,
6568 config/i386/nm-interix.h, config/i386/interix.mh,
6569 config/i386/interix.mt: Remove files.
6570 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
6571 dependencies.
6572
f595cb19
MK
65732004-05-03 Mark Kettenis <kettenis@gnu.org>
6574
6575 * m68k-tdep.h (struct gdbarch_tdep): Add member
6576 struct_value_regnum.
6577 (m68k_svr4_init_abi): New prototype.
6578 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
6579 different calling conventions.
6580 (m68k_extract_return_value): Remove code dealing with single-field
6581 structs.
6582 (m68k_store_return_value): Remove code dealing with single-field
6583 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
6584 (m68k_extract_struct_value_address): Remove function.
6585 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
6586 (m68k_reg_struct_return_p, m68k_return_value)
6587 (m68k_svr4_return_value): New functions.
6588 (m68k_use_struct_convention): Remove function.
6589 (m68k_push_dummy_call): Use new struct_value_regnum member of
6590 `struct gdbarch_tdep' instead of hardcoded register number to
6591 store STRUCT_ADDR.
6592 (m68k_svr4_init_abi): New function.
6593 (m68k_gdbarch_init): Don't set extract_return_value,
6594 store_return_values, deprecated_extract_struct_value_address and
6595 use_struct_convention. Set return_value instead. Initialize new
6596 struct_value_regnum member of `struct gdbarch_tdep'.
6597 * m68klinux-tdep.c: Update copyright year.
6598 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
6599 (m68k_linux_extract_struct_value_address): Remove function.
6600 (m68k_linux_init_abi): Don't set extract_return_value,
6601 store_return_values, deprecated_extract_struct_value_address and
6602 use_struct_convention. Call m68k_svr4_init_abi but override the
6603 new struct_value_regnum member of `struct gdbarch_tdep'.
6604 * Makefile.in (m68k-tdep.o): Update dependencies.
6605
aaa75496
JB
66062004-05-03 J. Brobecker <brobecker@gnat.com>
6607
6608 * dwarf2read.c (line_header): Add new included_p field in
6609 field file_names.
6610 (partial_die_info): New field has_stmt_list. New field line_offset.
6611 (dwarf2_create_include_psymtab): New function.
6612 (dwarf2_build_include_psymtabs): New function.
6613 (add_file_name): Add forward declaration. Initialize new field.
6614 (dwarf_decode_lines): Add new parameter. Enhance this procedure
6615 to be able to determine the list of files included by the
6616 given unit, and build their associated psymtabs.
6617 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
6618 files as well.
6619 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
6620 (read_file_scope): Update call to dwarf_decode_lines.
6621 (read_partial_die): Handle DW_AT_stmt_list attributes.
6622
c848556f
MC
66232004-05-02 Michael Chastain <mec.gnu@mindspring.com>
6624
6625 Unfix PR gdb/1626.
6626 * configure.in: Revert special case for osf5.*.
6627 * configure: Regenerate.
6628
eb4556d7
JB
66292004-05-02 Jim Blandy <jimb@redhat.com>
6630
6631 Move the symbol-file-from-memory functions into their own file.
6632 * symfile-mem.c, symfile-mem.h: New files.
6633 * symfile.c (symbol_file_add_from_bfd): New function.
6634 (symbol_file_add): Call symbol_file_add_from_bfd.
6635 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
6636 Moved to symfile-mem.c.
6637 (_initialize_symfile): Move definition of
6638 add-symbol-file-from-memory command to symfile-mem.c.
6639 * symfile.h (symbol_file_add_from_bfd): New declaration.
6640 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
6641 * config/powerpc/linux.mt (TDEPFILES): Same.
6642 * Makefile.in (SFILES): Add symfile-mem.c.
6643 (symfile_mem_h): New variable.
6644 (HFILES_NO_SRCDIR): Add symfile-mem.h.
6645 (symfile-mem.o): New rule.
6646
80bb239e
AC
66472004-05-01 Andrew Cagney <cagney@redhat.com>
6648
7789d0fa
AC
6649 * breakpoint.c (insert_bp_location): Use get_frame_id, and
6650 frame_find_by_id instead of frame_relative_level.
6651 (do_enable_breakpoint): Ditto.
6652 * thread.c: Update copyright.
6653 (info_threads_command): Ditto, simplify.
6654
80bb239e
AC
6655 * frame.c (deprecated_generic_get_saved_register): Delete
6656 function, moved to "xstormy16-tdep.c".
6657 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
6658 deprecated_generic_get_saved_register from "frame.c".
6659 (xstormy16_frame_saved_register): Call
6660 xstormy16_get_saved_register.
6661 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
6662 static.
6663 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
6664 * frame.h (deprecated_generic_get_saved_register): Delete.
6665
b2a871dd
MC
66662004-05-01 Michael Chastain <mec.gnu@mindspring.com>
6667
6668 * dwarfread.c: Update documentation on the state of dwarf-1.
6669
0e100dab
AC
66702004-05-01 Andrew Cagney <cagney@redhat.com>
6671
acd8056e
AC
6672 * stack.c (select_frame_command): Delete call to
6673 frame_relative_level.
6674 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
6675 Delete #if0 code.
6676 (frame_info): Do not print FRAMELESS.
6677 (print_block_frame_labels): Replace DEPRECATED_STREQ.
6678 (catch_info): Delete #if0 code.
6679
0e100dab
AC
6680 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
6681 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
6682 of frame_relative_level.
6683 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
6684 to SENTINEL_FRAME.
6685 * frame.h (enum frame_type): Add SENTINEL_FRAME.
6686 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
6687 frame_relative_level.
6688
55699d59
AC
6689 * frame.h (deprecated_set_frame_type): Delete declaration.
6690 * frame.c (deprecated_set_frame_type): Delete function, update
6691 comments.
6692
fcf70625
AC
6693 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
6694 * gdbarch.h, gdbarch.c: Re-generate.
6695 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
6696 (shnbsd_pc_in_sigtramp): Delete.
6697 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
6698 pc_in_sigtramp.
6699 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
6700 pc_in_sigtramp.
6701 * frame.h: Update comments.
6702 * ppc-linux-tdep.c: Update comments.
6703 * breakpoint.c (bpstat_what): Update comments.
6704
ac5eccb7
AC
6705 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
6706 m68klinux-tdep.o's dependencies, were previously added to
6707 m68klinux-nat.o.
6708
f2524b93
AC
6709 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
6710 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
6711 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6712 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6713 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6714
17e20bce
AC
6715 * Makefile.in (m68klinux-nat.o): Update dependencies.
6716 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6717 (m68k_linux_sigtramp_frame_cache)
6718 (m68k_linux_sigtramp_frame_this_id)
6719 (m68k_linux_sigtramp_frame_prev_register)
6720 (m68k_linux_sigtramp_frame_unwind)
6721 (m68k_linux_sigtramp_frame_sniffer)
6722 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
6723 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
6724 names, use trad-frame.h.
6725 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
6726 (struct m68k_sigtramp_info): Delete.
6727 * m68k-tdep.c (m68k_sigtramp_frame_cache)
6728 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
6729 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
6730 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
6731 "m68klinux-tdep.c".
6732
c8864fa2
AC
6733 * infrun.c (check_sigtramp2): Delete check for
6734 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
6735
511dd2cd
MK
67362004-05-01 Mark Kettenis <kettenis@gnu.org>
6737
6738 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
6739
8c6b0e06
AC
67402004-05-01 Andrew Cagney <cagney@redhat.com>
6741
9df0bb3f
AC
6742 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6743 (frv_linux_sigtramp_frame_cache)
6744 (frv_linux_sigtramp_frame_this_id)
6745 (frv_linux_sigtramp_frame_prev_register)
6746 (frv_linux_sigtramp_frame_unwind)
6747 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
6748 include "linux" in function and variable names, directly call
6749 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
6750 the latest trad-frame code.
6751 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
6752 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
6753 * Makefile.in (frv-linux-tdep.o): Update dependencies.
6754 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
6755 * frv-tdep.c (frv_sigtramp_frame_cache)
6756 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
6757 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
6758 frv-linux-tdep.c.
6759 (frv_gdbarch_init): Do not append a sigtramp sniffer.
6760 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
6761 (frv_set_sigcontext_reg_addr): Delete function.
6762
8c6b0e06
AC
6763 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
6764 (DEPRECATED_SIGTRAMP_END): Delete.
6765 * gdbarch.h, gdbarch.c: Re-generate.
6766 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
6767 * config/vax/tm-vaxbsd.h: Update copyright.
6768 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6769 (DEPRECATED_IN_SIGTRAMP): Define.
6770 * config/m68k/tm-nbsd.h: Update copyright.
6771 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6772 (DEPRECATED_IN_SIGTRAMP): Define.
6773
50ea7769
MK
67742004-05-01 Mark Kettenis <kettenis@gnu.org>
6775
03ac2a74
MK
6776 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
6777 encondings. Fixes PR gdb/1628.
6778
50ea7769
MK
6779 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
6780 DW_CFA_restore state without a matching DW_CFA_remember_state
6781 instead of aborting. Fixes PR backtrace/1589.
6782
9a5d7be1
JB
67832004-04-30 Joel Brobecker <brobecker@gnat.com>
6784
6785 * MAINTAINERS: Add self as AIX maintainer.
6786 Update my e-mail address in write-after-approval section.
6787
2593d1cd
AC
67882004-04-30 Andrew Cagney <cagney@redhat.com>
6789
ce12bbf9
AC
6790 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
6791 (legacy_get_prev_frame): Ditto.
6792
36710c63
AC
6793 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
6794 (mips_gdbarch_init): Do not set pc_in_sigtramp.
6795 * mipsread.c (sigtramp_address): Delete extern variable.
6796 (mipscoff_new_init): Delete reference.
6797 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
6798 (fixup_sigtramp): Delete function.
6799 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
6800 (fixup_sigtramp): Delete declarations.
6801
2593d1cd
AC
6802 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
6803 deprecated_pc_in_sigtramp.
6804 (ppcnbsd_pc_in_sigtramp): Delete function.
6805
2a25f91c
MK
68062004-05-01 Mark Kettenis <kettenis@gnu.org>
6807
6808 * config/m68k/nm-nbsd.h: Tweak comments.
6809 * config/m68k/nm-nbsdaout.h: Likewise.
6810
0b281939
AC
68112004-04-30 Andrew Cagney <cagney@redhat.com>
6812
6813 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
6814 legacy_pc_in_sigtramp.
6815 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
6816
8f2d3ea0
MK
68172004-05-01 Mark Kettenis <kettenis@gnu.org>
6818
6819 Add OpenBSD/m68k support.
6820 * NEWS (New native configurations): Mention OpenBSD/m68k.
6821 * m68kbsd-tdep.c: New file.
6822 * m68kbsd-nat.c: New file.
6823 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
6824 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
6825 * configure.host: Add m68k-*-openbsd.
6826 * configure.tgt: Add m68k-*-openbsd.
6827 * config/m68k/tm-obsd.h: New file.
6828 * config/m68k/obsd.mt: New file.
6829 * config/m68k/obsd.mh: New file.
6830 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
6831 m68kbsd-tdep.c.
6832
c40f49a4
AC
68332004-04-30 Andrew Cagney <cagney@redhat.com>
6834
6835 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
6836 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
6837
e81554cd
MK
68382004-04-30 Mark Kettenis <kettenis@gnu.org>
6839
6840 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
6841 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
6842
d4dc1a91
BF
68432004-04-30 Brian Ford <ford@vss.fsi.com>
6844
6845 Revert 2004-04-16 change.
6846 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
6847 (i386_coff_init_abi): Remove.
6848 * i386-tdep.h (i386_coff_init_abi): Remove.
6849 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
6850
2f72f850
AC
68512004-04-30 Andrew Cagney <cagney@redhat.com>
6852
e492f9d6
AC
6853 * blockframe.c (find_pc_partial_function): Delete use of
6854 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
6855 DEPRECATED_SIGTRAMP_END.
6856
7b7adad0
AC
6857 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
6858 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
6859 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
6860 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
6861 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
6862
2f72f850
AC
6863 * defs.h (deprecated_inside_entry_file): Delete declaration.
6864 * blockframe.c (deprecated_inside_entry_file): Delete function.
6865 (legacy_frame_chain_valid): Delete call.
6866 * sh64-tdep.c (sh64_frame_chain): Delete call.
6867 * objfiles.h: Update comments.
6868 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
6869 call.
6870 * frame.c (get_prev_frame): Delete call, update comments.
6871
283f90a7
BF
68722004-04-30 Brian Ford <ford@vss.fsi.com>
6873
6874 * MAINTAINERS (Write After Approval): Add myself.
6875
8ee56bcf
AC
68762004-04-30 Andrew Cagney <cagney@redhat.com>
6877
6878 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
6879 * gdbarch.h, gdbarch.c: Re-generate.
6880 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
6881 code.
6882
ee27e1b6
AC
68832004-04-30 Andrew Cagney <cagney@redhat.com>
6884
6885 * gdb-events.sh (selected_thread_changed)
6886 (selected_frame_level_changed, target_changed): Delete.
6887 * gdb-events.h, gdb-events.c: Re-generate.
6888 * valops.c (value_assign): Update.
6889 * stack.c (select_frame_command, up_silently_base)
6890 (down_silently_base): Update.
6891
d5ac5a39
AC
68922004-04-29 Andrew Cagney <cagney@redhat.com>
6893
6894 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
6895 registers correctly.
6896 (print_gp_register_row, mips32_heuristic_proc_desc)
6897 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
6898 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
6899 references to mips_isa_regsize.
6900
ceae6e75
AC
69012004-04-29 Andrew Cagney <cagney@redhat.com>
6902
6903 * mips-tdep.c (struct gdbarch_tdep): Delete
6904 mips_fp_register_double.
6905 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
6906 mips_abi_regsize.
6907 (mips_gdbarch_init): Do not set mips_fp_register_double.
6908 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
6909
a587af0b
AC
69102004-04-29 Joel Brobecker <brobecker@gnat.com>
6911
6912 Committed by Andrew Cagney.
6913 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
6914 function calls.
6915
13326b4e
AC
69162004-04-29 Andrew Cagney <cagney@redhat.com>
6917
6918 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
6919 gdbarch, use mips_abi, update callers.
6920 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
6921 mips_abi_regsize, update callers.
6922 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
6923 mips_default_abi_regsize.
6924 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
6925 mips_default_abi_regsize.
6926
711cc5cd
AC
69272004-04-29 Andrew Cagney <cagney@redhat.com>
6928
1b13c4f6
AC
6929 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
6930 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
6931 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
6932 mips_default_abi_regsize.
6933 (mips_isa_regsize): Rename mips_regisze.
6934 * mipsnbsd-tdep.c: Update.
6935 * mips-linux-tdep.c: Update.
6936 * irix5-nat.c: Update.
6937 * mips-tdep.h (mips_isa_regsize): Update.
6938
711cc5cd
AC
6939 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
6940 Delete all disabled code.
6941 * gdb-events.h, gdb-events.c: Re-generate.
6942
e63bbc88
MK
69432004-04-19 Jerome Guitton <guitton@gnat.com>
6944 Mark Kettenis <kettenis@gnu.org>
6945
6946 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
6947 the function begins with a branch instruction.
6948
fd35795f
MK
69492004-04-29 Mark Kettenis <kettenis@gnu.org>
6950
6951 * i386-tdep.c: Fix spelling mistakes.
6952
c960c18f
AC
69532004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6954 Andrew Cagney <cagney@redhat.com>
6955
6956 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
6957 <sys/proc.h>.
6958 * acconfig.h: Provide default _KMEMUSER value.
6959 * config.in, configure: Re-generate.
6960 * NEWS: Mention fix.
6961
50306a9d
RC
69622004-04-24 Randolph Chung <tausq@debian.org>
6963
6964 * configure.host (hppa*-*-linux*): New target.
6965 * configure.tgt (hppa*-*-linux*): Likewise.
6966 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
6967 gdbarch_init_osabi() call earlier so that osabi-specific frame
6968 unwinders can be registered first.
6969 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
6970 hppa-linux-nat.c.
6971 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
6972 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
6973 * config/pa/linux.mh: New file.
6974 * config/pa/linux.mt: New file.
6975 * config/pa/nm-linux.h: New file.
6976 * config/pa/xm-linux.h: New file.
6977 * hppa-linux-nat.c: New file.
6978 * hppa-linux-tdep.c: New file.
6979
2a6228ef
RC
69802004-04-28 Randolph Chung <tausq@debian.org>
6981
6982 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
6983 return values.
6984 (hppa32_push_dummy_call): Fix small struct and floating point argument
6985 passing, and make sure the stack frame is properly aligned.
6986
82c10df6
AC
69872004-04-28 Andrew Cagney <cagney@redhat.com>
6988
d762c46a
AC
6989 * stack.c (print_stack_frame): Fix description.
6990
82c10df6
AC
6991 * NEWS: Mention gdb/gdbserver/configure execute permission
6992 changed. PR server/519.
6993
0faf0076
AC
69942004-04-28 Andrew Cagney <cagney@redhat.com>
6995
6996 * stack.c (print_stack_frame_stub): Delete declaration.
6997 (struct print_stack_frame_args, print_stack_frame)
6998 (print_frame_info, print_frame): Replace "source" with print what.
6999 Replace "print" with "print_level". Replace "args" with
7000 "print_args".
7001 * frame.h (show_and_print_stack_frame, print_stack_frame)
7002 (print_frame_info): Update declarations.
7003 * stack.c (select_and_print_frame, frame_command)
7004 (current_frame_command, up_command, down_command): Update calls -
7005 use get_selected_frame, pass "enum print_what" for source, do not
7006 call frame_relative_level.
7007 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
7008 * remote-rdp.c (remote_rdp_open): Ditto.
7009 * remote-mips.c (common_open): Ditto.
7010 * remote-e7000.c (e7000_start_remote): Ditto.
7011 * ocd.c (ocd_start_remote): Ditto.
7012 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
7013 * infrun.c (normal_stop): Ditto.
7014 * inflow.c (kill_command): Ditto.
7015 * infcmd.c (finish_command): Ditto.
7016 * corelow.c (core_open): Ditto.
7017 * tracepoint.c (finish_tfind_command): Ditto.
7018 * thread.c (info_threads_command, info_threads_command)
7019 (restore_current_thread, do_captured_thread_select): Ditto.
7020 * ada-tasks.c (task_command): Ditto.
7021
f4c5303c
OF
70222004-04-26 Orjan Friberg <orjanf@axis.com>
7023
7024 * frame.c: Include "observer.h".
7025 (frame_observer_target_changed): New function.
7026 (_initialize_frame): Attach target_changed observer.
7027 * regcache.c: Include "observer.h".
7028 (regcache_observer_target_changed): New function.
7029 (_initialize_regcache): Attach target_changed observer.
7030 * valops.c: Include "observer.h".
7031 (value_assign): Notify target_changed event when modifying register.
7032 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
7033
7270d8f2
OF
70342004-04-26 Orjan Friberg <orjanf@axis.com>
7035
7036 From Paul Koning <pkoning@equallogic.com>:
7037 * breakpoint.c (free_valchain): New function.
7038 (insert_bp_location, delete_breakpoint): Use free_valchain.
7039 (remove_breakpoint): Do not remove the valchain.
7040 (bpstat_stop_status): If not stopped by watchpoint, skip
7041 watchpoints when generating stop status list.
7042 * infrun.c (handle_inferior_event): Make
7043 stepped_after_stopped_by_watchpoint a global variable.
7044 * remote.c (remote_stopped_data_address): Return watch data
7045 address rather than zero if stepped_after_stopped_by_watchpoint is
7046 set.
7047
02d62932
MC
70482004-04-25 Michael Chastain <mec.gnu@mindspring.com>
7049
7050 Fix PR gdb/1626.
7051 * configure.in: Check for curses after termcap.
7052 On osf5.*, do not check for ncurses.
7053 * configure: Regenerate.
7054
3e9a183c
MK
70552004-04-25 Mark Kettenis <kettenis@gnu.org>
7056
c79ac407
MK
7057 * ppcobsd-nat.c: Include "ppc-tdep.h".
7058 * Makefile.in (ppcobsd-nat.o): Update dependencies.
7059
3e9a183c
MK
7060 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
7061 Fixes PR tdep/1623 and PR tdep/1624.
7062
38cc9c28
MC
70632004-04-24 Michael Chastain <mec.gnu@mindspring.com>
7064
7065 * xmodem.h, xmodem.c: Remove files.
7066 * Makefile.in: Remove references to xmodem.h, xmodem.c.
7067
7f07c5b6
RC
70682004-04-23 Randolph Chung <tausq@debian.org>
7069
7070 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
7071 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
7072 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
7073 for handling stackless frames.
7074 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
7075
9f7194c3
RC
70762004-04-23 Randolph Chung <tausq@debian.org>
7077
7078 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
7079 starts at a pc before the frame is created.
7080
dcff6009
JB
70812004-04-23 Joel Brobecker <brobecker@gnat.com>
7082
7083 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
7084
40711ff1 70852004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
7086
7087 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
7088 use convert_typed_floating to get the appropriate format.
7089
abc485a1
RC
70902004-04-22 Randolph Chung <tausq@debian.org>
7091
7092 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
7093 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
7094 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
7095 (hppa_sign_extend): Add prototype.
7096 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
7097 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
7098 (sign_extend): Rename with hppa_ prefix and make non-static. Other
7099 hppa targets will also use these functions.
7100 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
7101 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
7102 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
7103 (hppa_gdbarch_init): Remove gdbarch setting of
7104 skip_trampoline_code, in_solib_call_trampoline and
7105 in_solib_return_trampoline.
7106 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
7107 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
7108 hppa_in_solib_call_trampoline.
7109 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
7110 Moved from hppa-tdep.c.
7111 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
7112 in_solib_call_trampoline and in_solib_return_trampoline.
7113
369aa520
RC
71142004-04-22 Randolph Chung <tausq@debian.org>
7115
7116 * hppa-tdep.c (hppa_debug): New variable.
7117 (find_unwind_entry, hppa_frame_cache): Add debug output.
7118 (_initialize_hppa_tdep): Add command to set debug flag.
7119
476be15e
AC
71202004-04-22 Andrew Cagney <cagney@redhat.com>
7121
7122 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
7123 "trad-frame.h".
7124 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
7125 signal trampoline unwinder.
7126 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
7127
d195bc9f
MK
71282004-04-22 Mark Kettenis <kettenis@gnu.org>
7129
7130 Add OpenBSD/powerpc support.
7131 * NEWS (New native configurations): Mention OpenBSD/powerpc.
7132 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
7133 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
7134 (ppc_collect_fpregset): New prototypes.
7135 * ppcobsd-nat.c: New file.
7136 * ppcobsd-tdep.c: New file.
7137 * ppcobsd-tdep.h: New file.
7138 * rs6000-tdep.c: Include "regset.h".
7139 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
7140 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
7141 New functions.
7142 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
7143 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
7144 (rs6000-tdep.o): Update dependencies.
7145 * configure.host: Add powerpc-*-openbsd.
7146 * configure.tgt: Add powerpc-*-openbsd.
7147 * config/powerpc/obsd.mh: New file.
7148 * config/powerpc/nm-obsd.h: New file.
7149 * config/powerpc/obsd.mt: New file.
7150
6f14cc33
AC
71512004-04-22 Andrew Cagney <cagney@redhat.com>
7152
fcf29e5f
AC
7153 * frame.h (show_frame_info): Delete declaration.
7154
6f14cc33
AC
7155 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
7156 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
7157 * m32r-tdep.c (m32r_frame_this_id): Ditto.
7158 * frv-tdep.c (frv_frame_this_id): Ditto.
7159 * avr-tdep.c (avr_frame_this_id): Ditto.
7160
e5786a5c
EZ
71612004-04-22 Elena Zannoni <ezannoni@redhat.com>
7162
7163 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
7164
26e75e5c
JB
71652004-04-22 Jim Blandy <jimb@redhat.com>
7166
7167 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
7168 register number zero.
7169
d8d65dd3
MS
71702004-04-21 Michael Snyder <msnyder@redhat.com>
7171
7172 * mips-tdep.c (heuristic_proc_start):
7173 Warning() already prefixes "Warning: ".
7174
9a4105ab
AC
71752004-04-21 Andrew Cagney <cagney@redhat.com>
7176
7177 * annotate.h (deprecated_annotate_starting_hook)
7178 (deprecated_annotate_stopped_hook)
7179 (deprecated_annotate_exited_hook)
7180 (deprecated_annotate_signal_hook)
7181 (deprecated_annotate_signalled_hook): Deprecate.
7182 * tracepoint.h (deprecated_create_tracepoint_hook)
7183 (deprecated_delete_tracepoint_hook)
7184 (deprecated_modify_tracepoint_hook)
7185 (deprecated_trace_find_hook)
7186 (deprecated_trace_start_stop_hook): Deprecate.
7187 * target.h (deprecated_target_new_objfile_hook): Deprecate.
7188 * remote.h (deprecated_target_resume_hook)
7189 (deprecated_target_wait_loop_hook): Deprecate.
7190 * gdbcore.h (deprecated_exec_file_display_hook)
7191 (deprecated_file_changed_hook): Deprecate.
7192 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
7193 * defs.h (deprecated_modify_breakpoint_hook)
7194 (deprecated_command_loop_hook, deprecated_show_load_progress)
7195 (deprecated_print_frame_info_listing_hook)
7196 (deprecated_query_hook, deprecated_warning_hook)
7197 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
7198 (deprecated_delete_breakpoint_hook)
7199 (deprecated_interactive_hook, deprecated_registers_changed_hook)
7200 (deprecated_readline_begin_hook, deprecated_readline_hook)
7201 (deprecated_readline_end_hook, deprecated_register_changed_hook)
7202 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
7203 (deprecated_context_hook, deprecated_target_wait_hook)
7204 (deprecated_attach_hook, deprecated_detach_hook)
7205 (deprecated_call_command_hook, deprecated_set_hook)
7206 (deprecated_error_hook, deprecated_error_begin_hook)
7207 (deprecated_ui_load_progress_hook): Deprecate.
7208 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
7209 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
7210 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
7211 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
7212 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
7213 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
7214 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
7215 * annotate.c, aix-thread.c: Update.
7216
62cf13cc
AC
72172004-04-21 Andrew Cagney <cagney@redhat.com>
7218
b2e31a62
AC
7219 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
7220 * vaxnbsd-tdep.c: Include "gdb_string.h".
7221
62cf13cc
AC
7222 * symfile.c (symbol_file_add_from_memory): #if 0 function.
7223 (add_symbol_file_from_memory_command): #if 0 function body, call
7224 error instead.
7225
00e32a35
AC
72262004-04-21 Andrew Cagney <cagney@redhat.com>
7227
7228 * gdbcore.h: Update copyright.
7229 (deprecated_add_core_fns): Rename add_core_fns.
7230 * win32-nat.c (_initialize_core_win32): Update.
7231 * sun3-nat.c (_initialize_core_sun3): Update.
7232 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
7233 * rs6000-nat.c (_initialize_core_rs6000): Update.
7234 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
7235 * nto-tdep.c (_initialize_nto_tdep): Update.
7236 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
7237 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
7238 * mips-nat.c (_initialize_core_mips): Update.
7239 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7240 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
7241 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
7242 * lynx-nat.c (_initialize_core_lynx): Update.
7243 * irix5-nat.c (_initialize_core_irix5): Update.
7244 * i386-interix-nat.c (_initialize_core_interix): Update.
7245 * cris-tdep.c (_initialize_cris_tdep): Update.
7246 * corelow.c (deprecated_add_core_fns): Update.
7247 * core-regset.c (_initialize_core_regset): Update.
7248 * core-aout.c (_initialize_core_aout): Update.
7249 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
7250 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
7251 * alpha-nat.c (_initialize_core_alpha): Update.
7252
13c7b1ca
JB
72532004-04-21 Jim Blandy <jimb@redhat.com>
7254
7255 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
7256
7b5a2f43
DJ
72572004-04-19 Daniel Jacobowitz <drow@mvista.com>
7258
7259 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
7260 Delete.
7261 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
7262 (read_attribute_value): Update calls to dwarf_alloc_block.
7263 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
7264 dwarf2_tmp_obstack.
7265 (psymtab_to_symtab_1): Likewise. Clean up using
7266 free_stack_comp_unit.
7267 (add_to_cu_func_list): Use the comp_unit_obstack.
7268
05cf31d1
JB
72692004-04-19 Joel Brobecker <brobecker@gnat.com>
7270
7271 * dwarf2read.c (dwarf2_flag_true_p): New function.
7272 (die_is_declaration): Use the function above. Add some comments.
7273
adf93a2f
MK
72742004-04-19 Mark Kettenis <kettenis@gnu.org>
7275
7276 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
7277 architecture when registering sparcnbsd_core_osabi_sniffer.
7278 Adjust comment.
7279
748894bf
MK
72802004-04-18 Mark Kettenis <kettenis@gnu.org>
7281
f622ad42
MK
7282 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
7283 return value.
7284
c4fc7f1b
MK
7285 Based on a patch from Brian Ford <ford@vss.fsi.com>:
7286 * i386-tdep.c: Correct register numbering scheme comments
7287 throughout.
7288 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
7289 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
7290 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
7291 (i386_gdb_arch_init): Likewise.
7292
b4ead1bd
MK
7293 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
7294 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
7295 ppcnbsd-tdep.o.
7296
748894bf
MK
7297 * m68k-tdep.h: Tweak comments.
7298 * m68k-tdep.c: Tweak comment.
7299
fdd72f95
RC
73002004-04-17 Randolph Chung <tausq@debian.org>
7301
7302 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
7303 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
7304 (hppa_hpux_som_init_abi): Set is_elf to 0.
7305 (hppa_hpux_elf_init_abi): Set is_elf to 1.
7306 * hppa-tdep.c (low_text_segment_address): Remove global.
7307 (record_text_segment_lowaddr): Pass in low address as parameter. Use
7308 section offset to calculate segment address.
7309 (internalize_unwinds): Define low_text_segment_address as local and
7310 pass to record_text_segment_lowaddr for ELF targets.
7311 (hppa_gdbarch_init): Zero fill tdep structure.
7312 (hppa_dump_tdep): Print tdep structure.
7313 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
7314
0f8d9d59
RC
73152004-04-17 Randolph Chung <tausq@debian.org>
7316
7317 * hppa-tdep.c (hppa_pseudo_register_read): Define.
7318 (hppa_gdbarch_init): Set pseudo_register_read.
7319 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
7320 * regcache.c (supply_register): Remove check for
7321 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
7322
7c46b9fb
RC
73232004-04-17 Randolph Chung <tausq@debian.org>
7324
7325 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
7326 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
7327 (hpread_adjust_stack_address): Move to hpread.c.
7328 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7329 obj_private_struct): Move from tm-hppa.h.
7330 * hpread.c (hppa-tdep.h): Include.
7331 (hpread_adjust_stack_address): Move from hppa-tdep.c.
7332 (hpread_read_function_type, hpread_read_doc_function_type)
7333 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
7334 directly.
7335 * pa64solib.c (hppa-tdep.h): Include.
7336 * somsolib.c (hppa-tdep.h): Include.
7337 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
7338 inferior_status): Remove unused forward declarations.
7339 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
7340 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7341 obj_private_struct): Move to hppa-tdep.h.
7342 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
7343
8d153463
RC
73442004-04-17 Randolph Chung <tausq@debian.org>
7345
7346 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
7347 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
7348 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
7349 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
7350 Remove forward declaration and make static.
7351 (hppa_reg_struct_has_addr): Remove.
7352
350c2e5b
JB
73532004-04-16 Joel Brobecker <brobecker@gnat.com>
7354
7355 * observer.sh: Move comments in sed command to first column.
7356
bbde78fa
JM
73572004-04-16 Jason Molenda (jmolenda@apple.com)
7358
7359 * frame.c: Minor typeo corrections in comments.
7360
e0270fd9
JB
73612004-04-16 Joel Brobecker <brobecker@gnat.com>
7362
7363 * observer.c (observer_test_first_notification_function): Update
7364 function profile.
7365 (observer_test_second_notification_function): Likewise.
7366 (observer_test_third_notification_function): Likewise.
7367
3d049254
MK
73682004-04-16 Mark Kettenis <kettenis@gnu.org>
7369
7370 From Brian Ford <ford@vss.fsi.com>:
7371 * i386-tdep.c (i386_coff_init_abi): New function.
7372 * i386-tdep.h (i386_coff_init_abi): New prototype.
7373 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
7374 register number translation functions for DWARF and DWARF 2.
7375
7867684d
JB
73762004-04-16 Joel Brobecker <brobecker@gnat.com>
7377
7378 * dwarf2read.c: Back out my previous change, it was incorrect.
7379
72bf9492
DJ
73802004-04-16 Daniel Jacobowitz <drow@mvista.com>
7381
7382 * dwarf2read.c: Include "hashtab.h".
7383 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
7384 has_namespace_info.
7385 (struct partial_die_info): Add comments. Use bitfields to reduce
7386 memory footprint. Add scope, scope_set, has_specification,
7387 spec_offset, die_parent, die_child, and die_sibling.
7388 (peek_die_abbrev): Add prototype.
7389 (partial_read_comp_unit_head): New function, broken out from
7390 dwarf2_build_psymtabs_hard.
7391 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
7392 Use partial_read_comp_unit_head. Initialize the CU and
7393 comp_unit_obstack. Update calls to read_partial_die and
7394 scan_partial_symbols. Use free_stack_comp_unit and
7395 load_partial_dies.
7396 (scan_partial_symbols): Change PDI to a pointer. Use the child and
7397 sibling pointers to walk partial DIEs. Call fixup_partial_die.
7398 Update calls to helper functions. Remove NAMESPACE argument.
7399 Update comments.
7400 (partial_die_parent_scope, partial_die_full_name): New functions.
7401 (add_partial_symbol): Remove namespace argument. Update call to
7402 pdi_needs_namespace. Use partial_die_full_name. Handle
7403 DW_TAG_namespace. Check has_namespace_info flag.
7404 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
7405 tag. Handle namespaces.
7406 (add_partial_namespace, add_partial_enumeration): Simplify.
7407 (guess_structure_name): New function, derived from
7408 add_partial_structure.
7409 (add_partial_structure): Remove.
7410 (determine_class_name): Update comment.
7411 (dwarf2_read_abbrevs): Set has_namespace_info flag.
7412 (is_type_tag_for_partial, load_partial_dies): New functions.
7413 (read_partial_die): Pass abbrev and abbrev_len as arguments.
7414 Record specifications instead of following them immediately.
7415 (find_partial_die_in_comp_unit, find_partial_die)
7416 (fixup_partial_die, free_stack_comp_unit)
7417 (hashtab_obstack_allocate, dummy_obstack_deallocate)
7418 (partial_die_hash, partial_die_eq): New functions.
7419 * Makefile.in (hashtab_h): Define.
7420 (dwarf2read.o): Update dependencies.
7421 (observer_inc, observer_h): Move to the correct section.
7422
fdc860a3
JB
74232004-04-15 Joel Brobecker <brobecker@gnat.com>
7424
7425 * dwarf2read.c (dwarf2_attribute_true_p): New function.
7426 (die_is_declaration): Use the function above. Add comment.
7427
dc718098
JB
74282004-04-15 Joel Brobecker <brobecker@gnat.com>
7429
7430 * dwarf2read.c (read_structure_scope): Identify stub types
7431 using die_is_declaration() only.
7432
8718a420
RM
74332004-04-15 Roland McGrath <roland@redhat.com>
7434
7435 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
7436 argument instead of NAME.
7437 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
7438 in call to symbol_file_add_with_addrs_or_offsets.
7439 (build_addr_info): New function, helper for ...
7440 (symbol_file_add_from_memory): New function.
7441 (add_symbol_file_from_memory_command): New function using that.
7442 (_initialize_symfile): Register it for add-symbol-file-from-memory.
7443 (pre_add_symbol_hook): Add const to argument type.
7444 * symfile.h (symbol_file_add_from_memory): Declare it.
7445
8b910bab
MK
74462004-04-15 Mark Kettenis <kettenis@gnu.org>
7447
9f076e7a
MK
7448 * NEWS (New native configurations): Mention OpenBSD/vax.
7449 * configure.host: Add vax-*-openbsd*.
7450 * config/vax/obsd.mh: New file.
7451 * config/vax/nm-obsd.h: New file.
7452
8b910bab
MK
7453 * vax-tdep.c: Include "regset.h".
7454 (vax_supply_gregset): New function.
7455 (vax_gregset): New variable.
7456 (vax_regset_from_core_section): New function.
7457 (vax_gdbarch_init): Set regset_from_core_section.
7458 * Makefile.in (vax-tdep.o): Update dependencies.
7459
7a464420
AC
74602004-04-15 Andrew Cagney <cagney@redhat.com>
7461
7462 * observer.c (normal_stop_subject, observer_notify_normal_stop)
7463 (observer_normal_stop_notification_stub)
7464 (observer_attach_normal_stop, observer_detach_normal_stop):
7465 Delete, replaced by #include "observer.inc".
7466 * infrun.c (normal_stop): Pass "stop_bpstat" to
7467 observer_notify_normal_stop.
7468 * Makefile.in (observer_inc): Define.
7469 (observer.o): Update dependencies.
7470 (observer.h, observer.inc): New rules.
7471 * observer.h: Delete file.
7472 * observer.sh: New file.
7473
e36ad527
MK
74742004-04-15 Mark Kettenis <kettenis@gnu.org>
7475
7476 * vax-tdep.c (vax_frame_cache): Fix typo.
7477
67b441e1
MK
74782004-04-14 Mark Kettenis <kettenis@gnu.org>
7479
6f606e1c
MK
7480 * NEWS (New native configurations): Mention NetBSD/vax.
7481 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
7482 * config/vax/nbsdelf.mh: New file.
7483 * config/vax/nbsdaout.mh: New file.
7484 * config/vax/nm-nbsd.h: New file.
7485 * config/vax/nm-nbsdaout.h: New file.
7486
9c5519a5
MK
7487 * vaxnbsd-tdep.c: New file.
7488 * Makefile.in (vaxnbsd-tdep.o): New dependency.
7489 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
7490 * config/vax/nbsd.mt: New file.
7491 * config/vax/tm-nbsd.h: New file.
7492
4844a614
MK
7493 * Makefile.in (vaxbsd-nat.o): New dependency.
7494
67b441e1
MK
7495 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
7496 * vax-tdep.c (vax_store_arguments): Remove struct_return and
7497 struct_addr arguments. Don't push return value address.
7498 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
7499 arguments to vax_store_arguments. Store return value address in
7500 R1.
7501 (vax_store_struct_return, vax_extract_return_value)
7502 (vax_store_return_value): Remove functions.
7503 (vax_return_value): New function.
7504 (vax_gdbarch_init): Set return value. Don't set
7505 deprecated_store_struct_return, deprecated_extract_struct_return
7506 and deprecated_store_return_value.
7507
6672f2ae
AS
75082004-04-14 Andreas Schwab <schwab@suse.de>
7509
7510 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
7511 value buffer.
7512 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
7513
7346c184
MK
75142004-04-14 Mark Kettenis <kettenis@gnu.org>
7515
7516 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
7517 (vax_unwind_dummy_id): New functions.
7518 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
7519 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
7520 variables.
7521 (vax_fix_call_dummy): Remove function.
7522 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
7523 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
7524 call_dummy_location, deprecated_call_dummy_words,
7525 deprecated_sizeof_call_dummy_words,
7526 deprecated_call_dummy_breakpoint_offset,
7527 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
7528 and deprecated_dummy_write_sp.
7529
58e23df4
DC
75302004-04-13 David Carlton <carlton@kealia.com>
7531
7532 * MAINTAINERS: Move myself to "paper trail" section.
7533
5e6b39ff
MK
75342004-04-12 Mark Kettenis <kettenis@gnu.org>
7535
7def7fef
MK
7536 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
7537 "trad-frame.h".
7538 (vax_frame_init_saved_regs): Remove function.
7539 (vax_sigtramp_saved_pc): Remove function.
7540 (vax_frame_saved_pc): Remove function.
7541 (vax_frame_args_address): Remove function.
7542 (vax_frame_num_args): Rewrite.
7543 (vax_frame_chain): Remove function.
7544 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
7545 VAX_FP_REGNUM.
7546 (vax_pop_frame): Likewise.
7547 (vax_saved_pc_after_call): Remove function.
7548 (struct vax_frame_cache): New structure.
7549 (vax_frame_cache): New function.
7550 (vax_frame_this_id): New function.
7551 (vax_frame_prev_register): New function.
7552 (vax_frame_unwind): New variable.
7553 (vax_frame_sniffer): New function.
7554 (vax_frame_base_address): New function.
7555 (vax_frame_args_address): New function.
7556 (vax_frame_base): New variable.
7557 (vax_unwind_pc): New function.
7558 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
7559 deprecated_fp_regnum, deprecated_saved_pc_after_call,
7560 deprecated_frame_chain, deprecated_frame_saved_pc,
7561 deprecated_frame_args_address and
7562 deprecated_frame_init_saved_regs.
7563 * Makefile.in (vax-tdep.o): Update dependencies.
7564
53284fc1
MK
7565 * vaxbsd-nat.c: New file.
7566
5e6b39ff
MK
7567 * vax-tdep.h: Update copyright year. Adjust comments.
7568 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
7569 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
7570 (vax_regnum): New enum. Replacing...
7571 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
7572 (VAX_PS_REGNUM): ... these removed macros.
7573 * vax-tdep.c (vax_register_name): Remove prototype.
7574 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
7575 (vax_register_byte, vax_register_raw_size,
7576 vax_register_virtual_size, vax_register_virtual_type): Remove
7577 functions.
7578 (vax_register_type): New function.
7579 (vax_breakpoint_from_pc): Reorganize.
7580 (vax_gdbarch_init): Set register_type. Don't set
7581 deprecated_register_size, deprecated_register_bytes,
7582 deprecated_register_byte, deprecated_register_raw_size,
7583 deprecated_max_register_raw_size,
7584 deprecated_register_virtual_size,
7585 deprecated_max_register_virtual_size and
7586 deprecated_register_virtual_type. Add comment on stack direction.
7587
e9c71e9f
MK
75882004-04-11 Mark Kettenis <kettenis@gnu.org>
7589
7590 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
7591 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 7592 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 7593
d46f1176 75942004-04-10 Randolph Chung <tausq@debian.org>
8718a420 7595
d46f1176
RC
7596 * MAINTAINERS (write after approval): Add myself.
7597
a2a84a72
RC
75982004-04-07 Randolph Chung <tausq@debian.org>
7599
7600 * hppa-tdep.c (hppa_inner_than): Remove.
7601 (is_pa_2): Remove unused static variable.
8718a420 7602 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 7603
e85c3284
PH
76042004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
7605
7606 * language.h (language_defn): Add new la_post_parser field.
7607 * parser-defs.h (null_post_parser): New declaration (default for
7608 la_post_parser).
8718a420 7609
e85c3284
PH
7610 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
7611 insert call to that function.
7612 (parse_exp_in_context): New function, including code formerly in
8718a420 7613 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
7614 prefixification.
7615 (parse_expression_in_context): New exported function.
7616 (null_post_parser): New definition.
7617 * expression.h (parse_expression_in_context): Add declaration.
8718a420 7618
e85c3284
PH
7619 * p-lang.c (pascal_language_defn): Add trivial post-parser.
7620 * c-lang.c (c_language_defn): Ditto.
7621 (cplus_language_defn): Ditto.
7622 (asm_language_defn): Ditto.
7623 (minimal_language_defn): Ditto.
7624 * f-lang.c (f_language_defn): Ditto.
7625 * jv-lang.c (java_language_defn): Ditto.
7626 * language.c (unknown_language_defn): Ditto.
7627 (auto_language_defn): Ditto.
7628 (local_language_defn): Ditto.
7629 * m2-lang.c (m2_language_defn): Ditto.
7630 * scm-lang.c (scm_language_defn): Ditto.
7631 * obj-lang.c (objc_language_defn): Ditto.
8718a420 7632
d9f8c85b
MK
76332004-04-10 Mark Kettenis <kettenis@gnu.org>
7634
fa34704a
MK
7635 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
7636 (amd64nbsd_mcontext_addr): New function.
7637 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
7638 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
7639 with amd64nbsd_r_reg_offset, instead of building it on the fly.
7640
403e1656
MK
7641 * corelow.c (core_xfer_partial): Fix coding standards violation.
7642 Add support for TARGET_OBJECT_WCOOKIE.
7643
a57e5a95
MK
7644 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
7645 deprecated_pc_in_sigtramp.
7646 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
7647 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
7648 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
7649 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7650 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
7651 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7652 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
7653
377d9ebd
MK
7654 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
7655 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
7656 Fix typo.
7657
f0ef85a5
MK
7658 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
7659 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
7660 (amd64_collect_fxsave): Likewise.
7661
d9f8c85b
MK
7662 * i386-sol2-tdep.c: Include "gdb_string.h".
7663 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
7664 name.
7665 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7666
75f501b5
MK
76672004-04-10 Mark Kettenis <kettenis@gnu.org>
7668
7669 * i386-sol2-tdep.c: Include "solib-svr4.h".
7670 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7671 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7672 * config/i386/tm-i386sol2.h: Include :solib.h".
7673 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
7674 solib-svr4.o and solib-legacy.o.
7675 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
7676 solib-svr4.o.
7677
b31bc724
MK
76782004-04-09 Mark Kettenis <kettenis@gnu.org>
7679
18bbbd9e
MK
7680 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
7681 whether a register is supplied by PTRACE_GETFPREGS.
7682 (store_inferior_registers): Likewise.
7683 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
7684 whether a register is supplied by PT_GETFPREGS.
7685 (store_inferior_registers): Likewise.
7686
3c30bf1b
MK
7687 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
7688 * config/i386/linux64.mt (TDEPFILES): Likewise.
7689
a4194092
MK
7690 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
7691
911bc6ee
MK
7692 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
7693 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
7694 the program counter is in the range specified by `struct
7695 gdbarch_tdep'.
7696 * amd64-linux-tdep.c: Include "symtab.h".
7697 (amd64_linux_pc_in_sigtramp): Remove function.
7698 (amd64_linux_sigtramp_p): New function.
7699 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
7700 deprecated_pc_in_sigtramp.
7701 * amd64nbsd-tdep.c: Include "symtab.h".
7702 (amd64nbsd_sigtramp_p): New function.
7703 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
7704 deprecated_pc_in_sigtramp.
7705 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
7706 few comments.
7707 (amd64obsd_pc_in_sigtramp): Remove function.
7708 (amd64obsd_sigtramp_p): New function.
7709 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
7710 deprecated_pc_in_sigtramp.
7711 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
7712 (i386bsd_pc_ins_sigtramp): Remove prototype.
7713 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
7714 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
7715 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
7716 the program counter is in the range specified by `struct
7717 gdbarch_tdep'.
7718 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
7719 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
7720 (i386_go32_pc_in_sigtramp): Remove function.
7721 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
7722 Initialize TDEP->sigtramp_p.
7723 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
7724 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
7725 deprecated_pc_in_sigtramp.
7726 * i386-linux-tdep.c: Adjust comments.
7727 (i386_linux_pc_in_sigtramp): Remove function.
7728 (i386_linux_sigtramp_p): New function.
7729 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
7730 deprecated_pc_in_sigtramp.
7731 * i386-nto-tdep.c: Update copyright year.
7732 (i386nto_pc_in_sigtramp): Remove function.
7733 (i386nto_sigtramp_p): New function.
7734 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
7735 SP_REGNUM.
7736 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
7737 deprecated_pc_in_sigtramp.
7738 * i386-sol2-tdep.c: Update copyright year.
7739 (i386_sol2_pc_in_sigtramp): Remove function.
7740 (i386_sol2_sigtramp_p): New function.
7741 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
7742 deprecated_pc_in_sigtramp.
7743 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
7744 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
7745 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7746 deprecated_sigtramp_start and deprecated_sigtramp_end.
7747 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
7748 (i386nbsd_pc_in_sigtramp): Remove function.
7749 (i386nbsd_sigtramp_p): New function.
7750 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7751 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
7752 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
7753 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
7754 (i386obsd_pc_in_sigtramp): Remove function.
7755 (i386obsd_sigtramp_p): New function.
7756 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
7757 functions.
7758 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7759 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
7760 TDEP->sigtramp_p.
7761 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
7762 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
7763 dependencies.
7764
e083e6ec
MK
7765 * config/i386/i386aout.mt: Remove file.
7766
bd153b94
MK
7767 * configure.tgt: Remove i[34567]86-*-go32*,
7768 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
7769 and i[34567]86-*-isc*. Set gdb_target to i386 for
7770 i[34567]86-*-netware* and i[34567]86-*-*.
7771 * config/i386/i386.mt: New file.
7772 * config/i386/embed.mt: Remove file.
7773 * config/i386/go32.mt: Remove file.
7774 * config/i386/i386nw.mt: Remove file.
7775 * config/i386/i386v.mt: Remove file.
7776 * config/i386/tm-go32.h: Remove file.
7777
4a1bcc8c
MK
7778 * tui/tui-hooks.c: Include "readline/readline.h" after
7779 "gdb_curses.h" instead of before.
7780 * tui/tui-io.c: Likewise.
7781
f9a79064
MK
7782 * tui/tui.c: Fix typo in comment.
7783
b31bc724
MK
7784 * sparc64-tdep.c (sparc_address_from_register): Remove function.
7785
f83f82bc
AC
77862004-04-08 Andrew Cagney <cagney@redhat.com>
7787
7788 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
7789 (deprecated_exception_support_initialized): Declare.
8718a420 7790 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
7791 (initialize_hp_cxx_exception_support)
7792 (child_enable_exception_callback): Update.
7793 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
7794 (deprecated_exception_support_initialized): Rename
7795 deprecated_exception_catchpoints_are_fragile and
7796 deprecated_exception_support_initialized.
7797 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
7798
7799 * symtab.c (deprecated_hp_som_som_object_present): Rename
7800 hp_som_som_object_present.
7801 * symtab.h (deprecated_hp_som_som_object_present): Declare.
7802 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
7803 Update. Delete extern declaration.
7804 * valops.c (hp_som_som_object_present): Ditto.
8718a420 7805 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
7806 (parse_nested_classes_for_hpacc): Ditto.
7807 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 7808 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
7809 (initialize_hp_cxx_exception_support): Ditto.
7810 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 7811 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 7812 (cp_print_class_method): Ditto.
8718a420 7813 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
7814 (c_type_print_base): Ditto.
7815 * c-exp.y (hp_som_som_object_present): Ditto.
7816
fb2be677
AC
78172004-04-08 Andrew Cagney <cagney@redhat.com>
7818
7819 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
7820 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
7821 (frame_unwind_find_by_frame): Re-implement the unwind code so
7822 that it can both prepend and append sniffers. Replace
7823 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
7824 * tramp-frame.c (tramp_frame_append): Use
7825 frame_unwind_prepend_unwinder.
7826 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
7827 frame_unwind_register_unwinder.
7828 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
7829 tramp_frame_append.
7830 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 7831 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
7832 (mips_linux_init_abi): Update.
7833
67faf007
KB
78342004-04-08 Kevin Buettner <kevinb@redhat.com>
7835
7836 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
7837 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
7838 file support.
7839
8973ff21
KB
78402004-04-07 Kevin Buettner <kevinb@redhat.com>
7841
7842 * ia64-tdep.c (elf.h): Don't include.
7843 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
7844
4a0e2f88
JM
78452004-04-07 Jason Molenda (jmolenda@apple.com)
7846
7847 * frame.h: Typeo corrections in comments.
7848
9872ad24
JB
78492004-04-07 Jim Blandy <jimb@redhat.com>
7850
7851 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
7852 %esp and %ebp
7853
70b216c8
MK
78542004-04-07 Mark Kettenis <kettenis@gnu.org>
7855
11d5789c
MK
7856 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
7857 * config/sparc/linux64.mt (TDEPFILES): Likewise.
7858 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
7859 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
7860 and solib-legacy.o.
7861 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
7862 solib-svr4.o.
7863 * config/sparc/tm-sol2.h: Update copyright year. Include
7864 "solib.h".
7865
70b216c8
MK
7866 * sparc-sol2-tdep.c: Update copyright year. Include
7867 "solib-svr4.h".
7868 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7869 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
7870 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 7871 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
7872 dependencies.
7873
6339dc9e
AC
78742004-04-06 Andrew Cagney <cagney@redhat.com>
7875
7876 * infttrace.c: Include "infttrace.h".
7877 * infttrace.h: Include "target.h".
7878 * Makefile.in (infttrace_h): Update.
7879 (infttrace.o): Update.
8718a420 7880
93449403
AC
78812004-04-06 Andrew Cagney <cagney@redhat.com>
7882
6d518969
AC
7883 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
7884 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
7885 move extern declarations from here ...
7886 * infttrace.h: ... to here.
7887 * Makefile.in (hppah-nat.o): Update dependencies.
7888
85f4f2d8
AC
7889 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
7890 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 7891 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
7892 (hppa_breakpoint_from_pc): Delete.
7893
93449403
AC
7894 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
7895
71456ec6
AC
78962004-04-05 Andrew Cagney <cagney@redhat.com>
7897
7898 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
7899 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
7900 <sys/file.h>.
8718a420 7901
4c02c60c
AC
79022004-04-06 Randolph Chung <tausq@debian.org>
7903
7904 Committed by Andrew Cagney (mechanical change).
7905 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
7906 exception_catchpoints_are_fragile, find_stub_with_shl_get,
7907 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
7908 child_enable_exception_callback, current_ex_event,
7909 null_symtab_and_line, child_get_current_exception_event,
7910 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
7911 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
7912 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
7913 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
7914 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
7915 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
7916 Move hpux-specific definitions ...
7917 * hppa-hpux-tdep.c: ... to here.
7918
3a515653
AC
79192004-04-05 Andrew Cagney <cagney@redhat.com>
7920
7921 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
7922 skip_prologue_using_sal.
7923
c1730d02
AC
79242004-04-05 Andrew Cagney <cagney@redhat.com>
7925
7926 * config/i386/tm-i386.h: Delete file.
7927 * config/i386/tm-vxworks.h: Update copyright, do not include
7928 "tm-i386.h".
7929 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
7930 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
7931 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
7932 * config/i386/ncr3000.mt (TM_FILE): Delete.
7933 * config/i386/interix.mt (TM_FILE): Delete.
7934 * config/i386/i386v.mt (TM_FILE): Delete.
7935 * config/i386/i386nw.mt (TM_FILE): Delete.
7936 * config/i386/i386gnu.mt (TM_FILE): Delete.
7937 * config/i386/i386aout.mt (TM_FILE): Delete.
7938 * config/i386/embed.mt (TM_FILE): Delete.
7939
8b67aa36
KB
79402004-04-05 Kevin Buettner <kevinb@redhat.com>
7941
7942 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
7943 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
7944 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
7945 (accg7_regnum): New constants.
7946 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
7947 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
7948 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
7949 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
7950 for accg registers.
7951 (frv_register_sim_regno): Update spr_map[].
7952
3c7012f5
AC
79532004-04-04 Andrew Cagney <cagney@redhat.com>
7954
7955 * config/mips/xm-riscos.h: Delete.
7956 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
7957 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
7958 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
7959 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
7960 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
7961 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
7962 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
7963 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
7964 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
7965 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
7966 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
7967 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
7968 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
7969 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
7970 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
7971 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
7972 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
7973 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
7974 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
7975 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
7976 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
7977 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
7978 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
7979 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
7980 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
7981 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 7982
3c7012f5
AC
7983 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
7984 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
7985 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
7986 * configure.host: Remove m680[01]0-sun-sunos3*,
7987 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
7988 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
7989 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
7990 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
7991 mips-*-riscos*.
7992 * NEWS: Mention removed systems.
7993
99d16a21
AC
79942004-04-04 Andrew Cagney <cagney@redhat.com>
7995
7996 GDB 6.1 release created from 6.1 branch.
7997
6cdf9d98
AC
79982004-04-04 Andrew Cagney <cagney@redhat.com>
7999
98d346c3
AC
8000 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
8001 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
8002 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
8003
6cdf9d98
AC
8004 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
8005 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
8006 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
8007
859a326d
JB
80082004-04-03 Jim Blandy <jimb@redhat.com>
8009
8010 * MAINTAINERS: Chris Faylor has changed employers; add him to
8011 "paper trail" section, and update his E-mail address.
8012
b87178c3
AC
80132004-04-03 Andrew Cagney <cagney@redhat.com>
8014
4ea2acf0
AC
8015 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
8016 generic dummy frames.
8017 * dummy-frame.c: Update copyright.
8018 (dummy_frame_sniffer): Delete check for generic dummy frames.
8019
d0bd2d18 8020 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 8021 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
8022 (REG_PARM_STACK_SPACE): Delete.
8023 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
8024 Inline reference to REG_PARM_STACK_SPACE.
8025
b87178c3
AC
8026 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
8027 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8028 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
8029 (FRAME_BASE_BEFORE_SIGTRAMP)
8030 (hppa32_hpux_frame_base_before_sigtramp)
8031 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
8032 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
8033 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
8034 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8035 (FRAME_BASE_BEFORE_SIGTRAMP)
8036 (hppa64_hpux_frame_base_before_sigtramp)
8037 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
8038
43e2e1a0
AC
80392004-04-03 Andrew Cagney <cagney@redhat.com>
8040
8041 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
8042
ddc135a4
AC
80432004-04-02 Andrew Cagney <cagney@redhat.com>
8044
8045 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
8046 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
8047 * dummy-frame.h: Delete out-of-date comments.
8048 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
8049 * gdbarch.h, gdbarch.c: Re-generate.
8050
d15bfd3a 80512004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 8052
d15bfd3a
AC
8053 Committed by Andrew Cagney <cagney@redhat.com>.
8054 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
8055 into account an instruction saving a register if we have already
8056 seen an earlier instruction saving that same register.
8057
f04ceafa
AC
80582004-04-02 Andrew Cagney <cagney@redhat.com>
8059
08be3abd
AC
8060 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
8061 * gdbarch.h, gdbarch.c: Re-generate.
8062 * frame.c (legacy_get_prev_frame): Delete references to
8063 DEPRECATED_INIT_FRAME_PC_FIRST.
8064
f04ceafa
AC
8065 * infrun.c (pc_in_sigtramp): Delete function.
8066 (check_sigtramp2): Inline call to pc_in_sigtramp, use
8067 get_frame_type.
8068
08e69816
AC
80692004-04-02 Andrew Cagney <cagney@redhat.com>
8070
8071 * infrun.c (handle_step_into_function): Delete code conditional on
8072 legacy_frame_p.
8073 (handle_inferior_event, step_over_function): Ditto.
8074
adb54772
AC
80752004-04-02 Andrew Cagney <cagney@redhat.com>
8076
8077 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
8078 "previous frame inner to this frame" test.
8079
304396fb
AC
80802004-04-02 Andrew Cagney <cagney@redhat.com>
8081
8082 * frame.c (safe_frame_unwind_memory): New function.
8083 * frame.h (safe_frame_unwind_memory): Declare. Update description
8084 of /safe_/ methods.
8085 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
8086 "next_frame". Use safe_frame_unwind_memory.
8087 (tramp_frame_sniffer): Update call to tramp_frame_start.
8088
6502dd73
DJ
80892004-04-01 Daniel Jacobowitz <drow@mvista.com>
8090
8091 * dwarf2read.c (dwarf2_objfile_data_key): New.
8092 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
8093 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
8094 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
8095 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
8096 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
8097 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
8098 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
8099 Remove variables.
8100 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
8101 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
8102 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
8103 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
8104 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
8105 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
8106 Remove macros.
8107 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
8108 data.
8109 (dwarf2_locate_sections, dwarf2_build_psymtabs)
8110 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
8111 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
8112 (read_partial_die, read_full_die, read_indirect_string)
8113 (dwarf_decode_line_header, dwarf_decode_macros)
8114 (dwarf2_symbol_mark_computed): Remove use of removed macros.
8115 Update uses of removed variables.
8116 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
8117 of removed macros.
8118 (_initialize_dwarf2_read): New function.
8119 * symfile.h (dwarf2_has_info): Update prototype.
8120 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
8121 * elfread.c (elf_symfile_read): Likewise.
8122
408752b0
JB
81232004-04-01 Jim Blandy <jimb@redhat.com>
8124
9f744501
JB
8125 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
8126 function for register numbers on all the rs6000-derived targets.
8127 (rs6000_gdbarch_init): Don't register a separate
8128 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
8129 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
8130 variants.
8131
408752b0
JB
8132 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
8133 numbering.
8134
2de41bce
PH
81352004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
8136
8137 * valarith.c: Update copyright notice.
8138 (value_add): Handle range types.
8139 (value_sub): Ditto.
8140 (value_equal): Ditto.
8141 (value_less): Ditto.
8142 (value_neg): Ditto.
8143 (value_complement): Ditto.
8718a420 8144 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 8145 eliminiating unnecessary COERCE_ENUMs.
8718a420 8146
5613d8d3
AC
81472004-03-31 Andrew Cagney <cagney@redhat.com>
8148
8149 * frame.h (frame_unwind_id): Declare.
8150 * frame.c (frame_unwind_id): New function.
8151 (get_prev_frame_1): New function.
8152 (frame_debug_got_null_frame): New function.
8153 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
8154 code proper to prev_frame, update description.
8155 * infrun.c (step_over_function): Use frame_unwind_id.
8156
c4557624
JB
81572004-04-31 J. Brobecker <brobecker@gnat.com>
8158
8159 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
8160 (hppa64_push_dummy_call): Likewise.
8161
3e6bb910
JB
81622004-03-30 Jim Blandy <jimb@redhat.com>
8163
8164 From Ulrich Weigand:
8165 * utils.c (query): Do not use a va_list variable multiple times.
8166
a2f23071
DJ
81672004-03-29 Daniel Jacobowitz <drow@mvista.com>
8168
8169 * Makefile.in (linux_nat_h): Update dependencies.
8170 * configure.in: Check for <gnu/libc-version.h>.
8171 * configure: Regenerate.
8172 * config.in: Regenerate.
8173 * linux-nat.h: Include "target.h". Add waitstatus field to
8174 struct lwp_info.
8175 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
8176 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
8177 to.
8178 (lin_lwp_handle_extended): New function. Handle clone events.
8179 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
8180 thread exit events.
8181 (child_wait): Handle clone events.
8182 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
8183 * linux-nat.c (linux_enable_event_reporting): Turn on
8184 PTRACE_O_TRACECLONE.
8185 (linux_handle_extended_wait): Handle clone events.
8186 * thread-db.c: Include <gnu/libc-version.h>.
8187 (struct private_thread_info): Add dying flag.
8188 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
8189 higher.
8190 (attach_thread): Update comments. Handle dying threads.
8191 (detach_thread): Set the dying flag.
8192 (check_event): Always call attach_thread.
8193
8d5f9dcb
DJ
81942004-03-29 Daniel Jacobowitz <drow@mvista.com>
8195
8196 * mips-tdep.c (mips_pdr_data): New.
8197 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
8198 (_initialize_mips_tdep): Initialize mips_pdr_data.
8199
66337bb1
CV
82002004-03-29 Corinna Vinschen <vinschen@redhat.com>
8201
8202 * minsyms.c (install_minimal_symbols): Move dropping leading
8203 char from linkage name from here...
8204 (prim_record_minimal_symbol_and_info): ...to here. Simplify
8205 test for "__gnu_compiled*" symbols.
8206
e802b915
JB
82072004-03-28 Jim Blandy <jimb@redhat.com>
8208
8209 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
8210 registers to temp register r0 and byte stores as prologue
8211 instructions.
8212
72b56458
AC
82132004-03-28 Andrew Cagney <cagney@redhat.com>
8214
8215 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
8216 arm*-*-*.
8217
0bfbda3b
SC
82182004-03-28 Stephane Carrez <stcarrez@nerim.fr>
8219
8220 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
8221 and switch the layout to force a display of register window.
8222
5a7225ed
JB
82232004-02-26 J. Brobecker <brobecker@gnat.com>
8224
8225 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
8226 of the INTEGER class.
8227
81a07a45
JB
82282004-03-26 Jim Blandy <jimb@redhat.com>
8229
8230 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
8231 bytes long on PPC GNU/Linux.
8232
8c691c7a
DC
82332004-03-26 David Carlton <carlton@kealia.com>
8234
8235 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
8236
103a0089
AC
82372004-03-25 Andrew Cagney <cagney@redhat.com>
8238
8239 * PROBLEMS: Add general section titles, remove references to
8240 specific releases.
8241
7a5ea0d4
DJ
82422004-03-25 Daniel Jacobowitz <drow@mvista.com>
8243
8244 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
8245 INT_REGISTER_SIZE.
8246 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
8247 FP_REGISTER_VIRTUAL_SIZE.
8248 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
8249 of DEPRECATED_REGISTER_RAW_SIZE.
8250 (arm_register_type): Add gdbarch argument.
8251 (arm_register_raw_size, arm_register_virtual_size): Delete.
8252 (arm_register_byte, arm_extract_return_value)
8253 (arm_store_return_value, arm_get_longjmp_target): Update references
8254 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
8255 (arm_gdbarch_init): Likewise. Don't set
8256 deprecated_register_raw_size, deprecated_register_virtual_size,
8257 deprecated_max_register_raw_size,
8258 deprecated_max_register_virtual_size, or
8259 deprecated_max_register_virtual_type. Do set register_type.
8260 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
8261 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
8262 (FP_REGISTER_VIRTUAL_SIZE): Delete.
8263 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
8264 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
8265 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
8266 INT_REGISTER_SIZE.
8267 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
8268 (remote_rdp_store_register): Likewise.
8269
5792a79b
DJ
82702004-03-24 Daniel Jacobowitz <drow@mvista.com>
8271
8272 * Makefile.in (mips-linux-tdep.o): Update dependencies.
8273 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
8274 to after osabi initialization.
8275 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
8276 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
8277 functions.
8278 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
8279 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
8280 variables.
8281 (mips_linux_init_abi): Append signal trampoline unwinders.
8282
1196bfda
AC
82832004-03-24 Andrew Cagney <cagney@redhat.com>
8284
8285 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
8286 * tramp-frame.c: Include "gdb_assert.h".
8287 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
8288 correct sizeof.
8289 (tramp_frame_append): Validate the tramp frame's instructions.
8290 * Makefile.in (tramp-frame.o): Update dependencies.
8291
4be282b4
AC
82922004-03-23 Andrew Cagney <cagney@redhat.com>
8293
8294 * trad-frame.h (trad_frame_set_reg_addr): Declare.
8295
69aec09b
AC
82962004-03-23 Andrew Cagney <cagney@redhat.com>
8297
8298 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
8299 Nasser as past testsuite/lib/ (and other) maintainers.
8300
63ed89b4
DJ
83012004-03-23 Daniel Jacobowitz <drow@mvista.com>
8302
8303 * infcmd.c (attach_command): Reread symbols if we already have
8304 an exec file.
8305
f3b36427
AC
83062004-03-23 Andrew Cagney <cagney@redhat.com>
8307
8308 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
8309
aa2a3f87
AC
83102004-03-23 Andrew Cagney <cagney@redhat.com>
8311
8312 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
8313 * gdbarch.h, gdbarch.c: Re-generate.
8314 * i386obsd-tdep.c (i386obsd_init_abi): Update.
8315 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8316 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 8317 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 8318 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 8319 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
8320 (DEPRECATED_SIGTRAMP_START): Update.
8321 * blockframe.c (find_pc_sect_partial_function): Update.
8322 * arch-utils.c (legacy_pc_in_sigtramp): Update.
8323
00cac895
DJ
83242004-03-23 Daniel Jacobowitz <drow@mvista.com>
8325
8326 * remote.c (remote_open_1): Reopen the exec file and reread symbols
8327 if necessary.
8328
f561f026
AC
83292004-03-23 Andrew Cagney <cagney@redhat.com>
8330
8331 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
8332 predicate, deprecate.
8333 * gdbarch.h, gdbarch.c: Re-generate.
8334 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8335 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8336 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
8337 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8338 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
8339 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
8340 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
8341 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
8342 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
8343 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
8344 * blockframe.c (find_pc_partial_function): Update.
8345 * breakpoint.c (bpstat_what): Update.
8346 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
8347 * frv-linux-tdep.c (frv_linux_init_abi): Update.
8348 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
8349 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
8350 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8351 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8352 * i386-nto-tdep.c (i386nto_init_abi): Update.
8353 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
8354 * i386-tdep.c (i386_sigtramp_frame_sniffer)
8355 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
8356 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8357 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8358 * i386obsd-tdep.c (i386obsd_init_abi): Update.
8359 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
8360 * infrun.c (pc_in_sigtramp): Update.
8361 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
8362 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
8363 * mips-tdep.c (mips_gdbarch_init): Update.
8364 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
8365 * ppc-linux-tdep.c: Update comment.
8366 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
8367 * shnbsd-tdep.c (shnbsd_init_abi): Update.
8368 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
8369 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
8370 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
8371 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
8372 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
8373 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
8374 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
8375 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 8376
8050c72f
AC
83772004-03-23 Andrew Cagney <cagney@redhat.com>
8378
d2259dd3
AC
8379 * tramp-frame.h, tramp-frame.h: New files.
8380 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
8381 Update rules to include "tramp-frame.h" and "tramp-frame.c".
8382
8050c72f
AC
8383 * Makefile.in: Update all dependencies.
8384
0db9b4b7
AC
83852004-03-23 Andrew Cagney <cagney@redhat.com>
8386
8387 * Makefile.in (trad_frame_h): Add $(frame_h).
8388 * trad-frame.h: Update copyright. Include "frame.h".
8389 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
8390 (trad_frame_set_id, trad_frame_get_id): Declare.
8391 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
8392 * trad-frame.c: Update copyright.
8393 (struct trad_frame_cache): Define.
8394 (trad_frame_cache_zalloc): New function.
8395 (trad_frame_set_id, trad_frame_get_id): New functions.
8396 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 8397
8e645ae7
AC
83982004-03-22 Andrew Cagney <cagney@redhat.com>
8399
8400 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
8401 s390_pltstub_unwind_cache.
8402 (s390_stub_frame_unwind_cache): Rename
8403 s390_pltstub_frame_unwind_cache.
8404 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
8405 (s390_stub_frame_prev_register): Rename
8406 s390_pltstub_frame_prev_register.
8407 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
8408 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
8409
8410 From Ulrich Weigand:
8411 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
8412 pointer calls like PLT calls.
8413
34fcf120
DJ
84142004-03-22 Daniel Jacobowitz <drow@mvista.com>
8415
8416 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
8417 PC rather than the partial function start address. Use the start
8418 address to sanity check the found PDR.
8419
5b917078
DJ
84202004-03-22 Daniel Jacobowitz <drow@mvista.com>
8421
8422 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
8423 linux_handle_extended_wait.
8424
8adf9e78
AC
84252004-03-22 Andrew Cagney <cagney@redhat.com>
8426
c3122434
AC
8427 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
8428 function.
8429
8adf9e78
AC
8430 * frame.h (generic_pop_current_frame): Delete declaration.
8431 (deprecate_pop_dummy_frame): Deprecate
8432 generic_pop_dummy_frame.
8433 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
8434 (generic_pop_current_frame): Delete function.
8435 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
8436 generic_pop_current_frame.
8437 * v850-tdep.c (v850_pop_frame): Update.
8438 * mcore-tdep.c (mcore_pop_frame): Update.
8439 * sh64-tdep.c (sh64_pop_frame): Update.
8440 * h8300-tdep.c (h8300_pop_frame): Update.
8441
90ba813f
AC
84422004-03-22 Andrew Cagney <cagney@redhat.com>
8443
8444 * frame.h (deprecated_pc_in_call_dummy): Rename
8445 generic_pc_in_call_dummy.
8446 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
8447 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
8448 generic_pc_in_call_dummy.
8449 (pc_in_dummy_frame): Make static.
8450 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
8451 * gdbarch.h, gdbarch.c: Re-generate.
8452 * dummy-frame.c (dummy_frame_sniffer): Simplify.
8453 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
8454 (legacy_get_prev_frame): Ditto.
8455 * inferior.h: Delete reference to generic_pc_in_call_dummy in
8456 comment.
8718a420 8457
ca4bb888
AC
84582004-03-21 Andrew Cagney <cagney@redhat.com>
8459
244675f9
AC
8460 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
8461 declaration and out-of-date comment.
8462 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
8463 Delete function.
8464 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
8465 deprecated_pc_in_call_dummy.
8466
ca4bb888
AC
8467 * infrun.c (handle_inferior_event): For non legacy frames, use the
8468 frame ID and frame type to identify a signal trampoline. Update
8469 comments.
8470
1777c7b4
NW
84712004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
8472
8473 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
8474 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
8475
82417da5
AC
84762004-03-21 Andrew Cagney <cagney@redhat.com>
8477
8478 * frame-unwind.h: Update copyright.
8479 (struct frame_data): Add opaque declaration.
8480 (frame_sniffer_ftype): Declare.
8481 (struct frame_unwind): Add "unwind_data" and "sniffer".
8482 (frame_unwind_register_unwinder): Declare.
8483 (frame_unwind_find_by_frame): Add parameter "this_cache".
8484 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
8485 (legacy_get_prev_frame, legacy_get_prev_frame)
8486 (get_frame_type): Pass the prologue_cache to
8487 frame_unwind_find_by_frame.
8488 * frame-unwind.c (struct frame_unwind_table_entry): Add field
8489 "unwinder".
8490 (frame_unwind_register_unwinder): New function.
8491 (frame_unwind_find_by_frame): Handle an unwind sniffer.
8492
b2ba182e
PH
84932004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
8494
8495 * bcache.c (print_percentage): Use floating point to avoid
8496 incorrect results when portion*100 overflows.
8497
81332287
KB
84982004-03-19 Kevin Buettner <kevinb@redhat.com>
8499
8500 * ppc_tdep.h (ppc_linux_frame_saved_pc)
8501 (ppc_linux_init_extra_frame_info)
8502 (ppc_linux_frameless_function_invocation)
8503 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
8504 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
8505 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
8506 (rs6000_frame_chain): Delete declarations.
8507 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
8508 (ppc_linux_init_extra_frame_info)
8509 (ppc_linux_frameless_function_invocation)
8510 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
8511 (ppc_linux_init_abi): Remove registration of above deleted functions.
8512 * rs6000-tdep.c (rs6000_init_extra_frame_info)
8513 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
8514 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
8515 (rs6000_pop_frame, rs6000_frameless_function_invocation)
8516 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
8517 (rs6000_gdbarch_init): Remove registration of above deleted functions.
8518 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
8519 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
8520 frame management for all OSABIs.
8521
61a65099
KB
85222004-03-19 Andrew Cagney <cagney@redhat.com>
8523
8524 Committed by Kevin Buettner <kevinb@redhat.com>.
8525
8526 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
8527 Update copyright.
8528 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
8529 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
8530 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
8531 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
8532 unwinders. #ifdef legacy frame code.
8533 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8534 "frame-base.h".
8535 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
8536 (struct rs6000_frame_cache, rs6000_frame_cache)
8537 (rs6000_frame_this_id, rs6000_frame_prev_register)
8538 (rs6000_frame_sniffer, rs6000_frame_unwind)
8539 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
8540 (rs6000_frame_base): Implement a traditional frame unwinder.
8541 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
8542 frame unwinder.
8543
88f7da05
KB
85442004-03-19 Kevin Buettner <kevinb@redhat.com>
8545
8546 * breakpoint.c (adjust_breakpoint_address): Don't adjust
8547 breakpoint address for watchpoints or the catch eventpoints.
8548 Add new paramter ``bptype''. Adjust all callers.
8549
f826dce1
AC
85502004-03-19 Andrew Cagney <cagney@redhat.com>
8551
33cb8b0f
AC
8552 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
8553
f826dce1
AC
8554 * PROBLEMS: Delete note that ARM does not use frame code, problem
8555 fixed.
8556
43b1ab88
AC
85572004-03-18 Andrew Cagney <cagney@redhat.com>
8558
292ab034
AC
8559 * stack.c (return_command): Delete code wrapped in #ifdef
8560 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
8561
43b1ab88
AC
8562 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
8563
dbfe4626
AC
85642004-03-18 Andrew Cagney <cagney@redhat.com>
8565
8566 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
8567 DEPRECATED_IN_SIGTRAMP.
8568 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8569 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
8570 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8571 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8572 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8573 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8574 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8575 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8576 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
8577 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
8578
0cad6aec
AC
85792004-03-18 Andrew Cagney <cagney@redhat.com>
8580
8581 * frame-base.c: Update copyright. Include "gdb_obstack.h".
8582 (struct frame_base_table_entry): Define.
8583 (struct frame_base_table): Re-implement as a linked list.
8584 (frame_base_init): Re-implement.
8585 (frame_base_table): Delete function.
8586 (append_predicate): Delete function.
8587 (frame_base_append_sniffer): Update.
8588 (frame_base_set_default): Update.
8589 (frame_base_find_by_frame): Update.
8590 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
8591 * Makefile.in (frame-base.o): Update dependencies.
8592
9982c2e7
AC
85932004-03-17 Andrew Cagney <cagney@redhat.com>
8594
8595 * frame.c (legacy_get_prev_frame): Pass correct frame to
8596 frame_unwind_find_by_frame.
8597
8dfe8985
DC
85982004-03-17 David Carlton <carlton@kealia.com>
8599
8600 * NEWS: Mention C++ nested types and namespaces
8601
ed47347a
MC
86022004-03-16 Michael Chastain <mec.gnu@mindspring.com>
8603
8604 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
8605 and "Regressions since gdb 5.3.". Add known regressions since
8606 gdb 6.0.
8607
90aeadfc
DC
86082004-03-16 David Carlton <carlton@kealia.com>
8609
8610 * dwarf2read.c (process_structure_scope): Process children even
8611 when we're a declaration.
8612
73912b9b
AC
86132004-03-16 Andrew Cagney <cagney@redhat.com>
8614
8615 * symtab.h (find_pc_sect_partial_function): Delete declaration.
8616 * blockframe.c (find_pc_partial_function)
8617 (find_pc_sect_partial_function): Merge into a single
8618 find_pc_partial_function.
8619
283accbc
MK
86202004-03-16 Mark Kettenis <kettenis@gnu.org>
8621
8622 * i386bsd-nat.c: s/regno/regnum/g.
8623 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
8624 FP0_REGNUM.
8625 (store_inferior_registers): Likewise.
8626
f5b1afdf
MK
86272004-03-16 Mark Kettenis <kettenis@gnu.org>
8628
8629 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
8630 of i387_fill_fsave.
8631 (store_inferior_registers): Call i387_collect_fsave and
8632 i387_collect_fxsave instead of i387_fill_fsave and
8633 i387_fill_fxsave.
8634
41fe5eb3
AC
86352004-03-15 Andrew Cagney <cagney@redhat.com>
8636
8637 * Makefile.in (frame-unwind.o): Update dependencies.
8638 * frame-unwind.c: Include "gdb_obstack.h".
8639 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
8640 parameter.
8641 (append_predicate): Delete function.
8642 (struct frame_unwind_table_entry): New structure.
8643 (struct frame_unwind_table): Replace "sniffer" with "head" and
8644 "tail".
8645 (frame_unwind_append_sniffer): Update.
8646 (frame_unwind_find_by_frame): Update.
8647 (_initialize_frame_unwind): Registe frame_unwind_init using
8648 gdbarch_data_register_pre_init.
8649
3f63813d
MK
86502004-03-15 Mark Kettenis <kettenis@gnu.org>
8651
8652 * i386bsd-nat.c: Update copyright year.
8653 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
8654 define unconditionally.
8655
3248c325 86562004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
8657
8658 * i387-tdep.h (i387_collect_fsave): New prototype.
8659 * i387-tdep.c (i387_collect_fsave): New function containing most
8660 of the code from i387_fill_fsave.
3248c325 8661 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 8662
871fbe6a
MK
86632004-03-15 Mark Kettenis <kettenis@gnu.org>
8664
8665 * i386-linux-tdep.c: Update copyright year.
8666 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
8667 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
8668 svr4_ilp32_link_map_offsets instead of
8669 i386_linux_svr4_fetch_link_map_offsets.
8670
8176b9b8
DC
86712004-03-15 David Carlton <carlton@kealia.com>
8672
8673 Fix for PR c++/1553:
8674 * dwarf2read.c (read_structure_type): Determine type name by
8675 calling determine_class_name.
8676 (determine_class_name): New.
8677 (determine_prefix): Look at TYPE_TAG_NAME and call
8678 determine_class_name when appropriate.
8679 (determine_prefix_aux, class_name): Delete.
9d58e29d 8680 (read_namespace): Set die->type.
8176b9b8 8681
fe8bf7d7
KB
86822004-03-15 Kevin Buettner <kevinb@redhat.com>
8683
8684 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
8685 unused macro definition. The definition in target.h (or perhaps
8686 elsewhere) takes precedence.
8687
ed6edd9b
AC
86882004-03-15 Andrew Cagney <cagney@redhat.com>
8689
f9be684a
AC
8690 * ppc-tdep.h: Update copyright.
8691 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
8692 function signatures to match "regsets.h".
8693 * ppc-linux-tdep.c: Include "regset.h".
8694 (ELF_GREGSET_SIZE): Delete.
8695 (right_supply_register): New function.
8696 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
8697 using right_supply_register.
8698 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
8699 functions.
8700 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
8701 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
8702 (_initialize_ppc_linux_tdep): Do not register
8703 ppc_linux_regset_core_fns.
8704 (ppc_linux_regset_from_core_section): Replace
8705 fetch_core_registers.
8706 (ppc_linux_regset_core_fns): Delete.
8707 * ppc-linux-nat.c: (right_fill_reg): New function.
8708 (supply_gregset): Update call to ppc_linux_supply_gregset.
8709 (fill_gregset): Clear the register set, use right_fill_reg.
8710 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
8711 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
8712
ed6edd9b
AC
8713 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
8714 unsigned.
8715
030f20e1
AC
87162004-03-15 Andrew Cagney <cagney@redhat.com>
8717
8718 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
8719 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
8720 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
8721 and register_gdbarch_data.
8722 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
8723 (struct gdbarch_data): Replace "init" by "pre_init" and
8724 "post_init".
8725 * gdbarch.h, gdbarch.c: Re-generate.
8726 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
8727 with"obstack", use OBSTACK_ZALLOC.
8728 (dwarf2_frame_ops): Delete.
8729 (dwarf2_frame_set_init_reg): Use gdbarch_data.
8730 (dwarf2_frame_init_reg): Use gdbarch_data.
8731 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 8732 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
8733 (_initialize_svr4_solib): Update.
8734 * user-regs.c (_initialize_user_regs): Update.
8735 * reggroups.c (_initialize_reggroup): Update.
8736 * regcache.c (_initialize_regcache): Update.
8737 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8738 * libunwind-frame.c (_initialize_libunwind_frame): Update.
8739 * gnu-v3-abi.c (init_gnuv3_ops): Update.
8740 * frame-unwind.c (_initialize_frame_unwind): Update.
8741 * frame-base.c (_initialize_frame_base): Update.
8742 * user-regs.c (user_reg_add): Update.
8743 * reggroups.c (reggroup_add): Update.
8744 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
8745 * libunwind-frame.c (libunwind_frame_set_descr): Update.
8746 * frame-unwind.c (frame_unwind_append_sniffer): Update.
8747 * frame-base.c (frame_base_table): Update.
8748 * remote.c (_initialize_remote): Update.
8749 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 8750
3111a3fc
AC
87512004-03-15 Andrew Cagney <cagney@redhat.com>
8752
8753 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
8754
5ecb7103
KB
87552004-03-15 Kevin Buettner <kevinb@redhat.com>
8756
8757 * Makefile.in (frv-linux-tdep.o): Add dependencies.
8758 * frv-linux-tdep.c: New file.
8759 * frv-tdep.c (struct gdbarch_tdep): Add new field
8760 ``sigcontext_reg_addr''.
8761 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
8762 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8763 (frv_sigramp_frame_sniffer): New functions.
8764 (frv_sigtramp_frame_unwind): New static global.
8765 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
8766 sniffers.
8767 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
8768 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
8769
1ccda5e9
KB
87702004-03-15 Kevin Buettner <kevinb@redhat.com>
8771
8772 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
8773 but not via a call to error(), when unable to read memory.
8774
b375a0a5
KB
87752004-03-15 Kevin Buettner <kevinb@redhat.com>
8776
8777 * frv-tdep.c (frv_call_dummy_words): Delete.
8778 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
8779
4fdf6121
AC
87802004-03-15 Andrew Cagney <cagney@redhat.com>
8781
8782 * infrun.c (handle_step_into_function, step_over_function): Only
8783 update and use STEP_FRAME_ID when the system is using legacy
8784 frames. Update comments.
8785
34021503
MK
87862004-03-14 Mark Kettenis <kettenis@gnu.org>
8787
187e21d1
MK
8788 * amd64-linux-tdep.h: Remove file.
8789 * amd64-linux-tdep.c: Don't include "inferior.h" and
8790 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
8791 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
8792 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
8793 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
8794 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
8795 macros.
8796 (user_to_gdb_regmap): Remove variable.
8797 (amd64_linux_gregset_reg_offset): New variable.
8798 (amd64_core_fns): Remove variable.
8799 (fetch_core_registers): Remove function.
8800 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
8801 functions.
8802 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
8803 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
8804 * Makefile.in (amd64_linux_tdep_h): Remove.
8805 (amd64-linux-nat.o): Update dependencies.
8806 (amd64-linux-tdep.o): Update dependencies.
8807
99679982
MK
8808 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
8809 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
8810 functions.
8811 (fetch_inferior_registers, store_inferior_registers): Rewrite.
8812
34021503
MK
8813 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
8814 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
8815
134d01f1
DJ
88162004-03-14 Daniel Jacobowitz <drow@mvista.com>
8817
8818 * dwarf2read.c (read_structure_type): Rename from
8718a420 8819 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
8820 Return immediately if die->type is set. Call read_type_die before
8821 dwarf2_add_member_fn.
8822 (process_structure_scope): New function.
8823 (read_enumeration_type, process_enumeration_scope): New functions,
8824 broken out from read_enumeration. Don't create the enumeration
8825 type if it has already been created.
8826 (read_enumeration): Removed.
8827 (process_die): Call read_structure_type, process_structure_scope,
8828 read_enumeration_type, and process_enumeration_scope. Just call
8829 new_symbol for base and subrange types. Add a comment about other
8830 type dies.
8831 (read_type_die): Call read_enumeration_type.
8832 (add_partial_structure, new_symbol): Update comments.
8833
65760afb
SC
88342004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8835
8836 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
8837
10f59415
SC
88382004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8839
8840 * tui/tui-win.h (tui_get_cmd_list): Declare.
8841 * tui/tui-win.c (tui_command): New function.
8842 (tui_get_cmd_list): New function.
8843 (_initialize_tui_win): Moved initialization of tui command in
8844 tui_get_cmd_list.
8845
8846 * tui/tui-data.c (init_content_element): Setup new data members.
8847 (init_win_info): Likewise.
8848 (free_content_elements): Free it.
8849 * tui/tui-data.h (struct tui_data_element): Store the register
8850 content to print.
8851 (struct tui_data_info): Keep the current register group.
8852
8853 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
8854
8855 * tui/tui-regs.h (tui_show_registers): Update prototype.
8856 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
8857 (tui_resize_all): No need to calculate anything for register window.
8858 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
8859 (tui_set_register_element, tui_set_general_regs_content): Remove.
8860 (tui_set_special_regs_content): Remove.
8861 (tui_set_general_and_special_regs_content): Remove.
8862 (tui_set_float_regs_content): Remove.
8863 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
8864 (tui_set_regs_content): Remove.
8865 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
8866 (tui_v_show_registers_command_support): Remove.
8867 (tui_show_registers): Use a reggroup to specify the registers to show.
8868 (tui_show_register_group): New function.
8869 (tui_display_registers_from): Compute the layout of register window
8870 and refresh with new API; be sure to delete old register windows.
8871 (tui_check_register_values): Update to use tui_get_register and
8872 tui_display_data.
8873 (tui_display_register): Just refresh the register window part.
8874 (tui_register_format): Format registers and save in tui_data_element.
8875 (tui_get_register): New to combine tui_reg_value_has_changed and
8876 tui_get_register_raw_value; fix to use the new gdb API.
8877 (tui_show_float_command): Renamed tui_reg_float_command.
8878 (tui_show_general_command): Renamed tui_reg_general_command.
8879 (tui_show_special_command): Renamed tui_reg_system_command.
8880 (_initialize_tui_regs): Remove unused commands.
8881
c3364ea4
MK
88822004-03-13 Mark Kettenis <kettenis@gnu.org>
8883
27d1e716
MK
8884 * NEWS (New native configurations): Mention OpenBSD/amd64.
8885
c3364ea4
MK
8886 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
8887 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
8888 Remove defines.
8889 * config/i386/nm-fbsd64.h: Likewise.
8890 * config/i386/nm-obsd.h: Likewise.
8891 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
8892 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
8893
b2d6d697
KB
88942004-03-12 Kevin Buettner <kevinb@redhat.com>
8895
8896 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
8897 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
8898 New constants.
8899
76e43199
KB
8900 From Richard Sandiford <rsandifo@redhat.com>:
8901 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
8902
34ce532e
KB
89032004-03-12 Kevin Buettner <kevinb@redhat.com>
8904
8905 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
8906 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
8907 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
8908 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
8909 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
8910 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
8911 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
8912 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
8913 definitions from frv-tdep.c to frv-tdep.h.
8914
c4d10515
KB
89152004-03-12 Kevin Buettner <kevinb@redhat.com>
8916
8917 Add shared library support for FR-V FDPIC ABI:
8918 * Makefile.in (solib-frv.o): Add dependencies.
8919 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
8920 New functions.
8921 (frv_push_dummy_call): Add support for FDPIC ABI.
8922 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
8923 for FDPIC ABI.
8924 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
8925 (frv_fdpic_find_canonical_descriptor): Declare.
8926 * solib-frv.c: New file.
8927 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
8928 * config/frv/tm-frv.h (solib.h): Include.
8929
ed1bd989
KB
89302004-03-12 Kevin Buettner <kevinb@redhat.com>
8931
8932 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
8933 (frv-tdep.o): Update dependencies.
8934 * frv-tdep.h: New file.
8935 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
8936 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
8937 constants.
8938 (struct gdbarch_tdep): Add new member ``frv_abi''.
8939 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
8940 functions.
8941 (new_variant): Set ``frv_abi'' field.
8942 (gdb_arch_init): Detect FDPIC executables.
8943
82b38f72
MK
89442004-03-12 Mark Kettenis <kettenis@gnu.org>
8945
8946 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
8947 wrapper.
8948
db1ea9ba
AC
89492004-03-11 Andrew Cagney <cagney@redhat.com>
8950
8951 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
8952
f8766ec1
KB
89532004-03-11 Kevin Buettner <kevinb@redhat.com>
8954
8955 * solist.h (master_so_list): New function.
8956 * solib.c (master_so_list): Likewise.
8957 * solib-svr4.c (enable_break): Iterate over so_list entries
8958 obtained from master list instead of entries obtained directly
8959 via svr4_current_sos().
8960
523f6a27
BE
89612004-03-10 Ben Elliston <bje@gnu.org>
8962
8963 * MAINTAINERS: Update my mail address.
8964
37814c18
KI
89652004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
8966
8967 * remote-m32r-sdi.c: Support hardware watchpoint.
8968
8b9740d8
DJ
89692004-03-09 Daniel Jacobowitz <drow@mvista.com>
8970
8971 * user-regs.c: Update copyright years.
8972 (struct user_regs): Rename to gdb_user_regs.
8973 (append_user_reg, builtin_user_regs, user_regs_init)
8974 (user_reg_add, user_reg_map_name_to_regnum)
8975 (usernum_to_user_reg): Update.
8976
4bb7a0a7
DJ
89772004-03-09 Daniel Jacobowitz <drow@mvista.com>
8978
8979 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
8980 (skip_children): New functions.
8981 (locate_pdi_sibling): Call skip_children.
8982
44e1a9eb
DJ
89832004-03-09 Daniel Jacobowitz <drow@mvista.com>
8984
8985 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
8986 * gdbtypes.c (check_typedef): Update comments.
8987
f3dd6933
DJ
89882004-03-09 Daniel Jacobowitz <drow@mvista.com>
8989
8990 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
8991 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
8992 pointer. Update comment about comp_unit_head.
8993 (struct abbrev_info): Shorten two int flags.
8994 (dwarf_alloc_abbrev): Take a CU argument.
8995 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
8996 each time through the loop. Update cleanup argument.
8997 (psymtab_to_symtab_1): Update cleanup call.
8998 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
8999 abbrev_obstack.
9000 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
9001 Just call obstack_free and clear the pointer.
9002
b40c7d58
DJ
90032004-03-09 Daniel Jacobowitz <drow@mvista.com>
9004
9005 * infrun.c (handle_inferior_event): Remove short-circuit code for
9006 events in a different thread.
9007
333dabeb
DJ
90082004-03-09 Daniel Jacobowitz <drow@mvista.com>
9009
9010 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
9011 print the whole transfer.
9012 (initialize_targets): Update description of "set debug target".
9013
aa17d93e
DJ
90142004-03-09 Daniel Jacobowitz <drow@mvista.com>
9015
9016 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
9017
0b71f08f
NW
90182004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
9019
9020 * MAINTAINERS (write after approval): Add myself.
9021
3930f270
CV
90222004-03-08 Corinna Vinschen <vinschen@redhat.com>
9023
9024 * sh-tdep.c (sh_print_registers_info): Use for loop.
9025 Don't skip multiple registers when a float register is encountered.
9026
a2b4a96c
CV
90272004-03-08 Corinna Vinschen <vinschen@redhat.com>
9028
9029 Fix PR tdep/1291.
9030 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
9031 to official SH documentation.
9032
f15a4bc0
AC
90332004-03-07 Andrew Cagney <cagney@redhat.com>
9034
9035 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
9036 unused function.
9037
9498281f
DJ
90382004-03-07 Daniel Jacobowitz <drow@mvista.com>
9039
9040 * arm-tdep.c (thumb_get_next_pc): Handle BX.
9041 (arm_get_next_pc): Handle BX and BLX.
9042
449e1137
AC
90432004-03-07 Andrew Cagney <cagney@redhat.com>
9044
eded0a31
AC
9045 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
9046 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
9047 HPPA_SP_REGNUM.
9048 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
9049 (hppa_target_read_fp): Delete.
9050 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
9051 register_virtual_size, max_register_raw_size,
9052 max_register_virtual_size, register_byte, register_size,
9053 target_read_fp, fp_regnum, and register_bytes. Set register_type
9054 instead of register_virtual_type.
9055 (hppa32_register_type, hppa64_register_type): Replace
9056 hppa32_register_virtual_type and hppa64_register_virtual_type.
9057 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
9058 (HPPA_FP_REGNUM): Define.
9059
f5f907e2
AC
9060 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
9061
69b4bbe4
AC
9062 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
9063 (pa_do_registers_info): Delete.
9064 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 9065 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 9066 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 9067
78161e48
AC
9068 * infcall.c (legacy_push_dummy_code): Delete #ifdef
9069 GDB_TARGET_IS_HPPA code.
9070 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 9071 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
9072 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
9073 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
9074 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
9075 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
9076 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 9077 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
9078 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
9079 (hppa_frameless_function_invocation, hppa64_store_return_value)
9080 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 9081 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 9082 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 9083 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
9084 (find_proc_framesize, deposit_21, restore_pc_queue)
9085 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 9086 (rp_saved, pc_in_linker_stub): Delete.
78161e48 9087
782eae8b
AC
9088 Unconditionally enable 64-bit frame and ABI code.
9089 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
9090 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
9091 push_dummy_frame, fix_call_dummy, push_arguments,
9092 call_dummy_location, extract_return_value, use_struct_convention,
9093 store_return_value, store_struct_return, saved_pc_after_call,
9094 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
9095 frame_chain, frame_chain_valid, frameless_function_invocation,
9096 frame_saved_pc, and pop_frame.
78161e48 9097
449e1137
AC
9098 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
9099 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
9100 (hppa_gdbarch_init): Do not set PC_REGNUM.
9101
12507572
MK
91022004-03-06 Mark Kettenis <kettenis@gnu.org>
9103
9104 * config/alpha/tm-fbsd.h: Remove file.
9105 * config/alpha/fbsd.mt: Tweak comment.
9106 (TM_FILE): Set to tm-alpha.h.
9107
c107cc1b
AC
91082004-03-05 Andrew Cagney <cagney@redhat.com>
9109
9110 * infrun.c (step_over_function): When non-legacy code, and no
9111 step_frame_id, use the unwinder to get the caller's frame ID.
9112
f2e7c15d
MK
91132004-03-05 Mark Kettenis <kettenis@gnu.org>
9114
8b0c3633
MK
9115 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
9116 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
9117 bfd_arch_unknown. Adjust comment.
9118
f2e7c15d
MK
9119 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
9120 * i386obsd-tdep.c: Correct spelling in comment.
9121 * i386nbsd-tdep.c: Correct spelling in comment.
9122 * sparc-tdep.c: Correct spelling in comments.
9123
1198ecbe
DC
91242004-03-05 David Carlton <carlton@kealia.com>
9125
9126 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
9127 bug.
9128
9eb42ed1
MK
91292004-03-05 Mark Kettenis <kettenis@gnu.org>
9130
9131 * sparc-tdep.c: Fix typo in comment.
9132
52b5e991
JB
91332004-03-04 J. Brobecker <brobecker@gnat.com>
9134
9135 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
9136
d8151005
DJ
91372004-03-04 Daniel Jacobowitz <drow@mvista.com>
9138
9139 * dwarf2read.c: Add comment describing memory lifetimes.
9140 (struct dwarf2_pinfo): Update comment.
9141 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
9142 (read_enumeration, new_symbol): Don't use obsavestring.
9143
cbeae229
MK
91442004-03-04 Mark Kettenis <kettenis@gnu.org>
9145
722d18c2
MK
9146 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
9147 instead of amd64_fill_fxsave.
9148 * amd64bsd-nat.c (store_inferior_registers): Likewise.
9149 * amd64fbsd-nat.c (fill_fpregset): Likewise.
9150
cbeae229
MK
9151 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
9152 Reorganize code a bit.
9153
b4206d25
OF
91542004-03-04 Orjan Friberg <orjanf@axis.com>
9155
9156 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
9157 when the frame pointer is pushed. Don't set the frame pointer's
9158 address on the stack unless it's actually located there.
b4206d25
OF
9159 Set the SRP's address on the stack correctly when the PC is still in
9160 the prologue.
9161 (cris_return_value): New function.
9162 (cris_gdbarch_init): Clear deprecated store_return_value,
9163 extract_return_value.
9164
49b0b195
JB
91652004-03-02 Jim Blandy <jimb@redhat.com>
9166
9167 * stabsread.c (reg_value_complaint): The maximum register number
9168 is one less than the number of registers.
9169
e9ff708b
AC
91702004-03-02 Andrew Cagney <cagney@redhat.com>
9171
9172 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
9173 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
9174 trailing comma and redundant assignment of I386_ST0_REGNUM.
9175 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
9176 32-bit segment registers.
9177
d4715e41
AC
91782004-03-01 Andrew Cagney <cagney@redhat.com>
9179
9180 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
9181 use frame_relative_level and get_next_frame.
9182
3ce2bf18
AC
91832004-02-29 Andrew Cagney <cagney@redhat.com>
9184
9185 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
9186 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
9187 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
9188 Delete macro.
9189
2da6aac3
DJ
91902004-02-29 Daniel Jacobowitz <drow@mvista.com>
9191
9192 * inflow.c (terminal_inferior): Don't give up the terminal if we
9193 previously couldn't get the inferior's terminal state.
9194
6ba34a8d
DJ
91952004-02-29 Daniel Jacobowitz <drow@mvista.com>
9196
9197 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
9198 PC_REGNUM.
9199
faae5abe
AC
92002004-02-28 Andrew Cagney <cagney@redhat.com>
9201
9202 * NEWS: Refer to GDB 6.1.
9203 * README: Refer to GDB 6.1.
9204 * PROBLEMS: Refer to GDB 6.1.
9205
2227a3c5
DJ
92062004-02-28 Daniel Jacobowitz <drow@mvista.com>
9207
9208 * thread-db.c (disable_thread_signals): Remove unused function.
9209
80571bff
MK
92102004-02-28 Mark Kettenis <kettenis@gnu.org>
9211
041bd74b
MK
9212 * amd64-nat.c: Include "gdb_string.h".
9213 (amd64_collect_native_gregset): Zero-extend the 32-bit
9214 general-purpose registers and %eip.
9215
3c017e40
MK
9216 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
9217 * amd64-tdep.c (amd64_collect_fxsave): New function.
9218 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
9219
80571bff
MK
9220 * i387-tdep.h: Update copyright year.
9221 (i387_collect_fxsave): New prototype.
9222 * i387-tdep.c: Update copyright year.
9223 (i387_collect_fxsave): New function containing most of the code
9224 from i387_fill_fxsave.
9225 (i387_fill_fxsave): Call i387_collect_fxsave.
9226
50d71875
AC
92272004-02-28 Andrew Cagney <cagney@redhat.com>
9228
9229 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
9230 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
9231
4a28816e
MK
92322004-02-28 Mark Kettenis <kettenis@gnu.org>
9233
9234 * amd64-tdep.c (amd64_frame_cache): Fix comment.
9235
dbda9972
AC
92362004-02-28 Andrew Cagney <cagney@redhat.com>
9237
9238 * utils.c: Use "", instead of <>, to include readline.
9239 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
9240 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
9241 * source.c, solib.c, exec.c, event-top.c: Ditto.
9242 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
9243 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
9244 * Makefile.in: Update all dependencies.
9245 (readline_tilde_h, readline_history_h): Define.
9246 (readline_headers): Delete.
9247
83277a99
MK
92482004-02-28 Mark Kettenis <kettenis@gnu.org>
9249
91ae4303
MK
9250 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
9251 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
9252 "config/i386/tm-lx64.h".
9253
83277a99
MK
9254 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
9255 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
9256 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
9257
6e1d7d6c
AC
92582004-02-28 Andrew Cagney <cagney@redhat.com>
9259
ecc9ac84
AC
9260 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
9261
6e1d7d6c
AC
9262 * breakpoint.c (_initialize_breakpoint): Use
9263 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
9264 Add help to show command.
9265
9671aeef
MK
92662004-02-28 Mark Kettenis <kettenis@gnu.org>
9267
7fa2737c
MK
9268 * i386-nat.c: Reformat to be closer to coding standards.
9269 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
9270 `retval'. Make variables `align' and `size' local to while-loop.
9271 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
9272 (_initialize_i386_nat): New prototype.
9273
9671aeef
MK
9274 * tui/tui.c: Include <readline/readline.h> instead of
9275 "readline/readline.h". Include it after <term.h> and
9276 "gdb_curses.h".
9277
fca7aa43
AC
92782004-02-27 Andrew Cagney <cagney@redhat.com>
9279
412275d5
AC
9280 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
9281 the new frame unwind code.
9282 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
9283 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
9284 PCOQ_HEAD_REGNUM.
9285
fca7aa43
AC
9286 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
9287 "return_value" and "push_dummy_call".
9288 (hppa32_use_struct_convention): Delete unused function.
9289 (hppa32_store_return_value): Delete unused function.
9290 (hppa32_extract_return_value): Delete unused function.
9291 (hppa32_stack_align): Delete function.
9292
e6a8a7d2
EZ
92932004-02-27 Eli Zaretskii <eliz@elta.co.il>
9294
9295 * coffread.c (enter_linenos): Don't let rawptr reference memory
9296 outside linetab[]'s limits.
9297
1797a8f6
AC
92982004-02-27 Andrew Cagney <cagney@redhat.com>
9299
9300 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
9301 inferior stack space - the stack needs to grow upwards.
9302 (hppa32_frame_align): New function.
9303 (hppa64_frame_align): Replace hppa_frame_align.
9304 (hppa_gdbarch_init): Update.
9305
2e4b5889
OF
93062004-02-26 Orjan Friberg <orjanf@axis.com>
9307
9308 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
9309 (dwarf2-frame.h): Include.
9310 (enum cris_regnums): New enum CRIS_FP_REGNUM.
9311 Remove static variables related to ABI setting.
9312 (struct gdbarch_tdep): Remove cris_abi member.
9313 (struct frame_extra_info): Remove.
9314 (cris_unwind_cache, stack_item): New structs.
9315 (cris_frame_unwind, cris_frame_base): New variables.
9316 (push_stack_item, pop_stack_item)
9317 (cris_frame_unwind_cache, cris_frame_this_id)
9318 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
9319 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
9320 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
9321 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
9322 (cris_reg_struct_has_addr): New functions.
9323 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 9324 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
9325 (cris_store_struct_return, cris_frameless_function_invocation)
9326 (cris_pop_frame, cris_skip_prologue_main)
9327 (cris_abi_original_store_return_value)
9328 (cris_abi_v2_store_return_value)
9329 (cris_abi_original_extract_return_value)
9330 (cris_abi_v2_extract_return_value)
9331 (cris_abi_original_reg_struct_has_addr)
9332 (cris_abi_v2_reg_struct_has_addr)
9333 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
9334 (cris_push_return_address, cris_abi_update): Remove.
9335 (_initialize_cris_tdep): Remove ABI command.
9336 (cris_dump_tdep): Ditto.
8718a420 9337 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
9338 Set store_return_value, extract_return_value, push_dummy_code,
9339 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
9340 frame_unwind_append_sniffer, frame_base_set_default.
9341 Clear deprecated init_frame_pc, push_arguments, store_return_value,
9342 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
9343 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 9344 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
9345 init_extra_frame_info, frameless_function_invocation, frame_chain,
9346 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
9347 dummy_write_sp.
8718a420 9348
6b9acc27
JJ
93492004-02-26 Jeff Johnston <jjohnstn@redhat.com>
9350
9351 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
9352 * valprint.c (print_hex_chars): Change from static to external.
9353 (print_char_chars): New function.
9354 * printcmd.c (print_scalar_formatted): For integer and enum types
9355 that are longer than LONGEST, perform processing via appropriate
9356 print_*_chars routines.
9357
a431654a
AC
93582004-02-26 Andrew Cagney <cagney@redhat.com>
9359
9360 * Makefile.in: Update dependencies.
9361 Changes from Ulrich Weigand,
9362 * s390-tdep.c: Include "dwarf2-frame.h".
9363 (s390_dwarf2_frame_init_reg): New function.
9364 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
9365 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
9366
fa8d40ab
JJ
93672004-02-26 Jeff Johnston <jjohnstn@redhat.com>
9368
9369 * breakpoint.c (pending_break_support): New setting variable.
9370 (break_command_1): Account for pending_break_support setting
9371 when creating pending breakpoints.
9372 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
9373 (_initialize_breakpoint): Add "set breakpoint pending" and
9374 "show breakpoint pending" commands.
9375
0dcd613f
AC
93762004-02-26 Andrew Cagney <cagney@redhat.com>
9377
9378 Fix PR i18n/1570.
9379 * charset.c (backslashable, backslashed, represented): Remove 'e'
9380 from list of escaped characters, not part of ISO-C.
9381
479272a3
JB
93822004-02-25 J. Brobecker <brobecker@gnat.com>
9383
9384 From Peter Schauer <schauer@pdf.de>:
9385 * tui/tui.c: Move system header includes after local includes.
9386 Fixes a build failure on solaris systems.
9387
7613d933
JB
93882004-02-25 J. Brobecker <brobecker@gnat.com>
9389
9390 * configure.in: Refine the previous change.
9391 * configure: Regenerate.
9392
9c1488cb
MK
93932004-02-25 Mark Kettenis <kettenis@gnu.org>
9394
9395 * amd64-tdep.h: Renamed from x86-64-tdep.h.
9396 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
9397 "amd64-tdep.h" instead of "x86-64-tdep.h".
9398 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9399 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
9400 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
9401 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9402 and "x86-64-tdep.c".
9403 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
9404 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9405 and "x86-64-tdep.c".
9406 * amd64bsd-nat.c: Update copyright year.
9407 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9408 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
9409 "x86-64-tdep.h".
9410 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
9411 "x86-64-tdep.h".
9412 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
9413 "x86-64-tdep.h".
9414 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
9415 "x86-64-tdep.h".
9416 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
9417 "x86-64-tdep.h".
9418 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
9419 "x86-64-tdep.h".
8718a420 9420 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
9421 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
9422 * Makefile.in (amd64_linux_tdep_h): Renamed from
9423 x86_64_linux_tdep_h.
9424 (amd64_tdep_h): Renamed from x86_64_tdep_h.
9425 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
9426 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
9427 (amd64obsd-tdep.o): Update dependencies.
9428 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
9429 dependencies.
9430 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
9431 dependencies.
9432 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
9433 amd64-linux-nat.c amd64-linux-tdep.c.
9434 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
9435 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
9436 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
9437 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
9438 amd64-tdep.o and amd64-linux-tdep.o.
9439 (TM_FILE): Set to tm-linux64.h.
9440 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
9441 (NAT_FILE): Set to nm-linux64.h.
9442 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
9443 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9444 amd64-tdep.o.
9445 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9446 amd64-tdep.o.
9447 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9448 amd64-tdep.o.
9449
4b8dad4a
RM
94502004-02-25 Roland McGrath <roland@redhat.com>
9451
9452 * remote.c (remote_protocol_qPart_auxv): New variable.
9453 (init_all_packet_configs): Initialize it.
9454 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
9455 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
9456 (show_remote_cmd): Call it.
9457 (_initialize_remote): Initialize commands.
9458 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
9459 service TARGET_OBJECT_AUXV requests.
9460
66745969
JB
94612004-02-25 J. Brobecker <brobecker@gnat.com>
9462
9463 * configure.in: Make sure that the wborder function is available.
9464 Otherwise, search for it in the cur_colr library.
9465 * configure: Regenerate.
9466
79508e1e
AC
94672004-02-25 Andrew Cagney <cagney@redhat.com>
9468
9469 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
9470
571ee600
MK
94712004-02-25 Mark Kettenis <kettenis@gnu.org>
9472
9473 * config/i386/tm-x86-64linux.h: Tweak comments.
9474
2b1b322f 94752004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
9476
9477 * MAINTAINERS: Add self to write-after-approval list.
9478
4d2acc65
AC
94792004-02-25 Andrew Cagney <cagney@redhat.com>
9480
4b8dad4a 9481 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
9482 * cli/cli-script.c (execute_control_command): Unconditionally
9483 install a cleanup. Default "ret" to "invalid_control". Use
9484 "break" instead of "return" to escape from the switch.
9485
4cfcaf21
JB
94862004-02-24 J. Brobecker <brobecker@gnat.com>
9487
9488 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
9489 with the lines macro defined in term.h on AiX.
9490 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
9491 a collision with the label_width macro defined in term.h on AiX.
9492
54a5c8d8
KB
94932004-02-23 David Mosberger <davidm@hpl.hp.com>
9494
9495 Committed by Kevin Buettner <kevinb@redhat.com>.
9496
9497 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
9498 * ia64-tdep.c (ia64_write_pc): Make it a global function.
9499 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
9500 instead of ia64_write_pc().
9501 * ia64-linux-tdep.c (regcache.h): Include.
9502 (ia64_linux_write_pc): New function.
4b8dad4a 9503
8a1dac83
RM
95042004-02-23 Roland McGrath <roland@redhat.com>
9505
9506 * auxv.c (info_auxv_command): Fix typos in error messages.
9507
90f90721
MK
95082004-02-23 Mark Kettenis <kettenis@gnu.org>
9509
8a1dac83 9510 * x86-64-tdep.h: Tweak comment.
90f90721
MK
9511 (enum amd64_regnum): New.
9512 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
9513 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
9514 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
9515 (X86_64_XMM1_REGNUM): Removed.
9516 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
9517 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
9518 prototypes for renamed functions.
9519 * x86-64-tdep.c: Fix typo.
9520 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
9521 register numbers.
9522 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
9523 Use constants from `enum amd64_regnum' for register numbers.
9524 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
9525 (amd64_analyze_prologue, amd64_frame_cache,
9526 amd64_sigtramp_frame_cache): Use constants from `enum
9527 amd64_regnum' for register numbers.
9528 (amd64_supply_fpregset): Adjust for renamed functions.
9529 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
9530 `enum amd64_regnum' for register numbers.
9531 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
9532 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
9533 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
9534 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
9535 (amd64_linux_fill_gregset): Adjust for renamed macros.
9536 (fetch_core_registers): Adjust for renamed functions.
9537 (amd64_linux_init_abi): Adjust for renamed functions.
9538 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
9539 renamed functions.
9540 * amd64-nat.c: Adjust for renamed macros.
9541 * amd64bsd-nat.c (fetch_inferior_registers)
9542 (store_inferior_registers): Use constants from `enum amd64_regnum'
9543 for register numbers. Adjust for renamed variables.
9544 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
9545 renamed variables.
9546 (_initialize_amd64fbsd_nat): Use constants from `enum
9547 amd64_regnum' for register numbers.
9548 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
9549 `enum amd64_regnum' for register numbers.
9550 (amd64fbsd_init_abi): Adjust for renamed functions.
9551 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
9552 `enum amd64_regnum' for register numbers.
9553 (amd64nbsd_init_abi): Adjust for renamed functions.
9554 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
9555 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
9556 `enum amd64_regnum' for register numbers.
9557 (amd64obsd_init_abi): Adjust for renamed functions.
9558 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
9559
d5479188
JJ
95602004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9561
9562 * breakpoint.c (print_one_breakpoint): Do not output spaces
9563 after printing <PENDING> for a pending breakpoint.
9564
81cb7cc9
JJ
95652004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9566
9567 * printcmd.c (print_scalar_formatted): Initialize val_long
9568 to remove compiler warning message.
9569
cbdeadca
JJ
95702004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9571
9572 * defs.h (nquery, yquery): New prototypes.
9573 * breakpoint.c (break_command_1): Use new nquery interface.
9574 * utils.c (defaulted_query, nquery, yquery): New functions.
9575
da6bab63
AC
95762004-02-23 Andrew Cagney <cagney@redhat.com>
9577
2f690297
AC
9578 * hppa-tdep.c (hppa_frame_align): New function.
9579 (hppa32_push_dummy_call): New function.
9580 (hppa64_push_dummy_call): New function.
9581 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
9582 disabled.
8a1dac83 9583
da6bab63
AC
9584 * infcall.c (legacy_push_dummy_code): Don't call deprecated
9585 FIX_CALL_DUMMY when push_dummy_call is available.
9586 (call_function_by_hand, push_dummy_code): Ditto.
9587
abf9b42d
AC
95882004-02-22 Andrew Cagney <cagney@redhat.com>
9589
9590 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
9591 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
9592 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
9593 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
9594 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
9595 call_dummy_location to ON_STACK.
9596
10fc94a4
MK
95972004-02-22 Mark Kettenis <kettenis@gnu.org>
9598
51433e4b
MK
9599 * x86-64-linux-tdep.c: Tweak comment.
9600 (amd64_linux_supply_gregset): Renamed from
9601 x86_64_linux_supply_gresget.
9602 (amd64_linux_fill_gregset): Renamed from
9603 x86_64_linux_fill_gregset.
9604 (fetch_core_registers): Adjust for renamed functions.
9605 (amd64_core_fns): Renamed from x86_64_core_fns.
9606 (amd64_linux_sigtramp_start): Renamed from
9607 x86_64_linux_sigtramp_start.
9608 (amd64_linux_pc_in_sigtramp): Renamed from
9609 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
9610 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
9611 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
9612 (amd64_linux_sigcontext_addr): Renamed from
9613 x86_64_linux_sigcontext_addr.
9614 (amd64_linux_sc_reg_offset): Renamed from
9615 x86_64_linux_sc_reg_offset.
9616 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
9617 Adjust for renamed functions and variables.
9618 (_initialize_amd64_linux_tdep): Renamed from
9619 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
9620 variables.
9621 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
9622 Adjust for renamed functions.
9623
430eaf2e
MK
9624 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
9625 from x86_64_linux_gregset64_reg_offset.
9626 (amd64_linux_gregset32_reg_offset): Rename from
9627 x86_64_linux_gregset64_reg_offset.
9628 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
9629 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
9630 (amd64_linux_dr_set_control): Renamed from
9631 x86_64_linux_dr_set_control. Adjust for renamed functions.
9632 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
9633 Adjust for renamed functions.
9634 (amd64_linux_dr_reset_addr): Renamed from
9635 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
9636 (amd64_linux_dr_get_status): Renamed from
9637 x86_64_linux_dr_get_status. Adjust for renamed functions.
9638 (_initialize_amd64_linux_nat): Renamed from
9639 _initialize_x86_64_linux_nat. Adjust for renamed variables and
9640 functions.
9641 * config/i386/nm-x86-64linux.h: Update copyright year.
9642 Adjust for renamed functions.
9643
10fc94a4
MK
9644 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
9645 amd64fbsd_sigtramp_start.
9646 (amd64fbsd_sigtramp_end_addr): Renamed from
9647 amd64fbsd_sigtramp_end.
9648 (amd64fbsd_init_abi): Adjust for renamed variables.
9649 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
9650 variables.
9651 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
9652 amd64fbsd_sigtramp_start.
9653 (amd64fbsd_sigtramp_end_addr): Renamed from
9654 amd64fbsd_sigtramp_end.
9655
343af405
AC
96562004-02-22 Andrew Cagney <cagney@redhat.com>
9657
537987fc
AC
9658 * hppa-tdep.c (hppa32_return_value): New function.
9659 (hppa64_return_value): New function.
9660 (hppa_gdbarch_init): Set return_value; keep disabled.
9661
fad850b2
AC
9662 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
9663 struct-return and inferior function call methods.
9664
26d08f08
AC
9665 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9666 "frame-base.h".
9667 (struct hppa_frame_cache): Define.
9668 (hppa_frame_cache, hppa_frame_this_id): New functions.
9669 (hppa_frame_prev_register): New function.
9670 (hppa_frame_unwind, hppa_frame_base): New variables.
9671 (hppa_frame_unwind_sniffer): New function.
9672 (hppa_frame_base_address, hppa_unwind_pc): New function.
9673 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
9674 sniffer, and frame base sniffer; keep disabled.
9675 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
9676 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
9677
e7d7bd65
AC
9678 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
9679 to predicates for "seriously old code".
9680
e963316f
AC
9681 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
9682 runtime if(0).
9683
56132691
AC
9684 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
9685 unsigned.
9686 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 9687
343af405
AC
9688 * config/pa/tm-hppa.h: Update copyright.
9689 (DEPRECATED_INIT_FRAME_PC): Delete macro.
9690 (deprecated_init_frame_pc_default): Delete declaration.
9691 (hppa_frame_init_saved_regs): Delete declaration.
9692 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9693 * hppa-tdep.c: Include "arch-utils.h".
9694 (hppa_gdbarch_init): Set deprecated init_frame_pc
9695 and deprecated frame_init_saved_regs.
9696 (hppa_frame_init_saved_regs): Make static.
9697
f5859b4d
MK
96982004-02-22 Mark Kettenis <kettenis@gnu.org>
9699
86f6f8e7 9700 Remove old 386BSD support.
cf7c5c23 9701 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
9702 * configure.host: Remove i[34567]86-*-bsd*.
9703 * configure.tgt: Remove i[34567]86-*-bsd*.
9704 * i386b-nat.c: Removed.
9705 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
9706 (i386b-nat.o): Remove dependencies.
9707
86f6f8e7
MK
9708 * config/i386/i386bsd.mh: Removed.
9709 * config/i386/i386bsd.mt: Removed.
9710 * config/i386/nm-i386bsd.h: Removed.
9711 * config/i386/tm-i386bsd.h: Removed.
9712 * config/i386/xm-i386bsd.h: Removed.
9713
971218cd
MK
9714 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
9715
7e654c37
MK
9716 * amd64fbsd-tdep.c: Include "solib-svr4.h".
9717 (amd64fbsd_init_abi): Set link map offsets.
9718 * amd64nbsd-tdep.c: Include "slib-svr4.h".
9719 (amd64nbsd_init_abi): Set link map offsets.
9720 * amd64obsd-tdep.c: Include "solib-svr4.h".
9721 (amd64obsd_init_abi): Set link map offsets.
9722 * i386fbsd-tdep.c: Include "solib-svr4.h".
9723 (i386fbsd_init_abi): Set link map offsets.
9724 * i386nbsd-tdep.c: Include "solib-svr4.h".
9725 (i386nbsdelf_init_abi): Set link map offsets.
9726 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
9727 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
9728 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
9729 solib-legacy.o and core-aout.o. Reformat.
9730 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
9731 solib-svr4.o, solib-legacy.o. Reformat.
9732 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
9733 * config/i386/nbsdelf.mh: Reformat.
9734 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
9735 solib-svr4.o, solib-legacy.o and corelow.o.
9736 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
9737 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
9738 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
9739 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9740 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9741 (TM_FILE): Set to tm-fbsd.h.
9742 * config/i386/nbsd.mt (TDEPFILES): Reformat.
9743 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
9744 solib-svr4.o.
9745 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
9746 solib-svr4.o.
9747 (TM_FILE): Set to nm-nbsd.h.
9748 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
9749 Simplify shared library support. Don't include "elf/common.h".
9750 (SVR4_SHARED_LIBS): Don't define.
9751 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
9752 "solib.h".
9753 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
9754 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
9755 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
9756 Don't include "i386/tm-i386.h". Include "solib.h".
9757 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
9758 Don't include "i386/tm-i386.h".
9759 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
9760 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
9761 Include "i386/xm-i386.h".
9762 (HOST_LONG_DOUBLE_FORMAT): Remove.
9763
5d93ae8c
MK
9764 Fix OpenBSD/i386 sigtramp recognition.
9765 * i386-tdep.h: Update copyright year.
9766 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
9767 (i386bsd_sigtramp_end): New prototypes.
9768 (i386fbsd_sigtramp_start_addr): Renamed from
9769 i386fbsd_sigtramp_start.
9770 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9771 (i386obsd_sigtramp_start_addr): Renamed from
9772 i386obsd_sigtramp_start.
9773 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9774 * i386bsd-tdep.c: Update copyright year.
9775 (i386bsd_pc_in_sigtramp): Make public.
9776 * i386fbsd-nat.c: Update copyright year.
9777 (_initialize_i386fbsd_nat): Adjust for renamed variables.
9778 * i386fbsd-tdep.c: Update copyright year.
9779 (i386fbsd_sigtramp_start_addr): Renamed from
9780 i386fbsd_sigtramp_start.
9781 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9782 (i386fbsdaout_init_abi): Adjust for renamed variables.
9783 * i386obsd-nat.c: Update copyright year.
9784 (_initialize_i386obsd_nat): Adjust for renamed variables.
9785 * i386obsd-tdep.c: Include "target.h".
9786 (i386obsd_page_size): New variable.
9787 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
9788 (i386obsd_sigtramp_end): New functions.
9789 (i386obsd_sigtramp_start_addr): Renamed from
9790 i386obsd_sigtramp_start.
9791 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9792 (i386obsd_init_abi): Adjust for renamed variables. Set
9793 pc_in_sigtramp, sigtramp_start and sigtramp_end.
9794 * Makefile.in (i386obsd-tdep.o): Update dependencies.
9795
84d04465
MK
9796 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
9797 trampoline change in OpenBSD kernel.
9798
b053aceb
MK
9799 * amd64-nat.c: Update copyright year.
9800 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
9801 architecture from REGCACHE.
9802
f5859b4d
MK
9803 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
9804 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
9805
e4bbbda8
MK
98062004-02-21 Mark Kettenis <kettenis@gnu.org>
9807
ba361932
MK
9808 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
9809 i[34567]86-*-openbsd3.[0-3].
9810 * config/i386/obsdaout.mh: New file.
9811
d3e48264
MK
9812 * config/i386/obsd.mh (MH_FLAGS): Remove.
9813
60a6eeb6
MK
9814 Fix PR build/1549.
9815 * i386obsd-tdep.c: Update copyright years. Include
9816 "solib-svr4.h".
9817 (i386obsd_init_abi): Don't set regset_from_core_section here.
9818 (i386obsd_aout_init_abi): New function. Set
9819 regset_from_core_section here.
9820 (i386obsd_elf_init_abi): New function.
9821 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
9822 * Makefile.in (i386obsd-tdep.o): Update dependecies.
9823 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9824 (TM_FILE): Set to tm-nbsd.h.
9825
9826 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
9827 solib-sunos.o.
9828
e4bbbda8
MK
9829 * solib-svr4.h: Update copyright year.
9830 (svr4_ilp32_fetch_link_map_offsets)
9831 (svr4_lp64_fetch_link_map_offsets): New prototype.
9832 * solib-svr4.c: Update copyright year.
9833 (svr4_ilp32_fetch_link_map_offsets)
9834 (svr4_lp64_fetch_link_map_offsets): New function.
9835
f6fe98ef
DJ
98362004-02-20 Daniel Jacobowitz <drow@mvista.com>
9837
9838 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
9839 to the partial symbol table.
9840
589ca796
JB
98412004-02-20 J. brobecker <brobecker@gnat.com>
9842
9843 * PROBLEMS: Add description of problem documented under gdb/1560.
9844
2031c21a
MK
98452004-02-20 Mark Kettenis <kettenis@gnu.org>
9846
30b344b1
MK
9847 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
9848 comments.
9849 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
9850 functions.
9851 (amd64obsd_init_abi): Reorder initializations. Use
9852 amd64obsd_r_reg_offset to initialize the general-purpose register
9853 set details. Set regset_from_core_section.
9854 (_initialize_amd64obsd_tdep): Rename from
9855 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
9856 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
9857 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
9858
2031c21a
MK
9859 * NEWS (New native configurations): Mention OpenBSD/alpha.
9860 * configure.tgt: Add alpha*-*-openbsd*.
9861 * configure.host: Add alpha*-*-openbsd*.
9862 * alphanbsd-tdep.c: Update copyright year.
9863 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
9864
42471775
AC
98652004-02-20 Andrew Cagney <cagney@redhat.com>
9866
9867 Fix PR tdep/1372.
9868 * configure.tgt: Delete target "none-*-*".
9869 * configure.host: Delete host "none-*-*".
9870 * config/none/none.mh: Delete file.
9871 * config/none/none.mt: Delete file.
9872 * config/none/xm-none.h: Delete file.
9873 * config/none/tm-none.h: Delete file.
9874 * config/none/nm-none.h: Delete file.
9875
960ccd7d
FF
98762004-02-19 Fred Fish <fnf@redhat.com>
9877
9878 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
9879 cache->uses_fp prior to setting it.
9880
5f883edd
FF
98812004-02-19 Fred Fish <fnf@redhat.com>
9882
9883 Fix for PR breakpoint/1558.
9884 * sh-tdep.c (IS_JSR): New macro.
9885 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
9886
f98c22d5
JB
98872004-02-19 Jim Blandy <jimb@redhat.com>
9888
9889 * findvar.c (value_from_register): Doc fix.
9890
95051d27
JJ
98912004-02-19 Jeff Johnston <jjohnstn@redhat.com>
9892
9893 * printcmd.c (print_scalar_formatted): Do not check for sizeof
9894 type being greater than sizeof of host's LONGEST. Always use
9895 unpack_long() unless format 'f' chosen.
9896
ccefbec3
EZ
98972004-02-19 Joel Brobecker <brobecker@gnat.com>
9898
9899 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 9900
ccefbec3
EZ
9901 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
9902 contains a symbol wich is the best, non-exact match for the given
9903 pc. Update comments.
9904
99052004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 9906
2ede629f
EZ
9907 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
9908 macro, which was part of the now removed Mach 3 port.
9909 * utils.c (request_quit): Ditto.
9910
567ee972
MK
99112004-02-18 Mark Kettenis <kettenis@gnu.org>
9912
9913 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
9914 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
9915
50cca7bb
MK
99162004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9917
9918 Committed by Mark Kettenis <kettenis@gnu.org>.
9919
9920 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
9921 Define.
9922
226361c4
AC
99232004-02-18 Andrew Cagney <cagney@redhat.com>
9924
9925 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
9926 CONFIG_INSTALL and CONFIG_UNINSTALL.
9927 * configure: Re-generate.
9928 * interps.h (INTERP_TUI): Define.
9929 * Makefile.in: Update dependencies.
9930 (TUI): New macro.
9931 (tui-main.o): Specify dependencies.
9932 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
9933 * tui/tui-main.c: New file.
9934
49cfa46f
MK
99352004-02-18 Mark Kettenis <kettenis@gnu.org>
9936
e2879ccb
MK
9937 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
9938 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
9939 dependencies.
9940 * configure.host: Add x86_64-*-openbsd*.
9941 * configure.tgt: Add x86_64-*-openbsd*.
9942 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
9943
c43f4bec
MK
9944 * tui/tui.c: Don't include <malloc.h>.
9945
09ae75b6
MK
9946 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
9947 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
9948 amd64nbsd-tdep.c.
9949
49cfa46f 9950 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 9951 static. Remove extraneous whitespace.
49cfa46f
MK
9952 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
9953 static.
9954
05957fdb
JB
99552004-02-17 Jim Blandy <jimb@redhat.com>
9956
9957 * findvar.c (value_from_register): Doc fix.
9958
d0f54f9d
JB
99592004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9960
9961 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 9962
8a1dac83 9963 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
9964 CORE_ADDR as type for selectors. Correct types for GNU run time
9965 message lookup function to use double indirection.
9966 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
9967 * objc-lang.h (lookup_child_selector): Adapt prototype.
9968
9cbd5950
JB
9969 * s390-nat.c (SUBOFF): New macro.
9970 (supply_gregset, fill_gregset): Use it to handle debugging
9971 of 32-bit exectuables running under a 64-bit kernel.
9972 * s390-tdep.c: Include "solib-svr4.h".
9973 (s390_svr4_fetch_link_map_offset): New function.
9974 (s390x_svr_fetch_link_map_offset): Likewise.
9975 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
9976 * Makefile.in (s390-tdep.o): Update dependencies.
9977
a8c99f38
JB
9978 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
9979 "frame-unwind.h".
9980 (s390_readinstruction): Reformat. Use read_memory_nobpt.
9981 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
9982 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
9983 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
9984 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
9985 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 9986 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
9987 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
9988 (struct frame_extra_info): Remove.
9989 (s390_memset_extra_info): Remove.
f73b1eff
JB
9990 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
9991 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
9992 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
9993 (is_rse): Renamed to ...
9994 (is_rsy): ... this. Support long displacements.
9995 (is_rxe): Renamed to ...
9996 (is_rxy): ... this. Support long displacements.
9997 (compute_x_addr): Support long displacements.
9998 (struct s390_prologue_data): New data type.
9999 (s390_on_stack): Change API to use struct s390_prologue_data.
10000 (s390_store): Reimplement.
10001 (s390_load): New function.
10002 (s390_get_signal_frame_info): Remove.
10003 (s390_get_frame_info): Remove, replace by ...
10004 (s390_analyze_prolog): ... this new function.
10005 (s390_check_function_end): Remove.
10006 (s390_function_start): Remove.
10007 (s390_frameless_function_invokation): Remove.
10008 (s390_is_sigreturn): Remove.
10009 (s390_init_frame_pc_first): Remove.
10010 (s390_init_frame_extra_info): Remove.
10011 (s390_frame_init_saved_regs): Remove.
10012 (s390_frame_saved_pc_nofix): Remove.
10013 (s390_frame_saved_pc): Remove.
10014 (s390_frame_chain): Remove.
10015 (s390_fp_regnum, s390_read_fp): Remove.
10016 (s390_pop_frame_regular, s390_pop_frame): Remove.
10017 (s390_saved_pc_after_call): Remove.
10018 (s390_skip_prologue): Reimplement.
10019 (s390_in_function_epilogue_p): Support long displacements.
10020 (struct s390_unwind_cache): New data structure.
10021 (s390_frame_unwind_cache): New function.
10022 (s390_prologue_frame_unwind_cache): Likewise.
10023 (s390_backchain_frame_unwind_cache): Likewise.
10024 (s390_frame_this_id, s390_frame_prev_register): Likewise.
10025 (s390_frame_unwind): Define.
10026 (s390_frame_sniffer): New function.
10027 (struct s390_pltstub_unwind_cache): New data structure.
10028 (s390_pltstub_frame_unwind_cache): New function.
10029 (s390_pltstub_frame_this_id): Likewise.
10030 (s390_pltstub_frame_prev_register): Likewise.
10031 (s390_pltstub_frame_unwind): Define.
10032 (s390_pltstub_frame_sniffer): New function.
10033 (struct s390_sigtramp_unwind_cache): New data structure.
10034 (s390_sigtramp_frame_unwind_cache): New function.
10035 (s390_sigtramp_frame_this_id): Likewise.
10036 (s390_sigtramp_frame_prev_register): Likewise.
10037 (s390_sigtramp_frame_unwind): Define.
10038 (s390_sigtramp_frame_sniffer): New function.
10039 (s390_frame_base_address, s390_local_base_address): New functions.
10040 (s390_frame_base): Define.
10041 (s390_unwind_pc, s390_unwind_sp): New function.
10042 (s390_push_dummy_call): Use new frame base location.
10043 (s390_unwind_dummy_id): Likewise.
10044 (s390_gdbarch_init): Remove calls to:
10045 set_gdbarch_frameless_function_invocation,
10046 set_gdbarch_deprecated_init_frame_pc,
10047 set_gdbarch_deprecated_frame_chain,
10048 set_gdbarch_deprecated_frame_init_saved_regs,
10049 set_gdbarch_deprecated_pop_frame,
10050 set_gdbarch_deprecated_init_extra_frame_info,
10051 set_gdbarch_deprecated_init_frame_pc_first,
10052 set_gdbarch_deprecated_target_read_fp,
10053 set_gdbarch_deprecated_frame_saved_pc,
10054 set_gdbarch_deprecated_saved_pc_after_call,
10055 set_gdbarch_deprecated_fp_regnum.
10056 Add calls to:
10057 set_gdbarch_in_solib_call_trampoline,
10058 frame_unwind_append_sniffer,
10059 frame_base_set_default,
10060 set_gdbarch_unwind_pc,
10061 set_gdbarch_unwind_sp.
10062 * Makefile.in (s390-tdep.o): Update dependencies.
10063
b0cf273e
JB
10064 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
10065 (S390_STACK_FRAME_OVERHEAD): Remove.
10066 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
10067 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
10068 (s390_promote_integer_argument): Remove.
10069 (s390_cannot_extract_struct_value_address): Remove.
10070 (s390_use_struct_convention, s390_store_struct_return): Remove.
10071 (s390_extract_return_value, s390_store_return_value): Remove.
10072 (s390_return_value_convention, s390_return_value): New functions.
10073 (is_float_singleton): Handle typedefs.
8a1dac83 10074 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
10075 Remove, replace by ...
10076 (s390_function_arg_pass_by_reference, s390_function_arg_float,
10077 s390_function_arg_integer): ... these new functions.
10078 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
10079 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
10080 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
10081 Fill in tdep->abi.
10082 Remove calls to:
10083 set_gdbarch_deprecated_store_struct_return,
10084 set_gdbarch_deprecated_extract_return_value,
10085 set_gdbarch_deprecated_store_return_value,
10086 set_gdbarch_use_struct_convention,
10087 set_gdbarch_extract_struct_value_address,
10088 set_gdbarch_deprecated_pc_in_call_dummy,
10089 set_gdbarch_deprecated_push_arguments,
10090 set_gdbarch_deprecated_save_dummy_frame_tos,
10091 set_gdbarch_deprecated_push_return_address,
10092 set_gdbarch_deprecated_sizeof_call_dummy_words,
10093 set_gdbarch_deprecated_call_dummy_words,
10094 set_gdbarch_deprecated_dummy_write_sp.
10095 Add calls to:
10096 set_gdbarch_push_dummy_call,
10097 set_gdbarch_unwind_dummy_id,
10098 set_gdbarch_return_value.
8a1dac83 10099
e1457d83
JB
10100 * config/s390/nm-linux.h: Update comments.
10101 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
10102 (STOPPED_BY_WATCHPOINT): Redefine.
10103 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
10104 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
10105 (s390_stopped_by_watchpoint): Likewise.
10106 (watch_area_cnt): Remove.
10107 * s390-nat.c: Update comments.
10108 (watch_area): Remove typedef.
10109 Global replace watch_area by struct watch_area.
10110 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 10111 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
10112 use s390_inferior_tid. Add short-cut for the no watchpoint case.
10113 (s390_fix_watch_points): Remove pid argument,
10114 use s390_inferior_tid. Recompute area spanned by watchpoints.
10115 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
10116 argument. Reimplement.
10117
d0f54f9d
JB
10118 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
10119 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
10120 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 10121 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
10122 core-regset.o.
10123 * config/s390/s390x.mt: Remove.
10124 * config/s390/tm-s390.h: Remove.
10125 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
10126 (TARGET_ELF64): Remove.
10127 (SKIP_TRAMPOLINE_CODE): Do not undefine.
10128 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
10129 s390*-*-* case; always set gdb_target to s390.
10130 * regformats/reg-s390.dat: Remove control registers.
10131 * regformats/reg-s390x.dat: Likewise.
10132 * s390-tdep.h: New file.
8a1dac83 10133 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
10134 Include "inferior.h" and "s390-tdep.h".
10135 Remove private definition of offsetof.
10136 (s390_register_u_addr): Remove.
10137 (regmap_gregset, regmap_fpregset): Define.
10138 (supply_gregset, fill_gregset): Reimplement.
10139 (supply_fpregset, fill_fpregset): Likewise.
10140 (s390_inferior_tid): New function.
10141 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
10142 (fetch_inferior_registers, store_inferior_registers): Likewise.
10143 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
10144 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
10145 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
10146 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
10147 (struct gdbarch_tdep): Define.
10148 (struct s390_register_info): Define.
10149 (s390_register_info): New variable.
10150 (s390_register_name): Reimplement.
10151 (s390_register_type): New function.
10152 (s390_register_raw_size, s390x_register_raw_size): Remove.
10153 (s390_cannot_fetch_register): Remove.
10154 (s390_register_byte): Remove.
10155 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
10156 (s390_dwarf_regmap): New variable.
10157 (s390_dwarf_reg_to_regnum): New function.
10158 (s390_stab_reg_to_regnum): Remove.
10159 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
10160 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
10161 (s390_convert_register_p): Likewise.
10162 (s390_register_to_value, s390_value_to_register): Likewise.
10163 (s390_register_reggroup_p): Likewise.
10164 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
10165 s390_gregset, s390x_gregset, s390_fpregset): New variables.
10166 (s390_supply_regset, s390_regset_from_core_section): New functions.
10167 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
10168 (S390_FPR_SIZE): Likewise.
10169 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
10170 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
10171 (S390_NUM_GPRS): Move here from tm-s390.h.
10172 (S390_NUM_FPRS): Likewise.
10173 (s390_in_function_epilogue_p): New function.
10174 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
10175 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
10176 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
10177 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
10178 Replace S390_FP_REGNUM by S390_SP_REGNUM.
10179 Remove calls to:
10180 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
10181 set_gdbarch_deprecated_max_register_virtual_size,
10182 set_gdbarch_deprecated_register_byte,
d0f54f9d 10183 set_gdbarch_cannot_fetch_register,
8a1dac83 10184 set_gdbarch_cannot_store_register,
d0f54f9d
JB
10185 set_gdbarch_deprecated_register_size,
10186 set_gdbarch_deprecated_register_raw_size,
10187 set_gdbarch_deprecated_register_virtual_size,
10188 set_gdbarch_deprecated_register_virtual_type,
10189 set_gdbarch_deprecated_register_bytes.
10190 Add calls to:
10191 set_gdbarch_num_pseudo_regs,
10192 set_gdbarch_register_type,
10193 set_gdbarch_convert_register_p,
10194 set_gdbarch_register_to_value,
10195 set_gdbarch_value_to_register,
10196 set_gdbarch_register_reggroup_p,
10197 set_gdbarch_regset_from_core_section,
10198 set_gdbarch_pseudo_register_read,
10199 set_gdbarch_pseudo_register_write,
10200 set_gdbarch_in_function_epilogue_p.
10201 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
10202 (s390_tdep_h): New variable.
10203
8cfe231d
JB
102042004-02-17 Jim Blandy <jimb@redhat.com>
10205
4589a601
JB
10206 * findvar.c (value_from_register): If the type has no length, just
10207 return an acceptable value --- don't report an internal error.
10208
8cfe231d
JB
10209 * stabsread.c (read_type): If we find any type numbers that are
10210 forward references, complain if the references aren't resolved by
10211 the time we're finished reading.
10212 (cleanup_undefined_types): Make error message more appropriate for
10213 a complaint.
10214
5bf0017e
EZ
102152004-02-17 Elena Zannoni <ezannoni@redhat.com>
10216
9d62932d
EZ
10217 * Makefile.in (defs_h): Remove dependency on progress_h.
10218 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
10219 progress.h.
10220 * main.c (captured_main): Delete use of START_PROGRESS and
10221 END_PROGRESS.
10222
102232004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 10224
5bf0017e
EZ
10225 * objfiles.c (terminate_minimal_symbol_table): Add back
10226 initialization of MSYMBOL_TYPE.
10227
9fc9f5e2
AC
102282004-02-17 David Mosberger <davidm@hpl.hp.com>
10229
10230 Committed by Andrew Cagney.
10231 * Makefile.in (ia64_tdep_h): New macro.
10232 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
10233 (ia64-tdep.o): Likewise.
10234 * ia64-tdep.h: New file.
10235 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
10236 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
10237 (ia64_aix_sigcontext_register_address): Likewise.
10238 (ia64_linux_getunwind_table): Delete declaration.
10239 * ia64-linux-tdep.c: Likewise.
10240
76cd2bd9
CV
102412004-02-17 Corinna Vinschen <vinschen@redhat.com>
10242
10243 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
10244 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
10245 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
10246
634aa483
AC
102472004-02-17 Andrew Cagney <cagney@redhat.com>
10248
10249 * symtab.c (skip_prologue_using_sal): New function.
10250 * symtab.h (skip_prologue_using_sal): Declare.
10251 * frv-tdep.c: Include "symtab.h".
10252 (skip_prologue_using_sal): Delete function.
10253 * mips-tdep.c (skip_prologue_using_sal): Delete function.
10254 * rs6000-tdep.c (refine_prologue_limit): Mention
10255 skip_prologue_using_sal.
10256 * ia64-tdep.c (refine_prologue_limit): Ditto.
10257 * Makefile.in: Update dependencies.
10258
102592004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 10260
39ce7b3f
AC
10261 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
10262 START_INFERIOR_TRAPS_EXPECTED.
10263 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
10264 START_INFERIOR_TRAPS_EXPECTED.
10265 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
10266 Delete macro.
10267 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
10268 macro, moved to "nm-osf.h". Update copyright.
10269 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
10270 update copyright.
10271
19772a2c
AC
10272 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
10273 and function replacing FRAMELESS_FUNCTION_INVOCATION.
10274 * blockframe.c (legacy_frameless_look_for_prologue): Rename
10275 frameless_look_for_prologue.
10276 * frame.h (legacy_frameless_look_for_prologue): Rename
10277 frameless_look_for_prologue.
10278 * gdbarch.h, gdbarch.c: Re-generate.
10279 * sh64-tdep.c (sh64_gdbarch_init): Update.
10280 * sh-tdep.c (sh_gdbarch_init): Update.
10281 * s390-tdep.c (s390_gdbarch_init): Update.
10282 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10283 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10284 * m68k-tdep.c (m68k_gdbarch_init): Update.
10285 (delta68_frame_args_address): Update.
10286 * m32r-tdep.c (m32r_gdbarch_init): Update.
10287 * hppa-tdep.c (hppa_gdbarch_init): Update.
10288 * h8300-tdep.c (h8300_gdbarch_init): Update.
10289 * frv-tdep.c (frv_gdbarch_init): Update.
10290 (frv_frameless_function_invocation): Update.
10291 * cris-tdep.c (cris_gdbarch_init): Update.
10292 (cris_frameless_function_invocation): Update.
10293 * avr-tdep.c (avr_gdbarch_init): Update.
10294 * arm-tdep.c (arm_gdbarch_init): Update.
10295 * stack.c (frame_info): Update, call predicate.
10296 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
10297 * frame.c (legacy_get_prev_frame): Update, call predicate..
10298 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
10299 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
10300 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
10301 invocation.
10302 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10303 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10304 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
10305
10306 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
10307 function.
10308
7dcaac91
DJ
103092004-02-16 Daniel Jacobowitz <drow@mvista.com>
10310
10311 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
10312 initializations.
10313
88289b6e
AC
103142004-02-16 Andrew Cagney <cagney@redhat.com>
10315
10316 * tui/tui-windata.c: Include "gdb_string.h".
10317 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
10318 * tui/tui-layout.c, tui/tui-command.c: Ditto.
10319 * Makefile.in: Update dependencies.
10320
9f976b41
DJ
103212004-02-16 Daniel Jacobowitz <drow@mvista.com>
10322
10323 * Makefile.in (infrun.o): Add $(gdb_assert_h).
10324 * infrun.c: Include "gdb_assert.h".
10325 (singlestep_ptid, saved_singlestep_ptid)
10326 (stepping_past_singlestep_breakpoint): New variables.
10327 (resume): Set singlestep_ptid. Check for singlestep thread
10328 hop.
10329 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
10330 (handle_inferior_event): Handle singlestep thread hop.
10331
c324d747
AC
103322004-02-16 Andrew Cagney <cagney@redhat.com>
10333
f090b9b1
AC
10334 * dwarf2-frame.c (dwarf2_frame_ops): New function.
10335 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
10336 (dwarf2_frame_init_reg): Ditto.
10337
fd33e6cb
AC
10338 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
10339 suggested by Joshua Neuheisel
10340
c324d747
AC
10341 * configure.in: Always check for curses, including pdcurses.
10342 Warn, instead of error, when no curses are found. Enable TUI when
10343 curses is available.
10344 * configure: Re-generate.
10345
b66ba949
CV
103462004-02-16 Corinna Vinschen <vinschen@redhat.com>
10347
10348 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
10349 sh_sh4_register_convert_to_virtual.
10350 (sh_register_convert_to_raw): Rename from
10351 sh_sh4_register_convert_to_raw.
10352 (sh_pseudo_register_read): Accomodate above name change.
10353 (sh_pseudo_register_write): Ditto.
10354
b58cbbf2
CV
103552004-02-16 Corinna Vinschen <vinschen@redhat.com>
10356
10357 * sh-tdep.c (sh_generic_register_name): Remove.
10358 (sh_gdbarch_init): Use sh_sh_register_name in default case.
10359
5929a910
AC
103602004-02-15 Andrew Cagney <cagney@redhat.com>
10361
4566dfcf
AC
10362 * configure.in (build_warnings): Add -Wunused-function.
10363 * configure: Re-generate.
10364
db11ed55
AC
10365 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
10366 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
10367
46ac7a5d
AC
10368 * procfs.c (procfs_init_inferior): Assume that
10369 START_INFERIOR_TRAPS_EXPECTED is defined.
10370 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
10371 * config/ns32k/tm-nbsd.h: Delete file,
10372 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
10373
ba801595
AC
10374 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
10375 * config/vax/tm-vax.h: Delete file.
10376
5929a910
AC
10377 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10378 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10379 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10380 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10381 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
10382 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10383 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
10384
8f22cb90
MK
103852004-02-15 Mark Kettenis <kettenis@gnu.org>
10386
10387 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
10388 * dwarf2-frame.c (dwarf2_frame_data): New variable.
10389 (struct dwarf2_frame_ops): New.
10390 (dwarf2_frame_default_init_reg): New function, based on
10391 dwarf2_frame_init_reg.
10392 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
10393 (dwarf2_frame_init_reg): Call architecture-specific function.
10394 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
10395 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
10396 instead of dwarf2_frame_data.
10397 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
10398 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
10399
8132723e
AC
104002004-02-15 Andrew Cagney <cagney@redhat.com>
10401
046a4708
AC
10402 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
10403 register_gdbarch_swap.
10404 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
10405 * f-lang.c (_initialize_f_language): Update, use
10406 DEPRECATED_REGISTER_GDBARCH_SWAP.
10407 * remote.c (_initialize_remote): Ditto.
10408 * regcache.c (_initialize_regcache): Ditto.
10409 * parse.c (_initialize_parse): Ditto.
10410 * infrun.c (_initialize_infrun): Ditto.
10411 * mi/mi-main.c (_initialize_mi_main): Ditto.
10412 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 10413
549c1eea
AC
10414 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
10415 poking .cacheable directly.
10416 * symfile.c (symfile_bfd_open): Ditto.
10417
0c0b39de
AC
10418 * Makefile.in: Update all dependencies.
10419
8132723e
AC
10420 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
10421 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
10422 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
10423 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
10424 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 10425
b9d26eb9
AC
104262004-02-14 Andrew Cagney <cagney@redhat.com>
10427
8e1f669a
AC
10428 * arch-utils.c (legacy_convert_register_p): Check
10429 DEPRECATED_REGISTER_CONVERTIBLE_P.
10430 * findvar.c (value_of_register): Ditto.
10431
cd0bfa36
AC
10432 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
10433 * gdbarch.h, gdbarch.c: Re-generate.
10434 * arch-utils.c (deprecated_register_convertible_not): Delete.
10435 * arch-utils.h (deprecated_register_convertible_not): Delete.
10436 * mi/mi-main.c (get_register): Update. Update copyright.
10437 * infcmd.c (default_print_registers_info): Update.
10438
b9d26eb9
AC
10439 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10440 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
10441 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 10442 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
10443 * frame.c (deprecated_get_next_frame_hack): Delete function.
10444 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
10445 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10446 Update.
10447 * infcall.c (call_function_by_hand): Update.
10448
9ab9195f
EZ
104492004-02-14 Elena Zannoni <ezannoni@redhat.com>
10450
10451 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 10452 from here...
9ab9195f
EZ
10453 * objfiles.c (init_entry_point_info, entry_point_address):..to
10454 here.
10455 * symfile.h (init_entry_point_info, entry_point_address): Remove
10456 prototypes.
10457 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 10458 prototypes.
9ab9195f
EZ
10459 * cris-tdep.c: Remove include of symfile.h. Add include of
10460 objfiles.h.
10461 * infcall.c: Ditto.
10462 * mcore-tdep.c: Ditto.
10463 * mn10300-tdep.c: Ditto.
10464 * sh64-tdep.c: Ditto.
10465 * v850-tdep.c: Ditto.
10466 * arm-tdep.c: Remove include of symfile.h.
10467 * blockframe.c: Ditto.
10468 * coffread.c: Ditto.
10469 * dbxread.c: Ditto.
10470 * dwarf2read.c: Ditto.
10471 * dwarfread.c: Ditto.
8a1dac83 10472 * frv-tdep.c: Ditto.
9ab9195f
EZ
10473 * ia64-tdep.c: Ditto.
10474 * mdebugread.c: Ditto.
10475 * mipsread.c: Ditto.
8a1dac83 10476 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
10477 * s390-tdep.c: Ditto.
10478 * sh-tdep.c: Ditto.
8a1dac83 10479 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
10480 * gdbarch.sh: Remove include of symfile.h.
10481 * gdbarch.c: Regenerate.
10482 * solib-irix.c (enable_break): Use entry_point_address().
10483 Add comment about include file.
10484 * xcoffread.c: Add comment about include file.
8a1dac83
RM
10485 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
10486 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
10487 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
10488 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
10489 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
10490
c4c5b7ba
AC
104912004-02-13 Andrew Cagney <cagney@redhat.com>
10492
10493 * corelow.c (core_xfer_partial): Use "struct bfd_section".
10494 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
10495 copyright.
10496 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
10497
3e7879de
FF
104982004-02-12 Fred Fish <fnf@redhat.com>
10499
10500 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
10501 set_gdbarch_store_return_value.
10502
6a7760b6
AC
105032004-02-12 Andrew Cagney <cagney@redhat.com>
10504
10505 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
10506 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
10507 (interrupt_query): Ditto.
10508 (ofunc): Delete unused variable.
10509 * cris-tdep.c (cris_abi): Delete unused function.
10510 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
10511 (cris_get_wide_opcode, cris_get_short_size): Ditto.
10512 (cris_get_asr_quick_shift_steps): Ditto.
10513 (cris_skip_prologue_frameless_p): Ditto.
10514 * arm-tdep.c (arm_push_return_address): Delete unused function.
10515 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
10516 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
10517 * s390-tdep.c (s390_function_start): Delete unused function.
10518
31687c3c
AC
105192004-02-12 Andrew Cagney <cagney@redhat.com>
10520
10521 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
10522 gdbarch.h, gdbarch.c: Re-generate.
10523 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
10524 to generic_prologue_frameless_p.
10525 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
10526 * arch-utils.c (generic_prologue_frameless_p): Delete function.
10527
6de918a6
DJ
105282004-02-11 Daniel Jacobowitz <drow@mvista.com>
10529
10530 * mips-linux-tdep.c: Include "frame.h".
10531 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
10532 (mips_linux_skip_resolver): New functions.
10533 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
10534 and set_gdbarch_in_solib_call_trampoline.
10535 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
10536 to after set_gdbarch_in_solib_return_trampoline. Only set the
10537 solib hooks to mips16 functions if the OS ABI is unknown.
10538 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
10539 including "config/tm-linux.h".
10540 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
10541 * Makefile.in (mips-linux-tdep.o): Update.
10542
87b3ede8
DC
105432004-02-11 David Carlton <carlton@kealia.com>
10544
10545 * linespec.c (decode_compound): Only look for a class symbol when
10546 considering all but the rightmost component.
10547
5979bc46
AC
105482004-02-11 Andrew Cagney <cagney@redhat.com>
10549
10550 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
10551 abi code are are separatly grouped.
10552
5867a2fb
AC
105532004-02-11 Andrew Cagney <cagney@redhat.com>
10554
10555 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
10556 * gdbarch.h, gdbarch.c: Re-generate.
10557 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10558 * v850-tdep.c (v850_gdbarch_init): Update.
10559 * sh64-tdep.c (sh64_gdbarch_init): Update.
10560 * sh-tdep.c (sh_gdbarch_init): Update.
10561 * s390-tdep.c (s390_gdbarch_init): Update.
10562 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10563 * mips-tdep.c (mips_gdbarch_init): Update.
10564 * mcore-tdep.c (mcore_gdbarch_init): Update.
10565 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10566 * m32r-tdep.c (m32r_gdbarch_init): Update.
10567 * ia64-tdep.c (ia64_gdbarch_init): Update.
10568 * hppa-tdep.c (hppa_gdbarch_init): Update.
10569 * h8300-tdep.c (h8300_gdbarch_init): Update.
10570 * frv-tdep.c (frv_gdbarch_init): Update.
10571 * d10v-tdep.c (d10v_gdbarch_init): Update.
10572 * cris-tdep.c (cris_gdbarch_init): Update.
10573 * avr-tdep.c (avr_gdbarch_init): Update.
10574 * arm-tdep.c (arm_gdbarch_init): Update.
10575 * alpha-tdep.c (alpha_gdbarch_init): Update.
10576
026a72f8
CV
105772004-02-11 Corinna Vinschen <vinschen@redhat.com>
10578
10579 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
10580 comma.
10581 (sh_sh4al_dsp_register_name): Ditto.
10582
3903d437
AC
105832004-02-10 Andrew Cagney <cagney@redhat.com>
10584
10585 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
10586 (mips_init_frame_pc_first): Delete function.
10587 (mips_frame_saved_pc): Delete function.
10588 (mips_frame_chain): Delete function.
10589 (mips_init_extra_frame_info): Delete function.
10590 (mips_xfer_register): Delete unused variable "reg".
10591 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
10592 (mips_n32n64_return_value): Delete unused variable "reg".
10593 (mips_n32n64_return_value): Delete unused variable "pos".
10594 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
10595 (mips_o32_return_value): Delete unused variable "pos".
10596 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
10597 (mips_print_fp_register): Delete unused variable "namelen"
10598 (mips_print_fp_register): Delete unused variable "flt2"
10599 (get_frame_pointer): Delete function.
10600 (cached_proc_desc): Delete static variable.
10601 (mips_pop_frame): Delete function.
10602 (mips_find_saved_regs): Delete function.
10603 (mips_get_saved_register): Delete function.
10604 (mips_saved_pc_after_call): Delete function.
10605 (SIGFRAME_BASE): Delete macro.
10606 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
10607 (SIGFRAME_PC_OFF): Delete macro.
10608 (SIGFRAME_REGSAVE_OFF): Delete macro.
10609 (mips_dump_tdep): Do not print deleted macro definitions.
10610
b9fb98bd
AC
106112004-02-10 Andrew Cagney <cagney@redhat.com>
10612
10613 * Makefile.in (SFILES): Remove explictly listed tui files.
10614 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
10615
78ced177 106162004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 10617
78ced177
JJ
10618 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
10619 to use paddr functions to format ia64 addresses and long values.
10620 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
10621 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
10622 (get_kernel_table, ia64_find_proc_info_x): Ditto.
10623 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
10624 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
10625
6a83354a
AC
106262004-02-10 Andrew Cagney <cagney@redhat.com>
10627
10628 * defs.h: Do not include "tui.h".
10629 * gdb_curses.h: New file.
10630 * tui/tui-hooks.h: New file.
10631 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
10632 (tui_install_hooks, tui_remove_hooks): Delete declarations.
10633 (tui_initialize_io): Delete declaration.
10634 (tui_initialize_readline: Delete redundant declaration.
10635 (struct tui_point): Delete definition.
10636 * tui/tui-data.h (struct tui_point): Define.
10637 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
10638 * utils.c: Include "tui/tui.h".
10639 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
10640 * printcmd.c [TUI]: Include "tui/tui.h".
10641 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
10642 * tui/tui-command.c: Include "gdb_curses.h".
10643 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
10644 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
10645 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
10646 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
10647 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
10648 * Makefile.in: Update all dependencies.
10649 (tui_hooks_h, gdb_curses_h): Define.
10650 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
10651
997470ef
EZ
106522004-02-10 Elena Zannoni <ezannoni@redhat.com>
10653
10654 * objfiles.h (struct objfile): Remove unused fields auxf1 and
10655 auxf2. Add comments about some other rarely used fields.
10656
4ff2cc4d
AC
106572004-02-10 Andrew Cagney <cagney@redhat.com>
10658
10659 * Makefile.in (init.c): Fix script removing duplicates. Problem
10660 reported by Peter Schauer.
10661
1ab21617
EZ
106622004-02-09 Elena Zannoni <ezannoni@redhat.com>
10663
10664 * bcache.c (bcache_xmalloc): Use obstack_init instead of
10665 obstack_specify_allocation.
10666 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 10667 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
10668 (allocate_rt_common_objfile): Ditto.
10669 * symfile.c (reread_symbols): Ditto.
10670 * gdb_obstack.h: Add comment.
10671
17763fd9
EZ
106722004-02-09 Elena Zannoni <ezannoni@redhat.com>
10673
10674 * linespec.c (decode_line_1, locate_first_half)
10675 (decode_compound, lookup_prefix_sym): Update comments. Delete old
10676 commented out code.
10677
ec5cdd75
DJ
106782004-02-09 Daniel Jacobowitz <drow@mvista.com>
10679
10680 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
10681 obstack_free.
10682
43b54b88
AC
106832004-02-09 Andrew Cagney <cagney@redhat.com>
10684
10685 * blockframe.c (find_pc_partial_function): If find_pc_overlay
10686 fails, try find_pc_section. Fix PR c++/1267.
10687 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
10688 instead of find_pc_mapped_section.
10689 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
10690 not default to the section containing PC. Fix PR symtab/1519.
10691
edfae063
AC
106922004-02-09 Andrew Cagney <cagney@redhat.com>
10693
10694 * Makefile.in (mips-tdep.o): Update dependencies.
10695 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
10696 "trad-frame.h".
10697 (mips_unwind_pc): Return the pseudo PC register.
10698 (mips_unwind_dummy_id): New function.
10699 (mips16_fetch_instruction): New function.
10700 (mips32_fetch_instruction): New function.
10701 (struct mips_frame_cache): Define.
10702 (mips_mdebug_frame_cache): New function.
10703 (mips_mdebug_frame_this_id): New function.
10704 (mips_mdebug_frame_prev_register): New function.
10705 (mips_mdebug_frame_unwind): Define.
10706 (mips_mdebug_frame_sniffer): New function.
10707 (mips_mdebug_frame_base_address): New function.
10708 (mips_mdebug_frame_base): Define.
10709 (mips_mdebug_frame_base_sniffer): New function.
10710 (mips_gdbarch_init): Append unwind and base sniffers. Set
10711 unwind_dummy_id.
10712
defc864c
AC
107132004-02-08 Andrew Cagney <cagney@redhat.com>
10714
6764ddad
AC
10715 * frame.c: Print both the register number and name.
10716
defc864c
AC
10717 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
10718 and a sed into a single sed. Make .c and .o patterns more robust.
10719 (OBS): Delete.
10720 (INIT_FILES): Replace OBS with COMMON_OBS.
10721 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
10722
645d6d10
MK
107232004-02-08 Mark Kettenis <kettenis@gnu.org>
10724
10725 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
10726 the PT_WCOOKIE request.
10727
23e3c3fc
AC
107282004-02-08 Andrew Cagney <cagney@redhat.com>
10729
58dfe9ff
AC
10730 * mips-tdep.c (mips_unwind_pc): New function.
10731 (mips_gdbarch_init): Set mips_unwind_pc.
10732
1152e35e
AC
10733 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
10734 (get_frame_id): Allow the UNKNOWN_FRAME.
10735 (frame_register_unwind, get_frame_type): Ditto.
10736
31b75dbf
AC
10737 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
10738 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
10739 unwind_dummy_id indicates a legacy frame.
10740
3483b318
AC
10741 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
10742 * configure: Re-generate.
10743
23e3c3fc
AC
10744 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
10745 methods.
10746
33f8ca73
AC
107472004-02-08 Andrew Cagney <cagney@redhat.com>
10748
10749 * configure.in (CONFIG_ALL): Set to Makefile target, and not
10750 makefile macro.
10751 * configure: Re-generate.
10752 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
10753 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
10754 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
10755 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
10756 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
10757 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
10758 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
10759 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
10760 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
10761 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
10762
6ba8e26f 107632004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 10764
20d286a5
AC
10765 * Makefile.in: Update all dependencies.
10766
d836ee13
AC
10767 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
10768 * configure: Re-generate.
10769 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
10770 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
10771 (COMMON_OBS): Add "main.o" and "annotate.o".
10772 (ANNOTATE_OBS): Delete.
10773 (OBS): Remove ANNOTATE_OBS.
10774 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
10775 CONFIG_INITS.
10776 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
10777 against CONFIG_OBS and "main.o".
10778 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
10779 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
10780
d02c80cd
AC
10781 * tui/tui-command.c: Include "gdb_string.h", delete register
10782 attribute, use ISO-C function signatures.
10783 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
10784 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10785 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
10786 * tui/tui.c: Ditto.
6ba8e26f
AC
10787
10788 * tui/tui-command.c: Change variable and function names to lower
10789 case.
10790 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
10791 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
10792 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
10793 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10794 * tui/tui-winsource.c, tui/tui.c: Ditto.
10795
4a146b47
EZ
107962004-02-07 Elena Zannoni <ezannoni@redhat.com>
10797
10798 * buildsym.c (free_pending_blocks, finish_block)
10799 (record_pending_block, make_blockvector, end_symtab): Replace
10800 symbol_obstack with objfile_obstack.
8a1dac83 10801 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 10802 (coff_read_enum_type): Ditto.
8a1dac83 10803 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 10804 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 10805 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
10806 (dwarf2_symbol_mark_computed): Ditto.
10807 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
10808 * elfread.c (elf_symtab_read): Ditto.
10809 * hpread.c (hpread_symfile_init, hpread_symfile_init)
10810 (hpread_read_enum_type, hpread_read_function_type)
10811 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
10812 Ditto.
8a1dac83 10813 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 10814 (java_link_class_type): Ditto.
8a1dac83 10815 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
10816 (new_symbol): Ditto.
10817 * minsyms.c (install_minimal_symbols): Ditto.
10818 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
10819 (terminate_minimal_symbol_table): Replace symbol_obstack with
10820 objfile_obstack.
10821 (free_objfile): Remove freeing of symbol_obstack.
10822 * objfiles.h: Remove symbol_obstack field.
10823 * pa64solib.c (add_to_solist): Replace symbol_obstack with
10824 objfile_obstack.
10825 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10826 symbol_obstack.
10827 (solib_add_common_symbols): Replace symbol_obstack with
10828 objfile_obstack.
10829 * somsolib.c (som_solib_add): Ditto.
10830 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10831 (common_block_start, common_block_end): Ditto.
10832 * symfile.c (reread_symbols): Remove freeing and init of
10833 symbol_obstack.
10834 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
10835 * symfile.h: Update comment.
10836 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
10837 stats printing.
10838 * symtab.c (symbol_set_names): Replace symbol_obstack with
10839 objfile_obstack.
10840 * symtab.h (struct general_symbol_info, struct minimal_symbol):
10841 Update comments.
10842 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
10843 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
10844 objfile_obstack.
10845
6d012f14
AC
108462004-02-07 Andrew Cagney <cagney@redhat.com>
10847
10848 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
10849 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
10850 fields and variables.
10851 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
10852 (m_beInvisible): Delete macro.
10853 * tui/tui-data.h: Fix case case fields and variables.
10854 (m_genWinPtrIsNull): Delete macro.
10855 (tui_win_list): Rename winList.
10856 (TUI_SRC_WIN): Rename srcWin.
10857 (TUI_DISASM_WIN): Rename disassemWin.
10858 (TUI_DATA_WIN): Rename dataWin.
10859 (TUI_CMD_WIN): Rename cmdWin.
10860 (m_genWinPtrNotNull): Delete macro.
10861 (m_winPtrIsNull): Delete macro.
10862 (m_winPtrNotNull): Delete macro.
10863 (tui_win_is_source_type): Replace m_winIsSourceType
10864 (tui_win_is_auxillary): Replace m_winIsAuzillary.
10865 (tui_win_has_locator): Replace m_hasLocator.
10866 (tui_set_win_highlight): Replace m_setWinHighlightOn and
10867 m_setWinHighlightOff.
10868 * tui/tui-data.c: Update references.
10869 (tui_win_is_source_type, tui_set_win_highlight): New functions.
10870 (tui_win_has_locator, tui_win_is_auxillary): New functions.
10871 * tui/tui-command.c, tui/tui-disasm.c: Update references.
10872 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
10873 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
10874 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10875 * tui/tui-winsource.c, tui/tui.c: Ditto.
10876
7d34766b
MK
108772004-02-07 Mark Kettenis <kettenis@gnu.org>
10878
1c800673
MK
10879 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
10880 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
10881 StackGhost.
10882
7d34766b
MK
10883 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
10884 variable `i6' to `i7'.
10885 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
10886
22940a24
AC
108872004-02-07 Andrew Cagney <cagney@redhat.com>
10888
10889 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
10890 (TuiPoint, TuiPointPtr): Ditto.
10891 (TuiStatus, TuiStatusPtr): Ditto.
10892 (TuiWinType, TuiWinTypePtr): Ditto.
10893 (struct tui_point): Rename _TuiPoint.
10894 (tui_get_low_disassembly_address): Rename
10895 tuiGetLowDisassemblyAddress.
10896 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
10897 (tuiFree): Delete declaration.
10898 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
10899 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
10900 * tui/tui.c (tuiFree): Delete function.
10901 * cli/cli-cmds.c (disassemble_command): Update references.
10902 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
10903 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10904 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
10905 * tui/tui-winsource.c: Ditto.
10906
8b92e4d5
EZ
109072004-02-07 Elena Zannoni <ezannoni@redhat.com>
10908
10909 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
10910 coffstab_build_psymtabs, elfstab_build_psymtabs)
10911 (stabsect_build_psymtabs): Replace psymbol_obstack with
10912 objfile_obstack.
10913 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
10914 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
10915 Ditto.
10916 * dwarfread.c (scan_compilation_units): Ditto.
10917 * elfread.c (elfstab_offset_sections): Ditto.
10918 * hppa-tdep.c (read_unwind_info): Ditto.
10919 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
10920 (hpread_end_psymtab): Ditto.
10921 * mdebugread.c (mdebug_build_psymtabs, add_pending)
10922 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
10923 Ditto.
10924 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 10925 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
10926 (build_objfile_section_table): Ditto.
10927 (allocate_objfile): Remove init of psymbol_obstack.
10928 (free_objfile): Remove freeing of psymbol_obstack.
10929 * objfiles.h (struct objfile): Remove field
10930 psymbol_obstack. Update comments.
10931 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
10932 psymbol_obstack with objfile_obstack.
10933 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10934 psymbol_obstack.
10935 * somread.c (som_symfile_offsets, init_import_symbols)
10936 (init_export_symbols): Replace psymbol_obstack with
10937 objfile_obstack.
10938 * somsolib.c (som_solib_add_solib_objfile): Ditto.
10939 * symfile.c (default_symfile_offsets, syms_from_objfile)
10940 (reread_symbols): Remove freeing and init of psymbol_obstack.
10941 (cashier_psymtab): Update comment.
10942 * symmisc.c (print_objfile_statistics): Don't report stats for
10943 psymbol obstack.
10944 * symtab.h (struct general_symbol_info, struct partial_symtab):
10945 Update comments.
10946 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
10947 (xcoff_symfile_offsets): Replace psymbol_obstack with
10948 objfile_obstack.
10949
b99607ea
EZ
109502004-02-07 Elena Zannoni <ezannoni@redhat.com>
10951
10952 * objfiles.h (struct objfile): Add objfile_obstack field.
10953 Remove type_obstack field.
10954
10955 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
10956 read_structure_scope read_enumeration, new_symbol): Replace
10957 type_obstack with objfile_obstack.
10958 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 10959 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
10960 (lookup_fundamental_type): Ditto.
10961 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
10962 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
10963 (hpread_read_doc_function_type, hpread_read_struct_type)
10964 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 10965 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 10966 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
10967 (java_link_class_type): Ditto.
10968 * mdebugread.c (parse_type): Ditto.
10969 * objfiles.c (allocate_objfile, free_objfile): Ditto.
10970 * solib-sunos.c (solib_add_common_symbols): Ditto.
10971 * stabsread.c (define_symbol, read_type, read_member_functions,
10972 read_cpp_abbrev, read_one_struct_field): Ditto.
10973 * symfile.c (reread_symbols): Ditto.
10974 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 10975
2a8854a7
AC
109762004-02-07 Andrew Cagney <cagney@redhat.com>
10977
10978 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
10979 (tui_exec_info_content): Rename TuiExecInfoContent.
10980 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
10981 (TuiWinInfo, TuiWinInfoPtr): Ditto.
10982 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
10983 (TuiList, TuiListPtr): Ditto.
10984 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
10985 (TuiDataType, TuiDataTypePtr): Ditto.
10986 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
10987 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
10988 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
10989 (TuiSourceElement, TuiSourceElementPtr): Ditto.
10990 (TuiDataElement, TuiDataElementPtr): Ditto.
10991 (TuiWinElement, TuiWinElementPtr): Ditto.
10992 (TuiDataInfo, TuiDataInfoPtr): Ditto.
10993 (TuiCommandElement, TuiCommandElementPtr): Ditto.
10994 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
10995 (TuiWhichElement, TuiWhichElementPtr): Ditto.
10996 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
10997 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
10998 * tui/tui-command.c, tui/tui-data.c: Update references.
10999 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
11000 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11001 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11002 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 11003
05cbe71a
MK
110042004-02-07 Mark Kettenis <kettenis@gnu.org>
11005
11006 * dwarf2-frame.h: Update copyright.
11007 (enum dwarf2_frame_reg_rule): New.
11008 (struct dwarf2_frame_state_reg): New.
11009 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
11010 * dwarf2-frame.c: Update copyright.
11011 (enum dwarf2_reg_rule): Remove.
11012 (struct dwarf2_frame_state): Remove defenition of `struct
11013 dwarf2_frame_state_reg'.
11014 (read_reg): Call get_frame_arch to get the architecture instead of
11015 using CURRENT_GDBARCH.
11016 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
11017 DWARF2_FRAME_.
11018 (dwarf2_frame_init_reg): New function.
11019 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
11020 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
11021 initialize the register state. Prefix old `enum dwarf2_reg_rule'
11022 tags with DWARF2_FRAME_.
11023 (dwarf2_frame_prev_register): Call get_frame_arch to get the
11024 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
11025 dwarf2_reg_rule' tags with DWARF2_FRAME_.
11026
ec7d9e56
AC
110272004-02-06 Andrew Cagney <cagney@redhat.com>
11028
dd1abb8c
AC
11029 * tui/tui-data.h (struct tui_list): Rename _TuiList.
11030 (enum tui_data_type): Rename _TuiDataType.
11031 (struct tui_layout_def): Rename _TuiLayoutDef.
11032 (struct tui_source_element): Rename _TuiSourceElement.
11033 (struct tui_data_element): Rename _TuiDataElement.
11034 (struct tui_command_element): Rename _TuiCommandElement.
11035 (struct tui_locator_element): Rename _TuiLocatorElement.
11036 (union tui_which_element): Define.
11037 (struct tui_win_element): Rename _TuiWinElement.
11038 (struct tui_data_info): Rename _TuiDataInfo.
11039 (struct tui_source_info): Rename _TuiSourceInfo.
11040 (struct tui_command_info): Rename _TuiCommandInfo.
11041 (tui_initialize_static_data): Rename initializeStaticData.
11042 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
11043 (tui_alloc_win_info): Rename allocWinInfo.
11044 (tui_init_generic_part): Rename initGenericPart.
11045 (tui_init_win_info): Rename initWinInfo.
11046 (tui_alloc_content): Rename allocContent.
11047 (tui_add_content_elements): Rename addContentElements.
11048 (tui_init_content_element): Rename initContentElement.
11049 (tui_free_window): Rename freeWindow.
11050 (tui_free_win_content): Rename freeWinContent.
11051 (tui_free_data_content): Rename freeDataContent.
11052 (tui_free_all_source_wins_content): Rename
11053 freeAllSourceWinsContent.
11054 (tui_del_window): Rename tuiDelWindow.
11055 (tui_del_data_windows): Rename tuiDelDataWindows.
11056 (tui_partial_win_by_name): Rename partialWinByName.
11057 (tui_win_name): Rename winName.
11058 (tui_current_layout): Rename currentLayout.
11059 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
11060 (tui_term_height): Rename termHeight.
11061 (tui_set_term_height_to): Rename setTermHeightTo.
11062 (tui_term_width): Rename termWidth.
11063 (tui_set_term_width_to): Rename setTermWidthTo.
11064 (tui_set_gen_win_origin): Rename setGenWinOrigin.
11065 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
11066 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
11067 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
11068 (tui_source_windows): Rename sourceWindows.
11069 (tui_clear_source_windows): Rename clearSourceWindows.
11070 (tui_clear_source_windows_detail): Rename
11071 clearSourceWindowsDetail.
11072 (tui_clear_win_detail): Rename clearWinDetail.
11073 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
11074 (tui_default_tab_len): Rename tuiDefaultTabLen.
11075 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
11076 (tui_win_with_focus): Rename tuiWinWithFocus.
11077 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
11078 (tui_layout_def): Rename tuiLayoutDef.
11079 (tui_win_resized): Rename tuiWinResized.
11080 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
11081 (tui_next_win): Rename tuiNextWin.
11082 (tui_prev_win): Rename tuiPrevWin.
11083 (tui_add_to_source_windows): Rename addToSourceWindows.
11084 * tui/tui-winsource.c, tui/tui-win.c: Update references.
11085 * tui/tui-layout.c, tui/tui-source.c: Ditto.
11086 * tui/tui-stack.c, tui/tui-io.c: Ditto.
11087 * tui/tui.c, tui/tui-data.c: Ditto.
11088 * tui/tui-interp.c, tui/tui-data.c: Ditto.
11089 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
11090
a358af15
AC
11091 * tui/tui-source.h: Update copyright. Include "tui-data.h".
11092 (struct symtab): Declare.
11093 (tui_set_source_content): Rename tuiSetSourceContent.
11094 (tui_show_symtab_source): Rename tuiShowSource.
11095 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
11096 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
11097 * tui/tui-source.c: Update copyright. Update references.
11098 * tui/tui-win.c, tui/tui-winsource.c: Update references.
11099 * tui/tui-stack.c: Update references.
11100
a21fcd8f
AC
11101 * tui/tui-win.h: Update copyright. Include "tui-data.h".
11102 (struct tui_win_info): Declare.
11103 (tui_scroll_forward): Rename tuiScrollForward.
11104 (tui_scroll_backward): Rename tuiScrollBackward.
11105 (tui_scroll_left): Rename tuiScrollLeft.
11106 (tui_scroll_right): Rename tuiScrollRight.
11107 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
11108 (tui_resize_all): Rename tuiResizeAll.
11109 (tui_refresh_all_win): Rename tuiRefreshAll.
11110 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
11111 * tui/tui-layout.c, * tui/tui-io.c: Update references.
11112 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
11113 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
11114
edae1ccf
AC
11115 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
11116 (tui_erase_data_content): Rename tuiEraseDataContent.
11117 (tui_display_all_data): Rename tuiDisplayAllData.
11118 (tui_check_data_values): Rename tuiCheckDataValues.
11119 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
11120 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
11121 (tui_first_data_element_no_in_line): Rename
11122 tuiFirstDataElementNoInLine.
11123 (tui_delete_data_content_windows): Rename
11124 tuiDeleteDataContentWindows.
11125 (tui_refresh_data_win): Rename tuiRefreshDataWin.
11126 (tui_display_data_from): Rename tuiDisplayDataFrom.
11127 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
11128 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
11129 * tui/tui-win.c, tui/tui-regs.c: Update references.
11130 * tui/tui-layout.c, tui/tui.c: Update references.
11131
ec7d9e56
AC
11132 * tui/tui-wingeneral.h: Update copyright.
11133 (m_allBeVisible): Delete macro.
8a1dac83 11134 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
11135 (struct tui_gen_win_info): Declare.
11136 (struct tui_win_info): Declare.
11137 (tui_unhighlight_win): Rename unhighlightWin.
11138 (tui_make_visible, tui_make_invisible): Replace makeVisible.
11139 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
11140 (tui_make_window): Rename makeWindow.
11141 (tui_copy_win): Rename copyWin.
11142 (tui_box_win): Rename boxWin.
11143 (tui_highlight_win): Rename highlightWin.
11144 (tui_check_and_display_highlight_if_needed): Rename
11145 checkAndDisplayHighlightIfNeeded.
11146 (tui_refresh_all): Rename refreshAll.
11147 (tui_delete_win): Rename tuiDelwin.
11148 (tui_refresh_win): Rename tuiRefreshWin.
11149 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
11150 (tui_make_visible, tui_make_invisible): New functions.
11151 (tui_make_all_visible, tui_make_all_invisible): New functions.
11152 (make_all_visible): Rename makeAllVisible.
11153 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
11154 * tui/tui-data.c, tui/tui-winsource.c: Update references.
11155 * tui/tui-windata.c, tui/tui-win.c: Update references.
11156 * tui/tui-regs.c, tui/tui-layout.c: Update references.
11157 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
11158
1e52e2eb
MK
111592004-02-06 Mark Kettenis <kettenis@gnu.org>
11160
11161 * proc-api.c (write_with_trace): Initialize local variable to
11162 silence compiler warning.
11163
f80bda8e
AC
111642004-02-06 Andrew Cagney <cagney@redhat.com>
11165
11166 * tui/tui-source.h: Do not include "defs.h".
11167 (struct tui_win_info): Declare.
11168 (tui_set_source_content_nil): Declare.
11169 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
11170 (union tui_line_or_address): Rename _TuiLineOrAddress.
11171 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
11172 (tui_update_source_window): Rename tuiUpdateSourceWindow.
11173 (tui_update_source_window_as_is): Rename
11174 tuiUpdateSourceWindowAsIs.
11175 (tui_update_source_windows_with_addr): Rename
11176 tuiUpdateSourceWindowsWithAddr.
11177 (tui_update_source_windows_with_line): Rename
11178 tuiUpdateSourceWindowsWithLine.
11179 (tui_clear_source_content): Rename tuiClearSourceContent.
11180 (tui_erase_source_content): Rename tuiEraseSourceContent.
11181 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
11182 (tui_show_source_content): Rename tuiShowSourceContent.
11183 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
11184 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
11185 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
11186 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
11187 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
11188 (tui_update_exec_info): Rename tuiUpdateExecInfo.
11189 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
11190 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
11191 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
11192 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
11193 (struct tui_win_info): Declare.
11194 * tui/tui-stack.c: Update references.
11195 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
11196 * tui/tui-win.c, tui/tui-source.c: Ditto.
11197 * tui/tui.c, tui/tui-disasm.c: Ditto.
11198
9fbfb822
MK
111992004-02-06 Mark Kettenis <kettenis@gnu.org>
11200
11201 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
11202 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
11203
03cebad2
MK
112042004-02-05 Mark Kettenis <kettenis@gnu.org>
11205
11206 * infrun.c (handle_inferior_event): Allow for breakpoint
11207 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
11208 and SIGEMT. Update comments.
11209 * NEWS (Revised SPARC target): Mention support for non-executable
11210 stack.
11211
290281b1
MK
112122004-02-04 Mark Kettenis <kettenis@gnu.org>
11213
11214 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
11215 * inftarg.c: Update copyright year.
11216 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
11217 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
11218 (sparc_xfer_wcookie): New function.
11219 * sparc-tdep.c (sparc_fetch_wcookie): New function.
11220 * Makefile.in (sparc-nat.o): Update dependencies.
11221 * config/sparc/nm-nbsd.h: Include "target.h".
11222 (NATIVE_XFER_WCOOKIE): New define.
11223 (sparc_xfer_wcookie): New prototype.
11224
212161df
AC
112252004-02-04 Andrew Cagney <cagney@redhat.com>
11226
11227 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
11228 SYSCALL_TRAP function.
11229 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
11230
6e4c6c91
DJ
112312004-02-04 Andrew Cagney <cagney@redhat.com>
11232 Daniel Jacobowitz <drow@mvista.com>
11233
11234 * objfiles.h: Delete comments refering to inside_entry_func and
11235 DEPRECATED_FRAME_CHAIN_VALID.
11236 * defs.h (inside_entry_func): Update prototype..
11237 * blockframe.c (inside_entry_func): Rename to
11238 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
11239 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
11240
cae688ec
JJ
112412004-02-03 Jeff Johnston <jjohnstn@redhat.com>
11242
11243 * breakpoint.c (struct captured_parse_breakpoint_args): Move
11244 outside of #ifdef SOLIB_ADD region.
11245 (do_restore_lang_radix_cleanup): Ditto.
11246 (resolve_pending_breakpoint): Ditto.
11247
19217676
AC
112482004-02-03 Andrew Cagney <cagney@redhat.com>
11249
11250 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
11251 (process_note_abi_tag_sections): Delete unused function.
11252 (ia64_read_fp): Delete unused function.
11253 (gdbarch_extract_struct_value_address): Delete declaration.
11254
876753be
AC
112552004-02-02 Andrew Cagney <cagney@redhat.com>
11256
11257 * vax-tdep.c (vax_frame_chain): Delete call to
11258 deprecated_inside_entry_file.
11259 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
11260
d4f10bf2
MK
112612004-02-02 Mark Kettenis <kettenis@gnu.org>
11262
11263 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
11264 column that's "empty" or "same value" when eliminating REG_RA
11265 rules.
11266
cae688ec
JJ
112672004-02-02 Jeff Johnston <jjohnstn@redhat.com>
11268
11269 * NEWS: Add information about new pending breakpoint support.
11270
0101ce28
JJ
112712004-02-02 Jeff Johnston <jjohnstn@redhat.com>
11272
11273 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
11274 and pending fields for pending breakpoint support.
11275 * breakpoint.c (breakpoint_enabled): Add check for not pending.
11276 (condition_command): Only parse condition if not a pending
11277 breakpoint.
11278 (print_one_breakpoint): Add support for pending breakpoints.
11279 (describe_other_breakpoints): Add checks to verify we are not
11280 dealing with pending breakpoints.
11281 (check_duplicates): Don't check pending breakpoints.
11282 (set_raw_breakpoint): Initialize pending flag.
11283 (do_restore_lang_radix_cleanup): New cleanup routine.
11284 (resolve_pending_breakpoint): New function.
11285 (re_enable_breakpoints_in_shlibs): Try and resolve any
11286 pending breakpoints via resolve_pending_breakpoint.
11287 (mention): Add pending breakpoint support.
11288 (parse_breakpoint_sals): Add new parameter to pass to
11289 decode_line_1 to indicate silent errors when files or functions
11290 are not found. Change all callers.
11291 (do_captured_parse_breakpoint): New function.
11292 (break_command_1): Change prototype to return an rc value and to
11293 take an optional pending breakpoint pointer. Support creating
11294 a pending breakpoint if a "not found" form of error occurs when
11295 parsing the breakpoint. Also support resolving an existing pending
11296 breakpoint and be silent if the resolution fails.
11297 (create_breakpoints): Change prototype to take pending breakpoint
11298 pointer. When resolving a pending breakpoint, use the new pointer
11299 to provide a conditional or commands added by the end-user.
11300 (delete_breakpoint): Add appropriate check for pending.
11301 (breakpoint_re_set_one): Ditto.
11302 (do_enable_breakpoint): Ditto.
11303
8d577d32
DC
113042004-02-02 David Carlton <carlton@kealia.com>
11305
11306 * valops.c (enum oload_classification): New.
11307 (find_overload_match): Break implementation into separate
11308 functions; delete #if 0'd code; look for symbols within
11309 namespaces.
11310 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
11311 (find_oload_champ,oload_method_static,classify_oload_match): New.
11312 * cp-support.h: Add declaration for cp_func_name; update
11313 declaration for make_symbol_overload_list.
11314 * cp-support.c (cp_func_name): New.
11315 (overload_list_add_symbol): Fix comment, use
11316 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
11317 (make_symbol_overload_list): Take a function name and a namespace
11318 instead of a symbol; change implementation.
11319 (make_symbol_overload_list_using): New.
11320 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
11321
22e8e3c7
FF
113222004-02-02 Fred Fish <fnf@redhat.com>
11323
11324 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 11325 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
11326 * remote-sim.c (gdb_os_write_stderr): Write output to
11327 gdb_stdtargerr stream instead of gdb_stdtarg stream.
11328 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 11329 gdb_stderr stream and update copyright years.
22e8e3c7 11330
6b753f60
DJ
113312004-02-01 Daniel Jacobowitz <drow@mvista.com>
11332
11333 * Makefile.in (mips-linux-nat.o): Update dependencies.
11334 * mips-linux-nat.c: Include mips-tdep.h.
11335
113362004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
11337
11338 * sol-thread.c (sol_thread_xfer_partial): New function.
11339 (init_sol_thread_ops): Use that for to_xfer_partial hook.
11340 (init_sol_core_ops): Likewise.
11341
11342 * procfs.c (procfs_xfer_partial): New function.
11343 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
11344 * Makefile.in (procfs.o): Add $(auxv_h) dep.
11345
11346 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
11347 procfs_xfer_auxv function.
11348
11349 * procfs.c (procfs_make_note_section): If we can read
11350 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
11351 * linux-proc.c (linux_make_note_section): Likewise.
11352
11353 * auxv.h: New file.
11354 * auxv.c: New file.
11355 * Makefile.in (auxv_h): New variable.
11356 (COMMON_OBS): Add auxv.o here.
11357 (auxv.o): New target.
11358
11359 * corelow.c (core_xfer_partial): New function.
11360 (init_core_ops): Use it for core_ops.to_xfer_partial.
11361
11362 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
11363 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
11364 macro if that is defined.
11365
fa5281d0
DJ
113662004-02-01 Daniel Jacobowitz <drow@mvista.com>
11367
11368 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
11369 and check the specified thread for each breakpoint.
11370 * breakpoint.h (bpstat_stop_status): Update prototype.
11371 * infrun.c (handle_inferior_event): Update calls to
11372 bpstat_stop_status.
11373
26ee262d
DJ
113742004-02-01 Daniel Jacobowitz <drow@mvista.com>
11375
11376 * Makefile.in (cli-cmds.o): Add $(readline_h).
11377
d9b52655
DJ
113782004-02-01 Daniel Jacobowitz <drow@mvista.com>
11379
11380 * cli/cli-cmds.c: Include readline.h.
11381 (complete_command): Pass the start of the last word to
11382 complete_line.
11383
9709f61c
DJ
113842004-01-31 Daniel Jacobowitz <drow@mvista.com>
11385
11386 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
11387 argument, and change first argument to a CORE_ADDR.
11388 * breakpoint.h (bpstat_stop_status): Update prototype.
11389 * infrun.c (adjust_pc_after_break): Add a new comment.
11390 (handle_inferior_event): Update calls to bpstat_stop_status.
11391
4f1280bb
DJ
113922004-01-31 Daniel Jacobowitz <drow@mvista.com>
11393
11394 * breakpoint.h: Update copyright years.
11395
4fa8626c
DJ
113962004-01-31 Daniel Jacobowitz <drow@mvista.com>
11397
11398 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
11399 (bpstat_stop_status): Don't decrement PC.
11400 * breakpoint.h (software_breakpoint_inserted_here_p): Add
11401 prototype.
11402 * infrun.c (adjust_pc_after_break): New function.
11403 (handle_inferior_event): Call it, early. Remove later references
11404 to DECR_PC_AFTER_BREAK.
11405 (normal_stop): Add commentary.
11406
fad0733a
DJ
114072004-01-31 Daniel Jacobowitz <drow@mvista.com>
11408
11409 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
11410 2004-01-27 double-free fix.
11411
42cdca6c
MK
114122004-01-31 Mark Kettenis <kettenis@gnu.org>
11413
11414 * sparc-tdep.c (sparc_fetch_wcookie): New function.
11415 (sparc32_frame_prev_register): Handle StackGhost.
11416 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11417
932d5416
RM
114182004-01-29 Roland McGrath <roland@redhat.com>
11419
11420 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
11421 * configure: Regenerated.
11422
11423 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
11424 * Makefile.in (procfs.o): Add dep.
11425
47d3492a
AC
114262004-01-28 Andrew Cagney <cagney@redhat.com>
11427
11428 * tui/tui-stack.h: Update copyright.
11429 (struct frame_info): Add opaque declaration.
11430 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
11431 (tui_show_locator_content): Rename tuiShowLocatorContent.
11432 (tui_show_frame_info): Rename tuiShowFrameInfo.
11433 * tui/tui-stack.c: Update copyright. Update references.
11434 * tui/tui-winsource.c: Update references.
11435 * tui/tui-win.c: Update references.
11436 * tui/tui-layout.c: Update references.
11437 * tui/tui-hooks.c: Update copyright, update references.
11438 * tui/tui.c: Update copyright, update references.
11439 * tui/tui-disasm.c: Update references.
11440
5d51ca54
DC
114412004-01-28 David Carlton <carlton@kealia.com>
11442
11443 * dwarf2read.c (add_partial_structure): Use demangled name if
11444 namespace equals "".
11445
086ed43d
JB
114462004-01-27 Jim Blandy <jimb@redhat.com>
11447
11448 Clean up misapplied patch:
11449 * dwarf2read.c (determine_prefix): Change one of the two forward
11450 declarations for 'determine_prefix_aux' to a declaration for this.
11451 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
11452 argument to 'die_specification'.
11453
2a35147e
JB
11454 * dwarf2read.c (read_func_scope): Re-indent comment.
11455
a355c7de 114562004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 11457
a355c7de
AC
11458 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
11459 b->exp to NULL after freeing so that error during re-parsing or
11460 evaluation of expressions associated with breakpoint don't
11461 eventually lead to re-freeing of storage.
11462 Committed by Andrew Cagney.
11463
63ff5125
AC
114642004-01-27 Andrew Cagney <cagney@redhat.com>
11465
11466 * source.c (ambiguous_line_spec): Delete undefined declaration.
11467 * m32r-rom.c (m32r_set_board_address): Delete unused function.
11468 (m32r_set_server_address, m32r_set_download_path): Ditto.
11469 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
11470
e142c38c
DJ
114712004-01-27 Daniel Jacobowitz <drow@mvista.com>
11472
11473 * dwarf2read.c: Update calls to changed and renamed functions, and
11474 references to moved variables.
11475
11476 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
11477 language, language_defn, list_in_scope, and ftypes members.
11478 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
11479 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
11480 (baseaddr): Remove globals.
11481
11482 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
11483 (set_cu_language, die_is_declaration, die_specification)
11484 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
11485 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
11486 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
11487 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
11488
11489 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
11490 cu.list_in_scope. Don't initialize cu_header_offset.
11491 (add_partial_symbol): Add local baseaddr.
11492 (psymtab_to_symtab_1): Add local baseaddr. Use
11493 objfile->section_offsets for consistency. Don't initialize
11494 cu_header_offset; do initialize cu.header.offset and
11495 cu.list_in_scope.
11496 (read_file_scope, read_func_scope, read_lexical_block_scope)
11497 (dwarf_decode_lines, new_symbol): Add local baseaddr.
11498
c6e06ede
MC
114992004-01-27 Michael Chastain <mec.gnu@mindspring.com>
11500
fb328ecc 11501 * PROBLEMS: Add gdb/1516.
c6e06ede 11502
48184fd4
AC
115032003-12-29 Robert Millan <robertmh@gnu.org>
11504
11505 Patch committed by Andrw Cagney.
11506 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
11507 * configure.tgt: Match knetbsd*-gnu.
11508
c1321b30
AC
115092004-01-26 Andrew Cagney <cagney@redhat.com>
11510
f3699be3
AC
11511 * breakpoint.c (catch_command_1): Delete #ifdef code.
11512 (catch_fork_command_1): Delete #ifdef wrapper.
11513 (catch_exec_command_1): Ditto.
11514 (catch_load_command_1): Ditto.
11515 (catch_unload_command_1): Ditto.
11516
c1321b30
AC
11517 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
11518 (catch_breakpoint): Delete #if0ed function.
11519 (disable_catch_breakpoint): Ditto.
11520 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
11521 (disable_catch, enable_catch, delete_catch): Ditto.
11522
b4501125
AC
115232004-01-26 Andrew Cagney <cagney@redhat.com>
11524
11525 * remote.c (echo_check, quit_flag): Delete variables.
11526 (cisco_kernel_mode): Delete variable.
11527 (minitelnet_return, tty_input, escape_count): Delete variables.
11528 (remote_cisco_mode): Delete variable.
11529 (remote_cisco_open, remote_cisco_close): Delete function.
11530 (remote_cisco_mourn, remote_cisco_wait): Delete function.
11531 (init_remote_cisco_ops): Delete function.
11532 (_initialize_remote): Do not install "remote cisco" code.
11533 (read_frame): Delete cisco specific code.
11534 (remote_info_process): Delete function.
11535 (remote_wait): Delete cisco specific code.
11536 (remote_cisco_section_offsets): Delete function.
11537 (remote_cisco_objfile_relocate): Delete function.
11538 (remote_async_wait): Delete cisco specific code.
11539 (minitelnet, readtty, readsocket): Delete function.
11540
74055713
AC
115412004-01-26 Andrew Cagney <cagney@redhat.com>
11542
11543 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
11544 comments mentioning extract_returned_value_address.
11545 * infcmd.c (print_return_value): Update. Add comments on
11546 extract_returned_value_address.
11547 * stack.c (return_command): Add comments on
11548 extract_returned_value_address.
11549 * values.c: Update comment.
11550 * m32r-tdep.c: Update comment.
11551 * sparc-tdep.c: Update comment.
11552 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
11553 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11554 * sh64-tdep.c (sh64_gdbarch_init): Update.
11555 * sh-tdep.c (sh_gdbarch_init): Update.
11556 * s390-tdep.c (s390_gdbarch_init): Update.
11557 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11558 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
11559 * m68k-tdep.c (m68k_gdbarch_init): Update.
11560 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11561 * m32r-tdep.c (m32r_gdbarch_init): Update.
11562 * ia64-tdep.c (ia64_gdbarch_init): Update.
11563 * h8300-tdep.c (h8300_gdbarch_init): Update.
11564 * frv-tdep.c (frv_gdbarch_init): Update.
11565 * arm-tdep.c (arm_gdbarch_init): Update.
11566 * alpha-tdep.c (alpha_gdbarch_init): Update.
11567
a67af2b9
AC
115682004-01-26 Andrew Cagney <cagney@redhat.com>
11569
11570 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
11571 SYMBOL_LOCATION_FUNCS
11572 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
11573 "struct symbol_ops".
11574 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
11575 type to "struct symbol_ops".
11576 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
11577 (struct symbol): Replace ".aux_value.loc.funcs" and
11578 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
11579 (SYMBOL_OBJFILE): Delete macro.
11580 (SYMBOL_LOCATION_FUNCS): Delete macro.
11581 (SYMBOL_LOCATION_BATON): Update.
11582 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
11583 intead of SYMBOL_LOCATION_FUNCS.
11584 * ax-gdb.c (gen_var_ref): Ditto.
11585 * printcmd.c (address_info): Ditto.
11586 * findvar.c (read_var_value): Ditto.
11587 (symbol_read_needs_frame): Ditto.
11588
c034e007
AC
115892004-01-26 Andrew Cagney <cagney@redhat.com>
11590
11591 * dwarf2read.c (read_func_scope): Document frame-base hack.
11592
bb472c1e
MK
115932004-01-25 Mark Kettenis <kettenis@gnu.org>
11594
11595 * infcmd.c (print_return_value): Plug memory leak; delete
11596 ui_stream object. Rename argument `structure_return' to
11597 `struct_return'.
11598
c8e737d5
MK
115992004-01-25 Mark Kettenis <kettenis@gnu.org>
11600
f941662f
MK
11601 * infcmd.c (print_return_value): Wrap long lines.
11602 (finish_command_continuation, finish_command): Remove unused
11603 variable `funcaddr'. Fix some coding-standards problems.
11604
c558d81a 11605 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 11606 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
11607 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
11608 TDEP->fpregset to zero.
11609
bf1e5861 11610 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
11611 floating-point registers for traditional NetBSD core files.
11612 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
11613 TDEP->sizeof_fpregset here.
11614
4c72d57a
MK
116152004-01-25 Mark Kettenis <kettenis@gnu.org>
11616
566626fa
MK
11617 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
11618 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
11619 function with code split out from
11620 sparc32nbsd_sigcontext_frame_cache.
11621 (sparc32nbsd_sigcontext_frame_cache): Use
11622 sparc32nbsd_sigcontext_saved_regs.
11623 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
11624 OpenBSD.
11625 * sparcobsd-tdep.c: New file.
11626 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
11627 (sparcobsd-tdep.o): New dependency.
11628 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
11629 * config/sparc/obsd.mt: New file.
11630
4c72d57a
MK
11631 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
11632 TDEP->fpregset to be initialized to enable core file register
11633 sets.
11634
7e5e9f88
MK
116352004-01-24 Mark Kettenis <kettenis@gnu.org>
11636
f0f207fd 11637 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
11638 Add opaque declarations.
11639 (sparc64nbsd_sigcontext_saved_regs): New prototype.
11640 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
11641 function with code split out from
11642 sparc64nbsd_sigcontext_frame_cache.
11643 (sparc64nbsd_sigcontext_frame_cache): Use
11644 sparc64nbsd_sigcontext_saved_regs.
11645 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
11646 OpenBSD.
11647 * sparc64obsd-tdep.c: New file.
11648 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
11649 (sparc64obsd-tdep.o): New dependency.
11650 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
11651 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
11652 * config/sparc/obsd64.mt: New file.
11653
690668cc
MK
11654 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
11655 read the instruction at PC.
11656
7e5e9f88
MK
11657 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
11658 value of GDB_OSABI_DEFAULT.
11659 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
11660 instead of GDB_OSABI_NETBSD_AOUT.
11661
68b6dce9
NR
116622004-01-24 Nick Roberts <nick@nick.uklinux.net>
11663
11664 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
11665 copyright.
11666
080ce8c0
AC
116672004-01-23 Andrew Cagney <cagney@redhat.com>
11668
11669 * printcmd.c (display_command): Replace tui_set_display call with
11670 tui_set_layout_for_display_command.
11671 * tui/tui.h (enum tui_win_type): Define.
11672 (tui_set_layout): Delete declaration.
11673 (tui_set_layout_for_display_command): Rename set_tui_layout.
11674 * tui/tui-data.h (enum tui_layout_type): Define.
11675 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
11676 "tui.h".
11677 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
11678 (tui_default_win_height): Rename tuiDefaultWinHeight.
11679 (tui_default_win_viewport_height): Rename
11680 tuiDefaultWinViewportHeight.
11681 (tui_set_layout): RenametuiSetLayout.
11682 * tui/tui-layout.c: Update references.
11683 * tui/tui.c: Update references.
11684 * tui/tui-disasm.c: Update references.
11685
b368761e
DC
116862004-01-23 David Carlton <carlton@kealia.com>
11687
11688 Partial workaround for PR c++/1511:
11689 * cp-namespace.c: Include frame.h.
11690 (cp_lookup_transparent_type): New
11691 (cp_lookup_transparent_type_loop): New.
11692 * cp-support.h: Declare cp_lookup_transparent_type.
11693 * symtab.c (basic_lookup_transparent_type): Renamed from
11694 lookup_transparent_type.
11695 (lookup_transparent_type): Replace old body by a call to
11696 current_language->la_lookup_transparent_type.
11697 * symtab.h: Update copyright. Declare
11698 basic_lookup_transparent_type.
11699 * language.h: Update copyright.
11700 (struct language_defn): Add la_lookup_transparent_type.
11701 * language.c: Update copyright.
11702 (unknown_language_defn): Add basic_lookup_transparent_type.
11703 (auto_language_defn): Add basic_lookup_transparent_type.
11704 (local_language_defn): Add basic_lookup_transparent_type.
11705 * ada-lang.c: Update copyright.
11706 (ada_language_defn): Add basic_lookup_transparent_type.
11707 * c-lang.c: Update copyright.
11708 (c_language_defn): Add basic_lookup_transparent_type.
11709 (cplus_language_defn): Add basic_lookup_transparent_type.
11710 (asm_language_defn): Add basic_lookup_transparent_type.
11711 (minimal_language_defn): Add basic_lookup_transparent_type.
11712 * f-lang.c: Update copyright.
11713 (f_language_defn): Add basic_lookup_transparent_type.
11714 * jv-lang.c: Update copyright.
11715 (java_language_defn): Add basic_lookup_transparent_type.
11716 * m2-lang.c: Update copyright.
11717 (m2_language_defn): Add basic_lookup_transparent_type.
11718 * objc-lang.c: Update copyright.
11719 (objc_language_defn): Add basic_lookup_transparent_type.
11720 * p-lang.c: Update copyright.
11721 (p_language_defn): Add basic_lookup_transparent_type.
11722 * scm-lang.c: Update copyright.
11723 (scm_language_defn): Add basic_lookup_transparent_type.
11724 * Makefile.in (cp-namespace.o): Depend on frame.h.
11725
fdde2d81
DC
117262004-01-23 David Carlton <carlton@kealia.com>
11727
11728 Patch for PR c++/1520:
11729 * dwarf2read.c (read_func_scope): Set processing_current_prefix
11730 properly if we have a specification die.
11731 (determine_prefix_aux): Rename from determine_prefix.
11732 (determine_prefix): Like the old determine_prefix, but never
11733 returns NULL.
11734
5b828b6b
TR
117352004-01-23 Theodore A. Roth <troth@openavr.org>
11736
11737 * avr-tdep.c: Update copyright.
11738 (avr_iaddr_p): Delete unused function.
11739 (avr_saddr_p): Delete unused function.
11740
a1b8c067
DC
117412004-01-23 David Carlton <carlton@kealia.com>
11742
11743 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
11744 Fix for PR symtab/1534.
11745
f2cab569
MK
117462004-01-23 Mark Kettenis <kettenis@gnu.org>
11747
11748 * NEWS (New native configurations): Mention OpenBSD/sparc and
11749 OpenBSD/sparc64.
11750 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
11751 * configure.host: Likewise.
11752 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
11753 handler for OpenBSD.
11754 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
11755
642d8300
MK
117562004-01-22 Mark Kettenis <kettenis@gnu.org>
11757
89aac506
MK
11758 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
11759 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
11760
36662fde
MK
11761 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
11762 * cli/cli-cmds.c (shell_escape): Likewise.
11763
642d8300
MK
11764 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
11765 OpenBSD .note.openbsd.ident sections.
11766
fae299cd
DC
117672004-01-22 David Carlton <carlton@kealia.com>
11768
11769 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
11770 get_scope_pc_bounds.
11771 (read_file_scope): Ditto.
11772 (get_scope_pc_bounds): New function, produced by extracting code
11773 from the above two functions, consolidating it, and adding support
11774 for DW_TAG_namespace.
11775
a49d618c
MK
117762004-01-22 Mark Kettenis <kettenis@gnu.org>
11777
11778 * osabi.c (MAX_NOTESZ): New define.
11779 (check_note): New function.
11780 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
11781 check_note.
11782
fe61caab
RM
117832004-01-21 Roland McGrath <roland@redhat.com>
11784
11785 * MAINTAINERS (write after approval): Add myself.
11786
ec145965
EZ
117872004-01-21 Eli Zaretskii <eliz@gnu.org>
11788
11789 * utils.c (init_page_info): Move declarations of `rows' and
11790 `cols' before the __GO32__-specific code. Move the closing brace
11791 outside the #ifdef __GO32__..#endif block.
11792 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
11793
877522db
PB
117942004-01-21 Paul Brook <paul@codesourcery.com>
11795
11796 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
11797 BPSTAT_WHAT_CHECK_SHLIBS.
11798
dbf5be1c
PB
117992004-01-21 Paul Brook <paul@codesourcery.com>
11800
11801 * MAINTAINERS: Add myself to write-after-approval.
11802
81f08b92
AC
118032004-01-20 Andrew Cagney <cagney@redhat.com>
11804
5a1efed7
AC
11805 * ax-gdb.c (print_axs_value): Delete unused function.
11806 * jv-lang.c (java_lookup_type): Delete unused function.
11807 * cli/cli-dump.c (dump_filetype): Delete unused function.
11808 * remote-mips.c (remote_mips_insert_hw_breakpoint)
11809 (remote_mips_remove_hw_breakpoint): Delete unused functions.
11810 (mips_getstring): Delete unused function.
11811 (pmon_insert_breakpoint): Delete #if0ed function.
11812 (PMON_MAX_BP): Delete #if0ed MACRO.
11813 (mips_pmon_bp_info): Delete #if0ed variable.
11814 (pmon_remove_breakpoint): Delete #if0ed function.
11815 * monitor.c (monitor_write_even_block): Delete unused function.
11816 (monitor_write_memory_block): Delete #if0ed code.
11817 * dink32-rom.c (dink32_load): Delete unused function.
11818 (_initialize_dink32_rom): Delete #if0ed code.
11819 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
11820
b0a30fce
AC
11821 * tui/tui-command.c: Update references.
11822 * tui/tui-io.c: Update references.
11823 * tui/tui-command.h: Update copyright.
11824 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
11825
81f08b92
AC
11826 * source.c (ambiguous_line_spec): Delete never-defined function.
11827 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
11828 * gdbtypes.c (add_name, add_mangled_type): Ditto.
11829 * cli/cli-cmds.c (validate_comname): Ditto.
11830
65f05602
AC
11831 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
11832 "tui-data.h".
11833 (tui_set_disassem_content): Rename tuiSetDisassemContent.
11834 (tui_show_disassem): Rename tuiShowDisassem.
11835 (tui_show_disassem_and_update_source): Rename
11836 tuiVerticalDisassemScroll.
11837 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
11838 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
11839 * tui/tui.h: Update copyright.
11840 (enum tui_status): Define.
11841 * tui/tui-data.h (enum tui_scroll_direction): Define.
11842 * tui/tui-disasm.c: Update copyright. Update references.
11843 * tui/tui-winsource.c: Update copyright. Update references.
11844 * tui/tui-win.c: Update references.
11845 * tui/tui-layout.c: Update references.
11846
6bb0384f
AC
118472004-01-20 Andrew Cagney <cagney@redhat.com>
11848
11849 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
11850 sym2 to start of block.
11851
9175c9a3
MC
118522004-01-19 Michael Chastain <mec.gnu@mindspring.com>
11853
11854 * MAINTAINERS: Delete mmalloc.
11855 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
11856 * NEWS: Mention removal of --with-malloc.
11857 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
11858 * config.in: Regenerate.
11859 * configure: Regenerate.
6bb0384f
AC
11860 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
11861 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
11862 * gdbinit.in: Remove mmalloc.
11863 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
11864 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
11865 * config/i386/go32.mh: Likewise.
11866 * config/i386/interix.mh: Likewise.
11867 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
11868
4fcef00a
JJ
118692004-01-19 Jeff Johnston <jjohnstn@redhat.com>
11870
11871 * linespec.c (decode_variable, symtab_from_filename): Call
11872 error_silent with error message instead of throwing an exception
11873 directly.
11874 * defs.h (error_silent, error_output_message): Add prototypes.
11875 (catch_exceptions_with_msg): Ditto.
11876 * utils.c (error_silent, error_output_message): New functions.
11877 * top.c (catch_exceptions_with_msg): New function.
11878
8e94b928
NR
118792004-01-20 Nick Roberts <nick@nick.uklinux.net>
11880
11881 * mi/mi-cmds.h (enum print_values): Add definition.
11882
11883 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
11884 type and value for simple data types and just the name and type
11885 for complex ones, if required.
11886
11887 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
11888 children, if required.
11889
a02d6af8
KB
118902004-01-19 Kevin Buettner <kevinb@redhat.com>
11891
11892 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
11893 unused declarations.
11894
78a4a9b9
AC
118952004-01-19 Andrew Cagney <cagney@redhat.com>
11896
11897 * top.h (mapped_symbol_files): Delete declaration.
11898 * main.c (captured_main): Delete option "m" and "mapped".
11899 * objfiles.c (mapped_symbol_files): Delete variable.
11900 * symfile.c (symbol_file_command): Delete mmap code.
11901 (symbol_file_add_with_addrs_or_offsets): Ditto.
11902 (add_symbol_file_command, reread_separate_symbols): Ditto.
11903 * objfiles.h (OBJF_MAPPED): Delete.
11904 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
11905 (free_objfile) [USE_MMALLOC]: Ditto.
11906 (open_existing_mapped_file): Delete function.
11907 (open_mapped_file): Delete function.
11908 (map_to_file): Delete function.
11909
2dbd5e30
KB
119102004-01-19 Kevin Buettner <kevinb@redhat.com>
11911
11912 * infrun.c (step_into_function): Account for possible breakpoint
11913 adjustment when computing ``stop_func_start''.
11914
437b434f
KB
119152004-01-19 Kevin Buettner <kevinb@redhat.com>
11916
11917 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
11918 the region size against the size of a pointer, not the size of
11919 a register as given by DEPRECATED_REGISTER_SIZE.
11920
55fb0713
AC
119212004-01-19 Andrew Cagney <cagney@redhat.com>
11922
11923 * tui/tui-regs.h: Include "tui-data.h".
11924 (tuiFirstRegElementNoInLine): Delete declaration.
11925 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
11926 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
11927 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
11928 (tui_calculate_regs_column_count): Rename
11929 tuiCalculateRegsColumnCount.
11930 (tui_check_register_values): Rename tuiCheckRegisterValues.
11931 (tui_show_registers): Rename tuiShowRegisters.
11932 (tui_display_registers_from_line): Rename
11933 tuiDisplayRegistersFromLine.
11934 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
11935 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
11936 (tui_first_reg_element_no_inline): Rename
11937 tuiFirstRegElementNoInLine.
11938 * tui/tui-data.h: Update copyright.
11939 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
11940 * tui/tui-windata.c: Update copyright, update references.
11941 * tui/tui-regs.c: Update copyright, update references.
11942 * tui/tui-win.c: Update copyright, update references.
11943 * tui/tui-layout.c: Update copyright, update references.
fe61caab 11944
cebe9500
AC
119452004-01-18 Andrew Cagney <cagney@redhat.com>
11946
bcdf1568
AC
11947 * tui/tui-io.c: Update copyright.
11948 (key_is_end_sequence, key_is_backspace): New functions.
11949 (key_is_command_char, key_is_start_sequence): New function.
11950 (tui_getc): Update references.
11951 * tui/tui-io.h: Update copyright.
11952 (m_tuiStartNewLine): Delete macro.
11953 (m_isBackspace, m_isDeleteChar): Delete macros.
11954 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
11955 (m_isNextPage, m_isPrevPage): Delete macros.
11956 (m_isLeftArrow, m_isRightArrow): Delete macros.
11957 (m_isXdbStyleCommandChar): Delete macro.
11958 (key_is_start_sequence): Declare, replace m_isStartSequence.
11959 (key_is_end_sequence): Declare, replace m_isEndSequence.
11960 (key_is_backspace): Declare ,replace m_isBackspace.
11961 (key_is_command_char): Declare, replace m_isCommandChar.
11962 * tui/tui-command.c: Update copyright.
11963 (tuiDispatchCtrlChar): Update references.
11964
130d87e6
AC
11965 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
11966 tuiSourceWin.h.
11967
d7b2e967
AC
11968 * tui/tui-command.c: Rename tui/tuiCommand.c.
11969 * tui/tui-command.h: Rename tui/tuiCommand.h.
11970 * tui/tui-data.c: Rename tui/tuiData.c.
11971 * tui/tui-data.h: Rename tui/tuiData.h.
11972 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
11973 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
11974 * tui/tui-io.c: Rename tui/tuiIO.c.
11975 * tui/tui-io.h: Rename tui/tuiIO.h.
11976 * tui/tui-layout.c: Rename tui/tuiLayout.c.
11977 * tui/tui-layout.h: Rename tui/tuiLayout.h.
11978 * tui/tui-regs.c: Rename tui/tuiRegs.c.
11979 * tui/tui-regs.h: Rename tui/tuiRegs.h.
11980 * tui/tui-source.c: Rename tui/tuiSource.c.
11981 * tui/tui-source.h: Rename tui/tuiSource.h.
11982 * tui/tui-stack.c: Rename tui/tuiStack.c.
11983 * tui/tui-stack.h: Rename tui/tuiStack.h.
11984 * tui/tui-win.c: Rename tui/tuiWin.c.
11985 * tui/tui-win.h: Rename tui/tuiWin.h.
11986 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
11987 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
11988 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
11989 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
11990 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
11991 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
11992 * tui/tui-file.c: Update includes.
11993 * tui/tui-hooks.c: Update includes.
11994 * tui/tui-interp.c: Update includes.
11995 * tui/tui.c: Update includes.
11996 * Makefile.in: Update all tui/ dependencies.
11997 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
11998
b2100910
AC
11999 * Makefile.in: Update copyright. Update dependencies.
12000
cebe9500
AC
12001 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
12002 problem.
12003
c6f0559b
AC
120042004-01-18 Andrew Cagney <cagney@redhat.com>
12005
43e9390b
AC
12006 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
12007 instead of register_gdbarch_init.
12008
c6f0559b
AC
12009 * remote-sds.c (tohex): Delete unused function. Update copyright.
12010 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
12011 * v850-tdep.c (v850_register_virtual_size): Ditto.
12012 * target.c (normal_target_post_startup_inferior): Ditto.
12013 * source.c (ambiguous_line_spec): Ditto.
12014 * remote.c (adapt_remote_get_threadinfo): Ditto.
12015 * mi/mi-out.c (out_field_fmt): Ditto.
12016 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
12017 (output_control_change_notification): Ditto.
12018 * m68k-tdep.c (m68k_register_byte): Ditto.
12019 (m68k_remote_breakpoint_from_pc): Ditto.
12020 * ui-out.c (init_ui_out_state): Delete unused declaration.
12021 * stabsread.c (search_value): Ditto.
12022 * mi/mi-cmd-env.c (env_cli_command): Ditto.
12023 * maint.c (print_section_table): Ditto.
12024 * infrun.c (set_follow_fork_mode_command): Ditto.
12025
a8504492
MK
120262004-01-18 Mark Kettenis <kettenis@gnu.org>
12027
12028 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
12029 DW_CFA_def_cfa_exporession. Add support for
12030 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
12031 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
12032
0bd8997e
AC
120332004-01-18 Andrew Cagney <cagney@redhat.com>
12034
12035 * ocd.c: Update copyright.
12036 (bdm_read_register_command): Delete unused function.
12037 (_initialize_remote_ocd): Delete commented out reference.
12038 (get_quoted_char, reset_packet): Delete #if0ed function.
12039 (output_packet, put_quoted_char): Delete #if0ed function.
12040 (stu_put_packet, stu_get_packet): Delete #if0ed function.
12041 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
12042 (BDM_BREAKPOINT): Delete #if0ed macro.
12043 (remote_timeout): Delete #if0ed variable.
12044
31bb40e4
MK
120452004-01-18 Mark Kettenis <kettenis@gnu.org>
12046
12047 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
12048 (core-sol2.o): Remove dependency.
12049 * core-sol2.c: Remove file.
12050
887432a5
AC
120512004-01-17 Andrew Cagney <cagney@redhat.com>
12052
12053 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
12054 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
12055 enums.
12056
29182b13
DJ
120572004-01-17 Daniel Jacobowitz <drow@mvista.com>
12058
12059 * remote.c: Update copyright years.
12060
2963ee1d
DJ
120612004-01-17 Daniel Jacobowitz <drow@mvista.com>
12062
12063 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
12064
79d45cd4
AC
120652004-01-17 Andrew Cagney <cagney@redhat.com>
12066
ee300cd4
AC
12067 * mdebugread.c: Update copyright.
12068 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
12069 (parse_type, parse_procedure): Ditto.
12070 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
12071
fcacc9c2
AC
12072 * cris-tdep.c (cris_store_struct_return): Put back accidently
12073 deleted function.
12074
79d45cd4
AC
12075 * gdbarch.sh: Update copyright year.
12076 * gdbarch.h, gdbarch.c: Re-generate.
12077
b263358a
DJ
120782004-01-17 Daniel Jacobowitz <drow@mvista.com>
12079
12080 Suggested by George Anzinger.
12081 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
12082 correct stack offset. Include unknown opcode numbers in the error
12083 message.
12084
931aecf5
AC
120852004-01-17 Andrew Cagney <cagney@redhat.com>
12086
12087 * x86-64-tdep.c (x86_64_init_abi): No need to clear
12088 extract_struct_value_address, i386 does not set it.
12089 * sparc64-tdep.c (sparc64_init_abi): Do not set
12090 extract_struct_value_address, never called.
12091 (sparc64_extract_struct_value_address): Delete function.
12092 * m68hc11-tdep.c: Update copyright.
12093 (m68hc11_gdbarch_init): Delete redundant assignment of
12094 extract_struct_value_address.
12095 * i386-tdep.c: Update copyright.
12096 (i386_gdbarch_init): Do not set extract_struct_value_address,
12097 never called.
12098 (i386_extract_struct_value_address): Delete function.
12099 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
12100 extract_struct_value_address, never called.
12101 (sparc32_extract_struct_value_address): #if 0 function. Add
12102 comments explaining its future.
12103
756fe439
DJ
121042004-01-17 Daniel Jacobowitz <drow@mvista.com>
12105
12106 * arm-tdep.c (arm_write_pc): New function.
12107 (arm_gdbarch_init): Call set_gdbarch_write_pc.
12108
e74f0f02
DJ
121092004-01-17 Daniel Jacobowitz <drow@mvista.com>
12110
12111 * breakpoint.c (must_shift_inst_regs): Delete.
12112 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
12113 and SHIFT_INST_REGS.
12114 * infcmd.c (step_1, step_1_continuation): Delete references to
12115 SHIFT_INST_REGS.
12116 * infrun.c (keep_going): Likewise.
12117 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
12118 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
12119
b6cb9035
AC
121202004-01-17 Andrew Cagney <cagney@redhat.com>
12121
444a1e2e
AC
12122 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12123 * gdbarch.h, gdbarch.c: Re-generate.
12124 * infcmd.c (print_return_value): Delete reference to
12125 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
12126
def7e6ed
AC
12127 * cris-tdep.c (cris_gdbarch_init): Do not set
12128 deprecated_extract_struct_value_address.
12129
07be497a
AC
12130 * xstormy16-tdep.c: Update copyright.
12131 (xstormy16_extract_struct_value_address): Update to current
12132 extract struct value address interface.
12133 (xstormy16_gdbarch_init): Set extract_struct_value_address.
12134 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
12135 current extract struct value address interface.
12136 (sh64_gdbarch_init): Set extract_struct_value_address.
12137
6b4d5c91
AC
12138 * cris-tdep.c: Update copyright.
12139 (cris_extract_struct_value_address): Delete function.
12140 (struct_return_address): Delete variable.
12141 (cris_store_struct_return): Do not set struct_return_address.
12142
464e0365
AC
12143 * mcore-tdep.c: Update copyright.
12144 (mcore_extract_struct_value_address): Delete function. Update
12145 comments.
12146 (mcore_gdbarch_init): Update.
12147 * mn10300-tdep.c: Update copyright.
12148 (mn10300_extract_struct_value_address): Delete function.
12149 (mn10300_gdbarch_init): Update.
12150 * v850-tdep.c: Update copyright.
12151 (v850_extract_struct_value_address): Delete.
12152 (v850_gdbarch_init): Update.
12153 * ns32k-tdep.c: Update copyright.
12154 (ns32k_extract_struct_value_address): Delete.
12155 (ns32k_gdbarch_init): Update.
12156 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
12157 (hppa_gdbarch_init): Update.
12158 * vax-tdep.c: Update copyright.
12159 (vax_extract_struct_value_address): Delete.
12160 (vax_gdbarch_init): Update.
12161
afb18d0f
AC
12162 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
12163 * gdbarch.h, gdbarch.c: Re-generate.
12164 * procfs.c (procfs_fetch_registers): Delete reference to
12165 DEPRECATED_NPC_REGNUM.
12166 (procfs_store_registers): Ditto.
12167 * regcache.c (generic_target_write_pc): Simplify.
12168 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
12169
a698f53e
AC
12170 * core-sol2.c (fetch_core_registers): Replace
12171 DEPRECATED_NPC_REGNUM with equivalent tdep value.
12172
adc11376
AC
12173 * hppa-tdep.c: Update copyright year.
12174 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
12175 NPC_REGNUM.
12176 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
12177
b6cb9035
AC
12178 * mips-tdep.c (mips_write_pc): New function.
12179 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
12180 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
12181 (mips_find_saved_regs, mips_software_single_step: Ditto.
12182 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
12183 mips_init_extra_frame_info, mips_pop_frame): Ditto.
12184
6d82d43b
AC
121852004-01-17 Andrew Cagney <cagney@redhat.com>
12186
12187 * mips-tdep.c: Re-indent. Group functions by ABI.
12188
71bd6bd4
AC
121892004-01-17 Andrew Cagney <cagney@redhat.com>
12190
12191 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
12192 * gdbarch.c: Re-generate.
12193 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12194 DECR_PC_AFTER_BREAK to zero.
12195 * vax-tdep.c (vax_gdbarch_init): Ditto.
12196 * v850-tdep.c (v850_gdbarch_init): Ditto.
12197 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12198 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12199 * sh-tdep.c (sh_gdbarch_init): Ditto.
12200 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12201 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12202 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12203 * mips-tdep.c (mips_gdbarch_init): Ditto.
12204 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12205 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12206 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12207 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12208 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12209 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12210 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12211 * frv-tdep.c (frv_gdbarch_init): Ditto.
12212 * cris-tdep.c (cris_gdbarch_init): Ditto.
12213 * avr-tdep.c (avr_gdbarch_init): Ditto.
12214 * arm-tdep.c (arm_gdbarch_init): Ditto.
12215 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
12216
a02abb62
JB
122172004-01-17 J. Brobecker <brobecker@gnat.com>
12218
12219 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
12220 Delete, no longer used.
12221 (read_subrange_type): New function, mostly extracted from
12222 read_array_type().
12223 (read_array_type): Replace extracted code by call to
12224 read_subrange_type().
12225 (dwarf2_get_attr_constant_value): New function.
12226 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
12227 (add_partial_symbol): Likewise.
12228 (process_die): Likewise.
12229 (new_symbol): Likewise.
12230 (read_type_die): Likewise.
12231
cf5b2f1b
AC
122322004-01-16 Andrew Cagney <cagney@redhat.com>
12233
12234 * symfile.c: Update copyright year.
12235 (compare_symbols): Delete unused function.
12236 * stabsread.c: Update copyright year.
12237 (lrs_general_complaint): Delete unused function.
12238 (ref_search_value): Ditto.
12239 (get_substring): Delete declaration.
12240 * sh64-tdep.c: Update copyright year.
12241 (sh64_get_gdb_regnum): Delete unused function.
12242 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
12243 Delete unused function.
12244
d33b9831
MK
122452004-01-17 Mark Kettenis <kettenis@gnu.org>
12246
12247 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
12248 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
12249
7aea86e6
AC
122502004-01-16 Andrew Cagney <cagney@redhat.com>
12251
12252 Changes from Peter Schauer.
12253 * rs6000-tdep.c: Update copyright year.
12254 (rs6000_push_dummy_call): Update the stack pointer before
12255 accessing the corresponding stack region.
12256 * rs6000-nat.c: Update copyright year.
12257 (set_host_arch): Set "info.abfd" to "exec_bfd".
12258
26b0da32
MK
122592004-01-15 Mark Kettenis <kettenis@gnu.org>
12260
12261 * blockframe.c: Update copyright year.
12262 (inside_entry_func): Don't treat a zero PC specially.
12263
86fbe6cc
EZ
122642004-01-14 Elena Zannoni <ezannoni@redhat.com>
12265
12266 * gcore.c (gcore_copy_callback): Use paddr_d to print size
12267 variable.
12268 (gcore_create_callback): Ditto. Skip any memory segment that has
12269 no permissions set.
12270
63d06c5c
DC
122712004-01-14 David Carlton <carlton@kealia.com>
12272
12273 Change symbols for C++ nested types to contain the fully qualified
12274 name, if possible. (At least in the DWARF-2 case.) Partial fix
12275 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
12276 c++/895.
12277 * c-exp.y (qualified_type): Handle types nested within classes.
12278 * cp-namespace.c: Update comments.
12279 (cp_set_block_scope): Delete #if 0.
12280 (cp_lookup_nested_type): Handle types nested within classes.
12281 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
12282 when appropriate.
12283 (add_partial_symbol): Add the name of the enclosing namespace to
12284 types.
12285 (pdi_needs_namespace): New.
12286 (add_partial_namespace): Tweak comment.
12287 (add_partial_structure): New.
12288 (psymtab_to_symtab_1): Initialize processing_current_prefix
12289 here...
12290 (process_die): instead of here.
12291 (read_structure_scope): Try to figure out the name of the class or
12292 namespace that the structure might be defined within.
12293 (read_enumeration): Generate fully-qualified names, if possible.
12294 (read_namespace): Don't set name to NULL.
12295 (die_specification): New.
12296 (new_symbol): Generate fully-qualified names for types.
12297 (read_type_die): Determine appropriate prefix.
12298 (determine_prefix): New.
12299 (typename_concat): New.
12300 (class_name): New.
12301 * valops.c (value_aggregate_elt): Pass NOSIDE to
12302 value_struct_elt_for_reference.
12303 (value_struct_elt_for_reference): Make static, add NOSIDE
12304 parameter, call value_maybe_namespace_elt as a last resort.
12305 (value_namespace_elt): Break out code into
12306 value_maybe_namespace_elt.
12307 (value_maybe_namespace_elt): New.
12308
87783b8b
AC
123092004-01-12 Andrew Cagney <cagney@redhat.com>
12310
12311 * mips-tdep.c (mips_convert_register_p): Handle both raw and
12312 cooked floating-point registers.
12313 (mips_gdbarch_init): Set convert_register_p, register_to_value,
12314 and value_to_register.
12315
6503b91e
AC
123162004-01-13 Andrew Cagney <cagney@redhat.com>
12317
12318 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
12319 * gdbarch.c: Re-generate.
12320 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12321 FUNCTION_START_OFFSET.
12322 * v850-tdep.c (v850_gdbarch_init): Ditto.
12323 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12324 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12325 * sh-tdep.c (sh_gdbarch_init): Ditto.
12326 * s390-tdep.c (s390_gdbarch_init): Ditto.
12327 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12328 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12329 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12330 * mips-tdep.c (mips_gdbarch_init): Ditto.
12331 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12332 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
12333 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12334 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12335 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12336 * i386-tdep.c (i386_gdbarch_init): Ditto.
12337 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12338 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12339 * frv-tdep.c (frv_gdbarch_init): Ditto.
12340 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12341 * cris-tdep.c (cris_gdbarch_init): Ditto.
12342 * avr-tdep.c (avr_gdbarch_init): Ditto.
12343 * arm-tdep.c (arm_gdbarch_init): Ditto.
12344 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12345
ea1dd7bc
DJ
123462004-01-13 Daniel Jacobowitz <drow@mvista.com>
12347
12348 * infrun.c (follow_fork_mode_ask): Remove.
12349 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
12350 (follow_fork): Simplify and remove internal error for
12351 follow_fork_mode_ask.
12352 (_initialize_infrun): Update "set follow-fork-mode" help text.
12353
0f0cffd2
AC
123542004-01-13 Andrew Cagney <cagney@redhat.com>
12355
12356 * configure.in: Update copyright year.
12357 (build_warnings): Add -Wunused-label.
12358 * configure: Re-generate.
12359
de38af99
AC
123602004-01-12 Andrew Cagney <cagney@redhat.com>
12361
954a7fba
AC
12362 * exec.h (exec_ops): Make "extern".
12363
de38af99
AC
12364 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
12365 the function is void.
12366 (mips_pseudo_register_write): Ditto.
12367
1a111ce3
AC
123682004-01-12 Andrew Cagney <cagney@redhat.com>
12369
12370 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
12371 call. Never defined.
12372 * sparc-tdep.h (struct frame_info): Add opaque declaration.
12373 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
12374 (struct sparc_gregset, struct regcache): Ditto.
12375 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
12376
48efe704
AC
123772004-01-12 Andrew Cagney <cagney@redhat.com>
12378
12379 * mi/ChangeLog: Delete file. Renamed to ...
12380 * mi/ChangeLog-1999-2003: New file.
12381 * tui/ChangeLog: Delete file. Renamed to ...
12382 * tui/ChangeLog-1998-2003: New file.
fe61caab 12383
a54124c5
MK
123842004-01-11 Mark Kettenis <kettenis@gnu.org>
12385
2ca62865
MK
12386 * sparc64nbsd-tdep.c: Include "regset.h".
12387 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
12388 Remove variables.
12389 (fetch_core_registers): Remove function.
12390 (sparc64nbsd_core_fns): Remove variable.
12391 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
12392 functions.
12393 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
12394 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
12395 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
12396
ca9d58e9
MK
12397 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
12398 sparc_extract_struct_value_address.
12399 (sparc32_gdbarch_init): Set extract_struct_value_address.
12400 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
12401 function.
12402 (sparc64_init_abi): Set extract_struct_value_address. Don't set
12403 return_value_on_stack.
12404
3cc87ec0
MK
12405 * NEWS: Mention that %cs and %ss have been added to the AMD64
12406 configurations
12407
5bf00f29
MK
12408 * frame.c: Update copyright year.
12409 (get_prev_frame): Improve comment.
12410
4f7ec84e
MK
12411 * sparc64fbsd-tdep.c: Include "regset.h".
12412 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12413 Remove variables.
12414 (fetch_core_registers): Remove function.
12415 (sparc64fbsd_core_fns): Remove variable.
12416 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
12417 functions.
12418 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
12419 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 12420 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 12421
4e7b0cd3
MK
12422 * sparcnbsd-tdep.c: Include "regset.h".
12423 (fetch_core_registers): Remove function.
12424 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
12425 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
12426 functions.
12427 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
12428 TDEP->fpregset.
46b58ce9 12429 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 12430
a54124c5
MK
12431 * sparc-tdep.h (struct regset): Provide opaque declaration.
12432 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
12433 fpregset and sizeof_fpregset members.
12434 * sparc-tdep.c (struct regset): Provide opaque declaration.
12435 (sparc_regset_from_core_section): New function.
12436 (sparc32_gdbarch_init): Initialize TDEP->gregset,
12437 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
12438 Set regset_from_core_section when appropriate.
12439
29ff87c5
MK
124402004-01-10 Mark Kettenis <kettenis@gnu.org>
12441
79b1ab3d
MK
12442 * x86-64-tdep.c (amd64_non_pod_p): New function.
12443 (amd64_classify_aggregate): Return class memory for non-POD
12444 C++ structure types.
12445
6470d250
MK
12446 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
12447 argument. Use it to reserve a register if necessary.
12448 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
12449 amd64_push_arguments.
12450
562c50c2
MK
12451 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
12452
af233647
MK
12453 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
12454 register numbers in comments.
12455 * x86-64-tdep.h: Update copyright year.
12456 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
12457 Adjust for addition of %cs and %ss.
12458 * amd64fbsd-nat.c: Update copyright year.
12459 (reg_offset): Add register offsets for %cs and %ss.
12460 * amd64fbsd-tdep.c: Update copyright year.
12461 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
12462 (amd64fbsd_sc_reg_offset): Likewise.
12463 * x86-64-linux-nat.c: Update copyright year.
12464 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
12465 and %ss.
12466 * amd64nbsd-nat.c: Update copyright year.
12467 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
12468 * amd64nbsd-tdep.c: Update copyright year.
12469 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
12470 * x86-64-linux-tdep.c: Update copyright year.
12471 (user_to_gdb_regmap): Add mapping for %cs and %ss.
12472 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
12473 * regformats/reg-x86-64.dat: Add %cs and %ss.
12474
29ff87c5
MK
12475 * blockframe.c (inside_entry_func): Reformat. Introduce new local
12476 variables to prevent long lines. Update comments to reflect
12477 reality.
12478
38d518c9
EZ
124792004-01-09 David Carlton <carlton@kealia.com>
12480
12481 Checked in by Elena Zannoni <ezannoni@redhat.com>.
12482 * dwarf2read.c (read_namespace): Pull out name-generating code
12483 into namespace_name. Rename previous_namespace to previous_prefix
12484 and processing_current_namespace to processing_current_prefix..
12485 (namespace_name): New function.
12486 (add_partial_symbol): Substitute uses of pdi->name with
12487 actual_name.
12488 * cp-support.h: Rename processing_current_namespace to
12489 processing_current_prefix.
12490 Update copyright year.
12491 * cp-namespace.c: Rename processing_current_namespace to
12492 processing_current_prefix.
12493 Update copyright year.
fe61caab 12494
1e4728e7
AC
124952004-01-09 Andrew Cagney <cagney@redhat.com>
12496
12497 * jv-valprint.c, ser-unix.c: Add missing copyright years.
12498
c77c642a
MK
124992004-01-09 Mark Kettenis <kettenis@gnu.org>
12500
12501 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
12502 complaining.
12503 (process_one_symbol): Deal with N_PATCH stabs.
12504
b44e9041
EZ
125052004-01-09 Elena Zannoni <ezannoni@redhat.com>
12506
12507 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
12508 ifdeffed code.
12509 Update copyright year.
38d518c9 12510
eccfb640
MC
125112004-01-08 Michael Chastain <mec.gnu@mindspring.com>
12512
12513 * config/pa/tm-hppa.h: Update extern declarations for
12514 hppa32_hpux_frame_saved_pc_in_sigtramp,
12515 hppa32_hpux_frame_base_before_sigtramp, and
12516 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
12517
848c5feb
MC
125182004-01-08 Michael Chastain <mec.gnu@mindspring.com>
12519
12520 * config/pa/tm-hppah.h: Update copyright years.
12521
3cc5d663
AC
125222004-01-08 Andrew Cagney <cagney@redhat.com>
12523
12524 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
12525 (mips_o32_reg_struct_has_addr): Delete function.
12526 (mips_gdbarch_init): Update.
12527 (mips_extract_struct_value_address): Delete function.
12528
bfec0b41
JJ
125292004-01-08 David Mosberger <davidm@hpl.hp.com>
12530
12531 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
12532 reality.
12533
16e109ca
AC
125342004-01-07 Andrew Cagney <cagney@redhat.com>
12535
6214a8a1
AC
12536 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
12537 architecture's elf flags (when available).
12538
8d5838b5
AC
12539 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
12540 FPU to the start, check the MIPS FPU when looking for an old
12541 architecture.
12542 (set_mipsfpu_single_command): Update the architecture.
12543 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
12544
480d3dd2
AC
12545 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
12546 (mips_mask_address_p): Add "tdep" parameter.
12547 (show_mask_address, mips_addr_bits_remove): Update.
12548 (mips_dump_tdep): Update.
12549 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
12550 (MIPS_STACK_ARGSIZE): Delete macro.
12551 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
12552 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
12553 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
12554 (mips_dump_tdep): Update.
12555 (MIPS_SAVED_REGSIZE): Delete macro.
12556 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
12557 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
12558 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
12559 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
12560 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
12561 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
12562 (mips_pop_frame, return_value_location): Update.
12563 (mips_n32n64_return_value, mips_dump_tdep): Update.
12564
ec03c1ac
AC
12565 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
12566 MIPS ABI.
12567
16e109ca
AC
12568 * mips-tdep.c: Update copyright.
12569 (mips_gdbarch_init): Merge two code blocks handling the register
12570 name and number layout.
12571
15255275
MS
125722004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
12573
12574 * tracepoint.c (validate_actionline): Fix segv at EOF
12575
9f9057da
MC
125762004-01-07 Michael Chastain <mec.gnu@mindspring.com>
12577
12578 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
12579 properly for static fields.
12580
0127c0d3 125812004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 12582 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
12583
12584 * disasm.c: Update copyright to include 2004.
12585 (do_mixed_source_and_assembly): For uiout asm list
12586 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 12587 NULL and do so prior to loop. Only reset when we close off
0127c0d3 12588 the tuple/list. Move check for whether to close off the
fe61caab 12589 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
12590 on each loop iteration.
12591
5269965e
AC
125922004-01-05 Andrew Cagney <cagney@redhat.com>
12593
54f1137d
AC
12594 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
12595 should be a switch case and not a label.
12596 * mips-tdep.c (mips32_next_pc): Delete unused labels
12597 "greater_equal_branch" and "less_zero_branch".
12598 * jv-valprint.c (java_print_value_fields): Delete unused label
12599 "flush_it".
12600
5269965e
AC
12601 * target.c (unpush_target): Only close a target that is in the
12602 target stack.
12603
dbc22fa1
MK
126042004-01-05 Mark Kettenis <kettenis@gnu.org>
12605
9515395e
MK
12606 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
12607 address from [sp + 64] instead of %o2.
12608
dbc22fa1
MK
12609 * frame.c (get_prev_frame): Don't try to unwind the PC. This
12610 fixes PR backtrace/1476.
12611
5439edaa
AC
126122004-01-05 Andrew Cagney <cagney@redhat.com>
12613
12614 * libunwind-frame.h (struct frame_id): Add opaque declaration,
12615 move to start of file.
12616 * i386-tdep.h (struct regcache): Add opaque declaration.
12617 * config/ia64/nm-linux.h (struct target_ops): Add opaque
12618 declaration.
12619 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
12620 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
12621 * win32-nat.c (fake_create_process): Use ISO C style definition.
12622 * stabsread.c (define_symbol): Delete #ifndef
12623 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
12624 stabs_argument_has_addr call, macro never defined.
12625
19061abe
MC
126262004-01-04 Michael Chastain <mec.gnu@mindspring.com>
12627
12628 * op50-rom.c: Delete.
12629 * w89k-rom.c: Delete.
12630 * Makefile.in: Remove references.
12631
e53bef9f
MK
126322004-01-04 Mark Kettenis <kettenis@gnu.org>
12633
12634 * x86-64-tdep.c: Update copyright year.
12635 (struct amd64_register_info): Rename from x86_64_register_info.
12636 (amd64_register_info): Rename from x86_64_register_info.
12637 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
12638 (amd64_register_name): Rename from x86_64_register_name.
12639 (amd64_register_type): Rename from x86_64_register_type.
12640 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
12641 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
12642 (amd64_dwarf_reg_to_regnum): Rename from
12643 x86_64_dwarf_reg_to_regnum.
12644 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
12645 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
12646 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
12647 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
12648 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
12649 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
12650 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
12651 (amd64_frame_cache): Rename from x86_64_frame_cache.
12652 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
12653 (amd64_frame_prev_register): Rename from
12654 x86_64_frame_prev_register.
12655 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
12656 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
12657 (amd64_sigtramp_frame_cache): Rename from
12658 x86_64_sigtramp_frame_cache.
12659 (amd64_sigtramp_frame_prev_register): Rename from
12660 x86_64_sigtramp_frame_prev_register.
12661 (amd64_sigtramp_frame_unwind): Rename from
12662 x86_64_sigtramp_frame_unwind.
12663 (amd64_sigtramp_frame_sniffer): Rename from
12664 x86_64_sigtramp_frame_sniffer.
12665 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
12666 (amd64_frame_base): Rename from x86_64_frame_base.
12667 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
12668 (amd64_frame_align): Rename from x86_64_frame_align.
12669 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
12670 (amd64_regset_from_core_section): Rename from
12671 x86_64_regset_from_core_section.
12672 (x86_64_init_abi): Update comments.
12673
fca6aa58
NR
126742004-01-04 Nick Roberts <nick@nick.uklinux.net>
12675
12676 * MAINTAINERS (write after approval): Add myself.
12677
8ada74e3
MK
126782004-01-04 Mark Kettenis <kettenis@gnu.org>
12679
12680 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
12681 `float' arguments.
12682
5154b0cd
MK
126832004-01-04 Mark Kettenis <kettenis@gnu.org>
12684
12685 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
12686 such that it mentions a specific version of GCC that exhibits this
12687 bug.
12688
fb316966
MK
126892004-01-03 Mark Kettenis <kettenis@gnu.org>
12690
200cc553
MK
12691 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
12692 structure that has a single `float' member, store it in %f1 in
12693 addition to %f0.
12694
e226a4a0
MK
12695 * sparc-sol2-nat.c: Add missing '\'.
12696
b9d4c5ed
MK
12697 * sparc-tdep.c (sparc32_return_value): New function.
12698 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
12699 Remove functions.
12700 (sparc32_gdbarch_init): Set return_value, don't set
12701 extract_return_value, store_return_value, use_struct_convention
12702 and return_value_on_stack.
12703
fb316966
MK
12704 * sparc-sol2-nat.c: Add missing ')'.
12705
1af510a8
JB
127062004-01-03 J. Brobecker <brobecker@gnat.com>
12707
12708 * infrun.c (handle_step_into_function): New function.
12709 (handle_inferior_event): Extract out some code into the new
12710 function above.
12711
5cf4d23a
JB
127122004-01-03 J. Brobecker <brobecker@gnat.com>
12713
12714 * infrun.c (handle_inferior_event): Move the declaration of
12715 real_stop_pc inside the if blocks where it is used.
12716
60af1db2
MK
127172004-01-03 Mark Kettenis <kettenis@gnu.org>
12718
12719 * sparc64-tdep.c (sparc64_16_byte_align_p)
12720 (sparc64_store_floating_fields, sparc64_store_floating_fields):
12721 Use check_typedef to get subtypes of structures and unions.
12722 (sparc64_store_return_value): Fix calculation of the appropriate
12723 offset into VALBUF when storing a structure or union.
12724 (sparc64_return_value): New function.
12725 (sparc64_use_struct_convention): Remove function.
12726 (sparc64_init_abi): Set return_value, don't set
12727 extract_return_value, store_return_value and
12728 use_struct_convention.
12729
1a901d3f
EZ
127302004-01-03 Eli Zaretskii <eliz@elta.co.il>
12731
12732 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
12733 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
12734 gdb/config/alpha/xm-alphaosf.h,
12735 gdb/config/powerpc/tm-ppcle-eabi.h,
12736 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
12737 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
12738 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
12739 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
12740 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
12741 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
12742 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
12743 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
12744 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
12745 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
12746 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
12747 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
12748 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
12749 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
12750 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
12751 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
12752 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
12753 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
12754 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
12755 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
12756 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
12757 Remove lines for .cvsignore files.
12758
ef52e463
JB
127592004-01-03 J. Brobecker <brobecker@gnat.com>
12760
12761 * infrun.c: Back out the previous change.
12762
cb1bf9dc
MK
127632004-01-03 Mark Kettenis <kettenis@gnu.org>
12764
f0424ef6
MK
12765 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
12766 sparc-*-sunos4* to the list of REMOVED configurations.
12767
cb1bf9dc
MK
12768 * configure.tgt: Add back sparc-*-vxworks*.
12769 * remote-vxsparc.c: Remove all includes except for "defs.h",
12770 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
12771 Include "sparc-tdep.h".
12772 (SPARC_R_G1): New define.
12773 (vxsparc_gregset): New variable.
12774 (ext_format_sparc): Remove extern declaration.
12775 (vx_read_register): Rewrite to use sparc32_supply_gregset and
12776 sparc32_supply_fpregset.
12777 (vx_write_register): Rewrite to use sparc32_collect_gregset,
12778 sparc_collect_rwindow and sparc32_collect_fpregset.
12779 * config/sparc/tm-vxworks.h: New file, based on recently removed
12780 tm-vxsparc.h.
12781 * config/sparc/vxworks.mt: New file, based on recently removed
12782 vxworks.mt.
fe61caab 12783
5e938f9f
JB
127842004-01-03 J. Brobecker <brobecker@gnat.com>
12785
12786 * infrun.c (handle_step_into_function): New function.
12787 (handle_inferior_event): Extract out some code into the new
12788 function above.
12789
386c036b
MK
127902004-01-02 Mark Kettenis <kettenis@gnu.org>
12791
12792 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
12793 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
12794 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
12795 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
12796 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
12797 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
12798 (sparc_nat_h): New variable.
12799 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
12800 (tm-sun4os4.h): Remove dependency.
12801 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
12802 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
12803 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
12804 sparc-tdep.o): Update dependencies.
12805 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
12806 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
12807 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
12808 dependencies.
12809 * configure.host: Remove existing sparc-*-lynxos*,
12810 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
12811 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
12812 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
12813 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
12814 triplets.
12815 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
12816 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
12817 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
12818 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
12819 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
12820 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
12821 sparc64-*-solaris2* and sparc64-*-* triplets.
12822 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
12823 "symtab.h" and "objfiles.h".
12824 (BIAS): Remove define.
12825 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
12826 (X_DISP19): Remove macros.
12827 (sparc_fetch_instruction): Remove function.
12828 (struct gdbarch_tdep): Remove definition.
12829 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
12830 (sparc_breakpoint_from_pc): Remove function.
12831 (struct sparc64_frame_cache): Remove definition.
12832 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
12833 sparc64_unwind_pc): Remove functions.
12834 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
12835 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
12836 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
12837 (sparc64_frame_cache): Change return type to `struct
12838 sparc_frame_cache *'. Simply call sparc_frame_cache.
12839 (sparc64_frame_this_id, sparc64_frame_prev_register,
12840 sparc64_frame_base_address): Use `struct sparc_frame_cache'
12841 instead of `struct sparc64_frame_cache.
12842 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
12843 sparc_analyze_control_transfer, sparc_software_single_step,
12844 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
12845 _initialize_sparc64_tdep): Remove functions.
12846 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
12847 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
12848 macros.
12849 (sparc64_supply_gregset, sparc64_collect_gregset,
12850 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
12851 (sparc64_init_abi): New function.
12852 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
12853 inclusion guard. Include "sparc-tdep.h".
12854 (BIAS): Define.
12855 (r_tstate_offset, r_fprs_offset): New defines.
12856 (enum sparc_regnum): Remove defenition.
12857 (enum sparc64_regnum): Reformat.
12858 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
12859 (sparc64_init_abi, sparc64_supply_gregset,
12860 sparc64_collect_gregset, sparc64_supply_fpregset,
12861 sparc64_collect_fpregset): New prototypes.
12862 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
12863 Add extern declarations.
12864 (sparc64_sol2_init_abi): New prototype.
12865 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12866 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12867 prototypes.
12868 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
12869 "sparnbsd-nat.h".
12870 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
12871 functions.
12872 (_initialize_sparc64fbsd_nat): Remove initialization of
12873 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
12874 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 12875 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
12876 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
12877 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
12878 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
12879 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
12880 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
12881 (sparc64fbsd_r_y_offset): Remove variables.
12882 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12883 Make static and const.
12884 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12885 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12886 functions.
12887 (sparc64fbsd_gregset): New variable.
12888 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
12889 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
12890 and sparc64_supply_fpregset.
12891 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
12892 (sparc64fbsd_sigtramp_frame_this_id)
12893 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
12894 (sparc64fbsd_sigtramp_frame_unwind): New variable.
12895 (sparc64fbsd_sigtramp_frame_sniffer): New function.
12896 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
12897 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
12898 * sparcnbsd-tdep.c: Update copyright year. Include
12899 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
12900 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
12901 "value.h" and "sparcnbsd-tdep.h".
12902 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
12903 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
12904 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
12905 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
12906 defines.
12907 (sparcnbsd_gregset): New variable.
12908 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
12909 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
12910 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
12911 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
12912 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
12913 variables.
12914 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
12915 (sparc32nbsd_sigcontext_frame_this_id)
12916 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
12917 (sparc32nbsd_sigcontext_frame_unwind): New variable.
12918 (sparc32nbsd_sigtramp_frame_sniffer): New function.
12919 (sparcnbsd_get_longjmp_target_32,
12920 sparcnbsd_get_longjmp_target_64): Remove functions.
12921 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
12922 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
12923 sparcnbsd_init_elf): Remove.
12924 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
12925 (sparcnbsd_elf_init_abi): New functions.
12926 (_initialize_sparcnbsd_tdep): New prototype.
12927 (_initialize_sparnbsd_tdep): Update.
12928 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
12929 corelow.o. Add sparc64-nat.o and sparc-nat.o.
12930 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
12931 * config/sparc/linux.mh: Update comment.
12932 (XM_FILE, HOST_IPC): Remove variables.
12933 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
12934 sparc-linux-nat.o.
12935 * config/sparc/linux.mt: Update comment.
12936 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
12937 * config/sparc/nbsd.mt: Reformat.
12938 * config/sparc/nbsd64.mh: Update comment.
12939 (NATDEPFILES): Add sparc-nat.o.
12940 * config/sparc/nbsd64.mt: Update comment.
12941 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
12942 (TM_FILE): Set to tm-nbsd.h.
12943 * config/sparc/nbsdelf.mh: Update comment.
12944 (NATDEPFILES): Add sparc-nat.o.
12945 (XM_FILE): Delete.
12946 * config/sparc/nbsdaout.mh: Update comment.
12947 (NATDEPFILES): Add sparc-nat.o
12948 (XM_FILE): Delete.
12949 * config/sparc/nm-linux.h: Update copyright year. Don't include
12950 "config/nm-svr4.h" and "solib.h". Add protection against multiple
12951 inclusion.
12952 (KERNEL_U_SIZE): Remove define.
12953 (kernel_u_size): Remove prototype.
12954 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
12955 * config/sparc/nm-nbsd.h: Update copyright. Don't include
12956 "regcache.h".
12957 (CHILD_PREPARE_TO_STORE): Remove define.
12958 * config/sparc/nm-nbsdaout.h: Tweak some comments.
12959 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
12960 sparcnbsd-nat.c: Rewrite files.
12961 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
12962 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
12963 sparcnbsd-tdep.h: Remove files.
12964 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
12965 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
12966 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
12967 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
12968 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
12969 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
12970 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
12971 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
12972 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
12973 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
12974 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
12975 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
12976 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
12977 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
12978 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
12979 * config/sparc/linux64.mh, config/sparc/linux64.mt,
12980 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
12981 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
12982 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
12983
ee84457a
AC
129842004-01-02 Andrew Cagney <cagney@redhat.com>
12985
12986 From 2003-12-18 Kazuhiro Inaoka:
12987 * configure.host: Add m32r-linux target.
12988
0bc2134e
MC
129892004-01-02 Michael Chastain <mec.gnu@mindspring.com>
12990
12991 * top.c (print_gdb_version): Update year to 2004.
12992
89a72f9c
MM
129932004-01-02 Mark Mitchell <mark@codesourcery.com>
12994
12995 * MAINTAINERS: Add myself to the write-after-approval category.
12996
86b013ed
DJ
129972004-01-02 Daniel Jacobowitz <drow@mvista.com>
12998
12999 From Bernardo Innocenti <bernie@develer.com>:
13000 * configure.tgt: Add uClinux target.
13001
e42c9534
AC
130022004-01-02 Andrew Cagney <cagney@redhat.com>
13003
13004 * utils.c (do_my_cleanups): Make static, add forward declaration.
13005 * defs.h (do_my_cleanups): Delete declaration.
13006
162467d3
EZ
130072004-01-02 Eli Zaretskii <eliz@elta.co.il>
13008
13009 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
13010 bfd/ChangeLog-0203.
13011
78434e59
MK
130122004-01-02 Mark Kettenis <kettenis@gnu.org>
13013
13014 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
13015 in <machine/reg.h>.
13016 * configure, config.in: Regenerate.
13017
48efe704
AC
13018For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
13019tui/ChangeLog-1998-2003.
c906108c
SS
13020\f
13021Local Variables:
13022mode: change-log
13023left-margin: 8
13024fill-column: 74
13025version-control: never
13026End:
This page took 1.257679 seconds and 4 git commands to generate.