2004-10-11 Orjan Friberg <orjanf@axis.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
77109804
AC
12004-10-10 Andrew Cagney <cagney@gnu.org>
2
3 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
4 comment.
5
25652d4f
JB
62004-10-10 Joel Brobecker <brobecker@gnat.com>
7
8 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
9
1e05a7bf
JB
102004-10-10 Joel Brobecker <brobecker@gnat.com>
11
12 * mips-tdep.c (mips16_scan_prologue): Renames
13 mips16_heuristic_proc_desc. Update comment.
14 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
15 (heuristic_proc_desc): Update calls to the 2 functions above.
16
c68a4142
JB
172004-10-10 Joel Brobecker <brobecker@gnat.com>
18
19 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
20 Update comments. Also immediately return empty cache when the start
21 address of our function could not be found.
22 (mips_insn32_frame_cache): Likewise.
23
0fce0821
JB
242004-10-10 Joel Brobecker <brobecker@gnat.com>
25
26 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
27 (mips_insn16_frame_cache): Pass frame cache in call to
28 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
29 Remove code that became redundant as a consequence.
30 (mips32_heuristic_proc_desc): No longer compute a fake
31 procedure descriptor. Compute the full frame cache instead.
32 Some minor comment reformatting.
33
b672553e
JB
342004-10-10 Jim Blandy <jimb@redhat.com>
35
36 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
37 reader, tracing bytecode stuff): Remove self.
38
9cc52bde
MK
392004-10-10 Mark Kettenis <kettenis@gnu.org>
40
cc9784b6
MK
41 * sparc64-linux-tdep.c: Update copyright year. Don't include
42 "solib-svr4.h".
43 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
44 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
45 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
46
ee8aef23
MK
47 * sparc-linux-tdep.c: Update copyright year.
48 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
49 to struct frame_info *. Use safe_frame_unwind_memory instead of
50 deprecated_read_memory_nobpt.
51 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
52 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
53 changed signature of sparc_linux_sigtramp_start.
54 (sparc32_linux_pc_in_sigtramp): Remove function.
55 (sparc32_linux_sigtramp_p): New function.
56 (sparc32_linux_sigtramp_frame_sniffer): Use
57 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
58
bc73f8cc
MK
59 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
60 Remove function.
61 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
62
a2249542
MK
63 * ada-lang.c (lim_warning): Re-implement as a varargs function.
64 (decode_packed_array_type, value_subscript_packed)
65 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
66 argument in call to lim_warning.
67
9cc52bde
MK
68 * configure.in: Really disable the TUI if an enhanced curses
69 library isn't found.
70 * configure: Regenerate.
71
151fc45b
MK
722004-10-09 Mark Kettenis <kettenis@gnu.org>
73
74 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
75 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
76 * config/i386/nm-nbsdaout.h: Remove file.
77 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
78 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
79 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
80 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
81 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
82 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
83 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
84 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
85 (ldd, ld_un, ld_2): Remove defines.
86 * config/i386/nm-obsd.h: Likewise.
87
375c0479
PH
882004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
89
90 * ada-lex.l: Remove useless rule whose right-context clause
91 causes unreferenced static function warning for yyrealloc.
92 (ada_flex_use): Remove the artificial reference to yyrealloc.
93
c8e73a31
AC
942004-10-08 Andrew Cagney <cagney@gnu.org>
95
96 * target.h (struct target_ops): Rename to_xfer_memory to
97 deprecated_xfer_memory.
98 * target.c: Update.
99 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
100 * wince.c: Update.
101 * win32-nat.c: Update.
102 * v850ice.c: Update.
103 * uw-thread.c: Update.
104 * thread-db.c: Update.
105 * sol-thread.c: Update.
106 * remote.c: Update.
107 * remote-vx.c: Update.
108 * remote-st.c: Update.
109 * remote-sim.c: Update.
110 * remote-sds.c: Update.
111 * remote-rdp.c: Update.
112 * remote-rdi.c: Update.
113 * remote-mips.c: Update.
114 * remote-m32r-sdi.c: Update.
115 * remote-e7000.c: Update.
116 * procfs.c: Update.
117 * ppc-bdm.c: Update.
118 * nto-procfs.c: Update.
119 * monitor.c: Update.
120 * linux-nat.c: Update.
121 * inftarg.c: Update.
122 * hpux-thread.c: Update.
123 * go32-nat.c: Update.
124 * gnu-nat.c: Update.
125 * exec.c: Update.
126 * corelow.c: Update.
127 * bsd-kvm.c: Update.
128 * aix-thread.c: Update.
129
aa869812
AC
1302004-10-08 Andrew Cagney <cagney@gnu.org>
131
132 * target.c (debug_target): Move to near start of file.
133 (target_stopped_data_address_p): Re-org logic, add casts.
134
8dcef9cf
MK
1352004-10-02 Mark Kettenis <kettenis@gnu.org>
136
137 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
138 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
139 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
140 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
141 New defines.
142
4aa7a7f5
JJ
1432004-10-08 Jeff Johnston <jjohnstn@redhat.com>
144
145 * target.h (to_stopped_data_address): Change prototype to
146 take a CORE_ADDR pointer and return an int.
147 * target.c (update_current_target): Change to_stopped_data_address
148 to match new prototype.
149 (debug_to_stopped_data_address): Change appropriately.
150 * breakpoint.c (bpstat_stop_status): Change call to
151 target_stopped_data_address to use new prototype.
152 * frv-tdep.c (frv_have_stopped_data_address): New function.
153 (frv_stopped_data_address): Change to new prototype and
154 functionality.
155 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
156 prototype and functionality.
157 (ia64_stopped_by_watchpoint): New function.
158 * i386-nat.c (i386_stopped_data_address): Change to new
159 prototype and functionality.
160 (i386_stopped_by_watchpoint): New function.
161 * remote.c (remote_stopped_data_address): Change to new prototype
162 and functionality.
163 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
164 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
165 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
166 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
167 new i386_stopped_by_watchpoint function.
168 (i386_stopped_by_watchpoint): New prototype.
169 (i386_stoppped_data_address): Change to new prototype.
170 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
171 new ia64_stopped_by_watchpoint function.
172 (ia64_stopped_by_watchpoint): New prototype.
173 (ia64_stopped_data_address): Ditto.
174
61ee279c
PH
1752004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
176
177 * ada-typeprint.c (ada_print_type): Use int_string for printing
178 modulus of modular type.
179 * ada-lang.h (ada_modulus): Change return type to unsigned.
180 * ada-lang.c (ada_language_arch_info): Correct type of
181 string_char_type.
182 (ada_modulus): Return unsigned result.
183 (ada_lookup_symbol): Remove user disambiguation and modify comment
184 accordingly.
185
1862004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
187
188 Committed by Paul Hilfinger.
189 * ada-lang.c (decode_packed_array): On big-endian targets,
190 left-justify the value if it comes with a modular type.
191
1922004-10-08 Joel Brobecker <brobecker@gnat.com>
193
194 Committed by Paul Hilfinger.
195 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
196 (is_name_suffix): Add support for "___JM" suffixes.
197 (ada_check_typedef): Renames ada_completed_type.
198 Update all users of CHECK_TYPEDEF, check_typedef, and
199 ada_complete_type to call ada_check_typedef.
200 * ada-typeprint.c: Likewise.
201 * ada-valprint.c: Likewise.
202
b6c25a56
CV
2032004-10-08 Corinna Vinschen <vinschen@redhat.com>
204
205 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
206
83ca6a46
NR
2072004-10-08 Nick Roberts <nickrob@snap.net.nz>
208
209 * MAINTAINERS: Update e-mail address.
210
1fd8cd20
DJ
2112004-10-07 Daniel Jacobowitz <dan@debian.org>
212
213 From Maciej W. Rozycki <macro@mips.com>:
214 * mips-tdep.c (mips32_next_pc): Check the register's contents,
215 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
216
cea15572
KI
2172004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
218
219 * m32r-tdep.c (decode_prologue): Support functions written
220 in assembler language. Recognize trap instructions as the
221 end of prologue.
222 (m32r_frame_unwind_cache): Ditto.
223 (m32r_skip_prologue): Extend search limit. Quit analyzing
224 prologue if pc's location is not readable.
225
23485554
PH
2262004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
227
228 * Makefile.in (.l.c): Do conversions of names of alloc and free
229 functions that are done for .y.c files, plus special one
230 for yy_flex_realloc. Also, correct missing-file tests here.
231 * ada-lex.l (malloc, free): Remove macros.
232 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
233 xrealloc.
234 (ada_flex_use): Dummy definition to remove warnings about unused
235 functions.
236 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
237 to suppress warning.
238
c0409442
CV
2392004-10-06 Corinna Vinschen <vinschen@redhat.com>
240
241 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
242 RETURN_VALUE.
243 (sh_return_value_fpu): Ditto for CPUs with FPU.
244 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
245 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
246 Install sh_return_value_nofpu resp. sh_return_value_fpu as
247 RETURN_VALUE functions.
248
9bed62d7
CV
2492004-10-06 Corinna Vinschen <vinschen@redhat.com>
250
251 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
252 (sh_pseudo_register_write): Ditto.
253
03131d99
CV
2542004-10-06 Corinna Vinschen <vinschen@redhat.com>
255
256 * sh-tdep.c (IS_MACL_STS): New define.
257 (IS_MOVI20): Ditto.
258 (IS_MACL_LDS): Ditto.
259 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
260 instructions in prologue.
261 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
262 instructions in epilogue.
263
da962468
CV
2642004-10-06 Corinna Vinschen <vinschen@redhat.com>
265
266 * sh-tdep.c (SH_NUM_REGS): Define as 67.
267 (sh_sh_register_name): Add eight empty register names.
268 (sh_sh3_register_name): Ditto.
269 (sh_sh3e_register_name): Ditto.
270 (sh_sh2e_register_name): Ditto.
271 (sh_sh2a_register_name): New function, defining SH2A register set.
272 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
273 in nofpu case.
274 (sh_sh_dsp_register_name): Add eight empty register names.
275 (sh_sh3_dsp_register_name): Ditto.
276 (sh_sh4_register_name): Ditto.
277 (sh_sh4_nofpu_register_name): Ditto.
278 (sh_sh4al_dsp_register_name): Ditto.
279 (sh2a_show_regs): New function.
280 (sh2a_nofpu_show_regs): New function.
281 (sh_sh2a_register_type): New function.
282 (do_bank_register_info): New function.
283 (sh_print_pseudo_register): Call do_bank_register_info.
284 Call sh_print_pseudo_register for valid "bank" register.
285 (sh_sh2a_register_sim_regno): New function.
286 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
287 Increment pseudo register count by one for all sh variants with
288 pseudo registers to accomodate pseudo bank register.
289 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
290 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
291 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
292 Increment pseudo register numbers.
293
1326e61b
CV
2942004-10-06 Corinna Vinschen <vinschen@redhat.com>
295
296 * dwarf2read.c (read_subroutine_type): Call make_function_type
297 instead of lookup_function_type.
298
146c42e3
JB
2992004-10-05 Jim Blandy <jimb@redhat.com>
300
301 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
302 (Previous change missed some uses.)
303
1df84f13
AC
3042004-10-05 Andrew Cagney <cagney@gnu.org>
305
306 * target.h (deprecated_child_ops): Rename child_ops.
307 * wince.c: Update copyright. Rename child_ops.
308 * win32-nat.c: Rename child_ops.
309 * target.c: Rename child_ops.
310 * rs6000-nat.c: Rename child_ops.
311 * linux-nat.c: Rename child_ops.
312 * infttrace.c: Rename child_ops.
313 * inftarg.c: Rename child_ops.
314 * infptrace.c: Rename child_ops.
315 * hppah-nat.c: Update copyright. Rename child_ops.
316 * hpux-thread.c: Update copyright. Rename child_ops.
317
21e3b9b9
DJ
3182004-10-05 Daniel Jacobowitz <dan@debian.org>
319
320 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
321
de83afe7
AC
3222004-10-05 Andrew Cagney <cagney@gnu.org>
323
324 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
325
10b3939b
DJ
3262004-10-05 Daniel Jacobowitz <dan@debian.org>
327
328 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
329 (die_ref_table): Remove.
330 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
331 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
332 the usage of this type.
333 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
334 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
335 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
336 (dwarf2_create_include_psymtab): Update comment.
337 (find_partial_die): Remove third argument. Remove unreachable call
338 to error ().
339 (dwarf2_find_containing_comp_unit): Update comments. Change one
340 assertion to an error. Remove an unreachable error.
341 (dwarf2_find_comp_unit): Update comments.
342 (type_at_offset): Remove dead code.
343 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
344 (store_in_ref_table): Add CU argument.
345 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
346 inter-compilation-unit references.
347 (load_full_comp_unit, process_full_comp_unit): New functions, based
348 on psymtab_to_symtab_1.
349 (psymtab_to_symtab_1): Use them.
350 (dwarf2_add_dependence): New function.
351 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
352 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
353 (partial_die_parent_scope, guess_structure_name): Update for changes
354 to find_partial_die.
355 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
356 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
357 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
358 (read_die_and_children): Update call to store_in_ref_table.
359 (do_free_die_list_cleanup): Remove.
360 (fixup_partial_die): Update for changes to find_partial_die.
361 (read_full_die): Handle queueing absolute references.
362 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
363 (dwarf2_attr, die_specification, die_type)
364 (die_containing_type, dwarf2_extension): Update calls to
365 follow_die_ref.
366 (dump_die): Update DW_FORM_ref* handling.
367 (dwarf2_get_ref_die_offset): Likewise.
368 (free_one_comp_unit): Release the dies list.
369 (dwarf2_mark_helper): New function.
370 (dwarf2_mark): Use it.
371
998bdd68
MK
3722004-10-05 Mark Kettenis <kettenis@jive.nl>
373
374 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
375 when writing to memory.
376
14588880
KI
3772004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
378
379 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
380 (m32r_extract_struct_value_address): Delete function.
381 (m32r_return_value): New function.
382 (m32r_gdbarch_init): Instead of store_return_value,
383 extract_return_value, deprecated_extract_struct_value_address
384 and deprecated_use_struct_convention, set return_value.
385
dd5e6932
DJ
3862004-10-03 Daniel Jacobowitz <dan@debian.org>
387
388 * dwarf2read.c (read_subrange_type): Add comment for variable
389 sized arrays.
390
7dc1ef8d
PH
3912004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
392
393 * Makefile.in (.l.c): Modify rule for compatibility with recent
394 versions of flex, and remove most command-line options.
395 * ada-lex.l: Add %options line in place of -I -i and -s command-line
396 options.
397
1f8173e6
PH
3982004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
399
400 Turn on initial Ada support (mainly expression evaluation).
401
402 * Makefile.in (SFILES): Remove ada-tasks.c.
403 (HFILES_NO_SRCDIR): Add ada-lang.h.
404 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
405 (YYOBJ): Add ada-exp.o.
406 (rule .l.c): Generalize to not mention ada.
407 * symtab.c: Include ada-lang.h.
408 (symbol_natural_name, symbol_demangled_name)
409 (symbol_search_name): Add Ada case.
410
cb85a953
AC
4112004-10-01 Andrew Cagney <cagney@gnu.org>
412
3f3db248
AC
413 * Makefile.in (COMMON_OBS): Add inf-child.o.
414 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
415 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
416 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
417 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
418 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
419 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
420 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
421 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
422 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
423 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
424 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
425 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
426 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
427
cb85a953
AC
428 * target.c (xfer_using_stratum): Change return type to LONGEST.
429 On each iteration offset, readbuf and writebuf.
430 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
431 partial_length, and read/modify/write predicate, update comments.
432 Pass buffer.word to ptrace write.
433
963a6417
PH
4342004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
435
436 * symfile.c (init_filename_language_table): Add extensions for
437 Ada.
438 * defs.h (enum language): Add language_ada.
439 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
440 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
441 (add_symbols_from_enclosing_procs): Make a no-op for now.
442 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
443 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
444 (find_line_in_linetable, find_next_line_in_linetable)
445 (read_all_symtabs, is_plausible_func_for_line)
446 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
447 (is_runtime_sym_defined, check_size): Remove declaration.
448 (function_name_from_pc, ada_translate_error_message)
449 (ada_lookup_minimal_symbol): Remove definition.
450 (ada_add_block_symbols): Remove useless label.
451 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
452 useless declaration.
453 (ada_is_exception_sym): Likewise.
454
9b32d526
KI
4552004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
456
457 Add m32r-linux support.
458 * configure.tgt: Add m32r*-*-linux*.
459 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
460 and m32r-linux-tdep.c.
461 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
462 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
463 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
464 m32r-linux-tdep.c.
465 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
466 config/m32r/linux.mh, config/m32r/linux.mt,
467 config/m32r/nm-linux.h: New files.
468
2de118d3
JB
4692004-09-30 Joel Brobecker <brobecker@gnat.com>
470
471 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
472 (mips32_fetch_instruction): Remove, unused.
473
a9fe69d1
JB
4742004-09-30 Joel Brobecker <brobecker@gnat.com>
475
476 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
477 conditions that will always be true.
478
bc8ffc12
MK
4792004-09-30 Mark Kettenis <kettenis@gnu.org>
480
ba0cd111
MK
481 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
482 (vaxbsd_fetch_inferior_registers): Rename from
483 fetch_inferior_registers. Make static.
484 (vaxbsd_store_inferior_registers): Rename from
485 store_inferior_registers. Make static.
486 (_initialize_vaxbsd_nat): Construct and add target vector.
487 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
488 inftarg.o. Add inf-child.o and inf-ptrace.o.
489 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
490 inftarg.o. Add inf-child.o and inf-ptrace.o.
491 (NAT_FILE): Remove.
492 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
493 inftarg.o. Add inf-child.o and inf-ptrace.o.
494 (NAT_FILE): Remove.
495 * Makefile.in (vaxbsd-nat.o): Update dependencies.
496
bc8ffc12
MK
497 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
498 (m88kbsd_fetch_inferior_registers): Rename from
499 fetch_inferior_registers. Make static.
500 (m88kbsd_store_inferior_registers): Rename from
501 store_inferior_registers. Make static.
502 (_initialize_m88kbsd_nat): New prototype and function.
503 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
504 inftarg.o. Add inf-child.o and inf-ptrace.o.
505 (NAT_FILE): Remove.
506 * Makefile.in (m88kbsd-nat.o): Update dependencies.
507
27394598
AC
5082004-09-30 Andrew Cagney <cagney@gnu.org>
509
510 * target.c (target_xfer_partial): New function.
511 (target_read_memory_partial, target_write_memory_partial)
512 (default_xfer_partial, target_read_partial, target_write_partial)
513 (xfer_using_stratum): Use.
514 (debug_to_xfer_partial): Delete function.
515 (setup_target_debug): Do not override to_xfer_partial.
516
74a4fe32
MK
5172004-09-30 Mark Kettenis <kettenis@chello.nl>
518
519 * fork-child.c: Update copyright year. Fix coding style.
520
982526a1
MK
5212004-09-29 Mark Kettenis <kettenis@gnu.org>
522
523 * defs.h (msavestring, mstrsave): Remove prototypes.
524 * utils.c (msavestring, mstrsave): Remove functions.
525 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
526 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
527 of mstrsave.
528 * source.c (find_and_open_source): Use xstrdup instead of
529 mstrsave.
530
b8eb5af0
AC
5312004-09-30 Andrew Cagney <cagney@gnu.org>
532
0779438d
AC
533 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
534 (inf_ptrace_xfer_memory): Delete.
535 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
536 (target_read_memory, target_write_memory): Use xfer_using_stratum
537 when target_xfer_partial_p.
538 (debug_target): Move to start of file.
539 (target_read_memory_partial, target_write_memory_partial): Use
540 to_xfer_partial when target_xfer_partial_p.
541
f929a579
AC
542 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
543 inf_ptrace_xfer_memory with equivalent code.
544 * inftarg.c (child_xfer_partial): When performing a write, pass
545 writebuf to child_xfer_memory.
546
b8eb5af0
AC
547 * target.c (target_read_string): Use target_read_memory instead of
548 target_xfer_memory.
549
ee21b650
AC
5502004-09-29 Andrew Cagney <cagney@gnu.org>
551
d3e05d0d
AC
552 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
553 the address of status.
554
ee21b650
AC
555 * infptrace.c (ptrace_wait): Mention problem with HPUX.
556 (kill_inferior): Inline ptrace_wait call.
557 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
558 * inftarg.c (child_wait): Inline ptrace_wait call.
559
a182eed6
AC
560 * target.h (struct target_ops): Delete field to_post_wait.
561 (target_post_wait): Delete macro.
562 (child_post_wait): Delete declaration.
563 * target.c (update_current_target, update_current_target)
564 (debug_to_post_wait, setup_target_debug): Delete functions and
565 references.
566 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
567 * inftarg.c (child_post_wait): Delete.
568 (init_child_ops): Do not set to_post_wait.
569 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
570 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
571 * inf-child.c (inf_child_post_wait): Delete.
572 (inf_child_target): Do not set to_post_wait.
573 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
574 (inf_ptrace_target): Do not set to_post_wait.
575
ba0c540b
AC
576 * wince.c (child_ops): Delete.
577 * win32-nat.c (child_ops): Delete.
578
81977402
AC
579 * inftarg.c (inftarg_set_find_memory_regions)
580 (inftarg_set_make_corefile_notes): Delete functions.
581 (_initialize_linux_nat): Inline calls.
582
5ac10fd1
AC
583 * target.h (child_ops): Declare.
584 * inftarg.c (child_ops): Move from here ...
585 * target.c (child_ops): ... to here.
586 * wince.c (child_ops): Delete extern declaration.
587 * win32-nat.c (child_ops): Delete extern declaration.
588 * linux-nat.c (child_ops): Delete extern declaration.
589 * hpux-thread.c (child_ops): Delete extern declaration.
590
663408c2 5912004-09-28 Mark Kettenis <kettenis@gnu.org>
890c8f4d
MK
592
593 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
594
0dad8a66
MK
5952004-09-28 Mark Kettenis <kettenis@gnu.org>
596
597 * configure.in: Only set host_makefile_frag when building a native
598 debugger.
599 * configure: Regenerate.
e8d74ed3
MK
600
601 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
602 for OpenBSD ELF.
603
dba24537
AC
6042004-09-28 Andrew Cagney <cagney@gnu.org>
605
e979516b
AC
606 Problem identified by Paul Hilfinger.
607 * Makefile.in (ada_lex_c): Define.
608 (ada-lex.o): Delete rule.
609
dba24537
AC
610 * linux-proc.c: Delete file.
611 * Makefile.in: Update.
612 * config/sparc/linux64.mh (NATDEPFILES):
613 * config/sparc/linux.mh (NATDEPFILES): Update.
614 * config/s390/s390.mh (NATDEPFILES): Update.
615 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
616 * config/powerpc/linux.mh (NATDEPFILES): Update.
617 * config/pa/linux.mh (NATDEPFILES): Update.
618 * config/mips/linux.mh (NATDEPFILES): Update.
619 * config/m68k/linux.mh (NATDEPFILES): Update.
620 * config/ia64/linux.mh (NATDEPFILES): Update.
621 * config/i386/linux64.mh (NATDEPFILES): Update.
622 * config/i386/linux.mh (NATDEPFILES): Update.
623 * config/arm/linux.mh (NATDEPFILES): Update.
624 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
625 * linux-nat.c: Update copyright. Include <sys/param.h>,
626 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
627 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
628 (O_LARGEFILE): Possibly define.
629 (_initialize_linux_nat, linux_proc_pending_signals)
630 (add_line_to_sigset, linux_proc_xfer_memory)
631 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
632 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
633 (struct linux_corefile_thread_data)
634 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
635 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
636
d6b0e80f
AC
6372004-09-16 Andrew Cagney <cagney@gnu.org>
638
639 * lin-lwp.c: Delete file.
640 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
641 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
642 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
643 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
644 (linux_nat_attach, detach_callback, linux_nat_detach)
645 (resume_callback, resume_clear_callback, linux_nat_resume)
646 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
647 (stop_wait_callback, linux_nat_has_pending, flush_callback)
648 (status_callback, running_callback, count_events_callback)
649 (select_singlestep_lwp_callback, select_event_lwp_callback)
650 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
651 (child_wait, stop_and_resume_callback, linux_nat_wait)
652 (kill_callback, kill_wait_callback, linux_nat_kill)
653 (linux_nat_create_inferior, linux_nat_mourn_inferior)
654 (linux_nat_xfer_memory, linux_nat_thread_alive)
655 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
656 (_initialize_linux_nat): New functions.
657 * Makefile.in: Update all dependencies.
658 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
659 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
660 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
661 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
662 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
663 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
664 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
665 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
666 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
667 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
668 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
669 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
670 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
671
5a174d79
MK
6722004-09-27 Mark Kettenis <kettenis@gnu.org>
673
2f604c28
MK
674 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
675 config/i386/obsd64.mh (NAT_FILE): Remove variable.
676
5a174d79
MK
677 * configure.in: Don't comment out NATDEPFILES in the generated
678 Makefile if NAT_FILE is unset.
679 * configure: Regenerate.
680
b2ed1746
AC
6812004-09-27 Andrew Cagney <cagney@gnu.org>
682
44cbf7b5
AC
683 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
684 (insert_step_resume_breakpoint): Delete.
685 (insert_step_resume_breakpoint_at_frame): New function.
686 (insert_step_resume_breakpoint_at_sal): New function.
687 (handle_inferior_event, step_into_function)
688 (insert_step_resume_breakpoint): Simplify by using same.
689
b2ed1746
AC
690 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
691
3691b3be
MK
6922004-09-26 Mark Kettenis <kettenis@gnu.org>
693
36f391e8
MK
694 * fbsd-proc.c: Remove file.
695 * Makefile.in (fbsd-proc.o): Remove dependency.
696
771e236c
MK
697 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
698 code together.
699
3691b3be
MK
700 * config/i386/nm-fbsd64.h: Remove file.
701 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
702
6a5c78a3
MK
7032004-09-26 Mark Kettenis <kettenis@gnu.org>
704
705 * amd64-nat.h: Update copyright year.
706 (amd64bsd_target): New prototype.
707 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
708 (amd64bsd_target): New function.
709 (amd64bsd_fetch_inferior_registers): Rename from
710 fetch_inferior_registers. Make static.
711 (amd64bsd_store_inferior_registers): Rename from
712 store_inferior_registers. Make static.
713 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
714 (_initialize_amd64fbsd_nat): Construct and add target vector.
715 * amd64nbsd-nat.o: Include "target.h".
716 (_initialize_amd64nbsd_nat): Construct and add target vector.
717 * amd64obsd-nat.c: Include "target.h".
718 (_initialize_amd64obsd_nat): Construct and add target vector.
719 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
720 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
721 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
722 fbsd-nat.o.
723 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
724 Remove infptrace.o and inftarg.o. Add inf-child.o and
725 inf-ptrace.o.
726 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
727 (amd64obsd-nat.o): Update dependencies.
728
27acbe61
MK
7292004-09-25 Mark Kettenis <kettenis@gnu.org>
730
509a5e7d
MK
731 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
732 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
733 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
734 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
735 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
736
6e1e94ea
MK
737 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
738 Inline attach call.
739 (inf_ptrace_detach): Inline detach call.
740
8b9cf735
MK
741 * configure.in: Check for waddstr instead of mvwaddstr when
742 searching for curses library. Check for wborder.
743 * configure, config.in: Regenerate.
744 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
745 available.
746
27acbe61
MK
747 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
748
b96ec7ac
AC
7492004-09-24 Robert Picco <Robert.Picco@hp.com>
750
751 Committed by Andrew Cagney.
752 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
753 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
754 configuration.
755 (fetch_register_using_p): Implement 'p' packet. Based on code by
756 Fernando Nasser.
757 (remote_fetch_registers): Call fetch_register_using_p.
758 (init_all_packet_configs, show_remote_cmd)
759 (_initialize_remote): Add p-packet.
760
62ece330
MK
7612004-09-24 Mark Kettenis <kettenis@gnu.org>
762
763 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
764 instead of call_ptrace. Call wait directly instead of
765 ptrace_wait.
766 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
767 (inf_ptrace_wait): Inline ptrace_wait call.
768
00937274
PH
7692004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
770
771 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
772 rolled back instead.
773
3f2c7a45
PH
7742004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
775
776 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
777 the new argument order.
778
b6fcb393
CV
7792004-09-23 Corinna Vinschen <vinschen@redhat.com>
780
781 * MAINTAINERS: Remove "broken" from XStormy16 entry.
782 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
783 (struct gdbarch_tdep): Remove.
784 (struct xstormy16_frame_cache): New frame cache structure.
785 (xstormy16_register_byte, xstormy16_register_raw_size)
786 (xstormy16_reg_virtual_type, xstormy16_register_type)
787 (xstormy16_push_arguments, xstormy16_push_return_address)
788 (xstormy16_pop_frame, xstormy16_store_struct_return)
789 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
790 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
791 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
792 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
793 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
794 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
795 (xstormy16_use_struct_convention): Drop gcc_p parameter.
796 (xstormy16_extract_return_value, xstormy16_store_return_value):
797 Regcachify. Drop useless struct convention handling.
798 (xstormy16_register_type, xstormy16_return_value)
799 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
800 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
801 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
802 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
803 (xstormy16_unwind_sp, xstormy16_unwind_pc)
804 (xstormy16_unwind_dummy_id) : New functions.
805 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
806 of xstormy16_scan_prologue.
807 (xstormy16_frame_unwind): New frame_unwind structure.
808 (xstormy16_frame_base): New frame_base structure.
809 (xstormy16_gdbarch_init): Accomodate all of the above changes.
810 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
811
1285b746
MK
8122004-09-22 Mark Kettenis <kettenis@gnu.org>
813
814 * language.c (language_gdbarch_post_init): Fix off-by one error.
815
1c379e20
DJ
8162004-09-21 Daniel Jacobowitz <dan@debian.org>
817
818 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
819 (struct dwarf2_offset_and_type): New.
820 (set_die_type, reset_die_and_siblings_types, get_die_type)
821 (offset_and_type_hash, offset_and_type_eq): New functions.
822 (read_structure_type, read_enumeration_type, read_array_type)
823 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
824 (read_tag_reference_type, read_tag_const_type)
825 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
826 (read_typedef, read_base_type, read_subrange_type): Use
827 set_die_type.
828
ae038cb0
DJ
8292004-09-20 Daniel Jacobowitz <dan@debian.org>
830
831 * Makefile.in (dwarf2read.o): Update dependencies.
832 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
833 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
834 and read_in_chain.
835 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
836 mark, and has_form_ref_addr.
837 (struct dwarf2_per_cu_data): New.
838 (dwarf2_max_cache_age): New.
839 (dwarf2_build_psymtabs_hard): Free cached compilation units
840 after loading. Create and manage the list of compilation units.
841 Remove unnecessary NULL initialization. Fix indentation.
842 (psymtab_to_symtab_1): Initialize all of CU.
843 (dwarf2_read_abbrevs): Set has_form_ref_addr.
844 (find_partial_die): Use dwarf2_find_containing_comp_unit
845 and load_comp_unit.
846 (free_stack_comp_unit): Update comments. Clear the per-cu
847 pointer. Handle aging.
848 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
849 (age_cached_comp_units, free_one_cached_comp_unit)
850 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
851 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
852 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
853 (show_dwarf2_cmd): New.
854 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
855 and "maint show dwarf2 max-cache-age".
856 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
857 externs.
858 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
859 global.
860
987504bb
JJ
8612004-09-20 Jeff Johnston <jjohnstn@redhat.com>
862
863 * dwarf2read.c (typename_concat): Change prototype to accept obstack
864 and dwarf2_cu struct pointer as arguments. Change function to use
865 obstack if provided and use dwarf2_cu to determine language-specific
866 separator.
867 (partial_die_parent_scope): Change comment to include java. Use
868 new version of typename_concat instead of obconcat.
869 (partial_die_full_name): Use typename_concat.
870 (read_namespace): Ditto.
871 (read_enumeration_type): Use typename_concat instead of obconcat.
872 (new_symbol): Ditto.
873 (add_partial_symbol): Enhance tests for C++ to also test for Java.
874 (guess_structure_name): Ditto.
875 (read_subroutine_type): Ditto.
876 (read_structure_type): Ditto.
877 (is_vtable_name): Add Java support.
878 (determine_class_name): Switch to new typename_concat call.
879 (determine_prefix): Switch to new typename_concat call.
880 * jv-exp.y (FuncStart): New pattern.
881 (MethodInvocation): Add support for simple function calls. Change
882 warning message for other forms of inferior call currently not
883 supported.
884 * valarith.c (value_subscript): Treat an array with upper-bound
885 of -1 as unknown size.
886
d9c8471e
DJ
8872004-09-20 Daniel Jacobowitz <dan@debian.org>
888
889 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
890 (lookup_partial_symtab): Use symtab_to_fullname.
891
d73f140a
JB
8922004-09-19 Jim Blandy <jimb@redhat.com>
893
894 * minsyms.c (lookup_minimal_symbol): Doc fix.
895
adbef1f0
AC
8962004-09-20 Andrew Cagney <cagney@gnu.org>
897
898 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
899 CHILD_RESUME.
900 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
901 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
902 KILL_INFERIOR.
903 * infptrace.c: Update.
904
d092d1a2
DJ
9052004-09-19 Daniel Jacobowitz <dan@debian.org>
906
907 * symtab.c (output_source_filename): Mark first argument as const.
908 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
909 for "info sources" output.
910
86d9e1d7
MK
9112004-09-20 Mark Kettenis <kettenis@gnu.org>
912
913 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
914 <machine/vmparam.h>.
915 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
916 (register_u_addr): Remove prototype.
917
9a6c8ef4
MK
9182004-09-19 Mark Kettenis <kettenis@gnu.org>
919
9692934b
MK
920 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
921 (i386bsd_fetch_inferior_registers): Rename from
922 fetch_inferior_registers. Make static.
923 (i386bsd_store_inferior_registers): Rename from
924 store_inferior_registers. Make static.
925 (i386bsd_target): New function.
926 * i386bsd-nat.h: New file.
927 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
928 "i386bsd-nat.h".
929 (i386fbsd_resume): Rename from child_resume. Make static.
930 (_initialize_i386fbsd_nat): Construct and add target vector.
931 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
932 (_initialize_i386nbsd_nat): Construct and add target vector.
933 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
934 Remove defines.
935 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
936 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
937 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
938 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
939 (LOADLIBES): New variable.
940 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
941 inf-ptrace.o. Remove inftarg.o.
942 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
943 inf-ptrace.o. Remove inftarg.o.
944 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
945 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
946 (LOADLIBES): New variable.
947 * Makefile.in (i386bsd_nat_h): New variable.
948 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
949 dependencies.
950
3510d1f2
MK
951 * sparc64nbsd-tdep.c: Include "objfiles.h".
952 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
953 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
954 svr4_lp64_fetch_link_map_offsets.
955 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
956 "nbsd-tdep.h".
957 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
958 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
959 svr4_lp64_fetch_link_map_offsets.
960 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
961 dependencies.
962
578c1c03
MK
963 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
964 * fbsd-nat.h: New file.
965 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
966 (fbsd_nat_h): New variable.
967 (fbsd-nat.o): New dependency.
968
7a7b73b7
MK
969 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
970 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
971
9a6c8ef4
MK
972 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
973 comment.
974
72d5681a
PH
9752004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
976
977 * ada-exp.y (type_int): New function to add layer of abstraction
978 around references to expression types.
979 (type_long): Ditto.
980 (type_long_long): Ditto.
981 (type_float): Ditto.
982 (type_double): Ditto.
983 (type_long_double): Ditto.
984 (type_char): Ditto.
985 (type_system_address): Ditto.
986 (simple_exp): Use type_* functions in place of builtin_*
987 variables.
988 (exp): Ditto.
989 (write_var_from_name): Ditto.
990 (write_object_renaming): Ditto.
991 * ada-lang.c (ada_create_fundamental_type): Remove redundant
992 declaration.
993 (build_ada_types): Remove, replacing with...
994 (ada_language_arch_info): New function to initialize primitive
995 type vector in language_arch_info.
996 (ada_array_length): Remove use of builtin_type_ada_int.
997 (value_pos_atr): Ditto.
998 (ada_evaluate_subexp): Ditto.
999 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
1000 builtin_type_ada_long_long, builtin_type_ada_char,
1001 builtin_type_ada_float, builtin_type_ada_double,
1002 builtin_type_ada_long_double, builtin_type_ada_natural,
1003 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
1004 (ada_builtin_types): Remove.
1005 (ada_language_defn): Remove entries for la_builtin_type_vector and
1006 string_char_type and use ada_language_arch_info.
1007 (_initialize_ada_language): Do type-vector initialization along
1008 the lines of c-lang.c.
1009 (ada_create_fundamental_type): Break up line.
1010 (ada_dump_symtab): Remove unused function.
1011 (enum ada_primitive_types): Define.
1012 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
1013 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
1014 builtin_type_ada_float, builtin_type_ada_double,
1015 builtin_type_ada_long_double, builtin_type_ada_natural,
1016 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
1017 * ada-lex.l: Use type_* functions in place of builtin_* variables.
1018 (processInt): Ditto.
1019 (processReal): Ditto.
1020 (name_lookup): Ditto.
1021 * ada-typeprint.c (print_range): Use builtin_type_int, not
1022 builtin_type_ada_int.
1023
4f0be353
MK
10242004-09-18 Mark Kettenis <kettenis@gnu.org>
1025
30b0e2d8
MK
1026 * i386-tdep.c (i386_register_name): Rename regno to regnum.
1027
4f0be353
MK
1028 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
1029 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
1030 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
1031 * configure.in: Improve checks for curses library by checking for
1032 mvwaddstr instead of initscr. Drop HP curses in favour of
1033 standard curses on HP-UX.
1034 * configure: Regenerated.
1035
72d5681a 10362004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
6c038f32
PH
1037
1038 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
1039 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
1040 Minor formatting changes.
1041 (empty_array): Slight rewrite for formatting.
1042 (emit_char,parse,ada_language_defn,build_ada_types,
1043 ada_is_exception_sym, _initialize_ada_language): Move
1044 definitions around.
1045 (ada_dump_symtab): Remove unused definition.
1046 (ada_maybe_exception_partial_symbol): Remove unused definition.
1047
1c8c7407
AC
10482004-09-16 Andrew Cagney <cagney@gnu.org>
1049
7681f339
AC
1050 * inf-child.c: Include "gdb_string.h".
1051 (inf_child_core_file_to_sym_file): Delete.
1052 (inf_child_target): Set to_fetch_registers and to_store_registers.
1053 * inf-ptrace.c: Include "gdb_string.h".
1054 * Makefile.in: Update all dependencies.
1055
1c8c7407
AC
1056 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
1057 problem.
1058
65596487
JB
10592004-09-14 Joel Brobecker <brobecker@gnat.com>
1060
1061 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
1062 call to heuristic_proc_desc. Remove code that became redundant
1063 as a consequence.
1064 (read_next_frame_reg): Remove special case for SP_REGNUM.
1065 (set_reg_offset): Fix small typo.
1066 (reset_saved_regs): New procedure.
1067 (mips32_heuristic_proc_desc): No longer compute a fake
1068 procedure descriptor. Compute the full frame cache instead.
1069 Some minor comment reformatting.
1070
95575b2e
AC
10712004-09-14 Andrew Cagney <cagney@gnu.org>
1072
f200c492
AC
1073 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
1074 maintainer.
1075
95575b2e
AC
1076 * thread-db.c (thread_db_new_objfile): Assume that there is a
1077 child process.
1078
69657671
JB
10792004-09-13 Jim Blandy <jimb@redhat.com>
1080
1081 * valops.c (value_assign): Move 'buffer' to the enclosing block,
1082 so that its storage isn't referenced after its lifetime ends.
1083
6c4182dd
JB
1084 * valops.c (value_assign): 'use_buffer' is initialized to zero,
1085 and never assigned to. Delete it, and the 'if (use_buffer)'
1086 clauses. Delete 'raw_buffer', since it is now unused.
1087
ee31a58d
AC
10882004-09-13 Andrew Cagney <cagney@gnu.org>
1089
2c0fc042
AC
1090 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
1091 * configure: Re-generate.
1092 * nlm/Makefile.in (TAGS): Update.
1093 * Makefile.in (TAGS): Update.
1094 * config/vax/nbsd.mt (TM_FILE): Update.
1095 * config/sparc/vxworks.mt (TM_FILE): Update.
1096 * config/sparc/sol2.mt (TM_FILE): Update.
1097 * config/sparc/sol2-64.mt (TM_FILE): Update.
1098 * config/sparc/obsd64.mt (TM_FILE): Update.
1099 * config/sparc/obsd.mt (TM_FILE): Update.
1100 * config/sparc/nbsd64.mt (TM_FILE): Update.
1101 * config/sparc/nbsd.mt (TM_FILE): Update.
1102 * config/sparc/linux64.mt (TM_FILE): Update.
1103 * config/sparc/linux.mt (TM_FILE): Update.
1104 * config/sparc/fbsd.mt (TM_FILE): Update.
1105 * config/sh/wince.mt (TM_FILE): Update.
1106 * config/sh/nbsd.mt (TM_FILE): Update.
1107 * config/sh/linux.mt (TM_FILE): Update.
1108 * config/sh/embed.mt (TM_FILE): Update.
1109 * config/s390/s390.mt (TM_FILE): Update.
1110 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
1111 * config/rs6000/rs6000.mt (TM_FILE): Update.
1112 * config/rs6000/aix4.mt (TM_FILE): Update.
1113 * config/powerpc/vxworks.mt (TM_FILE): Update.
1114 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
1115 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
1116 * config/powerpc/obsd.mt (TM_FILE): Update.
1117 * config/powerpc/nbsd.mt (TM_FILE): Update.
1118 * config/powerpc/linux.mt (TM_FILE): Update.
1119 * config/powerpc/aix.mt (TM_FILE): Update.
1120 * config/pa/obsd.mt (TM_FILE): Update.
1121 * config/pa/linux.mt (TM_FILE): Update.
1122 * config/pa/hppahpux.mt (TM_FILE): Update.
1123 * config/pa/hppa64.mt (TM_FILE): Update.
1124 * config/pa/hppa.mt (TM_FILE): Update.
1125 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
1126 * config/mips/wince.mt (TM_FILE): Update.
1127 * config/mips/vxmips.mt (TM_FILE): Update.
1128 * config/mips/nbsd.mt (TM_FILE): Update.
1129 * config/mips/linux.mt (TM_FILE): Update.
1130 * config/mips/irix6.mt (TM_FILE): Update.
1131 * config/mips/irix5.mt (TM_FILE): Update.
1132 * config/mips/embed.mt (TM_FILE): Update.
1133 * config/m68k/vxworks68.mt (TM_FILE): Update.
1134 * config/m68k/st2000.mt (TM_FILE): Update.
1135 * config/m68k/os68k.mt (TM_FILE): Update.
1136 * config/m68k/obsd.mt (TM_FILE): Update.
1137 * config/m68k/nbsd.mt (TM_FILE): Update.
1138 * config/m68k/monitor.mt (TM_FILE): Update.
1139 * config/m68k/linux.mt (TM_FILE): Update.
1140 * config/m68k/cisco.mt (TM_FILE): Update.
1141 * config/ia64/linux.mt (TM_FILE): Update.
1142 * config/ia64/aix.mt (TM_FILE): Update.
1143 * config/ia64/ia64.mt (TM_FILE): Update.
1144 * config/i386/vxworks.mt (TM_FILE): Update.
1145 * config/i386/obsd64.mt (TM_FILE): Update.
1146 * config/i386/obsd.mt (TM_FILE): Update.
1147 * config/i386/nto.mt (TM_FILE): Update.
1148 * config/i386/nbsd64.mt (TM_FILE): Update.
1149 * config/i386/nbsd.mt (TM_FILE): Update.
1150 * config/i386/linux64.mt (TM_FILE): Update.
1151 * config/i386/linux.mt (TM_FILE): Update.
1152 * config/i386/i386sol2.mt (TM_FILE): Update.
1153 * config/i386/i386lynx.mt (TM_FILE): Update.
1154 * config/i386/fbsd64.mt (TM_FILE): Update.
1155 * config/i386/fbsd.mt (TM_FILE): Update.
1156 * config/i386/cygwin.mt (TM_FILE): Update.
1157 * config/h8300/h8300.mt (TM_FILE): Update.
1158 * config/frv/frv.mt (TM_FILE): Update.
1159 * config/cris/cris.mt (TM_FILE): Update.
1160 * config/arm/wince.mt (TM_FILE): Update.
1161 * config/arm/nbsd.mt (TM_FILE): Update.
1162 * config/arm/linux.mt (TM_FILE): Update.
1163 * config/arm/embed.mt (TM_FILE): Update.
1164 * config/alpha/nbsd.mt (TM_FILE): Update.
1165 * config/alpha/fbsd.mt (TM_FILE): Update.
1166 * config/alpha/alpha.mt (TM_FILE): Update.
1167 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
1168 * config/alpha/alpha-linux.mt (TM_FILE): Update.
1169
362646f5
AC
1170 Eliminate event_loop_p, always has the value 1.
1171 * defs.h (event_loop_p): Delete macro.
1172 * breakpoint.c (until_break_command): Simplify.
1173 * utils.c (prompt_for_continue): Simplify.
1174 * tracepoint.c (read_actions): Simplify.
1175 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
1176 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
1177 (set_prompt, init_main): Simplify.
1178 (init_signals, disconnect): Delete, unused.
1179 * remote.c (remote_async_resume)
1180 (extended_remote_async_create_inferior): Simplify.
1181 * mi/mi-interp.c (mi_input): Delete, unused.
1182 (mi_interpreter_resume, mi_command_loop): Simplify.
1183 * interps.c (current_interp_command_loop): Simplify.
1184 * infrun.c (proceed): Simplify.
1185 * infcmd.c (run_command, continue_command, step_1, jump_command)
1186 (until_command, advance_command, finish_command)
1187 (interrupt_target_command): Simplify.
1188 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
1189
ee31a58d
AC
1190 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1191 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1192 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1193 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1194 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1195 * mips-tdep.c (mips_dump_tdep): Do not print same.
1196
b7ffc4a8
AC
11972004-09-12 Andrew Cagney <cagney@gnu.org>
1198
2bfb72ee
AC
1199 * valprint.c (print_longest): Use fputs_filtered. Make "val"
1200 const.
1201 * Makefile.in (valprint.o): Delete explict rule.
1202
4f17c3c1
AC
1203 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
1204 reported by Dave Anderson.
1205
f810308b
AC
1206 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
1207
b7ffc4a8
AC
1208 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
1209
28b41c52
AC
12102004-09-12 Salvador E. Tropea <set@users.sf.net>
1211 Andrew Cagney <cagney@gnu.org>
1212
1213 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
1214 (mi_cmd_data_list_register_values)
1215 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
1216 the register number computation.
1217
5bf970f9
AC
12182004-09-12 Andrew Cagney <cagney@gnu.org>
1219
1220 * ppcnbsd-nat.c: Include "inf-ptrace.h".
1221 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
1222 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
1223 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
1224 target.
1225 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
1226 inf-ptrace.o and inf-child.o.
1227 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
1228 * Makefile.in: Update dependencies.
1229
0759e0bf
AC
12302004-09-11 Andrew Cagney <cagney@gnu.org>
1231
1232 * language.c (hex_string, hex_string_custom): Move from here ...
1233 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
1234 (CELLSIZE): Increase to 50.
1235 * language.h (hex_string, hex_string_custom): Move from here ...
1236 * defs.h: ... to here.
1237 * Makefile.in: Update all dependencies.
1238
bb599908
PH
12392004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
1240
1241 * language.c (local_hex_format_custom): Remove.
1242 (local_hex_string): Rename to hex_string, use C format, and move to
1243 utils.c
1244 (local_hex_string_custom): Rename to hex_string_custom and change
1245 interface. Now uses C format. Move to utils.c
1246 (local_octal_format_custom): Remove.
1247 (local_decimal_format_custom): Remove.
1248 (unknown_language_defn): Remove language-specific number
1249 formatting entries.
1250 (auto_language_defn): Ditto.
1251 (local_language_defn): Ditto.
1252 * language.h (struct language_format_info): Delete declaration.
1253 (struct language_defn): Remove language_format_info fields
1254 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
1255 (local_binary_format): Remove macro.
1256 (local_binary_format_prefix): Remove macro.
1257 (local_binary_format_specifier): Remove macro.
1258 (local_binary_format_suffix): Remove macro.
1259 (local_octal_format): Remove macro.
1260 (local_octal_format_prefix): Remove macro.
1261 (local_octal_format_specifier): Remove macro.
1262 (local_octal_format_suffix): Remove macro.
1263 (local_decimal_format): Remove macro.
1264 (local_decimal_format_prefix): Remove macro.
1265 (local_decimal_format_specifier): Remove macro.
1266 (local_decimal_format_suffix): Remove macro.
1267 (local_hex_format): Remove macro.
1268 (local_hex_format_prefix): Remove macro.
1269 (local_hex_format_specifier): Remove macro.
1270 (local_hex_format_suffix): Remove macro.
1271 (local_decimal_format_custom): Remove.
1272 (local_octal_format_custom): Remove.
1273 (local_hex_format_custom): Remove.
1274 (local_hex_string): Rename to hex_string and move to defs.h.
1275 (local_hex_string_custom): Rename to hex_string_custom, change
1276 interface, and move to defs.h.
1277 * utils.c: (int_string): New function.
1278 (hex_string): New function (from language.c).
1279 (hex_string_custom): New function (from language.c).
1280 (octal2str): New function.
1281 (decimal2str): Add width parameter.
1282 (paddr_u): Use new decimal2str interface.
1283 (paddr_d): Ditto.
1284 * defs.h (hex_string): Declare.
1285 (hex_string_custom): Declare.
1286 (int_string): Declare.
1287 * printcmd.c (print_scalar_formatted): Remove localized binary
1288 formatting.
1289 * valprint.c (print_longest): Use int_string.
1290 (print_floating): Use C hex format.
1291 (print_hex_chars): Ditto.
1292 (print_binary_chars): Remove language-specific formatting.
1293 (print_octal_chars): Use C octal format.
1294 (print_decimal_chars): Delocalize format.
1295 (print_decimal): Remove.
1296 * ada-lang.c (ada_language_defn): Remove language-specific number
1297 formatting entries.
1298 * p-lang.c (pascal_language_defn): Ditto.
1299 * c-lang.c (c_language_defn): Ditto.
1300 (cplus_language_defn): Ditto.
1301 (asm_language_defn): Ditto.
1302 (minimal_language_defn): Ditto.
1303 * f-lang.c (f_language_defn): Ditto.
1304 * jv-lang.c (java_language_defn): Ditto.
1305 * m2-lang.c (m2_language_defn): Ditto.
1306 * scm-lang.c (scm_language_defn): Ditto.
1307 * objc-lang.c (objc_language_defn): Ditto.
1308 * memattr.c (mem_info_command): Use renamed hex_string_custom with
1309 new interface.
1310 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
1311 * ui-out.c (ui_out_field_core_addr): Ditto.
1312 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
1313 * exec.c (print_section_info): Ditto.
1314 * i387-tdep.c (print_i387_status_word): Ditto.
1315 (print_i387_control_word): Ditto.
1316 (i387_print_float_info): Ditto.
1317 * maint.c (maint_print_section_info): Ditto.
1318 * solib.c (info_sharedlibrary_command): Ditto.
1319 * somsolib.c (som_sharedlibrary_info_command): Ditto.
1320 * symtab.c (print_msymbol_info): Ditto.
1321 * tracepoint.c (tracepoints_info): Ditto.
1322 * solib-frv.c (lm_base): Ditto.
1323 (frv_current_sos): Ditto.
1324 (enable_break2): Ditto.
1325 (enable_break): Ditto.
1326 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
1327 (process_one_symbol): Ditto.
1328 * infcmd.c (program_info): Ditto.
1329 * mdebugread.c (parse_partial_symbols): Ditto.
1330 * symfile.c (add_symbol_file_command): Ditto.
1331 * cli/cli-cmds.c (edit_command): Ditto.
1332 (list_command): Ditto.
1333 * infcall.c (call_function_by_hand): Ditto.
1334 * remote-vx.c (vx_run_files_info): Ditto.
1335 (vx_wait): Ditto.
1336 (vx_attach): Ditto.
1337 (vx_detach): Ditto.
1338 (vx_kill): Ditto.
1339 * aix-thread.c (pdc_symbol_addrs): Ditto.
1340 (pdc_read_regs): Ditto.
1341 (pdc_write_regs): Ditto.
1342 (pdc_read_data): Ditto.
1343 (pdc_write_data): Ditto.
1344 * d10v-tdep.c (display_trace): Ditto.
1345 * rs6000-nat.c (find_toc_address): Ditto.
1346 * aix-thread.c: Don't include language.h.
1347 * buildsym.c: Ditto.
1348 * dbxread.c: Ditto.
1349 * mdebugread.c: Ditto.
1350 * rs6000-nat.c: Ditto.
1351 * buildsym.c (make_blockvector): Use renamed hex_string.
1352
33f2d567
JM
13532004-09-10 Jason Molenda (jmolenda@apple.com)
1354
1355 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
1356 chars after 'if' or 'while' commands in user-defined commands.
1357
7b90c3f9
JB
13582004-09-08 Jim Blandy <jimb@redhat.com>
1359
1360 Fix bug reported and analyzed by Olivier Crete:
1361 * symfile.c (copy_section_addr_info): New function.
1362 (symbol_file_add_with_addrs_or_offsets): Use it to save the
1363 original set of address arguments, instead of handwritten code
1364 that uses one length to allocate and a different length to
1365 initialize. Use make_cleanup_free_section_addr_info.
1366 * symfile.h (copy_section_addr_info): New declaration.
1367 * utils.c: #include "symfile.h".
1368 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
1369 New functions.
1370 * defs.h (make_cleanup_free_section_addr_info): New declaration.
1371 * Makefile.in (utils.o): Update dependencies.
1372
b26a6851
AC
13732004-09-08 Andrew Cagney <cagney@gnu.org>
1374
1375 * thread-db.c (keep_thread_db): Delete.
1376 (thread_db_new_objfile, thread_db_create_inferior)
1377 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
1378
be24b061
MK
13792004-09-08 Mark Kettenis <kettenis@gnu.org>
1380
f6792ef4
MK
1381 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
1382 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
1383 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
1384 (i386_frameless_signal_p): Remove prototype.
1385 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
1386 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
1387 I386_SSE_NUM_REGS.
1388 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
1389 instead of FP0_REGNUM.
1390 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
1391 of FP0_REGNUM and FPC_REGNUM.
1392
eeefdaa7
MK
1393 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
1394 (sunos_solib_create_inferior_hook): Don't call
1395 sunos_relocate_main_executable.
1396
be24b061
MK
1397 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
1398 solib_svr4_fetch_link_map_offsets to
1399 svr4_ilp32_fetch_link_map_offsets.
1400 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
1401 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
1402 svr4_ilp32_fetch_link_map_offsets.
1403 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
1404
7c679d16
JB
14052004-09-07 Jim Blandy <jimb@redhat.com>
1406
1407 * frame.h (frame_register): Doc fix.
1408
1f04aa62
AC
14092004-09-07 Andrew Cagney <cagney@gnu.org>
1410
1411 * vx-share/wait.h: Delete #ifdef USG.
1412 * utils.c (request_quit): Ditto.
1413 * tui/tui.c (tui_reset): Ditto.
1414 * remote.c: Ditto.
1415 * remote-sds.c: Ditto.
1416 * remote-rdi.c: Ditto.
1417 * mdebugread.c: Ditto.
1418 * m68klinux-nat.c: Ditto.
1419 * infttrace.c: Ditto.
1420 * infptrace.c: Ditto.
1421 * i386v-nat.c: Ditto.
1422 * exec.c: Ditto.
1423 * dbxread.c: Ditto.
1424 * core-aout.c: Ditto.
1425
90edbfbc
JB
14262004-09-05 Joel Brobecker <brobecker@gnat.com>
1427
1428 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
1429 heuristic_proc_desc.
1430 (mips_insn32_frame_cache): Likewise.
1431
01f4bf2b
JB
14322004-09-04 Joel Brobecker <brobecker@gnat.com>
1433
1434 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
1435 left behind by error.
1436
8511a048
JB
14372004-09-04 Joel Brobecker <brobecker@gnat.com>
1438
1439 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
1440 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
1441
649dfe9f
JB
14422004-09-04 Joel Brobecker <brobecker@gnat.com>
1443
1444 * config/rs6000/xm-aix4.h: Remove this file.
1445 * config/rs6000/aix4.mh (XM_FILE): Delete.
1446
6e50f889
JB
14472004-09-04 Joel Brobecker <brobecker@gnat.com>
1448
1449 * config/rs6000/xm-rs6000.h: Remove this file.
1450 * config/rs6000/rs6000.mh (XM_FILE): Remove.
1451
b8c4aece
AC
14522004-09-03 Andrew Cagney <cagney@gnu.org>
1453
fb603883
AC
1454 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
1455 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
1456 only use.
1457
c9343fd1
AC
1458 * mips-tdep.c (temp_saved_regs): Delete.
1459 (set_reg_offset): Replace saved_regs parameter with this_cache.
1460 (heuristic_proc_desc, mips16_heuristic_proc_desc)
1461 (mips32_heuristic_proc_desc): Add this_cache parameter.
1462 (mips_insn32_frame_cache, mips_insn16_frame_cache)
1463 (after_prologue): Pass a NULL this_cache.
1464
9733cfe1
AC
1465 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
1466 non-kernel trap prologues.
1467
0d5febcc
AC
1468 * mips-tdep.c (find_proc_desc): Delete function.
1469 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
1470 simplify.
1471 (mips_insn16_frame_cache): Replace find_proc_desc with code from
1472 mips_insn32_frame_cache.
1473
9733cfe1 1474 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
283be873
AC
1475 Simplify as NEXT_FRAME is NULL.
1476 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
1477
177f84a3
AC
1478 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
1479 local variable.
1480 (mips_skip_prologue): Update.
1481
465f7520
AC
1482 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
1483 "cur_frame" parameter.
177f84a3
AC
1484 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
1485 (mips_insn32_frame_cache, find_proc_desc): Update
465f7520 1486
e38b8658
AC
1487 * config/vax/nm-obsd.h: Delete file.
1488 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1489 * config/vax/nm-nbsd.h: Delete file.
1490 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
1491 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1492 * config/sh/nm-nbsd.h: Delete file.
1493 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1494 * config/rs6000/nm-rs6000ly.h: Delete file.
1495 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
1496 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1497 * config/powerpc/nm-obsd.h: Delete file.
1498 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1499 * config/powerpc/nm-nbsd.h: Delete file.
1500 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1501 * config/pa/nm-obsd.h: Delete file.
1502 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1503 * config/mips/nm-nbsd.h: Delete file.
1504 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1505 * config/m88k/nm-obsd.h: Delete file.
1506 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1507 * config/m68k/nm-nbsd.h: Delete file.
1508 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
1509 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1510 * config/i386/nm-nbsd.h: Delete file.
1511 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
1512 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1513 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1514 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1515 * config/i386/nm-i386lynx.h: Delete file.
1516 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1517 * config/arm/nm-nbsd.h: Delete file.
1518 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
1519 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1520
be1ed680
AC
1521 * config/i386/tm-fbsd.h: Delete file.
1522 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
1523 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
1524
4b392b26
AC
1525 * config/rs6000/tm-rs6000-aix4.h: Delete file.
1526 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
1527 * config/rs6000/aix4.mt (TM_FILE): Set to
1528 config/rs6000/tm-rs6000.h.
1529 * config/powerpc/tm-ppc-aix.h: Delete file.
1530 * config/powerpc/aix.mt (TM_FILE): Set to
1531 config/rs6000/tm-rs6000.h.
1532 * config/m68k/tm-linux.h: Delete file.
1533 * config/m68k/linux.mt (TM_FILE): Set to solib.h
1534 * config/i386/tm-linux64.h: Delete file.
1535 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
1536 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
1537
f3219c75
AC
1538 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1539 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
1540 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
1541 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1542 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
1543 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
1544 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
1545 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
1546 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
1547
b8c4aece
AC
1548 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
1549 gdb_host_cpu.
1550
8ac2e020
JB
15512004-09-02 Joel Brobecker <brobecker@gnat.com>
1552
1553 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
1554 Minor reformatting. Some code factoring.
1555
c185a355
AC
15562004-09-02 Andrew Cagney <cagney@gnu.org>
1557
63f22f0d
AC
1558 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
1559 * config/vax/tm-nbsd.h: Delete file.
1560 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1561 * config/sparc/tm-vxworks.h: Delete file.
1562 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
1563 * config/sparc/tm-nbsd.h: Delete file.
1564 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
1565 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
1566 * config/sparc/tm-linux.h: Delete file.
1567 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
1568 * config/s390/tm-linux.h: Delete file.
1569 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
1570 * config/pa/tm-bsd.h: Delete file.
1571 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
1572 * config/m68k/tm-obsd.h: Delete file.
1573 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
1574 * config/m68k/tm-nbsd.h: Delete file.
1575 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1576 * config/i386/tm-vxworks.h: Delete file.
1577 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
1578 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
1579 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
1580 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
1581 * config/i386/tm-nbsd.h: Delete file.
1582 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
1583 * config/i386/tm-i386lynx.h: Delete file.
1584 * config/cris/cris.mt (TM_FILE): Set to solib.h.
1585 * config/cris/tm-cris.h: Delete file.
1586
0f475e27
AC
1587 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
1588 * configure: Re-generate.
1589 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
1590 * config/arm/tm-nbsd.h: Delete file.
1591
458ed000
AC
1592 * config/powerpc/tm-ppcle-sim.h: Delete.
1593 * config/powerpc/tm-ppcle-eabi.h: Delete.
1594 * config/powerpc/tm-nbsd.h: Delete.
1595 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
1596 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
1597 tm-ppcle-eabi.h.
1598
f14375f3
AC
1599 * config/i386/nto.mh (NAT_FILE): Delete.
1600 * config/i386/nm-nto.h: Delete.
1601
c34d127c
AC
1602 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
1603 * config/m68k/tm-os68k.h: Ditto.
1604 * config/m68k/tm-monitor.h: Ditto.
1605 * config/m68k/tm-cisco.h: Ditto.
1606 * config/m68k/st2000.mt (TM_FILE): Delete.
1607 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
1608 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
1609 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
1610 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
1611
f7f0fe03
AC
1612 * config/m68k/tm-st2000.h: Delete.
1613 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
1614 * config/sparc/fbsd.mt (TM_FILE): Delete.
1615 * config/sparc/tm-fbsd.h: Delete.
1616
a2558533
AC
1617 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
1618 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
1619 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
1620
b78960be
AC
1621 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
1622 GDB_TM_FILE and GDB_XM_FILE.
1623 * gdbarch.c: Re-generate.
1624 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
1625 quotes in macro definition.
1626 * configure.in: Re-generate.
1627
4d60522e
AC
1628 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
1629 validating architecture methods.
1630 * gdbarch.c: Re-generate.
1631
5010d38b
AC
1632 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
1633 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
1634 GDB_MULTI_ARCH_PARTIAL.
1635 * gdbarch.h: Re-generate.
1636
c185a355
AC
1637 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
1638 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
1639 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
1640 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
1641 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
1642 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
1643 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
1644 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
1645 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
1646 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
1647 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
1648 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
1649
14aaa6ab
AC
16502004-09-01 Andrew Cagney <cagney@gnu.org>
1651
1652 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
1653 and main_func_highpc.
1654 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
1655 * objfiles.c (init_entry_point_info, objfile_relocate): Update
1656 * nlmread.c (nlm_symfile_read): Update.
1657
a343eb3c
JB
16582004-09-01 Joel Brobecker <brobecker@gnat.com>
1659
1660 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
1661 (mips_insn32_frame_cache): Inline call to find_proc_desc.
1662 (find_proc_desc): Remove dead code.
1663
4fbbbd07
JB
16642004-09-01 Joel Brobecker <brobecker@gnat.com>
1665
1666 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
1667
84acb35a
JJ
16682004-09-01 Jeff Johnston <jjohnstn@redhat.com>
1669
1670 * observer.sh: Add struct so_list declaration.
1671 * Makefile.in: Add dependencies on observer.h for solib.c and
1672 breakpoint.c.
1673 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
1674 function.
1675 (_initialize_breakpoint): Register
1676 disable_breakpoints_in_unloaded_shlib as an observer of the
1677 "solib unloaded" observation event.
1678 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
1679 call decode_line_1 so unfound breakpoint errors are silent.
1680 * solib.c (update_solib_list): When a solib is discovered to have
1681 been unloaded by the program, notify all observers of the
1682 "solib unloaded" observation event.
1683
c8cd9f6c
AC
16842004-09-01 Andrew Cagney <cagney@gnu.org>
1685
1686 * frame.c: Include "objfiles.h".
1687 (inside_main_func): New function.
1688 (get_prev_frame): Use new inside_main_func.
1689 * Makefile.in (frame.o): Update dependencies.
1690 * defs.h (inside_main_func): Delete declaration.
1691 * blockframe.c (inside_main_func): Delete function.
1692
1168df01
JB
16932004-08-31 Jim Blandy <jimb@redhat.com>
1694
1695 * dwarf2read.c (is_vtable_name): New function, based on logic from
1696 read_structure_type, but passing the correct length to strncmp,
1697 and using 'sizeof' instead of 'strlen'.
1698 (read_structure_type): Call it.
1699
f14f9744
JB
17002004-08-31 Joel Brobecker <brobecker@gnat.com>
1701
1702 * config/powerpc/aix.mh: Add comment.
1703
386d4518
PG
17042004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
1705
1706 * MAINTAINERS: Add self to Write-After-Approval.
1707
7d97d5e2
MI
17082004-08-30 Manoj Iyer <manjo@austin.ibm.com>
1709
1710 * MAINTAINERS: Add self to Write-After-Approval.
1711
68f53502
AC
17122004-08-30 Andrew Cagney <cagney@gnu.org>
1713
1714 Fix PR breakpoints/1757.
1715 * infrun.c (struct execution_control_state): Replace
1716 remove_breakpoints_on_following_step with
1717 step_after_step_resume_breakpoint.
1718 (init_execution_control_state): Update.
1719 (handle_inferior_event): For signals, when stepping off a
1720 breakpoint, set step_after_step_resume_breakpoint. When
1721 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
1722 (keep_going): Delete code handling
1723 remove_breakpoints_on_following_step.
1724
7ca2d3a3
DL
17252004-08-29 David Lecomber <david@streamline-computing.com>
1726
1727 Fix PR gdb/648
1728 * language.h (enum array_ordering): New enum.
1729 * language.h (struct language_defn): New la_array_ordering
1730 attribute.
1731 * language.c (unknown_language_defn, auto_language_defn)
1732 (local_language_defn): Ditto.
1733 * ada-lang.c (ada_language_defn): Ditto.
1734 * c-lang.c (c_language_defn, cplus_language_defn)
1735 (asm_language_defn, minimal_language_defn): Ditto.
1736 * f-lang.c (f_language_defn): Ditto.
1737 * jv-lang.c (java_language_defn): Ditto.
1738 * m2-lang.c (f_language_defn): Ditto.
1739 * objc-lang.c (objc_language_defn): Ditto.
1740 * p-lang.c (pascal_language_defn): Ditto.
1741 * scm-lang.c (scm_language_defn): Ditto.
1742 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
1743 oriented large to small in type structure.
1744 * dwarf2read.c (read_array_order): New function.
1745 (read_array_type): Use read_array_order to check row/column
1746 major ordering.
1747
e354df01
NW
17482004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
1749
1750 * target.c (target_resize_to_sections): Check
1751 current_target.to_sections for an old value when updating.
1752
9185ddce
JB
17532004-08-27 Joel Brobecker <brobecker@gnat.com>
1754
1755 * procfs.c (dbx_link_bpt_addr): New static global variable.
1756 (dbx_link_shadow_contents): New static global variable.
1757 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
1758 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
1759 if we just hit it.
1760 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
1761 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
1762 from run to run.
1763 (procfs_create_inferior): Remove syssgi syscall-exit notifications
1764 after the inferior has been forked.
1765 (remove_dbx_link_breakpoint): New function.
1766 (dbx_link_addr): New function.
1767 (insert_dbx_link_bpt_in_file): New function.
1768 (insert_dbx_link_bpt_in_region): New function.
1769 (insert_dbx_link_breakpoint): New function.
1770 (proc_trace_syscalls_1): New function, extracted from
1771 proc_trace_syscalls.
1772 (proc_trace_syscalls): Replace extract code by call to
1773 proc_trace_syscalls_1.
1774 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
1775 is no longer valid.
1776
e6742ace
JB
17772004-08-25 Jim Blandy <jimb@redhat.com>
1778
1779 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
1780
8fb3e588
AC
17812004-08-25 Andrew Cagney <cagney@gnu.org>
1782
629a41ee
AC
1783 * infrun.c (struct execution_control_state): Delete field
1784 "stepping_through_sigtramp".
1785 (init_execution_control_state): Do not set same.
1786 (context_switch): Do not pass same to save_infrun_state and
1787 load_infrun_state.
1788 * gdbthread.h (struct thread_info): Delete field
1789 stepping_through_sigtramp.
1790 (save_infrun_state, load_infrun_state): Delete parameter
1791 stepping_through_sigtramp.
1792 * thread.c (load_infrun_state, save_infrun_state): Update.
1793
8fb3e588
AC
1794 * infrun.c: Re-indent. Move expression operators to the beginning
1795 of the line. Remove long disabled #if 0 code.
1796
49c54768
AC
17972004-08-24 Andrew Cagney <cagney@gnu.org>
1798
1799 * doublest.h (floatformat_ieee_quad): Rename
1800 floatformat_ia64_quad.
1801 * doublest.c (floatformat_ieee_quad): Rename
1802 floatformat_ia64_quad.
1803 (_initialize_doublest): Update.
1804
5ca2e327
JB
18052004-08-24 Jim Blandy <jimb@redhat.com>
1806
87808bd6
JB
1807 * dwarf2expr.h (struct dwarf_expr_context): New members
1808 'num_pieces' and 'pieces', for returning the result of an
1809 expression that uses DW_OP_piece.
1810 (struct dwarf_expr_piece): New struct type.
1811 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
1812 pieces.
1813 (free_dwarf_expr_context): Free pieces, if any.
1814 (add_piece): New function.
1815 (execute_stack_op): Implement DW_OP_piece.
1816 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
1817 expression is a list of pieces, print an error message.
1818 (dwarf2_loc_desc_needs_frame): If the expression yields
1819 pieces, and any piece is in a register, then we need a frame.
1820
5ca2e327
JB
1821 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
1822 the stack until we've decided what sort of result the evaluation
1823 has produced. Use separate variables, with more specific names.
1824
2afeb6b8
RE
18252004-08-23 Richard Earnshaw <rearnsha@arm.com>
1826
1827 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
1828 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
1829 (arm_netbsd_init_abi_common): Register them.
1830
5885ab49
MK
18312004-08-22 Mark Kettenis <kettenis@gnu.org>
1832
fda820a6
MK
1833 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
1834
1c5bf419
MK
1835 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
1836 safe_frame_unwind_memory instead of target_read_memory.
1837
8cbba7c8
MK
1838 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
1839 Reorder includes.
1840 (fetch_register, store_register): Remove prototypes.
1841 (child_resume): Reorganize code and comments such that it is
1842 grouped a bit more logically.
1843 (attach): Explicitly compare errno against 0.
1844 (detach): Likewise. Use perror_with_name instead of
1845 print_sys_errmsg.
1846 * Makefile.in (infptrace.o): Update dependencies.
1847
c5fa4245
MK
1848 * ia64-linux-nat.c: Update copyright year.
1849 (fetch_debug_register, store_debug_register)
1850 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
1851 PTRACE_TYPE_ARG3.
1852 * config/ia64/nm-linux.h: Update copyright year.
1853 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
1854
387c058c
MK
1855 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
1856 from CORE_ADDR to struct frame_info *. Use
1857 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
1858 (amd64_linux_sigtramp_p): Adjust for changed signature of
1859 and64_linux_sigtramp_start
1860
277215a6
MK
1861 * gdb_ptrace.h: GNU/Linux.
1862
25f6178e
MK
1863 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1864 Remove defines.
1865
652fc137
MK
1866 * infptrace.c: Include "gdb_assert.h".
1867 (PTRACE_XFER_TYPE): Remove define.
1868 (offsetof): Only define if U_REGS_OFFSET isn't defined.
1869 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
1870 Tweak comment.
1871 (fetch_inferior_registers, store_inferior_registers): Remove
1872 redundant culry braces. Tweak comment. s/regno/regnum.
1873 * Makefile.in (infptrace.o): Update dependencies.
1874
5885ab49
MK
1875 * configure.in: Change test for return type of ptrace to default
1876 to `long' instead of `int'.
1877 * configure: Regenerate.
1878
11003ae3
MK
18792004-08-21 Mark Kettenis <kettenis@gnu.org>
1880
6b95110c
MK
1881 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
1882
bcb3dc3d
MK
1883 * configure.in: Check for ttrace function.
1884 * configure, config.in: Regenerate.
1885
11003ae3
MK
1886 * gdb_ptrace.h: New file.
1887 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
1888 <sys/ptrace.h>.
1889 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
1890 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
1891 (attach): Don't define PT_ATTACH.
1892 (detach): Don't define PT_DETACH.
1893 * Makefile.in (gdb_ptrace_h): New variable.
1894 (infptrace.o): Update dependencies.
1895
f8707cac
MK
18962004-08-16 Mark Kettenis <kettenis@gnu.org>
1897
1898 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
1899 instead of `int' if not already defined.
1900 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
1901 PTRACE_TYPE_ARG3.
1902 * infptrace.c (call_ptrace): Revert change that replaced
1903 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1904
655c5466
MK
19052004-08-15 Mark Kettenis <kettenis@gnu.org>
1906
156e5ba7
MK
1907 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1908 Remove defines.
1909
de9a9e51
MK
1910 * linux-nat.c (kill_inferior): Add missing third and fourth
1911 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
1912
88800403
MK
1913 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
1914 PTRACE_TYPE_RET.
1915
849a1d7c
MK
1916 * proc-why.c (proc_prettyfprint_why): Fix format string.
1917
61ad16d1
MK
1918 * solib-osf.c (osf_current_sos): Remove unsused label.
1919
a6ed5501
MK
1920 * configure.in: Add <ncurses/ncurses.h> to the list of possible
1921 curses headers.
1922 * configure, config.in: Regenerate.
1923 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
1924 <ncurses/ncurses.h>.
1925
016ddeca
MK
1926 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
1927 * config/nm-nbsd.h: Update copyright year.
1928 (PTRACE_ARG3_TYPE): Remove define.
1929
49ec097f
MK
1930 * sparc-nat.c (fetch_inferior_registers)
1931 (store_inferior_registers, sparc_xfer_wcookie):
1932 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1933
9f8e0089
MK
1934 * alphabsd-nat.c (fetch_inferior_registers):
1935 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1936 PTRACE_TYPE_ARG3.
1937 * amd64bsd-nat.c (fetch_inferior_registers)
1938 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1939 PTRACE_TYPE_ARG3.
1940 * armnbsd-nat.c: Update copyright year.
1941 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
1942 (store_register, store_regs, store_fp_register, store_fp_regs):
1943 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1944 * hppabsd-nat.c (fetch_inferior_registers)
1945 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1946 PTRACE_TYPE_ARG3.
1947 * i386bsd-nat.c (fetch_inferior_registers)
1948 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
1949 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1950 * m68kbsd-nat.c (fetch_inferior_registers)
1951 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1952 PTRACE_TYPE_ARG3.
1953 * m88kbsd-nat.c (fetch_inferior_registers)
1954 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1955 PTRACE_TYPE_ARG3.
1956 * mipsnbsd-nat.c: Update copyright year.
1957 (fetch_inferior_registers, store_inferior_registers):
1958 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1959 * ns32knbsd-nat.c: Update copyright year.
1960 (fetch_inferior_registers, store_inferior_registers):
1961 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1962 * ppcnbsd-nat.c (fetch_inferior_registers):
1963 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1964 PTRACE_TYPE_ARG3.
1965 * ppcobsd-nat.c (fetch_inferior_registers):
1966 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1967 PTRACE_TYPE_ARG3.
1968 * shnbsd-nat.c: Update copyright year.
1969 (fetch_inferior_registers, store_inferior_registers):
1970 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1971 * vaxbsd-nat.c (fetch_inferior_registers)
1972 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1973 PTRACE_TYPE_ARG3.
1974
655c5466
MK
1975 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
1976 PTRACE_TYPE_ARG3.
1977 * infptrace.c (call_ptrace, child_resume, attach, detach)
1978 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
1979 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1980 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
1981 PTRACE_TYPE_ARG3.
1982
c40d0d10
MK
19832004-08-14 Mark Kettenis <kettenis@gnu.org>
1984
5cb0ff31
MK
1985 * defs.h: Remove out-of-date comment.
1986 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
1987 [!GETENV_PROVIDED] (getenv): Remove prototype.
1988
5f0f34cb
MK
1989 * standalone.c: Remove file.
1990 * Makefile.in (standalone.o): Remove dependency.
1991
7532965f
MK
1992 * i386-linux-nat.c (dummy_sse_values): Remove function and
1993 prototype.
1994 (i386_linux_dr_get): Fix typo in comment.
1995 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
1996
1bdc6c53
MK
1997 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
1998
c40d0d10
MK
1999 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
2000 from declaration.
2001 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
2002 from definition.
2003
64218d3e
MK
20042004-08-13 Mark Kettenis <kettenis@gnu.org>
2005
2006 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
2007 parenthesis in definition.
2008 * configure: Regenerated.
2009
926c94e7
MC
20102004-08-12 Michael Chastain <mec.gnu@mindspring.com>
2011
2012 * PROBLEMS: Mention build/1411.
2013
69489883
NN
20142004-08-09 Robert Millan <robertmh@gnu.org>
2015
2016 Committed by Nathanael Nerode.
2017 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
2018 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
2019
ebb7c577
AC
20202004-08-12 Andrew Cagney <cagney@gnu.org>
2021
2022 * NEWS: Mention fixes in GDB 6.2.1.
2023 * PROBLEMS: Remove mention of mips-irix.
2024
232d697c
JB
20252004-08-11 Joel Brobecker <brobecker@gnat.com>
2026
2027 * config/powerpc/xm-aix.h: Delete.
2028 * config/powerpc/aix.mh (MH_FILE): Remove.
2029 * config/powerpc/aix432.mh (MH_FILE): Remove.
2030
72f4e82b
JB
20312004-08-11 Joel Brobecker <brobecker@gnat.com>
2032
2033 * config/powerpc/aix.mh: Remove obsolete comment.
2034 * config/powerpc/aix432.mh: Likewise.
2035
0687ccb2
JB
20362004-08-11 Joel Brobecker <brobecker@gnat.com>
2037
2038 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
2039
dbf3ada7
JB
20402004-08-11 Joel Brobecker <brobecker@gnat.com>
2041
e08e1886
JB
2042 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
2043 this file is now empty.
2044 * config/xm-aix4.h: Remove, this file is no longer included
2045 anywhere.
2046
20472004-08-11 Joel Brobecker <brobecker@gnat.com>
2048
2049 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
2050 that file is now empty.
dbf3ada7
JB
2051 (termdef): Remove prototype, function no longer used.
2052
4c525ef6
JB
20532004-08-11 Joel Brobecker <brobecker@gnat.com>
2054
2055 * doc/gdbint.texinfo (Host Definition): Remove documentation
2056 for USE_O_NOCTTY, no longer used.
2057 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
2058 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
2059
82e0b968
JB
20602004-08-11 Joel Brobecker <brobecker@gnat.com>
2061
2062 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
2063 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
2064 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
2065
f2acbe1c
MK
20662004-08-11 Mark Kettenis <kettenis@gnu.org>
2067
daa98270
MK
2068 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
2069 instead of FIVE_ARG_PTRACE.
2070
f2acbe1c
MK
2071 * inflow.c (O_NOCTTY): Define to zero if not already defined.
2072 (new_tty): Use O_NOCTTY unconditionally.
2073
cc377e6b
MK
20742004-08-10 Mark Kettenis <kettenis@gnu.org>
2075
2076 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
2077 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
2078 fflush on stdout.
2079
3bcc18fa
JB
20802004-08-10 Joel Brobecker <brobecker@gnat.com>
2081
2082 * xcoff_symfile_finish: Replace last call to xmfree by call
2083 to xfree.
2084
7936743b
AC
20852004-08-10 Andrew Cagney <cagney@gnu.org>
2086
cc503c8a
AC
2087 * main.c (captured_main): Delete call to init_malloc.
2088 * defs.h (init_malloc): Delete declaration.
2089 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
2090 (init_malloc): Delete functions.
2091
2dc74dc1
AC
2092 * defs.h (xmfree): Delete.
2093 * utils.c (xmfree): Delete function.
2094 (xfree): Inline calls to xmfree and mfree.
2095 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
2096 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
2097 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
2098 * somread.c (som_symfile_finish): Ditto.
2099 * objfiles.c (allocate_objfile, free_objfile):
2100 * nlmread.c (nlm_symfile_finish): Ditto.
2101 * hpread.c (hpread_symfile_finish): Ditto.
2102 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
2103 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
2104 * coffread.c (coff_symfile_finish): Ditto.
2105
aa2ee5f6
AC
2106 * defs.h (xmcalloc): Delete declaration.
2107 * utils.c (xmcalloc): Delete.
2108 (xcalloc): Inline calls to xmcalloc and mcalloc.
2109 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
2110 xcalloc and xfree.
2111 * symtab.c (create_demangled_names_hash): Ditto.
2112
0efffb96
AC
2113 * defs.h (xmrealloc): Delete.
2114 * utils.c (xmrealloc): Delete.
2115 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
2116 * symmisc.c (extend_psymbol_list): Use xrealloc.
2117 * source.c (find_source_lines): Ditto.
2118 * hpread.c (hpread_lookup_type): Ditto.
2119 * dbxread.c (add_bincl_to_list): Ditto.
2120
7936743b
AC
2121 * utils.c (xmmalloc): Delete.
2122 (xmalloc): Inline xmmalloc and mmalloc calls.
2123 (msavestring): Use xmalloc.
2124 * defs.h (xmmalloc): Delete declaration.
2125 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
2126 xmmalloc.
2127 * symmisc.c (extend_psymbol_list): Ditto.
2128 * symfile.c (init_psymbol_list): Ditto.
2129 * source.c (find_source_lines): Ditto.
2130 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
2131 * elfread.c (elf_symtab_read): Ditto.
2132 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
2133 * coffread.c (coff_symfile_init): Ditto.
2134
252ab814
DC
21352004-08-10 David Carlton <carlton@bactrian.org>
2136
2137 * MAINTAINERS: Remove David Carlton from c++ testsuite
2138 maintainers.
2139
8f5ba92b
JG
21402004-08-10 Jerome Guitton <guitton@gnat.com>
2141
2142 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
2143 print a line feed before the prompt.
2144
21749010
MK
21452004-08-10 Mark Kettenis <kettenis@gnu.org>
2146
2147 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
2148
1f011ce2
JB
21492004-08-09 Joel Brobecker <brobecker@gnat.com>
2150
2151 General cleanup of the AIX xm include file:
2152 * config/xm-aix4.h (fd_set): Remove undefine.
2153 Remove include of <sys/select.h>.
2154 (HAVE_TERMIO): Remove define.
2155 (USG): Likewise.
2156 (NULL): Remove redefine.
2157 (alloca): Remove #pragma.
2158 (vfork): Remove define.
2159 (termdef): Remove.
2160 (SIGWINCH_HANDLER): Remove.
2161 (SIGWINCH_HANDLER_BODY): Remove.
2162
cf4e7692
MK
21632004-08-09 Mark Kettenis <kettenis@gnu.org>
2164
2165 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
2166 GDB_OSABI_OPENBSD_ELF.
2167
ac5754fa
MK
21682004-08-07 Robert Millan <robertmh@gnu.org>
2169
2170 * bsd-kvm.c: Check for nlist.h before including it.
2171
086ec9eb
MK
21722004-08-09 Mark Kettenis <kettenis@gnu.org>
2173
bbe06c74
MK
2174 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
2175 sigcontext' offset consistency checks for ancient BSD.
2176
3aa7b3b3
MK
2177 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
2178
086ec9eb
MK
2179 * configure.in: Check for <sys/types.h>. Check return and
2180 argument types of ptrace.
2181 * configure, config.in: Regenerate.
2182
09991fa0
JB
21832004-08-09 Jim Blandy <jimb@redhat.com>
2184
2185 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
2186 rs6000_register_sim_regno): Doc fixes.
2187
fed7ba43
JB
21882004-08-08 Joel Brobecker <brobecker@gnat.com>
2189
2190 * mips-tdep.c: Include "floatformat.h".
2191 (n32n64_floatformat_always_valid): New function.
2192 (floatformat_n32n64_long_double_big): New constant.
2193 (mips_gdbarch_init): Set size and format of long double
2194 for N32 and N64 ABIs.
2195 * Makefile.in (mips-tdep.o): Update dependencies.
2196
456fcf94
AC
21972004-08-08 Andrew Cagney <cagney@gnu.org>
2198
2f9b146e
AC
2199 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
2200 print. Improve script's error messages.
2201 * gdbarch.h: Re-generate.
2202
456fcf94
AC
2203 * gdbarch.sh (pformat): New function.
2204 (float_format, double_format, long_double_format): List with bit
2205 members. Use pformat when printing.
2206 * gdbarch.c, gdbarch.h: Re-generate.
2207
69e9e646
NW
22082004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
2209
2210 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
2211 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
2212 (ppcnbsd_supply_pcb): New function.
2213 (_initialize_ppcnbsd_nat): New prototype and function.
2214 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
2215 (LOADLIBES): New variable.
2216 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
2217
5ef2d0aa
AC
22182004-08-08 Andrew Cagney <cagney@gnu.org>
2219
2220 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
2221 (builtin_type_ieee_double, builtin_type_ia64_quad)
2222 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
2223 BE/LE floating-point types.
2224 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
2225 (builtin_type_ieee_double, builtin_type_ia64_quad)
2226 (builtin_type_ia64_spill): Declare.
2227 * doublest.c (_initialize_doublest, floatformat_ieee_single)
2228 (floatformat_ieee_double, floatformat_arm_ext)
2229 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
2230 of LE/BE floatformats.
2231 * doublest.h: (struct floatformat, floatformat_ieee_single)
2232 (floatformat_ieee_double, floatformat_arm_ext)
2233 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
2234
5c7f2947
MK
22352004-08-08 Mark Kettenis <kettenis@gnu.org>
2236
ecac404d
MK
2237 * i386gnu-nat.c (gnu_store_registers): Fix typo.
2238
9b8607ce
MK
2239 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
2240 instead of regcache_raw_supply when storing the registers.
2241
f6052080
MK
2242 * i386gnu-nat.c: Update copyright year.
2243 (gnu_store_registers): Don't use deprecated_registers and
2244 deprecated_registers_valid. Use regcache_valid_p and
2245 regcache_raw_supply instead.
2246
17777823
MK
2247 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
2248 frame_pc_unwind.
2249
5240ceac
MK
2250 * procfs.c (procfs_pid_to_str): Remove redundant and unused
2251 variables. Incapitalized "process".
2252
5c7f2947
MK
2253 * configure.in: Add cursesX to the list of possible curses libs.
2254 Add cursesX.h to the list of possible curses headers.
2255 * configure, config.in: Regenerate.
2256
da7d81e3
NW
22572004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
2258
2259 * configure.in: Test for struct lwp in <sys/lwp.h>.
2260 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
2261 the offset of l_addr in struct lwp.
2262
7f245d65
NW
22632004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
2264
2265 * bsd-kvm.c: Include "gdbcore.h"
2266 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
2267
47b3f456
AC
22682004-08-07 Andrew Cagney <cagney@gnu.org>
2269
70bd8e24
AC
2270 * gdbtypes.c (build_flt, build_complex): New functions.
2271 (gdbtypes_post_init): Use.
2272
9b0dea39
AC
2273 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
2274
5cf7abac
AC
2275 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
2276 through to builtin_type_uint128.
2277
64d2b26d
AC
2278 * c-exp.y: Use builtin_type function to obtain builtin types.
2279
7ad6570d
AC
2280 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
2281 builtin_uint128.
2282 * gdbtypes.c (gdbtypes_post_init): Update.
2283 (build_gdbtypes): Move initialization of builtin_type_int0
2284 through to builtin_type_uint128 from here ...
2285 (_initialize_gdbtypes): ... to here.
2286 * d10v-tdep.c (d10v_register_type): Update.
2287
47b3f456
AC
2288 * doublest.c: Update copyright.
2289 (floatformat_from_length): Call error when floatformat is NULL.
2290 (extract_floating_by_length): Remove NULL fmt check.
2291 (store_floating_by_length): Ditto.
2292
0a8146bf
AC
22932004-08-07 Andrew Cagney <cagney@gnu.org>
2294
2295 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
2296 that the register is valid.
2297
c0ccb908
MK
22982004-08-05 Mark Kettenis <kettenis@chello.nl>
2299
8e6bed05
MK
2300 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2301 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
2302 struct frame_info *. Use safe_frame_unwind_memory instead of
2303 deprecated_read_memory_nobpt.
2304 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
2305 changed signature of i386_linux_sigtramp_start and
2306 i386_linux_rt_sigtramp_start.
2307
24f9f5e3
MK
2308 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
2309 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
2310 instead of deprecated_read_memory_nobpt.
2311 (i386nbsd_sigtramp_p): Adjust for changed signature of
2312 i386nbsd_sigtramp_offset.
2313
c822af0c
MK
2314 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
2315 safe_frame_unwind_memory instead of target_read_memory.
2316
c0ccb908
MK
2317 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2318 !NO_SYS_FILE.
2319 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
2320 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
2321 (_initialize_kernel_u_addr): Remove prototype and function.
2322 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2323 !NO_SYS_FILE.
2324 * xcoffread.c: Likewise.
2325
b9e1c0d6
MK
23262004-08-06 Mark Kettenis <kettenis@gnu.org>
2327
2328 * vax-nat.c: New file.
2329 * vaxbsd-nat.c: Tweak comment.
2330 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
2331 vaxnbsd-tdep.c.
2332 (vax-nat.o): New dependency.
2333 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
2334 (vax-*-ultrix2*): Remove.
2335 * config/vax/vax.mh: New file.
2336 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
2337 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
2338 (vax_register_u_addr): New prototype.
2339 (REGISTER_U_ADDR): Define using vax_register_u_addr.
2340 * config/vax/vaxult2.mh: Remove file.
2341 * config/vax/vaxult.mh: Remove file.
2342 * config/vax/vaxbsd.mh: Remove file.
2343 * config/vax/vax.mt (TM_FILE): Remove.
2344 * config/vax/tm-vaxbsd.h: Remove file.
2345
9ad7bec7
JB
23462004-08-06 Joel Brobecker <brobecker@gnat.com>
2347
2348 * aix-thread.c (get_signaled_thread): New function.
2349 (iter_trap): Delete, no longer used.
2350 (iter_tid): New function.
2351 (pd_update): Find the thread that received the SIGTRAP signal
2352 by first locating the kernel thread, and then finding its
2353 associated thread.
2354
bf0d233d
UW
23552004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
2356
2357 * lin-lwp.c (child_wait): Continue inferior after processing
2358 PTRACE_EVENT_CLONE event.
2359
d0f853e1
NN
23602004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
2361
2362 * MAINTAINERS: Add self to Write-After-Approval.
2363
ab14aeb0
JJ
23642004-08-05 Jeff Johnston <jjohnstn@redhat.com>
2365
2366 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
2367 libunwind-xxxx.so" where xxxx is UNW_TARGET.
2368
9c8dbfa9
AC
23692004-08-05 Andrew Cagney <cagney@gnu.org>
2370
c8f3ca46
AC
2371 * config/xm-sysv4.h: Delete file.
2372 * config/mips/xm-irix5.h: Delete file.
2373 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
2374 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
2375 * config/ia64/xm-aix.h: Delete file.
2376 * config/ia64/aix.mh (XM_FILE): Delete.
2377 * config/pa/xm-hppah.h: Delete file.
2378 * config/pa/hpux11w.mh (XM_FILE): Delete.
2379 * config/pa/hpux11.mh (XM_FILE): Delete.
2380 * config/pa/hpux1020.mh (XM_FILE): Delete.
2381 * config/pa/hppahpux.mh (XM_FILE): Delete.
2382
5f7daaff
AC
2383 * config/alpha/xm-alphalinux.h: Delete file.
2384 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
2385 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
2386 * config/alpha/xm-alphaosf.h: Delete file.
2387 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
2388 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
2389 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
2390 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
2391
69babf95
AC
2392 * config/i386/xm-i386v.h: Delete file.
2393 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
2394 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
2395 * config/i386/xm-i386sco.h: Delete file.
2396 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
2397 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
2398 * config/i386/xm-i386v4.h: Delete file.
2399 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
2400 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
2401 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
2402 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
2403
6f009c8a
AC
2404 * config/vax/xm-vax.h: Delete file.
2405 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
2406 * config/vax/xm-vaxult2.h: Delete file.
2407 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
2408 * config/vax/vaxult2.mh (XM_FILE): Delete.
2409 * config/vax/xm-vaxult.h: Delete file.
2410 * config/vax/vaxult.mh (XM_FILE): Delete.
2411 * config/vax/xm-vaxbsd.h: Delete file.
2412 * config/vax/vaxbsd.mh (XM_FILE): Delete.
2413
9c8dbfa9
AC
2414 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
2415 * gdbarch.h, gdbarch.c: Re-generate.
2416 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
2417 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
2418 * frame.h: Delete deprecated_read_fp from comments.
2419 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
2420 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
2421
84367a3e
MK
24222004-08-04 Mark Kettenis <kettenis@gnu.org>
2423
9c8e3411
MK
2424 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
2425 trampoline in OpenBSD 3.5-current.
2426
b87bc0d8
MK
2427 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
2428 SSE registers.
2429
84367a3e
MK
2430 * Makefile.in: Remove embedded page breaks.
2431
a44bddec
JB
24322004-08-04 Jim Blandy <jimb@redhat.com>
2433
7ab3286f
JB
2434 * regcache.c (regcache_raw_read): Assert that, after calling
2435 target_fetch_registers, the register we're reading is cached.
2436
a44bddec
JB
2437 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
2438 a call to 'internal_error', with a more helpful error message.
2439 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 2440 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 2441
35124113
AC
24422004-08-04 Andrew Cagney <cagney@gnu.org>
2443
2444 * Makefile.in: Update dependencies.
2445
9f643768
JB
24462004-08-04 Jim Blandy <jimb@redhat.com>
2447
6ced10dd
JB
2448 Change the layout of the PowerPC E500 raw register cache to allow
2449 the lower 32-bit halves of the GPRS to be their own raw registers,
2450 not pseudoregisters.
2451 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
2452 add ppc_ev0_upper_regnum flag.
2453 * rs6000-tdep.c: #include "reggroups.h".
2454 (spe_register_p): Recognize the ev upper half registers as SPE
2455 registers.
2456 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
2457 registers.
2458 (e500_move_ev_register): New function.
2459 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
2460 vector registers are the pseudo-registers now, formed by splicing
2461 together the gprs and the upper-half registers.
2462 (e500_register_reggroup_p): New function.
2463 (P): Macro deleted.
2464 (P8, A4): New macro.
2465 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
2466 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
2467 macros.
2468 (registers_e500): Rearrange register set so that the raw register
2469 set contains 32-bit GPRs and upper-half registers, and the SPE
2470 vector registers become pseudo-registers.
2471 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
2472 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
2473 register numbers are now the same for the E500 as they are for
2474 other PowerPC variants. Register e500_register_reggroup_p as the
2475 register group function for the E500.
2476 * Makefile.in (rs6000-tdep.o): Update dependencies.
2477
2478 Adapt PPC E500 native support to the new raw regcache layout.
2479 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
2480 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
2481 (fetch_spe_register, store_spe_register): Handle fetching/storing
2482 all the SPE registers at once, if regno == -1. These now take
2483 over the job of fetch_spe_registers and store_spe_registers.
2484 (fetch_spe_registers, store_spe_registers): Deleted.
2485 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
2486 unconditionally; they're always raw. Fetch/store SPE upper half
2487 registers, if present, instead of ev registers.
2488 (fetch_register, store_register): Remove sanity checks: gprs are
2489 never pseudo-registers now, so we never need to even mention any
2490 registers that are ever pseudoregisters.
2491
9f643768
JB
2492 Use a fixed register numbering when communicating with the PowerPC
2493 simulator.
2494 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
2495 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
2496 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
2497 New functions.
2498 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
2499 init_sim_regno_table.
2500 * Makefile.in (gdb_sim_ppc_h): New variable.
2501 (rs6000-tdep.o): Update dependencies.
2502
1e2279c8
AC
25032004-08-02 Andrew Cagney <cagney@gnu.org>
2504
1d94326f
AC
2505 * cris-tdep.c (cris_register_size): Restore function, still used
2506 locally.
2507
331ae7ed
AC
2508 * gdbarch.sh (deprecated_target_read_fp)
2509 (deprecated_frame_locals_address, deprecated_frame_args_address)
2510 (deprecated_frame_chain_valid, deprecated_frame_chain)
2511 (deprecated_init_extra_frame_info, deprecated_pop_frame)
2512 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
2513 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
2514 * gdbarch.h, gdbarch.c: Re-generate.
2515 * regcache.c (deprecated_read_fp): Do not call
2516 DEPRECATED_TARGET_READ_FP_P.
2517 * infcmd.c (default_print_registers_info): Do not call
2518 DEPRECATED_DO_REGISTERS_INFO.
2519 * frame-base.c (default_frame_locals_address): Do not call
2520 DEPRECATED_FRAME_LOCALS_ADDRESS.
2521 (default_frame_args_address): Do not call
2522 DEPRECATED_FRAME_ARGS_ADDRESS.
2523
1e2279c8
AC
2524 * gdbarch.sh (deprecated_register_raw_size)
2525 (deprecated_register_virtual_size:int): Delete.
2526 * gdbarch.h, gdbarch.c: Re-generate.
2527 * cris-tdep.c (cris_register_size): Delete.
2528 (cris_gdbarch_init): Update.
2529 * alpha-tdep.c (alpha_register_raw_size)
2530 (alpha_register_virtual_size): Delete.
2531 (alpha_gdbarch_init): Update.
2532
a90c06b4
AC
2533 * gdbarch.sh (deprecated_register_virtual_type)
2534 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
2535 (deprecated_dummy_write_sp): Delete.
2536 * gdbarch.h, gdbarch.c: Re-generate.
2537
f42accbe
AC
2538 * gdbarch.sh (deprecated_register_bytes): Delete.
2539 * gdbarch.h, gdbarch.c: Re-generate.
2540 * regcache.c (deprecated_register_bytes): New function.
2541 * regcache.h (deprecated_register_bytes): Declare.
2542 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2543 * v850-tdep.c (v850_gdbarch_init): Update.
2544 * sh64-tdep.c (sh64_gdbarch_init): Update.
2545 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
2546 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2547 * mcore-tdep.c (mcore_gdbarch_init): Update.
2548 * cris-tdep.c (cris_gdbarch_init): Update.
2549 * arm-tdep.c (arm_gdbarch_init): Update.
2550 * remote.c (init_remote_state): Update.
2551 * remote-vx.c (vx_prepare_to_store): Update.
2552 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
2553 * irix5-nat.c (fetch_core_registers): Update.
2554 * cris-tdep.c (cris_register_bytes_ok): Update.
2555 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
2556
45c9dd44
AC
2557 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
2558 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
2559 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
2560 (mips_insn16_frame_base_address, mips_insn16_frame_base)
2561 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
2562 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
2563 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
2564 (mips_insn32_frame_base_address, mips_insn32_frame_base)
2565 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
2566 with mips_insn16 and mips_insn32.
2567
3acba339
AC
2568 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
2569 * rs6000-tdep.c (rs6000_push_dummy_call)
2570 (rs6000_extract_return_value): Use register_size.
2571 * xstormy16-tdep.c (xstormy16_get_saved_register)
2572 (xstormy16_extract_return_value): Ditto.
2573 * valops.c (value_assign): Ditto.
2574 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
2575 * v850-tdep.c (v850_extract_return_value): Ditto.
2576 * tracepoint.c (collect_symbol): Ditto.
2577 * target.c (debug_print_register): Ditto.
2578 * stack.c (frame_info): Ditto.
2579 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
2580 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
2581 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
2582 (store_register_using_P): Ditto.
2583 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
2584 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
2585 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
2586 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
2587 * regcache.c (deprecated_read_register_bytes)
2588 (deprecated_write_register_bytes, read_register)
2589 (write_register): Ditto.
2590 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
2591 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
2592 * monitor.c (monitor_supply_register, monitor_fetch_register)
2593 (monitor_store_register): Ditto.
2594 * mn10300-tdep.c (mn10300_pop_frame_regular)
2595 (mn10300_print_register): Ditto.
2596 * mipsv4-nat.c (fill_fpregset): Ditto.
2597 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
2598 (mips64_fill_fpregset): Ditto.
2599 * mi/mi-main.c (register_changed_p, get_register)
2600 (mi_cmd_data_write_register_values): Ditto.
2601 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
2602 * irix5-nat.c (fill_gregset, fetch_core_registers):
2603 * infrun.c (write_inferior_status_register): Ditto.
2604 * infptrace.c (fetch_register, store_register): Ditto.
2605 * infcmd.c (default_print_registers_info): Ditto.
2606 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
2607 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
2608 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
2609 * hpux-thread.c (hpux_thread_fetch_registers)
2610 (hpux_thread_store_registers): Ditto.
2611 * hppah-nat.c (store_inferior_registers, fetch_register):
2612 * findvar.c (value_from_register): Ditto.
2613 * dve3900-rom.c (fetch_bitmapped_register):
2614 * cris-tdep.c (cris_gdbarch_init): Ditto.
2615 * alpha-tdep.h: Ditto.
2616 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
2617
01e1877c
AC
2618 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
2619 DEPRECATED_REGISTER_RAW_SIZE from comments.
2620 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
2621 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
2622 DEPRECATED_REGISTER_RAW_SIZE.
2623 * findvar.c (value_of_register): Simplify by assuming that the
2624 registers raw and virtual sizes are identical.
2625 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
2626 comment.
2627 * arch-utils.c (generic_register_size): Simplify by assuming
2628 register_type.
2629
73f458fb
AC
2630 * regcache.c (legacy_read_register_gen, real_register)
2631 (legacy_write_register_gen): Delete, not used.
2632
336a3131
AC
2633 * regcache.c (struct regcache_descr): Delete legacy_p.
2634 (init_legacy_regcache_descr): Delete function.
2635 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
2636 Do not use deprecated register functions.
2637 (regcache_raw_read, deprecated_write_register_gen):
2638 (deprecated_read_register_gen, regcache_raw_write): Delete code
2639 predicated on legacy_p.
2640 (register_size): Delete check against register raw size.
2641
c1d546cd
AC
2642 * cris-tdep.c (cris_register_type): Replace
2643 cris_register_virtual_type.
2644 (cris_gdbarch_init): Update, set register_type.
2645
48c2c0a6
AC
2646 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
2647 * gdbarch.h, gdbarch.c: Re-generate.
2648 * arm-tdep.c (arm_frameless_function_invocation): Delete.
2649 (arm_gdbarch_init) Do not set frameless function invocation.
2650 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
2651 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
2652 * frv-tdep.c (frv_frameless_function_invocation): Delete.
2653 (frv_gdbarch_init): Do not set frameless function invocation.
2654 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
2655 * sh-tdep.c (sh_gdbarch_init): Ditto.
2656 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
2657 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2658 * avr-tdep.c (avr_gdbarch_init): Ditto.
2659
474093a6
AC
2660 * blockframe.c (legacy_frame_chain_valid): Delete function.
2661
3c109c8b
AC
2662 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
2663 and pc. Update comments.
2664 (pc_in_dummy_frame): Delete function.
2665 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
2666 use the "id".
2667 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
2668 call_hi, top and pc, use the id.
2669 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
2670
96860204
AC
2671 * dummy-frame.c: Include "gdb_string.h".
2672 (generic_save_call_dummy_addr, generic_push_dummy_frame)
2673 (generic_save_dummy_frame_tos): Delete.
2674 (dummy_frame_push): New function, replaces above.
2675 * dummy-frame.h: Update copyright.
2676 (dummy_frame_push): Declare.
2677 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
2678 (generic_save_call_dummy_addr): Delete declarations.
2679 * infcall.c: Include "dummy-frame.h".
2680 (call_function_by_hand): Add locals caller_regcache,
2681 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
2682 with call to frame_save_as_regcache plus cleanup. Delete calls to
2683 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
2684 Move clear_proceed_status to just before the resume, add call to
2685 dummy_frame_push (discard cleanup).
2686 * Makefile.in (infcall.o): Add $(dummy_frame_h).
2687 (dummy-frame.o): Add $(gdb_string_h).
2688
d67ec5db
AC
26892004-08-01 Andrew Cagney <cagney@gnu.org>
2690
2691 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
2692 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
2693 * dummy-frame.c (find_dummy_frame): Delete.
2694 (struct dummy_frame_cache, dummy_frame_sniffer)
2695 (dummy_frame_prev_register, dummy_frame_this_id)
2696 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
2697 frame unwinder using a dummy_frame_cache.
2698
a81dcb05
AC
26992004-08-01 Andrew Cagney <cagney@gnu.org>
2700
2701 * frame.h (frame_save_as_regcache): Declare.
2702 * frame.c (frame_save_as_regcache): New function.
2703 (do_frame_read_register): Replace do_frame_unwind_register.
2704 (frame_pop): Use frame_save_as_regcache.
2705 * dummy-frame.c (generic_push_dummy_frame): Use
2706 frame_save_as_regcache.
2707
aa495d11
JB
27082004-08-01 Joel Brobecker <brobecker@gnat.com>
2709
2710 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
2711 file as included until we record the first line in the linetable.
2712
ff65ac78
AC
27132004-08-01 Andrew Cagney <cagney@gnu.org>
2714
2715 * frame.h (deprecated_pop_dummy_frame)
2716 (deprecated_read_register_dummy)
2717 (deprecated_generic_find_dummy_frame): Delete.
2718 * dummy-frame.c (deprecated_generic_find_dummy_frame)
2719 (deprecated_read_register_dummy)
2720 (deprecated_find_dummy_frame_regcache)
2721 (discard_innermost_dummy)
2722 (deprecated_pop_dummy_frame): Delete.
2723 (dummy_frame_this_id): Simplify.
2724 (struct dummy_frame): Delete "fp" and "sp".
2725 (find_dummy_frame): Simplify.
2726 (generic_push_dummy_frame): Do not set "fp" or "sp".
2727 (fprint_dummy_frames): Do not print "fp" and "sp"
2728
37bdc87e
MK
27292004-08-01 Mark Kettenis <kettenis@gnu.org>
2730
2731 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
2732 (struct i386_insn): New structure.
2733 (i386_match_insn): New function.
2734 (i386_frame_setup_skip_insns): New variable.
2735 (i386_analyze_frame_setup): Change to use i386_match_insn and the
2736 array i386_frame_setup_insns of instructions that should be
2737 skipped inside the frame setup sequence.
2738
8241eaa6
AC
27392004-08-01 Andrew Cagney <cagney@gnu.org>
2740
5bc602c7
AC
2741 * frame.h (deprecated_frame_xmalloc_with_cleanup)
2742 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2743 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2744 * stack.c (frame_info): Delete references to
2745 DEPRECATED_FRAME_INIT_SAVED_REGS and
2746 deprecated_get_frame_saved_regs.
2747 * frame.c (struct frame_info): Delete saved_regs and extra_info.
2748 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
2749 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
2750 (frame_unwind_register_signed)
2751 (frame_unwind_register_unsigned)
2752 (frame_unwind_unsigned_register): Use register_size.
2753 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
2754 (deprecated_frame_xmalloc_with_cleanup)
2755 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2756 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2757
03d363a1
AC
2758 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
2759 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
2760 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
2761 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
2762
8241eaa6
AC
2763 * infcall.c (call_function_by_hand): Do not use
2764 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
2765 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
2766 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
2767 DEPRECATED_STACK_ALIGN.
2768
f00df8b7
AC
27692004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
2770
2771 Committed by Andrew Cagney.
2772 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
2773
eec63939
AC
27742004-08-01 Andrew Cagney <cagney@gnu.org>
2775
2776 * mips-tdep.c (mips16_frame_cache)
2777 (mips16_frame_this_id, mips16_frame_prev_register)
2778 (mips16_frame_unwind, mips16_frame_sniffer)
2779 (mips16_frame_base_address, mips16_frame_base)
2780 (mips16_frame_base_sniffer, mips32_frame_cache)
2781 (mips32_frame_this_id, mips32_frame_prev_register)
2782 (mips32_frame_unwind, mips32_frame_sniffer)
2783 (mips32_frame_base_address, mips32_frame_base)
2784 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
2785 separate heuristic mips16 and mips32 unwinders.
2786 (mips_stub_frame_cache, mips_stub_frame_this_id)
2787 (mips_stub_frame_prev_register)
2788 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
2789 (mips_stub_frame_base_address, mips_stub_frame_base)
2790 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
2791 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
2792 match true mdebug frames.
2793 (non_heuristic_proc_desc): Add forward declaration.
2794
e66299b3
AC
27952004-08-01 Andrew Cagney <cagney@gnu.org>
2796
83cbbf3e
AC
2797 * config/mips/tm-irix6.h: Delete file.
2798 * config/mips/tm-irix5.h: Delete file.
2799 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
2800 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
2801
22d41b37
AC
2802 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
2803 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
2804 * config/nm-gnu.h (NO_CORE_OPS): Delete.
2805 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
2806 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
2807 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
2808 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
2809 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
2810 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
2811 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
2812 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
2813 (TARGET_SIGNAL_RAW_VALUES): Delete.
2814 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
2815 Delete.
2816 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
2817 (TARGET_HW_WATCH_LIMIT): Delete.
2818 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
2819 * minimon.h: Delete file.
2820
e66299b3
AC
2821 * trad-frame.c (trad_frame_get_this_base)
2822 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
2823 functions.
2824 * trad-frame.h (trad_frame_set_this_base)
2825 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
2826
1f67027d
AC
28272004-07-31 Andrew Cagney <cagney@gnu.org>
2828
2829 * trad-frame.c (trad_frame_get_prev_register): Rename
2830 trad_frame_get_prev_register.
2831 * vax-tdep.c (vax_frame_prev_register): Update.
2832 * trad-frame.h: Update.
2833 * trad-frame.c (trad_frame_get_register): Update.
2834 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
2835 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
2836 Update.
2837 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
2838 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
2839 Update.
2840 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
2841 Update.
2842 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
2843 Update.
2844 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
2845 Update.
2846 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
2847 Update.
2848 * s390-tdep.c (s390_frame_prev_register)
2849 (s390_stub_frame_prev_register)
2850 (s390_sigtramp_frame_prev_register): Update.
2851 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
2852 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
2853 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
2854 * m88k-tdep.c (m88k_frame_prev_register)
2855 * m68hc11-tdep.c (m68hc11_frame_prev_register)
2856 * m32r-tdep.c (m32r_frame_prev_register): Update.
2857 * hppa-tdep.c (hppa_frame_prev_register_helper)
2858 * frv-tdep.c (frv_frame_prev_register): Update.
2859 * d10v-tdep.c (d10v_frame_prev_register): Update.
2860 * cris-tdep.c (cris_frame_prev_register): Update.
2861 * avr-tdep.c (avr_frame_prev_register): Update.
2862 * arm-tdep.c (arm_prologue_prev_register)
2863 (arm_sigtramp_prev_register): Update.
2864
c1bf6f65
AC
28652004-07-31 Andrew Cagney <cagney@gnu.org>
2866
2867 * frame.h (legacy_saved_regs_unwind)
2868 (legacy_frame_chain_valid, legacy_frame_p)
2869 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
2870 * dummy-frame.c (dummy_frame_this_id): Simplify.
2871 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
2872 * frame.c (struct frame_info): Delete the field "type".
2873 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
2874 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
2875 (legacy_saved_regs_unwind, legacy_frame_p)
2876 (frame_type_from_pc): Delete.
2877 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
2878 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
2879
dc856692
MK
28802004-07-31 Mark Kettenis <kettenis@gnu.org>
2881
5a5effe1
MK
2882 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
2883 indentation.
2884
d4fd50a6
MK
2885 * mips-nat.c: Remove file.
2886 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
2887 (mips-nat.o): Remove dependency.
2888
2689df5a
MK
2889 * infptrace.c: Update copyright year.
2890 (fetch_register): Pass NULL in regcache_raw_supply call instead of
2891 explicitly setting the buffer to all zeroes.
2892
dc856692
MK
2893 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
2894 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
2895
763910e0
AC
28962004-07-30 Andrew Cagney <cagney@gnu.org>
2897
2898 * GDB 6.2 released from gdb_6_2-branch.
2899
0b66e38c
EZ
29002004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
2901
2902 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
2903
2904 * exec.c (exec_file_attach):
2905 * nto-tdep.c (nto_find_and_open_solib):
2906 * pa64solib.c (pa64_solib_sizeof_symbol_table):
2907 * solib.c (solib_open):
2908 * somsolib.c (som_solib_sizeof_symbol_table):
2909 * source.c (is_regular_file, openp, open_source_file):
2910 * symfile.c (symfile_bfd_open):
2911 * wince.c (upload_to_device): Differentiate between the search for
2912 binary and source files.
2913
be7d7357
AC
29142004-07-30 Andrew Cagney <cagney@gnu.org>
2915
2916 * complaints.c (_initialize_complaints): Pass NULL to
2917 add_setshow_zinteger_cmd for help_doc.
2918 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
2919
ddc9cd0f
AC
29202004-07-30 Andrew Cagney <cagney@gnu.org>
2921
2922 Fix PR i18n/761.
2923 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
2924 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
2925 $(PACKAGE).pot and update-po.
2926 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
2927 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
2928 (update-po): New rules.
2929 (localedir): Define using autoconf.
2930 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
2931 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
2932 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
2933 * configure.in: Generate CATALOGS and LINGUAS from contents of
2934 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
2935 * configure: Re-generate.
2936 * po/gdbtext: New file
2937
e92f3704
JG
29382004-07-30 Jerome Guitton <guitton@gnat.com>
2939
2940 * MAINTAINERS: Reorder Write After Approval list in alphabetical
2941 order.
2942
b0f35d58
DL
29432004-07-30 David Lecomber <dsl@sources.redhat.com>
2944
2945 * dwarf2read.c (read_file_scope): Set producer if attribute
2946 present.
2947 (struct dwarf2_cu): Added new member producer.
2948
ce7d4522
JG
29492004-07-30 Jerome Guitton <guitton@gnat.com>
2950
2951 * inflow.c (kill_command): release file handles in BFD.
2952 * exec.c (exec_file_attach): Ditto.
2953 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
2954
05ee07c7
AC
29552004-07-29 Andrew Cagney <cagney@gnu.org>
2956
2957 * PROBLEMS (mips-irix): Note that it is broken.
2958
62eceb47
AC
29592004-07-29 Andrew Cagney <cagney@gnu.org>
2960
e57b8d41
AC
2961 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
2962 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
2963
d334389b
AC
2964 * config/xm-nbsd.h: Delete file.
2965 * config/arm/xm-nbsd.h: Delete file.
2966 * config/i386/xm-nbsd.h: Delete file.
2967 * config/ns32k/xm-nbsd.h: Delete file.
2968 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
2969 * config/i386/nbsdelf.mh (XM_FILE): Delete.
2970 * config/i386/nbsdaout.mh (XM_FILE): Delete.
2971 * config/arm/nbsdelf.mh (XM_FILE): Delete.
2972 * config/arm/nbsdaout.mh (XM_FILE): Delete.
2973
e910f676
AC
2974 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
2975 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
2976 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
2977 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
2978 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
2979 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
2980
6fa856b9
AC
2981 * config/powerpc/xm-linux.h: Delete empty file.
2982 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
2983 * config/powerpc/linux.mh (XM_FILE): Delete.
2984 * config/m68k/xm-linux.h: Delete empty file.
2985 * config/m68k/linux.mh (XM_FILE): Delete.
2986 * config/ia64/xm-linux.h: Delete empty file.
2987 * config/ia64/linux.mh (XM_FILE): Delete.
2988 * config/arm/xm-linux.h: Delete empty file.
2989 * config/arm/linux.mh (XM_FILE): Delete.
2990
471ae5ae
AC
2991 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2992 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
2993 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2994 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
2995 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2996 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
2997 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
2998 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
2999
62eceb47
AC
3000 * config/m68k/xm-m68k.h: Delete file.
3001 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
3002 copyright.
3003 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
3004 * config/pa/xm-linux.h: Delete empty file.
3005 * config/pa/linux.mh (XM_FILE): Delete.
3006 * config/i386/xm-i386.h: Delete empty file.
3007 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
3008 "i386/xm-i386.h".
3009 * config/i386/obsdaout.mh (XM_FILE): Delete.
3010 * config/i386/obsd64.mh (XM_FILE): Delete.
3011 * config/i386/fbsd64.mh (XM_FILE): Delete.
3012 * config/i386/nto.mh (XM_FILE): Delete.
3013 * config/i386/obsd.mh (XM_FILE): Delete.
3014 * config/i386/linux64.mh (XM_FILE): Delete.
3015 * config/i386/linux.mh (XM_FILE): Delete.
3016 * config/i386/i386sol2.mh (XM_FILE): Delete.
3017 * config/i386/i386gnu.mh (XM_FILE): Delete.
3018 * config/i386/fbsd.mh (XM_FILE): Delete.
3019 * config/i386/nbsd64.mh (XM_FILE): Delete.
3020
c35f4ffc
AC
30212004-07-29 Andrew Cagney <cagney@gnu.org>
3022
3023 * config/pa/xm-linux.h: Do not include "floatformat.h".
3024 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3025 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3026 * config/i386/xm-i386.h: Do not include "floatformat.h".
3027 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3028 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3029 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3030 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
3031 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
3032 GDB_HOST_LONG_DOUBLE_FORMAT instead.
3033 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
3034 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
3035 * configure, config.in: Regenerate.
3036 * configure.host (gdb_host_float_format, gdb_host_double_format)
3037 (gdb_host_long_double_format): Set according to the host.
3038
624a44a3
AC
30392004-07-29 Andrew Cagney <cagney@gnu.org>
3040
3041 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
3042
0dea2468
AC
30432004-07-28 Andrew Cagney <cagney@gnu.org>
3044
3045 * PROBLEMS: Mention threads/1650.
3046 * NEWS: Mention the NPTL fix.
3047
b3f42336
AC
30482004-07-28 Andrew Cagney <cagney@gnu.org>
3049
3050 * cli/cli-decode.c (add_setshow_cmd): Delete function.
3051 (add_setshow_cmd_full): Make static.
3052 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
3053 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
3054 * cli/cli-decode.c (add_setshow_filename_cmd)
3055 (add_setshow_string_cmd): New functions.
3056 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
3057 * mips-tdep.c (_initialize_mips_tdep): Update.
3058 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
3059 * cli/cli-logging.c (_initialize_cli_logging): Update.
3060 * complaints.c (_initialize_complaints): Update.
3061 * remote.c (_initialize_remote): Update.
3062
3b64bf98
AC
30632004-07-28 Andrew Cagney <cagney@gnu.org>
3064
3065 * cli/cli-decode.c (add_setshow_zinteger_cmd)
3066 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
3067 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
3068 print parameters. Make string parameters constant.
3069 * command.h: Update. Update copyright.
3070 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
3071 * observer.c (_initialize_observer): Ditto.
3072 * frame.c (_initialize_frame): Ditto.
3073 * complaints.c (_initialize_complaints): Ditto.
3074 * maint.c (_initialize_maint_cmds): Ditto.
3075 * target.c (initialize_targets): Ditto.
3076 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
3077 * infcall.c (_initialize_infcall): Ditto.
3078 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3079 * m32r-rom.c (_initialize_m32r_rom): Ditto.
3080 * remote-rdi.c (_initialize_remote_rdi): Ditto.
3081 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
3082 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3083
e9667a65
AC
30842004-07-28 Andrew Cagney <cagney@gnu.org>
3085
54a5b07d
AC
3086 * gdbtypes.c (lookup_primitive_typename): Delete function.
3087 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
3088 * ada-lex.l: Use language_lookup_primitive_type_by_name.
3089 * gdbtypes.c (lookup_typename): Ditto.
3090 * f-exp.y (yylex): Ditto.
3091 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
3092
e9667a65
AC
3093 * scm-lang.c (c_builtin_types): Delete extern declaration.
3094 (scm_language_defn): Replace
3095 string_char_type and primitive_type_vector with
3096 la_language_arch_info.
3097 * jv-lang.c (java_language_defn): Replace
3098 string_char_type and primitive_type_vector with
3099 la_language_arch_info.
3100 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
3101 c_builtin_types in comment.
3102 * c-lang.h (struct language_arch_info): Declare opaque.
3103 (c_language_arch_info): Declare.
3104 (c_builtin_types): Delete declaration.
3105 * c-lang.c (c_language_arch_info): Set string_char_type to
3106 builtin_char, not builtin_true_char. Make global.
3107 (c_builtin_types): Delete array.
3108 (asm_language_defn, minimal_language_defn): Replace
3109 string_char_type and primitive_type_vector with
3110 la_language_arch_info.
3111
685419e2
AC
31122004-07-28 Andrew Cagney <cagney@gnu.org>
3113
3114 * gdbtypes.h (struct builtin_type): Rename true_char to
3115 builtin_true_char.
3116 * gdbtypes.c (gdbtypes_post_init): Update.
3117 * c-lang.c (arch_info): New function.
3118 (enum c_primitive_types): New enum.
3119 (c_language_defn): Instead of string_char_type and
3120 primitive_type_vector set la_language_arch_info.
3121
5a44ea29
AC
31222004-07-28 Andrew Cagney <cagney@gnu.org>
3123
3124 * language.h (struct language_arch_info): Fix typo
3125 s/primative/primitive/.
3126 * gdbtypes.c (lookup_primitive_typename): Ditto.
3127 * language.c (language_lookup_primitive_type_by_name)
3128 (unknown_language_arch_info): Ditto.
3129
f290d38e
AC
31302004-07-27 Andrew Cagney <cagney@gnu.org>
3131
3132 * defs.h (enum language): Add nr_languages.
3133 * language.h (struct language_arch_info): Define.
3134 (struct language_defn): Add la_language_arch_info.
3135 (language_lookup_primative_type_by_name): Declare.
3136 (language_string_char_type): Declare.
3137 * language.c (_initialize_language, language_gdbarch_post_init)
3138 (struct language_gdbarch, language_gdbarch_data): Implement
3139 per-architecture language information.
3140 (unknown_language_arch_info, language_string_char_type)
3141 (language_lookup_primative_type_by_name): New functions.
3142 (unknown_language_defn, auto_language_defn)
3143 (local_language_defn): Set la_language_arch_info to
3144 unknown_language_arch_info.
3145 (unknown_builtin_types): Delete.
3146 * gdbtypes.c (lookup_primitive_typename): Use
3147 language_lookup_primative_type_by_name.
3148 (create_string_type): Use language_string_char_type.
3149 * values.c (value_from_string): Use language_string_char_type.
3150 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
3151 * p-lang.c (pascal_language_defn): Ditto.
3152 * m2-lang.c (m2_language_defn): Ditto.
3153 * jv-lang.c (java_language_defn): Ditto.
3154 * objc-lang.c (objc_language_defn): Ditto.
3155 * f-lang.c (f_language_defn): Ditto.
3156 * c-lang.c (c_language_defn, cplus_language_defn)
3157 (asm_language_defn, minimal_language_defn): Ditto.
3158
000177f0
AC
31592004-07-27 Andrew Cagney <cagney@gnu.org>
3160
3161 * gdbtypes.h (struct builtin_type): Declare.
3162 (builtin_type): Declare.
3163 * d10v-tdep.c (d10v_register_type): Use builtin_type.
3164 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
3165 (gdbtypes_post_init): New function.
3166 (builtin_type): New function.
3167
e22f895c
KI
31682004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
3169
3170 * remote-m32r-sdi.c: Fix breakpoint bug.
3171 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
3172 recv_char_data, recv_long_data): New functions to replace communication
3173 sequences.
3174
536517dd
MC
31752004-07-26 Michael Chastain <mec.gnu@mindspring.com>
3176
3177 Document PR threads/1650.
3178 * PROBLEMS (Threads): Document problem with many threads
3179
a0a44d18
AC
31802004-07-26 Andrew Cagney <cagney@gnu.org>
3181
3182 * gdb-mi.el: Move from here ...
3183 * mi/gdb-mi.el: ... to here.
3184
7ac4ac06
AC
31852004-07-26 Andrew Cagney <cagney@gnu.org>
3186
3187 Problem reported by Ashley Pittman <ashley@quadrics.com>.
3188 * main.c (captured_main): When in batch mode always detach.
3189
a1b461bf
AC
31902004-07-26 Andrew Cagney <cagney@gnu.org>
3191
3192 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
3193 and h8300 as broken.
3194 * NEWS: END-OF-LIFE frame compatibility module.
3195 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
3196 specific comments.
3197
cb1a6d5f
AC
31982004-07-26 Andrew Cagney <cagney@gnu.org>
3199
3200 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
3201 * xcoffsolib.c (_initialize_xcoffsolib): Update.
3202 * wince.c (_initialize_wince): Update.
3203 * win32-nat.c (_initialize_win32_nat): Update.
3204 * varobj.c (_initialize_varobj): Update.
3205 * valops.c (_initialize_valops): Update.
3206 * utils.c (initialize_utils, initialize_utils): Update.
3207 * tui/tui-win.c (_initialize_tui_win): Update.
3208 * top.c (init_main): Update.
3209 * symfile.c (_initialize_symfile): Update.
3210 * source.c (_initialize_source): Update.
3211 * somsolib.c (_initialize_som_solib): Update.
3212 * solib.c (_initialize_solib): Update.
3213 * solib-frv.c (_initialize_frv_solib): Update.
3214 * serial.c (_initialize_serial): Update.
3215 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
3216 * remote.c (_initialize_remote, _initialize_remote): Update.
3217 * remote-vx.c (_initialize_vx): Update.
3218 * remote-utils.c (_initialize_sr_support): Update.
3219 * remote-sds.c (_initialize_remote_sds): Update.
3220 * remote-mips.c (_initialize_remote_mips): Update.
3221 * remote-e7000.c (_initialize_remote_e7000): Update.
3222 * proc-api.c (_initialize_proc_api): Update.
3223 * printcmd.c: Update.
3224 * parse.c (_initialize_parse): Update.
3225 * pa64solib.c (_initialize_pa64_solib): Update.
3226 * p-valprint.c (_initialize_pascal_valprint): Update.
3227 * monitor.c (_initialize_remote_monitors): Update.
3228 * mips-tdep.c (_initialize_mips_tdep): Update.
3229 * mcore-tdep.c (_initialize_mcore_tdep): Update.
3230 * maint.c (_initialize_maint_cmds): Update.
3231 * lin-lwp.c (_initialize_lin_lwp): Update.
3232 * language.c (_initialize_language): Update.
3233 * kod.c (_initialize_kod): Update.
3234 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
3235 * i386-tdep.c (_initialize_i386_tdep): Update.
3236 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
3237 * gdbarch.sh: Update.
3238 * gdbarch.c: Re-generate.
3239 * gdb-events.sh: Update.
3240 * gdb-events.c: Re-generate.
3241 * frame.c (_initialize_frame): Update.
3242 * exec.c: Update.
3243 * demangle.c (_initialize_demangler): Update.
3244 * dcache.c (_initialize_dcache): Update.
3245 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
3246 * cp-valprint.c (_initialize_cp_valprint): Update.
3247 * corefile.c (_initialize_core): Update.
3248 * command.h: Update.
3249 * cli/cli-decode.h: Update.
3250 * cli/cli-cmds.c (init_cli_cmds): Update.
3251 * charset.c (_initialize_charset): Update.
3252 * breakpoint.c (_initialize_breakpoint): Update.
3253 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
3254 * alpha-tdep.c (_initialize_alpha_tdep): Update.
3255 * aix-thread.c (_initialize_aix_thread): Update.
3256
b4632131
MK
32572004-07-24 Mark Kettenis <kettenis@gnu.org>
3258
3259 Partial fix for PR backtrace/1718.
3260 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
3261 that GCC migrates into the prolugue. Don't handle any
3262 instructions that clobber %ebx.
3263
822c9732
AC
32642004-07-23 Andrew Cagney <cagney@gnu.org>
3265
3266 Use regcache_raw_collect instead of regcache_collect.
3267 * regcache.h (regcache_collect): Delete declaration.
3268 * regcache.c (regcache_colect): Delete function.
3269 * win32-nat.c (do_child_store_inferior_registers): Update.
3270 * sol-thread.c (sol_thread_store_registers): Update.
3271 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
3272 * rs6000-nat.c (store_register): Update.
3273 * remote.c (store_register_using_P, remote_store_registers): Update.
3274 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
3275 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
3276 (fill_vrregset, store_spe_registers, fill_gregset)
3277 (fill_gregset): Update.
3278 * nto-procfs.c (procfs_store_registers): Update.
3279 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
3280 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
3281 * m68klinux-nat.c (store_register, fill_gregset): Update.
3282 * m68k-tdep.c (fill_gregset): Update.
3283 * infptrace.c (store_register): Update.
3284 * i386-nto-tdep.c (i386nto_regset_fill): Update.
3285 * i386-linux-nat.c (store_register, fill_gregset): Update.
3286 * hppa-linux-nat.c (fill_gregset): Update.
3287 * go32-nat.c (store_register): Update.
3288 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
3289 (store_fp_regs): Update.
3290 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
3291 (store_nwfpe_extended, store_fpregister, store_fpregs)
3292 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
3293 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
3294 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
3295 (store_regs_user_thread, store_regs_kernel_thread): Update.
3296
32b05c07
MK
32972004-07-24 Mark Kettenis <kettenis@gnu.org>
3298
3299 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
3300 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
3301 encoding.
3302 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
3303 member of `struct comp_unit'.
3304
8567c30f
AC
33052004-07-23 Andrew Cagney <cagney@gnu.org>
3306
3307 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
3308 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
3309
f6da8dd8
MH
33102004-07-23 Martin Hunt <hunt@redhat.com>
3311 Kevin Buettner <kevinb@redhat.com>
3312
3313 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
3314 alignment was being added to the offset instead of multiplied.
3315
bd921882
MK
33162004-07-23 Mark Kettenis <kettenis@gnu.org>
3317
24f033e8
MK
3318 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
3319 changed signal trampoline in OpenBSD 3.5-current.
3320
90f3cecd
MK
3321 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
3322 <machine/pcb.h> and "bsd-kvm.h".
3323 (sparc64nbsd_supply_pcb): New function.
3324 (_initialize_sparc64nbsd_nat): Renamed from
3325 _initialize_sparcnbsd_nat. Enable libkvm interface.
3326 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
3327 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
3328 (LOADLIBES): New variable.
3329
a4954a62
MK
3330 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
3331
bd921882
MK
3332 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
3333
23a6d369
AC
33342004-07-21 Andrew Cagney <cagney@gnu.org>
3335
3336 Use regcache_raw_supply instead of supply_register.
3337 * regcache.h (supply_register): Delete declaration.
3338 * regcache.c (supply_register): Delete function.
3339 * wince.c (do_child_fetch_inferior_registers): Update.
3340 * win32-nat.c (do_child_fetch_inferior_registers)
3341 (fetch_elf_core_registers): Update.
3342 * v850ice.c (v850ice_fetch_registers): Update.
3343 * thread-db.c (thread_db_store_registers): Update.
3344 * sol-thread.c (sol_thread_store_registers): Update.
3345 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
3346 * rs6000-nat.c (fetch_register): Update.
3347 * rom68k-rom.c (rom68k_supply_one_register): Update.
3348 * remote.c (remote_wait, remote_async_wait): Update.
3349 * remote-st.c (get_hex_regs): Update.
3350 * remote-sim.c (gdbsim_fetch_register): Update.
3351 * remote-sds.c (sds_fetch_registers): Update.
3352 * remote-rdp.c (remote_rdp_fetch_register): Update.
3353 * remote-rdi.c (arm_rdi_fetch_registers): Update.
3354 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
3355 * remote-m32r-sdi.c (m32r_fetch_register): Update.
3356 * remote-hms.c (init_hms_cmds): Update.
3357 * remote-est.c (init_est_cmds): Update.
3358 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
3359 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
3360 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
3361 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
3362 (fetch_register, supply_vrregset, supply_vrregset)
3363 (fetch_spe_registers): Update.
3364 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
3365 * monitor.c (monitor_supply_register): Update.
3366 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
3367 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
3368 (mipsnbsd_supply_fpreg): Update.
3369 * mips-nat.c (fetch_inferior_registers)
3370 (fetch_core_registers): Update.
3371 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
3372 (supply_fpregset, mips64_supply_gregset)
3373 (mips64_supply_fpregset): Update.
3374 * m68klinux-nat.c (fetch_register, supply_gregset)
3375 (supply_fpregset): Update.
3376 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
3377 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
3378 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
3379 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
3380 * infptrace.c (fetch_register): Update.
3381 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
3382 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
3383 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
3384 (gnu_fetch_registers, gnu_store_registers): Update.
3385 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
3386 * i386-linux-nat.c (fetch_register, supply_gregset)
3387 (dummy_sse_values): Update.
3388 * hpux-thread.c (hpux_thread_fetch_registers): Update.
3389 * hppah-nat.c (fetch_register): Update.
3390 * hppa-linux-nat.c (fetch_register, supply_gregset)
3391 (supply_fpregset): Update.
3392 * go32-nat.c (fetch_register): Update.
3393 * dve3900-rom.c (fetch_bitmapped_register)
3394 (_initialize_r3900_rom): Update.
3395 * cris-tdep.c (supply_gregset): Update.
3396 * abug-rom.c (init_abug_cmds): Update.
3397 * core-aout.c (fetch_core_registers): Update.
3398 * armnbsd-nat.c (supply_gregset, supply_fparegset)
3399 (fetch_register, fetch_fp_register): Update.
3400 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
3401 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
3402 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
3403 * alphanbsd-tdep.c (fetch_core_registers): Update.
3404 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
3405 * alpha-nat.c (fetch_osf_core_registers)
3406 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
3407 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
3408 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
3409
73cc75f3
AC
34102004-07-21 Andrew Cagney <cagney@gnu.org>
3411
3412 * PROBLEMS: Mention breakpoints/1702.
3413 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
3414 that is known to work.
3415
a53c66de
AC
34162004-07-21 Andrew Cagney <cagney@gnu.org>
3417
3418 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
3419 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
3420 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
3421 (handle_inferior_event): Wrap call to deprecated
3422 IGNORE_HELPER_CALL in #ifdef.
3423 * config/mips/tm-nbsd.h: Update.
3424
708ff411
JB
34252004-07-20 Jim Blandy <jimb@redhat.com>
3426
412b3060
JB
3427 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
3428 bfd_mach_ppc has no segment registers.
3429
13ac140c
JB
3430 Include PowerPC SPR numbers for special-purpose registers.
3431 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
3432 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
3433 new member in initializer.
3434 (S, S4, SN4, S64): New macros for defining special-purpose
3435 registers.
3436 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
3437 registers_403, registers_403GC, registers_505, registers_860,
3438 registers_601, registers_602, registers_603, registers_604,
3439 registers_750, registers_e500): Use them.
3440
708ff411
JB
3441 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
3442 replace references with expression used to initialize variable.
3443
1f602b35
AC
34442004-07-20 Andrew Cagney <cagney@gnu.org>
3445
3446 * breakpoint.c (deprecated_read_memory_nobpt): Rename
3447 read_memory_nobpt.
3448 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
3449 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
3450 (s390_sigtramp_frame_sniffer): Update.
3451 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
3452 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
3453 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
3454 (mips32_fetch_instruction): Update.
3455 * mcore-tdep.c (get_insn): Update.
3456 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
3457 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
3458 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
3459 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3460 (i386_linux_rt_sigtramp_start): Update.
3461 * i386-linux-nat.c (child_resume): Update.
3462 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
3463 * hppa-linux-tdep.c (insns_match_pattern): Update.
3464 * gdbcore.h: Update.
3465 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
3466 * frame.c (safe_frame_unwind_memory): Update.
3467 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
3468 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
3469 * alpha-tdep.c (alpha_read_insn): Update.
3470
2cd8546d
AC
34712004-07-20 Andrew Cagney <cagney@gnu.org>
3472
3473 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
3474 containing both bytes and mask. Add "frame_type".
3475 * tramp-frame.c (tramp_frame_start): Update.
3476 (tramp_frame_prepend_unwinder): Update.
3477 * mips-linux-tdep.c (mips_linux_o32_sigframe)
3478 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
3479 (mips_linux_n64_rt_sigframe): Update. Make "static const".
3480 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
3481
f928dd62
EZ
34822004-07-19 Eli Zaretskii <eliz@gnu.org>
3483
3484 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
3485 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
3486 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
3487 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
3488
d5c560f7
AC
34892004-07-17 Andrew Cagney <cagney@gnu.org>
3490
860660cb
AC
3491 * NEWS, PROBLEMS: Update for 6.2.
3492
8c266f54
AC
3493 * README: Update to 6.2.
3494
a552edd9
AC
3495 * utils.c (xvasprintf): Call xstrvprintf.
3496
c4a172b5
AC
3497 * parse.c: Update copyright.
3498 (null_post_parser): Eliminate ARGSUSED.
3499
da745b36
AC
3500 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
3501 * tui/tui-win.c (tui_get_cmd_list): Ditto.
3502 * symfile-mem.c (_initialize_symfile_mem): Ditto.
3503
9cbc6ef0
AC
3504 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
3505 * ppc-linux-nat.c: Use "Linux kernel".
3506 * hppa-linux-tdep.c: Use GNU/Linux.
3507 * hppa-linux-nat.c: Use GNU/Linux.
3508 * dwarfread.c: Add [sic] to use of Linux.
3509
1b89295f
AC
3510 * hppa-linux-nat.c: Do not include <string.h>.
3511 (supply_fpregset): Remove "register" attribute.
3512
d5c560f7
AC
3513 * solib-frv.c (fetch_loadmap): Use xfree, not free.
3514
7ddd7709
MK
35152004-07-17 Mark Kettenis <kettenis@gnu.org>
3516
b1d19a62
MK
3517 * configure.in: Define _MSE_INT_H on Solaris 9 too.
3518 * configure, config.in: Regenerated.
3519
7ddd7709
MK
3520 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
3521 "bsd-kvm.h".
3522 (vaxbsd_supply_pcb): New function.
3523 (_initialize_vaxbsd_nat): New prototype and function.
3524 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
3525 solib-sunos.o.
3526 (LOADLIBES): New variable.
3527 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3528 (LOADLIBES): New variable.
3529 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3530 (LOADLIBES): New variable.
3531 * Makefile.in (vaxbsd-nat.o): Update dependencies.
3532
2c07db7a
AC
35332004-07-16 Andrew Cagney <cagney@gnu.org>
3534
3535 * defs.h (event_loop_p): Replace variable declaration with macro,
3536 always 1.
3537 * main.c (captured_main): Delete options "-async" and "-noasync".
3538 (event_loop_p): Delete variable.
3539 * NEWS: Mention that "-async" and "-noasync" were removed.
3540
717eb1cf
AC
35412004-07-16 Andrew Cagney <cagney@gnu.org>
3542
3543 * remote-m32r-sdi.c: Re-indent.
3544
c101bc14
JB
35452004-07-16 Jim Blandy <jimb@redhat.com>
3546
5109a438
JB
3547 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
3548 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
3549 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
3550 missing MPC823 SPRs.
3551 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
3552 incorrect. (This was corrected in GDB's register name tables on
3553 2004-07-14.)
3554
c101bc14
JB
3555 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
3556 should be "esasrr" ("ESA Save and Restore Register").
3557
7ce450bd
AC
35582004-07-16 Andrew Cagney <cagney@gnu.org>
3559
3560 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
3561 calls, no longer applicable. Update comments and rename parameter
3562 "step_frame" to "return_frame".
3563
ca73dd9d
AC
35642004-07-16 Andrew Cagney <cagney@gnu.org>
3565
3566 * frame.c (fprint_field): New function.
3567 (fprint_frame_id): Use fprint_field.
3568
31941f6d
JB
35692004-07-15 Joel Brobecker <brobecker@gnat.com>
3570
3571 * ada-lang.c (ada_language_defn): Remove commented out code.
3572
f86a7158
JB
35732004-07-15 Jim Blandy <jimb@redhat.com>
3574
3575 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
3576 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
3577
c24791ec
JB
35782004-07-14 Jim Blandy <jimb@redhat.com>
3579
29bb1356
JB
3580 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
3581
cc98b5cc
JB
3582 * ppc-tdep.h (ppc_num_vrs): New enum constant.
3583
8f088af7
JB
3584 * ppc-tdep.h (ppc_num_srs): New enum constant.
3585
0ea0ec5f
JB
3586 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
3587 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
3588 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
3589 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
3590 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
3591 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
3592 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
3593 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
3594 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
3595 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
3596 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
3597 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
3598 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
3599 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
3600 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
3601 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
3602 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
3603 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
3604 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
3605 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
3606 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
3607 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
3608 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
3609 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
3610 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
3611 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
3612 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
3613 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
3614 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
3615 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
3616 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
3617 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
3618 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
3619 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
3620 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
3621 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
3622 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
3623 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
3624 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
3625 special-purpose register numbers.
3626
c24791ec
JB
3627 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
3628 manual mentions 'md_twb', but many mention 'm_twb', and at that
3629 point in the register list.)
3630
d833db3b
AC
36312004-07-14 Andrew Cagney <cagney@gnu.org>
3632
3633 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
3634 instead of "internal-error".
3635
080228b2
JB
36362004-07-10 Joel Brobecker <brobecker@gnat.com>
3637
3638 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
3639 that was inserted inside a comment.
3640
c268433a
RC
36412004-07-10 Randolph Chung <tausq@debian.org>
3642
3643 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
3644 function.
3645 (hppa_hpux_push_dummy_code): New function.
3646 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
3647 Set find_global_pointer method.
3648
71009278
MK
36492004-07-10 Mark Kettenis <kettenis@gnu.org>
3650
3651 * NEWS: Mention BSD libkvm interface.
3652
b2fa5097
MS
36532004-07-10 Michael Snyder <msnyder@redhat.com>
3654
3655 * symfile.c (generic_load): Comment typo.
3656 * stack.c (get_selected_block): Ditto.
3657 * regcache.c (regcache_cooked_read): Ditto.
3658 * monitor.c (monitor_debug): Ditto.
3659 * mips-tdep.c (mips_read_pc): Ditto.
3660 * i386-linux-nat.c (ps_get_thread_area): Ditto.
3661 * gdb_mbuild.sh: Ditto.
3662 * gdbarch.sh: Ditto.
3663 * gdbarch.h: Ditto.
3664
c3e5cd34
PH
36652004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
3666
8a2225b2
PH
3667 * ada-tasks.c: Remove file.
3668
c3e5cd34
PH
3669 Remove ARI problems:
3670
3671 * ada-exp.y (write_var_from_sym): Reformat to put operator at
3672 beginning of line.
3673
3674 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
3675 Add comment.
3676 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
3677 (MIN_OF_SIZE): Rename min_of_size. Add comment.
3678 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
3679 (UMIN_OF_SIZE): Remove.
3680 (max_of_type): New function to replace orphan macro in gdbtypes.h
3681 (min_of_type): Ditto.
3682 (discrete_type_high_bound): Use max_of_type.
3683 (discrete_type_low_bound): Use min_of_type.
3684 (possible_user_operator_p): Move operator to beginning of line.
3685 (ada_is_variant_part): Ditto.
3686 (ensure_lval): Rewrite to avoid deprecated operations.
3687 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
3688 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
3689 (ada_enum_name): Remove assignments in 'if' statements.
3690 (build_ada_types): Add gdbarch parameter.
3691 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
3692 with gdbarch_data_register_post_init.
3693 Use add_setshow_uinteger_cmd rather than add_set_cmd and
3694 add_show_from_set.
3695
3696 * ada-valprint.c (inspect_it): Remove declaration.
3697 (repeat_count_threshold): Remove declaration.
3698 (ada_print_floating): Remove assignments in 'if' statements.
3699 (print_str): Move operator to beginning of line.
3700
61ce229a
JB
37012004-07-08 Jim Blandy <jimb@redhat.com>
3702
3703 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
3704
09bcec80
BR
37052004-07-08 Bob Rossi <bob@brasko.net>
3706
3707 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
3708
31c27f77
JJ
37092004-07-06 Jeff Johnston <jjohnstn@redhat.com>
3710
3711 * language.h (struct_language_defn): Add new function pointer:
3712 la_class_name_from_physname. Also add new prototype for
3713 language_class_name_from_physname.
3714 * language.c (language_class_name_from_physname): New function.
3715 (unk_lang_class_name): Ditto.
3716 (unknown_language_defn, auto_language_defn): Change
3717 to add unk_lang_class_name function pointer for
3718 la_class_name_from_physname.
3719 (local_language_defn): Ditto.
3720 * dwarf2read.c (guess_structure_name): Change to call
3721 language_class_name_from_physname.
3722 (determine_class_name): Ditto.
3723 * cp-support.c (class_name_from_physname): Renamed.
3724 (cp_class_name_from_physname): New name of function.
3725 * cp-support.h: Ditto.
3726 * c-lang.c (c_language_defn): Change to add NULL
3727 for class_name_from_physname function pointer.
3728 (cplus_language_defn): Change to add cp_class_name_from_physname.
3729 * jv-lang.c (java_class_name_physname): New function.
3730 (java_find_last_component): New static routine.
3731 (java_language_defn): Add java_class_name_from_physname pointer.
3732 * ada-lang.c (ada_language_defn): Change to add NULL
3733 for class_name_from_physname function pointer.
3734 * f-lang.c (f_language_defn): Ditto.
3735 * m2-lang.c (m2_language_defn): Ditto.
3736 * objc-lang.c (objc_language_defn): Ditto.
3737 * p-lang.c (pascal_language_defn): Ditto.
3738 * scm-lang.c (scm_language_defn): Ditto.
3739
ee28ca0f
AC
37402004-07-06 Andrew Cagney <cagney@gnu.org>
3741
3742 Patch from Bart Robinson.
3743 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
3744 (O_LARGEFILE): Define to 0, if not defined.
3745
fdb1bf9d
MK
37462004-07-03 Mark Kettenis <kettenis@gnu.org>
3747
cb162ff6
MK
3748 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
3749 <machine/pcb.h> and "bsd-kvm.h".
3750 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
3751 (m68kbsd_supply_pcb): New function.
3752 (_initialize_m68kbsd_nat): New prototype and function.
3753 * Makefile.in (m68kbsd-nat.o): Update dependencies.
3754 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3755 (LOADLIBES): New variable.
3756 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3757 (LOADLIBES): New variable.
3758
fdb1bf9d
MK
3759 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
3760
963c4174
MK
37612004-07-03 Mark Kettenis <kettenis@gnu.org>
3762
3763 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
3764 <sys/proc.h>.
3765 (bsd_kvm_cmdlist): New variable.
3766 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
3767 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
3768 command and "kvm proc" command.
3769 * Makefile.in (bsd-kvm.o): Update dependencies.
3770
533f1d8f
MK
37712004-07-02 Mark Kettenis <kettenis@gnu.org>
3772
3773 * osabi.c: Update copyright year.
3774 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
3775 notes if EI_OSABI is set to ELFOSABI_HPUX.
3776
6780dcde
MS
37772004-07-01 Michael Snyder <msnyder@redhat.com>
3778
3779 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
3780 that seems to have gotten whacked out of line.
3781
67bebe79
MK
37822004-07-01 Mark Kettenis <kettenis@gnu.org>
3783
3784 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
3785 code.
3786
0b5d8877
PH
37872004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3788
3789 * ada-lang.c (decode_packed_array): Minor change to comment.
3790 (ada_value_slice_ptr): New function.
3791 (ada_value_slice): New function.
3792 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
3793 test. Don't know why it is there.
3794 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
3795 to avoid dereferencing huge arrays from which one is slicing.
3796 (empty_array): Correct to return an array rather than
3797 a subrange value.
3798 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
3799 on empty arrays (let'em use 'FIRST instead).
3800
19c1ef65
PH
38012004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3802
3803 Address complaints from gdb_ari.sh:
3804
3805 * ada-exp.y: Include gdb_string.h rather than string.h.
3806 (convert_char_literal): Reformat declaration.
3807 * ada-lang.h: Include opaque struct declaration for struct frame_info.
3808 * ada-lex.l: Change use of free to xfree (the macro would do so
3809 anyway, but this is harmless).
3810 Include gdb_string.h rather than string.h.
3811 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
3812
3813 * ada-lang.c (parse): Remove K&Rism in parameter list.
3814 (is_name_suffix): Correct Linux => GNU/Linux in comment.
3815
d81cbc94
MK
38162004-06-30 Mark Kettenis <kettenis@gnu.org>
3817
3818 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
3819 dead code.
3820
07681759
MK
38212004-06-30 Mark Kettenis <kettenis@gnu.org>
3822
3823 * alphabsd-nat.c: Update copyright year.
3824 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
3825
f7948b5f
JB
38262004-06-29 Joel Brobecker <brobecker@gnat.com>
3827
6e0cdd28 3828 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
3829 (i386_cygwin_in_solib_call_trampoline): New function.
3830 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
3831 and skip_trampoline_code gdbarch methods.
3832
8f113c9a
JB
38332004-06-29 Jim Blandy <jimb@redhat.com>
3834
3835 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
3836 name actually used in the dependency lists.
3837
97dc871c
RC
38382004-06-29 Randolph Chung <tausq@debian.org>
3839
3840 * NEWS (New native configurations): Mention GNU/Linux/hppa.
3841
47216e51
CV
38422004-06-29 Corinna Vinschen <vinschen@redhat.com>
3843
3844 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 3845 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
3846 functionality.
3847
e623b504
AC
38482004-06-28 Andrew Cagney <cagney@gnu.org>
3849
3850 * defs.h (xstrvprintf): Declare.
3851 * utils.c (xstrvprintf): New function.
3852 (internal_vproblem, xstrprintf, xasprintf)
3853 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
3854 * serial.c (serial_printf): Ditto.
3855 * complaints.c (vcomplaint): Ditto.
3856
79acc9b3
CV
38572004-06-29 Corinna Vinschen <vinschen@redhat.com>
3858
3859 * infcmd.c (attach_command): Move call to target_terminal_inferior
3860 behind loading symbol table.
3861
1daf35d9
AC
38622004-06-28 Andrew Cagney <cagney@gnu.org>
3863
3864 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
3865 change - add back extern deprecated_ui_loop_hook declaration.
3866
b435e160
AC
38672004-06-28 Andrew Cagney <cagney@gnu.org>
3868
3869 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
3870 xstrprintf.
3871 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
3872 (c_value_of_variable): Ditto.
3873 * utils.c (internal_vproblem): Ditto.
3874 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
3875 * remote.c (add_packet_config_cmd): Ditto.
3876 * remote-rdp.c (rdp_set_command_line): Ditto.
3877 * regcache.c (regcache_dump): Ditto.
3878 * frv-tdep.c (new_variant, new_variant): Ditto.
3879 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
3880 (fbsd_find_memory_regions): Ditto.
3881 * breakpoint.c (create_thread_event_breakpoint)
3882 (create_breakpoints): Ditto.
3883 * aix-thread.c (aix_thread_pid_to_str): Ditto.
3884 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
3885
06d5cf63
JB
38862004-06-28 Joel Brobecker <brobecker@gnat.com>
3887
3888 * ada-lang.c: Re-indent file, with some massaging to help indent
3889 a bit when the result is otherwise really too ugly.
3890
35809fad
UW
38912004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3892
3893 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
3894 code_addr_p and special_addr_p to 'unsigned int'.
3895
40e20472
MK
38962004-06-27 Mark Kettenis <kettenis@gnu.org>
3897
3898 * i386v4-nat.c: Update copyright year and tweak comment.
3899 (regmap): Remove trailing comma.
3900 (supply_gregset): Rename local variable i to regnum. Call
3901 regcache_raw_supply instead of supply_register.
3902 (fill_gregset): Rename argument regno to regnum. Call
3903 regcache_raw_collect instead of regcache_collect.
3904
12b0b6de
UW
39052004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3906
3907 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
3908 and special_addr_p.
3909 (frame_id_build, frame_id_build_special): Update comments.
3910 (frame_id_build_wild): New prototype.
3911 * frame.c (frame_id_build, frame_id_build_special): Fill in new
3912 struct frame_id fields.
3913 (frame_id_build_wild): New function.
3914 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
3915
47b42a3e
MK
39162004-06-27 Mark Kettenis <kettenis@gnu.org>
3917
3918 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
3919 hppabsd-tdep.c.
3920
1265e4aa
JB
39212004-06-27 Joel Brobecker <brobecker@gnat.com>
3922
3923 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
3924
76a01679
JB
39252004-06-27 Joel Brobecker <brobecker@gnat.com>
3926
3927 * ada-lang.c: Re-indent file.
3928
7aca490a
JB
39292004-06-27 Joel Brobecker <brobecker@gnat.com>
3930
3931 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
3932 (no_symtab_msg): Likewise.
3933
5e987968
AS
39342004-06-27 Andreas Schwab <schwab@suse.de>
3935
3936 * source.c: Fix whitespace.
3937
315c4276
MK
39382004-06-27 Mark Kettenis <kettenis@gnu.org>
3939
d15be926
MK
3940 * configure.in: Include <sys/param.h> for td_pcb test.
3941 * configure: Regenerated.
3942
9062529b
MK
3943 * i386nbsd-nat.c: New file.
3944 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
3945 i386obsd-nat.c and i386obsd-tdep.c.
3946 (i386nbsd-nat.o): New dependency.
3947 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
3948 bsd-kvm.o.
3949 (LOADLIBES): New variable.
3950 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
3951 bsd-kvm.o.
3952 (LOADLIBES): New variable.
3953
8010310e
MK
3954 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
3955 (LOADLIBES): New variable.
3956
efe1d7b9
MK
3957 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
3958 fetching from BSD_KVM_PADDR. Correctly lookup address for
3959 "_thread0".
3960
315c4276
MK
3961 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
3962 "bsd-kvm.h".
3963 (amd64fbsd_supply_pcb): New funcion.
3964 (_initialize_amd64fbsd_nat): Enable libkvm interface.
3965
399cfac6
DL
39662004-06-27 <david@streamline-computing.com>
3967
3968 Partial fix for PR cli/1056.
3969 * valarith.c: Check for zero in division and remainder
3970 evaluation.
3971
6235f9c8
MK
39722004-06-27 Mark Kettenis <kettenis@gnu.org>
3973
3974 * i387-tdep.c: Remove excessive whitespace.
3975
2726dafc
AC
39762004-06-26 Andrew Cagney <cagney@gnu.org>
3977
3978 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
3979 * gdb-events.h, gdb-events.c: Re-generate.
3980 * tui/tui-hooks.c (tui_install_hooks): Update.
3981 (tui_remove_hooks): Update.
3982 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
3983
0e56aeaf
MK
39842004-06-26 Mark Kettenis <kettenis@gnu.org>
3985
cb461069
MK
3986 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
3987 (gregset_t, fpregset_t): Remove typedefs.
3988 (REG_OFFSET): Rename argument.
3989 (amd64bsd_r_reg_offset): Rename from reg_offset.
3990 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
3991 Remove functions.
3992 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
3993 of reg_offset.
3994 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
3995
ecba89de
MK
3996 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
3997
4cd80476
MK
3998 * vax-tdep.c: Tweak comment.
3999
0e56aeaf
MK
4000 Add OpenBSD/hppa support.
4001 * NEWS (New native configurations): Mention OpenBSD/hppa.
4002 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
4003 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
4004 files.
4005 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
4006 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
4007 * configure.host: Add hppa*-*-openbsd*.
4008 * configure.tgt: Add hppa*-*-openbsd*.
4009
98bbd631
AC
40102004-06-25 Andrew Cagney <cagney@gnu.org>
4011
4012 * defs.h (deprecated_ui_loop_hook): Deprecated.
4013 * wince.c (child_wait): Update.
4014 * win32-nat.c (child_wait): Update.
4015 * v850ice.c (v850ice_wait): Update.
4016 * top.c (deprecated_ui_loop_hook): Update.
4017 * serial.h: Update.
4018 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
4019 (do_unix_readchar): Update.
4020 * ser-tcp.c (net_open): Update.
4021 * remote-sim.c (gdb_os_poll_quit): Update.
4022 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
4023
769d7dc4
AC
40242004-06-24 Andrew Cagney <cagney@gnu.org>
4025
4026 * defs.h (deprecated_pre_add_symbol_hook)
4027 (deprecated_post_add_symbol_hook): Deprecated.
4028 * symfile.c (symbol_file_add_with_addrs_or_offsets)
4029 (symbol_file_add_with_addrs_or_offsets): Update references.
4030
11c949aa
AC
40312004-06-24 Andrew Cagney <cagney@gnu.org>
4032
4033 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
4034 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
4035 * wince.c (ui_loop_hook): Delete extern declaration.
4036 * win32-nat.c (ui_loop_hook): Delete extern declaration..
4037 * v850ice.c (ui_loop_hook): Delete extern declaration..
4038 * ser-unix.c (ui_loop_hook): Delete extern declaration..
4039 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
4040 * remote-sim.c (ui_loop_hook): Delete extern declaration..
4041 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
4042 ui_loop_hook declaration.
4043
eedc19af
AC
40442004-06-24 Andrew Cagney <cagney@gnu.org>
4045
4046 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
4047 entry_func_highpc fields.
4048 * objfiles.c (init_entry_point_info): Do not clear
4049 entry_func_lowpc and entry_func_highpc.
4050 (objfile_relocate): Do not relocate entry_func_lowpc and
4051 entry_func_highpc.
4052 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
4053 entry_func_highpc.
4054 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
4055 entry_func_highpc.
4056 * blockframe.c (legacy_frame_chain_valid): Replace tests against
4057 entry_func_lowpc and entry_func_highpc with call to
4058 inside_entry_func.
4059
d47079be
MK
40602004-06-24 Mark Kettenis <kettenis@gnu.org>
4061
4062 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
4063 quad-precision floating point arguments in registers.
4064
2107e348
MK
40652004-06-24 Mark Kettenis <kettenis@gnu.org>
4066
4067 From Michael Mueller <m.mueller99@kay-mueller.de>:
4068 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
4069 account.
4070
46587c42
JJ
40712004-06-22 Jeff Johnston <jjohnstn@redhat.com>
4072
4073 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
4074 to -1.
4075 * breakpoint.c (bpstat_stop_status): Move check for ignoring
4076 untriggered watchpoints to a separate if clause. Update function
4077 comment regarding STOPPED_BY_WATCHPOINT argument.
4078
226f5cf4
JB
40792004-06-22 Jim Blandy <jimb@redhat.com>
4080
4081 * gdbarch.sh: Doc fix.
4082
f10683bb
MH
40832004-06-21 Martin Hunt <hunt@redhat.com>
4084 Kevin Buettner <kevinb@redhat.com>
4085
4086 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
4087 * mips-tdep.h (MIPS_SP_REGNUM): Define.
4088 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
4089 to set_gdbarch_sp_regnum(). Use cooked register number.
4090 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
4091
412d5987
AC
40922004-06-21 Andrew Cagney <cagney@gnu.org>
4093
4094 * gdbarch.sh: When the macro field is empty, do not generate a
4095 macro definition. When the macro field is "=", generate the macro
4096 name from the upper-case function name.
4097 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
4098 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
4099 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
4100 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
4101 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
4102 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
4103 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
4104 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
4105 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
4106 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
4107 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
4108 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
4109 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
4110 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
4111 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
4112 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
4113 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
4114 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
4115 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
4116 (DEPRECATED_USE_STRUCT_CONVENTION)
4117 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4118 (DEPRECATED_FRAME_INIT_SAVED_REGS)
4119 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
4120 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
4121 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
4122 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
4123 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
4124 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
4125 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
4126 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
4127 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
4128 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
4129 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
4130 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
4131 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
4132 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
4133 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
4134 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
4135
68908a3e
AC
41362004-06-21 Andrew Cagney <cagney@gnu.org>
4137
48f7351b
AC
4138 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
4139 macro name, and the function rather than macro value. Only wrap
4140 macro print statements in #ifdef. Move format logic to where it
4141 is needed.
4142 * gdbarch.c: Re-generate.
4143
283354d8
AC
4144 * gdbarch.sh (read): Delete "print_p" and "description", add
4145 "garbage_at_eol". Check for non-empty garbage at end-of-line.
4146 Delete references to print_p.
4147 (TARGET_ARCHITECTURE): Delete print predicate.
4148 * gdbarch.c: Re-generate.
4149
68908a3e
AC
4150 * gdbarch.sh: Check that multi-arch methods do not provide a
4151 macro.
4152 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
4153 (print_registers_info, print_float_info, print_vector_info)
4154 (adjust_breakpoint_address, remote_translate_xfer_address)
4155 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
4156 (address_class_type_flags_to_name, unwind_sp): Remove the macro
4157 name from the multi-arch definition.
4158
a2428dbe
AC
41592004-06-20 Andrew Cagney <cagney@gnu.org>
4160
4161 * gdbarch.sh: Sort by the function, instead of macro name.
4162 * gdbarch.c: Re-generate.
4163
750eb019
AC
41642004-06-20 Andrew Cagney <cagney@gnu.org>
4165
66d659b1
AC
4166 * gdbarch.sh: Use the function, instead of macro name in
4167 errors and the log file.
4168 (return_value): Remove stray ":" in spec.
4169
750eb019
AC
4170 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
4171 * gdbarch.h, gdbarch.c: Re-generate.
4172 * Makefile.in (arch-utils.o): Update dependencies.
4173 * values.c (using_struct_return): Move code calling
4174 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
4175 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
4176 to legacy_return_value, simplify.
4177 * infcmd.c (print_return_value): Move code calling
4178 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
4179 to legacy_return_value, simplify.
4180 * infcall.c (call_function_by_hand): Move code calling
4181 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
4182 * arch-utils.c: Update copyright. Include "gdbcore.h".
4183 (legacy_return_value): New function.
4184 * arch-utils.h: Update copyright.
4185 (legacy_return_value): Declare.
4186
b5622e8d
AC
41872004-06-20 Andrew Cagney <cagney@gnu.org>
4188
4189 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
4190 * gdbarch.h, gdbarch.c: Re-generate.
4191 * values.c (using_struct_return): Update call.
4192 * mcore-tdep.c: Update comment.
4193 * infcall.c (call_function_by_hand): Update comment.
4194 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4195 * arch-utils.h (always_use_struct_convention): Update.
4196 * v850-tdep.c (v850_gdbarch_init): Update.
4197 * sh64-tdep.c (sh64_gdbarch_init): Update.
4198 * sh-tdep.c (sh_gdbarch_init): Update.
4199 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4200 * mips-tdep.c (mips_gdbarch_init): Update.
4201 * mcore-tdep.c (mcore_gdbarch_init): Update.
4202 * m32r-tdep.c (m32r_gdbarch_init): Update.
4203 * ia64-tdep.c (ia64_gdbarch_init): Update.
4204 * h8300-tdep.c (h8300_gdbarch_init): Update.
4205 * frv-tdep.c (frv_gdbarch_init): Update.
4206 * cris-tdep.c (cris_gdbarch_init): Update.
4207 * arm-tdep.c (arm_gdbarch_init): Update.
4208 * alpha-tdep.c (alpha_gdbarch_init): Update.
4209
5191de37
MC
42102004-06-18 Michael Chastain <mec.gnu@mindspring.com>
4211
4212 * PROBLEMS: Add more specific information, and a work-around,
4213 for PR gdb/1458.
4214
782263ab
AC
42152004-06-18 Andrew Cagney <cagney@gnu.org>
4216
4217 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
4218 * gdbarch.h, gdbarch.c: Re-generate.
4219 * ada-lang.c (ada_finish_decode_line_1): Update.
4220 * infrun.c (handle_inferior_event): Update.
4221 * infcall.c (find_function_addr): Update.
4222 * linespec.c (minsym_found): Update.
4223 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
4224 Update.
4225 * blockframe.c (legacy_frameless_look_for_prologue): Update.
4226 * cli/cli-cmds.c (disassemble_command): Update.
4227 * vax-tdep.c (vax_gdbarch_init): Update.
4228
2f305df1
MK
42292004-06-18 Mark Kettenis <kettenis@gnu.org>
4230
4231 * i386-tdep.c (i386_collect_fpregset): Fix comment.
4232
e5fe55f7
AC
42332004-06-17 Andrew Cagney <cagney@gnu.org>
4234
4235 GDB 6.1.1 released from the GDB 6.1 branch.
4236 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
4237 * PROBLEMS: Ditto.
4238
473b7be6
DJ
42392004-06-16 Daniel Jacobowitz <dan@debian.org>
4240
4241 PR gdb/1658
4242 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
4243 operation as a uleb128. Found by Michael Coulter.
4244
96d887e8
PH
42452004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
4246
4247 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
4248 make it non-static.
4249 * ada-lang.h (task_control_block): declaration moved from ada-task.c
4250 to ada-lang.h; this is needed to be able to implement the kill command
4251 in multi-task mode.
4252 (task_ptid): Ditto.
4253 (task_entry): Ditto.
4254 (task_list): Ditto.
4255 (ada_build_task_list): Ditto.
4256
4257 * ada-lang.c: Conditionalize routines and data structures related
4258 to breakpoints, exceptions, completion, and symbol caching on
4259 GNAT_GDB, since these are not yet used in the submitted public sources.
4260 (ada_main_name): Editorial: Move definition out of exception-related
4261 code.
4262
31eef181
AC
42632004-06-15 Andrew Cagney <cagney@gnu.org>
4264
4265 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
4266 deprecated_pc_in_call_dummy.
4267
2c500098
AM
42682004-06-15 Alan Modra <amodra@bigpond.net.au>
4269
4270 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
4271 bfd_get_section_size_before_reloc or _raw_size.
4272 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
4273 * dwarf2read.c (dwarf2_locate_sections): Likewise.
4274 (dwarf2_read_section): Likewise.
4275 * elfread.c (elf_locate_sections): Likewise.
4276 * gcore.c (derive_heap_segment): Likewise.
4277 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
4278 * remote-e7000.c (e7000_load): Likewise.
4279 * remote-m32r-sdi.c (m32r_load): Likewise.
4280 * remote-mips.c (mips_load_srec): Likewise.
4281 (pmon_load_fast): Likewise.
4282 * remote.c (compare_sections_command): Likewise.
4283 * symfile.c (add_section_size_callback): Likewise.
4284 (load_section_callback): Likewise.
4285 (pc_in_unmapped_range): Likewise.
4286 (pc_in_mapped_range): Likewise.
4287 (sections_overlap): Likewise.
4288 (list_overlays_command): Likewise.
4289 (simple_overlay_update_1): Likewise.
4290 (simple_overlay_update): Likewise.
4291 * tracepoint.c (remote_set_transparent_ranges): Likewise.
4292 * win32-nat.c (core_section_load_dll_symbols): Likewise.
4293
90f943f1
RC
42942004-06-14 Randolph Chung <tausq@debian.org>
4295
4296 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
4297 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
4298 static.
4299 (hppa_hpux_inferior_created): New function.
4300 (hppa_hpux_init_abi): Register observer.
4301 * symfile.c (hp_cxx_exception_support_initialized)
4302 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
4303 (symbol_file_add_main_1, symbol_file_clear): Likewise.
4304
700c15aa
RC
43052004-06-14 Randolph Chung <tausq@debian.org>
4306
3973a7d3
AC
4307 * MAINTAINERS (Write After Approval): Alphabetize my entry
4308 correctly.
700c15aa 4309
cea4838c
AC
43102004-06-14 Andrew Cagney <cagney@gnu.org>
4311
4312 * MAINTAINERS (testsuite): List Michael Chastain as the lead
4313 testsuite maintainer.
4314
97092415
AC
43152004-06-13 Andrew Cagney <cagney@gnu.org>
4316
e8c3165b
AC
4317 * infcmd.c (print_return_value): Fix logic, allow
4318 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
4319
bceabdd8
AC
4320 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
4321 defining any macros.
4322 * gdbarch.h: Re-generate.
4323
57010b1c
AC
4324 * gdbarch.sh: Delete "level" attribute. Only check for a macro
4325 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
4326 * gdbarch.h: Re-generate.
4327
bc87dfa0
AC
4328 * values.c (generic_use_struct_convention): Don't check gcc_p.
4329
15ac804d
AC
4330 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
4331 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
4332 * gdbarch.h, gdbarch.c: Regenerate.
4333 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
4334 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
4335 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4336 deprecated_max_register_raw_size and
4337 deprecated_max_register_virtual_size.
4338 * v850-tdep.c (v850_gdbarch_init): Ditto.
4339 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
4340 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4341 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4342 * cris-tdep.c (cris_gdbarch_init): Ditto.
4343
97092415
AC
4344 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
4345 * gdbarch.h, gdbarch.c: Re-generate.
4346 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
4347 (m68hc11_use_struct_convention): Delete function.
4348 (m68hc11_extract_struct_value_address): Delete function.
4349 (m68hc11_return_value): New function.
4350 (m68hc11_gdbarch_init): Instead of store_return_value,
4351 extract_return_value, return_value_on_stack,
4352 deprecated_extract_struct_value_address and use_struct_convention,
4353 set return_value.
4354 * values.c (using_struct_return): Do not call
4355 RETURN_VALUE_ON_STACK.
4356 * arch-utils.h (generic_return_value_on_stack_not): Delete
4357 declaration.
4358 * arch-utils.c (generic_return_value_on_stack_not): Delete
4359 function.
4360
44e5158b
AC
43612004-06-12 Andrew Cagney <cagney@gnu.org>
4362
4363 * values.c (register_value_being_returned): Delete function.
4364 * infcmd.c (legacy_return_value): Delete function.
4365 * infcall.c (call_function_by_hand): Inline
4366 "register_value_being_returned", simplify.
4367 * values.c (using_struct_return): Update comment, refer to
4368 print_return_value instead of register_value_being_returned.
4369 * infcmd.c (print_return_value): Inline calls to
4370 register_value_being_returned and legacy_return_value. Simplify.
4371
b887c273
RC
43722004-06-11 Randolph Chung <tausq@debian.org>
4373
4374 * somread.c (som_symtab_read): Exclude gcc local symbols.
4375
1b2bfbb9
RC
43762004-06-11 Randolph Chung <tausq@debian.org>
4377
3973a7d3
AC
4378 * infrun.c (handle_inferior_event): Handle the case when a
4379 trampoline ends up in the runtime resolver, and if the trampoline
4380 has no name. Rearrange the code so that all the trampoline
4381 processing happens before other step-out-of-range handling.
1b2bfbb9 4382
a9d61c86
MH
43832004-06-11 Martin Hunt <hunt@redhat.com>
4384
4385 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
4386 has no fpu.
4387
2c87cf5a
AC
43882004-06-10 Andrew Cagney <cagney@gnu.org>
4389
4390 * blockframe.c (legacy_inside_entry_func): Delete.
4391 (legacy_frame_chain_valid): Inline call to
4392 legacy_inside_entry_func, simplify.
4393
0b67b468 43942004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
4395
4396 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
4397 * dwarf2read.c (partial_die_info): Add dirname field.
4398 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
4399 (read_partial_die): Save away DW_AT_comp_dir.
4400 * defs.h (symtab_to_filename): Removed.
4401 * source.c (find_and_open_source): Added.
57c22c6c 4402 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
4403 (symtab_to_filename): Removed.
4404 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
4405 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
4406 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
4407 symtab_to_filename.
4408 * symtab.h (partial_symtab): Add dirname field.
4409 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
4410 (mi_cmd_file_list_exec_source_file): Call new function
4411 symtab_to_fullname to find fullname.
57c22c6c 4412 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 4413 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
4414 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
4415
9a1dd1ad
AC
44162004-06-10 Andrew Cagney <cagney@gnu.org>
4417
239ae8c7
AC
4418 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
4419 to generic_use_struct_convention, the default value.
4420
fc720350
AC
4421 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
4422 of abort.
4423
9a1dd1ad
AC
4424 * ns32k-tdep.c (ns32k_push_arguments): New function.
4425 (ns32k_gdbarch_init): Set deprecated_push_arguments.
4426 * infcall.c (call_function_by_hand): Call error instead of
4427 legacy_push_arguments.
4428 * value.h (legacy_push_arguments): Delete declaration.
4429 * valops.c (legacy_push_arguments): Delete function.
4430 (value_push): Delete function.
4431
fea25152
BF
44322004-06-10 Brian Ford <ford@vss.fsi.com>
4433
4434 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
4435 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
4436 info.
4437 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
4438
30a4a8e0
AC
44392004-06-10 Andrew Cagney <cagney@gnu.org>
4440
4441 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
4442 * gdbarch.h, gdbarch.c: Re-generate.
4443 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
4444 parameters.
4445 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
4446 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
4447 deprecated_pc_in_call_dummy instead of
4448 DEPRECATED_PC_IN_CALL_DUMMY.
4449 (arm_skip_prologue): Ditto.
4450 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
4451 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
4452 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
4453 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
4454 Ditto.
4455 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
4456 (sh64_init_extra_frame_info, sh64_get_saved_register)
4457 (sh64_pop_frame): Ditto.
4458 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
4459 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
4460 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
4461 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
4462 (h8300_pop_frame): Ditto.
4463 * blockframe.c (legacy_inside_entry_func)
4464 (legacy_frame_chain_valid): Ditto.
4465 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
4466 to deprecated_pc_in_call_dummy.
4467
81cfbe54
AC
44682004-06-09 Andrew Cagney <cagney@gnu.org>
4469
a1f4a1b6
AC
4470 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
4471 provide a default value.
4472 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
4473 * gdbarch.h, gdbarch.c: Re-generate.
4474 * arch-utils.c (generic_convert_register_p): Rename
4475 legacy_convert_register_p
4476 (legacy_register_to_value, legacy_value_to_register): Delete
4477 functions.
4478 * arch-utils.h (generic_convert_register_p): Rename
4479 legacy_convert_register_p.
4480 (legacy_register_to_value, legacy_value_to_register): Delete
4481 declarations.
4482
9730f241
AC
4483 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
4484 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
4485 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
4486 * gdbarch.h, gdbarch.c: Re-generate.
4487 * infcmd.c (default_print_registers_info): Simplify.
4488 * findvar.c (value_of_register): Simplify.
4489 * mi/mi-main.c (get_register): Simplify.
4490 * arch-utils.c (legacy_convert_register_p): Always return 0.
4491 (legacy_register_to_value, legacy_value_to_register): Always call
4492 internal_error.
4493
8a1bf479
AC
4494 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
4495 #ifdef CLEAR_INSN_CACHE code.
4496 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
4497 Delete #ifdef CLEAR_DEFERRED_STORES code.
4498
4b38d6f1
AC
4499 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
4500
2d62ecc7
AC
4501 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
4502 copyright.
4503 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
4504
be4f7469
AC
4505 * config/mips/mipsv4.mh: Delete file.
4506
81cfbe54
AC
4507 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
4508 unreferenced macro.
4509 (hpread_adjust_stack_address): Delete declaration.
4510
d966f0cb
AC
45112004-06-08 Andrew Cagney <cagney@gnu.org>
4512
4513 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4514 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
4515 PTRACE_ATTACH / PTRACE_DETACH available call error.
4516 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
4517 * infttrace.c (update_thread_state_after_attach, attach, detach):
4518 Remove #ifdef wrappers.
4519 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
4520 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4521 * config/nm-bsd.h (ATTACH_DETACH): Delete.
4522 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
4523 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
4524 * config/nm-linux.h (ATTACH_DETACH): Delete.
4525 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
4526 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
4527 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
4528 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
4529 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
4530
d91670b9
CV
45312004-06-08 Corinna Vinschen <vinschen@redhat.com>
4532
4533 * configure.in: Set $configdir to the right OS specific value.
4534 Use value when setting $tcldir and $tkdir.
4535 * configure: Regenerate.
4536
28ba0b33
PB
45372004-06-06 Paul Brook <paul@codesourcery.com>
4538
4539 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
4540 records.
4541
f26caa11
PH
45422004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
4543
4544 * ada-lang.c (lookup_symbol_in_language): New function to allow
4545 re-use of another language's symbol lookup code. (Placed here
4546 temporarily while Ada support is being integrated into the public
4547 tree).
4548 (restore_language): New auxiliary function for
4549 lookup_symbol_in_language.
4550 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
4551 temporarily while Ada support is being integrated into the public
4552 tree).
4553
d560a54b
AO
45542004-06-08 Alexandre Oliva <aoliva@redhat.com>
4555
e75d110c
AO
4556 * Makefile.in (check//%): New.
4557
d560a54b
AO
4558 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
4559 (mn10300_store_return_value): Rewrite.
4560 (mn10300_type_align): New.
4561 (mn10300_use_struct_convention): Rewrite.
4562 (mn10300_return_value): New, using all of the above.
4563 (mn10300_pop_frame_regular): Add saved_regs_size.
4564 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
4565
a72fbdb7
AO
4566 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
4567 regs if PC is on movm.
4568
01904826
JB
45692004-06-07 Jim Blandy <jimb@redhat.com>
4570
4571 Add native Linux support for the PowerPC E500.
4572 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
4573 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
4574 all architectures except the E500.
4575 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
4576 #definitions.
4577 (struct gdb_evrregset_t): New type.
4578 (have_ptrace_getsetevrregs): New variable.
4579 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
4580 fetch_spe_registers): New functions.
4581 (fetch_register): Call fetch_spe_register as appropriate.
4582 Assert that we're only passed raw register numbers.
4583 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
4584 Don't fetch gprs if they're pseudoregisters.
4585 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
4586 store_spe_registers): New functions.
4587 (store_register): Call store_spe_register as appropriate.
4588 Assert that we're only passed raw register numbers.
4589 (store_ppc_registers): Call store_spe_registers as appropriate.
4590 Don't store gprs if they're pseudoregisters.
4591
f90ef764
JJ
45922004-06-07 Jeff Johnston <jjohnstn@redhat.com>
4593
4594 * thread-db.c (thread_get_info_callback): Fill in the thread_info
4595 struct if one exists, even if we are dealing with a zombie thread.
4596
45b75230
AC
45972004-06-07 Andrew Cagney <cagney@gnu.org>
4598
4599 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
4600 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
4601 Rename PC_REQUIRES_RUN_BEFORE_USE.
4602 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
4603 #ifdef.
4604
1658da49
RC
46052004-06-07 Randolph Chung <tausq@debian.org>
4606
4607 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
4608 unwinding after sp has been saved to the stack but before the end
4609 of the prologue, and after the fp has been modified but before it has
4610 been saved to the stack.
4611 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
4612 Remove superfluous definitions.
4613 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
4614
9a727a3c
RC
46152004-06-07 Guy Martin <gmsoft@gentoo.org>
4616
4617 Committed by Randolph Chung.
4618 * hppa-linux-nat.c: Include the correct version of the header file
4619 depending on the kernel version.
4620
9e500012
RC
46212004-06-06 Randolph Chung <tausq@debian.org>
4622
4623 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
4624 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
4625
3388d7ff
RC
46262004-06-06 Randolph Chung <tausq@debian.org>
4627
4628 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
4629 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
4630 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
4631 * hppa-tdep.c (hppa_symbol_address): New function definition.
4632 * hppa-tdep.h (hppa_symbol_address): New function declaration.
4633
d49771ef
RC
46342004-06-06 Randolph Chung <tausq@debian.org>
4635
4636 * hppa-tdep.h (struct value): Forward declaration.
4637 (gdbarch_tdep): Define tdep find_global_pointer method.
4638 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
4639 associated with the function we are trying to call, and write it
4640 to the gp register.
4641 (hppa32_convert_from_funct_ptr_addr): New function.
4642 (hppa_find_global_pointer): New function.
4643 (hppa_gdbarch_init): Set default find_global_pointer method; set
4644 convert_from_func_ptr_addr method.
4645 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
4646 (hppa_linux_init_abi): Set find_global_pointer method.
4647 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
4648
7d9b040b
RC
46492004-06-06 Randolph Chung <tausq@debian.org>
4650
4651 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
4652 to struct value *function.
4653 * gdbarch.c: Regenerate.
4654 * gdbarch.h: Likewise.
4655 * infcall.c (call_function_by_hand): Pass entire function value
4656 to push_dummy_call.
4657
4658 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
4659 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
4660 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
4661 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
4662 * arm-tdep.c (arm_push_dummy_call): Likewise.
4663 * avr-tdep.c (avr_push_dummy_call): Likewise.
4664 * cris-tdep.c (cris_push_dummy_call): Likewise.
4665 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
4666 * frv-tdep.c (frv_push_dummy_call): Likewise.
4667 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
4668 * hppa-tdep.c (hppa32_push_dummy_call)
4669 (hppa64_push_dummy_call): Likewise.
4670 * i386-tdep.c (i386_push_dummy_call): Likewise.
4671 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
4672 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
4673 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
4674 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
4675 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
4676 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4677 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
4678 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
4679 (ppc64_sysv_abi_push_dummy_call): Likewise.
4680 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
4681 (ppc64_sysv_abi_push_dummy_call): Likewise.
4682 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4683 * s390-tdep.c (s390_push_dummy_call): Likewise.
4684 * sh-tdep.c (sh_push_dummy_call_fpu)
4685 (sh_push_dummy_call_nofpu): Likewise.
4686 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
4687 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
4688 * vax-tdep.c (vax_push_dummy_call): Likewise.
4689
4a19ea35
JB
46902004-06-04 Jim Blandy <jimb@redhat.com>
4691
8327ccee
JB
4692 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
4693 gdbarch argument to register_size.
4694
a3c001ce
JB
4695 * rs6000-tdep.c (rs6000_store_return_value): Use
4696 regcache_cooked_write_part instead of
4697 deprecated_write_register_bytes.
4698 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
4699 not gdbarch_deprecated_store_return_value.
4700
4a19ea35
JB
4701 * ppc-linux-nat.c (store_register, fetch_register): Remove
4702 incorrect assertions. Simplify and generalize handling of
4703 transfers whose sizes are not multiples of, or less than, sizeof
4704 (PTRACE_XFER_TYPE).
4705
b9b5d7ea
JJ
47062004-06-04 Jeff Johnston <jjohnstn@redhat.com>
4707
4708 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
4709 as a new thread event.
720c7d64 4710 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 4711 zombie, return TD_THR_ZOMBIE.
720c7d64 4712 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
4713 TD_THR_ZOMBIE, check if the thread is still on the thread list
4714 and return a -1 ptid if not found.
4715 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
4716 change the status to TARGET_WAITKIND_SPURIOUS.
4717
c8a3b559
CV
47182004-06-03 Corinna Vinschen <vinschen@redhat.com>
4719
4720 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
4721 double values in little endian mode.
4722
20605361
AC
47232004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
4724
4725 Committed by Andrew Cagney.
4726 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
4727 after last enum constant to avoid error from IBM C
4728 compiler.
4729
bc97b3ba
JB
47302004-06-02 Jim Blandy <jimb@redhat.com>
4731
4732 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
4733 to 'message', and make it local to the lone block that uses it.
4734
1da28ab0
JB
4735 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
4736
4c4b4cd2
PH
47372004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
4738
8a2225b2
PH
4739 * ada-exp.y: Update copyright notice.
4740 Include block.h.
4741
4742 Replace REGNAME, LAST, INTERNAL_VARIABLE with
4743 SPECIAL_VARIABLE and unify the treatment of these cases.
4744
4745 (write_attribute_call0): Remove.
4746 (write_attribute_call1): Remove.
4747 (write_attribute_calln): Remove.
4748 (save_qualifier): Add missing semicolon.
4749
4750 (simple_exp,exp): Decomment (i.e., reactivate) code that was
4751 temporarily disabled to allow compilation with FSF head version.
4752
4753 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
4754 use individual operators (OP_*) for all attributes.
4755 (exp syntax): Use write_int.
4756 Handle STRING literals with OP_STRING.
4757 (variable syntax): Add limit parameter to calls to
4758 write_object_renaming.
4759
4760 (temp_parse_space): New definition to hold entities that need
4761 only live until the next call to ada_parse.
4762 (string_to_operator): Rename fields of ada_opname_table entries.
4763
4764 (write_var_from_sym): Record block.
4765 (write_var_from_name): Minor reformatting.
4766 Make sure saved name is properly encoded in the case of multiple
4767 matches, and set its language to Ada.
4768 Update comment.
4769 Modify to indicate unresolved name as symbol in the UNRESOLVED
4770 namespace, allocated in temp_parse_space.
4771 (write_int): New function.
4772
4773 (write_object_renaming): Add max_depth parameter to limit
4774 chains of object renamings.
4775 Handle case where root of renaming expression is itself a renaming.
4776 Use temp_parse_space for temporary name buffer.
4777 Handle renamings to dereferenced pointers (___XEXA suffices).
4778
4779 (ada_parse, yyerror, string_to_operator,
4780 write_var_from_sym, write_var_from_name, write_attribute_call0,
4781 write_attribute_call1, write_attribute_calln,
4782 write_object_renaming): Protoize.
4783
4784 (_initialize_ada_exp): New function.
4785
4786 * ada-lang.c: Update copyright notice.
4787 General terminology change to conform to GNAT compiler usage:
4788 mangle => encode, demangle => decode
4789 Include gdb_obstack.h.
4790 Include gdb_regex.h
4791 Include frame.h
4792 Include hashtab.h
4793 Include completer.h
4794 Include gdb_stat.h
4795 Include block.h
4796 Include infcall.h
4797
4798 (ADA_RETAIN_DOTS): Make sure this is defined.
4799 (TRUNCATION_TOWARDS_ZERO): Define.
4800 (struct string_vector): Define.
4801 (unresolved_names): Remove definition.
4802 (xnew_string_vector): New function.
4803 (string_vector_append): New function.
4804 (extract_string): Make static.
4805 (ada_unqualified_name): New function.
4806 (add_angle_brackets): New function.
4807 (function_name_from_pc): New function.
4808 (place_on_stack): Rename to ensure_lval.
4809
4810 (ensure_lval): Renamed from place_on_stack.
4811 Make identity on lvals.
4812 Update comment.
4813 (is_nonfunction): New interface.
4814 Only symbols in LOC_CONST class can be enumerals.
4815 (fill_in_ada_prototype): Remove; now independent of language.
4816 (add_defn_to_vec): Add obstack and symtab arguments.
4817 Use obstack to hold collected definitions.
4818 (num_defns_collected): New function.
4819 (defns_collected): New function.
4820 (ada_resolve_subexp): Rename to resolve_subexp.
4821 (resolve_subexp): Renamed from ada_resolve_subexp.
4822 (ada_op_name): Return non-const result.
4823 (ada_decoded_op_name): Renamed from ada_op_name, now used for
4824 other purposes.
4825
4826 (to_fixed_array_type): Add declaration.
4827 (coerce_unspec_val_to_type): Remove offset parameter.
4828 (find_sal_from_funcs_and_line): New interface.
4829 (find_line_in_linetable): Ditto.
4830
4831 (all_sals_for_line): Rename to ada_sals_for_line and make
4832 global.
4833 Add new parameter. When set, do not ask the user to choose the
4834 instance, but use the first one found instead.
4835 Use given line number in returned sals.
4836 Fix comment.
4837 Skip the prologue if funfirstline is set.
4838 Correct for memory leak when 0 lines found.
4839
4840 (value_pos_atr): Use pos_atr.
4841 (pos_atr): New function.
4842 (standard_lookup): Add block parameter.
4843
4844 (makeTimeStart): Remove declaration and uses.
4845 (makeTimeStop): Remove declaration and uses.
4846
4847 (ada_completer_word_break_characters): Allow for VMS.
4848 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
4849 (raise_sym_name): New constant.
4850 (raise_unhandled_sym_name): New constant.
4851 (raise_assert_sym_name): New constant.
4852 (process_raise_exception_name): New constant.
4853 (longest_exception_template): New constant.
4854 (warning_limit): New variable to limit warnings during expression
4855 evaluation.
4856 (warnings_issued): New variable to keep track of warnings issued.
4857 (known_runtime_file_name_patterns): New constant.
4858 (known_auxiliary_function_name_patterns): New constant.
4859 (symbol_list_obstack): New variable.
4860
4861 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
4862 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
4863 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
4864 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
4865 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
4866 ada_variant_discrim_name, field_alignment, dynamic_template_type,
4867 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
4868 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
4869 and strcmp.
4870
4871 (ada_get_field_index): New function.
4872 (lim_warning): New function.
4873 (ada_translate_error_message): New function.
4874 (MAX_OF_SIZE): New function.
4875 (MIN_OF_SIZE): New function.
4876 (UMAX_OF_SIZE): New function.
4877 (UMIN_OF_SIZE): New function.
4878 (discrete_type_high_bound): New function.
4879 (discrete_type_low_bound): New function.
4880 (base_type): New function.
4881 (do_command): Remove.
4882
4883 (ada_update_initial_language): Use language_ada, not language_unknown.
4884 (ada_encode): Renamed from ada_mangle.
4885 Obey ADA_RETAIN_DOTS.
4886 (ada_decode): Renamed from ada_demangle.
4887 Update coding conventions.
4888 (decoded_names_store): New hash table.
4889 (ada_decode_symbol): New function.
4890 (ada_la_decode): New function.
4891
4892 (modify_general_field): Correct computations of offset and bit
4893 position.
4894 (desc_base_type): Handle ref types, too.
4895 (ada_is_direct_array_type): New function.
4896
4897 (ada_is_simple_array): Rename to ada_is_simple_array_type.
4898 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
4899 (ada_is_bogus_array_descriptor,ada_type_of_array,
4900 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
4901 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
4902 ada_is_array_descriptor_type.
4903
4904 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
4905 (ada_is_packed_array_type): Handle pointers or
4906 references to packed arrays as well.
4907 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
4908 (decode_packed_array_type): Search for the packed array type
4909 symbol in the currently selected block and associated
4910 superblocks too.
4911 Use lookup_symbol again.
4912
4913 (decode_packed_array): Handle pointers and references.
4914 Update call to coerce_unspec_val_to_type.
4915 (decode_packed_array_type,value_subscript_packed): Limit warnings.
4916 (ada_value_primitive_packed_val): Improve comment.
4917
4918 (ada_index_type): Substitute int type for "undefined".
4919 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
4920 ada_array_langth, ada_is_string_type): Use renamed
4921 ada_is_simple_array_type.
4922 (empty_array): New function.
4923
4924 (ada_resolve): Rename to resolve.
4925 (resolve): Make static.
4926 Call renamed resolve_subexp.
4927 Update comment.
4928 (ada_resolve_subexp): Rename to resolve_subexp.
4929 (resolve_subexp): Update comment.
4930 Decomment disabled code.
4931 Add LOC_COMPUTED* cases.
4932 Modify to use temporary struct symbols (marked as being in
4933 UNDEF_NAMESPACE) to indicate unresolved names, instead of
4934 OP_UNRESOLVED_VALUE.
4935 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
4936 Add OP_STRING case.
4937 Remove OP_ARRAY.
4938 Use SYMBOL_PRINT_NAME instead of ada_demangle.
4939 Use new ada_lookup_symbol_list interface.
4940 Use new ada_resolve_function interface.
4941 Remove OP_TYPE case.
4942
4943 (ada_args_match): Idiot proof against null actuals.
4944 Use intermediate variables to clarify.
4945 (ada_resolve_function): Update comment and interface.
4946 (mangled_ordered_before): Rename to encoded_ordered_before and
4947 update comment.
4948 (sort_choices): Update comment and interface.
4949 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
4950 (user_select_syms): New interface.
4951 Use new sort_choices interface.
4952 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
4953 (possible_user_operator_p): Idiot-proof against null values.
4954 (ada_simple_renamed_entity): Don't make cleanup; rely on
4955 caller to free result string.
4956 Remove const from return type.
4957 (make_array_descriptor): Rename uses of place_on_stack to
4958 ensure_lval.
4959 Make sure that arrays are on stack.
4960
4961 (HASH_SIZE): Define.
4962 (struct cache_entry): Define.
4963 (cache_space): Define.
4964 (cache): Define.
4965 (clear_ada_sym_cache): New function.
4966 (find_entry): New function.
4967 (lookup_cached_symbol): New function.
4968 (defn_vector_size): Define.
4969 (cache_symbol): New function.
4970 (defn_symbols): Remove.
4971
4972 (standard_lookup): Use lookup_symbol_in_language to get effect of
4973 C lookup.
4974 Cache results.
4975
4976 (symbol_completion_match): New function.
4977 (symbol_completion_add): New function.
4978 (ada_make_symbol_completion_list): New function.
4979
4980 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
4981 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
4982 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
4983 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
4984
4985 (ada_lookup_simple_minsym): New function.
4986 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
4987
4988 (add_symbols_from_enclosing_procs): New interface.
4989 Conditionalize more helpfully.
4990 Don't bother if program isn't running.
4991 Use new interface to get_frame_block.
4992 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
4993
4994 (remove_extra_symbols): New interface.
4995 (xget_renaming_scope): New function.
4996 (is_package_name): New function.
4997 (renaming_is_visible): New function.
4998 (remove_out_of_scope_renamings): New function.
4999
5000 (ada_lookup_symbol_list): New interface.
5001 Properly reinitialize the symbol list obstack.
5002 Don't call add_symbols_from_enclosing_procs if we start from a
5003 static or global block.
5004 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
5005 add_symbols_from_enclosing_procs.
5006 Add symtab data to cached entries.
5007 Handle symbols prefixed with
5008 "standard__" specially; strip prefix and don't look in local symbols.
5009 Do not include out of scope renaming symbols in list of
5010 symbols returned.
5011 Add const to block parameter.
5012 Move check for non-local, non-global symbols earlier.
5013 Remove timing stuff.
5014 (ada_lookup_symbol): New interface.
5015 Find symtab as well.
5016 (ada_lookup_symbol_nonlocal): New function.
5017
5018 (is_name_suffix): Enhance suffix detection to recognize
5019 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
5020 (is_dot_digits_suffix): New function.
5021 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
5022
5023 (ada_add_block_symbols): New interface. Use obstack to return results
5024 in a vector of struct ada_symbol_infos. Add symtab argument.
5025 Use new interface to add_defn_to_vec.
5026 Remove calls to fill_in_ada_prototype.
5027 Use BLOCK_BUCKETS, BLOCK_BUCKET.
5028
5029 (ada_finish_decode_line_1): Add const qualification to local to fix
5030 warning.
5031 Start looking in static block for functions to avoid attempts
5032 to search frame chain for up-level variables.
5033 Adapt to new ada_sals_for_line interface.
5034 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
5035 Handle quoting of the function name inside the spec string.
5036 Skip prologue when funfirstline is set and update the
5037 function documentation to that effect.
5038
5039 (debug_print_lines, debug_print_block, debug_print_blocks,
5040 debug_print_symtab): Remove.
5041
5042 (ada_main_name): New function.
5043 (ada_exception_breakpoint_type): New function.
5044 (is_known_support_routine): New function.
5045 (ada_find_printable_frame): Renamed from find_printable_frame and made
5046 global.
5047 Remove level parameter.
5048 Use new interface to select_frame.
5049
5050 (begin_command): Remove.
5051 (ada_adjust_exception_stop): New function.
5052 (ada_print_exception_stop): New function.
5053 (exception_name_from_cond): New function.
5054 (ada_report_exception_break): Replace disabled code with
5055 conditionalization on GNAT_GDB.
5056 Get the exception name from the condition string.
5057 Remove and move functionality into new functions
5058 ada_print_exception_breakpoint_task and
5059 ada_print_exception_breakpoint_nontask.
5060 (error_breakpoint_runtime_sym_not_found): New function.
5061 (is_runtime_sym_defined): New function.
5062 (ada_breakpoint_rewrite): Uncomment suppressed code.
5063 Use symbolic error-message and runtime-symbol names.
5064 Surround runtime symbol names in quotes.
5065 Allow non-specific breakpoints on exceptions and assertions before
5066 program starts.
5067
5068 (ada_is_tagged_type): Add parameter.
5069 (ada_is_tag_type): New function.
5070 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
5071 (ada_variant_discrim_type): Ditto.
5072 (value_tag_from_contents_and_address): New function.
5073 (type_from_tag): New function.
5074 (struct tag_args): New structure used to communicate with
5075 ada_tag_name_1.
5076 (ada_tag_name_1): New function.
5077 (ada_tag_name): New function.
5078
5079 (ada_scan_number): Update comment.
5080 (find_struct_field): New function.
5081 (ada_search_struct_field): Make static.
5082 (ada_value_struct_elt): New version that returns references when
5083 given pointers or references to structs.
5084 (ada_lookup_struct_elt_type): Add 'refok' parameter.
5085 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
5086 interface.
5087 (ada_value_ind): Use new ada_to_fixed_value interface.
5088 (ada_coerce_ref): Ditto.
5089 (field_offset): Remove.
5090
5091 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
5092 (ada_find_renaming_symbol): New function.
5093 (ada_prefer_type): Prefer named types over unnamed ones.
5094 (variant_field_index): New function.
5095 (contains_variant_part): Removed: subsumed by variant_field_index.
5096 (ada_template_to_fixed_record_type): New function, mostly from
5097 template_to_fixed_record_type.
5098 (template_to_fixed_record_type):
5099 Do not scan the type fields beyond the last one; prevents a
5100 potential SEGV.
5101 Handle case where variant field is listed BEFORE discriminant it
5102 depends on.
5103 Fix calculation of record length when bit length is
5104 not evenly divisible by char length.
5105 Move code to ada_template_to_fixed_record_type and call it.
5106
5107 (template_to_static_fixed_type): Revise comment.
5108 Modify to work on ordinary record types as well as templates,
5109 so as to handle fields that use ___XVE or ___XVU encodings.
5110 (to_record_with_fixed_variant_part): Fill out comment.
5111 Initialize C++ stuff in right type.
5112 Allow case where DVAL is null.
5113 Handle case where variant field is not last.
5114 Fix typo concerning record length.
5115 (to_fixed_record_type): Decomment disabled code.
5116 (to_fixed_record_type): Use variant_field_index instead of
5117 contains_variant_part.
5118 (to_fixed_variant_branch_type): Ditto.
5119 (to_fixed_array_type): Decomment disabled code.
5120 (ada_to_fixed_type): Convert tagged types to the specific type.
5121 Deactivate the size-check for array types in order to avoid
5122 some false size alarms.
5123 (to_static_fixed_type): Decomment disabled code.
5124 Modify to call template_to_static_fixed_type
5125 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
5126 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
5127 Remove valaddr argument, as it is never really used.
5128 (ada_to_fixed_value): Change interface to act on single struct value*
5129 operand.
5130 (adjust_pc_past_prologue): New function.
5131 (ada_attribute_name): Modify to take enum exp_opcode argument.
5132
5133 (ada_enum_name): Recognize new homonym-distinguishing convention.
5134 Adjust local variable's type to remove compiler warning.
5135 Fix a small problem in the part that unqualifies the enumeration name.
5136 (ada_value_binop): New function.
5137 (ada_value_equal): New function.
5138
5139 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
5140 Don't give error message when not doing normal evaluation
5141 and a tagged type doesn't seem to contain a structure member.
5142 Give error message for packed arrays.
5143 For indexing arrays, handle pointers to packed arrays correctly.
5144 Handle case of 'first and 'last attributes of bare integral type
5145 without encoded subtype info.
5146 Remove some unnecessary casts.
5147 Fix uninitialized value of type in computing 'first, 'last, or 'length
5148 of array object.
5149 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
5150 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
5151 calls.
5152 Attributes are now exp_opcode values.
5153 Correct treatment of 'modulus.
5154 Better error message for taking 'length of wrong kind of type;
5155 improve comment.
5156 Change EVAL_NORMAL to noside for consistency.
5157 Use ada_value_binop for DIV, MOD, REM.
5158 Make special case out of array of length 0, since an argument
5159 of 0 upsets some platforms' malloc.
5160 Use OP_STRING instead of OP_ARRAY.
5161 For slice, add check that we have an array type before extracting
5162 a slice out of it. Avoids a SEGV.
5163 When evaluating an array slice, if the array type is a reference to
5164 an aligner type, then replace the aligner type by the actual type.
5165 Decomment disabled code.
5166 Remove some dead code.
5167 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
5168 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
5169 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
5170 and UNOP_MBR to UNOP_IN_RANGE.
5171 If an array type has a parallel ___XVE type, then use it.
5172 Turn arrays into pointers for lvalue arrays.
5173 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
5174 bounds error and handle 0-length slices.
5175 Use lim_warning.
5176 When selecting fields, apply ada_to_fixed_value (because the fields
5177 might have ___XVU or ___XVE encodings even if not dynamic.)
5178 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
5179 (ada_is_system_address_type): New function.
5180
5181 (get_var_value): Use new interface to ada_lookup_symbol_list.
5182 (get_int_var_value): New interface.
5183 (to_fixed_range_type): Allow unknown bound, with warning.
5184 (ada_is_modular_type): Decomment disabled code.
5185 (ADA_OPERATORS): New definition.
5186 (ada_operator_length): New function.
5187 (ada_expr_op_name): New function.
5188 (ada_forward_operator_length): New function.
5189 (ada_dump_subexp_body): New function.
5190 (ada_print_subexp): New function.
5191 (ada_exp_descriptor): New constant.
5192 (ada_op_print_tab): Add 'size. Remove FIXMEs.
5193 (ada_language_defn): Add ada_exp_descriptor entry.
5194 Change ada_parse => parse.
5195 Add post-parser entry.
5196 Use ada-specific non-local symbol lookup.
5197 Don't use C-style arrays.
5198 String lower-bound is 1.
5199 Decomment disabled code.
5200 (parse): New function.
5201 New fields ada_translate_error_message, ada_lookup_symbol,
5202 ada_lookup_minimal_symbol.
5203
5204 * ada-lang.h: Update copyright dates.
5205 Replace the mangle/demangle terminology throughout by the
5206 more appropriate encode/decode one.
5207 Include breakpoint.h.
5208 Forward declare struct partial_symbol, struct block.
5209 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
5210 (EXTRACT_ADDRESS): Remove.
5211 (EXTRACT_INT): Remove.
5212 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
5213 (MAX_ENCLOSING_FRAME_LEVELS): Define.
5214 (MAX_RENAMING_CHAIN_LENGTH): Define.
5215 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
5216
5217 (enum task_states): Remove.
5218 ada_task_states: Remove.
5219 (fat_string): Remove.
5220 (struct entry_call): Remove.
5221 (struct task_fields): Remove.
5222 (struct task_entry): Remove.
5223
5224 (struct ada_symbol_info): Define.
5225 (enum ada_attribute): Remove.
5226 (enum ada_operator): Define.
5227
5228 (ada_get_field_index): Declare.
5229 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
5230 (ada_is_simple_array): Rename to ada_is_simple_array_type.
5231 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5232 (ada_lookup_symbol_list): New interface.
5233 (ada_decode_symbol): Declare.
5234 (ada_decode): Declare.
5235 (ada_lookup_symbol): New interface.
5236 (ada_update_initial_language): Declare.
5237 (ada_lookup_simple_minsym): Declare.
5238 (user_select_syms): New interface.
5239 (ada_sals_for_line): Declare.
5240 (ada_is_tagged_type): New interface.
5241 (ada_tag_name): Declare.
5242 (ada_lookup_struct_elt_type): Remove declaration.
5243 (ada_search_struct_field): Remove declaration.
5244 (ada_attribute_name): New interface.
5245 (ada_is_system_address_type): Declare.
5246 (ada_to_fixed_value): Remove declaration.
5247 (ada_template_to_fixed_record_type_1): Declare.
5248 (get_int_var_value): New interface.
5249 (ada_find_any_symbol): Declare.
5250 (ada_find_renaming_symbol): Declare.
5251 (ada_mangle): Rename to ada_encode.
5252 (ada_simple_renamed_entity): Remove const.
5253 (ada_main_name): Declare.
5254 (get_current_task): Rename to ada_get_current_task.
5255 (get_entry_number): Remove declaration.
5256 (ada_report_exception_break): Remove declaration.
5257 (ada_print_exception_breakpoint_nontask): Declare.
5258 (ada_print_exception_breakpoint_task): Declare.
5259 (ada_find_printable_frame): Declare.
5260
5261 * ada-lex.l: Update copyright notices.
5262 Use xmalloc and xfree instead of malloc and free.
5263 Use new interface to name_lookup.
5264 Use new interface to
5265 ada_mangle=>ada_encode.
5266 Redo handling of '$...' variable to parallel current treatment
5267 in c-exp.y.
5268 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
5269 digit_to_int, strtoulst, processInt, processReal, processId,
5270 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
5271 yywrap): Protoize.
5272
5273 (processInt): Use cast to remove harmless warning.
5274 (processReal): Modify to get rid of compiler warning on scan formats.
5275
5276 (processId): Replace xmalloc with obstack_alloc for name and remove
5277 call to ada_name_string_cleanup.
5278 Remove obsolete disabled code.
5279 (name_lookup): Ditto.
5280 New interface.
5281 Use obsavestring on temp_parse_space instead of savestring
5282 on name, and remove call to ada_name_string_cleanup.
5283 Free string returned from ada_simple_renamed_entity.
5284 Use new interface to ada_lookup_symbol_list.
5285 Decomment disabled code.
5286 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
5287 not types.
5288 When a type name lookup succeeds as a result of
5289 lookup_primitive_typename, check for regular type entry that has not
5290 yet been read in.
5291 Limit length of chain of renamed symbols we are willing to follow.
5292 Do not break names beginning with "standard__" into segments.
5293 (block_lookup): Use new interface to ada_lookup_symbol_list.
5294
5295 * ada-typeprint.c: Update copyright notice.
5296 (demangled_type_name): Rename to decoded_type_name.
5297 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
5298 (print_range_bound): Correct handling of negative
5299 bounds that make the index type looked unsigned under STABS.
5300 (print_dynamic_range_bound): Use new interface to get_int_var_value.
5301 (print_range_type_named): Use the builtin int type if no type
5302 corresponding to the given type name could be found.
5303 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
5304 Add some bullet-proofing.
5305 (print_variant_clauses): Allow for variant branches with ___XVU
5306 encodings that are not dynamic fields.
5307 Use new interface to ada_is_tagged_type.
5308 (print_record_type): Allow for fields with ___XVE encodings that
5309 are not dynamic fields.
5310 Use new interface to ada_is_tagged_type.
5311 (ada_print_type): ada_is_array_descriptor =>
5312 ada_is_array_descriptor_type.
5313
5314 * ada-valprint.c: Update copyright notice.
5315 Include gdb_string.h
5316 Include infcall.h
5317 (ui_memcpy): New function.
5318 (ada_print_floating): New function.
5319 (ada_print_str): Order arguments correctly.
5320 Correct handling of empty arrays and arrays of 0-length items.
5321 ada_is_array_descriptor => ada_is_array_descriptor_type
5322 Print values of type System.Address in hexadecimal format.
5323 Use ada_print_floating to print floating-point numbers in Ada format.
5324 Print class tag values with type names.
5325 No longer print the address of reference values. Avoids
5326 a potential confusion.
5327 (ada_value_print): Stop printing the object type for reference
5328 values, but preserve that behavior for access types. Avoids
5329 a potential confusion.
5330 Simplify one conditional expression, as the first part is now
5331 necessarily true.
5332 ada_is_array_descriptor => ada_is_array_descriptor_type
5333 Add check for arrays for null records, and print them by hand.
4c4b4cd2 5334
f65f91b5
JB
53352004-06-01 Jim Blandy <jimb@redhat.com>
5336
5337 * ppc-tdep.h: Delete unused 'regoff' member.
5338 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
5339
d4687fa0
MC
53402004-06-01 Michael Chastain <mec.gnu@mindspring.com>
5341
5342 Fix PR symtab/1661.
5343 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
5344 (hpread_read_struct_type): Likewise.
5345
de169ec9
AC
53462004-06-01 Andrew Cagney <cagney@gnu.org>
5347
c6902d46
AC
5348 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
5349 instead of xasprintf.
5350 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
5351 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
5352 (mi_cmd_data_list_register_names)
5353 (mi_cmd_data_list_changed_registers)
5354 (mi_cmd_data_list_register_values)
5355 (get_register, mi_cmd_data_write_register_values)
5356 (mi_cmd_data_write_register_values)
5357 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
5358 (mi_cmd_target_download, mi_cmd_target_select)
5359 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
5360 (mi_execute_cli_command, mi_execute_async_cli_command)
5361 (mi_execute_async_cli_command): Ditto.
5362 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
5363 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
5364
6085fc2d
AC
5365 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
5366 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
5367 error_last_message instead of mi_error_last_message.
5368 * mi/mi-main.c (mi_error_last_message): Delete function.
5369
de169ec9
AC
5370 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
5371 "invalid number of columns" error. Delete redundant "out of
5372 memory" check.
5373
1fc7d519
MK
53742004-05-31 Mark Kettenis <kettenis@gnu.org>
5375
6cfb2041
MK
5376 * i386bsd-nat.c: Don't include <sys/procfs.h>.
5377 (gregset_t, fpregset_t): Remove typedefs.
5378 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
5379 (REG_OFFSET): Rename argument.
5380 (i386bsd_r_reg_offset): Rename from reg_offset.
5381 (REG_ADDR): Remove macro.
5382 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
5383 functions.
5384 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
5385 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
5386 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
5387 instead of supply_gregset.
5388 (store_inferior_registers): Use `struct reg' and `struct fpreg'
5389 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
5390 instead of fill_gregset.
5391 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
5392
1fc7d519
MK
5393 * i386bsd-nat.c: Don't include "gregset.h".
5394 (supply_gregset, fill_gregset): Make static.
5395 (supply_fpregset, fill_fpregset): Remove.
5396 * Makefile.in (i386bsd-nat.o): Update dependencies.
5397
2c34abbe
MK
53982004-05-30 Mark Kettenis <kettenis@gnu.org>
5399
448724fb
MK
5400 * fbsd-proc.c: Include "regcache.h", "regset.h" and
5401 "gdb_assert.h". Con't include "gregset.h".
5402 (fbsd_make_corefile_notes): Use regset-based core file support
5403 instead off fill_gregset and fill_fpregset.
5404 * Makefile.in (fbsd-proc.o): Update dependencies.
5405
5ca8ca7c
MK
5406 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
5407 instructions.
5408 (m88k_frame_prev_register): Simplify code a bit.
5409
593adc23
MK
5410 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
5411 (amd64_collect_fpregset): New function.
5412 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
5413
8d1b517b
MK
5414 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
5415
7fdafb5a
MK
5416 * i386-tdep.c (i386_supply_gregset): Adjust comment.
5417 (i386_collect_gregset): New function.
5418 (i386_supply_fpregset): Adjust comment.
5419 (i386_collect_fpregset): New function.
5420 (i386_regset_from_core_section): Use i386_collect_gregset and
5421 i386_collect_fpregset.
5422
8693c419
MK
5423 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
5424 handle VALUEP being null.
5425
2c34abbe
MK
5426 * regset.h (collect_regset_ftype): Unconstify fourth argument.
5427
45d134d8
MK
54282004-05-29 Mark Kettenis <kettenis@gnu.org>
5429
1698f4e7
MK
5430 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
5431
45d134d8
MK
5432 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
5433 assembler in OpenBSD 3.5-current.
5434 (amd64obsd_sigcontext_addr): Likewise.
5435
691d145a
JB
54362004-05-28 Jim Blandy <jimb@redhat.com>
5437
5438 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
5439 register set, so our regcache isn't declared "legacy" and our E500
5440 pseudoregister read and write functions aren't ignored.
5441 (rs6000_register_byte, rs6000_register_raw_size,
5442 rs6000_register_virtual_type, rs6000_register_convertible,
5443 rs6000_register_convert_to_virtual,
5444 rs6000_register_convert_to_raw): Deleted.
5445 (rs6000_register_type, rs6000_convert_register_p,
5446 rs6000_register_to_value, rs6000_value_to_register): New
5447 functions.
5448 (rs6000_gdbarch_init): Don't register
5449 gdbarch_deprecated_register_size,
5450 gdbarch_deprecated_register_bytes,
5451 gdbarch_deprecated_register_byte,
5452 gdbarch_deprecated_register_raw_size,
5453 gdbarch_deprecated_register_virtual_type,
5454 gdbarch_deprecated_register_convertible,
5455 gdbarch_deprecated_register_convert_to_virtual, or
5456 gdbarch_deprecated_register_convert_to_raw methods. Instead,
5457 register gdbarch_register_type, gdbarch_convert_register_p,
5458 gdbarch_register_to_value, and gdbarch_value_to_register methods.
5459
18ed0c4e
JB
54602004-05-26 Jim Blandy <jimb@redhat.com>
5461
5462 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
5463 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
5464 functions, updated to match the register numberings used in GCC.
5465 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
5466 rs6000_dwarf2_reg_to_regnum as register number conversions
5467 functions for STABS and Dwarf2.
5468
779af9e3
RC
54692004-05-26 Randolph Chung <tausq@debian.org>
5470
5471 * infttrace.h (target_waitkind): Forward declare type instead of pulling
5472 in header file.
5473
c23968a2
JB
54742004-05-25 Joel Brobecker <brobecker@gnat.com>
5475
5476 * NEWS: Document new "start" command.
5477
3a7d1c27
RC
54782004-05-25 Randolph Chung <tausq@debian.org>
5479
5480 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
5481 hppa-linux.
5482
43613416
RC
54832004-05-25 Randolph Chung <tausq@debian.org>
5484
5485 * hppa-hpux-tdep.c (offsetof): Define.
5486 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
5487 (hppa32_hpux_frame_base_before_sigtramp)
5488 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
5489 (hppa64_hpux_frame_saved_pc_in_sigtramp)
5490 (hppa64_hpux_frame_base_before_sigtramp)
5491 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
5492 functions.
5493 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
5494 (hppa_hpux_sigtramp_frame_unwind_cache)
5495 (hppa_hpux_sigtramp_frame_this_id)
5496 (hppa_hpux_sigtramp_frame_prev_register)
5497 (hppa_hpux_sigtramp_frame_unwind)
5498 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
5499 (hppa_hpux_init_abi): Register sigtramp unwinder.
5500 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
5501
6d1be3f1
RC
55022004-05-25 Randolph Chung <tausq@debian.org>
5503
5504 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
5505 and multiple stack unwinds.
5506 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
5507
97c34f65
AC
55082004-05-25 Andrew Cagney <cagney@gnu.org>
5509
5510 * symfile.h (symbol_file_add_from_memory): Delete declaration.
5511 * symfile-mem.h: Delete file.
5512 * symfile-mem.c: Do not include "symfile-mem.h".
5513 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
5514 "struct bfd_section". When an error do not bother returning NULL.
5515 (add_symbol_file_from_memory_command): Use "struct bfd" and
5516 "struct bfd_section".
5517 * Makefile.in (symfile_mem_h): Delete.
5518 (symfile-mem.o): Update dependencies.
5519
e23cbd82
NR
55202004-05-25 Nick Roberts <nickrob@gnu.org>
5521
5522 * gdb-mi.el: New file.
5523
20d2ca3e
AC
55242004-05-25 Andrew Cagney <cagney@gnu.org>
5525
5526 * inftarg.c: Include "observer.h".
5527 (child_attach, child_create_inferior): Notify inferior_created.
5528 * corelow.c: Include "observer.h".
5529 (core_open): Notify inferior_created.
5530 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
5531
c27cda74
AC
55322004-05-25 Andrew Cagney <cagney@gnu.org>
5533
5534 * target.h (struct target_ops): Add from_tty to
5535 to_create_inferior.
5536 (target_create_inferior, find_default_create_inferior): Update.
5537 * infcmd.c (run_command): Update.
5538 * wince.c (child_create_inferior): Update.
5539 * win32-nat.c (child_create_inferior): Update.
5540 * uw-thread.c (uw_thread_create_inferior): Update.
5541 * thread-db.c (thread_db_create_inferior): Update.
5542 * target.c (debug_to_create_inferior)
5543 (find_default_create_inferior): Update.
5544 (maybe_kill_then_create_inferior): Update.
5545 * sol-thread.c (sol_thread_create_inferior): Update.
5546 * remote.c (extended_remote_async_create_inferior)
5547 (extended_remote_create_inferior): Update.
5548 * remote-vx.c (vx_create_inferior): Update.
5549 * remote-st.c (st2000_create_inferior): Update.
5550 * remote-sim.c (gdbsim_create_inferior): Update.
5551 * remote-sds.c (sds_create_inferior): Update.
5552 * remote-rdp.c (remote_rdp_create_inferior): Update.
5553 * remote-rdi.c (arm_rdi_create_inferior): Update.
5554 * remote-m32r-sdi.c (m32r_create_inferior): Update.
5555 * remote-e7000.c (e7000_create_inferior): Update.
5556 * procfs.c (procfs_create_inferior): Update.
5557 * ocd.c (ocd_create_inferior): Update.
5558 * ocd.h (ocd_create_inferior): Update.
5559 * nto-procfs.c (procfs_create_inferior): Update.
5560 * monitor.c (monitor_create_inferior): Update.
5561 * lin-lwp.c (lin_lwp_create_inferior): Update.
5562 * inftarg.c (child_create_inferior): Update.
5563 * hpux-thread.c (hpux_thread_create_inferior): Update.
5564 * gnu-nat.c (gnu_create_inferior): Update.
5565
1db2a798
AC
55662004-05-25 Andrew Cagney <cagney@gnu.com>
5567
5568 * MAINTAINERS: Update e-mail address.
5569
007d08bb
RC
55702004-05-24 Randolph Chung <tausq@debian.org>
5571
5572 * thread.c (info_threads_command, thread_apply_all_command)
5573 (thread_apply_command, thread_command, do_captured_thread_select):
5574 Remove HPUXHPPA-specific code.
5575
69e7b95e
RC
55762004-05-24 Randolph Chung <tausq@debian.org>
5577
5578 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
5579 unused symbols.
5580 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
5581 references.
5582
a4d5f2e0
JB
55832004-05-24 Joel Brobecker <brobecker@gnat.com>
5584
5585 * infcmd.c (kill_if_already_running): New function, extracted
5586 from run_command().
5587 (run_command): Replace extracted code by call to
5588 kill_if_already_running().
5589 (start_command): New function.
5590 (_initialize_infcmd): Add "start" command.
5591
bf2ca189
MK
55922004-05-24 Mark Kettenis <kettenis@gnu.org>
5593
5594 Add OpenBSD/m88k support.
5595 * NEWS (New native configurations): Mention OpenBSD/m88k.
5596 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
5597 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
5598 * Makefile.in (m88k_tdep_h): New variable.
5599 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
5600 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
5601 * configure.host: Add m88*-*-openbsd*.
5602 * configure.tgt: Add m88*-*-openbsd*.
5603
80fadb11
JB
56042004-05-24 Jim Blandy <jimb@redhat.com>
5605
5606 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
5607 to approve changes.
5608
19e2d14b
KB
56092004-05-24 Kevin Buettner <kevinb@redhat.com>
5610
5611 * symtab.c (fixup_section): Search section table when lookup by
5612 name fails.
5613
1b07b470
RC
56142004-05-24 Randolph Chung <tausq@debian.org>
5615
5616 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
5617 be "small_struct".
5618
368702b1
MK
56192004-05-24 Mark Kettenis <kettenis@gnu.org>
5620
5df97fde
MK
5621 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
5622 register number in regcache_raw_collect call.
5623 (m68kbsd_collect_fpregset): Likewise.
5624 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
5625
368702b1
MK
5626 * regset.h (struct regset): Add back `regset' member.
5627
a770d4ec
MK
56282004-05-23 Mark Kettenis <kettenis@gnu.org>
5629
70f9f479
MK
5630 * configure.in: Check for td_pcb in `struct thread'.
5631 * configure, config.in: Regenerated.
5632
2e16d79e
MK
5633 * dpx2-nat.c: Remove file.
5634 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
5635 (dpx2-nat.o): Remove dependencies.
5636
492cf391
MK
5637 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
5638 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
5639 (amd64obsd_supply_pcb): New function.
5640 (_initialize_amd64obsd_nat): Enable libkvm interface.
5641 * Makefile.in (amd64obsd-nat.o): Update dependencies.
5642 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
5643 (LOADLIBES): New variable.
5644
a770d4ec
MK
5645 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
5646 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
5647 (sparc32nbsd_supply_pcb): New function.
5648 (_initialize_sparcnbsd_nat): Enable libkvm interface.
5649 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
5650 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5651 (LOADLIBES): New variable.
5652
9ea75c57
MK
56532004-05-22 Mark Kettenis <kettenis@gnu.org>
5654
2e0c3539
MK
5655 * bsd-kvm.c, bsd-kvm.h: New files.
5656 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5657 "bsd-kvm.h".
5658 (i386fbsd_supply_pcb): New function.
5659 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
5660 (i386fbsd-nat.o): Update dependencies.
5661 (bsd_kvm_h): New variable.
5662 (bsd-kvm.o): New dependency.
5663 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
5664 (LOADLIBES): New variable.
5665
9ea75c57
MK
5666 * regset.c: Tweak comment.
5667 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
5668 macro.
5669 * regset.h: Update copyright year.
5670 (struct regset): Remove `descr' member, add `gdbarch' member.
5671 (regset_alloc): Adjust prototype and comment.
5672 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
5673 (i386_supply_fpregset): Likewise.
5674 (i386_regset_from_core_section): Update call to regset_alloc.
5675 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
5676 REGSET->arch.
5677 (i386obsd_aout_regset_from_core_section): Update call to
5678 regset_alloc.
5679 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
5680 REGSET->arch.
5681 (i386nbsd_aout_regset_from_core_section): Update call to
5682 regset_alloc.
5683 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
5684 REGSET->arch.
5685 (amd64_regset_from_core_section): Update call to regset_alloc.
5686 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
5687 REGSET->arch.
5688 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
5689 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
5690 &sparc32nbsd_gregset in sparc32_supply_gregset call.
5691 (sparc32nbsd_init_abi): Update call to regset_alloc.
5692 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
5693 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
5694 (sparc64obsd_init_abi): Update call to regset_alloc.
5695 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
5696 &sparc64nbsd_gregset in sparc64_supply_gregset call.
5697 (sparc64nbsd_init_abi): Update call to regset_alloc.
5698 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
5699 &sparc64fbsd_gregset in sparc64_supply_gregset call.
5700 (sparc64fbsd_init_abi): Update call to regset_alloc.
5701
867e2dc5
JB
57022004-05-22 Jim Blandy <jimb@redhat.com>
5703
5704 * ppc-tdep.h (spe_register_p): New declaration.
5705 (struct gdbarch_tdep): New members: ppc_acc_regnum and
5706 ppc_spefscr_regnum.
5707 * rs6000-tdep.c (spe_register_p): New function.
5708 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
5709 spefscr.
5710 (rs6000_gdbarch_init): Initialize the new members of the tdep
5711 structure.
5712
617a4cba
JB
57132004-05-21 Jim Blandy <jimb@redhat.com>
5714
0397dee1
JB
5715 * ppc-linux-nat.c (fetch_register): Move code back to be next
5716 to the comment that describes it. (Moved code, instead of
5717 comment, for symmetry with store_register.)
5718
617a4cba
JB
5719 Allocate regset structures in the gdbarch's obstack, not using
5720 xmalloc.
5721 * regset.c (regset_alloc): Renamed from regset_xmalloc.
5722 Add 'arch' argument. Allocate the regset on arch's obstack, not
5723 using xmalloc.
5724 * regset.h (regset_alloc): Update declaration.
5725 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
5726 gdbarch argument.
5727 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5728 * i386-tdep.c (i386_regset_from_core_section): Same.
5729 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5730 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5731 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5732 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5733 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5734 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5735
9aa3914d
JB
57362004-05-21 Joel Brobecker <brobecker@gnat.com>
5737
5738 * config/djgpp/fnchange.lst: Undo previous change, was useless.
5739
99c87dab
JB
57402004-05-21 Jim Blandy <jimb@redhat.com>
5741
5742 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
5743 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
5744
c2b6b4aa
JB
57452004-05-20 Jim Blandy <jimb@redhat.com>
5746
5747 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
5748
144529d0
MK
57492004-05-20 Mark Kettenis <kettenis@gnu.org>
5750
5751 * regset.h: Make prototype const-correct.
5752 * regset.c (regset_xmalloc): Make const-correct.
5753
4725b721
PH
57542004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
5755
5756 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
5757 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
5758 (symbol_search_name): Declare.
5759
5760 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
5761 (iter_name_next_hashed): Ditto.
5762 (iter_name_next_linear): Ditto.
5763 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
5764
5765 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
5766 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
5767 (symbol_search_name): New function.
5768
5769 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
5770
5771 * minsyms.c (build_minimal_symbol_hash_tables): Change
5772 test for adding to demangled hash table to check for difference
5773 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
5774
be07a590
JB
57752004-05-19 Jim Blandy <jimb@redhat.com>
5776
5777 Use a constructor function to create regset structures.
5778 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
5779 (struct regset): Use supply_regset_ftype. Add new
5780 'collect_regset' member.
5781 (regset_xmalloc): New declaration.
5782 * regset.c: New file.
5783 * am64-tdep.c (amd64_regset_from_core_section): Use
5784 regset_xmalloc to construct regset structures.
5785 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5786 * i386-tdep.c (i386_regset_from_core_section): Same.
5787 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5788 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5789 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5790 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5791 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5792 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5793 * Makefile.in (COMMON_OBS): Add regset.o.
5794 (regset.o): New rule.
5795
604368f5
JB
57962004-05-19 Joel Brobecker <brobecker@gnat.com>
5797
5798 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
5799 and pthread_cond_wait.c.
5800
82d69f8b
JB
58012004-05-18 Jim Blandy <jimb@redhat.com>
5802
5803 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
5804 before the mach-specific switch, and then let the individual cases
5805 override the defaults, rather than leaving them uninitialized
5806 until the switch and then setting them in each case.
5807
5859efe5
RC
58082004-05-18 Randolph Chung <tausq@debian.org>
5809
5810 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
5811 millicode functions.
5812
9ca80cf8
RC
58132004-05-18 Randolph Chung <tausq@debian.org>
5814
5815 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
5816 references to dld_flags_buffer consistent.
5817
ed70ba00
RC
58182004-05-18 Randolph Chung <tausq@debian.org>
5819
5820 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
5821 it for unwinding the stack.
5822
63100632
RC
58232004-05-18 Randolph Chung <tausq@debian.org>
5824
5825 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
5826 Undefine these so we can overide them using gdbarch.
5827
090ccbb7
RC
58282004-05-18 Randolph Chung <tausq@debian.org>
5829
5830 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
5831 handling for 64-bit HPUX (elf).
5832
594706e6
DJ
58332004-05-18 Daniel Jacobowitz <dan@debian.org>
5834
5835 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
5836 constants.
5837 * amd64-tdep.c (amd64_skip_prologue): Likewise.
5838 * ia64-tdep.c (examine_prologue): Likewise.
5839 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
5840 * v850-tdep.c (v850_fix_call_dummy): Likewise.
5841
e5483145
MK
58422004-05-18 Mark Kettenis <kettenis@gnu.org>
5843
5844 * vax-tdep.c (vax_return_value): Implement
5845 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5846
caed1a45
MK
58472004-05-17 Mark Kettenis <kettenis@gnu.org>
5848
5849 * vax-tdep.c (vax_return_value): Fix typo.
5850
3c0b7db2
AC
58512004-05-17 Andrew Cagney <cagney@redhat.com>
5852
5aae53e5
AC
5853 * MAINTAINERS: Mark Salter was also responsible for
5854 testsuite/config/
5855
3c0b7db2
AC
5856 * NEWS: Mention signal fixes.
5857
22b0923d
RC
58582004-05-17 Randolph Chung <tausq@debian.org>
5859
5860 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
5861 check to see if we are unwinding an export stub. Export stubs clobber
5862 the %rp in the call path and stores the original rp in a stack slot.
5863
22f2b2f3
JB
58642004-05-17 Jim Blandy <jimb@redhat.com>
5865
5866 * MAINTAINERS: Update address for J.T. Conklin.
5867
cea96d64
RC
58682004-05-17 Randolph Chung <tausq@debian.org>
5869
5870 * hppa-tdep.c: Remove superfluous #include's.
5871 * Makefile.in (hppa-tdep.o): Update dependencies.
5872
f08f6a4a
RC
58732004-05-17 Randolph Chung <tausq@debian.org>
5874
5875 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
5876 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
5877 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
5878 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
5879 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
5880 Remove static function declarations.
5881
51da707a
MK
58822004-05-17 Mark Kettenis <kettenis@gnu.org>
5883
caed1a45
MK
5884 * alphabsd-nat.c: Update copyright year.
5885 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
5886
c0c2b0db
MK
5887 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
5888 and M68K_A2_REGNUM.
5889
51da707a
MK
5890 * m68k-tdep.c (m68k_svr4_return_value): Implement
5891 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5892
8d027a04
MK
58932004-05-16 Mark Kettenis <kettenis@gnu.org>
5894
5895 * sol-thread.c Update copyright year. Fix various coding
5896 standards violations. Tweak a few comments.
5897 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
5898 Delete prototypes.
5899
0d99fdb9
RC
59002004-05-15 Randolph Chung <tausq@debian.org>
5901
5902 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
5903 as pointer instead of array reference since HPUX compiler does
5904 not accept unsized array arguments.
5905 * somsolib.c (dld_flags_buffer): Use constant array size.
5906
f7e3843a
MK
59072004-05-15 Mark Kettenis <kettenis@gnu.org>
5908
0fe85704
MK
5909 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
5910 offset with decimal offset.
5911 (amd64obsd_sigcontext_addr): Return correct address for entire
5912 signal trampoline.
5913
a54f9a00
MK
5914 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
5915 instead of get_frame_base.
5916
feae6502
MK
5917 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
5918 (fill_gregset): Use regcache_raw_collect.
5919
0382d099
MK
5920 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
5921 ppcobsd-tdep.c.
5922
f7e3843a
MK
5923 * config/sparc/tm-nbsd64.h: Remove file.
5924 * config/tm-sunos.h: Remove file.
5925
773df3e5
JB
59262004-05-15 Joel Brobecker <brobecker@gnat.com>
5927
5928 * rs6000-tdep.c (store_param_on_stack_p): New function,
5929 an improved version of some code extracted from skip_prologue().
5930 (skip_prologue): Use store_param_on_stack_p() to detect
5931 instructions saving a parameter on the stack. Detect when r0
5932 is used to save a parameter.
5933 Do not mark "li rx, SIMM" instructions as part of the prologue,
5934 unless the following instruction is also part of the prologue.
5935
95918acb
AC
59362004-05-14 Andrew Cagney <cagney@redhat.com>
5937
06f32659
AC
5938 * infrun.c (handle_inferior_event): Simplify
5939 STEP_OVER_UNDEBUGGABLE.
5940
95918acb
AC
5941 * infrun.c (handle_step_into_function): Delete function.
5942 (handle_inferior_event): Inline calls to
5943 handle_step_into_function.
5944
40711ff1 59452004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
5946
5947 * rs6000-nat.c: Fix a comment.
5948
02f60eae
JB
59492004-05-12 David Anderson <davea@sgi.com>
5950
5951 Committed by Jim Blandy <jimb@redhat.com>:
5952 * regcache.c (struct regcache_descr): fix comment spelling.
5953
552e377b
JB
59542004-05-13 J. Brobecker <brobecker@gnat.com>
5955
5956 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
5957 Fixes a link link failure.
5958
349766b2
JB
59592004-05-13 J. Brobecker <brobecker@gnat.com>
5960
5961 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
5962 error that was causing the build to fail.
5963
0d4d5484
JB
59642004-05-13 J. Brobecker <brobecker@gnat.com>
5965
5966 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
5967 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
5968
0b30808c
AC
59692004-05-13 Andrew Cagney <cagney@redhat.com>
5970
5971 * infrun.c (handle_inferior_event): Check for
5972 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
5973 calls. Update comments.
5974
cdf2c5f5
JB
59752004-05-13 Jim Blandy <jimb@redhat.com>
5976
063715bf
JB
5977 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
5978 (fetch_regs_user_thread, fetch_regs_kernel_thread)
5979 (store_regs_user_thread, store_regs_kernel_thread): Use
5980 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
5981 * ppc-linux-nat.c (fill_gregset): Same.
5982 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
5983 (ppc_linux_sigtramp_cache): Same.
5984 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
5985 (ppcnbsd_sigtramp_cache_init): Same.
5986 * rs6000-nat.c (fetch_core_registers): Same.
5987 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
5988 (rs6000_frame_cache): Same.
5989
cdf2c5f5
JB
5990 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
5991 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
5992 of assuming that the gprs are numbered starting with zero.
5993 * ppc-linux-nat.c (fill_gregset): Same.
5994 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
5995 * ppcnbsd-nat.c (getregs_supplies): Same.
5996 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
5997 * rs6000-nat.c (fetch_core_registers): Same.
5998 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
5999
450bd37b
MS
60002004-05-07 Michael Snyder <msnyder@redhat.com>
6001
6002 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
6003 LOC_COMPUTED_ARG, and LOC_INDIRECT.
6004
4a72a2a6
AC
60052004-05-13 Andrew Cagney <cagney@redhat.com>
6006
6007 * infrun.c (handle_inferior_event): Use frame_unwind_id.
6008
8edfa926
BM
60092004-05-13 Bryce McKinlay <mckinlay@redhat.com>
6010
6011 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
6012 base_address for shared libraries.
6013
723e0e3d
BM
60142004-05-13 Bryce McKinlay <mckinlay@redhat.com>
6015
6016 * MAINTAINERS (write after approval): Add myself.
6017
00d4360e
UW
60182004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6019
6020 * breakpoint.c (bpstat_stop_status): Add new argument
6021 STOPPED_BY_WATCHPOINT. Use it instead of testing
6022 target_stopped_data_address agaist 0 to check whether
6023 or not we stopped due to a hardware watchpoint.
6024 * breakpoint.h (bpstat_stop_status): Adapt prototype.
6025 * infrun.c (handle_inferior_event): Call bpstat_stop_status
6026 with new argument.
6027
ec76baa5
JB
60282004-05-12 Jim Blandy <jimb@redhat.com>
6029
6030 * configure.in: When checking whether we should use the -bbigtoc
6031 option, don't forget to restore the original value of LDFLAGS.
6032 * configure: Regenerated.
6033
f2c9ca08
AC
60342004-05-12 Andrew Cagney <cagney@redhat.com>
6035
6036 * thread.c (load_infrun_state): Delete step_sp.
6037 * infrun.c (context_switch): Ditto.
6038 * inferior.h (step_sp): Ditto.
6039 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
6040 * gdbthread.h (struct thread_info, save_infrun_state)
6041 (restore_infrun_state): Ditto.
6042
090ddb2a
UW
60432004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
6044
6045 * MAINTAINERS (write after approval): Add myself.
6046
8aad930b
AC
60472004-05-12 Andrew Cagney <cagney@redhat.com>
6048
6049 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
6050 eliminate reference to step_sp.
6051 (struct execution_control_state, init_execution_control_state)
6052 (handle_inferior_event, keep_going): Delete update_step_sp and
6053 step_sp.
6054 * infcmd.c (step_sp): Note that variable is unused.
6055
922d5ae0
AC
60562004-05-11 Andrew Cagney <cagney@redhat.com>
6057
6058 * infrun.c (step_over_function): Delete function.
6059 (handle_step_into_function): Use insert_step_resume_breakpoint.
6060 (insert_step_resume_breakpoint): Fix assertion.
6061
017c5ca5
NR
60622004-05-11 Nick Roberts <nickrob@gnu.org>
6063
6064 * utils.c (defaulted_query): Just use the normal query input type
6065 when printing the annotations.
6066
42edda50
AC
60672004-05-11 Andrew Cagney <cagney@redhat.com>
6068
6069 * infrun.c (handle_inferior_event): Simplify code handling
6070 step-into or return-from a signal trampoline.
6071
d28b44a7
AC
60722004-05-11 Andrew Cagney <cagney@redhat.com>
6073
6074 * ppcnbsd-tdep.c: Include "gdb_assert.h".
6075 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
6076
383f0f5b
JB
60772004-05-10 Jim Blandy <jimb@redhat.com>
6078
d0b57c3a
JB
6079 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
6080 with a call to internal_error.
6081
383f0f5b
JB
6082 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
6083 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
6084 processor variant lacks those registers.
6085 (ppc_floating_point_unit_p): Change description to make it clear
6086 that this returns info about the ISA, not the ABI.
6087 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
6088 return true or false by checking tdep->ppc_fp0_regnum and
6089 tdep->ppc_fpscr_regnum. The original code replicated the BFD
6090 arch/mach switching done in rs6000_gdbarch_init; it's better to
6091 keep that logic there, and just check the results here.
6092 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
6093 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
6094 floating-point registers.
6095 (ppc_supply_fpregset, ppc_collect_fpregset)
6096 (rs6000_push_dummy_call, rs6000_extract_return_value)
6097 (rs6000_store_return_value): Assert that we have floating-point
6098 registers.
6099 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
6100 (rs6000_frame_cache): Don't note the locations at which
6101 floating-point registers were saved if we have no fprs.
6102 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
6103 registers.
6104 (fetch_regs_user_thread, fetch_regs_kernel_thread)
6105 (store_regs_user_thread, store_regs_kernel_thread): Only call
6106 supply_fprs / fill_fprs if we actually have floating-point
6107 registers.
6108 (special_register_p): Check ppc_fpscr_regnum before matching
6109 against it.
6110 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
6111 supply / collect fpscr if we don't have it.
6112 * ppc-bdm.c: #include "gdb_assert.h".
6113 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
6114 have floating-point registers, since I can't test this code on
6115 FP-free systems to adapt it.
6116 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
6117 fpscr and floating point register numbers if they don't exist.
6118 (fetch_register): Assert that we have floating-point registers
6119 before we reach the code that handles them.
6120 (store_register): Same. And use tdep instead of calling
6121 gdbarch_tdep again.
6122 (fill_fpregset): Don't try to collect FP registers and fpscr if we
6123 don't have them.
6124 (ppc_linux_sigtramp_cache): Don't record the saved locations of
6125 fprs and fpscr if we don't have them.
6126 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
6127 don't have them.
6128 * ppcnbsd-nat.c: #include "gdb_assert.h".
6129 (getfpregs_supplies): Assert that we have floating-point registers.
6130 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
6131 * ppcobsd-tdep.c: #include "gdb_assert.h".
6132 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
6133 have floating-point registers.
6134 * rs6000-nat.c (regmap): Don't match against the fpscr and
6135 floating point register numbers if they don't exist.
6136 (fetch_inferior_registers, store_inferior_registers,
6137 fetch_core_registers): Only fetch / store / supply the
6138 floating-point registers and the fpscr if we have them.
6139 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
6140 (ppcobsd-tdep.o): Update dependencies.
6141
15960608
AC
61422004-05-10 Andrew Cagney <cagney@redhat.com>
6143
6144 * infrun.c (through_sigtramp_breakpoint): Delete variable.
6145 (context_switch): Do not switch through_sigtramp_breakpoint.
6146 * gdbthread.h (save_infrun_state, load_infrun_state)
6147 (struct thread_info): Delete through_sigtramp_breakpoint parameter
6148 and structure member.
6149 * thread.c (load_infrun_state, save_infrun_state): Update.
6150
5ab5aa0f
MK
61512004-05-10 Mark Kettenis <kettenis@gnu.org>
6152
6153 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
6154
da78b0e7
DJ
61552004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6156
6157 * acinclude.m4: Quote macro names being defined by AC_DEFUN
6158 throughout.
6159 * aclocal.m4: Regenerate.
6160
cca0d3b0
NW
61612004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
6162
6163 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
6164
d303a6c7
AC
61652004-05-10 Andrew Cagney <cagney@redhat.com>
6166
6167 * infrun.c (check_sigtramp2): Delete function.
6168 (handle_inferior_event): When single stepping, and taking a
6169 signal, set a breakpoint at the signal return address. Delete
6170 redundant calls to check_sigtramp2.
6171 (insert_step_resume_breakpoint): New function.
6172 (through_sigtramp_breakpoint, handle_inferior_event)
6173 (follow_exec, wait_for_inferior, fetch_inferior_event)
6174 (currently_stepping, keep_going): Delete most uses of
6175 through_sigtramp_breakpoint, not that it should be deleted.
6176 (delete_breakpoint_current_contents): Delete function.
6177
03f4cc20
RC
61782004-05-10 Randolph Chung <tausq@debian.org>
6179
6180 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
6181 target.
6182 * config/pa/tm-linux.h: New file.
6183
37fc812e
DJ
61842004-05-10 Daniel Jacobowitz <drow@mvista.com>
6185
6186 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
6187 of prefixes. Don't print the prefix twice in the CLI.
6188
26c0b942
JB
61892004-05-10 Jim Blandy <jimb@redhat.com>
6190
2e56e9c1
JB
6191 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
6192 collect all the gprs.
6193
26c0b942
JB
6194 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
6195 loop collecting gprs.
6196
dc497459
AC
61972004-05-09 Andrew Cagney <cagney@redhat.com>
6198
6199 * remote-vx.c (net_step): Delete step-range code.
6200 * remote.c (remote_resume, init_all_packet_configs)
6201 (set_remote_protocol_E_packet_cmd)
6202 (show_remote_protocol_E_packet_cmd)
6203 (remote_protocol_E, show_remote_cmd, _initialize_remote)
6204 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
6205 (show_remote_protocol_e_packet_cmd): Ditto.
6206
0543f387
MK
62072004-05-09 Mark Kettenis <kettenis@gnu.org>
6208
c481d1ca
MK
6209 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
6210
f626a069
MK
6211 * hppa-tdep.h: Update copyright year.
6212 (struct trad_frame_saved_reg): Add opaque declaration.
6213
6fa57a7d
MK
6214 * amd64-tdep.c (amd64_return_value): Implement
6215 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6216
e47577ab
MK
6217 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
6218 (m68k_value_to_register): New functions.
6219 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
6220 value_to_register.
6221
31db7b6c
MK
6222 * defs.h (enum return_value_convention): Add
6223 RETURN_VALUE_ABI_RETURNS_ADDRESS and
6224 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
6225 * infcmd.c (legacy_return_value): New function.
6226 (print_return_value): Rwerite to implement
6227 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6228 * values.c (using_struct_return): Check for inequality to
6229 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
6230 RETURN_VALUE_STRUCT_CONVENTION.
6231 * i386-tdep.c (i386_return_value): Implement
6232 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6233
0543f387
MK
6234 * vax-tdep.c: Tweak comments. Reorder include files. Don't
6235 include "symtab.h", "opcode/vax.h" and "inferior.h".
6236 (vax_skip_prologue): Replace calls to read_memory_integer by calls
6237 to read_memory_unsigned_integer.
6238 (vax_gdbarch_init): Reorder.
6239 (_initialize_vax_tdep): Spell out prototype.
6240 * Makefile.in (vax-tdep.o): Update dependencies.
6241
0c93b7b6
AC
62422004-05-08 Andrew Cagney <cagney@redhat.com>
6243
e6b55ae2
AC
6244 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
6245 * target.c (target_detach, target_disconnect): Ditto.
6246
1ac839b8
AC
6247 * infcall.c (call_function_by_hand): When no
6248 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
6249 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
6250 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
6251 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6252 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6253
28954179
AC
6254 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
6255 * gdbarch.h, gdbarch.c: Re-generate.
6256 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6257 deprecated_fix_call_dummy.
6258 * v850-tdep.c (v850_gdbarch_init): Ditto.
6259 * infcall.c (call_function_by_hand): Do not call
6260 DEPRECATED_FIX_CALL_DUMMY.
6261
434b87dd
AC
6262 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
6263 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
6264 * gdbarch.h, gdbarch.c: Re-generate.
6265 * arm-linux-tdep.c (arm_linux_call_dummy_words)
6266 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
6267 deprecated_sizeof_call_dummy_words.
6268 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
6269 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6270 * v850-tdep.c (v850_gdbarch_init): Ditto.
6271 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
6272 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
6273 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6274 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6275 * arch-utils.h (legacy_call_dummy_words)
6276 (legacy_sizeof_call_dummy_words): Delete declarations.
6277 * arch-utils.c (legacy_call_dummy_words)
6278 (legacy_sizeof_call_dummy_words): Delete variables.
6279
58d28df8
AC
6280 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
6281 * gdbarch.h, gdbarch.c: Re-generate.
6282 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
6283 * infcall.c (call_function_by_hand): Eliminate call to
6284 DEPRECATED_PUSH_DUMMY_FRAME.
6285 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6286 push_dummy_frame.
6287 (ns32k_push_dummy_frame): Delete function.
6288
e4a2df64
AC
6289 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6290 deprecated_call_dummy_breakpoint_offset or
6291 deprecated_call_dummy_start_offset.
6292 * dummy-frame.c, arm-tdep.c: Update comments.
6293 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
6294 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
6295 * gdbarch.h, gdbarch.c: Re-generate.
6296
d3712828
AC
6297 * infcall.c (legacy_push_dummy_code): Delete function.
6298 (push_dummy_code): Delete call.
6299
7a882905
AC
6300 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
6301 * gdbarch.h, gdbarch.c: Re-generate.
6302 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
6303 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
6304 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
6305 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
6306
0ec5872b
AC
6307 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
6308 (struct frame_info): Delete opaque declaration.
6309 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
6310 * frame.c (get_frame_type): Delete call.
6311
0c93b7b6
AC
6312 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6313 pc_in_call_dummy.
6314 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
6315 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
6316
75536971
MK
63172004-05-08 Mark Kettenis <kettenis@gnu.org>
6318
527ca6bb
MK
6319 * alphanbsd-tdep.c: Include "gdb_string.h".
6320 * armnbsd-tdep.c: Update copyright year.
6321 Include "gdb_string.h".
6322 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
6323 dependencies.
6324
d39fdc61
MK
6325 * delta68-nat.c: Remove file.
6326 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
6327 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
6328 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
6329 (delta68-nat.o): Remove dependency.
6330
75536971
MK
6331 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
6332 function.
6333 (m68k_gdbarch_init): Don't set
6334 deprecated_frameless_function_invocation.
6335
f4ca1d1f
RC
63362004-05-07 Randolph Chung <tausq@debian.org>
6337
6338 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
6339 read_memory_nobpt for code reading when doing frame unwinding.
6340 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
6341
2f0e8c7a
RC
63422004-05-07 Randolph Chung <tausq@debian.org>
6343
6344 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
6345 instead of sp, handle sigaltstack case.
6346 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
6347 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
6348 signal handler and not that of the caller.
6349 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
6350 hppa_linux_sigtramp_find_sigcontext.
6351
959464ff
RC
63522004-05-07 Randolph Chung <tausq@debian.org>
6353
6354 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
6355 hppa-linux-nat.c.
6356 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
6357 * hppa-linux-nat.c (fetch_register, store_register): Define.
6358 (fetch_inferior_registers, store_inferior_registers): Define.
6359 (supply_gregset): Add comment and clean up some unneeded code.
6360 (fill_gregset): Add comment and fix so that it saves registers in
6361 the right place in the gregset.
6362 (fill_fpregset): Fix buffer overrun problem.
6363 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
6364
0da28f8a
RC
63652004-05-07 Randolph Chung <tausq@debian.org>
6366
6367 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
6368 do common handling of the pcoqt register.
6369 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
6370 to use helper function.
6371 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
6372 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
6373 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
6374 generic fallback unwinder when all else fails.
6375 (hppa_gdbarch_init): Add fallback sniffer.
6376 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
6377 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
6378 to use helper function.
6379
b9ec757a
JB
63802004-05-08 Joel Brobecker <brobecker@gnat.com>
6381
6382 * config/djgpp/fnchange.lst: Add translation rules for
6383 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
6384
756e95f1
MK
63852004-05-08 Mark Kettenis <kettenis@gnu.org>
6386
6387 * frame.c (get_prev_frame_1): Work around GCC bug.
6388 * frame.h: Add comment about GCC bug.
6389
2b4855ab
AC
63902004-05-07 Andrew Cagney <cagney@redhat.com>
6391
6392 * observer.c: Include "commands.h" and "gdbcmd.h".
6393 (observer_debug, _initialize_observer): Add the
6394 command "set/show debug observer".
6395 * observer.sh: When observer debugging, log notify calls.
6396 * Makefile.in (observer.o): Update dependencies.
6397
ba3e8e46
JM
63982004-05-07 Jason Molenda (jmolenda@apple.com)
6399
6400 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
6401
16796152
JB
64022004-05-07 Jim Blandy <jimb@redhat.com>
6403
daf6dc85
JB
6404 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
6405 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
6406 to recognize gpr regnums, instead of assuming that
6407 tdep->ppc_fp0_regnum marks the end of the general-purpose
6408 registers.
6409
16796152
JB
6410 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
6411 the given architecture has floating-point registers.
6412
c69b8bfc
AC
64132004-05-07 Andrew Cagney <cagney@redhat.com>
6414
6415 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
6416 macro defined to 1.
6417 * gdbarch.h, gdbarch.c: Re-generate.
6418 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6419 deprecated_use_generic_dummy_frames.
6420
7243600a
BF
64212004-05-07 Brian Ford <ford@vss.fsi.com>
6422
6423 * NEWS: Mention Cygwin DWARF 2 support.
6424
73c1e0a1
AC
64252004-05-07 Andrew Cagney <cagney@redhat.com>
6426
6427 * objfiles.h (struct entry_info): Delete unused fields
6428 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
6429 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
6430 * mipsread.c (mipscoff_symfile_read): Update.
6431 * mdebugread.c (parse_partial_symbols): Update.
6432 * dwarfread.c (read_file_scope): Update.
6433 * dwarf2read.c (read_file_scope): Update.
6434 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
6435 * coffread.c (complete_symtab): Update.
6436
1d3056ac
MK
64372004-05-07 Mark Kettenis <kettenis@gnu.org>
6438
6439 * infcall.c (_initialize_infcall): Fix typo.
6440
15170568
AC
64412004-05-07 Andrew Cagney <cagney@redhat.com>
6442
6443 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
6444 * command.h (add_setshow_zinteger_cmd): Declare.
6445
34f75cc1
RC
64462004-05-06 Randolph Chung <tausq@debian.org>
6447
6448 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
6449 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
6450 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
6451 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
6452 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
6453 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
6454 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
6455 definitions ...
6456 * hppa-tdep.h: ... to here, with HPPA_ prefix.
6457 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
6458 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
6459 (hppa64_hpux_frame_find_saved_regs_in_sig)
6460 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
6461 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
6462 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
6463 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
6464 (hppa_linux_sigtramp_frame_prev_register): Likewise.
6465 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
6466 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
6467 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
6468 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
6469 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
6470 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
6471 (hppa32_register_type, hppa_cannot_store_register)
6472 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
6473 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
6474 * hpread.c (hpread_process_one_debug_symbol): Likewise.
6475 * pa64solib.c (pa64_solib_have_load_event)
6476 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
6477 (pa64_solib_unloaded_library_pathname): Likewise.
6478 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
6479 (som_solib_library_pathname): Likewise.
6480
0a5e7efe
JI
64812004-05-05 Jim Ingham <jingham@apple.com>
6482
6483 * breakpoint.c (create_breakpoints): Copy the ignore count and
6484 thread id over from the pended breakpoint to the actual
6485 breakpoint.
6486
10a4b113
AC
64872004-05-05 Andrew Cagney <cagney@redhat.com>
6488
6489 * gdbarch.sh (PARM_BOUNDARY): Delete.
6490 gdbarch.h, gdbarch.c: Re-generate.
6491 * valops.c (PARM_BOUNDARY): Delete macro.
6492 (value_push): Delete PARM_BOUNDARY code.
6493 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
6494
366f009f
JB
64952004-05-04 Jim Blandy <jimb@redhat.com>
6496
32b99774
JB
6497 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
6498 Don't assume that the gprs, fprs, and UISA sprs are
6499 contiguous, start at register number zero, and end with fpscr.
6500 Instead, use the numbers from the tdep structure.
6501
366f009f
JB
6502 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
6503 should no longer be used in code specific to the RS6000 and its
6504 derivatives.
6505 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
6506 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
6507 tdep->ppc_fp0_regnum.
6508 (ppc_supply_fpregset, ppc_collect_fpregset)
6509 (rs6000_push_dummy_call, rs6000_extract_return_value)
6510 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
6511 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
6512 FP0_REGNUM.
6513 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
6514 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
6515 Same.
6516 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
6517 bdm_ppc_store_registers): Same.
6518 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
6519 (store_register, fill_fpregset): Same.
6520 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
6521 (ppc_linux_supply_fpregset): Same.
6522 * ppcnbsd-nat.c (getfpregs_supplies): Same.
6523 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
6524 Same.
6525 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
6526 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
6527 ppc64_sysv_abi_return_value): Same.
6528 * rs6000-nat.c (regmap, fetch_inferior_registers)
6529 (store_inferior_registers, fetch_core_registers): Same.
6530
827f338d
MK
65312004-05-01 Mark Kettenis <kettenis@gnu.org>
6532
6533 * m68knbsd-nat.c: Remove file.
6534 * m68knbsd-tdep.c: Remove file.
6535 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
6536 dependencies.
6537 * configure.host: Add m68k-*-netbsdelf*.
6538 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
6539 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
6540 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
6541 (XM_FILE): Remove.
6542 * config/m68k/nbsdelf.mh: New file.
6543 * config/m68k/nbsd.mt: New file.
6544 * config/m68k/nbsdaout.mt: Remove file.
6545 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
6546 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
6547 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
6548 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
6549 (use_struct_convention): Remove prototype.
6550 (USE_STRUCT_CONVENTION): Remove define.
6551 * config/m68k/xm-nbsd.h: Remove file.
6552
66894781
MS
65532004-05-04 Michael Snyder <msnyder@redhat.com>
6554
6555 * m68k-tdep.c (m68k_gdbarch_init): Default to using
6556 reg_struct_return method (as gcc usually does for cross targets).
6557
f0f63663
AC
65582004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6559
6560 Committed by Andrew Cagney.
6561 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
6562 alignment padding when accessing ucontext struct members.
6563
edf61169
JB
65642004-05-04 Jim Blandy <jimb@redhat.com>
6565
8bf659e8
JB
6566 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
6567 'ppc_gplast_regnum' member.
6568 (ppc_num_gprs): New enum constant.
6569 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
6570 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
6571 * rs6000-nat.c (regmap, fetch_inferior_registers,
6572 store_inferior_registers): Same.
6573 * rs6000-tdep.c (e500_pseudo_register_read)
6574 (e500_pseudo_register_write): Same.
6575 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
6576
b967e06f
JB
6577 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
6578 * ppc-tdep.h (ppc_num_fprs): New enum constant.
6579 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
6580 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
6581 FPLAST_REGNUM.
6582 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6583 Same.
6584 * ppc-linux-nat.c (ppc_register_u_addr): Same.
6585 * rs6000-nat.c (regmap, fetch_inferior_registers)
6586 (store_inferior_registers): Same.
6587
edf61169
JB
6588 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
6589 with FPLAST_REGNUM.
6590
58a9656e
JB
65912004-05-03 Joel Brobecker <brobecker@gnat.com>
6592
6593 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
6594 failure detected by recent versions of GCC.
6595 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
6596 to be consistent with the usage in dwarf2_create_include_psymtab.
6597
dc305454
MS
65982004-05-03 Michael Snyder <msnyder@redhat.com>
6599
6600 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
6601 (heuristic_proc_start): Whitespace cleanup.
6602
29972665
MK
66032004-05-04 Mark Kettenis <kettenis@gnu.org>
6604
6b57680d
MK
6605 * sun3-nat.c: Remove file.
6606 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
6607 dependencies.
6608 (ALLDEPFILES): Remove sun3-nat.c.
6609 (sun3-nat.o): Remove dependencies.
6610
29972665
MK
6611 * i386-interix-nat.c, i386-interix-tdep.c,
6612 config/i386/nm-interix.h, config/i386/interix.mh,
6613 config/i386/interix.mt: Remove files.
6614 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
6615 dependencies.
6616
f595cb19
MK
66172004-05-03 Mark Kettenis <kettenis@gnu.org>
6618
6619 * m68k-tdep.h (struct gdbarch_tdep): Add member
6620 struct_value_regnum.
6621 (m68k_svr4_init_abi): New prototype.
6622 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
6623 different calling conventions.
6624 (m68k_extract_return_value): Remove code dealing with single-field
6625 structs.
6626 (m68k_store_return_value): Remove code dealing with single-field
6627 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
6628 (m68k_extract_struct_value_address): Remove function.
6629 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
6630 (m68k_reg_struct_return_p, m68k_return_value)
6631 (m68k_svr4_return_value): New functions.
6632 (m68k_use_struct_convention): Remove function.
6633 (m68k_push_dummy_call): Use new struct_value_regnum member of
6634 `struct gdbarch_tdep' instead of hardcoded register number to
6635 store STRUCT_ADDR.
6636 (m68k_svr4_init_abi): New function.
6637 (m68k_gdbarch_init): Don't set extract_return_value,
6638 store_return_values, deprecated_extract_struct_value_address and
6639 use_struct_convention. Set return_value instead. Initialize new
6640 struct_value_regnum member of `struct gdbarch_tdep'.
6641 * m68klinux-tdep.c: Update copyright year.
6642 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
6643 (m68k_linux_extract_struct_value_address): Remove function.
6644 (m68k_linux_init_abi): Don't set extract_return_value,
6645 store_return_values, deprecated_extract_struct_value_address and
6646 use_struct_convention. Call m68k_svr4_init_abi but override the
6647 new struct_value_regnum member of `struct gdbarch_tdep'.
6648 * Makefile.in (m68k-tdep.o): Update dependencies.
6649
aaa75496
JB
66502004-05-03 J. Brobecker <brobecker@gnat.com>
6651
6652 * dwarf2read.c (line_header): Add new included_p field in
6653 field file_names.
6654 (partial_die_info): New field has_stmt_list. New field line_offset.
6655 (dwarf2_create_include_psymtab): New function.
6656 (dwarf2_build_include_psymtabs): New function.
6657 (add_file_name): Add forward declaration. Initialize new field.
6658 (dwarf_decode_lines): Add new parameter. Enhance this procedure
6659 to be able to determine the list of files included by the
6660 given unit, and build their associated psymtabs.
6661 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
6662 files as well.
6663 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
6664 (read_file_scope): Update call to dwarf_decode_lines.
6665 (read_partial_die): Handle DW_AT_stmt_list attributes.
6666
c848556f
MC
66672004-05-02 Michael Chastain <mec.gnu@mindspring.com>
6668
6669 Unfix PR gdb/1626.
6670 * configure.in: Revert special case for osf5.*.
6671 * configure: Regenerate.
6672
eb4556d7
JB
66732004-05-02 Jim Blandy <jimb@redhat.com>
6674
6675 Move the symbol-file-from-memory functions into their own file.
6676 * symfile-mem.c, symfile-mem.h: New files.
6677 * symfile.c (symbol_file_add_from_bfd): New function.
6678 (symbol_file_add): Call symbol_file_add_from_bfd.
6679 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
6680 Moved to symfile-mem.c.
6681 (_initialize_symfile): Move definition of
6682 add-symbol-file-from-memory command to symfile-mem.c.
6683 * symfile.h (symbol_file_add_from_bfd): New declaration.
6684 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
6685 * config/powerpc/linux.mt (TDEPFILES): Same.
6686 * Makefile.in (SFILES): Add symfile-mem.c.
6687 (symfile_mem_h): New variable.
6688 (HFILES_NO_SRCDIR): Add symfile-mem.h.
6689 (symfile-mem.o): New rule.
6690
80bb239e
AC
66912004-05-01 Andrew Cagney <cagney@redhat.com>
6692
7789d0fa
AC
6693 * breakpoint.c (insert_bp_location): Use get_frame_id, and
6694 frame_find_by_id instead of frame_relative_level.
6695 (do_enable_breakpoint): Ditto.
6696 * thread.c: Update copyright.
6697 (info_threads_command): Ditto, simplify.
6698
80bb239e
AC
6699 * frame.c (deprecated_generic_get_saved_register): Delete
6700 function, moved to "xstormy16-tdep.c".
6701 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
6702 deprecated_generic_get_saved_register from "frame.c".
6703 (xstormy16_frame_saved_register): Call
6704 xstormy16_get_saved_register.
6705 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
6706 static.
6707 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
6708 * frame.h (deprecated_generic_get_saved_register): Delete.
6709
b2a871dd
MC
67102004-05-01 Michael Chastain <mec.gnu@mindspring.com>
6711
6712 * dwarfread.c: Update documentation on the state of dwarf-1.
6713
0e100dab
AC
67142004-05-01 Andrew Cagney <cagney@redhat.com>
6715
acd8056e
AC
6716 * stack.c (select_frame_command): Delete call to
6717 frame_relative_level.
6718 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
6719 Delete #if0 code.
6720 (frame_info): Do not print FRAMELESS.
6721 (print_block_frame_labels): Replace DEPRECATED_STREQ.
6722 (catch_info): Delete #if0 code.
6723
0e100dab
AC
6724 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
6725 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
6726 of frame_relative_level.
6727 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
6728 to SENTINEL_FRAME.
6729 * frame.h (enum frame_type): Add SENTINEL_FRAME.
6730 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
6731 frame_relative_level.
6732
55699d59
AC
6733 * frame.h (deprecated_set_frame_type): Delete declaration.
6734 * frame.c (deprecated_set_frame_type): Delete function, update
6735 comments.
6736
fcf70625
AC
6737 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
6738 * gdbarch.h, gdbarch.c: Re-generate.
6739 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
6740 (shnbsd_pc_in_sigtramp): Delete.
6741 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
6742 pc_in_sigtramp.
6743 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
6744 pc_in_sigtramp.
6745 * frame.h: Update comments.
6746 * ppc-linux-tdep.c: Update comments.
6747 * breakpoint.c (bpstat_what): Update comments.
6748
ac5eccb7
AC
6749 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
6750 m68klinux-tdep.o's dependencies, were previously added to
6751 m68klinux-nat.o.
6752
f2524b93
AC
6753 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
6754 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
6755 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6756 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6757 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6758
17e20bce
AC
6759 * Makefile.in (m68klinux-nat.o): Update dependencies.
6760 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6761 (m68k_linux_sigtramp_frame_cache)
6762 (m68k_linux_sigtramp_frame_this_id)
6763 (m68k_linux_sigtramp_frame_prev_register)
6764 (m68k_linux_sigtramp_frame_unwind)
6765 (m68k_linux_sigtramp_frame_sniffer)
6766 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
6767 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
6768 names, use trad-frame.h.
6769 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
6770 (struct m68k_sigtramp_info): Delete.
6771 * m68k-tdep.c (m68k_sigtramp_frame_cache)
6772 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
6773 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
6774 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
6775 "m68klinux-tdep.c".
6776
c8864fa2
AC
6777 * infrun.c (check_sigtramp2): Delete check for
6778 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
6779
511dd2cd
MK
67802004-05-01 Mark Kettenis <kettenis@gnu.org>
6781
6782 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
6783
8c6b0e06
AC
67842004-05-01 Andrew Cagney <cagney@redhat.com>
6785
9df0bb3f
AC
6786 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6787 (frv_linux_sigtramp_frame_cache)
6788 (frv_linux_sigtramp_frame_this_id)
6789 (frv_linux_sigtramp_frame_prev_register)
6790 (frv_linux_sigtramp_frame_unwind)
6791 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
6792 include "linux" in function and variable names, directly call
6793 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
6794 the latest trad-frame code.
6795 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
6796 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
6797 * Makefile.in (frv-linux-tdep.o): Update dependencies.
6798 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
6799 * frv-tdep.c (frv_sigtramp_frame_cache)
6800 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
6801 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
6802 frv-linux-tdep.c.
6803 (frv_gdbarch_init): Do not append a sigtramp sniffer.
6804 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
6805 (frv_set_sigcontext_reg_addr): Delete function.
6806
8c6b0e06
AC
6807 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
6808 (DEPRECATED_SIGTRAMP_END): Delete.
6809 * gdbarch.h, gdbarch.c: Re-generate.
6810 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
6811 * config/vax/tm-vaxbsd.h: Update copyright.
6812 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6813 (DEPRECATED_IN_SIGTRAMP): Define.
6814 * config/m68k/tm-nbsd.h: Update copyright.
6815 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6816 (DEPRECATED_IN_SIGTRAMP): Define.
6817
50ea7769
MK
68182004-05-01 Mark Kettenis <kettenis@gnu.org>
6819
03ac2a74
MK
6820 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
6821 encondings. Fixes PR gdb/1628.
6822
50ea7769
MK
6823 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
6824 DW_CFA_restore state without a matching DW_CFA_remember_state
6825 instead of aborting. Fixes PR backtrace/1589.
6826
9a5d7be1
JB
68272004-04-30 Joel Brobecker <brobecker@gnat.com>
6828
6829 * MAINTAINERS: Add self as AIX maintainer.
6830 Update my e-mail address in write-after-approval section.
6831
2593d1cd
AC
68322004-04-30 Andrew Cagney <cagney@redhat.com>
6833
ce12bbf9
AC
6834 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
6835 (legacy_get_prev_frame): Ditto.
6836
36710c63
AC
6837 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
6838 (mips_gdbarch_init): Do not set pc_in_sigtramp.
6839 * mipsread.c (sigtramp_address): Delete extern variable.
6840 (mipscoff_new_init): Delete reference.
6841 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
6842 (fixup_sigtramp): Delete function.
6843 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
6844 (fixup_sigtramp): Delete declarations.
6845
2593d1cd
AC
6846 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
6847 deprecated_pc_in_sigtramp.
6848 (ppcnbsd_pc_in_sigtramp): Delete function.
6849
2a25f91c
MK
68502004-05-01 Mark Kettenis <kettenis@gnu.org>
6851
6852 * config/m68k/nm-nbsd.h: Tweak comments.
6853 * config/m68k/nm-nbsdaout.h: Likewise.
6854
0b281939
AC
68552004-04-30 Andrew Cagney <cagney@redhat.com>
6856
6857 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
6858 legacy_pc_in_sigtramp.
6859 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
6860
8f2d3ea0
MK
68612004-05-01 Mark Kettenis <kettenis@gnu.org>
6862
6863 Add OpenBSD/m68k support.
6864 * NEWS (New native configurations): Mention OpenBSD/m68k.
6865 * m68kbsd-tdep.c: New file.
6866 * m68kbsd-nat.c: New file.
6867 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
6868 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
6869 * configure.host: Add m68k-*-openbsd.
6870 * configure.tgt: Add m68k-*-openbsd.
6871 * config/m68k/tm-obsd.h: New file.
6872 * config/m68k/obsd.mt: New file.
6873 * config/m68k/obsd.mh: New file.
6874 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
6875 m68kbsd-tdep.c.
6876
c40f49a4
AC
68772004-04-30 Andrew Cagney <cagney@redhat.com>
6878
6879 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
6880 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
6881
e81554cd
MK
68822004-04-30 Mark Kettenis <kettenis@gnu.org>
6883
6884 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
6885 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
6886
d4dc1a91
BF
68872004-04-30 Brian Ford <ford@vss.fsi.com>
6888
6889 Revert 2004-04-16 change.
6890 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
6891 (i386_coff_init_abi): Remove.
6892 * i386-tdep.h (i386_coff_init_abi): Remove.
6893 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
6894
2f72f850
AC
68952004-04-30 Andrew Cagney <cagney@redhat.com>
6896
e492f9d6
AC
6897 * blockframe.c (find_pc_partial_function): Delete use of
6898 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
6899 DEPRECATED_SIGTRAMP_END.
6900
7b7adad0
AC
6901 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
6902 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
6903 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
6904 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
6905 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
6906
2f72f850
AC
6907 * defs.h (deprecated_inside_entry_file): Delete declaration.
6908 * blockframe.c (deprecated_inside_entry_file): Delete function.
6909 (legacy_frame_chain_valid): Delete call.
6910 * sh64-tdep.c (sh64_frame_chain): Delete call.
6911 * objfiles.h: Update comments.
6912 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
6913 call.
6914 * frame.c (get_prev_frame): Delete call, update comments.
6915
283f90a7
BF
69162004-04-30 Brian Ford <ford@vss.fsi.com>
6917
6918 * MAINTAINERS (Write After Approval): Add myself.
6919
8ee56bcf
AC
69202004-04-30 Andrew Cagney <cagney@redhat.com>
6921
6922 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
6923 * gdbarch.h, gdbarch.c: Re-generate.
6924 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
6925 code.
6926
ee27e1b6
AC
69272004-04-30 Andrew Cagney <cagney@redhat.com>
6928
6929 * gdb-events.sh (selected_thread_changed)
6930 (selected_frame_level_changed, target_changed): Delete.
6931 * gdb-events.h, gdb-events.c: Re-generate.
6932 * valops.c (value_assign): Update.
6933 * stack.c (select_frame_command, up_silently_base)
6934 (down_silently_base): Update.
6935
d5ac5a39
AC
69362004-04-29 Andrew Cagney <cagney@redhat.com>
6937
6938 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
6939 registers correctly.
6940 (print_gp_register_row, mips32_heuristic_proc_desc)
6941 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
6942 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
6943 references to mips_isa_regsize.
6944
ceae6e75
AC
69452004-04-29 Andrew Cagney <cagney@redhat.com>
6946
6947 * mips-tdep.c (struct gdbarch_tdep): Delete
6948 mips_fp_register_double.
6949 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
6950 mips_abi_regsize.
6951 (mips_gdbarch_init): Do not set mips_fp_register_double.
6952 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
6953
a587af0b
AC
69542004-04-29 Joel Brobecker <brobecker@gnat.com>
6955
6956 Committed by Andrew Cagney.
6957 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
6958 function calls.
6959
13326b4e
AC
69602004-04-29 Andrew Cagney <cagney@redhat.com>
6961
6962 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
6963 gdbarch, use mips_abi, update callers.
6964 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
6965 mips_abi_regsize, update callers.
6966 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
6967 mips_default_abi_regsize.
6968 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
6969 mips_default_abi_regsize.
6970
711cc5cd
AC
69712004-04-29 Andrew Cagney <cagney@redhat.com>
6972
1b13c4f6
AC
6973 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
6974 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
6975 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
6976 mips_default_abi_regsize.
6977 (mips_isa_regsize): Rename mips_regisze.
6978 * mipsnbsd-tdep.c: Update.
6979 * mips-linux-tdep.c: Update.
6980 * irix5-nat.c: Update.
6981 * mips-tdep.h (mips_isa_regsize): Update.
6982
711cc5cd
AC
6983 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
6984 Delete all disabled code.
6985 * gdb-events.h, gdb-events.c: Re-generate.
6986
e63bbc88
MK
69872004-04-19 Jerome Guitton <guitton@gnat.com>
6988 Mark Kettenis <kettenis@gnu.org>
6989
6990 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
6991 the function begins with a branch instruction.
6992
fd35795f
MK
69932004-04-29 Mark Kettenis <kettenis@gnu.org>
6994
6995 * i386-tdep.c: Fix spelling mistakes.
6996
c960c18f
AC
69972004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6998 Andrew Cagney <cagney@redhat.com>
6999
7000 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
7001 <sys/proc.h>.
7002 * acconfig.h: Provide default _KMEMUSER value.
7003 * config.in, configure: Re-generate.
7004 * NEWS: Mention fix.
7005
50306a9d
RC
70062004-04-24 Randolph Chung <tausq@debian.org>
7007
7008 * configure.host (hppa*-*-linux*): New target.
7009 * configure.tgt (hppa*-*-linux*): Likewise.
7010 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
7011 gdbarch_init_osabi() call earlier so that osabi-specific frame
7012 unwinders can be registered first.
7013 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
7014 hppa-linux-nat.c.
7015 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
7016 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
7017 * config/pa/linux.mh: New file.
7018 * config/pa/linux.mt: New file.
7019 * config/pa/nm-linux.h: New file.
7020 * config/pa/xm-linux.h: New file.
7021 * hppa-linux-nat.c: New file.
7022 * hppa-linux-tdep.c: New file.
7023
2a6228ef
RC
70242004-04-28 Randolph Chung <tausq@debian.org>
7025
7026 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
7027 return values.
7028 (hppa32_push_dummy_call): Fix small struct and floating point argument
7029 passing, and make sure the stack frame is properly aligned.
7030
82c10df6
AC
70312004-04-28 Andrew Cagney <cagney@redhat.com>
7032
d762c46a
AC
7033 * stack.c (print_stack_frame): Fix description.
7034
82c10df6
AC
7035 * NEWS: Mention gdb/gdbserver/configure execute permission
7036 changed. PR server/519.
7037
0faf0076
AC
70382004-04-28 Andrew Cagney <cagney@redhat.com>
7039
7040 * stack.c (print_stack_frame_stub): Delete declaration.
7041 (struct print_stack_frame_args, print_stack_frame)
7042 (print_frame_info, print_frame): Replace "source" with print what.
7043 Replace "print" with "print_level". Replace "args" with
7044 "print_args".
7045 * frame.h (show_and_print_stack_frame, print_stack_frame)
7046 (print_frame_info): Update declarations.
7047 * stack.c (select_and_print_frame, frame_command)
7048 (current_frame_command, up_command, down_command): Update calls -
7049 use get_selected_frame, pass "enum print_what" for source, do not
7050 call frame_relative_level.
7051 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
7052 * remote-rdp.c (remote_rdp_open): Ditto.
7053 * remote-mips.c (common_open): Ditto.
7054 * remote-e7000.c (e7000_start_remote): Ditto.
7055 * ocd.c (ocd_start_remote): Ditto.
7056 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
7057 * infrun.c (normal_stop): Ditto.
7058 * inflow.c (kill_command): Ditto.
7059 * infcmd.c (finish_command): Ditto.
7060 * corelow.c (core_open): Ditto.
7061 * tracepoint.c (finish_tfind_command): Ditto.
7062 * thread.c (info_threads_command, info_threads_command)
7063 (restore_current_thread, do_captured_thread_select): Ditto.
7064 * ada-tasks.c (task_command): Ditto.
7065
f4c5303c
OF
70662004-04-26 Orjan Friberg <orjanf@axis.com>
7067
7068 * frame.c: Include "observer.h".
7069 (frame_observer_target_changed): New function.
7070 (_initialize_frame): Attach target_changed observer.
7071 * regcache.c: Include "observer.h".
7072 (regcache_observer_target_changed): New function.
7073 (_initialize_regcache): Attach target_changed observer.
7074 * valops.c: Include "observer.h".
7075 (value_assign): Notify target_changed event when modifying register.
7076 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
7077
7270d8f2
OF
70782004-04-26 Orjan Friberg <orjanf@axis.com>
7079
7080 From Paul Koning <pkoning@equallogic.com>:
7081 * breakpoint.c (free_valchain): New function.
7082 (insert_bp_location, delete_breakpoint): Use free_valchain.
7083 (remove_breakpoint): Do not remove the valchain.
7084 (bpstat_stop_status): If not stopped by watchpoint, skip
7085 watchpoints when generating stop status list.
7086 * infrun.c (handle_inferior_event): Make
7087 stepped_after_stopped_by_watchpoint a global variable.
7088 * remote.c (remote_stopped_data_address): Return watch data
7089 address rather than zero if stepped_after_stopped_by_watchpoint is
7090 set.
7091
02d62932
MC
70922004-04-25 Michael Chastain <mec.gnu@mindspring.com>
7093
7094 Fix PR gdb/1626.
7095 * configure.in: Check for curses after termcap.
7096 On osf5.*, do not check for ncurses.
7097 * configure: Regenerate.
7098
3e9a183c
MK
70992004-04-25 Mark Kettenis <kettenis@gnu.org>
7100
c79ac407
MK
7101 * ppcobsd-nat.c: Include "ppc-tdep.h".
7102 * Makefile.in (ppcobsd-nat.o): Update dependencies.
7103
3e9a183c
MK
7104 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
7105 Fixes PR tdep/1623 and PR tdep/1624.
7106
38cc9c28
MC
71072004-04-24 Michael Chastain <mec.gnu@mindspring.com>
7108
7109 * xmodem.h, xmodem.c: Remove files.
7110 * Makefile.in: Remove references to xmodem.h, xmodem.c.
7111
7f07c5b6
RC
71122004-04-23 Randolph Chung <tausq@debian.org>
7113
7114 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
7115 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
7116 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
7117 for handling stackless frames.
7118 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
7119
9f7194c3
RC
71202004-04-23 Randolph Chung <tausq@debian.org>
7121
7122 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
7123 starts at a pc before the frame is created.
7124
dcff6009
JB
71252004-04-23 Joel Brobecker <brobecker@gnat.com>
7126
7127 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
7128
40711ff1 71292004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
7130
7131 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
7132 use convert_typed_floating to get the appropriate format.
7133
abc485a1
RC
71342004-04-22 Randolph Chung <tausq@debian.org>
7135
7136 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
7137 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
7138 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
7139 (hppa_sign_extend): Add prototype.
7140 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
7141 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
7142 (sign_extend): Rename with hppa_ prefix and make non-static. Other
7143 hppa targets will also use these functions.
7144 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
7145 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
7146 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
7147 (hppa_gdbarch_init): Remove gdbarch setting of
7148 skip_trampoline_code, in_solib_call_trampoline and
7149 in_solib_return_trampoline.
7150 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
7151 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
7152 hppa_in_solib_call_trampoline.
7153 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
7154 Moved from hppa-tdep.c.
7155 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
7156 in_solib_call_trampoline and in_solib_return_trampoline.
7157
369aa520
RC
71582004-04-22 Randolph Chung <tausq@debian.org>
7159
7160 * hppa-tdep.c (hppa_debug): New variable.
7161 (find_unwind_entry, hppa_frame_cache): Add debug output.
7162 (_initialize_hppa_tdep): Add command to set debug flag.
7163
476be15e
AC
71642004-04-22 Andrew Cagney <cagney@redhat.com>
7165
7166 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
7167 "trad-frame.h".
7168 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
7169 signal trampoline unwinder.
7170 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
7171
d195bc9f
MK
71722004-04-22 Mark Kettenis <kettenis@gnu.org>
7173
7174 Add OpenBSD/powerpc support.
7175 * NEWS (New native configurations): Mention OpenBSD/powerpc.
7176 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
7177 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
7178 (ppc_collect_fpregset): New prototypes.
7179 * ppcobsd-nat.c: New file.
7180 * ppcobsd-tdep.c: New file.
7181 * ppcobsd-tdep.h: New file.
7182 * rs6000-tdep.c: Include "regset.h".
7183 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
7184 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
7185 New functions.
7186 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
7187 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
7188 (rs6000-tdep.o): Update dependencies.
7189 * configure.host: Add powerpc-*-openbsd.
7190 * configure.tgt: Add powerpc-*-openbsd.
7191 * config/powerpc/obsd.mh: New file.
7192 * config/powerpc/nm-obsd.h: New file.
7193 * config/powerpc/obsd.mt: New file.
7194
6f14cc33
AC
71952004-04-22 Andrew Cagney <cagney@redhat.com>
7196
fcf29e5f
AC
7197 * frame.h (show_frame_info): Delete declaration.
7198
6f14cc33
AC
7199 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
7200 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
7201 * m32r-tdep.c (m32r_frame_this_id): Ditto.
7202 * frv-tdep.c (frv_frame_this_id): Ditto.
7203 * avr-tdep.c (avr_frame_this_id): Ditto.
7204
e5786a5c
EZ
72052004-04-22 Elena Zannoni <ezannoni@redhat.com>
7206
7207 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
7208
26e75e5c
JB
72092004-04-22 Jim Blandy <jimb@redhat.com>
7210
7211 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
7212 register number zero.
7213
d8d65dd3
MS
72142004-04-21 Michael Snyder <msnyder@redhat.com>
7215
7216 * mips-tdep.c (heuristic_proc_start):
7217 Warning() already prefixes "Warning: ".
7218
9a4105ab
AC
72192004-04-21 Andrew Cagney <cagney@redhat.com>
7220
7221 * annotate.h (deprecated_annotate_starting_hook)
7222 (deprecated_annotate_stopped_hook)
7223 (deprecated_annotate_exited_hook)
7224 (deprecated_annotate_signal_hook)
7225 (deprecated_annotate_signalled_hook): Deprecate.
7226 * tracepoint.h (deprecated_create_tracepoint_hook)
7227 (deprecated_delete_tracepoint_hook)
7228 (deprecated_modify_tracepoint_hook)
7229 (deprecated_trace_find_hook)
7230 (deprecated_trace_start_stop_hook): Deprecate.
7231 * target.h (deprecated_target_new_objfile_hook): Deprecate.
7232 * remote.h (deprecated_target_resume_hook)
7233 (deprecated_target_wait_loop_hook): Deprecate.
7234 * gdbcore.h (deprecated_exec_file_display_hook)
7235 (deprecated_file_changed_hook): Deprecate.
7236 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
7237 * defs.h (deprecated_modify_breakpoint_hook)
7238 (deprecated_command_loop_hook, deprecated_show_load_progress)
7239 (deprecated_print_frame_info_listing_hook)
7240 (deprecated_query_hook, deprecated_warning_hook)
7241 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
7242 (deprecated_delete_breakpoint_hook)
7243 (deprecated_interactive_hook, deprecated_registers_changed_hook)
7244 (deprecated_readline_begin_hook, deprecated_readline_hook)
7245 (deprecated_readline_end_hook, deprecated_register_changed_hook)
7246 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
7247 (deprecated_context_hook, deprecated_target_wait_hook)
7248 (deprecated_attach_hook, deprecated_detach_hook)
7249 (deprecated_call_command_hook, deprecated_set_hook)
7250 (deprecated_error_hook, deprecated_error_begin_hook)
7251 (deprecated_ui_load_progress_hook): Deprecate.
7252 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
7253 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
7254 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
7255 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
7256 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
7257 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
7258 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
7259 * annotate.c, aix-thread.c: Update.
7260
62cf13cc
AC
72612004-04-21 Andrew Cagney <cagney@redhat.com>
7262
b2e31a62
AC
7263 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
7264 * vaxnbsd-tdep.c: Include "gdb_string.h".
7265
62cf13cc
AC
7266 * symfile.c (symbol_file_add_from_memory): #if 0 function.
7267 (add_symbol_file_from_memory_command): #if 0 function body, call
7268 error instead.
7269
00e32a35
AC
72702004-04-21 Andrew Cagney <cagney@redhat.com>
7271
7272 * gdbcore.h: Update copyright.
7273 (deprecated_add_core_fns): Rename add_core_fns.
7274 * win32-nat.c (_initialize_core_win32): Update.
7275 * sun3-nat.c (_initialize_core_sun3): Update.
7276 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
7277 * rs6000-nat.c (_initialize_core_rs6000): Update.
7278 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
7279 * nto-tdep.c (_initialize_nto_tdep): Update.
7280 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
7281 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
7282 * mips-nat.c (_initialize_core_mips): Update.
7283 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7284 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
7285 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
7286 * lynx-nat.c (_initialize_core_lynx): Update.
7287 * irix5-nat.c (_initialize_core_irix5): Update.
7288 * i386-interix-nat.c (_initialize_core_interix): Update.
7289 * cris-tdep.c (_initialize_cris_tdep): Update.
7290 * corelow.c (deprecated_add_core_fns): Update.
7291 * core-regset.c (_initialize_core_regset): Update.
7292 * core-aout.c (_initialize_core_aout): Update.
7293 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
7294 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
7295 * alpha-nat.c (_initialize_core_alpha): Update.
7296
13c7b1ca
JB
72972004-04-21 Jim Blandy <jimb@redhat.com>
7298
7299 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
7300
7b5a2f43
DJ
73012004-04-19 Daniel Jacobowitz <drow@mvista.com>
7302
7303 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
7304 Delete.
7305 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
7306 (read_attribute_value): Update calls to dwarf_alloc_block.
7307 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
7308 dwarf2_tmp_obstack.
7309 (psymtab_to_symtab_1): Likewise. Clean up using
7310 free_stack_comp_unit.
7311 (add_to_cu_func_list): Use the comp_unit_obstack.
7312
05cf31d1
JB
73132004-04-19 Joel Brobecker <brobecker@gnat.com>
7314
7315 * dwarf2read.c (dwarf2_flag_true_p): New function.
7316 (die_is_declaration): Use the function above. Add some comments.
7317
adf93a2f
MK
73182004-04-19 Mark Kettenis <kettenis@gnu.org>
7319
7320 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
7321 architecture when registering sparcnbsd_core_osabi_sniffer.
7322 Adjust comment.
7323
748894bf
MK
73242004-04-18 Mark Kettenis <kettenis@gnu.org>
7325
f622ad42
MK
7326 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
7327 return value.
7328
c4fc7f1b
MK
7329 Based on a patch from Brian Ford <ford@vss.fsi.com>:
7330 * i386-tdep.c: Correct register numbering scheme comments
7331 throughout.
7332 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
7333 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
7334 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
7335 (i386_gdb_arch_init): Likewise.
7336
b4ead1bd
MK
7337 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
7338 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
7339 ppcnbsd-tdep.o.
7340
748894bf
MK
7341 * m68k-tdep.h: Tweak comments.
7342 * m68k-tdep.c: Tweak comment.
7343
fdd72f95
RC
73442004-04-17 Randolph Chung <tausq@debian.org>
7345
7346 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
7347 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
7348 (hppa_hpux_som_init_abi): Set is_elf to 0.
7349 (hppa_hpux_elf_init_abi): Set is_elf to 1.
7350 * hppa-tdep.c (low_text_segment_address): Remove global.
7351 (record_text_segment_lowaddr): Pass in low address as parameter. Use
7352 section offset to calculate segment address.
7353 (internalize_unwinds): Define low_text_segment_address as local and
7354 pass to record_text_segment_lowaddr for ELF targets.
7355 (hppa_gdbarch_init): Zero fill tdep structure.
7356 (hppa_dump_tdep): Print tdep structure.
7357 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
7358
0f8d9d59
RC
73592004-04-17 Randolph Chung <tausq@debian.org>
7360
7361 * hppa-tdep.c (hppa_pseudo_register_read): Define.
7362 (hppa_gdbarch_init): Set pseudo_register_read.
7363 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
7364 * regcache.c (supply_register): Remove check for
7365 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
7366
7c46b9fb
RC
73672004-04-17 Randolph Chung <tausq@debian.org>
7368
7369 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
7370 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
7371 (hpread_adjust_stack_address): Move to hpread.c.
7372 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7373 obj_private_struct): Move from tm-hppa.h.
7374 * hpread.c (hppa-tdep.h): Include.
7375 (hpread_adjust_stack_address): Move from hppa-tdep.c.
7376 (hpread_read_function_type, hpread_read_doc_function_type)
7377 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
7378 directly.
7379 * pa64solib.c (hppa-tdep.h): Include.
7380 * somsolib.c (hppa-tdep.h): Include.
7381 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
7382 inferior_status): Remove unused forward declarations.
7383 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
7384 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7385 obj_private_struct): Move to hppa-tdep.h.
7386 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
7387
8d153463
RC
73882004-04-17 Randolph Chung <tausq@debian.org>
7389
7390 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
7391 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
7392 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
7393 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
7394 Remove forward declaration and make static.
7395 (hppa_reg_struct_has_addr): Remove.
7396
350c2e5b
JB
73972004-04-16 Joel Brobecker <brobecker@gnat.com>
7398
7399 * observer.sh: Move comments in sed command to first column.
7400
bbde78fa
JM
74012004-04-16 Jason Molenda (jmolenda@apple.com)
7402
7403 * frame.c: Minor typeo corrections in comments.
7404
e0270fd9
JB
74052004-04-16 Joel Brobecker <brobecker@gnat.com>
7406
7407 * observer.c (observer_test_first_notification_function): Update
7408 function profile.
7409 (observer_test_second_notification_function): Likewise.
7410 (observer_test_third_notification_function): Likewise.
7411
3d049254
MK
74122004-04-16 Mark Kettenis <kettenis@gnu.org>
7413
7414 From Brian Ford <ford@vss.fsi.com>:
7415 * i386-tdep.c (i386_coff_init_abi): New function.
7416 * i386-tdep.h (i386_coff_init_abi): New prototype.
7417 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
7418 register number translation functions for DWARF and DWARF 2.
7419
7867684d
JB
74202004-04-16 Joel Brobecker <brobecker@gnat.com>
7421
7422 * dwarf2read.c: Back out my previous change, it was incorrect.
7423
72bf9492
DJ
74242004-04-16 Daniel Jacobowitz <drow@mvista.com>
7425
7426 * dwarf2read.c: Include "hashtab.h".
7427 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
7428 has_namespace_info.
7429 (struct partial_die_info): Add comments. Use bitfields to reduce
7430 memory footprint. Add scope, scope_set, has_specification,
7431 spec_offset, die_parent, die_child, and die_sibling.
7432 (peek_die_abbrev): Add prototype.
7433 (partial_read_comp_unit_head): New function, broken out from
7434 dwarf2_build_psymtabs_hard.
7435 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
7436 Use partial_read_comp_unit_head. Initialize the CU and
7437 comp_unit_obstack. Update calls to read_partial_die and
7438 scan_partial_symbols. Use free_stack_comp_unit and
7439 load_partial_dies.
7440 (scan_partial_symbols): Change PDI to a pointer. Use the child and
7441 sibling pointers to walk partial DIEs. Call fixup_partial_die.
7442 Update calls to helper functions. Remove NAMESPACE argument.
7443 Update comments.
7444 (partial_die_parent_scope, partial_die_full_name): New functions.
7445 (add_partial_symbol): Remove namespace argument. Update call to
7446 pdi_needs_namespace. Use partial_die_full_name. Handle
7447 DW_TAG_namespace. Check has_namespace_info flag.
7448 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
7449 tag. Handle namespaces.
7450 (add_partial_namespace, add_partial_enumeration): Simplify.
7451 (guess_structure_name): New function, derived from
7452 add_partial_structure.
7453 (add_partial_structure): Remove.
7454 (determine_class_name): Update comment.
7455 (dwarf2_read_abbrevs): Set has_namespace_info flag.
7456 (is_type_tag_for_partial, load_partial_dies): New functions.
7457 (read_partial_die): Pass abbrev and abbrev_len as arguments.
7458 Record specifications instead of following them immediately.
7459 (find_partial_die_in_comp_unit, find_partial_die)
7460 (fixup_partial_die, free_stack_comp_unit)
7461 (hashtab_obstack_allocate, dummy_obstack_deallocate)
7462 (partial_die_hash, partial_die_eq): New functions.
7463 * Makefile.in (hashtab_h): Define.
7464 (dwarf2read.o): Update dependencies.
7465 (observer_inc, observer_h): Move to the correct section.
7466
fdc860a3
JB
74672004-04-15 Joel Brobecker <brobecker@gnat.com>
7468
7469 * dwarf2read.c (dwarf2_attribute_true_p): New function.
7470 (die_is_declaration): Use the function above. Add comment.
7471
dc718098
JB
74722004-04-15 Joel Brobecker <brobecker@gnat.com>
7473
7474 * dwarf2read.c (read_structure_scope): Identify stub types
7475 using die_is_declaration() only.
7476
8718a420
RM
74772004-04-15 Roland McGrath <roland@redhat.com>
7478
7479 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
7480 argument instead of NAME.
7481 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
7482 in call to symbol_file_add_with_addrs_or_offsets.
7483 (build_addr_info): New function, helper for ...
7484 (symbol_file_add_from_memory): New function.
7485 (add_symbol_file_from_memory_command): New function using that.
7486 (_initialize_symfile): Register it for add-symbol-file-from-memory.
7487 (pre_add_symbol_hook): Add const to argument type.
7488 * symfile.h (symbol_file_add_from_memory): Declare it.
7489
8b910bab
MK
74902004-04-15 Mark Kettenis <kettenis@gnu.org>
7491
9f076e7a
MK
7492 * NEWS (New native configurations): Mention OpenBSD/vax.
7493 * configure.host: Add vax-*-openbsd*.
7494 * config/vax/obsd.mh: New file.
7495 * config/vax/nm-obsd.h: New file.
7496
8b910bab
MK
7497 * vax-tdep.c: Include "regset.h".
7498 (vax_supply_gregset): New function.
7499 (vax_gregset): New variable.
7500 (vax_regset_from_core_section): New function.
7501 (vax_gdbarch_init): Set regset_from_core_section.
7502 * Makefile.in (vax-tdep.o): Update dependencies.
7503
7a464420
AC
75042004-04-15 Andrew Cagney <cagney@redhat.com>
7505
7506 * observer.c (normal_stop_subject, observer_notify_normal_stop)
7507 (observer_normal_stop_notification_stub)
7508 (observer_attach_normal_stop, observer_detach_normal_stop):
7509 Delete, replaced by #include "observer.inc".
7510 * infrun.c (normal_stop): Pass "stop_bpstat" to
7511 observer_notify_normal_stop.
7512 * Makefile.in (observer_inc): Define.
7513 (observer.o): Update dependencies.
7514 (observer.h, observer.inc): New rules.
7515 * observer.h: Delete file.
7516 * observer.sh: New file.
7517
e36ad527
MK
75182004-04-15 Mark Kettenis <kettenis@gnu.org>
7519
7520 * vax-tdep.c (vax_frame_cache): Fix typo.
7521
67b441e1
MK
75222004-04-14 Mark Kettenis <kettenis@gnu.org>
7523
6f606e1c
MK
7524 * NEWS (New native configurations): Mention NetBSD/vax.
7525 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
7526 * config/vax/nbsdelf.mh: New file.
7527 * config/vax/nbsdaout.mh: New file.
7528 * config/vax/nm-nbsd.h: New file.
7529 * config/vax/nm-nbsdaout.h: New file.
7530
9c5519a5
MK
7531 * vaxnbsd-tdep.c: New file.
7532 * Makefile.in (vaxnbsd-tdep.o): New dependency.
7533 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
7534 * config/vax/nbsd.mt: New file.
7535 * config/vax/tm-nbsd.h: New file.
7536
4844a614
MK
7537 * Makefile.in (vaxbsd-nat.o): New dependency.
7538
67b441e1
MK
7539 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
7540 * vax-tdep.c (vax_store_arguments): Remove struct_return and
7541 struct_addr arguments. Don't push return value address.
7542 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
7543 arguments to vax_store_arguments. Store return value address in
7544 R1.
7545 (vax_store_struct_return, vax_extract_return_value)
7546 (vax_store_return_value): Remove functions.
7547 (vax_return_value): New function.
7548 (vax_gdbarch_init): Set return value. Don't set
7549 deprecated_store_struct_return, deprecated_extract_struct_return
7550 and deprecated_store_return_value.
7551
6672f2ae
AS
75522004-04-14 Andreas Schwab <schwab@suse.de>
7553
7554 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
7555 value buffer.
7556 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
7557
7346c184
MK
75582004-04-14 Mark Kettenis <kettenis@gnu.org>
7559
7560 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
7561 (vax_unwind_dummy_id): New functions.
7562 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
7563 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
7564 variables.
7565 (vax_fix_call_dummy): Remove function.
7566 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
7567 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
7568 call_dummy_location, deprecated_call_dummy_words,
7569 deprecated_sizeof_call_dummy_words,
7570 deprecated_call_dummy_breakpoint_offset,
7571 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
7572 and deprecated_dummy_write_sp.
7573
58e23df4
DC
75742004-04-13 David Carlton <carlton@kealia.com>
7575
7576 * MAINTAINERS: Move myself to "paper trail" section.
7577
5e6b39ff
MK
75782004-04-12 Mark Kettenis <kettenis@gnu.org>
7579
7def7fef
MK
7580 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
7581 "trad-frame.h".
7582 (vax_frame_init_saved_regs): Remove function.
7583 (vax_sigtramp_saved_pc): Remove function.
7584 (vax_frame_saved_pc): Remove function.
7585 (vax_frame_args_address): Remove function.
7586 (vax_frame_num_args): Rewrite.
7587 (vax_frame_chain): Remove function.
7588 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
7589 VAX_FP_REGNUM.
7590 (vax_pop_frame): Likewise.
7591 (vax_saved_pc_after_call): Remove function.
7592 (struct vax_frame_cache): New structure.
7593 (vax_frame_cache): New function.
7594 (vax_frame_this_id): New function.
7595 (vax_frame_prev_register): New function.
7596 (vax_frame_unwind): New variable.
7597 (vax_frame_sniffer): New function.
7598 (vax_frame_base_address): New function.
7599 (vax_frame_args_address): New function.
7600 (vax_frame_base): New variable.
7601 (vax_unwind_pc): New function.
7602 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
7603 deprecated_fp_regnum, deprecated_saved_pc_after_call,
7604 deprecated_frame_chain, deprecated_frame_saved_pc,
7605 deprecated_frame_args_address and
7606 deprecated_frame_init_saved_regs.
7607 * Makefile.in (vax-tdep.o): Update dependencies.
7608
53284fc1
MK
7609 * vaxbsd-nat.c: New file.
7610
5e6b39ff
MK
7611 * vax-tdep.h: Update copyright year. Adjust comments.
7612 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
7613 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
7614 (vax_regnum): New enum. Replacing...
7615 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
7616 (VAX_PS_REGNUM): ... these removed macros.
7617 * vax-tdep.c (vax_register_name): Remove prototype.
7618 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
7619 (vax_register_byte, vax_register_raw_size,
7620 vax_register_virtual_size, vax_register_virtual_type): Remove
7621 functions.
7622 (vax_register_type): New function.
7623 (vax_breakpoint_from_pc): Reorganize.
7624 (vax_gdbarch_init): Set register_type. Don't set
7625 deprecated_register_size, deprecated_register_bytes,
7626 deprecated_register_byte, deprecated_register_raw_size,
7627 deprecated_max_register_raw_size,
7628 deprecated_register_virtual_size,
7629 deprecated_max_register_virtual_size and
7630 deprecated_register_virtual_type. Add comment on stack direction.
7631
e9c71e9f
MK
76322004-04-11 Mark Kettenis <kettenis@gnu.org>
7633
7634 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
7635 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 7636 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 7637
d46f1176 76382004-04-10 Randolph Chung <tausq@debian.org>
8718a420 7639
d46f1176
RC
7640 * MAINTAINERS (write after approval): Add myself.
7641
a2a84a72
RC
76422004-04-07 Randolph Chung <tausq@debian.org>
7643
7644 * hppa-tdep.c (hppa_inner_than): Remove.
7645 (is_pa_2): Remove unused static variable.
8718a420 7646 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 7647
e85c3284
PH
76482004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
7649
7650 * language.h (language_defn): Add new la_post_parser field.
7651 * parser-defs.h (null_post_parser): New declaration (default for
7652 la_post_parser).
8718a420 7653
e85c3284
PH
7654 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
7655 insert call to that function.
7656 (parse_exp_in_context): New function, including code formerly in
8718a420 7657 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
7658 prefixification.
7659 (parse_expression_in_context): New exported function.
7660 (null_post_parser): New definition.
7661 * expression.h (parse_expression_in_context): Add declaration.
8718a420 7662
e85c3284
PH
7663 * p-lang.c (pascal_language_defn): Add trivial post-parser.
7664 * c-lang.c (c_language_defn): Ditto.
7665 (cplus_language_defn): Ditto.
7666 (asm_language_defn): Ditto.
7667 (minimal_language_defn): Ditto.
7668 * f-lang.c (f_language_defn): Ditto.
7669 * jv-lang.c (java_language_defn): Ditto.
7670 * language.c (unknown_language_defn): Ditto.
7671 (auto_language_defn): Ditto.
7672 (local_language_defn): Ditto.
7673 * m2-lang.c (m2_language_defn): Ditto.
7674 * scm-lang.c (scm_language_defn): Ditto.
7675 * obj-lang.c (objc_language_defn): Ditto.
8718a420 7676
d9f8c85b
MK
76772004-04-10 Mark Kettenis <kettenis@gnu.org>
7678
fa34704a
MK
7679 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
7680 (amd64nbsd_mcontext_addr): New function.
7681 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
7682 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
7683 with amd64nbsd_r_reg_offset, instead of building it on the fly.
7684
403e1656
MK
7685 * corelow.c (core_xfer_partial): Fix coding standards violation.
7686 Add support for TARGET_OBJECT_WCOOKIE.
7687
a57e5a95
MK
7688 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
7689 deprecated_pc_in_sigtramp.
7690 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
7691 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
7692 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
7693 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7694 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
7695 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7696 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
7697
377d9ebd
MK
7698 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
7699 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
7700 Fix typo.
7701
f0ef85a5
MK
7702 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
7703 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
7704 (amd64_collect_fxsave): Likewise.
7705
d9f8c85b
MK
7706 * i386-sol2-tdep.c: Include "gdb_string.h".
7707 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
7708 name.
7709 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7710
75f501b5
MK
77112004-04-10 Mark Kettenis <kettenis@gnu.org>
7712
7713 * i386-sol2-tdep.c: Include "solib-svr4.h".
7714 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7715 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7716 * config/i386/tm-i386sol2.h: Include :solib.h".
7717 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
7718 solib-svr4.o and solib-legacy.o.
7719 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
7720 solib-svr4.o.
7721
b31bc724
MK
77222004-04-09 Mark Kettenis <kettenis@gnu.org>
7723
18bbbd9e
MK
7724 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
7725 whether a register is supplied by PTRACE_GETFPREGS.
7726 (store_inferior_registers): Likewise.
7727 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
7728 whether a register is supplied by PT_GETFPREGS.
7729 (store_inferior_registers): Likewise.
7730
3c30bf1b
MK
7731 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
7732 * config/i386/linux64.mt (TDEPFILES): Likewise.
7733
a4194092
MK
7734 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
7735
911bc6ee
MK
7736 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
7737 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
7738 the program counter is in the range specified by `struct
7739 gdbarch_tdep'.
7740 * amd64-linux-tdep.c: Include "symtab.h".
7741 (amd64_linux_pc_in_sigtramp): Remove function.
7742 (amd64_linux_sigtramp_p): New function.
7743 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
7744 deprecated_pc_in_sigtramp.
7745 * amd64nbsd-tdep.c: Include "symtab.h".
7746 (amd64nbsd_sigtramp_p): New function.
7747 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
7748 deprecated_pc_in_sigtramp.
7749 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
7750 few comments.
7751 (amd64obsd_pc_in_sigtramp): Remove function.
7752 (amd64obsd_sigtramp_p): New function.
7753 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
7754 deprecated_pc_in_sigtramp.
7755 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
7756 (i386bsd_pc_ins_sigtramp): Remove prototype.
7757 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
7758 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
7759 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
7760 the program counter is in the range specified by `struct
7761 gdbarch_tdep'.
7762 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
7763 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
7764 (i386_go32_pc_in_sigtramp): Remove function.
7765 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
7766 Initialize TDEP->sigtramp_p.
7767 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
7768 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
7769 deprecated_pc_in_sigtramp.
7770 * i386-linux-tdep.c: Adjust comments.
7771 (i386_linux_pc_in_sigtramp): Remove function.
7772 (i386_linux_sigtramp_p): New function.
7773 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
7774 deprecated_pc_in_sigtramp.
7775 * i386-nto-tdep.c: Update copyright year.
7776 (i386nto_pc_in_sigtramp): Remove function.
7777 (i386nto_sigtramp_p): New function.
7778 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
7779 SP_REGNUM.
7780 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
7781 deprecated_pc_in_sigtramp.
7782 * i386-sol2-tdep.c: Update copyright year.
7783 (i386_sol2_pc_in_sigtramp): Remove function.
7784 (i386_sol2_sigtramp_p): New function.
7785 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
7786 deprecated_pc_in_sigtramp.
7787 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
7788 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
7789 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7790 deprecated_sigtramp_start and deprecated_sigtramp_end.
7791 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
7792 (i386nbsd_pc_in_sigtramp): Remove function.
7793 (i386nbsd_sigtramp_p): New function.
7794 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7795 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
7796 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
7797 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
7798 (i386obsd_pc_in_sigtramp): Remove function.
7799 (i386obsd_sigtramp_p): New function.
7800 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
7801 functions.
7802 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7803 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
7804 TDEP->sigtramp_p.
7805 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
7806 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
7807 dependencies.
7808
e083e6ec
MK
7809 * config/i386/i386aout.mt: Remove file.
7810
bd153b94
MK
7811 * configure.tgt: Remove i[34567]86-*-go32*,
7812 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
7813 and i[34567]86-*-isc*. Set gdb_target to i386 for
7814 i[34567]86-*-netware* and i[34567]86-*-*.
7815 * config/i386/i386.mt: New file.
7816 * config/i386/embed.mt: Remove file.
7817 * config/i386/go32.mt: Remove file.
7818 * config/i386/i386nw.mt: Remove file.
7819 * config/i386/i386v.mt: Remove file.
7820 * config/i386/tm-go32.h: Remove file.
7821
4a1bcc8c
MK
7822 * tui/tui-hooks.c: Include "readline/readline.h" after
7823 "gdb_curses.h" instead of before.
7824 * tui/tui-io.c: Likewise.
7825
f9a79064
MK
7826 * tui/tui.c: Fix typo in comment.
7827
b31bc724
MK
7828 * sparc64-tdep.c (sparc_address_from_register): Remove function.
7829
f83f82bc
AC
78302004-04-08 Andrew Cagney <cagney@redhat.com>
7831
7832 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
7833 (deprecated_exception_support_initialized): Declare.
8718a420 7834 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
7835 (initialize_hp_cxx_exception_support)
7836 (child_enable_exception_callback): Update.
7837 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
7838 (deprecated_exception_support_initialized): Rename
7839 deprecated_exception_catchpoints_are_fragile and
7840 deprecated_exception_support_initialized.
7841 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
7842
7843 * symtab.c (deprecated_hp_som_som_object_present): Rename
7844 hp_som_som_object_present.
7845 * symtab.h (deprecated_hp_som_som_object_present): Declare.
7846 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
7847 Update. Delete extern declaration.
7848 * valops.c (hp_som_som_object_present): Ditto.
8718a420 7849 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
7850 (parse_nested_classes_for_hpacc): Ditto.
7851 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 7852 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
7853 (initialize_hp_cxx_exception_support): Ditto.
7854 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 7855 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 7856 (cp_print_class_method): Ditto.
8718a420 7857 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
7858 (c_type_print_base): Ditto.
7859 * c-exp.y (hp_som_som_object_present): Ditto.
7860
fb2be677
AC
78612004-04-08 Andrew Cagney <cagney@redhat.com>
7862
7863 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
7864 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
7865 (frame_unwind_find_by_frame): Re-implement the unwind code so
7866 that it can both prepend and append sniffers. Replace
7867 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
7868 * tramp-frame.c (tramp_frame_append): Use
7869 frame_unwind_prepend_unwinder.
7870 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
7871 frame_unwind_register_unwinder.
7872 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
7873 tramp_frame_append.
7874 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 7875 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
7876 (mips_linux_init_abi): Update.
7877
67faf007
KB
78782004-04-08 Kevin Buettner <kevinb@redhat.com>
7879
7880 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
7881 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
7882 file support.
7883
8973ff21
KB
78842004-04-07 Kevin Buettner <kevinb@redhat.com>
7885
7886 * ia64-tdep.c (elf.h): Don't include.
7887 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
7888
4a0e2f88
JM
78892004-04-07 Jason Molenda (jmolenda@apple.com)
7890
7891 * frame.h: Typeo corrections in comments.
7892
9872ad24
JB
78932004-04-07 Jim Blandy <jimb@redhat.com>
7894
7895 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
7896 %esp and %ebp
7897
70b216c8
MK
78982004-04-07 Mark Kettenis <kettenis@gnu.org>
7899
11d5789c
MK
7900 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
7901 * config/sparc/linux64.mt (TDEPFILES): Likewise.
7902 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
7903 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
7904 and solib-legacy.o.
7905 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
7906 solib-svr4.o.
7907 * config/sparc/tm-sol2.h: Update copyright year. Include
7908 "solib.h".
7909
70b216c8
MK
7910 * sparc-sol2-tdep.c: Update copyright year. Include
7911 "solib-svr4.h".
7912 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7913 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
7914 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 7915 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
7916 dependencies.
7917
6339dc9e
AC
79182004-04-06 Andrew Cagney <cagney@redhat.com>
7919
7920 * infttrace.c: Include "infttrace.h".
7921 * infttrace.h: Include "target.h".
7922 * Makefile.in (infttrace_h): Update.
7923 (infttrace.o): Update.
8718a420 7924
93449403
AC
79252004-04-06 Andrew Cagney <cagney@redhat.com>
7926
6d518969
AC
7927 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
7928 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
7929 move extern declarations from here ...
7930 * infttrace.h: ... to here.
7931 * Makefile.in (hppah-nat.o): Update dependencies.
7932
85f4f2d8
AC
7933 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
7934 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 7935 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
7936 (hppa_breakpoint_from_pc): Delete.
7937
93449403
AC
7938 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
7939
71456ec6
AC
79402004-04-05 Andrew Cagney <cagney@redhat.com>
7941
7942 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
7943 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
7944 <sys/file.h>.
8718a420 7945
4c02c60c
AC
79462004-04-06 Randolph Chung <tausq@debian.org>
7947
7948 Committed by Andrew Cagney (mechanical change).
7949 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
7950 exception_catchpoints_are_fragile, find_stub_with_shl_get,
7951 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
7952 child_enable_exception_callback, current_ex_event,
7953 null_symtab_and_line, child_get_current_exception_event,
7954 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
7955 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
7956 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
7957 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
7958 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
7959 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
7960 Move hpux-specific definitions ...
7961 * hppa-hpux-tdep.c: ... to here.
7962
3a515653
AC
79632004-04-05 Andrew Cagney <cagney@redhat.com>
7964
7965 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
7966 skip_prologue_using_sal.
7967
c1730d02
AC
79682004-04-05 Andrew Cagney <cagney@redhat.com>
7969
7970 * config/i386/tm-i386.h: Delete file.
7971 * config/i386/tm-vxworks.h: Update copyright, do not include
7972 "tm-i386.h".
7973 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
7974 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
7975 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
7976 * config/i386/ncr3000.mt (TM_FILE): Delete.
7977 * config/i386/interix.mt (TM_FILE): Delete.
7978 * config/i386/i386v.mt (TM_FILE): Delete.
7979 * config/i386/i386nw.mt (TM_FILE): Delete.
7980 * config/i386/i386gnu.mt (TM_FILE): Delete.
7981 * config/i386/i386aout.mt (TM_FILE): Delete.
7982 * config/i386/embed.mt (TM_FILE): Delete.
7983
8b67aa36
KB
79842004-04-05 Kevin Buettner <kevinb@redhat.com>
7985
7986 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
7987 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
7988 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
7989 (accg7_regnum): New constants.
7990 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
7991 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
7992 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
7993 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
7994 for accg registers.
7995 (frv_register_sim_regno): Update spr_map[].
7996
3c7012f5
AC
79972004-04-04 Andrew Cagney <cagney@redhat.com>
7998
7999 * config/mips/xm-riscos.h: Delete.
8000 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
8001 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
8002 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
8003 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
8004 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
8005 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
8006 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
8007 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
8008 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
8009 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
8010 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
8011 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
8012 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
8013 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
8014 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
8015 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
8016 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
8017 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
8018 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
8019 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
8020 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
8021 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
8022 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
8023 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
8024 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
8025 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 8026
3c7012f5
AC
8027 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
8028 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
8029 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
8030 * configure.host: Remove m680[01]0-sun-sunos3*,
8031 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
8032 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
8033 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
8034 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
8035 mips-*-riscos*.
8036 * NEWS: Mention removed systems.
8037
99d16a21
AC
80382004-04-04 Andrew Cagney <cagney@redhat.com>
8039
8040 GDB 6.1 release created from 6.1 branch.
8041
6cdf9d98
AC
80422004-04-04 Andrew Cagney <cagney@redhat.com>
8043
98d346c3
AC
8044 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
8045 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
8046 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
8047
6cdf9d98
AC
8048 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
8049 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
8050 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
8051
859a326d
JB
80522004-04-03 Jim Blandy <jimb@redhat.com>
8053
8054 * MAINTAINERS: Chris Faylor has changed employers; add him to
8055 "paper trail" section, and update his E-mail address.
8056
b87178c3
AC
80572004-04-03 Andrew Cagney <cagney@redhat.com>
8058
4ea2acf0
AC
8059 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
8060 generic dummy frames.
8061 * dummy-frame.c: Update copyright.
8062 (dummy_frame_sniffer): Delete check for generic dummy frames.
8063
d0bd2d18 8064 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 8065 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
8066 (REG_PARM_STACK_SPACE): Delete.
8067 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
8068 Inline reference to REG_PARM_STACK_SPACE.
8069
b87178c3
AC
8070 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
8071 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8072 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
8073 (FRAME_BASE_BEFORE_SIGTRAMP)
8074 (hppa32_hpux_frame_base_before_sigtramp)
8075 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
8076 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
8077 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
8078 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8079 (FRAME_BASE_BEFORE_SIGTRAMP)
8080 (hppa64_hpux_frame_base_before_sigtramp)
8081 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
8082
43e2e1a0
AC
80832004-04-03 Andrew Cagney <cagney@redhat.com>
8084
8085 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
8086
ddc135a4
AC
80872004-04-02 Andrew Cagney <cagney@redhat.com>
8088
8089 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
8090 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
8091 * dummy-frame.h: Delete out-of-date comments.
8092 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
8093 * gdbarch.h, gdbarch.c: Re-generate.
8094
d15bfd3a 80952004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 8096
d15bfd3a
AC
8097 Committed by Andrew Cagney <cagney@redhat.com>.
8098 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
8099 into account an instruction saving a register if we have already
8100 seen an earlier instruction saving that same register.
8101
f04ceafa
AC
81022004-04-02 Andrew Cagney <cagney@redhat.com>
8103
08be3abd
AC
8104 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
8105 * gdbarch.h, gdbarch.c: Re-generate.
8106 * frame.c (legacy_get_prev_frame): Delete references to
8107 DEPRECATED_INIT_FRAME_PC_FIRST.
8108
f04ceafa
AC
8109 * infrun.c (pc_in_sigtramp): Delete function.
8110 (check_sigtramp2): Inline call to pc_in_sigtramp, use
8111 get_frame_type.
8112
08e69816
AC
81132004-04-02 Andrew Cagney <cagney@redhat.com>
8114
8115 * infrun.c (handle_step_into_function): Delete code conditional on
8116 legacy_frame_p.
8117 (handle_inferior_event, step_over_function): Ditto.
8118
adb54772
AC
81192004-04-02 Andrew Cagney <cagney@redhat.com>
8120
8121 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
8122 "previous frame inner to this frame" test.
8123
304396fb
AC
81242004-04-02 Andrew Cagney <cagney@redhat.com>
8125
8126 * frame.c (safe_frame_unwind_memory): New function.
8127 * frame.h (safe_frame_unwind_memory): Declare. Update description
8128 of /safe_/ methods.
8129 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
8130 "next_frame". Use safe_frame_unwind_memory.
8131 (tramp_frame_sniffer): Update call to tramp_frame_start.
8132
6502dd73
DJ
81332004-04-01 Daniel Jacobowitz <drow@mvista.com>
8134
8135 * dwarf2read.c (dwarf2_objfile_data_key): New.
8136 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
8137 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
8138 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
8139 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
8140 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
8141 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
8142 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
8143 Remove variables.
8144 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
8145 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
8146 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
8147 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
8148 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
8149 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
8150 Remove macros.
8151 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
8152 data.
8153 (dwarf2_locate_sections, dwarf2_build_psymtabs)
8154 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
8155 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
8156 (read_partial_die, read_full_die, read_indirect_string)
8157 (dwarf_decode_line_header, dwarf_decode_macros)
8158 (dwarf2_symbol_mark_computed): Remove use of removed macros.
8159 Update uses of removed variables.
8160 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
8161 of removed macros.
8162 (_initialize_dwarf2_read): New function.
8163 * symfile.h (dwarf2_has_info): Update prototype.
8164 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
8165 * elfread.c (elf_symfile_read): Likewise.
8166
408752b0
JB
81672004-04-01 Jim Blandy <jimb@redhat.com>
8168
9f744501
JB
8169 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
8170 function for register numbers on all the rs6000-derived targets.
8171 (rs6000_gdbarch_init): Don't register a separate
8172 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
8173 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
8174 variants.
8175
408752b0
JB
8176 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
8177 numbering.
8178
2de41bce
PH
81792004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
8180
8181 * valarith.c: Update copyright notice.
8182 (value_add): Handle range types.
8183 (value_sub): Ditto.
8184 (value_equal): Ditto.
8185 (value_less): Ditto.
8186 (value_neg): Ditto.
8187 (value_complement): Ditto.
8718a420 8188 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 8189 eliminiating unnecessary COERCE_ENUMs.
8718a420 8190
5613d8d3
AC
81912004-03-31 Andrew Cagney <cagney@redhat.com>
8192
8193 * frame.h (frame_unwind_id): Declare.
8194 * frame.c (frame_unwind_id): New function.
8195 (get_prev_frame_1): New function.
8196 (frame_debug_got_null_frame): New function.
8197 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
8198 code proper to prev_frame, update description.
8199 * infrun.c (step_over_function): Use frame_unwind_id.
8200
c4557624
JB
82012004-04-31 J. Brobecker <brobecker@gnat.com>
8202
8203 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
8204 (hppa64_push_dummy_call): Likewise.
8205
3e6bb910
JB
82062004-03-30 Jim Blandy <jimb@redhat.com>
8207
8208 From Ulrich Weigand:
8209 * utils.c (query): Do not use a va_list variable multiple times.
8210
a2f23071
DJ
82112004-03-29 Daniel Jacobowitz <drow@mvista.com>
8212
8213 * Makefile.in (linux_nat_h): Update dependencies.
8214 * configure.in: Check for <gnu/libc-version.h>.
8215 * configure: Regenerate.
8216 * config.in: Regenerate.
8217 * linux-nat.h: Include "target.h". Add waitstatus field to
8218 struct lwp_info.
8219 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
8220 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
8221 to.
8222 (lin_lwp_handle_extended): New function. Handle clone events.
8223 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
8224 thread exit events.
8225 (child_wait): Handle clone events.
8226 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
8227 * linux-nat.c (linux_enable_event_reporting): Turn on
8228 PTRACE_O_TRACECLONE.
8229 (linux_handle_extended_wait): Handle clone events.
8230 * thread-db.c: Include <gnu/libc-version.h>.
8231 (struct private_thread_info): Add dying flag.
8232 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
8233 higher.
8234 (attach_thread): Update comments. Handle dying threads.
8235 (detach_thread): Set the dying flag.
8236 (check_event): Always call attach_thread.
8237
8d5f9dcb
DJ
82382004-03-29 Daniel Jacobowitz <drow@mvista.com>
8239
8240 * mips-tdep.c (mips_pdr_data): New.
8241 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
8242 (_initialize_mips_tdep): Initialize mips_pdr_data.
8243
66337bb1
CV
82442004-03-29 Corinna Vinschen <vinschen@redhat.com>
8245
8246 * minsyms.c (install_minimal_symbols): Move dropping leading
8247 char from linkage name from here...
8248 (prim_record_minimal_symbol_and_info): ...to here. Simplify
8249 test for "__gnu_compiled*" symbols.
8250
e802b915
JB
82512004-03-28 Jim Blandy <jimb@redhat.com>
8252
8253 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
8254 registers to temp register r0 and byte stores as prologue
8255 instructions.
8256
72b56458
AC
82572004-03-28 Andrew Cagney <cagney@redhat.com>
8258
8259 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
8260 arm*-*-*.
8261
0bfbda3b
SC
82622004-03-28 Stephane Carrez <stcarrez@nerim.fr>
8263
8264 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
8265 and switch the layout to force a display of register window.
8266
5a7225ed
JB
82672004-02-26 J. Brobecker <brobecker@gnat.com>
8268
8269 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
8270 of the INTEGER class.
8271
81a07a45
JB
82722004-03-26 Jim Blandy <jimb@redhat.com>
8273
8274 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
8275 bytes long on PPC GNU/Linux.
8276
8c691c7a
DC
82772004-03-26 David Carlton <carlton@kealia.com>
8278
8279 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
8280
103a0089
AC
82812004-03-25 Andrew Cagney <cagney@redhat.com>
8282
8283 * PROBLEMS: Add general section titles, remove references to
8284 specific releases.
8285
7a5ea0d4
DJ
82862004-03-25 Daniel Jacobowitz <drow@mvista.com>
8287
8288 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
8289 INT_REGISTER_SIZE.
8290 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
8291 FP_REGISTER_VIRTUAL_SIZE.
8292 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
8293 of DEPRECATED_REGISTER_RAW_SIZE.
8294 (arm_register_type): Add gdbarch argument.
8295 (arm_register_raw_size, arm_register_virtual_size): Delete.
8296 (arm_register_byte, arm_extract_return_value)
8297 (arm_store_return_value, arm_get_longjmp_target): Update references
8298 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
8299 (arm_gdbarch_init): Likewise. Don't set
8300 deprecated_register_raw_size, deprecated_register_virtual_size,
8301 deprecated_max_register_raw_size,
8302 deprecated_max_register_virtual_size, or
8303 deprecated_max_register_virtual_type. Do set register_type.
8304 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
8305 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
8306 (FP_REGISTER_VIRTUAL_SIZE): Delete.
8307 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
8308 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
8309 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
8310 INT_REGISTER_SIZE.
8311 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
8312 (remote_rdp_store_register): Likewise.
8313
5792a79b
DJ
83142004-03-24 Daniel Jacobowitz <drow@mvista.com>
8315
8316 * Makefile.in (mips-linux-tdep.o): Update dependencies.
8317 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
8318 to after osabi initialization.
8319 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
8320 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
8321 functions.
8322 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
8323 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
8324 variables.
8325 (mips_linux_init_abi): Append signal trampoline unwinders.
8326
1196bfda
AC
83272004-03-24 Andrew Cagney <cagney@redhat.com>
8328
8329 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
8330 * tramp-frame.c: Include "gdb_assert.h".
8331 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
8332 correct sizeof.
8333 (tramp_frame_append): Validate the tramp frame's instructions.
8334 * Makefile.in (tramp-frame.o): Update dependencies.
8335
4be282b4
AC
83362004-03-23 Andrew Cagney <cagney@redhat.com>
8337
8338 * trad-frame.h (trad_frame_set_reg_addr): Declare.
8339
69aec09b
AC
83402004-03-23 Andrew Cagney <cagney@redhat.com>
8341
8342 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
8343 Nasser as past testsuite/lib/ (and other) maintainers.
8344
63ed89b4
DJ
83452004-03-23 Daniel Jacobowitz <drow@mvista.com>
8346
8347 * infcmd.c (attach_command): Reread symbols if we already have
8348 an exec file.
8349
f3b36427
AC
83502004-03-23 Andrew Cagney <cagney@redhat.com>
8351
8352 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
8353
aa2a3f87
AC
83542004-03-23 Andrew Cagney <cagney@redhat.com>
8355
8356 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
8357 * gdbarch.h, gdbarch.c: Re-generate.
8358 * i386obsd-tdep.c (i386obsd_init_abi): Update.
8359 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8360 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 8361 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 8362 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 8363 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
8364 (DEPRECATED_SIGTRAMP_START): Update.
8365 * blockframe.c (find_pc_sect_partial_function): Update.
8366 * arch-utils.c (legacy_pc_in_sigtramp): Update.
8367
00cac895
DJ
83682004-03-23 Daniel Jacobowitz <drow@mvista.com>
8369
8370 * remote.c (remote_open_1): Reopen the exec file and reread symbols
8371 if necessary.
8372
f561f026
AC
83732004-03-23 Andrew Cagney <cagney@redhat.com>
8374
8375 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
8376 predicate, deprecate.
8377 * gdbarch.h, gdbarch.c: Re-generate.
8378 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8379 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8380 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
8381 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8382 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
8383 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
8384 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
8385 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
8386 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
8387 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
8388 * blockframe.c (find_pc_partial_function): Update.
8389 * breakpoint.c (bpstat_what): Update.
8390 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
8391 * frv-linux-tdep.c (frv_linux_init_abi): Update.
8392 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
8393 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
8394 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8395 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8396 * i386-nto-tdep.c (i386nto_init_abi): Update.
8397 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
8398 * i386-tdep.c (i386_sigtramp_frame_sniffer)
8399 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
8400 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8401 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8402 * i386obsd-tdep.c (i386obsd_init_abi): Update.
8403 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
8404 * infrun.c (pc_in_sigtramp): Update.
8405 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
8406 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
8407 * mips-tdep.c (mips_gdbarch_init): Update.
8408 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
8409 * ppc-linux-tdep.c: Update comment.
8410 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
8411 * shnbsd-tdep.c (shnbsd_init_abi): Update.
8412 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
8413 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
8414 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
8415 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
8416 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
8417 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
8418 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
8419 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 8420
8050c72f
AC
84212004-03-23 Andrew Cagney <cagney@redhat.com>
8422
d2259dd3
AC
8423 * tramp-frame.h, tramp-frame.h: New files.
8424 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
8425 Update rules to include "tramp-frame.h" and "tramp-frame.c".
8426
8050c72f
AC
8427 * Makefile.in: Update all dependencies.
8428
0db9b4b7
AC
84292004-03-23 Andrew Cagney <cagney@redhat.com>
8430
8431 * Makefile.in (trad_frame_h): Add $(frame_h).
8432 * trad-frame.h: Update copyright. Include "frame.h".
8433 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
8434 (trad_frame_set_id, trad_frame_get_id): Declare.
8435 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
8436 * trad-frame.c: Update copyright.
8437 (struct trad_frame_cache): Define.
8438 (trad_frame_cache_zalloc): New function.
8439 (trad_frame_set_id, trad_frame_get_id): New functions.
8440 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 8441
8e645ae7
AC
84422004-03-22 Andrew Cagney <cagney@redhat.com>
8443
8444 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
8445 s390_pltstub_unwind_cache.
8446 (s390_stub_frame_unwind_cache): Rename
8447 s390_pltstub_frame_unwind_cache.
8448 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
8449 (s390_stub_frame_prev_register): Rename
8450 s390_pltstub_frame_prev_register.
8451 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
8452 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
8453
8454 From Ulrich Weigand:
8455 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
8456 pointer calls like PLT calls.
8457
34fcf120
DJ
84582004-03-22 Daniel Jacobowitz <drow@mvista.com>
8459
8460 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
8461 PC rather than the partial function start address. Use the start
8462 address to sanity check the found PDR.
8463
5b917078
DJ
84642004-03-22 Daniel Jacobowitz <drow@mvista.com>
8465
8466 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
8467 linux_handle_extended_wait.
8468
8adf9e78
AC
84692004-03-22 Andrew Cagney <cagney@redhat.com>
8470
c3122434
AC
8471 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
8472 function.
8473
8adf9e78
AC
8474 * frame.h (generic_pop_current_frame): Delete declaration.
8475 (deprecate_pop_dummy_frame): Deprecate
8476 generic_pop_dummy_frame.
8477 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
8478 (generic_pop_current_frame): Delete function.
8479 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
8480 generic_pop_current_frame.
8481 * v850-tdep.c (v850_pop_frame): Update.
8482 * mcore-tdep.c (mcore_pop_frame): Update.
8483 * sh64-tdep.c (sh64_pop_frame): Update.
8484 * h8300-tdep.c (h8300_pop_frame): Update.
8485
90ba813f
AC
84862004-03-22 Andrew Cagney <cagney@redhat.com>
8487
8488 * frame.h (deprecated_pc_in_call_dummy): Rename
8489 generic_pc_in_call_dummy.
8490 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
8491 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
8492 generic_pc_in_call_dummy.
8493 (pc_in_dummy_frame): Make static.
8494 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
8495 * gdbarch.h, gdbarch.c: Re-generate.
8496 * dummy-frame.c (dummy_frame_sniffer): Simplify.
8497 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
8498 (legacy_get_prev_frame): Ditto.
8499 * inferior.h: Delete reference to generic_pc_in_call_dummy in
8500 comment.
8718a420 8501
ca4bb888
AC
85022004-03-21 Andrew Cagney <cagney@redhat.com>
8503
244675f9
AC
8504 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
8505 declaration and out-of-date comment.
8506 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
8507 Delete function.
8508 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
8509 deprecated_pc_in_call_dummy.
8510
ca4bb888
AC
8511 * infrun.c (handle_inferior_event): For non legacy frames, use the
8512 frame ID and frame type to identify a signal trampoline. Update
8513 comments.
8514
1777c7b4
NW
85152004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
8516
8517 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
8518 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
8519
82417da5
AC
85202004-03-21 Andrew Cagney <cagney@redhat.com>
8521
8522 * frame-unwind.h: Update copyright.
8523 (struct frame_data): Add opaque declaration.
8524 (frame_sniffer_ftype): Declare.
8525 (struct frame_unwind): Add "unwind_data" and "sniffer".
8526 (frame_unwind_register_unwinder): Declare.
8527 (frame_unwind_find_by_frame): Add parameter "this_cache".
8528 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
8529 (legacy_get_prev_frame, legacy_get_prev_frame)
8530 (get_frame_type): Pass the prologue_cache to
8531 frame_unwind_find_by_frame.
8532 * frame-unwind.c (struct frame_unwind_table_entry): Add field
8533 "unwinder".
8534 (frame_unwind_register_unwinder): New function.
8535 (frame_unwind_find_by_frame): Handle an unwind sniffer.
8536
b2ba182e
PH
85372004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
8538
8539 * bcache.c (print_percentage): Use floating point to avoid
8540 incorrect results when portion*100 overflows.
8541
81332287
KB
85422004-03-19 Kevin Buettner <kevinb@redhat.com>
8543
8544 * ppc_tdep.h (ppc_linux_frame_saved_pc)
8545 (ppc_linux_init_extra_frame_info)
8546 (ppc_linux_frameless_function_invocation)
8547 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
8548 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
8549 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
8550 (rs6000_frame_chain): Delete declarations.
8551 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
8552 (ppc_linux_init_extra_frame_info)
8553 (ppc_linux_frameless_function_invocation)
8554 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
8555 (ppc_linux_init_abi): Remove registration of above deleted functions.
8556 * rs6000-tdep.c (rs6000_init_extra_frame_info)
8557 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
8558 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
8559 (rs6000_pop_frame, rs6000_frameless_function_invocation)
8560 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
8561 (rs6000_gdbarch_init): Remove registration of above deleted functions.
8562 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
8563 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
8564 frame management for all OSABIs.
8565
61a65099
KB
85662004-03-19 Andrew Cagney <cagney@redhat.com>
8567
8568 Committed by Kevin Buettner <kevinb@redhat.com>.
8569
8570 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
8571 Update copyright.
8572 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
8573 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
8574 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
8575 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
8576 unwinders. #ifdef legacy frame code.
8577 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8578 "frame-base.h".
8579 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
8580 (struct rs6000_frame_cache, rs6000_frame_cache)
8581 (rs6000_frame_this_id, rs6000_frame_prev_register)
8582 (rs6000_frame_sniffer, rs6000_frame_unwind)
8583 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
8584 (rs6000_frame_base): Implement a traditional frame unwinder.
8585 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
8586 frame unwinder.
8587
88f7da05
KB
85882004-03-19 Kevin Buettner <kevinb@redhat.com>
8589
8590 * breakpoint.c (adjust_breakpoint_address): Don't adjust
8591 breakpoint address for watchpoints or the catch eventpoints.
8592 Add new paramter ``bptype''. Adjust all callers.
8593
f826dce1
AC
85942004-03-19 Andrew Cagney <cagney@redhat.com>
8595
33cb8b0f
AC
8596 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
8597
f826dce1
AC
8598 * PROBLEMS: Delete note that ARM does not use frame code, problem
8599 fixed.
8600
43b1ab88
AC
86012004-03-18 Andrew Cagney <cagney@redhat.com>
8602
292ab034
AC
8603 * stack.c (return_command): Delete code wrapped in #ifdef
8604 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
8605
43b1ab88
AC
8606 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
8607
dbfe4626
AC
86082004-03-18 Andrew Cagney <cagney@redhat.com>
8609
8610 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
8611 DEPRECATED_IN_SIGTRAMP.
8612 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8613 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
8614 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8615 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8616 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8617 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8618 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8619 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8620 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
8621 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
8622
0cad6aec
AC
86232004-03-18 Andrew Cagney <cagney@redhat.com>
8624
8625 * frame-base.c: Update copyright. Include "gdb_obstack.h".
8626 (struct frame_base_table_entry): Define.
8627 (struct frame_base_table): Re-implement as a linked list.
8628 (frame_base_init): Re-implement.
8629 (frame_base_table): Delete function.
8630 (append_predicate): Delete function.
8631 (frame_base_append_sniffer): Update.
8632 (frame_base_set_default): Update.
8633 (frame_base_find_by_frame): Update.
8634 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
8635 * Makefile.in (frame-base.o): Update dependencies.
8636
9982c2e7
AC
86372004-03-17 Andrew Cagney <cagney@redhat.com>
8638
8639 * frame.c (legacy_get_prev_frame): Pass correct frame to
8640 frame_unwind_find_by_frame.
8641
8dfe8985
DC
86422004-03-17 David Carlton <carlton@kealia.com>
8643
8644 * NEWS: Mention C++ nested types and namespaces
8645
ed47347a
MC
86462004-03-16 Michael Chastain <mec.gnu@mindspring.com>
8647
8648 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
8649 and "Regressions since gdb 5.3.". Add known regressions since
8650 gdb 6.0.
8651
90aeadfc
DC
86522004-03-16 David Carlton <carlton@kealia.com>
8653
8654 * dwarf2read.c (process_structure_scope): Process children even
8655 when we're a declaration.
8656
73912b9b
AC
86572004-03-16 Andrew Cagney <cagney@redhat.com>
8658
8659 * symtab.h (find_pc_sect_partial_function): Delete declaration.
8660 * blockframe.c (find_pc_partial_function)
8661 (find_pc_sect_partial_function): Merge into a single
8662 find_pc_partial_function.
8663
283accbc
MK
86642004-03-16 Mark Kettenis <kettenis@gnu.org>
8665
8666 * i386bsd-nat.c: s/regno/regnum/g.
8667 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
8668 FP0_REGNUM.
8669 (store_inferior_registers): Likewise.
8670
f5b1afdf
MK
86712004-03-16 Mark Kettenis <kettenis@gnu.org>
8672
8673 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
8674 of i387_fill_fsave.
8675 (store_inferior_registers): Call i387_collect_fsave and
8676 i387_collect_fxsave instead of i387_fill_fsave and
8677 i387_fill_fxsave.
8678
41fe5eb3
AC
86792004-03-15 Andrew Cagney <cagney@redhat.com>
8680
8681 * Makefile.in (frame-unwind.o): Update dependencies.
8682 * frame-unwind.c: Include "gdb_obstack.h".
8683 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
8684 parameter.
8685 (append_predicate): Delete function.
8686 (struct frame_unwind_table_entry): New structure.
8687 (struct frame_unwind_table): Replace "sniffer" with "head" and
8688 "tail".
8689 (frame_unwind_append_sniffer): Update.
8690 (frame_unwind_find_by_frame): Update.
8691 (_initialize_frame_unwind): Registe frame_unwind_init using
8692 gdbarch_data_register_pre_init.
8693
3f63813d
MK
86942004-03-15 Mark Kettenis <kettenis@gnu.org>
8695
8696 * i386bsd-nat.c: Update copyright year.
8697 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
8698 define unconditionally.
8699
3248c325 87002004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
8701
8702 * i387-tdep.h (i387_collect_fsave): New prototype.
8703 * i387-tdep.c (i387_collect_fsave): New function containing most
8704 of the code from i387_fill_fsave.
3248c325 8705 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 8706
871fbe6a
MK
87072004-03-15 Mark Kettenis <kettenis@gnu.org>
8708
8709 * i386-linux-tdep.c: Update copyright year.
8710 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
8711 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
8712 svr4_ilp32_link_map_offsets instead of
8713 i386_linux_svr4_fetch_link_map_offsets.
8714
8176b9b8
DC
87152004-03-15 David Carlton <carlton@kealia.com>
8716
8717 Fix for PR c++/1553:
8718 * dwarf2read.c (read_structure_type): Determine type name by
8719 calling determine_class_name.
8720 (determine_class_name): New.
8721 (determine_prefix): Look at TYPE_TAG_NAME and call
8722 determine_class_name when appropriate.
8723 (determine_prefix_aux, class_name): Delete.
9d58e29d 8724 (read_namespace): Set die->type.
8176b9b8 8725
fe8bf7d7
KB
87262004-03-15 Kevin Buettner <kevinb@redhat.com>
8727
8728 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
8729 unused macro definition. The definition in target.h (or perhaps
8730 elsewhere) takes precedence.
8731
ed6edd9b
AC
87322004-03-15 Andrew Cagney <cagney@redhat.com>
8733
f9be684a
AC
8734 * ppc-tdep.h: Update copyright.
8735 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
8736 function signatures to match "regsets.h".
8737 * ppc-linux-tdep.c: Include "regset.h".
8738 (ELF_GREGSET_SIZE): Delete.
8739 (right_supply_register): New function.
8740 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
8741 using right_supply_register.
8742 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
8743 functions.
8744 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
8745 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
8746 (_initialize_ppc_linux_tdep): Do not register
8747 ppc_linux_regset_core_fns.
8748 (ppc_linux_regset_from_core_section): Replace
8749 fetch_core_registers.
8750 (ppc_linux_regset_core_fns): Delete.
8751 * ppc-linux-nat.c: (right_fill_reg): New function.
8752 (supply_gregset): Update call to ppc_linux_supply_gregset.
8753 (fill_gregset): Clear the register set, use right_fill_reg.
8754 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
8755 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
8756
ed6edd9b
AC
8757 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
8758 unsigned.
8759
030f20e1
AC
87602004-03-15 Andrew Cagney <cagney@redhat.com>
8761
8762 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
8763 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
8764 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
8765 and register_gdbarch_data.
8766 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
8767 (struct gdbarch_data): Replace "init" by "pre_init" and
8768 "post_init".
8769 * gdbarch.h, gdbarch.c: Re-generate.
8770 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
8771 with"obstack", use OBSTACK_ZALLOC.
8772 (dwarf2_frame_ops): Delete.
8773 (dwarf2_frame_set_init_reg): Use gdbarch_data.
8774 (dwarf2_frame_init_reg): Use gdbarch_data.
8775 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 8776 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
8777 (_initialize_svr4_solib): Update.
8778 * user-regs.c (_initialize_user_regs): Update.
8779 * reggroups.c (_initialize_reggroup): Update.
8780 * regcache.c (_initialize_regcache): Update.
8781 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8782 * libunwind-frame.c (_initialize_libunwind_frame): Update.
8783 * gnu-v3-abi.c (init_gnuv3_ops): Update.
8784 * frame-unwind.c (_initialize_frame_unwind): Update.
8785 * frame-base.c (_initialize_frame_base): Update.
8786 * user-regs.c (user_reg_add): Update.
8787 * reggroups.c (reggroup_add): Update.
8788 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
8789 * libunwind-frame.c (libunwind_frame_set_descr): Update.
8790 * frame-unwind.c (frame_unwind_append_sniffer): Update.
8791 * frame-base.c (frame_base_table): Update.
8792 * remote.c (_initialize_remote): Update.
8793 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 8794
3111a3fc
AC
87952004-03-15 Andrew Cagney <cagney@redhat.com>
8796
8797 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
8798
5ecb7103
KB
87992004-03-15 Kevin Buettner <kevinb@redhat.com>
8800
8801 * Makefile.in (frv-linux-tdep.o): Add dependencies.
8802 * frv-linux-tdep.c: New file.
8803 * frv-tdep.c (struct gdbarch_tdep): Add new field
8804 ``sigcontext_reg_addr''.
8805 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
8806 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8807 (frv_sigramp_frame_sniffer): New functions.
8808 (frv_sigtramp_frame_unwind): New static global.
8809 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
8810 sniffers.
8811 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
8812 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
8813
1ccda5e9
KB
88142004-03-15 Kevin Buettner <kevinb@redhat.com>
8815
8816 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
8817 but not via a call to error(), when unable to read memory.
8818
b375a0a5
KB
88192004-03-15 Kevin Buettner <kevinb@redhat.com>
8820
8821 * frv-tdep.c (frv_call_dummy_words): Delete.
8822 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
8823
4fdf6121
AC
88242004-03-15 Andrew Cagney <cagney@redhat.com>
8825
8826 * infrun.c (handle_step_into_function, step_over_function): Only
8827 update and use STEP_FRAME_ID when the system is using legacy
8828 frames. Update comments.
8829
34021503
MK
88302004-03-14 Mark Kettenis <kettenis@gnu.org>
8831
187e21d1
MK
8832 * amd64-linux-tdep.h: Remove file.
8833 * amd64-linux-tdep.c: Don't include "inferior.h" and
8834 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
8835 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
8836 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
8837 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
8838 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
8839 macros.
8840 (user_to_gdb_regmap): Remove variable.
8841 (amd64_linux_gregset_reg_offset): New variable.
8842 (amd64_core_fns): Remove variable.
8843 (fetch_core_registers): Remove function.
8844 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
8845 functions.
8846 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
8847 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
8848 * Makefile.in (amd64_linux_tdep_h): Remove.
8849 (amd64-linux-nat.o): Update dependencies.
8850 (amd64-linux-tdep.o): Update dependencies.
8851
99679982
MK
8852 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
8853 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
8854 functions.
8855 (fetch_inferior_registers, store_inferior_registers): Rewrite.
8856
34021503
MK
8857 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
8858 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
8859
134d01f1
DJ
88602004-03-14 Daniel Jacobowitz <drow@mvista.com>
8861
8862 * dwarf2read.c (read_structure_type): Rename from
8718a420 8863 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
8864 Return immediately if die->type is set. Call read_type_die before
8865 dwarf2_add_member_fn.
8866 (process_structure_scope): New function.
8867 (read_enumeration_type, process_enumeration_scope): New functions,
8868 broken out from read_enumeration. Don't create the enumeration
8869 type if it has already been created.
8870 (read_enumeration): Removed.
8871 (process_die): Call read_structure_type, process_structure_scope,
8872 read_enumeration_type, and process_enumeration_scope. Just call
8873 new_symbol for base and subrange types. Add a comment about other
8874 type dies.
8875 (read_type_die): Call read_enumeration_type.
8876 (add_partial_structure, new_symbol): Update comments.
8877
65760afb
SC
88782004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8879
8880 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
8881
10f59415
SC
88822004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8883
8884 * tui/tui-win.h (tui_get_cmd_list): Declare.
8885 * tui/tui-win.c (tui_command): New function.
8886 (tui_get_cmd_list): New function.
8887 (_initialize_tui_win): Moved initialization of tui command in
8888 tui_get_cmd_list.
8889
8890 * tui/tui-data.c (init_content_element): Setup new data members.
8891 (init_win_info): Likewise.
8892 (free_content_elements): Free it.
8893 * tui/tui-data.h (struct tui_data_element): Store the register
8894 content to print.
8895 (struct tui_data_info): Keep the current register group.
8896
8897 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
8898
8899 * tui/tui-regs.h (tui_show_registers): Update prototype.
8900 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
8901 (tui_resize_all): No need to calculate anything for register window.
8902 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
8903 (tui_set_register_element, tui_set_general_regs_content): Remove.
8904 (tui_set_special_regs_content): Remove.
8905 (tui_set_general_and_special_regs_content): Remove.
8906 (tui_set_float_regs_content): Remove.
8907 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
8908 (tui_set_regs_content): Remove.
8909 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
8910 (tui_v_show_registers_command_support): Remove.
8911 (tui_show_registers): Use a reggroup to specify the registers to show.
8912 (tui_show_register_group): New function.
8913 (tui_display_registers_from): Compute the layout of register window
8914 and refresh with new API; be sure to delete old register windows.
8915 (tui_check_register_values): Update to use tui_get_register and
8916 tui_display_data.
8917 (tui_display_register): Just refresh the register window part.
8918 (tui_register_format): Format registers and save in tui_data_element.
8919 (tui_get_register): New to combine tui_reg_value_has_changed and
8920 tui_get_register_raw_value; fix to use the new gdb API.
8921 (tui_show_float_command): Renamed tui_reg_float_command.
8922 (tui_show_general_command): Renamed tui_reg_general_command.
8923 (tui_show_special_command): Renamed tui_reg_system_command.
8924 (_initialize_tui_regs): Remove unused commands.
8925
c3364ea4
MK
89262004-03-13 Mark Kettenis <kettenis@gnu.org>
8927
27d1e716
MK
8928 * NEWS (New native configurations): Mention OpenBSD/amd64.
8929
c3364ea4
MK
8930 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
8931 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
8932 Remove defines.
8933 * config/i386/nm-fbsd64.h: Likewise.
8934 * config/i386/nm-obsd.h: Likewise.
8935 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
8936 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
8937
b2d6d697
KB
89382004-03-12 Kevin Buettner <kevinb@redhat.com>
8939
8940 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
8941 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
8942 New constants.
8943
76e43199
KB
8944 From Richard Sandiford <rsandifo@redhat.com>:
8945 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
8946
34ce532e
KB
89472004-03-12 Kevin Buettner <kevinb@redhat.com>
8948
8949 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
8950 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
8951 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
8952 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
8953 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
8954 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
8955 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
8956 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
8957 definitions from frv-tdep.c to frv-tdep.h.
8958
c4d10515
KB
89592004-03-12 Kevin Buettner <kevinb@redhat.com>
8960
8961 Add shared library support for FR-V FDPIC ABI:
8962 * Makefile.in (solib-frv.o): Add dependencies.
8963 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
8964 New functions.
8965 (frv_push_dummy_call): Add support for FDPIC ABI.
8966 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
8967 for FDPIC ABI.
8968 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
8969 (frv_fdpic_find_canonical_descriptor): Declare.
8970 * solib-frv.c: New file.
8971 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
8972 * config/frv/tm-frv.h (solib.h): Include.
8973
ed1bd989
KB
89742004-03-12 Kevin Buettner <kevinb@redhat.com>
8975
8976 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
8977 (frv-tdep.o): Update dependencies.
8978 * frv-tdep.h: New file.
8979 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
8980 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
8981 constants.
8982 (struct gdbarch_tdep): Add new member ``frv_abi''.
8983 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
8984 functions.
8985 (new_variant): Set ``frv_abi'' field.
8986 (gdb_arch_init): Detect FDPIC executables.
8987
82b38f72
MK
89882004-03-12 Mark Kettenis <kettenis@gnu.org>
8989
8990 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
8991 wrapper.
8992
db1ea9ba
AC
89932004-03-11 Andrew Cagney <cagney@redhat.com>
8994
8995 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
8996
f8766ec1
KB
89972004-03-11 Kevin Buettner <kevinb@redhat.com>
8998
8999 * solist.h (master_so_list): New function.
9000 * solib.c (master_so_list): Likewise.
9001 * solib-svr4.c (enable_break): Iterate over so_list entries
9002 obtained from master list instead of entries obtained directly
9003 via svr4_current_sos().
9004
523f6a27
BE
90052004-03-10 Ben Elliston <bje@gnu.org>
9006
9007 * MAINTAINERS: Update my mail address.
9008
37814c18
KI
90092004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
9010
9011 * remote-m32r-sdi.c: Support hardware watchpoint.
9012
8b9740d8
DJ
90132004-03-09 Daniel Jacobowitz <drow@mvista.com>
9014
9015 * user-regs.c: Update copyright years.
9016 (struct user_regs): Rename to gdb_user_regs.
9017 (append_user_reg, builtin_user_regs, user_regs_init)
9018 (user_reg_add, user_reg_map_name_to_regnum)
9019 (usernum_to_user_reg): Update.
9020
4bb7a0a7
DJ
90212004-03-09 Daniel Jacobowitz <drow@mvista.com>
9022
9023 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
9024 (skip_children): New functions.
9025 (locate_pdi_sibling): Call skip_children.
9026
44e1a9eb
DJ
90272004-03-09 Daniel Jacobowitz <drow@mvista.com>
9028
9029 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
9030 * gdbtypes.c (check_typedef): Update comments.
9031
f3dd6933
DJ
90322004-03-09 Daniel Jacobowitz <drow@mvista.com>
9033
9034 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
9035 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
9036 pointer. Update comment about comp_unit_head.
9037 (struct abbrev_info): Shorten two int flags.
9038 (dwarf_alloc_abbrev): Take a CU argument.
9039 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
9040 each time through the loop. Update cleanup argument.
9041 (psymtab_to_symtab_1): Update cleanup call.
9042 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
9043 abbrev_obstack.
9044 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
9045 Just call obstack_free and clear the pointer.
9046
b40c7d58
DJ
90472004-03-09 Daniel Jacobowitz <drow@mvista.com>
9048
9049 * infrun.c (handle_inferior_event): Remove short-circuit code for
9050 events in a different thread.
9051
333dabeb
DJ
90522004-03-09 Daniel Jacobowitz <drow@mvista.com>
9053
9054 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
9055 print the whole transfer.
9056 (initialize_targets): Update description of "set debug target".
9057
aa17d93e
DJ
90582004-03-09 Daniel Jacobowitz <drow@mvista.com>
9059
9060 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
9061
0b71f08f
NW
90622004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
9063
9064 * MAINTAINERS (write after approval): Add myself.
9065
3930f270
CV
90662004-03-08 Corinna Vinschen <vinschen@redhat.com>
9067
9068 * sh-tdep.c (sh_print_registers_info): Use for loop.
9069 Don't skip multiple registers when a float register is encountered.
9070
a2b4a96c
CV
90712004-03-08 Corinna Vinschen <vinschen@redhat.com>
9072
9073 Fix PR tdep/1291.
9074 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
9075 to official SH documentation.
9076
f15a4bc0
AC
90772004-03-07 Andrew Cagney <cagney@redhat.com>
9078
9079 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
9080 unused function.
9081
9498281f
DJ
90822004-03-07 Daniel Jacobowitz <drow@mvista.com>
9083
9084 * arm-tdep.c (thumb_get_next_pc): Handle BX.
9085 (arm_get_next_pc): Handle BX and BLX.
9086
449e1137
AC
90872004-03-07 Andrew Cagney <cagney@redhat.com>
9088
eded0a31
AC
9089 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
9090 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
9091 HPPA_SP_REGNUM.
9092 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
9093 (hppa_target_read_fp): Delete.
9094 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
9095 register_virtual_size, max_register_raw_size,
9096 max_register_virtual_size, register_byte, register_size,
9097 target_read_fp, fp_regnum, and register_bytes. Set register_type
9098 instead of register_virtual_type.
9099 (hppa32_register_type, hppa64_register_type): Replace
9100 hppa32_register_virtual_type and hppa64_register_virtual_type.
9101 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
9102 (HPPA_FP_REGNUM): Define.
9103
f5f907e2
AC
9104 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
9105
69b4bbe4
AC
9106 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
9107 (pa_do_registers_info): Delete.
9108 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 9109 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 9110 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 9111
78161e48
AC
9112 * infcall.c (legacy_push_dummy_code): Delete #ifdef
9113 GDB_TARGET_IS_HPPA code.
9114 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 9115 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
9116 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
9117 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
9118 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
9119 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
9120 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 9121 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
9122 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
9123 (hppa_frameless_function_invocation, hppa64_store_return_value)
9124 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 9125 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 9126 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 9127 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
9128 (find_proc_framesize, deposit_21, restore_pc_queue)
9129 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 9130 (rp_saved, pc_in_linker_stub): Delete.
78161e48 9131
782eae8b
AC
9132 Unconditionally enable 64-bit frame and ABI code.
9133 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
9134 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
9135 push_dummy_frame, fix_call_dummy, push_arguments,
9136 call_dummy_location, extract_return_value, use_struct_convention,
9137 store_return_value, store_struct_return, saved_pc_after_call,
9138 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
9139 frame_chain, frame_chain_valid, frameless_function_invocation,
9140 frame_saved_pc, and pop_frame.
78161e48 9141
449e1137
AC
9142 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
9143 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
9144 (hppa_gdbarch_init): Do not set PC_REGNUM.
9145
12507572
MK
91462004-03-06 Mark Kettenis <kettenis@gnu.org>
9147
9148 * config/alpha/tm-fbsd.h: Remove file.
9149 * config/alpha/fbsd.mt: Tweak comment.
9150 (TM_FILE): Set to tm-alpha.h.
9151
c107cc1b
AC
91522004-03-05 Andrew Cagney <cagney@redhat.com>
9153
9154 * infrun.c (step_over_function): When non-legacy code, and no
9155 step_frame_id, use the unwinder to get the caller's frame ID.
9156
f2e7c15d
MK
91572004-03-05 Mark Kettenis <kettenis@gnu.org>
9158
8b0c3633
MK
9159 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
9160 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
9161 bfd_arch_unknown. Adjust comment.
9162
f2e7c15d
MK
9163 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
9164 * i386obsd-tdep.c: Correct spelling in comment.
9165 * i386nbsd-tdep.c: Correct spelling in comment.
9166 * sparc-tdep.c: Correct spelling in comments.
9167
1198ecbe
DC
91682004-03-05 David Carlton <carlton@kealia.com>
9169
9170 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
9171 bug.
9172
9eb42ed1
MK
91732004-03-05 Mark Kettenis <kettenis@gnu.org>
9174
9175 * sparc-tdep.c: Fix typo in comment.
9176
52b5e991
JB
91772004-03-04 J. Brobecker <brobecker@gnat.com>
9178
9179 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
9180
d8151005
DJ
91812004-03-04 Daniel Jacobowitz <drow@mvista.com>
9182
9183 * dwarf2read.c: Add comment describing memory lifetimes.
9184 (struct dwarf2_pinfo): Update comment.
9185 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
9186 (read_enumeration, new_symbol): Don't use obsavestring.
9187
cbeae229
MK
91882004-03-04 Mark Kettenis <kettenis@gnu.org>
9189
722d18c2
MK
9190 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
9191 instead of amd64_fill_fxsave.
9192 * amd64bsd-nat.c (store_inferior_registers): Likewise.
9193 * amd64fbsd-nat.c (fill_fpregset): Likewise.
9194
cbeae229
MK
9195 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
9196 Reorganize code a bit.
9197
b4206d25
OF
91982004-03-04 Orjan Friberg <orjanf@axis.com>
9199
9200 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
9201 when the frame pointer is pushed. Don't set the frame pointer's
9202 address on the stack unless it's actually located there.
b4206d25
OF
9203 Set the SRP's address on the stack correctly when the PC is still in
9204 the prologue.
9205 (cris_return_value): New function.
9206 (cris_gdbarch_init): Clear deprecated store_return_value,
9207 extract_return_value.
9208
49b0b195
JB
92092004-03-02 Jim Blandy <jimb@redhat.com>
9210
9211 * stabsread.c (reg_value_complaint): The maximum register number
9212 is one less than the number of registers.
9213
e9ff708b
AC
92142004-03-02 Andrew Cagney <cagney@redhat.com>
9215
9216 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
9217 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
9218 trailing comma and redundant assignment of I386_ST0_REGNUM.
9219 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
9220 32-bit segment registers.
9221
d4715e41
AC
92222004-03-01 Andrew Cagney <cagney@redhat.com>
9223
9224 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
9225 use frame_relative_level and get_next_frame.
9226
3ce2bf18
AC
92272004-02-29 Andrew Cagney <cagney@redhat.com>
9228
9229 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
9230 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
9231 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
9232 Delete macro.
9233
2da6aac3
DJ
92342004-02-29 Daniel Jacobowitz <drow@mvista.com>
9235
9236 * inflow.c (terminal_inferior): Don't give up the terminal if we
9237 previously couldn't get the inferior's terminal state.
9238
6ba34a8d
DJ
92392004-02-29 Daniel Jacobowitz <drow@mvista.com>
9240
9241 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
9242 PC_REGNUM.
9243
faae5abe
AC
92442004-02-28 Andrew Cagney <cagney@redhat.com>
9245
9246 * NEWS: Refer to GDB 6.1.
9247 * README: Refer to GDB 6.1.
9248 * PROBLEMS: Refer to GDB 6.1.
9249
2227a3c5
DJ
92502004-02-28 Daniel Jacobowitz <drow@mvista.com>
9251
9252 * thread-db.c (disable_thread_signals): Remove unused function.
9253
80571bff
MK
92542004-02-28 Mark Kettenis <kettenis@gnu.org>
9255
041bd74b
MK
9256 * amd64-nat.c: Include "gdb_string.h".
9257 (amd64_collect_native_gregset): Zero-extend the 32-bit
9258 general-purpose registers and %eip.
9259
3c017e40
MK
9260 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
9261 * amd64-tdep.c (amd64_collect_fxsave): New function.
9262 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
9263
80571bff
MK
9264 * i387-tdep.h: Update copyright year.
9265 (i387_collect_fxsave): New prototype.
9266 * i387-tdep.c: Update copyright year.
9267 (i387_collect_fxsave): New function containing most of the code
9268 from i387_fill_fxsave.
9269 (i387_fill_fxsave): Call i387_collect_fxsave.
9270
50d71875
AC
92712004-02-28 Andrew Cagney <cagney@redhat.com>
9272
9273 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
9274 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
9275
4a28816e
MK
92762004-02-28 Mark Kettenis <kettenis@gnu.org>
9277
9278 * amd64-tdep.c (amd64_frame_cache): Fix comment.
9279
dbda9972
AC
92802004-02-28 Andrew Cagney <cagney@redhat.com>
9281
9282 * utils.c: Use "", instead of <>, to include readline.
9283 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
9284 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
9285 * source.c, solib.c, exec.c, event-top.c: Ditto.
9286 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
9287 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
9288 * Makefile.in: Update all dependencies.
9289 (readline_tilde_h, readline_history_h): Define.
9290 (readline_headers): Delete.
9291
83277a99
MK
92922004-02-28 Mark Kettenis <kettenis@gnu.org>
9293
91ae4303
MK
9294 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
9295 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
9296 "config/i386/tm-lx64.h".
9297
83277a99
MK
9298 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
9299 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
9300 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
9301
6e1d7d6c
AC
93022004-02-28 Andrew Cagney <cagney@redhat.com>
9303
ecc9ac84
AC
9304 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
9305
6e1d7d6c
AC
9306 * breakpoint.c (_initialize_breakpoint): Use
9307 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
9308 Add help to show command.
9309
9671aeef
MK
93102004-02-28 Mark Kettenis <kettenis@gnu.org>
9311
7fa2737c
MK
9312 * i386-nat.c: Reformat to be closer to coding standards.
9313 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
9314 `retval'. Make variables `align' and `size' local to while-loop.
9315 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
9316 (_initialize_i386_nat): New prototype.
9317
9671aeef
MK
9318 * tui/tui.c: Include <readline/readline.h> instead of
9319 "readline/readline.h". Include it after <term.h> and
9320 "gdb_curses.h".
9321
fca7aa43
AC
93222004-02-27 Andrew Cagney <cagney@redhat.com>
9323
412275d5
AC
9324 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
9325 the new frame unwind code.
9326 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
9327 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
9328 PCOQ_HEAD_REGNUM.
9329
fca7aa43
AC
9330 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
9331 "return_value" and "push_dummy_call".
9332 (hppa32_use_struct_convention): Delete unused function.
9333 (hppa32_store_return_value): Delete unused function.
9334 (hppa32_extract_return_value): Delete unused function.
9335 (hppa32_stack_align): Delete function.
9336
e6a8a7d2
EZ
93372004-02-27 Eli Zaretskii <eliz@elta.co.il>
9338
9339 * coffread.c (enter_linenos): Don't let rawptr reference memory
9340 outside linetab[]'s limits.
9341
1797a8f6
AC
93422004-02-27 Andrew Cagney <cagney@redhat.com>
9343
9344 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
9345 inferior stack space - the stack needs to grow upwards.
9346 (hppa32_frame_align): New function.
9347 (hppa64_frame_align): Replace hppa_frame_align.
9348 (hppa_gdbarch_init): Update.
9349
2e4b5889
OF
93502004-02-26 Orjan Friberg <orjanf@axis.com>
9351
9352 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
9353 (dwarf2-frame.h): Include.
9354 (enum cris_regnums): New enum CRIS_FP_REGNUM.
9355 Remove static variables related to ABI setting.
9356 (struct gdbarch_tdep): Remove cris_abi member.
9357 (struct frame_extra_info): Remove.
9358 (cris_unwind_cache, stack_item): New structs.
9359 (cris_frame_unwind, cris_frame_base): New variables.
9360 (push_stack_item, pop_stack_item)
9361 (cris_frame_unwind_cache, cris_frame_this_id)
9362 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
9363 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
9364 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
9365 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
9366 (cris_reg_struct_has_addr): New functions.
9367 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 9368 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
9369 (cris_store_struct_return, cris_frameless_function_invocation)
9370 (cris_pop_frame, cris_skip_prologue_main)
9371 (cris_abi_original_store_return_value)
9372 (cris_abi_v2_store_return_value)
9373 (cris_abi_original_extract_return_value)
9374 (cris_abi_v2_extract_return_value)
9375 (cris_abi_original_reg_struct_has_addr)
9376 (cris_abi_v2_reg_struct_has_addr)
9377 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
9378 (cris_push_return_address, cris_abi_update): Remove.
9379 (_initialize_cris_tdep): Remove ABI command.
9380 (cris_dump_tdep): Ditto.
8718a420 9381 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
9382 Set store_return_value, extract_return_value, push_dummy_code,
9383 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
9384 frame_unwind_append_sniffer, frame_base_set_default.
9385 Clear deprecated init_frame_pc, push_arguments, store_return_value,
9386 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
9387 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 9388 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
9389 init_extra_frame_info, frameless_function_invocation, frame_chain,
9390 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
9391 dummy_write_sp.
8718a420 9392
6b9acc27
JJ
93932004-02-26 Jeff Johnston <jjohnstn@redhat.com>
9394
9395 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
9396 * valprint.c (print_hex_chars): Change from static to external.
9397 (print_char_chars): New function.
9398 * printcmd.c (print_scalar_formatted): For integer and enum types
9399 that are longer than LONGEST, perform processing via appropriate
9400 print_*_chars routines.
9401
a431654a
AC
94022004-02-26 Andrew Cagney <cagney@redhat.com>
9403
9404 * Makefile.in: Update dependencies.
9405 Changes from Ulrich Weigand,
9406 * s390-tdep.c: Include "dwarf2-frame.h".
9407 (s390_dwarf2_frame_init_reg): New function.
9408 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
9409 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
9410
fa8d40ab
JJ
94112004-02-26 Jeff Johnston <jjohnstn@redhat.com>
9412
9413 * breakpoint.c (pending_break_support): New setting variable.
9414 (break_command_1): Account for pending_break_support setting
9415 when creating pending breakpoints.
9416 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
9417 (_initialize_breakpoint): Add "set breakpoint pending" and
9418 "show breakpoint pending" commands.
9419
0dcd613f
AC
94202004-02-26 Andrew Cagney <cagney@redhat.com>
9421
9422 Fix PR i18n/1570.
9423 * charset.c (backslashable, backslashed, represented): Remove 'e'
9424 from list of escaped characters, not part of ISO-C.
9425
479272a3
JB
94262004-02-25 J. Brobecker <brobecker@gnat.com>
9427
9428 From Peter Schauer <schauer@pdf.de>:
9429 * tui/tui.c: Move system header includes after local includes.
9430 Fixes a build failure on solaris systems.
9431
7613d933
JB
94322004-02-25 J. Brobecker <brobecker@gnat.com>
9433
9434 * configure.in: Refine the previous change.
9435 * configure: Regenerate.
9436
9c1488cb
MK
94372004-02-25 Mark Kettenis <kettenis@gnu.org>
9438
9439 * amd64-tdep.h: Renamed from x86-64-tdep.h.
9440 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
9441 "amd64-tdep.h" instead of "x86-64-tdep.h".
9442 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9443 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
9444 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
9445 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9446 and "x86-64-tdep.c".
9447 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
9448 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9449 and "x86-64-tdep.c".
9450 * amd64bsd-nat.c: Update copyright year.
9451 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9452 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
9453 "x86-64-tdep.h".
9454 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
9455 "x86-64-tdep.h".
9456 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
9457 "x86-64-tdep.h".
9458 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
9459 "x86-64-tdep.h".
9460 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
9461 "x86-64-tdep.h".
9462 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
9463 "x86-64-tdep.h".
8718a420 9464 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
9465 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
9466 * Makefile.in (amd64_linux_tdep_h): Renamed from
9467 x86_64_linux_tdep_h.
9468 (amd64_tdep_h): Renamed from x86_64_tdep_h.
9469 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
9470 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
9471 (amd64obsd-tdep.o): Update dependencies.
9472 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
9473 dependencies.
9474 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
9475 dependencies.
9476 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
9477 amd64-linux-nat.c amd64-linux-tdep.c.
9478 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
9479 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
9480 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
9481 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
9482 amd64-tdep.o and amd64-linux-tdep.o.
9483 (TM_FILE): Set to tm-linux64.h.
9484 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
9485 (NAT_FILE): Set to nm-linux64.h.
9486 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
9487 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9488 amd64-tdep.o.
9489 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9490 amd64-tdep.o.
9491 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9492 amd64-tdep.o.
9493
4b8dad4a
RM
94942004-02-25 Roland McGrath <roland@redhat.com>
9495
9496 * remote.c (remote_protocol_qPart_auxv): New variable.
9497 (init_all_packet_configs): Initialize it.
9498 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
9499 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
9500 (show_remote_cmd): Call it.
9501 (_initialize_remote): Initialize commands.
9502 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
9503 service TARGET_OBJECT_AUXV requests.
9504
66745969
JB
95052004-02-25 J. Brobecker <brobecker@gnat.com>
9506
9507 * configure.in: Make sure that the wborder function is available.
9508 Otherwise, search for it in the cur_colr library.
9509 * configure: Regenerate.
9510
79508e1e
AC
95112004-02-25 Andrew Cagney <cagney@redhat.com>
9512
9513 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
9514
571ee600
MK
95152004-02-25 Mark Kettenis <kettenis@gnu.org>
9516
9517 * config/i386/tm-x86-64linux.h: Tweak comments.
9518
2b1b322f 95192004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
9520
9521 * MAINTAINERS: Add self to write-after-approval list.
9522
4d2acc65
AC
95232004-02-25 Andrew Cagney <cagney@redhat.com>
9524
4b8dad4a 9525 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
9526 * cli/cli-script.c (execute_control_command): Unconditionally
9527 install a cleanup. Default "ret" to "invalid_control". Use
9528 "break" instead of "return" to escape from the switch.
9529
4cfcaf21
JB
95302004-02-24 J. Brobecker <brobecker@gnat.com>
9531
9532 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
9533 with the lines macro defined in term.h on AiX.
9534 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
9535 a collision with the label_width macro defined in term.h on AiX.
9536
54a5c8d8
KB
95372004-02-23 David Mosberger <davidm@hpl.hp.com>
9538
9539 Committed by Kevin Buettner <kevinb@redhat.com>.
9540
9541 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
9542 * ia64-tdep.c (ia64_write_pc): Make it a global function.
9543 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
9544 instead of ia64_write_pc().
9545 * ia64-linux-tdep.c (regcache.h): Include.
9546 (ia64_linux_write_pc): New function.
4b8dad4a 9547
8a1dac83
RM
95482004-02-23 Roland McGrath <roland@redhat.com>
9549
9550 * auxv.c (info_auxv_command): Fix typos in error messages.
9551
90f90721
MK
95522004-02-23 Mark Kettenis <kettenis@gnu.org>
9553
8a1dac83 9554 * x86-64-tdep.h: Tweak comment.
90f90721
MK
9555 (enum amd64_regnum): New.
9556 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
9557 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
9558 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
9559 (X86_64_XMM1_REGNUM): Removed.
9560 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
9561 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
9562 prototypes for renamed functions.
9563 * x86-64-tdep.c: Fix typo.
9564 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
9565 register numbers.
9566 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
9567 Use constants from `enum amd64_regnum' for register numbers.
9568 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
9569 (amd64_analyze_prologue, amd64_frame_cache,
9570 amd64_sigtramp_frame_cache): Use constants from `enum
9571 amd64_regnum' for register numbers.
9572 (amd64_supply_fpregset): Adjust for renamed functions.
9573 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
9574 `enum amd64_regnum' for register numbers.
9575 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
9576 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
9577 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
9578 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
9579 (amd64_linux_fill_gregset): Adjust for renamed macros.
9580 (fetch_core_registers): Adjust for renamed functions.
9581 (amd64_linux_init_abi): Adjust for renamed functions.
9582 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
9583 renamed functions.
9584 * amd64-nat.c: Adjust for renamed macros.
9585 * amd64bsd-nat.c (fetch_inferior_registers)
9586 (store_inferior_registers): Use constants from `enum amd64_regnum'
9587 for register numbers. Adjust for renamed variables.
9588 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
9589 renamed variables.
9590 (_initialize_amd64fbsd_nat): Use constants from `enum
9591 amd64_regnum' for register numbers.
9592 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
9593 `enum amd64_regnum' for register numbers.
9594 (amd64fbsd_init_abi): Adjust for renamed functions.
9595 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
9596 `enum amd64_regnum' for register numbers.
9597 (amd64nbsd_init_abi): Adjust for renamed functions.
9598 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
9599 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
9600 `enum amd64_regnum' for register numbers.
9601 (amd64obsd_init_abi): Adjust for renamed functions.
9602 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
9603
d5479188
JJ
96042004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9605
9606 * breakpoint.c (print_one_breakpoint): Do not output spaces
9607 after printing <PENDING> for a pending breakpoint.
9608
81cb7cc9
JJ
96092004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9610
9611 * printcmd.c (print_scalar_formatted): Initialize val_long
9612 to remove compiler warning message.
9613
cbdeadca
JJ
96142004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9615
9616 * defs.h (nquery, yquery): New prototypes.
9617 * breakpoint.c (break_command_1): Use new nquery interface.
9618 * utils.c (defaulted_query, nquery, yquery): New functions.
9619
da6bab63
AC
96202004-02-23 Andrew Cagney <cagney@redhat.com>
9621
2f690297
AC
9622 * hppa-tdep.c (hppa_frame_align): New function.
9623 (hppa32_push_dummy_call): New function.
9624 (hppa64_push_dummy_call): New function.
9625 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
9626 disabled.
8a1dac83 9627
da6bab63
AC
9628 * infcall.c (legacy_push_dummy_code): Don't call deprecated
9629 FIX_CALL_DUMMY when push_dummy_call is available.
9630 (call_function_by_hand, push_dummy_code): Ditto.
9631
abf9b42d
AC
96322004-02-22 Andrew Cagney <cagney@redhat.com>
9633
9634 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
9635 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
9636 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
9637 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
9638 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
9639 call_dummy_location to ON_STACK.
9640
10fc94a4
MK
96412004-02-22 Mark Kettenis <kettenis@gnu.org>
9642
51433e4b
MK
9643 * x86-64-linux-tdep.c: Tweak comment.
9644 (amd64_linux_supply_gregset): Renamed from
9645 x86_64_linux_supply_gresget.
9646 (amd64_linux_fill_gregset): Renamed from
9647 x86_64_linux_fill_gregset.
9648 (fetch_core_registers): Adjust for renamed functions.
9649 (amd64_core_fns): Renamed from x86_64_core_fns.
9650 (amd64_linux_sigtramp_start): Renamed from
9651 x86_64_linux_sigtramp_start.
9652 (amd64_linux_pc_in_sigtramp): Renamed from
9653 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
9654 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
9655 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
9656 (amd64_linux_sigcontext_addr): Renamed from
9657 x86_64_linux_sigcontext_addr.
9658 (amd64_linux_sc_reg_offset): Renamed from
9659 x86_64_linux_sc_reg_offset.
9660 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
9661 Adjust for renamed functions and variables.
9662 (_initialize_amd64_linux_tdep): Renamed from
9663 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
9664 variables.
9665 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
9666 Adjust for renamed functions.
9667
430eaf2e
MK
9668 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
9669 from x86_64_linux_gregset64_reg_offset.
9670 (amd64_linux_gregset32_reg_offset): Rename from
9671 x86_64_linux_gregset64_reg_offset.
9672 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
9673 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
9674 (amd64_linux_dr_set_control): Renamed from
9675 x86_64_linux_dr_set_control. Adjust for renamed functions.
9676 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
9677 Adjust for renamed functions.
9678 (amd64_linux_dr_reset_addr): Renamed from
9679 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
9680 (amd64_linux_dr_get_status): Renamed from
9681 x86_64_linux_dr_get_status. Adjust for renamed functions.
9682 (_initialize_amd64_linux_nat): Renamed from
9683 _initialize_x86_64_linux_nat. Adjust for renamed variables and
9684 functions.
9685 * config/i386/nm-x86-64linux.h: Update copyright year.
9686 Adjust for renamed functions.
9687
10fc94a4
MK
9688 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
9689 amd64fbsd_sigtramp_start.
9690 (amd64fbsd_sigtramp_end_addr): Renamed from
9691 amd64fbsd_sigtramp_end.
9692 (amd64fbsd_init_abi): Adjust for renamed variables.
9693 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
9694 variables.
9695 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
9696 amd64fbsd_sigtramp_start.
9697 (amd64fbsd_sigtramp_end_addr): Renamed from
9698 amd64fbsd_sigtramp_end.
9699
343af405
AC
97002004-02-22 Andrew Cagney <cagney@redhat.com>
9701
537987fc
AC
9702 * hppa-tdep.c (hppa32_return_value): New function.
9703 (hppa64_return_value): New function.
9704 (hppa_gdbarch_init): Set return_value; keep disabled.
9705
fad850b2
AC
9706 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
9707 struct-return and inferior function call methods.
9708
26d08f08
AC
9709 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9710 "frame-base.h".
9711 (struct hppa_frame_cache): Define.
9712 (hppa_frame_cache, hppa_frame_this_id): New functions.
9713 (hppa_frame_prev_register): New function.
9714 (hppa_frame_unwind, hppa_frame_base): New variables.
9715 (hppa_frame_unwind_sniffer): New function.
9716 (hppa_frame_base_address, hppa_unwind_pc): New function.
9717 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
9718 sniffer, and frame base sniffer; keep disabled.
9719 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
9720 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
9721
e7d7bd65
AC
9722 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
9723 to predicates for "seriously old code".
9724
e963316f
AC
9725 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
9726 runtime if(0).
9727
56132691
AC
9728 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
9729 unsigned.
9730 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 9731
343af405
AC
9732 * config/pa/tm-hppa.h: Update copyright.
9733 (DEPRECATED_INIT_FRAME_PC): Delete macro.
9734 (deprecated_init_frame_pc_default): Delete declaration.
9735 (hppa_frame_init_saved_regs): Delete declaration.
9736 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9737 * hppa-tdep.c: Include "arch-utils.h".
9738 (hppa_gdbarch_init): Set deprecated init_frame_pc
9739 and deprecated frame_init_saved_regs.
9740 (hppa_frame_init_saved_regs): Make static.
9741
f5859b4d
MK
97422004-02-22 Mark Kettenis <kettenis@gnu.org>
9743
86f6f8e7 9744 Remove old 386BSD support.
cf7c5c23 9745 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
9746 * configure.host: Remove i[34567]86-*-bsd*.
9747 * configure.tgt: Remove i[34567]86-*-bsd*.
9748 * i386b-nat.c: Removed.
9749 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
9750 (i386b-nat.o): Remove dependencies.
9751
86f6f8e7
MK
9752 * config/i386/i386bsd.mh: Removed.
9753 * config/i386/i386bsd.mt: Removed.
9754 * config/i386/nm-i386bsd.h: Removed.
9755 * config/i386/tm-i386bsd.h: Removed.
9756 * config/i386/xm-i386bsd.h: Removed.
9757
971218cd
MK
9758 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
9759
7e654c37
MK
9760 * amd64fbsd-tdep.c: Include "solib-svr4.h".
9761 (amd64fbsd_init_abi): Set link map offsets.
9762 * amd64nbsd-tdep.c: Include "slib-svr4.h".
9763 (amd64nbsd_init_abi): Set link map offsets.
9764 * amd64obsd-tdep.c: Include "solib-svr4.h".
9765 (amd64obsd_init_abi): Set link map offsets.
9766 * i386fbsd-tdep.c: Include "solib-svr4.h".
9767 (i386fbsd_init_abi): Set link map offsets.
9768 * i386nbsd-tdep.c: Include "solib-svr4.h".
9769 (i386nbsdelf_init_abi): Set link map offsets.
9770 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
9771 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
9772 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
9773 solib-legacy.o and core-aout.o. Reformat.
9774 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
9775 solib-svr4.o, solib-legacy.o. Reformat.
9776 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
9777 * config/i386/nbsdelf.mh: Reformat.
9778 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
9779 solib-svr4.o, solib-legacy.o and corelow.o.
9780 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
9781 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
9782 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
9783 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9784 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9785 (TM_FILE): Set to tm-fbsd.h.
9786 * config/i386/nbsd.mt (TDEPFILES): Reformat.
9787 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
9788 solib-svr4.o.
9789 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
9790 solib-svr4.o.
9791 (TM_FILE): Set to nm-nbsd.h.
9792 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
9793 Simplify shared library support. Don't include "elf/common.h".
9794 (SVR4_SHARED_LIBS): Don't define.
9795 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
9796 "solib.h".
9797 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
9798 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
9799 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
9800 Don't include "i386/tm-i386.h". Include "solib.h".
9801 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
9802 Don't include "i386/tm-i386.h".
9803 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
9804 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
9805 Include "i386/xm-i386.h".
9806 (HOST_LONG_DOUBLE_FORMAT): Remove.
9807
5d93ae8c
MK
9808 Fix OpenBSD/i386 sigtramp recognition.
9809 * i386-tdep.h: Update copyright year.
9810 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
9811 (i386bsd_sigtramp_end): New prototypes.
9812 (i386fbsd_sigtramp_start_addr): Renamed from
9813 i386fbsd_sigtramp_start.
9814 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9815 (i386obsd_sigtramp_start_addr): Renamed from
9816 i386obsd_sigtramp_start.
9817 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9818 * i386bsd-tdep.c: Update copyright year.
9819 (i386bsd_pc_in_sigtramp): Make public.
9820 * i386fbsd-nat.c: Update copyright year.
9821 (_initialize_i386fbsd_nat): Adjust for renamed variables.
9822 * i386fbsd-tdep.c: Update copyright year.
9823 (i386fbsd_sigtramp_start_addr): Renamed from
9824 i386fbsd_sigtramp_start.
9825 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9826 (i386fbsdaout_init_abi): Adjust for renamed variables.
9827 * i386obsd-nat.c: Update copyright year.
9828 (_initialize_i386obsd_nat): Adjust for renamed variables.
9829 * i386obsd-tdep.c: Include "target.h".
9830 (i386obsd_page_size): New variable.
9831 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
9832 (i386obsd_sigtramp_end): New functions.
9833 (i386obsd_sigtramp_start_addr): Renamed from
9834 i386obsd_sigtramp_start.
9835 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9836 (i386obsd_init_abi): Adjust for renamed variables. Set
9837 pc_in_sigtramp, sigtramp_start and sigtramp_end.
9838 * Makefile.in (i386obsd-tdep.o): Update dependencies.
9839
84d04465
MK
9840 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
9841 trampoline change in OpenBSD kernel.
9842
b053aceb
MK
9843 * amd64-nat.c: Update copyright year.
9844 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
9845 architecture from REGCACHE.
9846
f5859b4d
MK
9847 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
9848 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
9849
e4bbbda8
MK
98502004-02-21 Mark Kettenis <kettenis@gnu.org>
9851
ba361932
MK
9852 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
9853 i[34567]86-*-openbsd3.[0-3].
9854 * config/i386/obsdaout.mh: New file.
9855
d3e48264
MK
9856 * config/i386/obsd.mh (MH_FLAGS): Remove.
9857
60a6eeb6
MK
9858 Fix PR build/1549.
9859 * i386obsd-tdep.c: Update copyright years. Include
9860 "solib-svr4.h".
9861 (i386obsd_init_abi): Don't set regset_from_core_section here.
9862 (i386obsd_aout_init_abi): New function. Set
9863 regset_from_core_section here.
9864 (i386obsd_elf_init_abi): New function.
9865 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
9866 * Makefile.in (i386obsd-tdep.o): Update dependecies.
9867 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9868 (TM_FILE): Set to tm-nbsd.h.
9869
9870 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
9871 solib-sunos.o.
9872
e4bbbda8
MK
9873 * solib-svr4.h: Update copyright year.
9874 (svr4_ilp32_fetch_link_map_offsets)
9875 (svr4_lp64_fetch_link_map_offsets): New prototype.
9876 * solib-svr4.c: Update copyright year.
9877 (svr4_ilp32_fetch_link_map_offsets)
9878 (svr4_lp64_fetch_link_map_offsets): New function.
9879
f6fe98ef
DJ
98802004-02-20 Daniel Jacobowitz <drow@mvista.com>
9881
9882 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
9883 to the partial symbol table.
9884
589ca796
JB
98852004-02-20 J. brobecker <brobecker@gnat.com>
9886
9887 * PROBLEMS: Add description of problem documented under gdb/1560.
9888
2031c21a
MK
98892004-02-20 Mark Kettenis <kettenis@gnu.org>
9890
30b344b1
MK
9891 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
9892 comments.
9893 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
9894 functions.
9895 (amd64obsd_init_abi): Reorder initializations. Use
9896 amd64obsd_r_reg_offset to initialize the general-purpose register
9897 set details. Set regset_from_core_section.
9898 (_initialize_amd64obsd_tdep): Rename from
9899 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
9900 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
9901 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
9902
2031c21a
MK
9903 * NEWS (New native configurations): Mention OpenBSD/alpha.
9904 * configure.tgt: Add alpha*-*-openbsd*.
9905 * configure.host: Add alpha*-*-openbsd*.
9906 * alphanbsd-tdep.c: Update copyright year.
9907 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
9908
42471775
AC
99092004-02-20 Andrew Cagney <cagney@redhat.com>
9910
9911 Fix PR tdep/1372.
9912 * configure.tgt: Delete target "none-*-*".
9913 * configure.host: Delete host "none-*-*".
9914 * config/none/none.mh: Delete file.
9915 * config/none/none.mt: Delete file.
9916 * config/none/xm-none.h: Delete file.
9917 * config/none/tm-none.h: Delete file.
9918 * config/none/nm-none.h: Delete file.
9919
960ccd7d
FF
99202004-02-19 Fred Fish <fnf@redhat.com>
9921
9922 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
9923 cache->uses_fp prior to setting it.
9924
5f883edd
FF
99252004-02-19 Fred Fish <fnf@redhat.com>
9926
9927 Fix for PR breakpoint/1558.
9928 * sh-tdep.c (IS_JSR): New macro.
9929 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
9930
f98c22d5
JB
99312004-02-19 Jim Blandy <jimb@redhat.com>
9932
9933 * findvar.c (value_from_register): Doc fix.
9934
95051d27
JJ
99352004-02-19 Jeff Johnston <jjohnstn@redhat.com>
9936
9937 * printcmd.c (print_scalar_formatted): Do not check for sizeof
9938 type being greater than sizeof of host's LONGEST. Always use
9939 unpack_long() unless format 'f' chosen.
9940
ccefbec3
EZ
99412004-02-19 Joel Brobecker <brobecker@gnat.com>
9942
9943 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 9944
ccefbec3
EZ
9945 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
9946 contains a symbol wich is the best, non-exact match for the given
9947 pc. Update comments.
9948
99492004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 9950
2ede629f
EZ
9951 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
9952 macro, which was part of the now removed Mach 3 port.
9953 * utils.c (request_quit): Ditto.
9954
567ee972
MK
99552004-02-18 Mark Kettenis <kettenis@gnu.org>
9956
9957 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
9958 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
9959
50cca7bb
MK
99602004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9961
9962 Committed by Mark Kettenis <kettenis@gnu.org>.
9963
9964 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
9965 Define.
9966
226361c4
AC
99672004-02-18 Andrew Cagney <cagney@redhat.com>
9968
9969 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
9970 CONFIG_INSTALL and CONFIG_UNINSTALL.
9971 * configure: Re-generate.
9972 * interps.h (INTERP_TUI): Define.
9973 * Makefile.in: Update dependencies.
9974 (TUI): New macro.
9975 (tui-main.o): Specify dependencies.
9976 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
9977 * tui/tui-main.c: New file.
9978
49cfa46f
MK
99792004-02-18 Mark Kettenis <kettenis@gnu.org>
9980
e2879ccb
MK
9981 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
9982 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
9983 dependencies.
9984 * configure.host: Add x86_64-*-openbsd*.
9985 * configure.tgt: Add x86_64-*-openbsd*.
9986 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
9987
c43f4bec
MK
9988 * tui/tui.c: Don't include <malloc.h>.
9989
09ae75b6
MK
9990 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
9991 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
9992 amd64nbsd-tdep.c.
9993
49cfa46f 9994 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 9995 static. Remove extraneous whitespace.
49cfa46f
MK
9996 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
9997 static.
9998
05957fdb
JB
99992004-02-17 Jim Blandy <jimb@redhat.com>
10000
10001 * findvar.c (value_from_register): Doc fix.
10002
d0f54f9d
JB
100032004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10004
10005 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 10006
8a1dac83 10007 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
10008 CORE_ADDR as type for selectors. Correct types for GNU run time
10009 message lookup function to use double indirection.
10010 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
10011 * objc-lang.h (lookup_child_selector): Adapt prototype.
10012
9cbd5950
JB
10013 * s390-nat.c (SUBOFF): New macro.
10014 (supply_gregset, fill_gregset): Use it to handle debugging
10015 of 32-bit exectuables running under a 64-bit kernel.
10016 * s390-tdep.c: Include "solib-svr4.h".
10017 (s390_svr4_fetch_link_map_offset): New function.
10018 (s390x_svr_fetch_link_map_offset): Likewise.
10019 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
10020 * Makefile.in (s390-tdep.o): Update dependencies.
10021
a8c99f38
JB
10022 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
10023 "frame-unwind.h".
10024 (s390_readinstruction): Reformat. Use read_memory_nobpt.
10025 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
10026 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
10027 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
10028 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
10029 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 10030 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
10031 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
10032 (struct frame_extra_info): Remove.
10033 (s390_memset_extra_info): Remove.
f73b1eff
JB
10034 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
10035 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
10036 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
10037 (is_rse): Renamed to ...
10038 (is_rsy): ... this. Support long displacements.
10039 (is_rxe): Renamed to ...
10040 (is_rxy): ... this. Support long displacements.
10041 (compute_x_addr): Support long displacements.
10042 (struct s390_prologue_data): New data type.
10043 (s390_on_stack): Change API to use struct s390_prologue_data.
10044 (s390_store): Reimplement.
10045 (s390_load): New function.
10046 (s390_get_signal_frame_info): Remove.
10047 (s390_get_frame_info): Remove, replace by ...
10048 (s390_analyze_prolog): ... this new function.
10049 (s390_check_function_end): Remove.
10050 (s390_function_start): Remove.
10051 (s390_frameless_function_invokation): Remove.
10052 (s390_is_sigreturn): Remove.
10053 (s390_init_frame_pc_first): Remove.
10054 (s390_init_frame_extra_info): Remove.
10055 (s390_frame_init_saved_regs): Remove.
10056 (s390_frame_saved_pc_nofix): Remove.
10057 (s390_frame_saved_pc): Remove.
10058 (s390_frame_chain): Remove.
10059 (s390_fp_regnum, s390_read_fp): Remove.
10060 (s390_pop_frame_regular, s390_pop_frame): Remove.
10061 (s390_saved_pc_after_call): Remove.
10062 (s390_skip_prologue): Reimplement.
10063 (s390_in_function_epilogue_p): Support long displacements.
10064 (struct s390_unwind_cache): New data structure.
10065 (s390_frame_unwind_cache): New function.
10066 (s390_prologue_frame_unwind_cache): Likewise.
10067 (s390_backchain_frame_unwind_cache): Likewise.
10068 (s390_frame_this_id, s390_frame_prev_register): Likewise.
10069 (s390_frame_unwind): Define.
10070 (s390_frame_sniffer): New function.
10071 (struct s390_pltstub_unwind_cache): New data structure.
10072 (s390_pltstub_frame_unwind_cache): New function.
10073 (s390_pltstub_frame_this_id): Likewise.
10074 (s390_pltstub_frame_prev_register): Likewise.
10075 (s390_pltstub_frame_unwind): Define.
10076 (s390_pltstub_frame_sniffer): New function.
10077 (struct s390_sigtramp_unwind_cache): New data structure.
10078 (s390_sigtramp_frame_unwind_cache): New function.
10079 (s390_sigtramp_frame_this_id): Likewise.
10080 (s390_sigtramp_frame_prev_register): Likewise.
10081 (s390_sigtramp_frame_unwind): Define.
10082 (s390_sigtramp_frame_sniffer): New function.
10083 (s390_frame_base_address, s390_local_base_address): New functions.
10084 (s390_frame_base): Define.
10085 (s390_unwind_pc, s390_unwind_sp): New function.
10086 (s390_push_dummy_call): Use new frame base location.
10087 (s390_unwind_dummy_id): Likewise.
10088 (s390_gdbarch_init): Remove calls to:
10089 set_gdbarch_frameless_function_invocation,
10090 set_gdbarch_deprecated_init_frame_pc,
10091 set_gdbarch_deprecated_frame_chain,
10092 set_gdbarch_deprecated_frame_init_saved_regs,
10093 set_gdbarch_deprecated_pop_frame,
10094 set_gdbarch_deprecated_init_extra_frame_info,
10095 set_gdbarch_deprecated_init_frame_pc_first,
10096 set_gdbarch_deprecated_target_read_fp,
10097 set_gdbarch_deprecated_frame_saved_pc,
10098 set_gdbarch_deprecated_saved_pc_after_call,
10099 set_gdbarch_deprecated_fp_regnum.
10100 Add calls to:
10101 set_gdbarch_in_solib_call_trampoline,
10102 frame_unwind_append_sniffer,
10103 frame_base_set_default,
10104 set_gdbarch_unwind_pc,
10105 set_gdbarch_unwind_sp.
10106 * Makefile.in (s390-tdep.o): Update dependencies.
10107
b0cf273e
JB
10108 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
10109 (S390_STACK_FRAME_OVERHEAD): Remove.
10110 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
10111 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
10112 (s390_promote_integer_argument): Remove.
10113 (s390_cannot_extract_struct_value_address): Remove.
10114 (s390_use_struct_convention, s390_store_struct_return): Remove.
10115 (s390_extract_return_value, s390_store_return_value): Remove.
10116 (s390_return_value_convention, s390_return_value): New functions.
10117 (is_float_singleton): Handle typedefs.
8a1dac83 10118 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
10119 Remove, replace by ...
10120 (s390_function_arg_pass_by_reference, s390_function_arg_float,
10121 s390_function_arg_integer): ... these new functions.
10122 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
10123 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
10124 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
10125 Fill in tdep->abi.
10126 Remove calls to:
10127 set_gdbarch_deprecated_store_struct_return,
10128 set_gdbarch_deprecated_extract_return_value,
10129 set_gdbarch_deprecated_store_return_value,
10130 set_gdbarch_use_struct_convention,
10131 set_gdbarch_extract_struct_value_address,
10132 set_gdbarch_deprecated_pc_in_call_dummy,
10133 set_gdbarch_deprecated_push_arguments,
10134 set_gdbarch_deprecated_save_dummy_frame_tos,
10135 set_gdbarch_deprecated_push_return_address,
10136 set_gdbarch_deprecated_sizeof_call_dummy_words,
10137 set_gdbarch_deprecated_call_dummy_words,
10138 set_gdbarch_deprecated_dummy_write_sp.
10139 Add calls to:
10140 set_gdbarch_push_dummy_call,
10141 set_gdbarch_unwind_dummy_id,
10142 set_gdbarch_return_value.
8a1dac83 10143
e1457d83
JB
10144 * config/s390/nm-linux.h: Update comments.
10145 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
10146 (STOPPED_BY_WATCHPOINT): Redefine.
10147 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
10148 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
10149 (s390_stopped_by_watchpoint): Likewise.
10150 (watch_area_cnt): Remove.
10151 * s390-nat.c: Update comments.
10152 (watch_area): Remove typedef.
10153 Global replace watch_area by struct watch_area.
10154 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 10155 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
10156 use s390_inferior_tid. Add short-cut for the no watchpoint case.
10157 (s390_fix_watch_points): Remove pid argument,
10158 use s390_inferior_tid. Recompute area spanned by watchpoints.
10159 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
10160 argument. Reimplement.
10161
d0f54f9d
JB
10162 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
10163 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
10164 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 10165 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
10166 core-regset.o.
10167 * config/s390/s390x.mt: Remove.
10168 * config/s390/tm-s390.h: Remove.
10169 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
10170 (TARGET_ELF64): Remove.
10171 (SKIP_TRAMPOLINE_CODE): Do not undefine.
10172 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
10173 s390*-*-* case; always set gdb_target to s390.
10174 * regformats/reg-s390.dat: Remove control registers.
10175 * regformats/reg-s390x.dat: Likewise.
10176 * s390-tdep.h: New file.
8a1dac83 10177 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
10178 Include "inferior.h" and "s390-tdep.h".
10179 Remove private definition of offsetof.
10180 (s390_register_u_addr): Remove.
10181 (regmap_gregset, regmap_fpregset): Define.
10182 (supply_gregset, fill_gregset): Reimplement.
10183 (supply_fpregset, fill_fpregset): Likewise.
10184 (s390_inferior_tid): New function.
10185 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
10186 (fetch_inferior_registers, store_inferior_registers): Likewise.
10187 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
10188 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
10189 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
10190 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
10191 (struct gdbarch_tdep): Define.
10192 (struct s390_register_info): Define.
10193 (s390_register_info): New variable.
10194 (s390_register_name): Reimplement.
10195 (s390_register_type): New function.
10196 (s390_register_raw_size, s390x_register_raw_size): Remove.
10197 (s390_cannot_fetch_register): Remove.
10198 (s390_register_byte): Remove.
10199 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
10200 (s390_dwarf_regmap): New variable.
10201 (s390_dwarf_reg_to_regnum): New function.
10202 (s390_stab_reg_to_regnum): Remove.
10203 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
10204 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
10205 (s390_convert_register_p): Likewise.
10206 (s390_register_to_value, s390_value_to_register): Likewise.
10207 (s390_register_reggroup_p): Likewise.
10208 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
10209 s390_gregset, s390x_gregset, s390_fpregset): New variables.
10210 (s390_supply_regset, s390_regset_from_core_section): New functions.
10211 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
10212 (S390_FPR_SIZE): Likewise.
10213 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
10214 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
10215 (S390_NUM_GPRS): Move here from tm-s390.h.
10216 (S390_NUM_FPRS): Likewise.
10217 (s390_in_function_epilogue_p): New function.
10218 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
10219 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
10220 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
10221 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
10222 Replace S390_FP_REGNUM by S390_SP_REGNUM.
10223 Remove calls to:
10224 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
10225 set_gdbarch_deprecated_max_register_virtual_size,
10226 set_gdbarch_deprecated_register_byte,
d0f54f9d 10227 set_gdbarch_cannot_fetch_register,
8a1dac83 10228 set_gdbarch_cannot_store_register,
d0f54f9d
JB
10229 set_gdbarch_deprecated_register_size,
10230 set_gdbarch_deprecated_register_raw_size,
10231 set_gdbarch_deprecated_register_virtual_size,
10232 set_gdbarch_deprecated_register_virtual_type,
10233 set_gdbarch_deprecated_register_bytes.
10234 Add calls to:
10235 set_gdbarch_num_pseudo_regs,
10236 set_gdbarch_register_type,
10237 set_gdbarch_convert_register_p,
10238 set_gdbarch_register_to_value,
10239 set_gdbarch_value_to_register,
10240 set_gdbarch_register_reggroup_p,
10241 set_gdbarch_regset_from_core_section,
10242 set_gdbarch_pseudo_register_read,
10243 set_gdbarch_pseudo_register_write,
10244 set_gdbarch_in_function_epilogue_p.
10245 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
10246 (s390_tdep_h): New variable.
10247
8cfe231d
JB
102482004-02-17 Jim Blandy <jimb@redhat.com>
10249
4589a601
JB
10250 * findvar.c (value_from_register): If the type has no length, just
10251 return an acceptable value --- don't report an internal error.
10252
8cfe231d
JB
10253 * stabsread.c (read_type): If we find any type numbers that are
10254 forward references, complain if the references aren't resolved by
10255 the time we're finished reading.
10256 (cleanup_undefined_types): Make error message more appropriate for
10257 a complaint.
10258
5bf0017e
EZ
102592004-02-17 Elena Zannoni <ezannoni@redhat.com>
10260
9d62932d
EZ
10261 * Makefile.in (defs_h): Remove dependency on progress_h.
10262 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
10263 progress.h.
10264 * main.c (captured_main): Delete use of START_PROGRESS and
10265 END_PROGRESS.
10266
102672004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 10268
5bf0017e
EZ
10269 * objfiles.c (terminate_minimal_symbol_table): Add back
10270 initialization of MSYMBOL_TYPE.
10271
9fc9f5e2
AC
102722004-02-17 David Mosberger <davidm@hpl.hp.com>
10273
10274 Committed by Andrew Cagney.
10275 * Makefile.in (ia64_tdep_h): New macro.
10276 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
10277 (ia64-tdep.o): Likewise.
10278 * ia64-tdep.h: New file.
10279 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
10280 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
10281 (ia64_aix_sigcontext_register_address): Likewise.
10282 (ia64_linux_getunwind_table): Delete declaration.
10283 * ia64-linux-tdep.c: Likewise.
10284
76cd2bd9
CV
102852004-02-17 Corinna Vinschen <vinschen@redhat.com>
10286
10287 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
10288 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
10289 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
10290
634aa483
AC
102912004-02-17 Andrew Cagney <cagney@redhat.com>
10292
10293 * symtab.c (skip_prologue_using_sal): New function.
10294 * symtab.h (skip_prologue_using_sal): Declare.
10295 * frv-tdep.c: Include "symtab.h".
10296 (skip_prologue_using_sal): Delete function.
10297 * mips-tdep.c (skip_prologue_using_sal): Delete function.
10298 * rs6000-tdep.c (refine_prologue_limit): Mention
10299 skip_prologue_using_sal.
10300 * ia64-tdep.c (refine_prologue_limit): Ditto.
10301 * Makefile.in: Update dependencies.
10302
103032004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 10304
39ce7b3f
AC
10305 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
10306 START_INFERIOR_TRAPS_EXPECTED.
10307 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
10308 START_INFERIOR_TRAPS_EXPECTED.
10309 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
10310 Delete macro.
10311 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
10312 macro, moved to "nm-osf.h". Update copyright.
10313 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
10314 update copyright.
10315
19772a2c
AC
10316 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
10317 and function replacing FRAMELESS_FUNCTION_INVOCATION.
10318 * blockframe.c (legacy_frameless_look_for_prologue): Rename
10319 frameless_look_for_prologue.
10320 * frame.h (legacy_frameless_look_for_prologue): Rename
10321 frameless_look_for_prologue.
10322 * gdbarch.h, gdbarch.c: Re-generate.
10323 * sh64-tdep.c (sh64_gdbarch_init): Update.
10324 * sh-tdep.c (sh_gdbarch_init): Update.
10325 * s390-tdep.c (s390_gdbarch_init): Update.
10326 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10327 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10328 * m68k-tdep.c (m68k_gdbarch_init): Update.
10329 (delta68_frame_args_address): Update.
10330 * m32r-tdep.c (m32r_gdbarch_init): Update.
10331 * hppa-tdep.c (hppa_gdbarch_init): Update.
10332 * h8300-tdep.c (h8300_gdbarch_init): Update.
10333 * frv-tdep.c (frv_gdbarch_init): Update.
10334 (frv_frameless_function_invocation): Update.
10335 * cris-tdep.c (cris_gdbarch_init): Update.
10336 (cris_frameless_function_invocation): Update.
10337 * avr-tdep.c (avr_gdbarch_init): Update.
10338 * arm-tdep.c (arm_gdbarch_init): Update.
10339 * stack.c (frame_info): Update, call predicate.
10340 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
10341 * frame.c (legacy_get_prev_frame): Update, call predicate..
10342 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
10343 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
10344 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
10345 invocation.
10346 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10347 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10348 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
10349
10350 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
10351 function.
10352
7dcaac91
DJ
103532004-02-16 Daniel Jacobowitz <drow@mvista.com>
10354
10355 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
10356 initializations.
10357
88289b6e
AC
103582004-02-16 Andrew Cagney <cagney@redhat.com>
10359
10360 * tui/tui-windata.c: Include "gdb_string.h".
10361 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
10362 * tui/tui-layout.c, tui/tui-command.c: Ditto.
10363 * Makefile.in: Update dependencies.
10364
9f976b41
DJ
103652004-02-16 Daniel Jacobowitz <drow@mvista.com>
10366
10367 * Makefile.in (infrun.o): Add $(gdb_assert_h).
10368 * infrun.c: Include "gdb_assert.h".
10369 (singlestep_ptid, saved_singlestep_ptid)
10370 (stepping_past_singlestep_breakpoint): New variables.
10371 (resume): Set singlestep_ptid. Check for singlestep thread
10372 hop.
10373 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
10374 (handle_inferior_event): Handle singlestep thread hop.
10375
c324d747
AC
103762004-02-16 Andrew Cagney <cagney@redhat.com>
10377
f090b9b1
AC
10378 * dwarf2-frame.c (dwarf2_frame_ops): New function.
10379 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
10380 (dwarf2_frame_init_reg): Ditto.
10381
fd33e6cb
AC
10382 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
10383 suggested by Joshua Neuheisel
10384
c324d747
AC
10385 * configure.in: Always check for curses, including pdcurses.
10386 Warn, instead of error, when no curses are found. Enable TUI when
10387 curses is available.
10388 * configure: Re-generate.
10389
b66ba949
CV
103902004-02-16 Corinna Vinschen <vinschen@redhat.com>
10391
10392 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
10393 sh_sh4_register_convert_to_virtual.
10394 (sh_register_convert_to_raw): Rename from
10395 sh_sh4_register_convert_to_raw.
10396 (sh_pseudo_register_read): Accomodate above name change.
10397 (sh_pseudo_register_write): Ditto.
10398
b58cbbf2
CV
103992004-02-16 Corinna Vinschen <vinschen@redhat.com>
10400
10401 * sh-tdep.c (sh_generic_register_name): Remove.
10402 (sh_gdbarch_init): Use sh_sh_register_name in default case.
10403
5929a910
AC
104042004-02-15 Andrew Cagney <cagney@redhat.com>
10405
4566dfcf
AC
10406 * configure.in (build_warnings): Add -Wunused-function.
10407 * configure: Re-generate.
10408
db11ed55
AC
10409 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
10410 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
10411
46ac7a5d
AC
10412 * procfs.c (procfs_init_inferior): Assume that
10413 START_INFERIOR_TRAPS_EXPECTED is defined.
10414 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
10415 * config/ns32k/tm-nbsd.h: Delete file,
10416 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
10417
ba801595
AC
10418 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
10419 * config/vax/tm-vax.h: Delete file.
10420
5929a910
AC
10421 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10422 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10423 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10424 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10425 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
10426 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10427 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
10428
8f22cb90
MK
104292004-02-15 Mark Kettenis <kettenis@gnu.org>
10430
10431 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
10432 * dwarf2-frame.c (dwarf2_frame_data): New variable.
10433 (struct dwarf2_frame_ops): New.
10434 (dwarf2_frame_default_init_reg): New function, based on
10435 dwarf2_frame_init_reg.
10436 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
10437 (dwarf2_frame_init_reg): Call architecture-specific function.
10438 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
10439 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
10440 instead of dwarf2_frame_data.
10441 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
10442 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
10443
8132723e
AC
104442004-02-15 Andrew Cagney <cagney@redhat.com>
10445
046a4708
AC
10446 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
10447 register_gdbarch_swap.
10448 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
10449 * f-lang.c (_initialize_f_language): Update, use
10450 DEPRECATED_REGISTER_GDBARCH_SWAP.
10451 * remote.c (_initialize_remote): Ditto.
10452 * regcache.c (_initialize_regcache): Ditto.
10453 * parse.c (_initialize_parse): Ditto.
10454 * infrun.c (_initialize_infrun): Ditto.
10455 * mi/mi-main.c (_initialize_mi_main): Ditto.
10456 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 10457
549c1eea
AC
10458 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
10459 poking .cacheable directly.
10460 * symfile.c (symfile_bfd_open): Ditto.
10461
0c0b39de
AC
10462 * Makefile.in: Update all dependencies.
10463
8132723e
AC
10464 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
10465 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
10466 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
10467 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
10468 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 10469
b9d26eb9
AC
104702004-02-14 Andrew Cagney <cagney@redhat.com>
10471
8e1f669a
AC
10472 * arch-utils.c (legacy_convert_register_p): Check
10473 DEPRECATED_REGISTER_CONVERTIBLE_P.
10474 * findvar.c (value_of_register): Ditto.
10475
cd0bfa36
AC
10476 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
10477 * gdbarch.h, gdbarch.c: Re-generate.
10478 * arch-utils.c (deprecated_register_convertible_not): Delete.
10479 * arch-utils.h (deprecated_register_convertible_not): Delete.
10480 * mi/mi-main.c (get_register): Update. Update copyright.
10481 * infcmd.c (default_print_registers_info): Update.
10482
b9d26eb9
AC
10483 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10484 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
10485 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 10486 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
10487 * frame.c (deprecated_get_next_frame_hack): Delete function.
10488 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
10489 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10490 Update.
10491 * infcall.c (call_function_by_hand): Update.
10492
9ab9195f
EZ
104932004-02-14 Elena Zannoni <ezannoni@redhat.com>
10494
10495 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 10496 from here...
9ab9195f
EZ
10497 * objfiles.c (init_entry_point_info, entry_point_address):..to
10498 here.
10499 * symfile.h (init_entry_point_info, entry_point_address): Remove
10500 prototypes.
10501 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 10502 prototypes.
9ab9195f
EZ
10503 * cris-tdep.c: Remove include of symfile.h. Add include of
10504 objfiles.h.
10505 * infcall.c: Ditto.
10506 * mcore-tdep.c: Ditto.
10507 * mn10300-tdep.c: Ditto.
10508 * sh64-tdep.c: Ditto.
10509 * v850-tdep.c: Ditto.
10510 * arm-tdep.c: Remove include of symfile.h.
10511 * blockframe.c: Ditto.
10512 * coffread.c: Ditto.
10513 * dbxread.c: Ditto.
10514 * dwarf2read.c: Ditto.
10515 * dwarfread.c: Ditto.
8a1dac83 10516 * frv-tdep.c: Ditto.
9ab9195f
EZ
10517 * ia64-tdep.c: Ditto.
10518 * mdebugread.c: Ditto.
10519 * mipsread.c: Ditto.
8a1dac83 10520 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
10521 * s390-tdep.c: Ditto.
10522 * sh-tdep.c: Ditto.
8a1dac83 10523 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
10524 * gdbarch.sh: Remove include of symfile.h.
10525 * gdbarch.c: Regenerate.
10526 * solib-irix.c (enable_break): Use entry_point_address().
10527 Add comment about include file.
10528 * xcoffread.c: Add comment about include file.
8a1dac83
RM
10529 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
10530 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
10531 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
10532 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
10533 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
10534
c4c5b7ba
AC
105352004-02-13 Andrew Cagney <cagney@redhat.com>
10536
10537 * corelow.c (core_xfer_partial): Use "struct bfd_section".
10538 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
10539 copyright.
10540 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
10541
3e7879de
FF
105422004-02-12 Fred Fish <fnf@redhat.com>
10543
10544 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
10545 set_gdbarch_store_return_value.
10546
6a7760b6
AC
105472004-02-12 Andrew Cagney <cagney@redhat.com>
10548
10549 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
10550 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
10551 (interrupt_query): Ditto.
10552 (ofunc): Delete unused variable.
10553 * cris-tdep.c (cris_abi): Delete unused function.
10554 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
10555 (cris_get_wide_opcode, cris_get_short_size): Ditto.
10556 (cris_get_asr_quick_shift_steps): Ditto.
10557 (cris_skip_prologue_frameless_p): Ditto.
10558 * arm-tdep.c (arm_push_return_address): Delete unused function.
10559 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
10560 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
10561 * s390-tdep.c (s390_function_start): Delete unused function.
10562
31687c3c
AC
105632004-02-12 Andrew Cagney <cagney@redhat.com>
10564
10565 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
10566 gdbarch.h, gdbarch.c: Re-generate.
10567 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
10568 to generic_prologue_frameless_p.
10569 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
10570 * arch-utils.c (generic_prologue_frameless_p): Delete function.
10571
6de918a6
DJ
105722004-02-11 Daniel Jacobowitz <drow@mvista.com>
10573
10574 * mips-linux-tdep.c: Include "frame.h".
10575 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
10576 (mips_linux_skip_resolver): New functions.
10577 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
10578 and set_gdbarch_in_solib_call_trampoline.
10579 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
10580 to after set_gdbarch_in_solib_return_trampoline. Only set the
10581 solib hooks to mips16 functions if the OS ABI is unknown.
10582 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
10583 including "config/tm-linux.h".
10584 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
10585 * Makefile.in (mips-linux-tdep.o): Update.
10586
87b3ede8
DC
105872004-02-11 David Carlton <carlton@kealia.com>
10588
10589 * linespec.c (decode_compound): Only look for a class symbol when
10590 considering all but the rightmost component.
10591
5979bc46
AC
105922004-02-11 Andrew Cagney <cagney@redhat.com>
10593
10594 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
10595 abi code are are separatly grouped.
10596
5867a2fb
AC
105972004-02-11 Andrew Cagney <cagney@redhat.com>
10598
10599 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
10600 * gdbarch.h, gdbarch.c: Re-generate.
10601 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10602 * v850-tdep.c (v850_gdbarch_init): Update.
10603 * sh64-tdep.c (sh64_gdbarch_init): Update.
10604 * sh-tdep.c (sh_gdbarch_init): Update.
10605 * s390-tdep.c (s390_gdbarch_init): Update.
10606 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10607 * mips-tdep.c (mips_gdbarch_init): Update.
10608 * mcore-tdep.c (mcore_gdbarch_init): Update.
10609 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10610 * m32r-tdep.c (m32r_gdbarch_init): Update.
10611 * ia64-tdep.c (ia64_gdbarch_init): Update.
10612 * hppa-tdep.c (hppa_gdbarch_init): Update.
10613 * h8300-tdep.c (h8300_gdbarch_init): Update.
10614 * frv-tdep.c (frv_gdbarch_init): Update.
10615 * d10v-tdep.c (d10v_gdbarch_init): Update.
10616 * cris-tdep.c (cris_gdbarch_init): Update.
10617 * avr-tdep.c (avr_gdbarch_init): Update.
10618 * arm-tdep.c (arm_gdbarch_init): Update.
10619 * alpha-tdep.c (alpha_gdbarch_init): Update.
10620
026a72f8
CV
106212004-02-11 Corinna Vinschen <vinschen@redhat.com>
10622
10623 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
10624 comma.
10625 (sh_sh4al_dsp_register_name): Ditto.
10626
3903d437
AC
106272004-02-10 Andrew Cagney <cagney@redhat.com>
10628
10629 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
10630 (mips_init_frame_pc_first): Delete function.
10631 (mips_frame_saved_pc): Delete function.
10632 (mips_frame_chain): Delete function.
10633 (mips_init_extra_frame_info): Delete function.
10634 (mips_xfer_register): Delete unused variable "reg".
10635 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
10636 (mips_n32n64_return_value): Delete unused variable "reg".
10637 (mips_n32n64_return_value): Delete unused variable "pos".
10638 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
10639 (mips_o32_return_value): Delete unused variable "pos".
10640 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
10641 (mips_print_fp_register): Delete unused variable "namelen"
10642 (mips_print_fp_register): Delete unused variable "flt2"
10643 (get_frame_pointer): Delete function.
10644 (cached_proc_desc): Delete static variable.
10645 (mips_pop_frame): Delete function.
10646 (mips_find_saved_regs): Delete function.
10647 (mips_get_saved_register): Delete function.
10648 (mips_saved_pc_after_call): Delete function.
10649 (SIGFRAME_BASE): Delete macro.
10650 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
10651 (SIGFRAME_PC_OFF): Delete macro.
10652 (SIGFRAME_REGSAVE_OFF): Delete macro.
10653 (mips_dump_tdep): Do not print deleted macro definitions.
10654
b9fb98bd
AC
106552004-02-10 Andrew Cagney <cagney@redhat.com>
10656
10657 * Makefile.in (SFILES): Remove explictly listed tui files.
10658 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
10659
78ced177 106602004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 10661
78ced177
JJ
10662 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
10663 to use paddr functions to format ia64 addresses and long values.
10664 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
10665 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
10666 (get_kernel_table, ia64_find_proc_info_x): Ditto.
10667 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
10668 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
10669
6a83354a
AC
106702004-02-10 Andrew Cagney <cagney@redhat.com>
10671
10672 * defs.h: Do not include "tui.h".
10673 * gdb_curses.h: New file.
10674 * tui/tui-hooks.h: New file.
10675 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
10676 (tui_install_hooks, tui_remove_hooks): Delete declarations.
10677 (tui_initialize_io): Delete declaration.
10678 (tui_initialize_readline: Delete redundant declaration.
10679 (struct tui_point): Delete definition.
10680 * tui/tui-data.h (struct tui_point): Define.
10681 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
10682 * utils.c: Include "tui/tui.h".
10683 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
10684 * printcmd.c [TUI]: Include "tui/tui.h".
10685 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
10686 * tui/tui-command.c: Include "gdb_curses.h".
10687 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
10688 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
10689 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
10690 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
10691 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
10692 * Makefile.in: Update all dependencies.
10693 (tui_hooks_h, gdb_curses_h): Define.
10694 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
10695
997470ef
EZ
106962004-02-10 Elena Zannoni <ezannoni@redhat.com>
10697
10698 * objfiles.h (struct objfile): Remove unused fields auxf1 and
10699 auxf2. Add comments about some other rarely used fields.
10700
4ff2cc4d
AC
107012004-02-10 Andrew Cagney <cagney@redhat.com>
10702
10703 * Makefile.in (init.c): Fix script removing duplicates. Problem
10704 reported by Peter Schauer.
10705
1ab21617
EZ
107062004-02-09 Elena Zannoni <ezannoni@redhat.com>
10707
10708 * bcache.c (bcache_xmalloc): Use obstack_init instead of
10709 obstack_specify_allocation.
10710 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 10711 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
10712 (allocate_rt_common_objfile): Ditto.
10713 * symfile.c (reread_symbols): Ditto.
10714 * gdb_obstack.h: Add comment.
10715
17763fd9
EZ
107162004-02-09 Elena Zannoni <ezannoni@redhat.com>
10717
10718 * linespec.c (decode_line_1, locate_first_half)
10719 (decode_compound, lookup_prefix_sym): Update comments. Delete old
10720 commented out code.
10721
ec5cdd75
DJ
107222004-02-09 Daniel Jacobowitz <drow@mvista.com>
10723
10724 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
10725 obstack_free.
10726
43b54b88
AC
107272004-02-09 Andrew Cagney <cagney@redhat.com>
10728
10729 * blockframe.c (find_pc_partial_function): If find_pc_overlay
10730 fails, try find_pc_section. Fix PR c++/1267.
10731 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
10732 instead of find_pc_mapped_section.
10733 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
10734 not default to the section containing PC. Fix PR symtab/1519.
10735
edfae063
AC
107362004-02-09 Andrew Cagney <cagney@redhat.com>
10737
10738 * Makefile.in (mips-tdep.o): Update dependencies.
10739 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
10740 "trad-frame.h".
10741 (mips_unwind_pc): Return the pseudo PC register.
10742 (mips_unwind_dummy_id): New function.
10743 (mips16_fetch_instruction): New function.
10744 (mips32_fetch_instruction): New function.
10745 (struct mips_frame_cache): Define.
10746 (mips_mdebug_frame_cache): New function.
10747 (mips_mdebug_frame_this_id): New function.
10748 (mips_mdebug_frame_prev_register): New function.
10749 (mips_mdebug_frame_unwind): Define.
10750 (mips_mdebug_frame_sniffer): New function.
10751 (mips_mdebug_frame_base_address): New function.
10752 (mips_mdebug_frame_base): Define.
10753 (mips_mdebug_frame_base_sniffer): New function.
10754 (mips_gdbarch_init): Append unwind and base sniffers. Set
10755 unwind_dummy_id.
10756
defc864c
AC
107572004-02-08 Andrew Cagney <cagney@redhat.com>
10758
6764ddad
AC
10759 * frame.c: Print both the register number and name.
10760
defc864c
AC
10761 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
10762 and a sed into a single sed. Make .c and .o patterns more robust.
10763 (OBS): Delete.
10764 (INIT_FILES): Replace OBS with COMMON_OBS.
10765 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
10766
645d6d10
MK
107672004-02-08 Mark Kettenis <kettenis@gnu.org>
10768
10769 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
10770 the PT_WCOOKIE request.
10771
23e3c3fc
AC
107722004-02-08 Andrew Cagney <cagney@redhat.com>
10773
58dfe9ff
AC
10774 * mips-tdep.c (mips_unwind_pc): New function.
10775 (mips_gdbarch_init): Set mips_unwind_pc.
10776
1152e35e
AC
10777 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
10778 (get_frame_id): Allow the UNKNOWN_FRAME.
10779 (frame_register_unwind, get_frame_type): Ditto.
10780
31b75dbf
AC
10781 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
10782 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
10783 unwind_dummy_id indicates a legacy frame.
10784
3483b318
AC
10785 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
10786 * configure: Re-generate.
10787
23e3c3fc
AC
10788 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
10789 methods.
10790
33f8ca73
AC
107912004-02-08 Andrew Cagney <cagney@redhat.com>
10792
10793 * configure.in (CONFIG_ALL): Set to Makefile target, and not
10794 makefile macro.
10795 * configure: Re-generate.
10796 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
10797 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
10798 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
10799 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
10800 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
10801 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
10802 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
10803 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
10804 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
10805 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
10806
6ba8e26f 108072004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 10808
20d286a5
AC
10809 * Makefile.in: Update all dependencies.
10810
d836ee13
AC
10811 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
10812 * configure: Re-generate.
10813 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
10814 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
10815 (COMMON_OBS): Add "main.o" and "annotate.o".
10816 (ANNOTATE_OBS): Delete.
10817 (OBS): Remove ANNOTATE_OBS.
10818 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
10819 CONFIG_INITS.
10820 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
10821 against CONFIG_OBS and "main.o".
10822 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
10823 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
10824
d02c80cd
AC
10825 * tui/tui-command.c: Include "gdb_string.h", delete register
10826 attribute, use ISO-C function signatures.
10827 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
10828 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10829 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
10830 * tui/tui.c: Ditto.
6ba8e26f
AC
10831
10832 * tui/tui-command.c: Change variable and function names to lower
10833 case.
10834 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
10835 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
10836 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
10837 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10838 * tui/tui-winsource.c, tui/tui.c: Ditto.
10839
4a146b47
EZ
108402004-02-07 Elena Zannoni <ezannoni@redhat.com>
10841
10842 * buildsym.c (free_pending_blocks, finish_block)
10843 (record_pending_block, make_blockvector, end_symtab): Replace
10844 symbol_obstack with objfile_obstack.
8a1dac83 10845 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 10846 (coff_read_enum_type): Ditto.
8a1dac83 10847 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 10848 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 10849 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
10850 (dwarf2_symbol_mark_computed): Ditto.
10851 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
10852 * elfread.c (elf_symtab_read): Ditto.
10853 * hpread.c (hpread_symfile_init, hpread_symfile_init)
10854 (hpread_read_enum_type, hpread_read_function_type)
10855 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
10856 Ditto.
8a1dac83 10857 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 10858 (java_link_class_type): Ditto.
8a1dac83 10859 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
10860 (new_symbol): Ditto.
10861 * minsyms.c (install_minimal_symbols): Ditto.
10862 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
10863 (terminate_minimal_symbol_table): Replace symbol_obstack with
10864 objfile_obstack.
10865 (free_objfile): Remove freeing of symbol_obstack.
10866 * objfiles.h: Remove symbol_obstack field.
10867 * pa64solib.c (add_to_solist): Replace symbol_obstack with
10868 objfile_obstack.
10869 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10870 symbol_obstack.
10871 (solib_add_common_symbols): Replace symbol_obstack with
10872 objfile_obstack.
10873 * somsolib.c (som_solib_add): Ditto.
10874 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10875 (common_block_start, common_block_end): Ditto.
10876 * symfile.c (reread_symbols): Remove freeing and init of
10877 symbol_obstack.
10878 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
10879 * symfile.h: Update comment.
10880 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
10881 stats printing.
10882 * symtab.c (symbol_set_names): Replace symbol_obstack with
10883 objfile_obstack.
10884 * symtab.h (struct general_symbol_info, struct minimal_symbol):
10885 Update comments.
10886 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
10887 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
10888 objfile_obstack.
10889
6d012f14
AC
108902004-02-07 Andrew Cagney <cagney@redhat.com>
10891
10892 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
10893 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
10894 fields and variables.
10895 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
10896 (m_beInvisible): Delete macro.
10897 * tui/tui-data.h: Fix case case fields and variables.
10898 (m_genWinPtrIsNull): Delete macro.
10899 (tui_win_list): Rename winList.
10900 (TUI_SRC_WIN): Rename srcWin.
10901 (TUI_DISASM_WIN): Rename disassemWin.
10902 (TUI_DATA_WIN): Rename dataWin.
10903 (TUI_CMD_WIN): Rename cmdWin.
10904 (m_genWinPtrNotNull): Delete macro.
10905 (m_winPtrIsNull): Delete macro.
10906 (m_winPtrNotNull): Delete macro.
10907 (tui_win_is_source_type): Replace m_winIsSourceType
10908 (tui_win_is_auxillary): Replace m_winIsAuzillary.
10909 (tui_win_has_locator): Replace m_hasLocator.
10910 (tui_set_win_highlight): Replace m_setWinHighlightOn and
10911 m_setWinHighlightOff.
10912 * tui/tui-data.c: Update references.
10913 (tui_win_is_source_type, tui_set_win_highlight): New functions.
10914 (tui_win_has_locator, tui_win_is_auxillary): New functions.
10915 * tui/tui-command.c, tui/tui-disasm.c: Update references.
10916 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
10917 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
10918 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10919 * tui/tui-winsource.c, tui/tui.c: Ditto.
10920
7d34766b
MK
109212004-02-07 Mark Kettenis <kettenis@gnu.org>
10922
1c800673
MK
10923 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
10924 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
10925 StackGhost.
10926
7d34766b
MK
10927 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
10928 variable `i6' to `i7'.
10929 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
10930
22940a24
AC
109312004-02-07 Andrew Cagney <cagney@redhat.com>
10932
10933 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
10934 (TuiPoint, TuiPointPtr): Ditto.
10935 (TuiStatus, TuiStatusPtr): Ditto.
10936 (TuiWinType, TuiWinTypePtr): Ditto.
10937 (struct tui_point): Rename _TuiPoint.
10938 (tui_get_low_disassembly_address): Rename
10939 tuiGetLowDisassemblyAddress.
10940 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
10941 (tuiFree): Delete declaration.
10942 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
10943 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
10944 * tui/tui.c (tuiFree): Delete function.
10945 * cli/cli-cmds.c (disassemble_command): Update references.
10946 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
10947 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10948 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
10949 * tui/tui-winsource.c: Ditto.
10950
8b92e4d5
EZ
109512004-02-07 Elena Zannoni <ezannoni@redhat.com>
10952
10953 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
10954 coffstab_build_psymtabs, elfstab_build_psymtabs)
10955 (stabsect_build_psymtabs): Replace psymbol_obstack with
10956 objfile_obstack.
10957 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
10958 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
10959 Ditto.
10960 * dwarfread.c (scan_compilation_units): Ditto.
10961 * elfread.c (elfstab_offset_sections): Ditto.
10962 * hppa-tdep.c (read_unwind_info): Ditto.
10963 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
10964 (hpread_end_psymtab): Ditto.
10965 * mdebugread.c (mdebug_build_psymtabs, add_pending)
10966 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
10967 Ditto.
10968 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 10969 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
10970 (build_objfile_section_table): Ditto.
10971 (allocate_objfile): Remove init of psymbol_obstack.
10972 (free_objfile): Remove freeing of psymbol_obstack.
10973 * objfiles.h (struct objfile): Remove field
10974 psymbol_obstack. Update comments.
10975 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
10976 psymbol_obstack with objfile_obstack.
10977 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10978 psymbol_obstack.
10979 * somread.c (som_symfile_offsets, init_import_symbols)
10980 (init_export_symbols): Replace psymbol_obstack with
10981 objfile_obstack.
10982 * somsolib.c (som_solib_add_solib_objfile): Ditto.
10983 * symfile.c (default_symfile_offsets, syms_from_objfile)
10984 (reread_symbols): Remove freeing and init of psymbol_obstack.
10985 (cashier_psymtab): Update comment.
10986 * symmisc.c (print_objfile_statistics): Don't report stats for
10987 psymbol obstack.
10988 * symtab.h (struct general_symbol_info, struct partial_symtab):
10989 Update comments.
10990 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
10991 (xcoff_symfile_offsets): Replace psymbol_obstack with
10992 objfile_obstack.
10993
b99607ea
EZ
109942004-02-07 Elena Zannoni <ezannoni@redhat.com>
10995
10996 * objfiles.h (struct objfile): Add objfile_obstack field.
10997 Remove type_obstack field.
10998
10999 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
11000 read_structure_scope read_enumeration, new_symbol): Replace
11001 type_obstack with objfile_obstack.
11002 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 11003 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
11004 (lookup_fundamental_type): Ditto.
11005 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
11006 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
11007 (hpread_read_doc_function_type, hpread_read_struct_type)
11008 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 11009 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 11010 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
11011 (java_link_class_type): Ditto.
11012 * mdebugread.c (parse_type): Ditto.
11013 * objfiles.c (allocate_objfile, free_objfile): Ditto.
11014 * solib-sunos.c (solib_add_common_symbols): Ditto.
11015 * stabsread.c (define_symbol, read_type, read_member_functions,
11016 read_cpp_abbrev, read_one_struct_field): Ditto.
11017 * symfile.c (reread_symbols): Ditto.
11018 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 11019
2a8854a7
AC
110202004-02-07 Andrew Cagney <cagney@redhat.com>
11021
11022 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
11023 (tui_exec_info_content): Rename TuiExecInfoContent.
11024 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
11025 (TuiWinInfo, TuiWinInfoPtr): Ditto.
11026 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
11027 (TuiList, TuiListPtr): Ditto.
11028 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
11029 (TuiDataType, TuiDataTypePtr): Ditto.
11030 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
11031 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
11032 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
11033 (TuiSourceElement, TuiSourceElementPtr): Ditto.
11034 (TuiDataElement, TuiDataElementPtr): Ditto.
11035 (TuiWinElement, TuiWinElementPtr): Ditto.
11036 (TuiDataInfo, TuiDataInfoPtr): Ditto.
11037 (TuiCommandElement, TuiCommandElementPtr): Ditto.
11038 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
11039 (TuiWhichElement, TuiWhichElementPtr): Ditto.
11040 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
11041 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
11042 * tui/tui-command.c, tui/tui-data.c: Update references.
11043 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
11044 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11045 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11046 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 11047
05cbe71a
MK
110482004-02-07 Mark Kettenis <kettenis@gnu.org>
11049
11050 * dwarf2-frame.h: Update copyright.
11051 (enum dwarf2_frame_reg_rule): New.
11052 (struct dwarf2_frame_state_reg): New.
11053 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
11054 * dwarf2-frame.c: Update copyright.
11055 (enum dwarf2_reg_rule): Remove.
11056 (struct dwarf2_frame_state): Remove defenition of `struct
11057 dwarf2_frame_state_reg'.
11058 (read_reg): Call get_frame_arch to get the architecture instead of
11059 using CURRENT_GDBARCH.
11060 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
11061 DWARF2_FRAME_.
11062 (dwarf2_frame_init_reg): New function.
11063 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
11064 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
11065 initialize the register state. Prefix old `enum dwarf2_reg_rule'
11066 tags with DWARF2_FRAME_.
11067 (dwarf2_frame_prev_register): Call get_frame_arch to get the
11068 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
11069 dwarf2_reg_rule' tags with DWARF2_FRAME_.
11070
ec7d9e56
AC
110712004-02-06 Andrew Cagney <cagney@redhat.com>
11072
dd1abb8c
AC
11073 * tui/tui-data.h (struct tui_list): Rename _TuiList.
11074 (enum tui_data_type): Rename _TuiDataType.
11075 (struct tui_layout_def): Rename _TuiLayoutDef.
11076 (struct tui_source_element): Rename _TuiSourceElement.
11077 (struct tui_data_element): Rename _TuiDataElement.
11078 (struct tui_command_element): Rename _TuiCommandElement.
11079 (struct tui_locator_element): Rename _TuiLocatorElement.
11080 (union tui_which_element): Define.
11081 (struct tui_win_element): Rename _TuiWinElement.
11082 (struct tui_data_info): Rename _TuiDataInfo.
11083 (struct tui_source_info): Rename _TuiSourceInfo.
11084 (struct tui_command_info): Rename _TuiCommandInfo.
11085 (tui_initialize_static_data): Rename initializeStaticData.
11086 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
11087 (tui_alloc_win_info): Rename allocWinInfo.
11088 (tui_init_generic_part): Rename initGenericPart.
11089 (tui_init_win_info): Rename initWinInfo.
11090 (tui_alloc_content): Rename allocContent.
11091 (tui_add_content_elements): Rename addContentElements.
11092 (tui_init_content_element): Rename initContentElement.
11093 (tui_free_window): Rename freeWindow.
11094 (tui_free_win_content): Rename freeWinContent.
11095 (tui_free_data_content): Rename freeDataContent.
11096 (tui_free_all_source_wins_content): Rename
11097 freeAllSourceWinsContent.
11098 (tui_del_window): Rename tuiDelWindow.
11099 (tui_del_data_windows): Rename tuiDelDataWindows.
11100 (tui_partial_win_by_name): Rename partialWinByName.
11101 (tui_win_name): Rename winName.
11102 (tui_current_layout): Rename currentLayout.
11103 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
11104 (tui_term_height): Rename termHeight.
11105 (tui_set_term_height_to): Rename setTermHeightTo.
11106 (tui_term_width): Rename termWidth.
11107 (tui_set_term_width_to): Rename setTermWidthTo.
11108 (tui_set_gen_win_origin): Rename setGenWinOrigin.
11109 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
11110 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
11111 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
11112 (tui_source_windows): Rename sourceWindows.
11113 (tui_clear_source_windows): Rename clearSourceWindows.
11114 (tui_clear_source_windows_detail): Rename
11115 clearSourceWindowsDetail.
11116 (tui_clear_win_detail): Rename clearWinDetail.
11117 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
11118 (tui_default_tab_len): Rename tuiDefaultTabLen.
11119 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
11120 (tui_win_with_focus): Rename tuiWinWithFocus.
11121 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
11122 (tui_layout_def): Rename tuiLayoutDef.
11123 (tui_win_resized): Rename tuiWinResized.
11124 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
11125 (tui_next_win): Rename tuiNextWin.
11126 (tui_prev_win): Rename tuiPrevWin.
11127 (tui_add_to_source_windows): Rename addToSourceWindows.
11128 * tui/tui-winsource.c, tui/tui-win.c: Update references.
11129 * tui/tui-layout.c, tui/tui-source.c: Ditto.
11130 * tui/tui-stack.c, tui/tui-io.c: Ditto.
11131 * tui/tui.c, tui/tui-data.c: Ditto.
11132 * tui/tui-interp.c, tui/tui-data.c: Ditto.
11133 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
11134
a358af15
AC
11135 * tui/tui-source.h: Update copyright. Include "tui-data.h".
11136 (struct symtab): Declare.
11137 (tui_set_source_content): Rename tuiSetSourceContent.
11138 (tui_show_symtab_source): Rename tuiShowSource.
11139 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
11140 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
11141 * tui/tui-source.c: Update copyright. Update references.
11142 * tui/tui-win.c, tui/tui-winsource.c: Update references.
11143 * tui/tui-stack.c: Update references.
11144
a21fcd8f
AC
11145 * tui/tui-win.h: Update copyright. Include "tui-data.h".
11146 (struct tui_win_info): Declare.
11147 (tui_scroll_forward): Rename tuiScrollForward.
11148 (tui_scroll_backward): Rename tuiScrollBackward.
11149 (tui_scroll_left): Rename tuiScrollLeft.
11150 (tui_scroll_right): Rename tuiScrollRight.
11151 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
11152 (tui_resize_all): Rename tuiResizeAll.
11153 (tui_refresh_all_win): Rename tuiRefreshAll.
11154 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
11155 * tui/tui-layout.c, * tui/tui-io.c: Update references.
11156 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
11157 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
11158
edae1ccf
AC
11159 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
11160 (tui_erase_data_content): Rename tuiEraseDataContent.
11161 (tui_display_all_data): Rename tuiDisplayAllData.
11162 (tui_check_data_values): Rename tuiCheckDataValues.
11163 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
11164 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
11165 (tui_first_data_element_no_in_line): Rename
11166 tuiFirstDataElementNoInLine.
11167 (tui_delete_data_content_windows): Rename
11168 tuiDeleteDataContentWindows.
11169 (tui_refresh_data_win): Rename tuiRefreshDataWin.
11170 (tui_display_data_from): Rename tuiDisplayDataFrom.
11171 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
11172 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
11173 * tui/tui-win.c, tui/tui-regs.c: Update references.
11174 * tui/tui-layout.c, tui/tui.c: Update references.
11175
ec7d9e56
AC
11176 * tui/tui-wingeneral.h: Update copyright.
11177 (m_allBeVisible): Delete macro.
8a1dac83 11178 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
11179 (struct tui_gen_win_info): Declare.
11180 (struct tui_win_info): Declare.
11181 (tui_unhighlight_win): Rename unhighlightWin.
11182 (tui_make_visible, tui_make_invisible): Replace makeVisible.
11183 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
11184 (tui_make_window): Rename makeWindow.
11185 (tui_copy_win): Rename copyWin.
11186 (tui_box_win): Rename boxWin.
11187 (tui_highlight_win): Rename highlightWin.
11188 (tui_check_and_display_highlight_if_needed): Rename
11189 checkAndDisplayHighlightIfNeeded.
11190 (tui_refresh_all): Rename refreshAll.
11191 (tui_delete_win): Rename tuiDelwin.
11192 (tui_refresh_win): Rename tuiRefreshWin.
11193 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
11194 (tui_make_visible, tui_make_invisible): New functions.
11195 (tui_make_all_visible, tui_make_all_invisible): New functions.
11196 (make_all_visible): Rename makeAllVisible.
11197 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
11198 * tui/tui-data.c, tui/tui-winsource.c: Update references.
11199 * tui/tui-windata.c, tui/tui-win.c: Update references.
11200 * tui/tui-regs.c, tui/tui-layout.c: Update references.
11201 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
11202
1e52e2eb
MK
112032004-02-06 Mark Kettenis <kettenis@gnu.org>
11204
11205 * proc-api.c (write_with_trace): Initialize local variable to
11206 silence compiler warning.
11207
f80bda8e
AC
112082004-02-06 Andrew Cagney <cagney@redhat.com>
11209
11210 * tui/tui-source.h: Do not include "defs.h".
11211 (struct tui_win_info): Declare.
11212 (tui_set_source_content_nil): Declare.
11213 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
11214 (union tui_line_or_address): Rename _TuiLineOrAddress.
11215 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
11216 (tui_update_source_window): Rename tuiUpdateSourceWindow.
11217 (tui_update_source_window_as_is): Rename
11218 tuiUpdateSourceWindowAsIs.
11219 (tui_update_source_windows_with_addr): Rename
11220 tuiUpdateSourceWindowsWithAddr.
11221 (tui_update_source_windows_with_line): Rename
11222 tuiUpdateSourceWindowsWithLine.
11223 (tui_clear_source_content): Rename tuiClearSourceContent.
11224 (tui_erase_source_content): Rename tuiEraseSourceContent.
11225 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
11226 (tui_show_source_content): Rename tuiShowSourceContent.
11227 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
11228 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
11229 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
11230 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
11231 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
11232 (tui_update_exec_info): Rename tuiUpdateExecInfo.
11233 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
11234 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
11235 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
11236 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
11237 (struct tui_win_info): Declare.
11238 * tui/tui-stack.c: Update references.
11239 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
11240 * tui/tui-win.c, tui/tui-source.c: Ditto.
11241 * tui/tui.c, tui/tui-disasm.c: Ditto.
11242
9fbfb822
MK
112432004-02-06 Mark Kettenis <kettenis@gnu.org>
11244
11245 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
11246 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
11247
03cebad2
MK
112482004-02-05 Mark Kettenis <kettenis@gnu.org>
11249
11250 * infrun.c (handle_inferior_event): Allow for breakpoint
11251 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
11252 and SIGEMT. Update comments.
11253 * NEWS (Revised SPARC target): Mention support for non-executable
11254 stack.
11255
290281b1
MK
112562004-02-04 Mark Kettenis <kettenis@gnu.org>
11257
11258 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
11259 * inftarg.c: Update copyright year.
11260 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
11261 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
11262 (sparc_xfer_wcookie): New function.
11263 * sparc-tdep.c (sparc_fetch_wcookie): New function.
11264 * Makefile.in (sparc-nat.o): Update dependencies.
11265 * config/sparc/nm-nbsd.h: Include "target.h".
11266 (NATIVE_XFER_WCOOKIE): New define.
11267 (sparc_xfer_wcookie): New prototype.
11268
212161df
AC
112692004-02-04 Andrew Cagney <cagney@redhat.com>
11270
11271 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
11272 SYSCALL_TRAP function.
11273 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
11274
6e4c6c91
DJ
112752004-02-04 Andrew Cagney <cagney@redhat.com>
11276 Daniel Jacobowitz <drow@mvista.com>
11277
11278 * objfiles.h: Delete comments refering to inside_entry_func and
11279 DEPRECATED_FRAME_CHAIN_VALID.
11280 * defs.h (inside_entry_func): Update prototype..
11281 * blockframe.c (inside_entry_func): Rename to
11282 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
11283 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
11284
cae688ec
JJ
112852004-02-03 Jeff Johnston <jjohnstn@redhat.com>
11286
11287 * breakpoint.c (struct captured_parse_breakpoint_args): Move
11288 outside of #ifdef SOLIB_ADD region.
11289 (do_restore_lang_radix_cleanup): Ditto.
11290 (resolve_pending_breakpoint): Ditto.
11291
19217676
AC
112922004-02-03 Andrew Cagney <cagney@redhat.com>
11293
11294 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
11295 (process_note_abi_tag_sections): Delete unused function.
11296 (ia64_read_fp): Delete unused function.
11297 (gdbarch_extract_struct_value_address): Delete declaration.
11298
876753be
AC
112992004-02-02 Andrew Cagney <cagney@redhat.com>
11300
11301 * vax-tdep.c (vax_frame_chain): Delete call to
11302 deprecated_inside_entry_file.
11303 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
11304
d4f10bf2
MK
113052004-02-02 Mark Kettenis <kettenis@gnu.org>
11306
11307 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
11308 column that's "empty" or "same value" when eliminating REG_RA
11309 rules.
11310
cae688ec
JJ
113112004-02-02 Jeff Johnston <jjohnstn@redhat.com>
11312
11313 * NEWS: Add information about new pending breakpoint support.
11314
0101ce28
JJ
113152004-02-02 Jeff Johnston <jjohnstn@redhat.com>
11316
11317 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
11318 and pending fields for pending breakpoint support.
11319 * breakpoint.c (breakpoint_enabled): Add check for not pending.
11320 (condition_command): Only parse condition if not a pending
11321 breakpoint.
11322 (print_one_breakpoint): Add support for pending breakpoints.
11323 (describe_other_breakpoints): Add checks to verify we are not
11324 dealing with pending breakpoints.
11325 (check_duplicates): Don't check pending breakpoints.
11326 (set_raw_breakpoint): Initialize pending flag.
11327 (do_restore_lang_radix_cleanup): New cleanup routine.
11328 (resolve_pending_breakpoint): New function.
11329 (re_enable_breakpoints_in_shlibs): Try and resolve any
11330 pending breakpoints via resolve_pending_breakpoint.
11331 (mention): Add pending breakpoint support.
11332 (parse_breakpoint_sals): Add new parameter to pass to
11333 decode_line_1 to indicate silent errors when files or functions
11334 are not found. Change all callers.
11335 (do_captured_parse_breakpoint): New function.
11336 (break_command_1): Change prototype to return an rc value and to
11337 take an optional pending breakpoint pointer. Support creating
11338 a pending breakpoint if a "not found" form of error occurs when
11339 parsing the breakpoint. Also support resolving an existing pending
11340 breakpoint and be silent if the resolution fails.
11341 (create_breakpoints): Change prototype to take pending breakpoint
11342 pointer. When resolving a pending breakpoint, use the new pointer
11343 to provide a conditional or commands added by the end-user.
11344 (delete_breakpoint): Add appropriate check for pending.
11345 (breakpoint_re_set_one): Ditto.
11346 (do_enable_breakpoint): Ditto.
11347
8d577d32
DC
113482004-02-02 David Carlton <carlton@kealia.com>
11349
11350 * valops.c (enum oload_classification): New.
11351 (find_overload_match): Break implementation into separate
11352 functions; delete #if 0'd code; look for symbols within
11353 namespaces.
11354 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
11355 (find_oload_champ,oload_method_static,classify_oload_match): New.
11356 * cp-support.h: Add declaration for cp_func_name; update
11357 declaration for make_symbol_overload_list.
11358 * cp-support.c (cp_func_name): New.
11359 (overload_list_add_symbol): Fix comment, use
11360 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
11361 (make_symbol_overload_list): Take a function name and a namespace
11362 instead of a symbol; change implementation.
11363 (make_symbol_overload_list_using): New.
11364 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
11365
22e8e3c7
FF
113662004-02-02 Fred Fish <fnf@redhat.com>
11367
11368 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 11369 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
11370 * remote-sim.c (gdb_os_write_stderr): Write output to
11371 gdb_stdtargerr stream instead of gdb_stdtarg stream.
11372 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 11373 gdb_stderr stream and update copyright years.
22e8e3c7 11374
6b753f60
DJ
113752004-02-01 Daniel Jacobowitz <drow@mvista.com>
11376
11377 * Makefile.in (mips-linux-nat.o): Update dependencies.
11378 * mips-linux-nat.c: Include mips-tdep.h.
11379
113802004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
11381
11382 * sol-thread.c (sol_thread_xfer_partial): New function.
11383 (init_sol_thread_ops): Use that for to_xfer_partial hook.
11384 (init_sol_core_ops): Likewise.
11385
11386 * procfs.c (procfs_xfer_partial): New function.
11387 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
11388 * Makefile.in (procfs.o): Add $(auxv_h) dep.
11389
11390 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
11391 procfs_xfer_auxv function.
11392
11393 * procfs.c (procfs_make_note_section): If we can read
11394 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
11395 * linux-proc.c (linux_make_note_section): Likewise.
11396
11397 * auxv.h: New file.
11398 * auxv.c: New file.
11399 * Makefile.in (auxv_h): New variable.
11400 (COMMON_OBS): Add auxv.o here.
11401 (auxv.o): New target.
11402
11403 * corelow.c (core_xfer_partial): New function.
11404 (init_core_ops): Use it for core_ops.to_xfer_partial.
11405
11406 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
11407 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
11408 macro if that is defined.
11409
fa5281d0
DJ
114102004-02-01 Daniel Jacobowitz <drow@mvista.com>
11411
11412 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
11413 and check the specified thread for each breakpoint.
11414 * breakpoint.h (bpstat_stop_status): Update prototype.
11415 * infrun.c (handle_inferior_event): Update calls to
11416 bpstat_stop_status.
11417
26ee262d
DJ
114182004-02-01 Daniel Jacobowitz <drow@mvista.com>
11419
11420 * Makefile.in (cli-cmds.o): Add $(readline_h).
11421
d9b52655
DJ
114222004-02-01 Daniel Jacobowitz <drow@mvista.com>
11423
11424 * cli/cli-cmds.c: Include readline.h.
11425 (complete_command): Pass the start of the last word to
11426 complete_line.
11427
9709f61c
DJ
114282004-01-31 Daniel Jacobowitz <drow@mvista.com>
11429
11430 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
11431 argument, and change first argument to a CORE_ADDR.
11432 * breakpoint.h (bpstat_stop_status): Update prototype.
11433 * infrun.c (adjust_pc_after_break): Add a new comment.
11434 (handle_inferior_event): Update calls to bpstat_stop_status.
11435
4f1280bb
DJ
114362004-01-31 Daniel Jacobowitz <drow@mvista.com>
11437
11438 * breakpoint.h: Update copyright years.
11439
4fa8626c
DJ
114402004-01-31 Daniel Jacobowitz <drow@mvista.com>
11441
11442 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
11443 (bpstat_stop_status): Don't decrement PC.
11444 * breakpoint.h (software_breakpoint_inserted_here_p): Add
11445 prototype.
11446 * infrun.c (adjust_pc_after_break): New function.
11447 (handle_inferior_event): Call it, early. Remove later references
11448 to DECR_PC_AFTER_BREAK.
11449 (normal_stop): Add commentary.
11450
fad0733a
DJ
114512004-01-31 Daniel Jacobowitz <drow@mvista.com>
11452
11453 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
11454 2004-01-27 double-free fix.
11455
42cdca6c
MK
114562004-01-31 Mark Kettenis <kettenis@gnu.org>
11457
11458 * sparc-tdep.c (sparc_fetch_wcookie): New function.
11459 (sparc32_frame_prev_register): Handle StackGhost.
11460 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11461
932d5416
RM
114622004-01-29 Roland McGrath <roland@redhat.com>
11463
11464 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
11465 * configure: Regenerated.
11466
11467 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
11468 * Makefile.in (procfs.o): Add dep.
11469
47d3492a
AC
114702004-01-28 Andrew Cagney <cagney@redhat.com>
11471
11472 * tui/tui-stack.h: Update copyright.
11473 (struct frame_info): Add opaque declaration.
11474 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
11475 (tui_show_locator_content): Rename tuiShowLocatorContent.
11476 (tui_show_frame_info): Rename tuiShowFrameInfo.
11477 * tui/tui-stack.c: Update copyright. Update references.
11478 * tui/tui-winsource.c: Update references.
11479 * tui/tui-win.c: Update references.
11480 * tui/tui-layout.c: Update references.
11481 * tui/tui-hooks.c: Update copyright, update references.
11482 * tui/tui.c: Update copyright, update references.
11483 * tui/tui-disasm.c: Update references.
11484
5d51ca54
DC
114852004-01-28 David Carlton <carlton@kealia.com>
11486
11487 * dwarf2read.c (add_partial_structure): Use demangled name if
11488 namespace equals "".
11489
086ed43d
JB
114902004-01-27 Jim Blandy <jimb@redhat.com>
11491
11492 Clean up misapplied patch:
11493 * dwarf2read.c (determine_prefix): Change one of the two forward
11494 declarations for 'determine_prefix_aux' to a declaration for this.
11495 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
11496 argument to 'die_specification'.
11497
2a35147e
JB
11498 * dwarf2read.c (read_func_scope): Re-indent comment.
11499
a355c7de 115002004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 11501
a355c7de
AC
11502 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
11503 b->exp to NULL after freeing so that error during re-parsing or
11504 evaluation of expressions associated with breakpoint don't
11505 eventually lead to re-freeing of storage.
11506 Committed by Andrew Cagney.
11507
63ff5125
AC
115082004-01-27 Andrew Cagney <cagney@redhat.com>
11509
11510 * source.c (ambiguous_line_spec): Delete undefined declaration.
11511 * m32r-rom.c (m32r_set_board_address): Delete unused function.
11512 (m32r_set_server_address, m32r_set_download_path): Ditto.
11513 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
11514
e142c38c
DJ
115152004-01-27 Daniel Jacobowitz <drow@mvista.com>
11516
11517 * dwarf2read.c: Update calls to changed and renamed functions, and
11518 references to moved variables.
11519
11520 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
11521 language, language_defn, list_in_scope, and ftypes members.
11522 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
11523 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
11524 (baseaddr): Remove globals.
11525
11526 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
11527 (set_cu_language, die_is_declaration, die_specification)
11528 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
11529 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
11530 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
11531 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
11532
11533 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
11534 cu.list_in_scope. Don't initialize cu_header_offset.
11535 (add_partial_symbol): Add local baseaddr.
11536 (psymtab_to_symtab_1): Add local baseaddr. Use
11537 objfile->section_offsets for consistency. Don't initialize
11538 cu_header_offset; do initialize cu.header.offset and
11539 cu.list_in_scope.
11540 (read_file_scope, read_func_scope, read_lexical_block_scope)
11541 (dwarf_decode_lines, new_symbol): Add local baseaddr.
11542
c6e06ede
MC
115432004-01-27 Michael Chastain <mec.gnu@mindspring.com>
11544
fb328ecc 11545 * PROBLEMS: Add gdb/1516.
c6e06ede 11546
48184fd4
AC
115472003-12-29 Robert Millan <robertmh@gnu.org>
11548
11549 Patch committed by Andrw Cagney.
11550 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
11551 * configure.tgt: Match knetbsd*-gnu.
11552
c1321b30
AC
115532004-01-26 Andrew Cagney <cagney@redhat.com>
11554
f3699be3
AC
11555 * breakpoint.c (catch_command_1): Delete #ifdef code.
11556 (catch_fork_command_1): Delete #ifdef wrapper.
11557 (catch_exec_command_1): Ditto.
11558 (catch_load_command_1): Ditto.
11559 (catch_unload_command_1): Ditto.
11560
c1321b30
AC
11561 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
11562 (catch_breakpoint): Delete #if0ed function.
11563 (disable_catch_breakpoint): Ditto.
11564 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
11565 (disable_catch, enable_catch, delete_catch): Ditto.
11566
b4501125
AC
115672004-01-26 Andrew Cagney <cagney@redhat.com>
11568
11569 * remote.c (echo_check, quit_flag): Delete variables.
11570 (cisco_kernel_mode): Delete variable.
11571 (minitelnet_return, tty_input, escape_count): Delete variables.
11572 (remote_cisco_mode): Delete variable.
11573 (remote_cisco_open, remote_cisco_close): Delete function.
11574 (remote_cisco_mourn, remote_cisco_wait): Delete function.
11575 (init_remote_cisco_ops): Delete function.
11576 (_initialize_remote): Do not install "remote cisco" code.
11577 (read_frame): Delete cisco specific code.
11578 (remote_info_process): Delete function.
11579 (remote_wait): Delete cisco specific code.
11580 (remote_cisco_section_offsets): Delete function.
11581 (remote_cisco_objfile_relocate): Delete function.
11582 (remote_async_wait): Delete cisco specific code.
11583 (minitelnet, readtty, readsocket): Delete function.
11584
74055713
AC
115852004-01-26 Andrew Cagney <cagney@redhat.com>
11586
11587 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
11588 comments mentioning extract_returned_value_address.
11589 * infcmd.c (print_return_value): Update. Add comments on
11590 extract_returned_value_address.
11591 * stack.c (return_command): Add comments on
11592 extract_returned_value_address.
11593 * values.c: Update comment.
11594 * m32r-tdep.c: Update comment.
11595 * sparc-tdep.c: Update comment.
11596 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
11597 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11598 * sh64-tdep.c (sh64_gdbarch_init): Update.
11599 * sh-tdep.c (sh_gdbarch_init): Update.
11600 * s390-tdep.c (s390_gdbarch_init): Update.
11601 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11602 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
11603 * m68k-tdep.c (m68k_gdbarch_init): Update.
11604 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11605 * m32r-tdep.c (m32r_gdbarch_init): Update.
11606 * ia64-tdep.c (ia64_gdbarch_init): Update.
11607 * h8300-tdep.c (h8300_gdbarch_init): Update.
11608 * frv-tdep.c (frv_gdbarch_init): Update.
11609 * arm-tdep.c (arm_gdbarch_init): Update.
11610 * alpha-tdep.c (alpha_gdbarch_init): Update.
11611
a67af2b9
AC
116122004-01-26 Andrew Cagney <cagney@redhat.com>
11613
11614 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
11615 SYMBOL_LOCATION_FUNCS
11616 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
11617 "struct symbol_ops".
11618 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
11619 type to "struct symbol_ops".
11620 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
11621 (struct symbol): Replace ".aux_value.loc.funcs" and
11622 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
11623 (SYMBOL_OBJFILE): Delete macro.
11624 (SYMBOL_LOCATION_FUNCS): Delete macro.
11625 (SYMBOL_LOCATION_BATON): Update.
11626 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
11627 intead of SYMBOL_LOCATION_FUNCS.
11628 * ax-gdb.c (gen_var_ref): Ditto.
11629 * printcmd.c (address_info): Ditto.
11630 * findvar.c (read_var_value): Ditto.
11631 (symbol_read_needs_frame): Ditto.
11632
c034e007
AC
116332004-01-26 Andrew Cagney <cagney@redhat.com>
11634
11635 * dwarf2read.c (read_func_scope): Document frame-base hack.
11636
bb472c1e
MK
116372004-01-25 Mark Kettenis <kettenis@gnu.org>
11638
11639 * infcmd.c (print_return_value): Plug memory leak; delete
11640 ui_stream object. Rename argument `structure_return' to
11641 `struct_return'.
11642
c8e737d5
MK
116432004-01-25 Mark Kettenis <kettenis@gnu.org>
11644
f941662f
MK
11645 * infcmd.c (print_return_value): Wrap long lines.
11646 (finish_command_continuation, finish_command): Remove unused
11647 variable `funcaddr'. Fix some coding-standards problems.
11648
c558d81a 11649 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 11650 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
11651 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
11652 TDEP->fpregset to zero.
11653
bf1e5861 11654 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
11655 floating-point registers for traditional NetBSD core files.
11656 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
11657 TDEP->sizeof_fpregset here.
11658
4c72d57a
MK
116592004-01-25 Mark Kettenis <kettenis@gnu.org>
11660
566626fa
MK
11661 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
11662 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
11663 function with code split out from
11664 sparc32nbsd_sigcontext_frame_cache.
11665 (sparc32nbsd_sigcontext_frame_cache): Use
11666 sparc32nbsd_sigcontext_saved_regs.
11667 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
11668 OpenBSD.
11669 * sparcobsd-tdep.c: New file.
11670 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
11671 (sparcobsd-tdep.o): New dependency.
11672 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
11673 * config/sparc/obsd.mt: New file.
11674
4c72d57a
MK
11675 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
11676 TDEP->fpregset to be initialized to enable core file register
11677 sets.
11678
7e5e9f88
MK
116792004-01-24 Mark Kettenis <kettenis@gnu.org>
11680
f0f207fd 11681 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
11682 Add opaque declarations.
11683 (sparc64nbsd_sigcontext_saved_regs): New prototype.
11684 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
11685 function with code split out from
11686 sparc64nbsd_sigcontext_frame_cache.
11687 (sparc64nbsd_sigcontext_frame_cache): Use
11688 sparc64nbsd_sigcontext_saved_regs.
11689 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
11690 OpenBSD.
11691 * sparc64obsd-tdep.c: New file.
11692 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
11693 (sparc64obsd-tdep.o): New dependency.
11694 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
11695 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
11696 * config/sparc/obsd64.mt: New file.
11697
690668cc
MK
11698 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
11699 read the instruction at PC.
11700
7e5e9f88
MK
11701 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
11702 value of GDB_OSABI_DEFAULT.
11703 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
11704 instead of GDB_OSABI_NETBSD_AOUT.
11705
68b6dce9
NR
117062004-01-24 Nick Roberts <nick@nick.uklinux.net>
11707
11708 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
11709 copyright.
11710
080ce8c0
AC
117112004-01-23 Andrew Cagney <cagney@redhat.com>
11712
11713 * printcmd.c (display_command): Replace tui_set_display call with
11714 tui_set_layout_for_display_command.
11715 * tui/tui.h (enum tui_win_type): Define.
11716 (tui_set_layout): Delete declaration.
11717 (tui_set_layout_for_display_command): Rename set_tui_layout.
11718 * tui/tui-data.h (enum tui_layout_type): Define.
11719 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
11720 "tui.h".
11721 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
11722 (tui_default_win_height): Rename tuiDefaultWinHeight.
11723 (tui_default_win_viewport_height): Rename
11724 tuiDefaultWinViewportHeight.
11725 (tui_set_layout): RenametuiSetLayout.
11726 * tui/tui-layout.c: Update references.
11727 * tui/tui.c: Update references.
11728 * tui/tui-disasm.c: Update references.
11729
b368761e
DC
117302004-01-23 David Carlton <carlton@kealia.com>
11731
11732 Partial workaround for PR c++/1511:
11733 * cp-namespace.c: Include frame.h.
11734 (cp_lookup_transparent_type): New
11735 (cp_lookup_transparent_type_loop): New.
11736 * cp-support.h: Declare cp_lookup_transparent_type.
11737 * symtab.c (basic_lookup_transparent_type): Renamed from
11738 lookup_transparent_type.
11739 (lookup_transparent_type): Replace old body by a call to
11740 current_language->la_lookup_transparent_type.
11741 * symtab.h: Update copyright. Declare
11742 basic_lookup_transparent_type.
11743 * language.h: Update copyright.
11744 (struct language_defn): Add la_lookup_transparent_type.
11745 * language.c: Update copyright.
11746 (unknown_language_defn): Add basic_lookup_transparent_type.
11747 (auto_language_defn): Add basic_lookup_transparent_type.
11748 (local_language_defn): Add basic_lookup_transparent_type.
11749 * ada-lang.c: Update copyright.
11750 (ada_language_defn): Add basic_lookup_transparent_type.
11751 * c-lang.c: Update copyright.
11752 (c_language_defn): Add basic_lookup_transparent_type.
11753 (cplus_language_defn): Add basic_lookup_transparent_type.
11754 (asm_language_defn): Add basic_lookup_transparent_type.
11755 (minimal_language_defn): Add basic_lookup_transparent_type.
11756 * f-lang.c: Update copyright.
11757 (f_language_defn): Add basic_lookup_transparent_type.
11758 * jv-lang.c: Update copyright.
11759 (java_language_defn): Add basic_lookup_transparent_type.
11760 * m2-lang.c: Update copyright.
11761 (m2_language_defn): Add basic_lookup_transparent_type.
11762 * objc-lang.c: Update copyright.
11763 (objc_language_defn): Add basic_lookup_transparent_type.
11764 * p-lang.c: Update copyright.
11765 (p_language_defn): Add basic_lookup_transparent_type.
11766 * scm-lang.c: Update copyright.
11767 (scm_language_defn): Add basic_lookup_transparent_type.
11768 * Makefile.in (cp-namespace.o): Depend on frame.h.
11769
fdde2d81
DC
117702004-01-23 David Carlton <carlton@kealia.com>
11771
11772 Patch for PR c++/1520:
11773 * dwarf2read.c (read_func_scope): Set processing_current_prefix
11774 properly if we have a specification die.
11775 (determine_prefix_aux): Rename from determine_prefix.
11776 (determine_prefix): Like the old determine_prefix, but never
11777 returns NULL.
11778
5b828b6b
TR
117792004-01-23 Theodore A. Roth <troth@openavr.org>
11780
11781 * avr-tdep.c: Update copyright.
11782 (avr_iaddr_p): Delete unused function.
11783 (avr_saddr_p): Delete unused function.
11784
a1b8c067
DC
117852004-01-23 David Carlton <carlton@kealia.com>
11786
11787 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
11788 Fix for PR symtab/1534.
11789
f2cab569
MK
117902004-01-23 Mark Kettenis <kettenis@gnu.org>
11791
11792 * NEWS (New native configurations): Mention OpenBSD/sparc and
11793 OpenBSD/sparc64.
11794 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
11795 * configure.host: Likewise.
11796 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
11797 handler for OpenBSD.
11798 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
11799
642d8300
MK
118002004-01-22 Mark Kettenis <kettenis@gnu.org>
11801
89aac506
MK
11802 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
11803 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
11804
36662fde
MK
11805 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
11806 * cli/cli-cmds.c (shell_escape): Likewise.
11807
642d8300
MK
11808 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
11809 OpenBSD .note.openbsd.ident sections.
11810
fae299cd
DC
118112004-01-22 David Carlton <carlton@kealia.com>
11812
11813 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
11814 get_scope_pc_bounds.
11815 (read_file_scope): Ditto.
11816 (get_scope_pc_bounds): New function, produced by extracting code
11817 from the above two functions, consolidating it, and adding support
11818 for DW_TAG_namespace.
11819
a49d618c
MK
118202004-01-22 Mark Kettenis <kettenis@gnu.org>
11821
11822 * osabi.c (MAX_NOTESZ): New define.
11823 (check_note): New function.
11824 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
11825 check_note.
11826
fe61caab
RM
118272004-01-21 Roland McGrath <roland@redhat.com>
11828
11829 * MAINTAINERS (write after approval): Add myself.
11830
ec145965
EZ
118312004-01-21 Eli Zaretskii <eliz@gnu.org>
11832
11833 * utils.c (init_page_info): Move declarations of `rows' and
11834 `cols' before the __GO32__-specific code. Move the closing brace
11835 outside the #ifdef __GO32__..#endif block.
11836 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
11837
877522db
PB
118382004-01-21 Paul Brook <paul@codesourcery.com>
11839
11840 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
11841 BPSTAT_WHAT_CHECK_SHLIBS.
11842
dbf5be1c
PB
118432004-01-21 Paul Brook <paul@codesourcery.com>
11844
11845 * MAINTAINERS: Add myself to write-after-approval.
11846
81f08b92
AC
118472004-01-20 Andrew Cagney <cagney@redhat.com>
11848
5a1efed7
AC
11849 * ax-gdb.c (print_axs_value): Delete unused function.
11850 * jv-lang.c (java_lookup_type): Delete unused function.
11851 * cli/cli-dump.c (dump_filetype): Delete unused function.
11852 * remote-mips.c (remote_mips_insert_hw_breakpoint)
11853 (remote_mips_remove_hw_breakpoint): Delete unused functions.
11854 (mips_getstring): Delete unused function.
11855 (pmon_insert_breakpoint): Delete #if0ed function.
11856 (PMON_MAX_BP): Delete #if0ed MACRO.
11857 (mips_pmon_bp_info): Delete #if0ed variable.
11858 (pmon_remove_breakpoint): Delete #if0ed function.
11859 * monitor.c (monitor_write_even_block): Delete unused function.
11860 (monitor_write_memory_block): Delete #if0ed code.
11861 * dink32-rom.c (dink32_load): Delete unused function.
11862 (_initialize_dink32_rom): Delete #if0ed code.
11863 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
11864
b0a30fce
AC
11865 * tui/tui-command.c: Update references.
11866 * tui/tui-io.c: Update references.
11867 * tui/tui-command.h: Update copyright.
11868 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
11869
81f08b92
AC
11870 * source.c (ambiguous_line_spec): Delete never-defined function.
11871 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
11872 * gdbtypes.c (add_name, add_mangled_type): Ditto.
11873 * cli/cli-cmds.c (validate_comname): Ditto.
11874
65f05602
AC
11875 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
11876 "tui-data.h".
11877 (tui_set_disassem_content): Rename tuiSetDisassemContent.
11878 (tui_show_disassem): Rename tuiShowDisassem.
11879 (tui_show_disassem_and_update_source): Rename
11880 tuiVerticalDisassemScroll.
11881 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
11882 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
11883 * tui/tui.h: Update copyright.
11884 (enum tui_status): Define.
11885 * tui/tui-data.h (enum tui_scroll_direction): Define.
11886 * tui/tui-disasm.c: Update copyright. Update references.
11887 * tui/tui-winsource.c: Update copyright. Update references.
11888 * tui/tui-win.c: Update references.
11889 * tui/tui-layout.c: Update references.
11890
6bb0384f
AC
118912004-01-20 Andrew Cagney <cagney@redhat.com>
11892
11893 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
11894 sym2 to start of block.
11895
9175c9a3
MC
118962004-01-19 Michael Chastain <mec.gnu@mindspring.com>
11897
11898 * MAINTAINERS: Delete mmalloc.
11899 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
11900 * NEWS: Mention removal of --with-malloc.
11901 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
11902 * config.in: Regenerate.
11903 * configure: Regenerate.
6bb0384f
AC
11904 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
11905 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
11906 * gdbinit.in: Remove mmalloc.
11907 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
11908 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
11909 * config/i386/go32.mh: Likewise.
11910 * config/i386/interix.mh: Likewise.
11911 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
11912
4fcef00a
JJ
119132004-01-19 Jeff Johnston <jjohnstn@redhat.com>
11914
11915 * linespec.c (decode_variable, symtab_from_filename): Call
11916 error_silent with error message instead of throwing an exception
11917 directly.
11918 * defs.h (error_silent, error_output_message): Add prototypes.
11919 (catch_exceptions_with_msg): Ditto.
11920 * utils.c (error_silent, error_output_message): New functions.
11921 * top.c (catch_exceptions_with_msg): New function.
11922
8e94b928
NR
119232004-01-20 Nick Roberts <nick@nick.uklinux.net>
11924
11925 * mi/mi-cmds.h (enum print_values): Add definition.
11926
11927 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
11928 type and value for simple data types and just the name and type
11929 for complex ones, if required.
11930
11931 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
11932 children, if required.
11933
a02d6af8
KB
119342004-01-19 Kevin Buettner <kevinb@redhat.com>
11935
11936 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
11937 unused declarations.
11938
78a4a9b9
AC
119392004-01-19 Andrew Cagney <cagney@redhat.com>
11940
11941 * top.h (mapped_symbol_files): Delete declaration.
11942 * main.c (captured_main): Delete option "m" and "mapped".
11943 * objfiles.c (mapped_symbol_files): Delete variable.
11944 * symfile.c (symbol_file_command): Delete mmap code.
11945 (symbol_file_add_with_addrs_or_offsets): Ditto.
11946 (add_symbol_file_command, reread_separate_symbols): Ditto.
11947 * objfiles.h (OBJF_MAPPED): Delete.
11948 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
11949 (free_objfile) [USE_MMALLOC]: Ditto.
11950 (open_existing_mapped_file): Delete function.
11951 (open_mapped_file): Delete function.
11952 (map_to_file): Delete function.
11953
2dbd5e30
KB
119542004-01-19 Kevin Buettner <kevinb@redhat.com>
11955
11956 * infrun.c (step_into_function): Account for possible breakpoint
11957 adjustment when computing ``stop_func_start''.
11958
437b434f
KB
119592004-01-19 Kevin Buettner <kevinb@redhat.com>
11960
11961 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
11962 the region size against the size of a pointer, not the size of
11963 a register as given by DEPRECATED_REGISTER_SIZE.
11964
55fb0713
AC
119652004-01-19 Andrew Cagney <cagney@redhat.com>
11966
11967 * tui/tui-regs.h: Include "tui-data.h".
11968 (tuiFirstRegElementNoInLine): Delete declaration.
11969 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
11970 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
11971 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
11972 (tui_calculate_regs_column_count): Rename
11973 tuiCalculateRegsColumnCount.
11974 (tui_check_register_values): Rename tuiCheckRegisterValues.
11975 (tui_show_registers): Rename tuiShowRegisters.
11976 (tui_display_registers_from_line): Rename
11977 tuiDisplayRegistersFromLine.
11978 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
11979 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
11980 (tui_first_reg_element_no_inline): Rename
11981 tuiFirstRegElementNoInLine.
11982 * tui/tui-data.h: Update copyright.
11983 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
11984 * tui/tui-windata.c: Update copyright, update references.
11985 * tui/tui-regs.c: Update copyright, update references.
11986 * tui/tui-win.c: Update copyright, update references.
11987 * tui/tui-layout.c: Update copyright, update references.
fe61caab 11988
cebe9500
AC
119892004-01-18 Andrew Cagney <cagney@redhat.com>
11990
bcdf1568
AC
11991 * tui/tui-io.c: Update copyright.
11992 (key_is_end_sequence, key_is_backspace): New functions.
11993 (key_is_command_char, key_is_start_sequence): New function.
11994 (tui_getc): Update references.
11995 * tui/tui-io.h: Update copyright.
11996 (m_tuiStartNewLine): Delete macro.
11997 (m_isBackspace, m_isDeleteChar): Delete macros.
11998 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
11999 (m_isNextPage, m_isPrevPage): Delete macros.
12000 (m_isLeftArrow, m_isRightArrow): Delete macros.
12001 (m_isXdbStyleCommandChar): Delete macro.
12002 (key_is_start_sequence): Declare, replace m_isStartSequence.
12003 (key_is_end_sequence): Declare, replace m_isEndSequence.
12004 (key_is_backspace): Declare ,replace m_isBackspace.
12005 (key_is_command_char): Declare, replace m_isCommandChar.
12006 * tui/tui-command.c: Update copyright.
12007 (tuiDispatchCtrlChar): Update references.
12008
130d87e6
AC
12009 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
12010 tuiSourceWin.h.
12011
d7b2e967
AC
12012 * tui/tui-command.c: Rename tui/tuiCommand.c.
12013 * tui/tui-command.h: Rename tui/tuiCommand.h.
12014 * tui/tui-data.c: Rename tui/tuiData.c.
12015 * tui/tui-data.h: Rename tui/tuiData.h.
12016 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
12017 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
12018 * tui/tui-io.c: Rename tui/tuiIO.c.
12019 * tui/tui-io.h: Rename tui/tuiIO.h.
12020 * tui/tui-layout.c: Rename tui/tuiLayout.c.
12021 * tui/tui-layout.h: Rename tui/tuiLayout.h.
12022 * tui/tui-regs.c: Rename tui/tuiRegs.c.
12023 * tui/tui-regs.h: Rename tui/tuiRegs.h.
12024 * tui/tui-source.c: Rename tui/tuiSource.c.
12025 * tui/tui-source.h: Rename tui/tuiSource.h.
12026 * tui/tui-stack.c: Rename tui/tuiStack.c.
12027 * tui/tui-stack.h: Rename tui/tuiStack.h.
12028 * tui/tui-win.c: Rename tui/tuiWin.c.
12029 * tui/tui-win.h: Rename tui/tuiWin.h.
12030 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
12031 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
12032 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
12033 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
12034 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
12035 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
12036 * tui/tui-file.c: Update includes.
12037 * tui/tui-hooks.c: Update includes.
12038 * tui/tui-interp.c: Update includes.
12039 * tui/tui.c: Update includes.
12040 * Makefile.in: Update all tui/ dependencies.
12041 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
12042
b2100910
AC
12043 * Makefile.in: Update copyright. Update dependencies.
12044
cebe9500
AC
12045 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
12046 problem.
12047
c6f0559b
AC
120482004-01-18 Andrew Cagney <cagney@redhat.com>
12049
43e9390b
AC
12050 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
12051 instead of register_gdbarch_init.
12052
c6f0559b
AC
12053 * remote-sds.c (tohex): Delete unused function. Update copyright.
12054 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
12055 * v850-tdep.c (v850_register_virtual_size): Ditto.
12056 * target.c (normal_target_post_startup_inferior): Ditto.
12057 * source.c (ambiguous_line_spec): Ditto.
12058 * remote.c (adapt_remote_get_threadinfo): Ditto.
12059 * mi/mi-out.c (out_field_fmt): Ditto.
12060 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
12061 (output_control_change_notification): Ditto.
12062 * m68k-tdep.c (m68k_register_byte): Ditto.
12063 (m68k_remote_breakpoint_from_pc): Ditto.
12064 * ui-out.c (init_ui_out_state): Delete unused declaration.
12065 * stabsread.c (search_value): Ditto.
12066 * mi/mi-cmd-env.c (env_cli_command): Ditto.
12067 * maint.c (print_section_table): Ditto.
12068 * infrun.c (set_follow_fork_mode_command): Ditto.
12069
a8504492
MK
120702004-01-18 Mark Kettenis <kettenis@gnu.org>
12071
12072 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
12073 DW_CFA_def_cfa_exporession. Add support for
12074 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
12075 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
12076
0bd8997e
AC
120772004-01-18 Andrew Cagney <cagney@redhat.com>
12078
12079 * ocd.c: Update copyright.
12080 (bdm_read_register_command): Delete unused function.
12081 (_initialize_remote_ocd): Delete commented out reference.
12082 (get_quoted_char, reset_packet): Delete #if0ed function.
12083 (output_packet, put_quoted_char): Delete #if0ed function.
12084 (stu_put_packet, stu_get_packet): Delete #if0ed function.
12085 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
12086 (BDM_BREAKPOINT): Delete #if0ed macro.
12087 (remote_timeout): Delete #if0ed variable.
12088
31bb40e4
MK
120892004-01-18 Mark Kettenis <kettenis@gnu.org>
12090
12091 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
12092 (core-sol2.o): Remove dependency.
12093 * core-sol2.c: Remove file.
12094
887432a5
AC
120952004-01-17 Andrew Cagney <cagney@redhat.com>
12096
12097 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
12098 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
12099 enums.
12100
29182b13
DJ
121012004-01-17 Daniel Jacobowitz <drow@mvista.com>
12102
12103 * remote.c: Update copyright years.
12104
2963ee1d
DJ
121052004-01-17 Daniel Jacobowitz <drow@mvista.com>
12106
12107 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
12108
79d45cd4
AC
121092004-01-17 Andrew Cagney <cagney@redhat.com>
12110
ee300cd4
AC
12111 * mdebugread.c: Update copyright.
12112 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
12113 (parse_type, parse_procedure): Ditto.
12114 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
12115
fcacc9c2
AC
12116 * cris-tdep.c (cris_store_struct_return): Put back accidently
12117 deleted function.
12118
79d45cd4
AC
12119 * gdbarch.sh: Update copyright year.
12120 * gdbarch.h, gdbarch.c: Re-generate.
12121
b263358a
DJ
121222004-01-17 Daniel Jacobowitz <drow@mvista.com>
12123
12124 Suggested by George Anzinger.
12125 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
12126 correct stack offset. Include unknown opcode numbers in the error
12127 message.
12128
931aecf5
AC
121292004-01-17 Andrew Cagney <cagney@redhat.com>
12130
12131 * x86-64-tdep.c (x86_64_init_abi): No need to clear
12132 extract_struct_value_address, i386 does not set it.
12133 * sparc64-tdep.c (sparc64_init_abi): Do not set
12134 extract_struct_value_address, never called.
12135 (sparc64_extract_struct_value_address): Delete function.
12136 * m68hc11-tdep.c: Update copyright.
12137 (m68hc11_gdbarch_init): Delete redundant assignment of
12138 extract_struct_value_address.
12139 * i386-tdep.c: Update copyright.
12140 (i386_gdbarch_init): Do not set extract_struct_value_address,
12141 never called.
12142 (i386_extract_struct_value_address): Delete function.
12143 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
12144 extract_struct_value_address, never called.
12145 (sparc32_extract_struct_value_address): #if 0 function. Add
12146 comments explaining its future.
12147
756fe439
DJ
121482004-01-17 Daniel Jacobowitz <drow@mvista.com>
12149
12150 * arm-tdep.c (arm_write_pc): New function.
12151 (arm_gdbarch_init): Call set_gdbarch_write_pc.
12152
e74f0f02
DJ
121532004-01-17 Daniel Jacobowitz <drow@mvista.com>
12154
12155 * breakpoint.c (must_shift_inst_regs): Delete.
12156 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
12157 and SHIFT_INST_REGS.
12158 * infcmd.c (step_1, step_1_continuation): Delete references to
12159 SHIFT_INST_REGS.
12160 * infrun.c (keep_going): Likewise.
12161 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
12162 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
12163
b6cb9035
AC
121642004-01-17 Andrew Cagney <cagney@redhat.com>
12165
444a1e2e
AC
12166 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12167 * gdbarch.h, gdbarch.c: Re-generate.
12168 * infcmd.c (print_return_value): Delete reference to
12169 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
12170
def7e6ed
AC
12171 * cris-tdep.c (cris_gdbarch_init): Do not set
12172 deprecated_extract_struct_value_address.
12173
07be497a
AC
12174 * xstormy16-tdep.c: Update copyright.
12175 (xstormy16_extract_struct_value_address): Update to current
12176 extract struct value address interface.
12177 (xstormy16_gdbarch_init): Set extract_struct_value_address.
12178 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
12179 current extract struct value address interface.
12180 (sh64_gdbarch_init): Set extract_struct_value_address.
12181
6b4d5c91
AC
12182 * cris-tdep.c: Update copyright.
12183 (cris_extract_struct_value_address): Delete function.
12184 (struct_return_address): Delete variable.
12185 (cris_store_struct_return): Do not set struct_return_address.
12186
464e0365
AC
12187 * mcore-tdep.c: Update copyright.
12188 (mcore_extract_struct_value_address): Delete function. Update
12189 comments.
12190 (mcore_gdbarch_init): Update.
12191 * mn10300-tdep.c: Update copyright.
12192 (mn10300_extract_struct_value_address): Delete function.
12193 (mn10300_gdbarch_init): Update.
12194 * v850-tdep.c: Update copyright.
12195 (v850_extract_struct_value_address): Delete.
12196 (v850_gdbarch_init): Update.
12197 * ns32k-tdep.c: Update copyright.
12198 (ns32k_extract_struct_value_address): Delete.
12199 (ns32k_gdbarch_init): Update.
12200 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
12201 (hppa_gdbarch_init): Update.
12202 * vax-tdep.c: Update copyright.
12203 (vax_extract_struct_value_address): Delete.
12204 (vax_gdbarch_init): Update.
12205
afb18d0f
AC
12206 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
12207 * gdbarch.h, gdbarch.c: Re-generate.
12208 * procfs.c (procfs_fetch_registers): Delete reference to
12209 DEPRECATED_NPC_REGNUM.
12210 (procfs_store_registers): Ditto.
12211 * regcache.c (generic_target_write_pc): Simplify.
12212 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
12213
a698f53e
AC
12214 * core-sol2.c (fetch_core_registers): Replace
12215 DEPRECATED_NPC_REGNUM with equivalent tdep value.
12216
adc11376
AC
12217 * hppa-tdep.c: Update copyright year.
12218 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
12219 NPC_REGNUM.
12220 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
12221
b6cb9035
AC
12222 * mips-tdep.c (mips_write_pc): New function.
12223 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
12224 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
12225 (mips_find_saved_regs, mips_software_single_step: Ditto.
12226 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
12227 mips_init_extra_frame_info, mips_pop_frame): Ditto.
12228
6d82d43b
AC
122292004-01-17 Andrew Cagney <cagney@redhat.com>
12230
12231 * mips-tdep.c: Re-indent. Group functions by ABI.
12232
71bd6bd4
AC
122332004-01-17 Andrew Cagney <cagney@redhat.com>
12234
12235 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
12236 * gdbarch.c: Re-generate.
12237 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12238 DECR_PC_AFTER_BREAK to zero.
12239 * vax-tdep.c (vax_gdbarch_init): Ditto.
12240 * v850-tdep.c (v850_gdbarch_init): Ditto.
12241 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12242 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12243 * sh-tdep.c (sh_gdbarch_init): Ditto.
12244 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12245 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12246 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12247 * mips-tdep.c (mips_gdbarch_init): Ditto.
12248 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12249 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12250 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12251 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12252 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12253 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12254 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12255 * frv-tdep.c (frv_gdbarch_init): Ditto.
12256 * cris-tdep.c (cris_gdbarch_init): Ditto.
12257 * avr-tdep.c (avr_gdbarch_init): Ditto.
12258 * arm-tdep.c (arm_gdbarch_init): Ditto.
12259 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
12260
a02abb62
JB
122612004-01-17 J. Brobecker <brobecker@gnat.com>
12262
12263 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
12264 Delete, no longer used.
12265 (read_subrange_type): New function, mostly extracted from
12266 read_array_type().
12267 (read_array_type): Replace extracted code by call to
12268 read_subrange_type().
12269 (dwarf2_get_attr_constant_value): New function.
12270 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
12271 (add_partial_symbol): Likewise.
12272 (process_die): Likewise.
12273 (new_symbol): Likewise.
12274 (read_type_die): Likewise.
12275
cf5b2f1b
AC
122762004-01-16 Andrew Cagney <cagney@redhat.com>
12277
12278 * symfile.c: Update copyright year.
12279 (compare_symbols): Delete unused function.
12280 * stabsread.c: Update copyright year.
12281 (lrs_general_complaint): Delete unused function.
12282 (ref_search_value): Ditto.
12283 (get_substring): Delete declaration.
12284 * sh64-tdep.c: Update copyright year.
12285 (sh64_get_gdb_regnum): Delete unused function.
12286 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
12287 Delete unused function.
12288
d33b9831
MK
122892004-01-17 Mark Kettenis <kettenis@gnu.org>
12290
12291 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
12292 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
12293
7aea86e6
AC
122942004-01-16 Andrew Cagney <cagney@redhat.com>
12295
12296 Changes from Peter Schauer.
12297 * rs6000-tdep.c: Update copyright year.
12298 (rs6000_push_dummy_call): Update the stack pointer before
12299 accessing the corresponding stack region.
12300 * rs6000-nat.c: Update copyright year.
12301 (set_host_arch): Set "info.abfd" to "exec_bfd".
12302
26b0da32
MK
123032004-01-15 Mark Kettenis <kettenis@gnu.org>
12304
12305 * blockframe.c: Update copyright year.
12306 (inside_entry_func): Don't treat a zero PC specially.
12307
86fbe6cc
EZ
123082004-01-14 Elena Zannoni <ezannoni@redhat.com>
12309
12310 * gcore.c (gcore_copy_callback): Use paddr_d to print size
12311 variable.
12312 (gcore_create_callback): Ditto. Skip any memory segment that has
12313 no permissions set.
12314
63d06c5c
DC
123152004-01-14 David Carlton <carlton@kealia.com>
12316
12317 Change symbols for C++ nested types to contain the fully qualified
12318 name, if possible. (At least in the DWARF-2 case.) Partial fix
12319 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
12320 c++/895.
12321 * c-exp.y (qualified_type): Handle types nested within classes.
12322 * cp-namespace.c: Update comments.
12323 (cp_set_block_scope): Delete #if 0.
12324 (cp_lookup_nested_type): Handle types nested within classes.
12325 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
12326 when appropriate.
12327 (add_partial_symbol): Add the name of the enclosing namespace to
12328 types.
12329 (pdi_needs_namespace): New.
12330 (add_partial_namespace): Tweak comment.
12331 (add_partial_structure): New.
12332 (psymtab_to_symtab_1): Initialize processing_current_prefix
12333 here...
12334 (process_die): instead of here.
12335 (read_structure_scope): Try to figure out the name of the class or
12336 namespace that the structure might be defined within.
12337 (read_enumeration): Generate fully-qualified names, if possible.
12338 (read_namespace): Don't set name to NULL.
12339 (die_specification): New.
12340 (new_symbol): Generate fully-qualified names for types.
12341 (read_type_die): Determine appropriate prefix.
12342 (determine_prefix): New.
12343 (typename_concat): New.
12344 (class_name): New.
12345 * valops.c (value_aggregate_elt): Pass NOSIDE to
12346 value_struct_elt_for_reference.
12347 (value_struct_elt_for_reference): Make static, add NOSIDE
12348 parameter, call value_maybe_namespace_elt as a last resort.
12349 (value_namespace_elt): Break out code into
12350 value_maybe_namespace_elt.
12351 (value_maybe_namespace_elt): New.
12352
87783b8b
AC
123532004-01-12 Andrew Cagney <cagney@redhat.com>
12354
12355 * mips-tdep.c (mips_convert_register_p): Handle both raw and
12356 cooked floating-point registers.
12357 (mips_gdbarch_init): Set convert_register_p, register_to_value,
12358 and value_to_register.
12359
6503b91e
AC
123602004-01-13 Andrew Cagney <cagney@redhat.com>
12361
12362 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
12363 * gdbarch.c: Re-generate.
12364 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12365 FUNCTION_START_OFFSET.
12366 * v850-tdep.c (v850_gdbarch_init): Ditto.
12367 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12368 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12369 * sh-tdep.c (sh_gdbarch_init): Ditto.
12370 * s390-tdep.c (s390_gdbarch_init): Ditto.
12371 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12372 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12373 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12374 * mips-tdep.c (mips_gdbarch_init): Ditto.
12375 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12376 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
12377 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12378 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12379 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12380 * i386-tdep.c (i386_gdbarch_init): Ditto.
12381 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12382 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12383 * frv-tdep.c (frv_gdbarch_init): Ditto.
12384 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12385 * cris-tdep.c (cris_gdbarch_init): Ditto.
12386 * avr-tdep.c (avr_gdbarch_init): Ditto.
12387 * arm-tdep.c (arm_gdbarch_init): Ditto.
12388 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12389
ea1dd7bc
DJ
123902004-01-13 Daniel Jacobowitz <drow@mvista.com>
12391
12392 * infrun.c (follow_fork_mode_ask): Remove.
12393 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
12394 (follow_fork): Simplify and remove internal error for
12395 follow_fork_mode_ask.
12396 (_initialize_infrun): Update "set follow-fork-mode" help text.
12397
0f0cffd2
AC
123982004-01-13 Andrew Cagney <cagney@redhat.com>
12399
12400 * configure.in: Update copyright year.
12401 (build_warnings): Add -Wunused-label.
12402 * configure: Re-generate.
12403
de38af99
AC
124042004-01-12 Andrew Cagney <cagney@redhat.com>
12405
954a7fba
AC
12406 * exec.h (exec_ops): Make "extern".
12407
de38af99
AC
12408 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
12409 the function is void.
12410 (mips_pseudo_register_write): Ditto.
12411
1a111ce3
AC
124122004-01-12 Andrew Cagney <cagney@redhat.com>
12413
12414 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
12415 call. Never defined.
12416 * sparc-tdep.h (struct frame_info): Add opaque declaration.
12417 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
12418 (struct sparc_gregset, struct regcache): Ditto.
12419 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
12420
48efe704
AC
124212004-01-12 Andrew Cagney <cagney@redhat.com>
12422
12423 * mi/ChangeLog: Delete file. Renamed to ...
12424 * mi/ChangeLog-1999-2003: New file.
12425 * tui/ChangeLog: Delete file. Renamed to ...
12426 * tui/ChangeLog-1998-2003: New file.
fe61caab 12427
a54124c5
MK
124282004-01-11 Mark Kettenis <kettenis@gnu.org>
12429
2ca62865
MK
12430 * sparc64nbsd-tdep.c: Include "regset.h".
12431 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
12432 Remove variables.
12433 (fetch_core_registers): Remove function.
12434 (sparc64nbsd_core_fns): Remove variable.
12435 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
12436 functions.
12437 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
12438 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
12439 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
12440
ca9d58e9
MK
12441 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
12442 sparc_extract_struct_value_address.
12443 (sparc32_gdbarch_init): Set extract_struct_value_address.
12444 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
12445 function.
12446 (sparc64_init_abi): Set extract_struct_value_address. Don't set
12447 return_value_on_stack.
12448
3cc87ec0
MK
12449 * NEWS: Mention that %cs and %ss have been added to the AMD64
12450 configurations
12451
5bf00f29
MK
12452 * frame.c: Update copyright year.
12453 (get_prev_frame): Improve comment.
12454
4f7ec84e
MK
12455 * sparc64fbsd-tdep.c: Include "regset.h".
12456 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12457 Remove variables.
12458 (fetch_core_registers): Remove function.
12459 (sparc64fbsd_core_fns): Remove variable.
12460 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
12461 functions.
12462 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
12463 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 12464 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 12465
4e7b0cd3
MK
12466 * sparcnbsd-tdep.c: Include "regset.h".
12467 (fetch_core_registers): Remove function.
12468 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
12469 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
12470 functions.
12471 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
12472 TDEP->fpregset.
46b58ce9 12473 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 12474
a54124c5
MK
12475 * sparc-tdep.h (struct regset): Provide opaque declaration.
12476 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
12477 fpregset and sizeof_fpregset members.
12478 * sparc-tdep.c (struct regset): Provide opaque declaration.
12479 (sparc_regset_from_core_section): New function.
12480 (sparc32_gdbarch_init): Initialize TDEP->gregset,
12481 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
12482 Set regset_from_core_section when appropriate.
12483
29ff87c5
MK
124842004-01-10 Mark Kettenis <kettenis@gnu.org>
12485
79b1ab3d
MK
12486 * x86-64-tdep.c (amd64_non_pod_p): New function.
12487 (amd64_classify_aggregate): Return class memory for non-POD
12488 C++ structure types.
12489
6470d250
MK
12490 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
12491 argument. Use it to reserve a register if necessary.
12492 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
12493 amd64_push_arguments.
12494
562c50c2
MK
12495 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
12496
af233647
MK
12497 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
12498 register numbers in comments.
12499 * x86-64-tdep.h: Update copyright year.
12500 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
12501 Adjust for addition of %cs and %ss.
12502 * amd64fbsd-nat.c: Update copyright year.
12503 (reg_offset): Add register offsets for %cs and %ss.
12504 * amd64fbsd-tdep.c: Update copyright year.
12505 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
12506 (amd64fbsd_sc_reg_offset): Likewise.
12507 * x86-64-linux-nat.c: Update copyright year.
12508 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
12509 and %ss.
12510 * amd64nbsd-nat.c: Update copyright year.
12511 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
12512 * amd64nbsd-tdep.c: Update copyright year.
12513 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
12514 * x86-64-linux-tdep.c: Update copyright year.
12515 (user_to_gdb_regmap): Add mapping for %cs and %ss.
12516 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
12517 * regformats/reg-x86-64.dat: Add %cs and %ss.
12518
29ff87c5
MK
12519 * blockframe.c (inside_entry_func): Reformat. Introduce new local
12520 variables to prevent long lines. Update comments to reflect
12521 reality.
12522
38d518c9
EZ
125232004-01-09 David Carlton <carlton@kealia.com>
12524
12525 Checked in by Elena Zannoni <ezannoni@redhat.com>.
12526 * dwarf2read.c (read_namespace): Pull out name-generating code
12527 into namespace_name. Rename previous_namespace to previous_prefix
12528 and processing_current_namespace to processing_current_prefix..
12529 (namespace_name): New function.
12530 (add_partial_symbol): Substitute uses of pdi->name with
12531 actual_name.
12532 * cp-support.h: Rename processing_current_namespace to
12533 processing_current_prefix.
12534 Update copyright year.
12535 * cp-namespace.c: Rename processing_current_namespace to
12536 processing_current_prefix.
12537 Update copyright year.
fe61caab 12538
1e4728e7
AC
125392004-01-09 Andrew Cagney <cagney@redhat.com>
12540
12541 * jv-valprint.c, ser-unix.c: Add missing copyright years.
12542
c77c642a
MK
125432004-01-09 Mark Kettenis <kettenis@gnu.org>
12544
12545 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
12546 complaining.
12547 (process_one_symbol): Deal with N_PATCH stabs.
12548
b44e9041
EZ
125492004-01-09 Elena Zannoni <ezannoni@redhat.com>
12550
12551 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
12552 ifdeffed code.
12553 Update copyright year.
38d518c9 12554
eccfb640
MC
125552004-01-08 Michael Chastain <mec.gnu@mindspring.com>
12556
12557 * config/pa/tm-hppa.h: Update extern declarations for
12558 hppa32_hpux_frame_saved_pc_in_sigtramp,
12559 hppa32_hpux_frame_base_before_sigtramp, and
12560 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
12561
848c5feb
MC
125622004-01-08 Michael Chastain <mec.gnu@mindspring.com>
12563
12564 * config/pa/tm-hppah.h: Update copyright years.
12565
3cc5d663
AC
125662004-01-08 Andrew Cagney <cagney@redhat.com>
12567
12568 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
12569 (mips_o32_reg_struct_has_addr): Delete function.
12570 (mips_gdbarch_init): Update.
12571 (mips_extract_struct_value_address): Delete function.
12572
bfec0b41
JJ
125732004-01-08 David Mosberger <davidm@hpl.hp.com>
12574
12575 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
12576 reality.
12577
16e109ca
AC
125782004-01-07 Andrew Cagney <cagney@redhat.com>
12579
6214a8a1
AC
12580 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
12581 architecture's elf flags (when available).
12582
8d5838b5
AC
12583 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
12584 FPU to the start, check the MIPS FPU when looking for an old
12585 architecture.
12586 (set_mipsfpu_single_command): Update the architecture.
12587 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
12588
480d3dd2
AC
12589 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
12590 (mips_mask_address_p): Add "tdep" parameter.
12591 (show_mask_address, mips_addr_bits_remove): Update.
12592 (mips_dump_tdep): Update.
12593 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
12594 (MIPS_STACK_ARGSIZE): Delete macro.
12595 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
12596 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
12597 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
12598 (mips_dump_tdep): Update.
12599 (MIPS_SAVED_REGSIZE): Delete macro.
12600 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
12601 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
12602 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
12603 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
12604 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
12605 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
12606 (mips_pop_frame, return_value_location): Update.
12607 (mips_n32n64_return_value, mips_dump_tdep): Update.
12608
ec03c1ac
AC
12609 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
12610 MIPS ABI.
12611
16e109ca
AC
12612 * mips-tdep.c: Update copyright.
12613 (mips_gdbarch_init): Merge two code blocks handling the register
12614 name and number layout.
12615
15255275
MS
126162004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
12617
12618 * tracepoint.c (validate_actionline): Fix segv at EOF
12619
9f9057da
MC
126202004-01-07 Michael Chastain <mec.gnu@mindspring.com>
12621
12622 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
12623 properly for static fields.
12624
0127c0d3 126252004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 12626 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
12627
12628 * disasm.c: Update copyright to include 2004.
12629 (do_mixed_source_and_assembly): For uiout asm list
12630 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 12631 NULL and do so prior to loop. Only reset when we close off
0127c0d3 12632 the tuple/list. Move check for whether to close off the
fe61caab 12633 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
12634 on each loop iteration.
12635
5269965e
AC
126362004-01-05 Andrew Cagney <cagney@redhat.com>
12637
54f1137d
AC
12638 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
12639 should be a switch case and not a label.
12640 * mips-tdep.c (mips32_next_pc): Delete unused labels
12641 "greater_equal_branch" and "less_zero_branch".
12642 * jv-valprint.c (java_print_value_fields): Delete unused label
12643 "flush_it".
12644
5269965e
AC
12645 * target.c (unpush_target): Only close a target that is in the
12646 target stack.
12647
dbc22fa1
MK
126482004-01-05 Mark Kettenis <kettenis@gnu.org>
12649
9515395e
MK
12650 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
12651 address from [sp + 64] instead of %o2.
12652
dbc22fa1
MK
12653 * frame.c (get_prev_frame): Don't try to unwind the PC. This
12654 fixes PR backtrace/1476.
12655
5439edaa
AC
126562004-01-05 Andrew Cagney <cagney@redhat.com>
12657
12658 * libunwind-frame.h (struct frame_id): Add opaque declaration,
12659 move to start of file.
12660 * i386-tdep.h (struct regcache): Add opaque declaration.
12661 * config/ia64/nm-linux.h (struct target_ops): Add opaque
12662 declaration.
12663 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
12664 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
12665 * win32-nat.c (fake_create_process): Use ISO C style definition.
12666 * stabsread.c (define_symbol): Delete #ifndef
12667 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
12668 stabs_argument_has_addr call, macro never defined.
12669
19061abe
MC
126702004-01-04 Michael Chastain <mec.gnu@mindspring.com>
12671
12672 * op50-rom.c: Delete.
12673 * w89k-rom.c: Delete.
12674 * Makefile.in: Remove references.
12675
e53bef9f
MK
126762004-01-04 Mark Kettenis <kettenis@gnu.org>
12677
12678 * x86-64-tdep.c: Update copyright year.
12679 (struct amd64_register_info): Rename from x86_64_register_info.
12680 (amd64_register_info): Rename from x86_64_register_info.
12681 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
12682 (amd64_register_name): Rename from x86_64_register_name.
12683 (amd64_register_type): Rename from x86_64_register_type.
12684 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
12685 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
12686 (amd64_dwarf_reg_to_regnum): Rename from
12687 x86_64_dwarf_reg_to_regnum.
12688 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
12689 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
12690 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
12691 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
12692 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
12693 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
12694 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
12695 (amd64_frame_cache): Rename from x86_64_frame_cache.
12696 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
12697 (amd64_frame_prev_register): Rename from
12698 x86_64_frame_prev_register.
12699 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
12700 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
12701 (amd64_sigtramp_frame_cache): Rename from
12702 x86_64_sigtramp_frame_cache.
12703 (amd64_sigtramp_frame_prev_register): Rename from
12704 x86_64_sigtramp_frame_prev_register.
12705 (amd64_sigtramp_frame_unwind): Rename from
12706 x86_64_sigtramp_frame_unwind.
12707 (amd64_sigtramp_frame_sniffer): Rename from
12708 x86_64_sigtramp_frame_sniffer.
12709 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
12710 (amd64_frame_base): Rename from x86_64_frame_base.
12711 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
12712 (amd64_frame_align): Rename from x86_64_frame_align.
12713 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
12714 (amd64_regset_from_core_section): Rename from
12715 x86_64_regset_from_core_section.
12716 (x86_64_init_abi): Update comments.
12717
fca6aa58
NR
127182004-01-04 Nick Roberts <nick@nick.uklinux.net>
12719
12720 * MAINTAINERS (write after approval): Add myself.
12721
8ada74e3
MK
127222004-01-04 Mark Kettenis <kettenis@gnu.org>
12723
12724 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
12725 `float' arguments.
12726
5154b0cd
MK
127272004-01-04 Mark Kettenis <kettenis@gnu.org>
12728
12729 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
12730 such that it mentions a specific version of GCC that exhibits this
12731 bug.
12732
fb316966
MK
127332004-01-03 Mark Kettenis <kettenis@gnu.org>
12734
200cc553
MK
12735 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
12736 structure that has a single `float' member, store it in %f1 in
12737 addition to %f0.
12738
e226a4a0
MK
12739 * sparc-sol2-nat.c: Add missing '\'.
12740
b9d4c5ed
MK
12741 * sparc-tdep.c (sparc32_return_value): New function.
12742 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
12743 Remove functions.
12744 (sparc32_gdbarch_init): Set return_value, don't set
12745 extract_return_value, store_return_value, use_struct_convention
12746 and return_value_on_stack.
12747
fb316966
MK
12748 * sparc-sol2-nat.c: Add missing ')'.
12749
1af510a8
JB
127502004-01-03 J. Brobecker <brobecker@gnat.com>
12751
12752 * infrun.c (handle_step_into_function): New function.
12753 (handle_inferior_event): Extract out some code into the new
12754 function above.
12755
5cf4d23a
JB
127562004-01-03 J. Brobecker <brobecker@gnat.com>
12757
12758 * infrun.c (handle_inferior_event): Move the declaration of
12759 real_stop_pc inside the if blocks where it is used.
12760
60af1db2
MK
127612004-01-03 Mark Kettenis <kettenis@gnu.org>
12762
12763 * sparc64-tdep.c (sparc64_16_byte_align_p)
12764 (sparc64_store_floating_fields, sparc64_store_floating_fields):
12765 Use check_typedef to get subtypes of structures and unions.
12766 (sparc64_store_return_value): Fix calculation of the appropriate
12767 offset into VALBUF when storing a structure or union.
12768 (sparc64_return_value): New function.
12769 (sparc64_use_struct_convention): Remove function.
12770 (sparc64_init_abi): Set return_value, don't set
12771 extract_return_value, store_return_value and
12772 use_struct_convention.
12773
1a901d3f
EZ
127742004-01-03 Eli Zaretskii <eliz@elta.co.il>
12775
12776 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
12777 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
12778 gdb/config/alpha/xm-alphaosf.h,
12779 gdb/config/powerpc/tm-ppcle-eabi.h,
12780 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
12781 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
12782 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
12783 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
12784 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
12785 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
12786 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
12787 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
12788 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
12789 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
12790 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
12791 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
12792 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
12793 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
12794 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
12795 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
12796 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
12797 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
12798 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
12799 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
12800 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
12801 Remove lines for .cvsignore files.
12802
ef52e463
JB
128032004-01-03 J. Brobecker <brobecker@gnat.com>
12804
12805 * infrun.c: Back out the previous change.
12806
cb1bf9dc
MK
128072004-01-03 Mark Kettenis <kettenis@gnu.org>
12808
f0424ef6
MK
12809 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
12810 sparc-*-sunos4* to the list of REMOVED configurations.
12811
cb1bf9dc
MK
12812 * configure.tgt: Add back sparc-*-vxworks*.
12813 * remote-vxsparc.c: Remove all includes except for "defs.h",
12814 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
12815 Include "sparc-tdep.h".
12816 (SPARC_R_G1): New define.
12817 (vxsparc_gregset): New variable.
12818 (ext_format_sparc): Remove extern declaration.
12819 (vx_read_register): Rewrite to use sparc32_supply_gregset and
12820 sparc32_supply_fpregset.
12821 (vx_write_register): Rewrite to use sparc32_collect_gregset,
12822 sparc_collect_rwindow and sparc32_collect_fpregset.
12823 * config/sparc/tm-vxworks.h: New file, based on recently removed
12824 tm-vxsparc.h.
12825 * config/sparc/vxworks.mt: New file, based on recently removed
12826 vxworks.mt.
fe61caab 12827
5e938f9f
JB
128282004-01-03 J. Brobecker <brobecker@gnat.com>
12829
12830 * infrun.c (handle_step_into_function): New function.
12831 (handle_inferior_event): Extract out some code into the new
12832 function above.
12833
386c036b
MK
128342004-01-02 Mark Kettenis <kettenis@gnu.org>
12835
12836 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
12837 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
12838 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
12839 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
12840 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
12841 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
12842 (sparc_nat_h): New variable.
12843 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
12844 (tm-sun4os4.h): Remove dependency.
12845 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
12846 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
12847 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
12848 sparc-tdep.o): Update dependencies.
12849 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
12850 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
12851 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
12852 dependencies.
12853 * configure.host: Remove existing sparc-*-lynxos*,
12854 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
12855 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
12856 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
12857 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
12858 triplets.
12859 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
12860 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
12861 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
12862 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
12863 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
12864 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
12865 sparc64-*-solaris2* and sparc64-*-* triplets.
12866 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
12867 "symtab.h" and "objfiles.h".
12868 (BIAS): Remove define.
12869 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
12870 (X_DISP19): Remove macros.
12871 (sparc_fetch_instruction): Remove function.
12872 (struct gdbarch_tdep): Remove definition.
12873 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
12874 (sparc_breakpoint_from_pc): Remove function.
12875 (struct sparc64_frame_cache): Remove definition.
12876 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
12877 sparc64_unwind_pc): Remove functions.
12878 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
12879 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
12880 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
12881 (sparc64_frame_cache): Change return type to `struct
12882 sparc_frame_cache *'. Simply call sparc_frame_cache.
12883 (sparc64_frame_this_id, sparc64_frame_prev_register,
12884 sparc64_frame_base_address): Use `struct sparc_frame_cache'
12885 instead of `struct sparc64_frame_cache.
12886 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
12887 sparc_analyze_control_transfer, sparc_software_single_step,
12888 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
12889 _initialize_sparc64_tdep): Remove functions.
12890 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
12891 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
12892 macros.
12893 (sparc64_supply_gregset, sparc64_collect_gregset,
12894 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
12895 (sparc64_init_abi): New function.
12896 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
12897 inclusion guard. Include "sparc-tdep.h".
12898 (BIAS): Define.
12899 (r_tstate_offset, r_fprs_offset): New defines.
12900 (enum sparc_regnum): Remove defenition.
12901 (enum sparc64_regnum): Reformat.
12902 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
12903 (sparc64_init_abi, sparc64_supply_gregset,
12904 sparc64_collect_gregset, sparc64_supply_fpregset,
12905 sparc64_collect_fpregset): New prototypes.
12906 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
12907 Add extern declarations.
12908 (sparc64_sol2_init_abi): New prototype.
12909 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12910 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12911 prototypes.
12912 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
12913 "sparnbsd-nat.h".
12914 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
12915 functions.
12916 (_initialize_sparc64fbsd_nat): Remove initialization of
12917 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
12918 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 12919 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
12920 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
12921 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
12922 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
12923 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
12924 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
12925 (sparc64fbsd_r_y_offset): Remove variables.
12926 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12927 Make static and const.
12928 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12929 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12930 functions.
12931 (sparc64fbsd_gregset): New variable.
12932 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
12933 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
12934 and sparc64_supply_fpregset.
12935 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
12936 (sparc64fbsd_sigtramp_frame_this_id)
12937 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
12938 (sparc64fbsd_sigtramp_frame_unwind): New variable.
12939 (sparc64fbsd_sigtramp_frame_sniffer): New function.
12940 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
12941 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
12942 * sparcnbsd-tdep.c: Update copyright year. Include
12943 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
12944 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
12945 "value.h" and "sparcnbsd-tdep.h".
12946 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
12947 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
12948 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
12949 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
12950 defines.
12951 (sparcnbsd_gregset): New variable.
12952 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
12953 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
12954 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
12955 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
12956 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
12957 variables.
12958 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
12959 (sparc32nbsd_sigcontext_frame_this_id)
12960 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
12961 (sparc32nbsd_sigcontext_frame_unwind): New variable.
12962 (sparc32nbsd_sigtramp_frame_sniffer): New function.
12963 (sparcnbsd_get_longjmp_target_32,
12964 sparcnbsd_get_longjmp_target_64): Remove functions.
12965 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
12966 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
12967 sparcnbsd_init_elf): Remove.
12968 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
12969 (sparcnbsd_elf_init_abi): New functions.
12970 (_initialize_sparcnbsd_tdep): New prototype.
12971 (_initialize_sparnbsd_tdep): Update.
12972 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
12973 corelow.o. Add sparc64-nat.o and sparc-nat.o.
12974 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
12975 * config/sparc/linux.mh: Update comment.
12976 (XM_FILE, HOST_IPC): Remove variables.
12977 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
12978 sparc-linux-nat.o.
12979 * config/sparc/linux.mt: Update comment.
12980 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
12981 * config/sparc/nbsd.mt: Reformat.
12982 * config/sparc/nbsd64.mh: Update comment.
12983 (NATDEPFILES): Add sparc-nat.o.
12984 * config/sparc/nbsd64.mt: Update comment.
12985 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
12986 (TM_FILE): Set to tm-nbsd.h.
12987 * config/sparc/nbsdelf.mh: Update comment.
12988 (NATDEPFILES): Add sparc-nat.o.
12989 (XM_FILE): Delete.
12990 * config/sparc/nbsdaout.mh: Update comment.
12991 (NATDEPFILES): Add sparc-nat.o
12992 (XM_FILE): Delete.
12993 * config/sparc/nm-linux.h: Update copyright year. Don't include
12994 "config/nm-svr4.h" and "solib.h". Add protection against multiple
12995 inclusion.
12996 (KERNEL_U_SIZE): Remove define.
12997 (kernel_u_size): Remove prototype.
12998 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
12999 * config/sparc/nm-nbsd.h: Update copyright. Don't include
13000 "regcache.h".
13001 (CHILD_PREPARE_TO_STORE): Remove define.
13002 * config/sparc/nm-nbsdaout.h: Tweak some comments.
13003 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
13004 sparcnbsd-nat.c: Rewrite files.
13005 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
13006 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
13007 sparcnbsd-tdep.h: Remove files.
13008 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
13009 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
13010 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
13011 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
13012 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
13013 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
13014 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
13015 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
13016 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
13017 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
13018 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
13019 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
13020 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
13021 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
13022 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
13023 * config/sparc/linux64.mh, config/sparc/linux64.mt,
13024 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
13025 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
13026 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
13027
ee84457a
AC
130282004-01-02 Andrew Cagney <cagney@redhat.com>
13029
13030 From 2003-12-18 Kazuhiro Inaoka:
13031 * configure.host: Add m32r-linux target.
13032
0bc2134e
MC
130332004-01-02 Michael Chastain <mec.gnu@mindspring.com>
13034
13035 * top.c (print_gdb_version): Update year to 2004.
13036
89a72f9c
MM
130372004-01-02 Mark Mitchell <mark@codesourcery.com>
13038
13039 * MAINTAINERS: Add myself to the write-after-approval category.
13040
86b013ed
DJ
130412004-01-02 Daniel Jacobowitz <drow@mvista.com>
13042
13043 From Bernardo Innocenti <bernie@develer.com>:
13044 * configure.tgt: Add uClinux target.
13045
e42c9534
AC
130462004-01-02 Andrew Cagney <cagney@redhat.com>
13047
13048 * utils.c (do_my_cleanups): Make static, add forward declaration.
13049 * defs.h (do_my_cleanups): Delete declaration.
13050
162467d3
EZ
130512004-01-02 Eli Zaretskii <eliz@elta.co.il>
13052
13053 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
13054 bfd/ChangeLog-0203.
13055
78434e59
MK
130562004-01-02 Mark Kettenis <kettenis@gnu.org>
13057
13058 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
13059 in <machine/reg.h>.
13060 * configure, config.in: Regenerate.
13061
48efe704
AC
13062For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
13063tui/ChangeLog-1998-2003.
c906108c
SS
13064\f
13065Local Variables:
13066mode: change-log
13067left-margin: 8
13068fill-column: 74
13069version-control: never
13070End:
This page took 1.213302 seconds and 4 git commands to generate.