* i386gnu-nat.c: Include "gdb_string.h".
[binutils-gdb.git] / gdb / ChangeLog
1 2004-10-11 Mark Kettenis <kettenis@gnu.org>
2
3 * i386gnu-nat.c: Include "gdb_string.h".
4 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
5 registers when the floating-point state isn't initialized.
6 * Makefile.in (i386gnu-nat.o): Update dependencies.
7
8 2004-10-11 David Anderson <davea@sgi.com>
9
10 * regcache.c (regcache_raw_read): Comment was missing "to".
11 Extraneous ' removed.
12 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
13 comment now describes use.
14
15 2004-10-11 Orjan Friberg <orjanf@axis.com>
16
17 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
18 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
19 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
20 (cris_sigtramp_frame_sniffer): New functions.
21 (cris_gdbarch_init): Hook in signal trampoline unwinder.
22 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
23 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
24 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
25 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
26 command.
27 (cris_version_update): Remove, replace with ...
28 (set_cris_version): New function.
29 (struct gdbarch_tdep, cris_mode, cris_mode_update)
30 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
31 (_initialize_cris_tdep): Remove CRIS mode command.
32 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
33 cris-fpless-backtrace command.
34 (cris_scan_prologue): Fix prologue scanning limit.
35 (cris_register_type): Update to reflect actual registers.
36 (cris_register_bytes_ok) Remove.
37 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
38 Remove set_gdbarch_deprecated_register_size,
39 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
40
41 2004-10-10 Andrew Cagney <cagney@gnu.org>
42
43 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
44 comment.
45
46 2004-10-10 Joel Brobecker <brobecker@gnat.com>
47
48 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
49
50 2004-10-10 Joel Brobecker <brobecker@gnat.com>
51
52 * mips-tdep.c (mips16_scan_prologue): Renames
53 mips16_heuristic_proc_desc. Update comment.
54 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
55 (heuristic_proc_desc): Update calls to the 2 functions above.
56
57 2004-10-10 Joel Brobecker <brobecker@gnat.com>
58
59 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
60 Update comments. Also immediately return empty cache when the start
61 address of our function could not be found.
62 (mips_insn32_frame_cache): Likewise.
63
64 2004-10-10 Joel Brobecker <brobecker@gnat.com>
65
66 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
67 (mips_insn16_frame_cache): Pass frame cache in call to
68 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
69 Remove code that became redundant as a consequence.
70 (mips32_heuristic_proc_desc): No longer compute a fake
71 procedure descriptor. Compute the full frame cache instead.
72 Some minor comment reformatting.
73
74 2004-10-10 Jim Blandy <jimb@redhat.com>
75
76 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
77 reader, tracing bytecode stuff): Remove self.
78
79 2004-10-10 Mark Kettenis <kettenis@gnu.org>
80
81 * sparc64-linux-tdep.c: Update copyright year. Don't include
82 "solib-svr4.h".
83 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
84 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
85 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
86
87 * sparc-linux-tdep.c: Update copyright year.
88 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
89 to struct frame_info *. Use safe_frame_unwind_memory instead of
90 deprecated_read_memory_nobpt.
91 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
92 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
93 changed signature of sparc_linux_sigtramp_start.
94 (sparc32_linux_pc_in_sigtramp): Remove function.
95 (sparc32_linux_sigtramp_p): New function.
96 (sparc32_linux_sigtramp_frame_sniffer): Use
97 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
98
99 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
100 Remove function.
101 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
102
103 * ada-lang.c (lim_warning): Re-implement as a varargs function.
104 (decode_packed_array_type, value_subscript_packed)
105 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
106 argument in call to lim_warning.
107
108 * configure.in: Really disable the TUI if an enhanced curses
109 library isn't found.
110 * configure: Regenerate.
111
112 2004-10-09 Mark Kettenis <kettenis@gnu.org>
113
114 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
115 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
116 * config/i386/nm-nbsdaout.h: Remove file.
117 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
118 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
119 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
120 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
121 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
122 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
123 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
124 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
125 (ldd, ld_un, ld_2): Remove defines.
126 * config/i386/nm-obsd.h: Likewise.
127
128 2004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
129
130 * ada-lex.l: Remove useless rule whose right-context clause
131 causes unreferenced static function warning for yyrealloc.
132 (ada_flex_use): Remove the artificial reference to yyrealloc.
133
134 2004-10-08 Andrew Cagney <cagney@gnu.org>
135
136 * target.h (struct target_ops): Rename to_xfer_memory to
137 deprecated_xfer_memory.
138 * target.c: Update.
139 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
140 * wince.c: Update.
141 * win32-nat.c: Update.
142 * v850ice.c: Update.
143 * uw-thread.c: Update.
144 * thread-db.c: Update.
145 * sol-thread.c: Update.
146 * remote.c: Update.
147 * remote-vx.c: Update.
148 * remote-st.c: Update.
149 * remote-sim.c: Update.
150 * remote-sds.c: Update.
151 * remote-rdp.c: Update.
152 * remote-rdi.c: Update.
153 * remote-mips.c: Update.
154 * remote-m32r-sdi.c: Update.
155 * remote-e7000.c: Update.
156 * procfs.c: Update.
157 * ppc-bdm.c: Update.
158 * nto-procfs.c: Update.
159 * monitor.c: Update.
160 * linux-nat.c: Update.
161 * inftarg.c: Update.
162 * hpux-thread.c: Update.
163 * go32-nat.c: Update.
164 * gnu-nat.c: Update.
165 * exec.c: Update.
166 * corelow.c: Update.
167 * bsd-kvm.c: Update.
168 * aix-thread.c: Update.
169
170 2004-10-08 Andrew Cagney <cagney@gnu.org>
171
172 * target.c (debug_target): Move to near start of file.
173 (target_stopped_data_address_p): Re-org logic, add casts.
174
175 2004-10-02 Mark Kettenis <kettenis@gnu.org>
176
177 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
178 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
179 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
180 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
181 New defines.
182
183 2004-10-08 Jeff Johnston <jjohnstn@redhat.com>
184
185 * target.h (to_stopped_data_address): Change prototype to
186 take a CORE_ADDR pointer and return an int.
187 * target.c (update_current_target): Change to_stopped_data_address
188 to match new prototype.
189 (debug_to_stopped_data_address): Change appropriately.
190 * breakpoint.c (bpstat_stop_status): Change call to
191 target_stopped_data_address to use new prototype.
192 * frv-tdep.c (frv_have_stopped_data_address): New function.
193 (frv_stopped_data_address): Change to new prototype and
194 functionality.
195 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
196 prototype and functionality.
197 (ia64_stopped_by_watchpoint): New function.
198 * i386-nat.c (i386_stopped_data_address): Change to new
199 prototype and functionality.
200 (i386_stopped_by_watchpoint): New function.
201 * remote.c (remote_stopped_data_address): Change to new prototype
202 and functionality.
203 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
204 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
205 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
206 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
207 new i386_stopped_by_watchpoint function.
208 (i386_stopped_by_watchpoint): New prototype.
209 (i386_stoppped_data_address): Change to new prototype.
210 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
211 new ia64_stopped_by_watchpoint function.
212 (ia64_stopped_by_watchpoint): New prototype.
213 (ia64_stopped_data_address): Ditto.
214
215 2004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
216
217 * ada-typeprint.c (ada_print_type): Use int_string for printing
218 modulus of modular type.
219 * ada-lang.h (ada_modulus): Change return type to unsigned.
220 * ada-lang.c (ada_language_arch_info): Correct type of
221 string_char_type.
222 (ada_modulus): Return unsigned result.
223 (ada_lookup_symbol): Remove user disambiguation and modify comment
224 accordingly.
225
226 2004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
227
228 Committed by Paul Hilfinger.
229 * ada-lang.c (decode_packed_array): On big-endian targets,
230 left-justify the value if it comes with a modular type.
231
232 2004-10-08 Joel Brobecker <brobecker@gnat.com>
233
234 Committed by Paul Hilfinger.
235 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
236 (is_name_suffix): Add support for "___JM" suffixes.
237 (ada_check_typedef): Renames ada_completed_type.
238 Update all users of CHECK_TYPEDEF, check_typedef, and
239 ada_complete_type to call ada_check_typedef.
240 * ada-typeprint.c: Likewise.
241 * ada-valprint.c: Likewise.
242
243 2004-10-08 Corinna Vinschen <vinschen@redhat.com>
244
245 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
246
247 2004-10-08 Nick Roberts <nickrob@snap.net.nz>
248
249 * MAINTAINERS: Update e-mail address.
250
251 2004-10-07 Daniel Jacobowitz <dan@debian.org>
252
253 From Maciej W. Rozycki <macro@mips.com>:
254 * mips-tdep.c (mips32_next_pc): Check the register's contents,
255 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
256
257 >>>>>>> 1.6475
258 2004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
259
260 * m32r-tdep.c (decode_prologue): Support functions written
261 in assembler language. Recognize trap instructions as the
262 end of prologue.
263 (m32r_frame_unwind_cache): Ditto.
264 (m32r_skip_prologue): Extend search limit. Quit analyzing
265 prologue if pc's location is not readable.
266
267 2004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
268
269 * Makefile.in (.l.c): Do conversions of names of alloc and free
270 functions that are done for .y.c files, plus special one
271 for yy_flex_realloc. Also, correct missing-file tests here.
272 * ada-lex.l (malloc, free): Remove macros.
273 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
274 xrealloc.
275 (ada_flex_use): Dummy definition to remove warnings about unused
276 functions.
277 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
278 to suppress warning.
279
280 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
281
282 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
283 RETURN_VALUE.
284 (sh_return_value_fpu): Ditto for CPUs with FPU.
285 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
286 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
287 Install sh_return_value_nofpu resp. sh_return_value_fpu as
288 RETURN_VALUE functions.
289
290 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
291
292 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
293 (sh_pseudo_register_write): Ditto.
294
295 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
296
297 * sh-tdep.c (IS_MACL_STS): New define.
298 (IS_MOVI20): Ditto.
299 (IS_MACL_LDS): Ditto.
300 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
301 instructions in prologue.
302 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
303 instructions in epilogue.
304
305 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
306
307 * sh-tdep.c (SH_NUM_REGS): Define as 67.
308 (sh_sh_register_name): Add eight empty register names.
309 (sh_sh3_register_name): Ditto.
310 (sh_sh3e_register_name): Ditto.
311 (sh_sh2e_register_name): Ditto.
312 (sh_sh2a_register_name): New function, defining SH2A register set.
313 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
314 in nofpu case.
315 (sh_sh_dsp_register_name): Add eight empty register names.
316 (sh_sh3_dsp_register_name): Ditto.
317 (sh_sh4_register_name): Ditto.
318 (sh_sh4_nofpu_register_name): Ditto.
319 (sh_sh4al_dsp_register_name): Ditto.
320 (sh2a_show_regs): New function.
321 (sh2a_nofpu_show_regs): New function.
322 (sh_sh2a_register_type): New function.
323 (do_bank_register_info): New function.
324 (sh_print_pseudo_register): Call do_bank_register_info.
325 Call sh_print_pseudo_register for valid "bank" register.
326 (sh_sh2a_register_sim_regno): New function.
327 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
328 Increment pseudo register count by one for all sh variants with
329 pseudo registers to accomodate pseudo bank register.
330 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
331 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
332 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
333 Increment pseudo register numbers.
334
335 2004-10-06 Corinna Vinschen <vinschen@redhat.com>
336
337 * dwarf2read.c (read_subroutine_type): Call make_function_type
338 instead of lookup_function_type.
339
340 2004-10-05 Jim Blandy <jimb@redhat.com>
341
342 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
343 (Previous change missed some uses.)
344
345 2004-10-05 Andrew Cagney <cagney@gnu.org>
346
347 * target.h (deprecated_child_ops): Rename child_ops.
348 * wince.c: Update copyright. Rename child_ops.
349 * win32-nat.c: Rename child_ops.
350 * target.c: Rename child_ops.
351 * rs6000-nat.c: Rename child_ops.
352 * linux-nat.c: Rename child_ops.
353 * infttrace.c: Rename child_ops.
354 * inftarg.c: Rename child_ops.
355 * infptrace.c: Rename child_ops.
356 * hppah-nat.c: Update copyright. Rename child_ops.
357 * hpux-thread.c: Update copyright. Rename child_ops.
358
359 2004-10-05 Daniel Jacobowitz <dan@debian.org>
360
361 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
362
363 2004-10-05 Andrew Cagney <cagney@gnu.org>
364
365 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
366
367 2004-10-05 Daniel Jacobowitz <dan@debian.org>
368
369 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
370 (die_ref_table): Remove.
371 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
372 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
373 the usage of this type.
374 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
375 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
376 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
377 (dwarf2_create_include_psymtab): Update comment.
378 (find_partial_die): Remove third argument. Remove unreachable call
379 to error ().
380 (dwarf2_find_containing_comp_unit): Update comments. Change one
381 assertion to an error. Remove an unreachable error.
382 (dwarf2_find_comp_unit): Update comments.
383 (type_at_offset): Remove dead code.
384 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
385 (store_in_ref_table): Add CU argument.
386 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
387 inter-compilation-unit references.
388 (load_full_comp_unit, process_full_comp_unit): New functions, based
389 on psymtab_to_symtab_1.
390 (psymtab_to_symtab_1): Use them.
391 (dwarf2_add_dependence): New function.
392 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
393 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
394 (partial_die_parent_scope, guess_structure_name): Update for changes
395 to find_partial_die.
396 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
397 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
398 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
399 (read_die_and_children): Update call to store_in_ref_table.
400 (do_free_die_list_cleanup): Remove.
401 (fixup_partial_die): Update for changes to find_partial_die.
402 (read_full_die): Handle queueing absolute references.
403 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
404 (dwarf2_attr, die_specification, die_type)
405 (die_containing_type, dwarf2_extension): Update calls to
406 follow_die_ref.
407 (dump_die): Update DW_FORM_ref* handling.
408 (dwarf2_get_ref_die_offset): Likewise.
409 (free_one_comp_unit): Release the dies list.
410 (dwarf2_mark_helper): New function.
411 (dwarf2_mark): Use it.
412
413 2004-10-05 Mark Kettenis <kettenis@jive.nl>
414
415 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
416 when writing to memory.
417
418 2004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
419
420 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
421 (m32r_extract_struct_value_address): Delete function.
422 (m32r_return_value): New function.
423 (m32r_gdbarch_init): Instead of store_return_value,
424 extract_return_value, deprecated_extract_struct_value_address
425 and deprecated_use_struct_convention, set return_value.
426
427 2004-10-03 Daniel Jacobowitz <dan@debian.org>
428
429 * dwarf2read.c (read_subrange_type): Add comment for variable
430 sized arrays.
431
432 2004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
433
434 * Makefile.in (.l.c): Modify rule for compatibility with recent
435 versions of flex, and remove most command-line options.
436 * ada-lex.l: Add %options line in place of -I -i and -s command-line
437 options.
438
439 2004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
440
441 Turn on initial Ada support (mainly expression evaluation).
442
443 * Makefile.in (SFILES): Remove ada-tasks.c.
444 (HFILES_NO_SRCDIR): Add ada-lang.h.
445 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
446 (YYOBJ): Add ada-exp.o.
447 (rule .l.c): Generalize to not mention ada.
448 * symtab.c: Include ada-lang.h.
449 (symbol_natural_name, symbol_demangled_name)
450 (symbol_search_name): Add Ada case.
451
452 2004-10-01 Andrew Cagney <cagney@gnu.org>
453
454 * Makefile.in (COMMON_OBS): Add inf-child.o.
455 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
456 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
457 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
458 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
459 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
460 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
461 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
462 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
463 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
464 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
465 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
466 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
467 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
468
469 * target.c (xfer_using_stratum): Change return type to LONGEST.
470 On each iteration offset, readbuf and writebuf.
471 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
472 partial_length, and read/modify/write predicate, update comments.
473 Pass buffer.word to ptrace write.
474
475 2004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
476
477 * symfile.c (init_filename_language_table): Add extensions for
478 Ada.
479 * defs.h (enum language): Add language_ada.
480 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
481 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
482 (add_symbols_from_enclosing_procs): Make a no-op for now.
483 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
484 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
485 (find_line_in_linetable, find_next_line_in_linetable)
486 (read_all_symtabs, is_plausible_func_for_line)
487 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
488 (is_runtime_sym_defined, check_size): Remove declaration.
489 (function_name_from_pc, ada_translate_error_message)
490 (ada_lookup_minimal_symbol): Remove definition.
491 (ada_add_block_symbols): Remove useless label.
492 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
493 useless declaration.
494 (ada_is_exception_sym): Likewise.
495
496 2004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
497
498 Add m32r-linux support.
499 * configure.tgt: Add m32r*-*-linux*.
500 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
501 and m32r-linux-tdep.c.
502 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
503 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
504 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
505 m32r-linux-tdep.c.
506 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
507 config/m32r/linux.mh, config/m32r/linux.mt,
508 config/m32r/nm-linux.h: New files.
509
510 2004-09-30 Joel Brobecker <brobecker@gnat.com>
511
512 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
513 (mips32_fetch_instruction): Remove, unused.
514
515 2004-09-30 Joel Brobecker <brobecker@gnat.com>
516
517 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
518 conditions that will always be true.
519
520 2004-09-30 Mark Kettenis <kettenis@gnu.org>
521
522 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
523 (vaxbsd_fetch_inferior_registers): Rename from
524 fetch_inferior_registers. Make static.
525 (vaxbsd_store_inferior_registers): Rename from
526 store_inferior_registers. Make static.
527 (_initialize_vaxbsd_nat): Construct and add target vector.
528 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
529 inftarg.o. Add inf-child.o and inf-ptrace.o.
530 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
531 inftarg.o. Add inf-child.o and inf-ptrace.o.
532 (NAT_FILE): Remove.
533 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
534 inftarg.o. Add inf-child.o and inf-ptrace.o.
535 (NAT_FILE): Remove.
536 * Makefile.in (vaxbsd-nat.o): Update dependencies.
537
538 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
539 (m88kbsd_fetch_inferior_registers): Rename from
540 fetch_inferior_registers. Make static.
541 (m88kbsd_store_inferior_registers): Rename from
542 store_inferior_registers. Make static.
543 (_initialize_m88kbsd_nat): New prototype and function.
544 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
545 inftarg.o. Add inf-child.o and inf-ptrace.o.
546 (NAT_FILE): Remove.
547 * Makefile.in (m88kbsd-nat.o): Update dependencies.
548
549 2004-09-30 Andrew Cagney <cagney@gnu.org>
550
551 * target.c (target_xfer_partial): New function.
552 (target_read_memory_partial, target_write_memory_partial)
553 (default_xfer_partial, target_read_partial, target_write_partial)
554 (xfer_using_stratum): Use.
555 (debug_to_xfer_partial): Delete function.
556 (setup_target_debug): Do not override to_xfer_partial.
557
558 2004-09-30 Mark Kettenis <kettenis@chello.nl>
559
560 * fork-child.c: Update copyright year. Fix coding style.
561
562 2004-09-29 Mark Kettenis <kettenis@gnu.org>
563
564 * defs.h (msavestring, mstrsave): Remove prototypes.
565 * utils.c (msavestring, mstrsave): Remove functions.
566 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
567 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
568 of mstrsave.
569 * source.c (find_and_open_source): Use xstrdup instead of
570 mstrsave.
571
572 2004-09-30 Andrew Cagney <cagney@gnu.org>
573
574 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
575 (inf_ptrace_xfer_memory): Delete.
576 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
577 (target_read_memory, target_write_memory): Use xfer_using_stratum
578 when target_xfer_partial_p.
579 (debug_target): Move to start of file.
580 (target_read_memory_partial, target_write_memory_partial): Use
581 to_xfer_partial when target_xfer_partial_p.
582
583 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
584 inf_ptrace_xfer_memory with equivalent code.
585 * inftarg.c (child_xfer_partial): When performing a write, pass
586 writebuf to child_xfer_memory.
587
588 * target.c (target_read_string): Use target_read_memory instead of
589 target_xfer_memory.
590
591 2004-09-29 Andrew Cagney <cagney@gnu.org>
592
593 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
594 the address of status.
595
596 * infptrace.c (ptrace_wait): Mention problem with HPUX.
597 (kill_inferior): Inline ptrace_wait call.
598 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
599 * inftarg.c (child_wait): Inline ptrace_wait call.
600
601 * target.h (struct target_ops): Delete field to_post_wait.
602 (target_post_wait): Delete macro.
603 (child_post_wait): Delete declaration.
604 * target.c (update_current_target, update_current_target)
605 (debug_to_post_wait, setup_target_debug): Delete functions and
606 references.
607 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
608 * inftarg.c (child_post_wait): Delete.
609 (init_child_ops): Do not set to_post_wait.
610 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
611 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
612 * inf-child.c (inf_child_post_wait): Delete.
613 (inf_child_target): Do not set to_post_wait.
614 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
615 (inf_ptrace_target): Do not set to_post_wait.
616
617 * wince.c (child_ops): Delete.
618 * win32-nat.c (child_ops): Delete.
619
620 * inftarg.c (inftarg_set_find_memory_regions)
621 (inftarg_set_make_corefile_notes): Delete functions.
622 (_initialize_linux_nat): Inline calls.
623
624 * target.h (child_ops): Declare.
625 * inftarg.c (child_ops): Move from here ...
626 * target.c (child_ops): ... to here.
627 * wince.c (child_ops): Delete extern declaration.
628 * win32-nat.c (child_ops): Delete extern declaration.
629 * linux-nat.c (child_ops): Delete extern declaration.
630 * hpux-thread.c (child_ops): Delete extern declaration.
631
632 2004-09-28 Mark Kettenis <kettenis@gnu.org>
633
634 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
635
636 2004-09-28 Mark Kettenis <kettenis@gnu.org>
637
638 * configure.in: Only set host_makefile_frag when building a native
639 debugger.
640 * configure: Regenerate.
641
642 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
643 for OpenBSD ELF.
644
645 2004-09-28 Andrew Cagney <cagney@gnu.org>
646
647 Problem identified by Paul Hilfinger.
648 * Makefile.in (ada_lex_c): Define.
649 (ada-lex.o): Delete rule.
650
651 * linux-proc.c: Delete file.
652 * Makefile.in: Update.
653 * config/sparc/linux64.mh (NATDEPFILES):
654 * config/sparc/linux.mh (NATDEPFILES): Update.
655 * config/s390/s390.mh (NATDEPFILES): Update.
656 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
657 * config/powerpc/linux.mh (NATDEPFILES): Update.
658 * config/pa/linux.mh (NATDEPFILES): Update.
659 * config/mips/linux.mh (NATDEPFILES): Update.
660 * config/m68k/linux.mh (NATDEPFILES): Update.
661 * config/ia64/linux.mh (NATDEPFILES): Update.
662 * config/i386/linux64.mh (NATDEPFILES): Update.
663 * config/i386/linux.mh (NATDEPFILES): Update.
664 * config/arm/linux.mh (NATDEPFILES): Update.
665 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
666 * linux-nat.c: Update copyright. Include <sys/param.h>,
667 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
668 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
669 (O_LARGEFILE): Possibly define.
670 (_initialize_linux_nat, linux_proc_pending_signals)
671 (add_line_to_sigset, linux_proc_xfer_memory)
672 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
673 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
674 (struct linux_corefile_thread_data)
675 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
676 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
677
678 2004-09-16 Andrew Cagney <cagney@gnu.org>
679
680 * lin-lwp.c: Delete file.
681 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
682 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
683 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
684 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
685 (linux_nat_attach, detach_callback, linux_nat_detach)
686 (resume_callback, resume_clear_callback, linux_nat_resume)
687 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
688 (stop_wait_callback, linux_nat_has_pending, flush_callback)
689 (status_callback, running_callback, count_events_callback)
690 (select_singlestep_lwp_callback, select_event_lwp_callback)
691 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
692 (child_wait, stop_and_resume_callback, linux_nat_wait)
693 (kill_callback, kill_wait_callback, linux_nat_kill)
694 (linux_nat_create_inferior, linux_nat_mourn_inferior)
695 (linux_nat_xfer_memory, linux_nat_thread_alive)
696 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
697 (_initialize_linux_nat): New functions.
698 * Makefile.in: Update all dependencies.
699 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
700 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
701 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
702 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
703 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
704 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
705 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
706 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
707 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
708 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
709 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
710 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
711 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
712
713 2004-09-27 Mark Kettenis <kettenis@gnu.org>
714
715 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
716 config/i386/obsd64.mh (NAT_FILE): Remove variable.
717
718 * configure.in: Don't comment out NATDEPFILES in the generated
719 Makefile if NAT_FILE is unset.
720 * configure: Regenerate.
721
722 2004-09-27 Andrew Cagney <cagney@gnu.org>
723
724 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
725 (insert_step_resume_breakpoint): Delete.
726 (insert_step_resume_breakpoint_at_frame): New function.
727 (insert_step_resume_breakpoint_at_sal): New function.
728 (handle_inferior_event, step_into_function)
729 (insert_step_resume_breakpoint): Simplify by using same.
730
731 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
732
733 2004-09-26 Mark Kettenis <kettenis@gnu.org>
734
735 * fbsd-proc.c: Remove file.
736 * Makefile.in (fbsd-proc.o): Remove dependency.
737
738 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
739 code together.
740
741 * config/i386/nm-fbsd64.h: Remove file.
742 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
743
744 2004-09-26 Mark Kettenis <kettenis@gnu.org>
745
746 * amd64-nat.h: Update copyright year.
747 (amd64bsd_target): New prototype.
748 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
749 (amd64bsd_target): New function.
750 (amd64bsd_fetch_inferior_registers): Rename from
751 fetch_inferior_registers. Make static.
752 (amd64bsd_store_inferior_registers): Rename from
753 store_inferior_registers. Make static.
754 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
755 (_initialize_amd64fbsd_nat): Construct and add target vector.
756 * amd64nbsd-nat.o: Include "target.h".
757 (_initialize_amd64nbsd_nat): Construct and add target vector.
758 * amd64obsd-nat.c: Include "target.h".
759 (_initialize_amd64obsd_nat): Construct and add target vector.
760 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
761 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
762 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
763 fbsd-nat.o.
764 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
765 Remove infptrace.o and inftarg.o. Add inf-child.o and
766 inf-ptrace.o.
767 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
768 (amd64obsd-nat.o): Update dependencies.
769
770 2004-09-25 Mark Kettenis <kettenis@gnu.org>
771
772 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
773 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
774 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
775 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
776 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
777
778 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
779 Inline attach call.
780 (inf_ptrace_detach): Inline detach call.
781
782 * configure.in: Check for waddstr instead of mvwaddstr when
783 searching for curses library. Check for wborder.
784 * configure, config.in: Regenerate.
785 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
786 available.
787
788 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
789
790 2004-09-24 Robert Picco <Robert.Picco@hp.com>
791
792 Committed by Andrew Cagney.
793 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
794 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
795 configuration.
796 (fetch_register_using_p): Implement 'p' packet. Based on code by
797 Fernando Nasser.
798 (remote_fetch_registers): Call fetch_register_using_p.
799 (init_all_packet_configs, show_remote_cmd)
800 (_initialize_remote): Add p-packet.
801
802 2004-09-24 Mark Kettenis <kettenis@gnu.org>
803
804 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
805 instead of call_ptrace. Call wait directly instead of
806 ptrace_wait.
807 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
808 (inf_ptrace_wait): Inline ptrace_wait call.
809
810 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
811
812 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
813 rolled back instead.
814
815 2004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
816
817 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
818 the new argument order.
819
820 2004-09-23 Corinna Vinschen <vinschen@redhat.com>
821
822 * MAINTAINERS: Remove "broken" from XStormy16 entry.
823 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
824 (struct gdbarch_tdep): Remove.
825 (struct xstormy16_frame_cache): New frame cache structure.
826 (xstormy16_register_byte, xstormy16_register_raw_size)
827 (xstormy16_reg_virtual_type, xstormy16_register_type)
828 (xstormy16_push_arguments, xstormy16_push_return_address)
829 (xstormy16_pop_frame, xstormy16_store_struct_return)
830 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
831 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
832 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
833 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
834 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
835 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
836 (xstormy16_use_struct_convention): Drop gcc_p parameter.
837 (xstormy16_extract_return_value, xstormy16_store_return_value):
838 Regcachify. Drop useless struct convention handling.
839 (xstormy16_register_type, xstormy16_return_value)
840 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
841 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
842 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
843 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
844 (xstormy16_unwind_sp, xstormy16_unwind_pc)
845 (xstormy16_unwind_dummy_id) : New functions.
846 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
847 of xstormy16_scan_prologue.
848 (xstormy16_frame_unwind): New frame_unwind structure.
849 (xstormy16_frame_base): New frame_base structure.
850 (xstormy16_gdbarch_init): Accomodate all of the above changes.
851 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
852
853 2004-09-22 Mark Kettenis <kettenis@gnu.org>
854
855 * language.c (language_gdbarch_post_init): Fix off-by one error.
856
857 2004-09-21 Daniel Jacobowitz <dan@debian.org>
858
859 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
860 (struct dwarf2_offset_and_type): New.
861 (set_die_type, reset_die_and_siblings_types, get_die_type)
862 (offset_and_type_hash, offset_and_type_eq): New functions.
863 (read_structure_type, read_enumeration_type, read_array_type)
864 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
865 (read_tag_reference_type, read_tag_const_type)
866 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
867 (read_typedef, read_base_type, read_subrange_type): Use
868 set_die_type.
869
870 2004-09-20 Daniel Jacobowitz <dan@debian.org>
871
872 * Makefile.in (dwarf2read.o): Update dependencies.
873 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
874 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
875 and read_in_chain.
876 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
877 mark, and has_form_ref_addr.
878 (struct dwarf2_per_cu_data): New.
879 (dwarf2_max_cache_age): New.
880 (dwarf2_build_psymtabs_hard): Free cached compilation units
881 after loading. Create and manage the list of compilation units.
882 Remove unnecessary NULL initialization. Fix indentation.
883 (psymtab_to_symtab_1): Initialize all of CU.
884 (dwarf2_read_abbrevs): Set has_form_ref_addr.
885 (find_partial_die): Use dwarf2_find_containing_comp_unit
886 and load_comp_unit.
887 (free_stack_comp_unit): Update comments. Clear the per-cu
888 pointer. Handle aging.
889 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
890 (age_cached_comp_units, free_one_cached_comp_unit)
891 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
892 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
893 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
894 (show_dwarf2_cmd): New.
895 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
896 and "maint show dwarf2 max-cache-age".
897 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
898 externs.
899 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
900 global.
901
902 2004-09-20 Jeff Johnston <jjohnstn@redhat.com>
903
904 * dwarf2read.c (typename_concat): Change prototype to accept obstack
905 and dwarf2_cu struct pointer as arguments. Change function to use
906 obstack if provided and use dwarf2_cu to determine language-specific
907 separator.
908 (partial_die_parent_scope): Change comment to include java. Use
909 new version of typename_concat instead of obconcat.
910 (partial_die_full_name): Use typename_concat.
911 (read_namespace): Ditto.
912 (read_enumeration_type): Use typename_concat instead of obconcat.
913 (new_symbol): Ditto.
914 (add_partial_symbol): Enhance tests for C++ to also test for Java.
915 (guess_structure_name): Ditto.
916 (read_subroutine_type): Ditto.
917 (read_structure_type): Ditto.
918 (is_vtable_name): Add Java support.
919 (determine_class_name): Switch to new typename_concat call.
920 (determine_prefix): Switch to new typename_concat call.
921 * jv-exp.y (FuncStart): New pattern.
922 (MethodInvocation): Add support for simple function calls. Change
923 warning message for other forms of inferior call currently not
924 supported.
925 * valarith.c (value_subscript): Treat an array with upper-bound
926 of -1 as unknown size.
927
928 2004-09-20 Daniel Jacobowitz <dan@debian.org>
929
930 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
931 (lookup_partial_symtab): Use symtab_to_fullname.
932
933 2004-09-19 Jim Blandy <jimb@redhat.com>
934
935 * minsyms.c (lookup_minimal_symbol): Doc fix.
936
937 2004-09-20 Andrew Cagney <cagney@gnu.org>
938
939 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
940 CHILD_RESUME.
941 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
942 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
943 KILL_INFERIOR.
944 * infptrace.c: Update.
945
946 2004-09-19 Daniel Jacobowitz <dan@debian.org>
947
948 * symtab.c (output_source_filename): Mark first argument as const.
949 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
950 for "info sources" output.
951
952 2004-09-20 Mark Kettenis <kettenis@gnu.org>
953
954 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
955 <machine/vmparam.h>.
956 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
957 (register_u_addr): Remove prototype.
958
959 2004-09-19 Mark Kettenis <kettenis@gnu.org>
960
961 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
962 (i386bsd_fetch_inferior_registers): Rename from
963 fetch_inferior_registers. Make static.
964 (i386bsd_store_inferior_registers): Rename from
965 store_inferior_registers. Make static.
966 (i386bsd_target): New function.
967 * i386bsd-nat.h: New file.
968 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
969 "i386bsd-nat.h".
970 (i386fbsd_resume): Rename from child_resume. Make static.
971 (_initialize_i386fbsd_nat): Construct and add target vector.
972 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
973 (_initialize_i386nbsd_nat): Construct and add target vector.
974 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
975 Remove defines.
976 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
977 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
978 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
979 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
980 (LOADLIBES): New variable.
981 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
982 inf-ptrace.o. Remove inftarg.o.
983 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
984 inf-ptrace.o. Remove inftarg.o.
985 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
986 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
987 (LOADLIBES): New variable.
988 * Makefile.in (i386bsd_nat_h): New variable.
989 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
990 dependencies.
991
992 * sparc64nbsd-tdep.c: Include "objfiles.h".
993 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
994 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
995 svr4_lp64_fetch_link_map_offsets.
996 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
997 "nbsd-tdep.h".
998 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
999 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
1000 svr4_lp64_fetch_link_map_offsets.
1001 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
1002 dependencies.
1003
1004 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
1005 * fbsd-nat.h: New file.
1006 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
1007 (fbsd_nat_h): New variable.
1008 (fbsd-nat.o): New dependency.
1009
1010 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
1011 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
1012
1013 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
1014 comment.
1015
1016 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
1017
1018 * ada-exp.y (type_int): New function to add layer of abstraction
1019 around references to expression types.
1020 (type_long): Ditto.
1021 (type_long_long): Ditto.
1022 (type_float): Ditto.
1023 (type_double): Ditto.
1024 (type_long_double): Ditto.
1025 (type_char): Ditto.
1026 (type_system_address): Ditto.
1027 (simple_exp): Use type_* functions in place of builtin_*
1028 variables.
1029 (exp): Ditto.
1030 (write_var_from_name): Ditto.
1031 (write_object_renaming): Ditto.
1032 * ada-lang.c (ada_create_fundamental_type): Remove redundant
1033 declaration.
1034 (build_ada_types): Remove, replacing with...
1035 (ada_language_arch_info): New function to initialize primitive
1036 type vector in language_arch_info.
1037 (ada_array_length): Remove use of builtin_type_ada_int.
1038 (value_pos_atr): Ditto.
1039 (ada_evaluate_subexp): Ditto.
1040 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
1041 builtin_type_ada_long_long, builtin_type_ada_char,
1042 builtin_type_ada_float, builtin_type_ada_double,
1043 builtin_type_ada_long_double, builtin_type_ada_natural,
1044 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
1045 (ada_builtin_types): Remove.
1046 (ada_language_defn): Remove entries for la_builtin_type_vector and
1047 string_char_type and use ada_language_arch_info.
1048 (_initialize_ada_language): Do type-vector initialization along
1049 the lines of c-lang.c.
1050 (ada_create_fundamental_type): Break up line.
1051 (ada_dump_symtab): Remove unused function.
1052 (enum ada_primitive_types): Define.
1053 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
1054 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
1055 builtin_type_ada_float, builtin_type_ada_double,
1056 builtin_type_ada_long_double, builtin_type_ada_natural,
1057 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
1058 * ada-lex.l: Use type_* functions in place of builtin_* variables.
1059 (processInt): Ditto.
1060 (processReal): Ditto.
1061 (name_lookup): Ditto.
1062 * ada-typeprint.c (print_range): Use builtin_type_int, not
1063 builtin_type_ada_int.
1064
1065 2004-09-18 Mark Kettenis <kettenis@gnu.org>
1066
1067 * i386-tdep.c (i386_register_name): Rename regno to regnum.
1068
1069 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
1070 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
1071 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
1072 * configure.in: Improve checks for curses library by checking for
1073 mvwaddstr instead of initscr. Drop HP curses in favour of
1074 standard curses on HP-UX.
1075 * configure: Regenerated.
1076
1077 2004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
1078
1079 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
1080 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
1081 Minor formatting changes.
1082 (empty_array): Slight rewrite for formatting.
1083 (emit_char,parse,ada_language_defn,build_ada_types,
1084 ada_is_exception_sym, _initialize_ada_language): Move
1085 definitions around.
1086 (ada_dump_symtab): Remove unused definition.
1087 (ada_maybe_exception_partial_symbol): Remove unused definition.
1088
1089 2004-09-16 Andrew Cagney <cagney@gnu.org>
1090
1091 * inf-child.c: Include "gdb_string.h".
1092 (inf_child_core_file_to_sym_file): Delete.
1093 (inf_child_target): Set to_fetch_registers and to_store_registers.
1094 * inf-ptrace.c: Include "gdb_string.h".
1095 * Makefile.in: Update all dependencies.
1096
1097 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
1098 problem.
1099
1100 2004-09-14 Joel Brobecker <brobecker@gnat.com>
1101
1102 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
1103 call to heuristic_proc_desc. Remove code that became redundant
1104 as a consequence.
1105 (read_next_frame_reg): Remove special case for SP_REGNUM.
1106 (set_reg_offset): Fix small typo.
1107 (reset_saved_regs): New procedure.
1108 (mips32_heuristic_proc_desc): No longer compute a fake
1109 procedure descriptor. Compute the full frame cache instead.
1110 Some minor comment reformatting.
1111
1112 2004-09-14 Andrew Cagney <cagney@gnu.org>
1113
1114 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
1115 maintainer.
1116
1117 * thread-db.c (thread_db_new_objfile): Assume that there is a
1118 child process.
1119
1120 2004-09-13 Jim Blandy <jimb@redhat.com>
1121
1122 * valops.c (value_assign): Move 'buffer' to the enclosing block,
1123 so that its storage isn't referenced after its lifetime ends.
1124
1125 * valops.c (value_assign): 'use_buffer' is initialized to zero,
1126 and never assigned to. Delete it, and the 'if (use_buffer)'
1127 clauses. Delete 'raw_buffer', since it is now unused.
1128
1129 2004-09-13 Andrew Cagney <cagney@gnu.org>
1130
1131 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
1132 * configure: Re-generate.
1133 * nlm/Makefile.in (TAGS): Update.
1134 * Makefile.in (TAGS): Update.
1135 * config/vax/nbsd.mt (TM_FILE): Update.
1136 * config/sparc/vxworks.mt (TM_FILE): Update.
1137 * config/sparc/sol2.mt (TM_FILE): Update.
1138 * config/sparc/sol2-64.mt (TM_FILE): Update.
1139 * config/sparc/obsd64.mt (TM_FILE): Update.
1140 * config/sparc/obsd.mt (TM_FILE): Update.
1141 * config/sparc/nbsd64.mt (TM_FILE): Update.
1142 * config/sparc/nbsd.mt (TM_FILE): Update.
1143 * config/sparc/linux64.mt (TM_FILE): Update.
1144 * config/sparc/linux.mt (TM_FILE): Update.
1145 * config/sparc/fbsd.mt (TM_FILE): Update.
1146 * config/sh/wince.mt (TM_FILE): Update.
1147 * config/sh/nbsd.mt (TM_FILE): Update.
1148 * config/sh/linux.mt (TM_FILE): Update.
1149 * config/sh/embed.mt (TM_FILE): Update.
1150 * config/s390/s390.mt (TM_FILE): Update.
1151 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
1152 * config/rs6000/rs6000.mt (TM_FILE): Update.
1153 * config/rs6000/aix4.mt (TM_FILE): Update.
1154 * config/powerpc/vxworks.mt (TM_FILE): Update.
1155 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
1156 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
1157 * config/powerpc/obsd.mt (TM_FILE): Update.
1158 * config/powerpc/nbsd.mt (TM_FILE): Update.
1159 * config/powerpc/linux.mt (TM_FILE): Update.
1160 * config/powerpc/aix.mt (TM_FILE): Update.
1161 * config/pa/obsd.mt (TM_FILE): Update.
1162 * config/pa/linux.mt (TM_FILE): Update.
1163 * config/pa/hppahpux.mt (TM_FILE): Update.
1164 * config/pa/hppa64.mt (TM_FILE): Update.
1165 * config/pa/hppa.mt (TM_FILE): Update.
1166 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
1167 * config/mips/wince.mt (TM_FILE): Update.
1168 * config/mips/vxmips.mt (TM_FILE): Update.
1169 * config/mips/nbsd.mt (TM_FILE): Update.
1170 * config/mips/linux.mt (TM_FILE): Update.
1171 * config/mips/irix6.mt (TM_FILE): Update.
1172 * config/mips/irix5.mt (TM_FILE): Update.
1173 * config/mips/embed.mt (TM_FILE): Update.
1174 * config/m68k/vxworks68.mt (TM_FILE): Update.
1175 * config/m68k/st2000.mt (TM_FILE): Update.
1176 * config/m68k/os68k.mt (TM_FILE): Update.
1177 * config/m68k/obsd.mt (TM_FILE): Update.
1178 * config/m68k/nbsd.mt (TM_FILE): Update.
1179 * config/m68k/monitor.mt (TM_FILE): Update.
1180 * config/m68k/linux.mt (TM_FILE): Update.
1181 * config/m68k/cisco.mt (TM_FILE): Update.
1182 * config/ia64/linux.mt (TM_FILE): Update.
1183 * config/ia64/aix.mt (TM_FILE): Update.
1184 * config/ia64/ia64.mt (TM_FILE): Update.
1185 * config/i386/vxworks.mt (TM_FILE): Update.
1186 * config/i386/obsd64.mt (TM_FILE): Update.
1187 * config/i386/obsd.mt (TM_FILE): Update.
1188 * config/i386/nto.mt (TM_FILE): Update.
1189 * config/i386/nbsd64.mt (TM_FILE): Update.
1190 * config/i386/nbsd.mt (TM_FILE): Update.
1191 * config/i386/linux64.mt (TM_FILE): Update.
1192 * config/i386/linux.mt (TM_FILE): Update.
1193 * config/i386/i386sol2.mt (TM_FILE): Update.
1194 * config/i386/i386lynx.mt (TM_FILE): Update.
1195 * config/i386/fbsd64.mt (TM_FILE): Update.
1196 * config/i386/fbsd.mt (TM_FILE): Update.
1197 * config/i386/cygwin.mt (TM_FILE): Update.
1198 * config/h8300/h8300.mt (TM_FILE): Update.
1199 * config/frv/frv.mt (TM_FILE): Update.
1200 * config/cris/cris.mt (TM_FILE): Update.
1201 * config/arm/wince.mt (TM_FILE): Update.
1202 * config/arm/nbsd.mt (TM_FILE): Update.
1203 * config/arm/linux.mt (TM_FILE): Update.
1204 * config/arm/embed.mt (TM_FILE): Update.
1205 * config/alpha/nbsd.mt (TM_FILE): Update.
1206 * config/alpha/fbsd.mt (TM_FILE): Update.
1207 * config/alpha/alpha.mt (TM_FILE): Update.
1208 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
1209 * config/alpha/alpha-linux.mt (TM_FILE): Update.
1210
1211 Eliminate event_loop_p, always has the value 1.
1212 * defs.h (event_loop_p): Delete macro.
1213 * breakpoint.c (until_break_command): Simplify.
1214 * utils.c (prompt_for_continue): Simplify.
1215 * tracepoint.c (read_actions): Simplify.
1216 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
1217 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
1218 (set_prompt, init_main): Simplify.
1219 (init_signals, disconnect): Delete, unused.
1220 * remote.c (remote_async_resume)
1221 (extended_remote_async_create_inferior): Simplify.
1222 * mi/mi-interp.c (mi_input): Delete, unused.
1223 (mi_interpreter_resume, mi_command_loop): Simplify.
1224 * interps.c (current_interp_command_loop): Simplify.
1225 * infrun.c (proceed): Simplify.
1226 * infcmd.c (run_command, continue_command, step_1, jump_command)
1227 (until_command, advance_command, finish_command)
1228 (interrupt_target_command): Simplify.
1229 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
1230
1231 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1232 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1233 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1234 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1235 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1236 * mips-tdep.c (mips_dump_tdep): Do not print same.
1237
1238 2004-09-12 Andrew Cagney <cagney@gnu.org>
1239
1240 * valprint.c (print_longest): Use fputs_filtered. Make "val"
1241 const.
1242 * Makefile.in (valprint.o): Delete explict rule.
1243
1244 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
1245 reported by Dave Anderson.
1246
1247 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
1248
1249 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
1250
1251 2004-09-12 Salvador E. Tropea <set@users.sf.net>
1252 Andrew Cagney <cagney@gnu.org>
1253
1254 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
1255 (mi_cmd_data_list_register_values)
1256 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
1257 the register number computation.
1258
1259 2004-09-12 Andrew Cagney <cagney@gnu.org>
1260
1261 * ppcnbsd-nat.c: Include "inf-ptrace.h".
1262 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
1263 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
1264 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
1265 target.
1266 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
1267 inf-ptrace.o and inf-child.o.
1268 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
1269 * Makefile.in: Update dependencies.
1270
1271 2004-09-11 Andrew Cagney <cagney@gnu.org>
1272
1273 * language.c (hex_string, hex_string_custom): Move from here ...
1274 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
1275 (CELLSIZE): Increase to 50.
1276 * language.h (hex_string, hex_string_custom): Move from here ...
1277 * defs.h: ... to here.
1278 * Makefile.in: Update all dependencies.
1279
1280 2004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
1281
1282 * language.c (local_hex_format_custom): Remove.
1283 (local_hex_string): Rename to hex_string, use C format, and move to
1284 utils.c
1285 (local_hex_string_custom): Rename to hex_string_custom and change
1286 interface. Now uses C format. Move to utils.c
1287 (local_octal_format_custom): Remove.
1288 (local_decimal_format_custom): Remove.
1289 (unknown_language_defn): Remove language-specific number
1290 formatting entries.
1291 (auto_language_defn): Ditto.
1292 (local_language_defn): Ditto.
1293 * language.h (struct language_format_info): Delete declaration.
1294 (struct language_defn): Remove language_format_info fields
1295 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
1296 (local_binary_format): Remove macro.
1297 (local_binary_format_prefix): Remove macro.
1298 (local_binary_format_specifier): Remove macro.
1299 (local_binary_format_suffix): Remove macro.
1300 (local_octal_format): Remove macro.
1301 (local_octal_format_prefix): Remove macro.
1302 (local_octal_format_specifier): Remove macro.
1303 (local_octal_format_suffix): Remove macro.
1304 (local_decimal_format): Remove macro.
1305 (local_decimal_format_prefix): Remove macro.
1306 (local_decimal_format_specifier): Remove macro.
1307 (local_decimal_format_suffix): Remove macro.
1308 (local_hex_format): Remove macro.
1309 (local_hex_format_prefix): Remove macro.
1310 (local_hex_format_specifier): Remove macro.
1311 (local_hex_format_suffix): Remove macro.
1312 (local_decimal_format_custom): Remove.
1313 (local_octal_format_custom): Remove.
1314 (local_hex_format_custom): Remove.
1315 (local_hex_string): Rename to hex_string and move to defs.h.
1316 (local_hex_string_custom): Rename to hex_string_custom, change
1317 interface, and move to defs.h.
1318 * utils.c: (int_string): New function.
1319 (hex_string): New function (from language.c).
1320 (hex_string_custom): New function (from language.c).
1321 (octal2str): New function.
1322 (decimal2str): Add width parameter.
1323 (paddr_u): Use new decimal2str interface.
1324 (paddr_d): Ditto.
1325 * defs.h (hex_string): Declare.
1326 (hex_string_custom): Declare.
1327 (int_string): Declare.
1328 * printcmd.c (print_scalar_formatted): Remove localized binary
1329 formatting.
1330 * valprint.c (print_longest): Use int_string.
1331 (print_floating): Use C hex format.
1332 (print_hex_chars): Ditto.
1333 (print_binary_chars): Remove language-specific formatting.
1334 (print_octal_chars): Use C octal format.
1335 (print_decimal_chars): Delocalize format.
1336 (print_decimal): Remove.
1337 * ada-lang.c (ada_language_defn): Remove language-specific number
1338 formatting entries.
1339 * p-lang.c (pascal_language_defn): Ditto.
1340 * c-lang.c (c_language_defn): Ditto.
1341 (cplus_language_defn): Ditto.
1342 (asm_language_defn): Ditto.
1343 (minimal_language_defn): Ditto.
1344 * f-lang.c (f_language_defn): Ditto.
1345 * jv-lang.c (java_language_defn): Ditto.
1346 * m2-lang.c (m2_language_defn): Ditto.
1347 * scm-lang.c (scm_language_defn): Ditto.
1348 * objc-lang.c (objc_language_defn): Ditto.
1349 * memattr.c (mem_info_command): Use renamed hex_string_custom with
1350 new interface.
1351 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
1352 * ui-out.c (ui_out_field_core_addr): Ditto.
1353 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
1354 * exec.c (print_section_info): Ditto.
1355 * i387-tdep.c (print_i387_status_word): Ditto.
1356 (print_i387_control_word): Ditto.
1357 (i387_print_float_info): Ditto.
1358 * maint.c (maint_print_section_info): Ditto.
1359 * solib.c (info_sharedlibrary_command): Ditto.
1360 * somsolib.c (som_sharedlibrary_info_command): Ditto.
1361 * symtab.c (print_msymbol_info): Ditto.
1362 * tracepoint.c (tracepoints_info): Ditto.
1363 * solib-frv.c (lm_base): Ditto.
1364 (frv_current_sos): Ditto.
1365 (enable_break2): Ditto.
1366 (enable_break): Ditto.
1367 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
1368 (process_one_symbol): Ditto.
1369 * infcmd.c (program_info): Ditto.
1370 * mdebugread.c (parse_partial_symbols): Ditto.
1371 * symfile.c (add_symbol_file_command): Ditto.
1372 * cli/cli-cmds.c (edit_command): Ditto.
1373 (list_command): Ditto.
1374 * infcall.c (call_function_by_hand): Ditto.
1375 * remote-vx.c (vx_run_files_info): Ditto.
1376 (vx_wait): Ditto.
1377 (vx_attach): Ditto.
1378 (vx_detach): Ditto.
1379 (vx_kill): Ditto.
1380 * aix-thread.c (pdc_symbol_addrs): Ditto.
1381 (pdc_read_regs): Ditto.
1382 (pdc_write_regs): Ditto.
1383 (pdc_read_data): Ditto.
1384 (pdc_write_data): Ditto.
1385 * d10v-tdep.c (display_trace): Ditto.
1386 * rs6000-nat.c (find_toc_address): Ditto.
1387 * aix-thread.c: Don't include language.h.
1388 * buildsym.c: Ditto.
1389 * dbxread.c: Ditto.
1390 * mdebugread.c: Ditto.
1391 * rs6000-nat.c: Ditto.
1392 * buildsym.c (make_blockvector): Use renamed hex_string.
1393
1394 2004-09-10 Jason Molenda (jmolenda@apple.com)
1395
1396 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
1397 chars after 'if' or 'while' commands in user-defined commands.
1398
1399 2004-09-08 Jim Blandy <jimb@redhat.com>
1400
1401 Fix bug reported and analyzed by Olivier Crete:
1402 * symfile.c (copy_section_addr_info): New function.
1403 (symbol_file_add_with_addrs_or_offsets): Use it to save the
1404 original set of address arguments, instead of handwritten code
1405 that uses one length to allocate and a different length to
1406 initialize. Use make_cleanup_free_section_addr_info.
1407 * symfile.h (copy_section_addr_info): New declaration.
1408 * utils.c: #include "symfile.h".
1409 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
1410 New functions.
1411 * defs.h (make_cleanup_free_section_addr_info): New declaration.
1412 * Makefile.in (utils.o): Update dependencies.
1413
1414 2004-09-08 Andrew Cagney <cagney@gnu.org>
1415
1416 * thread-db.c (keep_thread_db): Delete.
1417 (thread_db_new_objfile, thread_db_create_inferior)
1418 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
1419
1420 2004-09-08 Mark Kettenis <kettenis@gnu.org>
1421
1422 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
1423 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
1424 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
1425 (i386_frameless_signal_p): Remove prototype.
1426 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
1427 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
1428 I386_SSE_NUM_REGS.
1429 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
1430 instead of FP0_REGNUM.
1431 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
1432 of FP0_REGNUM and FPC_REGNUM.
1433
1434 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
1435 (sunos_solib_create_inferior_hook): Don't call
1436 sunos_relocate_main_executable.
1437
1438 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
1439 solib_svr4_fetch_link_map_offsets to
1440 svr4_ilp32_fetch_link_map_offsets.
1441 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
1442 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
1443 svr4_ilp32_fetch_link_map_offsets.
1444 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
1445
1446 2004-09-07 Jim Blandy <jimb@redhat.com>
1447
1448 * frame.h (frame_register): Doc fix.
1449
1450 2004-09-07 Andrew Cagney <cagney@gnu.org>
1451
1452 * vx-share/wait.h: Delete #ifdef USG.
1453 * utils.c (request_quit): Ditto.
1454 * tui/tui.c (tui_reset): Ditto.
1455 * remote.c: Ditto.
1456 * remote-sds.c: Ditto.
1457 * remote-rdi.c: Ditto.
1458 * mdebugread.c: Ditto.
1459 * m68klinux-nat.c: Ditto.
1460 * infttrace.c: Ditto.
1461 * infptrace.c: Ditto.
1462 * i386v-nat.c: Ditto.
1463 * exec.c: Ditto.
1464 * dbxread.c: Ditto.
1465 * core-aout.c: Ditto.
1466
1467 2004-09-05 Joel Brobecker <brobecker@gnat.com>
1468
1469 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
1470 heuristic_proc_desc.
1471 (mips_insn32_frame_cache): Likewise.
1472
1473 2004-09-04 Joel Brobecker <brobecker@gnat.com>
1474
1475 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
1476 left behind by error.
1477
1478 2004-09-04 Joel Brobecker <brobecker@gnat.com>
1479
1480 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
1481 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
1482
1483 2004-09-04 Joel Brobecker <brobecker@gnat.com>
1484
1485 * config/rs6000/xm-aix4.h: Remove this file.
1486 * config/rs6000/aix4.mh (XM_FILE): Delete.
1487
1488 2004-09-04 Joel Brobecker <brobecker@gnat.com>
1489
1490 * config/rs6000/xm-rs6000.h: Remove this file.
1491 * config/rs6000/rs6000.mh (XM_FILE): Remove.
1492
1493 2004-09-03 Andrew Cagney <cagney@gnu.org>
1494
1495 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
1496 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
1497 only use.
1498
1499 * mips-tdep.c (temp_saved_regs): Delete.
1500 (set_reg_offset): Replace saved_regs parameter with this_cache.
1501 (heuristic_proc_desc, mips16_heuristic_proc_desc)
1502 (mips32_heuristic_proc_desc): Add this_cache parameter.
1503 (mips_insn32_frame_cache, mips_insn16_frame_cache)
1504 (after_prologue): Pass a NULL this_cache.
1505
1506 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
1507 non-kernel trap prologues.
1508
1509 * mips-tdep.c (find_proc_desc): Delete function.
1510 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
1511 simplify.
1512 (mips_insn16_frame_cache): Replace find_proc_desc with code from
1513 mips_insn32_frame_cache.
1514
1515 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
1516 Simplify as NEXT_FRAME is NULL.
1517 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
1518
1519 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
1520 local variable.
1521 (mips_skip_prologue): Update.
1522
1523 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
1524 "cur_frame" parameter.
1525 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
1526 (mips_insn32_frame_cache, find_proc_desc): Update
1527
1528 * config/vax/nm-obsd.h: Delete file.
1529 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1530 * config/vax/nm-nbsd.h: Delete file.
1531 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
1532 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1533 * config/sh/nm-nbsd.h: Delete file.
1534 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1535 * config/rs6000/nm-rs6000ly.h: Delete file.
1536 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
1537 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1538 * config/powerpc/nm-obsd.h: Delete file.
1539 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1540 * config/powerpc/nm-nbsd.h: Delete file.
1541 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1542 * config/pa/nm-obsd.h: Delete file.
1543 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1544 * config/mips/nm-nbsd.h: Delete file.
1545 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1546 * config/m88k/nm-obsd.h: Delete file.
1547 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1548 * config/m68k/nm-nbsd.h: Delete file.
1549 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
1550 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1551 * config/i386/nm-nbsd.h: Delete file.
1552 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
1553 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1554 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1555 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1556 * config/i386/nm-i386lynx.h: Delete file.
1557 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1558 * config/arm/nm-nbsd.h: Delete file.
1559 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
1560 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1561
1562 * config/i386/tm-fbsd.h: Delete file.
1563 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
1564 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
1565
1566 * config/rs6000/tm-rs6000-aix4.h: Delete file.
1567 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
1568 * config/rs6000/aix4.mt (TM_FILE): Set to
1569 config/rs6000/tm-rs6000.h.
1570 * config/powerpc/tm-ppc-aix.h: Delete file.
1571 * config/powerpc/aix.mt (TM_FILE): Set to
1572 config/rs6000/tm-rs6000.h.
1573 * config/m68k/tm-linux.h: Delete file.
1574 * config/m68k/linux.mt (TM_FILE): Set to solib.h
1575 * config/i386/tm-linux64.h: Delete file.
1576 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
1577 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
1578
1579 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1580 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
1581 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
1582 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1583 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
1584 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
1585 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
1586 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
1587 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
1588
1589 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
1590 gdb_host_cpu.
1591
1592 2004-09-02 Joel Brobecker <brobecker@gnat.com>
1593
1594 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
1595 Minor reformatting. Some code factoring.
1596
1597 2004-09-02 Andrew Cagney <cagney@gnu.org>
1598
1599 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
1600 * config/vax/tm-nbsd.h: Delete file.
1601 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1602 * config/sparc/tm-vxworks.h: Delete file.
1603 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
1604 * config/sparc/tm-nbsd.h: Delete file.
1605 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
1606 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
1607 * config/sparc/tm-linux.h: Delete file.
1608 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
1609 * config/s390/tm-linux.h: Delete file.
1610 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
1611 * config/pa/tm-bsd.h: Delete file.
1612 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
1613 * config/m68k/tm-obsd.h: Delete file.
1614 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
1615 * config/m68k/tm-nbsd.h: Delete file.
1616 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1617 * config/i386/tm-vxworks.h: Delete file.
1618 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
1619 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
1620 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
1621 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
1622 * config/i386/tm-nbsd.h: Delete file.
1623 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
1624 * config/i386/tm-i386lynx.h: Delete file.
1625 * config/cris/cris.mt (TM_FILE): Set to solib.h.
1626 * config/cris/tm-cris.h: Delete file.
1627
1628 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
1629 * configure: Re-generate.
1630 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
1631 * config/arm/tm-nbsd.h: Delete file.
1632
1633 * config/powerpc/tm-ppcle-sim.h: Delete.
1634 * config/powerpc/tm-ppcle-eabi.h: Delete.
1635 * config/powerpc/tm-nbsd.h: Delete.
1636 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
1637 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
1638 tm-ppcle-eabi.h.
1639
1640 * config/i386/nto.mh (NAT_FILE): Delete.
1641 * config/i386/nm-nto.h: Delete.
1642
1643 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
1644 * config/m68k/tm-os68k.h: Ditto.
1645 * config/m68k/tm-monitor.h: Ditto.
1646 * config/m68k/tm-cisco.h: Ditto.
1647 * config/m68k/st2000.mt (TM_FILE): Delete.
1648 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
1649 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
1650 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
1651 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
1652
1653 * config/m68k/tm-st2000.h: Delete.
1654 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
1655 * config/sparc/fbsd.mt (TM_FILE): Delete.
1656 * config/sparc/tm-fbsd.h: Delete.
1657
1658 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
1659 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
1660 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
1661
1662 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
1663 GDB_TM_FILE and GDB_XM_FILE.
1664 * gdbarch.c: Re-generate.
1665 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
1666 quotes in macro definition.
1667 * configure.in: Re-generate.
1668
1669 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
1670 validating architecture methods.
1671 * gdbarch.c: Re-generate.
1672
1673 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
1674 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
1675 GDB_MULTI_ARCH_PARTIAL.
1676 * gdbarch.h: Re-generate.
1677
1678 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
1679 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
1680 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
1681 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
1682 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
1683 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
1684 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
1685 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
1686 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
1687 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
1688 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
1689 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
1690
1691 2004-09-01 Andrew Cagney <cagney@gnu.org>
1692
1693 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
1694 and main_func_highpc.
1695 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
1696 * objfiles.c (init_entry_point_info, objfile_relocate): Update
1697 * nlmread.c (nlm_symfile_read): Update.
1698
1699 2004-09-01 Joel Brobecker <brobecker@gnat.com>
1700
1701 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
1702 (mips_insn32_frame_cache): Inline call to find_proc_desc.
1703 (find_proc_desc): Remove dead code.
1704
1705 2004-09-01 Joel Brobecker <brobecker@gnat.com>
1706
1707 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
1708
1709 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
1710
1711 * observer.sh: Add struct so_list declaration.
1712 * Makefile.in: Add dependencies on observer.h for solib.c and
1713 breakpoint.c.
1714 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
1715 function.
1716 (_initialize_breakpoint): Register
1717 disable_breakpoints_in_unloaded_shlib as an observer of the
1718 "solib unloaded" observation event.
1719 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
1720 call decode_line_1 so unfound breakpoint errors are silent.
1721 * solib.c (update_solib_list): When a solib is discovered to have
1722 been unloaded by the program, notify all observers of the
1723 "solib unloaded" observation event.
1724
1725 2004-09-01 Andrew Cagney <cagney@gnu.org>
1726
1727 * frame.c: Include "objfiles.h".
1728 (inside_main_func): New function.
1729 (get_prev_frame): Use new inside_main_func.
1730 * Makefile.in (frame.o): Update dependencies.
1731 * defs.h (inside_main_func): Delete declaration.
1732 * blockframe.c (inside_main_func): Delete function.
1733
1734 2004-08-31 Jim Blandy <jimb@redhat.com>
1735
1736 * dwarf2read.c (is_vtable_name): New function, based on logic from
1737 read_structure_type, but passing the correct length to strncmp,
1738 and using 'sizeof' instead of 'strlen'.
1739 (read_structure_type): Call it.
1740
1741 2004-08-31 Joel Brobecker <brobecker@gnat.com>
1742
1743 * config/powerpc/aix.mh: Add comment.
1744
1745 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
1746
1747 * MAINTAINERS: Add self to Write-After-Approval.
1748
1749 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
1750
1751 * MAINTAINERS: Add self to Write-After-Approval.
1752
1753 2004-08-30 Andrew Cagney <cagney@gnu.org>
1754
1755 Fix PR breakpoints/1757.
1756 * infrun.c (struct execution_control_state): Replace
1757 remove_breakpoints_on_following_step with
1758 step_after_step_resume_breakpoint.
1759 (init_execution_control_state): Update.
1760 (handle_inferior_event): For signals, when stepping off a
1761 breakpoint, set step_after_step_resume_breakpoint. When
1762 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
1763 (keep_going): Delete code handling
1764 remove_breakpoints_on_following_step.
1765
1766 2004-08-29 David Lecomber <david@streamline-computing.com>
1767
1768 Fix PR gdb/648
1769 * language.h (enum array_ordering): New enum.
1770 * language.h (struct language_defn): New la_array_ordering
1771 attribute.
1772 * language.c (unknown_language_defn, auto_language_defn)
1773 (local_language_defn): Ditto.
1774 * ada-lang.c (ada_language_defn): Ditto.
1775 * c-lang.c (c_language_defn, cplus_language_defn)
1776 (asm_language_defn, minimal_language_defn): Ditto.
1777 * f-lang.c (f_language_defn): Ditto.
1778 * jv-lang.c (java_language_defn): Ditto.
1779 * m2-lang.c (f_language_defn): Ditto.
1780 * objc-lang.c (objc_language_defn): Ditto.
1781 * p-lang.c (pascal_language_defn): Ditto.
1782 * scm-lang.c (scm_language_defn): Ditto.
1783 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
1784 oriented large to small in type structure.
1785 * dwarf2read.c (read_array_order): New function.
1786 (read_array_type): Use read_array_order to check row/column
1787 major ordering.
1788
1789 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
1790
1791 * target.c (target_resize_to_sections): Check
1792 current_target.to_sections for an old value when updating.
1793
1794 2004-08-27 Joel Brobecker <brobecker@gnat.com>
1795
1796 * procfs.c (dbx_link_bpt_addr): New static global variable.
1797 (dbx_link_shadow_contents): New static global variable.
1798 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
1799 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
1800 if we just hit it.
1801 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
1802 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
1803 from run to run.
1804 (procfs_create_inferior): Remove syssgi syscall-exit notifications
1805 after the inferior has been forked.
1806 (remove_dbx_link_breakpoint): New function.
1807 (dbx_link_addr): New function.
1808 (insert_dbx_link_bpt_in_file): New function.
1809 (insert_dbx_link_bpt_in_region): New function.
1810 (insert_dbx_link_breakpoint): New function.
1811 (proc_trace_syscalls_1): New function, extracted from
1812 proc_trace_syscalls.
1813 (proc_trace_syscalls): Replace extract code by call to
1814 proc_trace_syscalls_1.
1815 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
1816 is no longer valid.
1817
1818 2004-08-25 Jim Blandy <jimb@redhat.com>
1819
1820 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
1821
1822 2004-08-25 Andrew Cagney <cagney@gnu.org>
1823
1824 * infrun.c (struct execution_control_state): Delete field
1825 "stepping_through_sigtramp".
1826 (init_execution_control_state): Do not set same.
1827 (context_switch): Do not pass same to save_infrun_state and
1828 load_infrun_state.
1829 * gdbthread.h (struct thread_info): Delete field
1830 stepping_through_sigtramp.
1831 (save_infrun_state, load_infrun_state): Delete parameter
1832 stepping_through_sigtramp.
1833 * thread.c (load_infrun_state, save_infrun_state): Update.
1834
1835 * infrun.c: Re-indent. Move expression operators to the beginning
1836 of the line. Remove long disabled #if 0 code.
1837
1838 2004-08-24 Andrew Cagney <cagney@gnu.org>
1839
1840 * doublest.h (floatformat_ieee_quad): Rename
1841 floatformat_ia64_quad.
1842 * doublest.c (floatformat_ieee_quad): Rename
1843 floatformat_ia64_quad.
1844 (_initialize_doublest): Update.
1845
1846 2004-08-24 Jim Blandy <jimb@redhat.com>
1847
1848 * dwarf2expr.h (struct dwarf_expr_context): New members
1849 'num_pieces' and 'pieces', for returning the result of an
1850 expression that uses DW_OP_piece.
1851 (struct dwarf_expr_piece): New struct type.
1852 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
1853 pieces.
1854 (free_dwarf_expr_context): Free pieces, if any.
1855 (add_piece): New function.
1856 (execute_stack_op): Implement DW_OP_piece.
1857 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
1858 expression is a list of pieces, print an error message.
1859 (dwarf2_loc_desc_needs_frame): If the expression yields
1860 pieces, and any piece is in a register, then we need a frame.
1861
1862 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
1863 the stack until we've decided what sort of result the evaluation
1864 has produced. Use separate variables, with more specific names.
1865
1866 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
1867
1868 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
1869 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
1870 (arm_netbsd_init_abi_common): Register them.
1871
1872 2004-08-22 Mark Kettenis <kettenis@gnu.org>
1873
1874 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
1875
1876 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
1877 safe_frame_unwind_memory instead of target_read_memory.
1878
1879 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
1880 Reorder includes.
1881 (fetch_register, store_register): Remove prototypes.
1882 (child_resume): Reorganize code and comments such that it is
1883 grouped a bit more logically.
1884 (attach): Explicitly compare errno against 0.
1885 (detach): Likewise. Use perror_with_name instead of
1886 print_sys_errmsg.
1887 * Makefile.in (infptrace.o): Update dependencies.
1888
1889 * ia64-linux-nat.c: Update copyright year.
1890 (fetch_debug_register, store_debug_register)
1891 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
1892 PTRACE_TYPE_ARG3.
1893 * config/ia64/nm-linux.h: Update copyright year.
1894 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
1895
1896 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
1897 from CORE_ADDR to struct frame_info *. Use
1898 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
1899 (amd64_linux_sigtramp_p): Adjust for changed signature of
1900 and64_linux_sigtramp_start
1901
1902 * gdb_ptrace.h: GNU/Linux.
1903
1904 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1905 Remove defines.
1906
1907 * infptrace.c: Include "gdb_assert.h".
1908 (PTRACE_XFER_TYPE): Remove define.
1909 (offsetof): Only define if U_REGS_OFFSET isn't defined.
1910 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
1911 Tweak comment.
1912 (fetch_inferior_registers, store_inferior_registers): Remove
1913 redundant culry braces. Tweak comment. s/regno/regnum.
1914 * Makefile.in (infptrace.o): Update dependencies.
1915
1916 * configure.in: Change test for return type of ptrace to default
1917 to `long' instead of `int'.
1918 * configure: Regenerate.
1919
1920 2004-08-21 Mark Kettenis <kettenis@gnu.org>
1921
1922 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
1923
1924 * configure.in: Check for ttrace function.
1925 * configure, config.in: Regenerate.
1926
1927 * gdb_ptrace.h: New file.
1928 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
1929 <sys/ptrace.h>.
1930 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
1931 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
1932 (attach): Don't define PT_ATTACH.
1933 (detach): Don't define PT_DETACH.
1934 * Makefile.in (gdb_ptrace_h): New variable.
1935 (infptrace.o): Update dependencies.
1936
1937 2004-08-16 Mark Kettenis <kettenis@gnu.org>
1938
1939 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
1940 instead of `int' if not already defined.
1941 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
1942 PTRACE_TYPE_ARG3.
1943 * infptrace.c (call_ptrace): Revert change that replaced
1944 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1945
1946 2004-08-15 Mark Kettenis <kettenis@gnu.org>
1947
1948 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1949 Remove defines.
1950
1951 * linux-nat.c (kill_inferior): Add missing third and fourth
1952 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
1953
1954 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
1955 PTRACE_TYPE_RET.
1956
1957 * proc-why.c (proc_prettyfprint_why): Fix format string.
1958
1959 * solib-osf.c (osf_current_sos): Remove unsused label.
1960
1961 * configure.in: Add <ncurses/ncurses.h> to the list of possible
1962 curses headers.
1963 * configure, config.in: Regenerate.
1964 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
1965 <ncurses/ncurses.h>.
1966
1967 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
1968 * config/nm-nbsd.h: Update copyright year.
1969 (PTRACE_ARG3_TYPE): Remove define.
1970
1971 * sparc-nat.c (fetch_inferior_registers)
1972 (store_inferior_registers, sparc_xfer_wcookie):
1973 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1974
1975 * alphabsd-nat.c (fetch_inferior_registers):
1976 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1977 PTRACE_TYPE_ARG3.
1978 * amd64bsd-nat.c (fetch_inferior_registers)
1979 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1980 PTRACE_TYPE_ARG3.
1981 * armnbsd-nat.c: Update copyright year.
1982 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
1983 (store_register, store_regs, store_fp_register, store_fp_regs):
1984 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1985 * hppabsd-nat.c (fetch_inferior_registers)
1986 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1987 PTRACE_TYPE_ARG3.
1988 * i386bsd-nat.c (fetch_inferior_registers)
1989 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
1990 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1991 * m68kbsd-nat.c (fetch_inferior_registers)
1992 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1993 PTRACE_TYPE_ARG3.
1994 * m88kbsd-nat.c (fetch_inferior_registers)
1995 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
1996 PTRACE_TYPE_ARG3.
1997 * mipsnbsd-nat.c: Update copyright year.
1998 (fetch_inferior_registers, store_inferior_registers):
1999 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2000 * ns32knbsd-nat.c: Update copyright year.
2001 (fetch_inferior_registers, store_inferior_registers):
2002 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2003 * ppcnbsd-nat.c (fetch_inferior_registers):
2004 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2005 PTRACE_TYPE_ARG3.
2006 * ppcobsd-nat.c (fetch_inferior_registers):
2007 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2008 PTRACE_TYPE_ARG3.
2009 * shnbsd-nat.c: Update copyright year.
2010 (fetch_inferior_registers, store_inferior_registers):
2011 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2012 * vaxbsd-nat.c (fetch_inferior_registers)
2013 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2014 PTRACE_TYPE_ARG3.
2015
2016 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
2017 PTRACE_TYPE_ARG3.
2018 * infptrace.c (call_ptrace, child_resume, attach, detach)
2019 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
2020 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2021 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
2022 PTRACE_TYPE_ARG3.
2023
2024 2004-08-14 Mark Kettenis <kettenis@gnu.org>
2025
2026 * defs.h: Remove out-of-date comment.
2027 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
2028 [!GETENV_PROVIDED] (getenv): Remove prototype.
2029
2030 * standalone.c: Remove file.
2031 * Makefile.in (standalone.o): Remove dependency.
2032
2033 * i386-linux-nat.c (dummy_sse_values): Remove function and
2034 prototype.
2035 (i386_linux_dr_get): Fix typo in comment.
2036 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
2037
2038 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
2039
2040 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
2041 from declaration.
2042 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
2043 from definition.
2044
2045 2004-08-13 Mark Kettenis <kettenis@gnu.org>
2046
2047 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
2048 parenthesis in definition.
2049 * configure: Regenerated.
2050
2051 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
2052
2053 * PROBLEMS: Mention build/1411.
2054
2055 2004-08-09 Robert Millan <robertmh@gnu.org>
2056
2057 Committed by Nathanael Nerode.
2058 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
2059 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
2060
2061 2004-08-12 Andrew Cagney <cagney@gnu.org>
2062
2063 * NEWS: Mention fixes in GDB 6.2.1.
2064 * PROBLEMS: Remove mention of mips-irix.
2065
2066 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2067
2068 * config/powerpc/xm-aix.h: Delete.
2069 * config/powerpc/aix.mh (MH_FILE): Remove.
2070 * config/powerpc/aix432.mh (MH_FILE): Remove.
2071
2072 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2073
2074 * config/powerpc/aix.mh: Remove obsolete comment.
2075 * config/powerpc/aix432.mh: Likewise.
2076
2077 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2078
2079 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
2080
2081 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2082
2083 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
2084 this file is now empty.
2085 * config/xm-aix4.h: Remove, this file is no longer included
2086 anywhere.
2087
2088 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2089
2090 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
2091 that file is now empty.
2092 (termdef): Remove prototype, function no longer used.
2093
2094 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2095
2096 * doc/gdbint.texinfo (Host Definition): Remove documentation
2097 for USE_O_NOCTTY, no longer used.
2098 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
2099 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
2100
2101 2004-08-11 Joel Brobecker <brobecker@gnat.com>
2102
2103 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
2104 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
2105 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
2106
2107 2004-08-11 Mark Kettenis <kettenis@gnu.org>
2108
2109 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
2110 instead of FIVE_ARG_PTRACE.
2111
2112 * inflow.c (O_NOCTTY): Define to zero if not already defined.
2113 (new_tty): Use O_NOCTTY unconditionally.
2114
2115 2004-08-10 Mark Kettenis <kettenis@gnu.org>
2116
2117 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
2118 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
2119 fflush on stdout.
2120
2121 2004-08-10 Joel Brobecker <brobecker@gnat.com>
2122
2123 * xcoff_symfile_finish: Replace last call to xmfree by call
2124 to xfree.
2125
2126 2004-08-10 Andrew Cagney <cagney@gnu.org>
2127
2128 * main.c (captured_main): Delete call to init_malloc.
2129 * defs.h (init_malloc): Delete declaration.
2130 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
2131 (init_malloc): Delete functions.
2132
2133 * defs.h (xmfree): Delete.
2134 * utils.c (xmfree): Delete function.
2135 (xfree): Inline calls to xmfree and mfree.
2136 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
2137 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
2138 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
2139 * somread.c (som_symfile_finish): Ditto.
2140 * objfiles.c (allocate_objfile, free_objfile):
2141 * nlmread.c (nlm_symfile_finish): Ditto.
2142 * hpread.c (hpread_symfile_finish): Ditto.
2143 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
2144 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
2145 * coffread.c (coff_symfile_finish): Ditto.
2146
2147 * defs.h (xmcalloc): Delete declaration.
2148 * utils.c (xmcalloc): Delete.
2149 (xcalloc): Inline calls to xmcalloc and mcalloc.
2150 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
2151 xcalloc and xfree.
2152 * symtab.c (create_demangled_names_hash): Ditto.
2153
2154 * defs.h (xmrealloc): Delete.
2155 * utils.c (xmrealloc): Delete.
2156 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
2157 * symmisc.c (extend_psymbol_list): Use xrealloc.
2158 * source.c (find_source_lines): Ditto.
2159 * hpread.c (hpread_lookup_type): Ditto.
2160 * dbxread.c (add_bincl_to_list): Ditto.
2161
2162 * utils.c (xmmalloc): Delete.
2163 (xmalloc): Inline xmmalloc and mmalloc calls.
2164 (msavestring): Use xmalloc.
2165 * defs.h (xmmalloc): Delete declaration.
2166 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
2167 xmmalloc.
2168 * symmisc.c (extend_psymbol_list): Ditto.
2169 * symfile.c (init_psymbol_list): Ditto.
2170 * source.c (find_source_lines): Ditto.
2171 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
2172 * elfread.c (elf_symtab_read): Ditto.
2173 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
2174 * coffread.c (coff_symfile_init): Ditto.
2175
2176 2004-08-10 David Carlton <carlton@bactrian.org>
2177
2178 * MAINTAINERS: Remove David Carlton from c++ testsuite
2179 maintainers.
2180
2181 2004-08-10 Jerome Guitton <guitton@gnat.com>
2182
2183 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
2184 print a line feed before the prompt.
2185
2186 2004-08-10 Mark Kettenis <kettenis@gnu.org>
2187
2188 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
2189
2190 2004-08-09 Joel Brobecker <brobecker@gnat.com>
2191
2192 General cleanup of the AIX xm include file:
2193 * config/xm-aix4.h (fd_set): Remove undefine.
2194 Remove include of <sys/select.h>.
2195 (HAVE_TERMIO): Remove define.
2196 (USG): Likewise.
2197 (NULL): Remove redefine.
2198 (alloca): Remove #pragma.
2199 (vfork): Remove define.
2200 (termdef): Remove.
2201 (SIGWINCH_HANDLER): Remove.
2202 (SIGWINCH_HANDLER_BODY): Remove.
2203
2204 2004-08-09 Mark Kettenis <kettenis@gnu.org>
2205
2206 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
2207 GDB_OSABI_OPENBSD_ELF.
2208
2209 2004-08-07 Robert Millan <robertmh@gnu.org>
2210
2211 * bsd-kvm.c: Check for nlist.h before including it.
2212
2213 2004-08-09 Mark Kettenis <kettenis@gnu.org>
2214
2215 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
2216 sigcontext' offset consistency checks for ancient BSD.
2217
2218 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
2219
2220 * configure.in: Check for <sys/types.h>. Check return and
2221 argument types of ptrace.
2222 * configure, config.in: Regenerate.
2223
2224 2004-08-09 Jim Blandy <jimb@redhat.com>
2225
2226 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
2227 rs6000_register_sim_regno): Doc fixes.
2228
2229 2004-08-08 Joel Brobecker <brobecker@gnat.com>
2230
2231 * mips-tdep.c: Include "floatformat.h".
2232 (n32n64_floatformat_always_valid): New function.
2233 (floatformat_n32n64_long_double_big): New constant.
2234 (mips_gdbarch_init): Set size and format of long double
2235 for N32 and N64 ABIs.
2236 * Makefile.in (mips-tdep.o): Update dependencies.
2237
2238 2004-08-08 Andrew Cagney <cagney@gnu.org>
2239
2240 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
2241 print. Improve script's error messages.
2242 * gdbarch.h: Re-generate.
2243
2244 * gdbarch.sh (pformat): New function.
2245 (float_format, double_format, long_double_format): List with bit
2246 members. Use pformat when printing.
2247 * gdbarch.c, gdbarch.h: Re-generate.
2248
2249 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
2250
2251 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
2252 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
2253 (ppcnbsd_supply_pcb): New function.
2254 (_initialize_ppcnbsd_nat): New prototype and function.
2255 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
2256 (LOADLIBES): New variable.
2257 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
2258
2259 2004-08-08 Andrew Cagney <cagney@gnu.org>
2260
2261 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
2262 (builtin_type_ieee_double, builtin_type_ia64_quad)
2263 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
2264 BE/LE floating-point types.
2265 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
2266 (builtin_type_ieee_double, builtin_type_ia64_quad)
2267 (builtin_type_ia64_spill): Declare.
2268 * doublest.c (_initialize_doublest, floatformat_ieee_single)
2269 (floatformat_ieee_double, floatformat_arm_ext)
2270 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
2271 of LE/BE floatformats.
2272 * doublest.h: (struct floatformat, floatformat_ieee_single)
2273 (floatformat_ieee_double, floatformat_arm_ext)
2274 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
2275
2276 2004-08-08 Mark Kettenis <kettenis@gnu.org>
2277
2278 * i386gnu-nat.c (gnu_store_registers): Fix typo.
2279
2280 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
2281 instead of regcache_raw_supply when storing the registers.
2282
2283 * i386gnu-nat.c: Update copyright year.
2284 (gnu_store_registers): Don't use deprecated_registers and
2285 deprecated_registers_valid. Use regcache_valid_p and
2286 regcache_raw_supply instead.
2287
2288 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
2289 frame_pc_unwind.
2290
2291 * procfs.c (procfs_pid_to_str): Remove redundant and unused
2292 variables. Incapitalized "process".
2293
2294 * configure.in: Add cursesX to the list of possible curses libs.
2295 Add cursesX.h to the list of possible curses headers.
2296 * configure, config.in: Regenerate.
2297
2298 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
2299
2300 * configure.in: Test for struct lwp in <sys/lwp.h>.
2301 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
2302 the offset of l_addr in struct lwp.
2303
2304 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
2305
2306 * bsd-kvm.c: Include "gdbcore.h"
2307 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
2308
2309 2004-08-07 Andrew Cagney <cagney@gnu.org>
2310
2311 * gdbtypes.c (build_flt, build_complex): New functions.
2312 (gdbtypes_post_init): Use.
2313
2314 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
2315
2316 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
2317 through to builtin_type_uint128.
2318
2319 * c-exp.y: Use builtin_type function to obtain builtin types.
2320
2321 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
2322 builtin_uint128.
2323 * gdbtypes.c (gdbtypes_post_init): Update.
2324 (build_gdbtypes): Move initialization of builtin_type_int0
2325 through to builtin_type_uint128 from here ...
2326 (_initialize_gdbtypes): ... to here.
2327 * d10v-tdep.c (d10v_register_type): Update.
2328
2329 * doublest.c: Update copyright.
2330 (floatformat_from_length): Call error when floatformat is NULL.
2331 (extract_floating_by_length): Remove NULL fmt check.
2332 (store_floating_by_length): Ditto.
2333
2334 2004-08-07 Andrew Cagney <cagney@gnu.org>
2335
2336 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
2337 that the register is valid.
2338
2339 2004-08-05 Mark Kettenis <kettenis@chello.nl>
2340
2341 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2342 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
2343 struct frame_info *. Use safe_frame_unwind_memory instead of
2344 deprecated_read_memory_nobpt.
2345 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
2346 changed signature of i386_linux_sigtramp_start and
2347 i386_linux_rt_sigtramp_start.
2348
2349 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
2350 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
2351 instead of deprecated_read_memory_nobpt.
2352 (i386nbsd_sigtramp_p): Adjust for changed signature of
2353 i386nbsd_sigtramp_offset.
2354
2355 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
2356 safe_frame_unwind_memory instead of target_read_memory.
2357
2358 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2359 !NO_SYS_FILE.
2360 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
2361 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
2362 (_initialize_kernel_u_addr): Remove prototype and function.
2363 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2364 !NO_SYS_FILE.
2365 * xcoffread.c: Likewise.
2366
2367 2004-08-06 Mark Kettenis <kettenis@gnu.org>
2368
2369 * vax-nat.c: New file.
2370 * vaxbsd-nat.c: Tweak comment.
2371 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
2372 vaxnbsd-tdep.c.
2373 (vax-nat.o): New dependency.
2374 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
2375 (vax-*-ultrix2*): Remove.
2376 * config/vax/vax.mh: New file.
2377 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
2378 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
2379 (vax_register_u_addr): New prototype.
2380 (REGISTER_U_ADDR): Define using vax_register_u_addr.
2381 * config/vax/vaxult2.mh: Remove file.
2382 * config/vax/vaxult.mh: Remove file.
2383 * config/vax/vaxbsd.mh: Remove file.
2384 * config/vax/vax.mt (TM_FILE): Remove.
2385 * config/vax/tm-vaxbsd.h: Remove file.
2386
2387 2004-08-06 Joel Brobecker <brobecker@gnat.com>
2388
2389 * aix-thread.c (get_signaled_thread): New function.
2390 (iter_trap): Delete, no longer used.
2391 (iter_tid): New function.
2392 (pd_update): Find the thread that received the SIGTRAP signal
2393 by first locating the kernel thread, and then finding its
2394 associated thread.
2395
2396 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
2397
2398 * lin-lwp.c (child_wait): Continue inferior after processing
2399 PTRACE_EVENT_CLONE event.
2400
2401 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
2402
2403 * MAINTAINERS: Add self to Write-After-Approval.
2404
2405 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
2406
2407 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
2408 libunwind-xxxx.so" where xxxx is UNW_TARGET.
2409
2410 2004-08-05 Andrew Cagney <cagney@gnu.org>
2411
2412 * config/xm-sysv4.h: Delete file.
2413 * config/mips/xm-irix5.h: Delete file.
2414 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
2415 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
2416 * config/ia64/xm-aix.h: Delete file.
2417 * config/ia64/aix.mh (XM_FILE): Delete.
2418 * config/pa/xm-hppah.h: Delete file.
2419 * config/pa/hpux11w.mh (XM_FILE): Delete.
2420 * config/pa/hpux11.mh (XM_FILE): Delete.
2421 * config/pa/hpux1020.mh (XM_FILE): Delete.
2422 * config/pa/hppahpux.mh (XM_FILE): Delete.
2423
2424 * config/alpha/xm-alphalinux.h: Delete file.
2425 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
2426 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
2427 * config/alpha/xm-alphaosf.h: Delete file.
2428 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
2429 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
2430 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
2431 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
2432
2433 * config/i386/xm-i386v.h: Delete file.
2434 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
2435 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
2436 * config/i386/xm-i386sco.h: Delete file.
2437 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
2438 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
2439 * config/i386/xm-i386v4.h: Delete file.
2440 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
2441 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
2442 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
2443 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
2444
2445 * config/vax/xm-vax.h: Delete file.
2446 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
2447 * config/vax/xm-vaxult2.h: Delete file.
2448 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
2449 * config/vax/vaxult2.mh (XM_FILE): Delete.
2450 * config/vax/xm-vaxult.h: Delete file.
2451 * config/vax/vaxult.mh (XM_FILE): Delete.
2452 * config/vax/xm-vaxbsd.h: Delete file.
2453 * config/vax/vaxbsd.mh (XM_FILE): Delete.
2454
2455 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
2456 * gdbarch.h, gdbarch.c: Re-generate.
2457 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
2458 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
2459 * frame.h: Delete deprecated_read_fp from comments.
2460 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
2461 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
2462
2463 2004-08-04 Mark Kettenis <kettenis@gnu.org>
2464
2465 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
2466 trampoline in OpenBSD 3.5-current.
2467
2468 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
2469 SSE registers.
2470
2471 * Makefile.in: Remove embedded page breaks.
2472
2473 2004-08-04 Jim Blandy <jimb@redhat.com>
2474
2475 * regcache.c (regcache_raw_read): Assert that, after calling
2476 target_fetch_registers, the register we're reading is cached.
2477
2478 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
2479 a call to 'internal_error', with a more helpful error message.
2480 * rs6000-tdep.c (e500_pseudo_register_read,
2481 e500_pseudo_register_write, rs6000_store_return_value): Same.
2482
2483 2004-08-04 Andrew Cagney <cagney@gnu.org>
2484
2485 * Makefile.in: Update dependencies.
2486
2487 2004-08-04 Jim Blandy <jimb@redhat.com>
2488
2489 Change the layout of the PowerPC E500 raw register cache to allow
2490 the lower 32-bit halves of the GPRS to be their own raw registers,
2491 not pseudoregisters.
2492 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
2493 add ppc_ev0_upper_regnum flag.
2494 * rs6000-tdep.c: #include "reggroups.h".
2495 (spe_register_p): Recognize the ev upper half registers as SPE
2496 registers.
2497 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
2498 registers.
2499 (e500_move_ev_register): New function.
2500 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
2501 vector registers are the pseudo-registers now, formed by splicing
2502 together the gprs and the upper-half registers.
2503 (e500_register_reggroup_p): New function.
2504 (P): Macro deleted.
2505 (P8, A4): New macro.
2506 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
2507 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
2508 macros.
2509 (registers_e500): Rearrange register set so that the raw register
2510 set contains 32-bit GPRs and upper-half registers, and the SPE
2511 vector registers become pseudo-registers.
2512 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
2513 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
2514 register numbers are now the same for the E500 as they are for
2515 other PowerPC variants. Register e500_register_reggroup_p as the
2516 register group function for the E500.
2517 * Makefile.in (rs6000-tdep.o): Update dependencies.
2518
2519 Adapt PPC E500 native support to the new raw regcache layout.
2520 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
2521 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
2522 (fetch_spe_register, store_spe_register): Handle fetching/storing
2523 all the SPE registers at once, if regno == -1. These now take
2524 over the job of fetch_spe_registers and store_spe_registers.
2525 (fetch_spe_registers, store_spe_registers): Deleted.
2526 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
2527 unconditionally; they're always raw. Fetch/store SPE upper half
2528 registers, if present, instead of ev registers.
2529 (fetch_register, store_register): Remove sanity checks: gprs are
2530 never pseudo-registers now, so we never need to even mention any
2531 registers that are ever pseudoregisters.
2532
2533 Use a fixed register numbering when communicating with the PowerPC
2534 simulator.
2535 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
2536 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
2537 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
2538 New functions.
2539 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
2540 init_sim_regno_table.
2541 * Makefile.in (gdb_sim_ppc_h): New variable.
2542 (rs6000-tdep.o): Update dependencies.
2543
2544 2004-08-02 Andrew Cagney <cagney@gnu.org>
2545
2546 * cris-tdep.c (cris_register_size): Restore function, still used
2547 locally.
2548
2549 * gdbarch.sh (deprecated_target_read_fp)
2550 (deprecated_frame_locals_address, deprecated_frame_args_address)
2551 (deprecated_frame_chain_valid, deprecated_frame_chain)
2552 (deprecated_init_extra_frame_info, deprecated_pop_frame)
2553 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
2554 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
2555 * gdbarch.h, gdbarch.c: Re-generate.
2556 * regcache.c (deprecated_read_fp): Do not call
2557 DEPRECATED_TARGET_READ_FP_P.
2558 * infcmd.c (default_print_registers_info): Do not call
2559 DEPRECATED_DO_REGISTERS_INFO.
2560 * frame-base.c (default_frame_locals_address): Do not call
2561 DEPRECATED_FRAME_LOCALS_ADDRESS.
2562 (default_frame_args_address): Do not call
2563 DEPRECATED_FRAME_ARGS_ADDRESS.
2564
2565 * gdbarch.sh (deprecated_register_raw_size)
2566 (deprecated_register_virtual_size:int): Delete.
2567 * gdbarch.h, gdbarch.c: Re-generate.
2568 * cris-tdep.c (cris_register_size): Delete.
2569 (cris_gdbarch_init): Update.
2570 * alpha-tdep.c (alpha_register_raw_size)
2571 (alpha_register_virtual_size): Delete.
2572 (alpha_gdbarch_init): Update.
2573
2574 * gdbarch.sh (deprecated_register_virtual_type)
2575 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
2576 (deprecated_dummy_write_sp): Delete.
2577 * gdbarch.h, gdbarch.c: Re-generate.
2578
2579 * gdbarch.sh (deprecated_register_bytes): Delete.
2580 * gdbarch.h, gdbarch.c: Re-generate.
2581 * regcache.c (deprecated_register_bytes): New function.
2582 * regcache.h (deprecated_register_bytes): Declare.
2583 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2584 * v850-tdep.c (v850_gdbarch_init): Update.
2585 * sh64-tdep.c (sh64_gdbarch_init): Update.
2586 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
2587 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2588 * mcore-tdep.c (mcore_gdbarch_init): Update.
2589 * cris-tdep.c (cris_gdbarch_init): Update.
2590 * arm-tdep.c (arm_gdbarch_init): Update.
2591 * remote.c (init_remote_state): Update.
2592 * remote-vx.c (vx_prepare_to_store): Update.
2593 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
2594 * irix5-nat.c (fetch_core_registers): Update.
2595 * cris-tdep.c (cris_register_bytes_ok): Update.
2596 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
2597
2598 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
2599 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
2600 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
2601 (mips_insn16_frame_base_address, mips_insn16_frame_base)
2602 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
2603 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
2604 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
2605 (mips_insn32_frame_base_address, mips_insn32_frame_base)
2606 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
2607 with mips_insn16 and mips_insn32.
2608
2609 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
2610 * rs6000-tdep.c (rs6000_push_dummy_call)
2611 (rs6000_extract_return_value): Use register_size.
2612 * xstormy16-tdep.c (xstormy16_get_saved_register)
2613 (xstormy16_extract_return_value): Ditto.
2614 * valops.c (value_assign): Ditto.
2615 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
2616 * v850-tdep.c (v850_extract_return_value): Ditto.
2617 * tracepoint.c (collect_symbol): Ditto.
2618 * target.c (debug_print_register): Ditto.
2619 * stack.c (frame_info): Ditto.
2620 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
2621 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
2622 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
2623 (store_register_using_P): Ditto.
2624 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
2625 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
2626 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
2627 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
2628 * regcache.c (deprecated_read_register_bytes)
2629 (deprecated_write_register_bytes, read_register)
2630 (write_register): Ditto.
2631 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
2632 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
2633 * monitor.c (monitor_supply_register, monitor_fetch_register)
2634 (monitor_store_register): Ditto.
2635 * mn10300-tdep.c (mn10300_pop_frame_regular)
2636 (mn10300_print_register): Ditto.
2637 * mipsv4-nat.c (fill_fpregset): Ditto.
2638 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
2639 (mips64_fill_fpregset): Ditto.
2640 * mi/mi-main.c (register_changed_p, get_register)
2641 (mi_cmd_data_write_register_values): Ditto.
2642 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
2643 * irix5-nat.c (fill_gregset, fetch_core_registers):
2644 * infrun.c (write_inferior_status_register): Ditto.
2645 * infptrace.c (fetch_register, store_register): Ditto.
2646 * infcmd.c (default_print_registers_info): Ditto.
2647 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
2648 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
2649 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
2650 * hpux-thread.c (hpux_thread_fetch_registers)
2651 (hpux_thread_store_registers): Ditto.
2652 * hppah-nat.c (store_inferior_registers, fetch_register):
2653 * findvar.c (value_from_register): Ditto.
2654 * dve3900-rom.c (fetch_bitmapped_register):
2655 * cris-tdep.c (cris_gdbarch_init): Ditto.
2656 * alpha-tdep.h: Ditto.
2657 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
2658
2659 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
2660 DEPRECATED_REGISTER_RAW_SIZE from comments.
2661 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
2662 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
2663 DEPRECATED_REGISTER_RAW_SIZE.
2664 * findvar.c (value_of_register): Simplify by assuming that the
2665 registers raw and virtual sizes are identical.
2666 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
2667 comment.
2668 * arch-utils.c (generic_register_size): Simplify by assuming
2669 register_type.
2670
2671 * regcache.c (legacy_read_register_gen, real_register)
2672 (legacy_write_register_gen): Delete, not used.
2673
2674 * regcache.c (struct regcache_descr): Delete legacy_p.
2675 (init_legacy_regcache_descr): Delete function.
2676 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
2677 Do not use deprecated register functions.
2678 (regcache_raw_read, deprecated_write_register_gen):
2679 (deprecated_read_register_gen, regcache_raw_write): Delete code
2680 predicated on legacy_p.
2681 (register_size): Delete check against register raw size.
2682
2683 * cris-tdep.c (cris_register_type): Replace
2684 cris_register_virtual_type.
2685 (cris_gdbarch_init): Update, set register_type.
2686
2687 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
2688 * gdbarch.h, gdbarch.c: Re-generate.
2689 * arm-tdep.c (arm_frameless_function_invocation): Delete.
2690 (arm_gdbarch_init) Do not set frameless function invocation.
2691 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
2692 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
2693 * frv-tdep.c (frv_frameless_function_invocation): Delete.
2694 (frv_gdbarch_init): Do not set frameless function invocation.
2695 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
2696 * sh-tdep.c (sh_gdbarch_init): Ditto.
2697 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
2698 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2699 * avr-tdep.c (avr_gdbarch_init): Ditto.
2700
2701 * blockframe.c (legacy_frame_chain_valid): Delete function.
2702
2703 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
2704 and pc. Update comments.
2705 (pc_in_dummy_frame): Delete function.
2706 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
2707 use the "id".
2708 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
2709 call_hi, top and pc, use the id.
2710 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
2711
2712 * dummy-frame.c: Include "gdb_string.h".
2713 (generic_save_call_dummy_addr, generic_push_dummy_frame)
2714 (generic_save_dummy_frame_tos): Delete.
2715 (dummy_frame_push): New function, replaces above.
2716 * dummy-frame.h: Update copyright.
2717 (dummy_frame_push): Declare.
2718 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
2719 (generic_save_call_dummy_addr): Delete declarations.
2720 * infcall.c: Include "dummy-frame.h".
2721 (call_function_by_hand): Add locals caller_regcache,
2722 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
2723 with call to frame_save_as_regcache plus cleanup. Delete calls to
2724 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
2725 Move clear_proceed_status to just before the resume, add call to
2726 dummy_frame_push (discard cleanup).
2727 * Makefile.in (infcall.o): Add $(dummy_frame_h).
2728 (dummy-frame.o): Add $(gdb_string_h).
2729
2730 2004-08-01 Andrew Cagney <cagney@gnu.org>
2731
2732 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
2733 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
2734 * dummy-frame.c (find_dummy_frame): Delete.
2735 (struct dummy_frame_cache, dummy_frame_sniffer)
2736 (dummy_frame_prev_register, dummy_frame_this_id)
2737 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
2738 frame unwinder using a dummy_frame_cache.
2739
2740 2004-08-01 Andrew Cagney <cagney@gnu.org>
2741
2742 * frame.h (frame_save_as_regcache): Declare.
2743 * frame.c (frame_save_as_regcache): New function.
2744 (do_frame_read_register): Replace do_frame_unwind_register.
2745 (frame_pop): Use frame_save_as_regcache.
2746 * dummy-frame.c (generic_push_dummy_frame): Use
2747 frame_save_as_regcache.
2748
2749 2004-08-01 Joel Brobecker <brobecker@gnat.com>
2750
2751 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
2752 file as included until we record the first line in the linetable.
2753
2754 2004-08-01 Andrew Cagney <cagney@gnu.org>
2755
2756 * frame.h (deprecated_pop_dummy_frame)
2757 (deprecated_read_register_dummy)
2758 (deprecated_generic_find_dummy_frame): Delete.
2759 * dummy-frame.c (deprecated_generic_find_dummy_frame)
2760 (deprecated_read_register_dummy)
2761 (deprecated_find_dummy_frame_regcache)
2762 (discard_innermost_dummy)
2763 (deprecated_pop_dummy_frame): Delete.
2764 (dummy_frame_this_id): Simplify.
2765 (struct dummy_frame): Delete "fp" and "sp".
2766 (find_dummy_frame): Simplify.
2767 (generic_push_dummy_frame): Do not set "fp" or "sp".
2768 (fprint_dummy_frames): Do not print "fp" and "sp"
2769
2770 2004-08-01 Mark Kettenis <kettenis@gnu.org>
2771
2772 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
2773 (struct i386_insn): New structure.
2774 (i386_match_insn): New function.
2775 (i386_frame_setup_skip_insns): New variable.
2776 (i386_analyze_frame_setup): Change to use i386_match_insn and the
2777 array i386_frame_setup_insns of instructions that should be
2778 skipped inside the frame setup sequence.
2779
2780 2004-08-01 Andrew Cagney <cagney@gnu.org>
2781
2782 * frame.h (deprecated_frame_xmalloc_with_cleanup)
2783 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2784 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2785 * stack.c (frame_info): Delete references to
2786 DEPRECATED_FRAME_INIT_SAVED_REGS and
2787 deprecated_get_frame_saved_regs.
2788 * frame.c (struct frame_info): Delete saved_regs and extra_info.
2789 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
2790 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
2791 (frame_unwind_register_signed)
2792 (frame_unwind_register_unsigned)
2793 (frame_unwind_unsigned_register): Use register_size.
2794 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
2795 (deprecated_frame_xmalloc_with_cleanup)
2796 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2797 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2798
2799 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
2800 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
2801 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
2802 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
2803
2804 * infcall.c (call_function_by_hand): Do not use
2805 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
2806 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
2807 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
2808 DEPRECATED_STACK_ALIGN.
2809
2810 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
2811
2812 Committed by Andrew Cagney.
2813 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
2814
2815 2004-08-01 Andrew Cagney <cagney@gnu.org>
2816
2817 * mips-tdep.c (mips16_frame_cache)
2818 (mips16_frame_this_id, mips16_frame_prev_register)
2819 (mips16_frame_unwind, mips16_frame_sniffer)
2820 (mips16_frame_base_address, mips16_frame_base)
2821 (mips16_frame_base_sniffer, mips32_frame_cache)
2822 (mips32_frame_this_id, mips32_frame_prev_register)
2823 (mips32_frame_unwind, mips32_frame_sniffer)
2824 (mips32_frame_base_address, mips32_frame_base)
2825 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
2826 separate heuristic mips16 and mips32 unwinders.
2827 (mips_stub_frame_cache, mips_stub_frame_this_id)
2828 (mips_stub_frame_prev_register)
2829 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
2830 (mips_stub_frame_base_address, mips_stub_frame_base)
2831 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
2832 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
2833 match true mdebug frames.
2834 (non_heuristic_proc_desc): Add forward declaration.
2835
2836 2004-08-01 Andrew Cagney <cagney@gnu.org>
2837
2838 * config/mips/tm-irix6.h: Delete file.
2839 * config/mips/tm-irix5.h: Delete file.
2840 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
2841 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
2842
2843 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
2844 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
2845 * config/nm-gnu.h (NO_CORE_OPS): Delete.
2846 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
2847 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
2848 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
2849 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
2850 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
2851 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
2852 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
2853 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
2854 (TARGET_SIGNAL_RAW_VALUES): Delete.
2855 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
2856 Delete.
2857 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
2858 (TARGET_HW_WATCH_LIMIT): Delete.
2859 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
2860 * minimon.h: Delete file.
2861
2862 * trad-frame.c (trad_frame_get_this_base)
2863 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
2864 functions.
2865 * trad-frame.h (trad_frame_set_this_base)
2866 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
2867
2868 2004-07-31 Andrew Cagney <cagney@gnu.org>
2869
2870 * trad-frame.c (trad_frame_get_prev_register): Rename
2871 trad_frame_get_prev_register.
2872 * vax-tdep.c (vax_frame_prev_register): Update.
2873 * trad-frame.h: Update.
2874 * trad-frame.c (trad_frame_get_register): Update.
2875 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
2876 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
2877 Update.
2878 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
2879 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
2880 Update.
2881 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
2882 Update.
2883 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
2884 Update.
2885 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
2886 Update.
2887 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
2888 Update.
2889 * s390-tdep.c (s390_frame_prev_register)
2890 (s390_stub_frame_prev_register)
2891 (s390_sigtramp_frame_prev_register): Update.
2892 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
2893 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
2894 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
2895 * m88k-tdep.c (m88k_frame_prev_register)
2896 * m68hc11-tdep.c (m68hc11_frame_prev_register)
2897 * m32r-tdep.c (m32r_frame_prev_register): Update.
2898 * hppa-tdep.c (hppa_frame_prev_register_helper)
2899 * frv-tdep.c (frv_frame_prev_register): Update.
2900 * d10v-tdep.c (d10v_frame_prev_register): Update.
2901 * cris-tdep.c (cris_frame_prev_register): Update.
2902 * avr-tdep.c (avr_frame_prev_register): Update.
2903 * arm-tdep.c (arm_prologue_prev_register)
2904 (arm_sigtramp_prev_register): Update.
2905
2906 2004-07-31 Andrew Cagney <cagney@gnu.org>
2907
2908 * frame.h (legacy_saved_regs_unwind)
2909 (legacy_frame_chain_valid, legacy_frame_p)
2910 (enum frame_type): Delete UNKNOWN_FRAME.
2911 * dummy-frame.c (dummy_frame_this_id): Simplify.
2912 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
2913 * frame.c (struct frame_info): Delete the field "type".
2914 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
2915 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
2916 (legacy_saved_regs_unwind, legacy_frame_p)
2917 (frame_type_from_pc): Delete.
2918 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
2919 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
2920
2921 2004-07-31 Mark Kettenis <kettenis@gnu.org>
2922
2923 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
2924 indentation.
2925
2926 * mips-nat.c: Remove file.
2927 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
2928 (mips-nat.o): Remove dependency.
2929
2930 * infptrace.c: Update copyright year.
2931 (fetch_register): Pass NULL in regcache_raw_supply call instead of
2932 explicitly setting the buffer to all zeroes.
2933
2934 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
2935 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
2936
2937 2004-07-30 Andrew Cagney <cagney@gnu.org>
2938
2939 * GDB 6.2 released from gdb_6_2-branch.
2940
2941 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
2942
2943 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
2944
2945 * exec.c (exec_file_attach):
2946 * nto-tdep.c (nto_find_and_open_solib):
2947 * pa64solib.c (pa64_solib_sizeof_symbol_table):
2948 * solib.c (solib_open):
2949 * somsolib.c (som_solib_sizeof_symbol_table):
2950 * source.c (is_regular_file, openp, open_source_file):
2951 * symfile.c (symfile_bfd_open):
2952 * wince.c (upload_to_device): Differentiate between the search for
2953 binary and source files.
2954
2955 2004-07-30 Andrew Cagney <cagney@gnu.org>
2956
2957 * complaints.c (_initialize_complaints): Pass NULL to
2958 add_setshow_zinteger_cmd for help_doc.
2959 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
2960
2961 2004-07-30 Andrew Cagney <cagney@gnu.org>
2962
2963 Fix PR i18n/761.
2964 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
2965 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
2966 $(PACKAGE).pot and update-po.
2967 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
2968 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
2969 (update-po): New rules.
2970 (localedir): Define using autoconf.
2971 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
2972 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
2973 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
2974 * configure.in: Generate CATALOGS and LINGUAS from contents of
2975 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
2976 * configure: Re-generate.
2977 * po/gdbtext: New file
2978
2979 2004-07-30 Jerome Guitton <guitton@gnat.com>
2980
2981 * MAINTAINERS: Reorder Write After Approval list in alphabetical
2982 order.
2983
2984 2004-07-30 David Lecomber <dsl@sources.redhat.com>
2985
2986 * dwarf2read.c (read_file_scope): Set producer if attribute
2987 present.
2988 (struct dwarf2_cu): Added new member producer.
2989
2990 2004-07-30 Jerome Guitton <guitton@gnat.com>
2991
2992 * inflow.c (kill_command): release file handles in BFD.
2993 * exec.c (exec_file_attach): Ditto.
2994 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
2995
2996 2004-07-29 Andrew Cagney <cagney@gnu.org>
2997
2998 * PROBLEMS (mips-irix): Note that it is broken.
2999
3000 2004-07-29 Andrew Cagney <cagney@gnu.org>
3001
3002 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
3003 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
3004
3005 * config/xm-nbsd.h: Delete file.
3006 * config/arm/xm-nbsd.h: Delete file.
3007 * config/i386/xm-nbsd.h: Delete file.
3008 * config/ns32k/xm-nbsd.h: Delete file.
3009 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
3010 * config/i386/nbsdelf.mh (XM_FILE): Delete.
3011 * config/i386/nbsdaout.mh (XM_FILE): Delete.
3012 * config/arm/nbsdelf.mh (XM_FILE): Delete.
3013 * config/arm/nbsdaout.mh (XM_FILE): Delete.
3014
3015 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
3016 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
3017 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
3018 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
3019 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
3020 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
3021
3022 * config/powerpc/xm-linux.h: Delete empty file.
3023 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
3024 * config/powerpc/linux.mh (XM_FILE): Delete.
3025 * config/m68k/xm-linux.h: Delete empty file.
3026 * config/m68k/linux.mh (XM_FILE): Delete.
3027 * config/ia64/xm-linux.h: Delete empty file.
3028 * config/ia64/linux.mh (XM_FILE): Delete.
3029 * config/arm/xm-linux.h: Delete empty file.
3030 * config/arm/linux.mh (XM_FILE): Delete.
3031
3032 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3033 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
3034 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3035 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
3036 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3037 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
3038 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3039 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
3040
3041 * config/m68k/xm-m68k.h: Delete file.
3042 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
3043 copyright.
3044 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
3045 * config/pa/xm-linux.h: Delete empty file.
3046 * config/pa/linux.mh (XM_FILE): Delete.
3047 * config/i386/xm-i386.h: Delete empty file.
3048 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
3049 "i386/xm-i386.h".
3050 * config/i386/obsdaout.mh (XM_FILE): Delete.
3051 * config/i386/obsd64.mh (XM_FILE): Delete.
3052 * config/i386/fbsd64.mh (XM_FILE): Delete.
3053 * config/i386/nto.mh (XM_FILE): Delete.
3054 * config/i386/obsd.mh (XM_FILE): Delete.
3055 * config/i386/linux64.mh (XM_FILE): Delete.
3056 * config/i386/linux.mh (XM_FILE): Delete.
3057 * config/i386/i386sol2.mh (XM_FILE): Delete.
3058 * config/i386/i386gnu.mh (XM_FILE): Delete.
3059 * config/i386/fbsd.mh (XM_FILE): Delete.
3060 * config/i386/nbsd64.mh (XM_FILE): Delete.
3061
3062 2004-07-29 Andrew Cagney <cagney@gnu.org>
3063
3064 * config/pa/xm-linux.h: Do not include "floatformat.h".
3065 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3066 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3067 * config/i386/xm-i386.h: Do not include "floatformat.h".
3068 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3069 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3070 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3071 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
3072 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
3073 GDB_HOST_LONG_DOUBLE_FORMAT instead.
3074 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
3075 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
3076 * configure, config.in: Regenerate.
3077 * configure.host (gdb_host_float_format, gdb_host_double_format)
3078 (gdb_host_long_double_format): Set according to the host.
3079
3080 2004-07-29 Andrew Cagney <cagney@gnu.org>
3081
3082 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
3083
3084 2004-07-28 Andrew Cagney <cagney@gnu.org>
3085
3086 * PROBLEMS: Mention threads/1650.
3087 * NEWS: Mention the NPTL fix.
3088
3089 2004-07-28 Andrew Cagney <cagney@gnu.org>
3090
3091 * cli/cli-decode.c (add_setshow_cmd): Delete function.
3092 (add_setshow_cmd_full): Make static.
3093 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
3094 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
3095 * cli/cli-decode.c (add_setshow_filename_cmd)
3096 (add_setshow_string_cmd): New functions.
3097 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
3098 * mips-tdep.c (_initialize_mips_tdep): Update.
3099 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
3100 * cli/cli-logging.c (_initialize_cli_logging): Update.
3101 * complaints.c (_initialize_complaints): Update.
3102 * remote.c (_initialize_remote): Update.
3103
3104 2004-07-28 Andrew Cagney <cagney@gnu.org>
3105
3106 * cli/cli-decode.c (add_setshow_zinteger_cmd)
3107 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
3108 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
3109 print parameters. Make string parameters constant.
3110 * command.h: Update. Update copyright.
3111 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
3112 * observer.c (_initialize_observer): Ditto.
3113 * frame.c (_initialize_frame): Ditto.
3114 * complaints.c (_initialize_complaints): Ditto.
3115 * maint.c (_initialize_maint_cmds): Ditto.
3116 * target.c (initialize_targets): Ditto.
3117 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
3118 * infcall.c (_initialize_infcall): Ditto.
3119 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3120 * m32r-rom.c (_initialize_m32r_rom): Ditto.
3121 * remote-rdi.c (_initialize_remote_rdi): Ditto.
3122 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
3123 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3124
3125 2004-07-28 Andrew Cagney <cagney@gnu.org>
3126
3127 * gdbtypes.c (lookup_primitive_typename): Delete function.
3128 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
3129 * ada-lex.l: Use language_lookup_primitive_type_by_name.
3130 * gdbtypes.c (lookup_typename): Ditto.
3131 * f-exp.y (yylex): Ditto.
3132 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
3133
3134 * scm-lang.c (c_builtin_types): Delete extern declaration.
3135 (scm_language_defn): Replace
3136 string_char_type and primitive_type_vector with
3137 la_language_arch_info.
3138 * jv-lang.c (java_language_defn): Replace
3139 string_char_type and primitive_type_vector with
3140 la_language_arch_info.
3141 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
3142 c_builtin_types in comment.
3143 * c-lang.h (struct language_arch_info): Declare opaque.
3144 (c_language_arch_info): Declare.
3145 (c_builtin_types): Delete declaration.
3146 * c-lang.c (c_language_arch_info): Set string_char_type to
3147 builtin_char, not builtin_true_char. Make global.
3148 (c_builtin_types): Delete array.
3149 (asm_language_defn, minimal_language_defn): Replace
3150 string_char_type and primitive_type_vector with
3151 la_language_arch_info.
3152
3153 2004-07-28 Andrew Cagney <cagney@gnu.org>
3154
3155 * gdbtypes.h (struct builtin_type): Rename true_char to
3156 builtin_true_char.
3157 * gdbtypes.c (gdbtypes_post_init): Update.
3158 * c-lang.c (arch_info): New function.
3159 (enum c_primitive_types): New enum.
3160 (c_language_defn): Instead of string_char_type and
3161 primitive_type_vector set la_language_arch_info.
3162
3163 2004-07-28 Andrew Cagney <cagney@gnu.org>
3164
3165 * language.h (struct language_arch_info): Fix typo
3166 s/primative/primitive/.
3167 * gdbtypes.c (lookup_primitive_typename): Ditto.
3168 * language.c (language_lookup_primitive_type_by_name)
3169 (unknown_language_arch_info): Ditto.
3170
3171 2004-07-27 Andrew Cagney <cagney@gnu.org>
3172
3173 * defs.h (enum language): Add nr_languages.
3174 * language.h (struct language_arch_info): Define.
3175 (struct language_defn): Add la_language_arch_info.
3176 (language_lookup_primative_type_by_name): Declare.
3177 (language_string_char_type): Declare.
3178 * language.c (_initialize_language, language_gdbarch_post_init)
3179 (struct language_gdbarch, language_gdbarch_data): Implement
3180 per-architecture language information.
3181 (unknown_language_arch_info, language_string_char_type)
3182 (language_lookup_primative_type_by_name): New functions.
3183 (unknown_language_defn, auto_language_defn)
3184 (local_language_defn): Set la_language_arch_info to
3185 unknown_language_arch_info.
3186 (unknown_builtin_types): Delete.
3187 * gdbtypes.c (lookup_primitive_typename): Use
3188 language_lookup_primative_type_by_name.
3189 (create_string_type): Use language_string_char_type.
3190 * values.c (value_from_string): Use language_string_char_type.
3191 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
3192 * p-lang.c (pascal_language_defn): Ditto.
3193 * m2-lang.c (m2_language_defn): Ditto.
3194 * jv-lang.c (java_language_defn): Ditto.
3195 * objc-lang.c (objc_language_defn): Ditto.
3196 * f-lang.c (f_language_defn): Ditto.
3197 * c-lang.c (c_language_defn, cplus_language_defn)
3198 (asm_language_defn, minimal_language_defn): Ditto.
3199
3200 2004-07-27 Andrew Cagney <cagney@gnu.org>
3201
3202 * gdbtypes.h (struct builtin_type): Declare.
3203 (builtin_type): Declare.
3204 * d10v-tdep.c (d10v_register_type): Use builtin_type.
3205 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
3206 (gdbtypes_post_init): New function.
3207 (builtin_type): New function.
3208
3209 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
3210
3211 * remote-m32r-sdi.c: Fix breakpoint bug.
3212 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
3213 recv_char_data, recv_long_data): New functions to replace communication
3214 sequences.
3215
3216 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
3217
3218 Document PR threads/1650.
3219 * PROBLEMS (Threads): Document problem with many threads
3220
3221 2004-07-26 Andrew Cagney <cagney@gnu.org>
3222
3223 * gdb-mi.el: Move from here ...
3224 * mi/gdb-mi.el: ... to here.
3225
3226 2004-07-26 Andrew Cagney <cagney@gnu.org>
3227
3228 Problem reported by Ashley Pittman <ashley@quadrics.com>.
3229 * main.c (captured_main): When in batch mode always detach.
3230
3231 2004-07-26 Andrew Cagney <cagney@gnu.org>
3232
3233 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
3234 and h8300 as broken.
3235 * NEWS: END-OF-LIFE frame compatibility module.
3236 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
3237 specific comments.
3238
3239 2004-07-26 Andrew Cagney <cagney@gnu.org>
3240
3241 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
3242 * xcoffsolib.c (_initialize_xcoffsolib): Update.
3243 * wince.c (_initialize_wince): Update.
3244 * win32-nat.c (_initialize_win32_nat): Update.
3245 * varobj.c (_initialize_varobj): Update.
3246 * valops.c (_initialize_valops): Update.
3247 * utils.c (initialize_utils, initialize_utils): Update.
3248 * tui/tui-win.c (_initialize_tui_win): Update.
3249 * top.c (init_main): Update.
3250 * symfile.c (_initialize_symfile): Update.
3251 * source.c (_initialize_source): Update.
3252 * somsolib.c (_initialize_som_solib): Update.
3253 * solib.c (_initialize_solib): Update.
3254 * solib-frv.c (_initialize_frv_solib): Update.
3255 * serial.c (_initialize_serial): Update.
3256 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
3257 * remote.c (_initialize_remote, _initialize_remote): Update.
3258 * remote-vx.c (_initialize_vx): Update.
3259 * remote-utils.c (_initialize_sr_support): Update.
3260 * remote-sds.c (_initialize_remote_sds): Update.
3261 * remote-mips.c (_initialize_remote_mips): Update.
3262 * remote-e7000.c (_initialize_remote_e7000): Update.
3263 * proc-api.c (_initialize_proc_api): Update.
3264 * printcmd.c: Update.
3265 * parse.c (_initialize_parse): Update.
3266 * pa64solib.c (_initialize_pa64_solib): Update.
3267 * p-valprint.c (_initialize_pascal_valprint): Update.
3268 * monitor.c (_initialize_remote_monitors): Update.
3269 * mips-tdep.c (_initialize_mips_tdep): Update.
3270 * mcore-tdep.c (_initialize_mcore_tdep): Update.
3271 * maint.c (_initialize_maint_cmds): Update.
3272 * lin-lwp.c (_initialize_lin_lwp): Update.
3273 * language.c (_initialize_language): Update.
3274 * kod.c (_initialize_kod): Update.
3275 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
3276 * i386-tdep.c (_initialize_i386_tdep): Update.
3277 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
3278 * gdbarch.sh: Update.
3279 * gdbarch.c: Re-generate.
3280 * gdb-events.sh: Update.
3281 * gdb-events.c: Re-generate.
3282 * frame.c (_initialize_frame): Update.
3283 * exec.c: Update.
3284 * demangle.c (_initialize_demangler): Update.
3285 * dcache.c (_initialize_dcache): Update.
3286 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
3287 * cp-valprint.c (_initialize_cp_valprint): Update.
3288 * corefile.c (_initialize_core): Update.
3289 * command.h: Update.
3290 * cli/cli-decode.h: Update.
3291 * cli/cli-cmds.c (init_cli_cmds): Update.
3292 * charset.c (_initialize_charset): Update.
3293 * breakpoint.c (_initialize_breakpoint): Update.
3294 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
3295 * alpha-tdep.c (_initialize_alpha_tdep): Update.
3296 * aix-thread.c (_initialize_aix_thread): Update.
3297
3298 2004-07-24 Mark Kettenis <kettenis@gnu.org>
3299
3300 Partial fix for PR backtrace/1718.
3301 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
3302 that GCC migrates into the prolugue. Don't handle any
3303 instructions that clobber %ebx.
3304
3305 2004-07-23 Andrew Cagney <cagney@gnu.org>
3306
3307 Use regcache_raw_collect instead of regcache_collect.
3308 * regcache.h (regcache_collect): Delete declaration.
3309 * regcache.c (regcache_colect): Delete function.
3310 * win32-nat.c (do_child_store_inferior_registers): Update.
3311 * sol-thread.c (sol_thread_store_registers): Update.
3312 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
3313 * rs6000-nat.c (store_register): Update.
3314 * remote.c (store_register_using_P, remote_store_registers): Update.
3315 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
3316 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
3317 (fill_vrregset, store_spe_registers, fill_gregset)
3318 (fill_gregset): Update.
3319 * nto-procfs.c (procfs_store_registers): Update.
3320 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
3321 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
3322 * m68klinux-nat.c (store_register, fill_gregset): Update.
3323 * m68k-tdep.c (fill_gregset): Update.
3324 * infptrace.c (store_register): Update.
3325 * i386-nto-tdep.c (i386nto_regset_fill): Update.
3326 * i386-linux-nat.c (store_register, fill_gregset): Update.
3327 * hppa-linux-nat.c (fill_gregset): Update.
3328 * go32-nat.c (store_register): Update.
3329 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
3330 (store_fp_regs): Update.
3331 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
3332 (store_nwfpe_extended, store_fpregister, store_fpregs)
3333 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
3334 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
3335 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
3336 (store_regs_user_thread, store_regs_kernel_thread): Update.
3337
3338 2004-07-24 Mark Kettenis <kettenis@gnu.org>
3339
3340 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
3341 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
3342 encoding.
3343 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
3344 member of `struct comp_unit'.
3345
3346 2004-07-23 Andrew Cagney <cagney@gnu.org>
3347
3348 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
3349 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
3350
3351 2004-07-23 Martin Hunt <hunt@redhat.com>
3352 Kevin Buettner <kevinb@redhat.com>
3353
3354 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
3355 alignment was being added to the offset instead of multiplied.
3356
3357 2004-07-23 Mark Kettenis <kettenis@gnu.org>
3358
3359 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
3360 changed signal trampoline in OpenBSD 3.5-current.
3361
3362 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
3363 <machine/pcb.h> and "bsd-kvm.h".
3364 (sparc64nbsd_supply_pcb): New function.
3365 (_initialize_sparc64nbsd_nat): Renamed from
3366 _initialize_sparcnbsd_nat. Enable libkvm interface.
3367 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
3368 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
3369 (LOADLIBES): New variable.
3370
3371 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
3372
3373 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
3374
3375 2004-07-21 Andrew Cagney <cagney@gnu.org>
3376
3377 Use regcache_raw_supply instead of supply_register.
3378 * regcache.h (supply_register): Delete declaration.
3379 * regcache.c (supply_register): Delete function.
3380 * wince.c (do_child_fetch_inferior_registers): Update.
3381 * win32-nat.c (do_child_fetch_inferior_registers)
3382 (fetch_elf_core_registers): Update.
3383 * v850ice.c (v850ice_fetch_registers): Update.
3384 * thread-db.c (thread_db_store_registers): Update.
3385 * sol-thread.c (sol_thread_store_registers): Update.
3386 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
3387 * rs6000-nat.c (fetch_register): Update.
3388 * rom68k-rom.c (rom68k_supply_one_register): Update.
3389 * remote.c (remote_wait, remote_async_wait): Update.
3390 * remote-st.c (get_hex_regs): Update.
3391 * remote-sim.c (gdbsim_fetch_register): Update.
3392 * remote-sds.c (sds_fetch_registers): Update.
3393 * remote-rdp.c (remote_rdp_fetch_register): Update.
3394 * remote-rdi.c (arm_rdi_fetch_registers): Update.
3395 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
3396 * remote-m32r-sdi.c (m32r_fetch_register): Update.
3397 * remote-hms.c (init_hms_cmds): Update.
3398 * remote-est.c (init_est_cmds): Update.
3399 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
3400 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
3401 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
3402 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
3403 (fetch_register, supply_vrregset, supply_vrregset)
3404 (fetch_spe_registers): Update.
3405 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
3406 * monitor.c (monitor_supply_register): Update.
3407 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
3408 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
3409 (mipsnbsd_supply_fpreg): Update.
3410 * mips-nat.c (fetch_inferior_registers)
3411 (fetch_core_registers): Update.
3412 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
3413 (supply_fpregset, mips64_supply_gregset)
3414 (mips64_supply_fpregset): Update.
3415 * m68klinux-nat.c (fetch_register, supply_gregset)
3416 (supply_fpregset): Update.
3417 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
3418 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
3419 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
3420 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
3421 * infptrace.c (fetch_register): Update.
3422 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
3423 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
3424 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
3425 (gnu_fetch_registers, gnu_store_registers): Update.
3426 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
3427 * i386-linux-nat.c (fetch_register, supply_gregset)
3428 (dummy_sse_values): Update.
3429 * hpux-thread.c (hpux_thread_fetch_registers): Update.
3430 * hppah-nat.c (fetch_register): Update.
3431 * hppa-linux-nat.c (fetch_register, supply_gregset)
3432 (supply_fpregset): Update.
3433 * go32-nat.c (fetch_register): Update.
3434 * dve3900-rom.c (fetch_bitmapped_register)
3435 (_initialize_r3900_rom): Update.
3436 * cris-tdep.c (supply_gregset): Update.
3437 * abug-rom.c (init_abug_cmds): Update.
3438 * core-aout.c (fetch_core_registers): Update.
3439 * armnbsd-nat.c (supply_gregset, supply_fparegset)
3440 (fetch_register, fetch_fp_register): Update.
3441 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
3442 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
3443 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
3444 * alphanbsd-tdep.c (fetch_core_registers): Update.
3445 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
3446 * alpha-nat.c (fetch_osf_core_registers)
3447 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
3448 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
3449 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
3450
3451 2004-07-21 Andrew Cagney <cagney@gnu.org>
3452
3453 * PROBLEMS: Mention breakpoints/1702.
3454 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
3455 that is known to work.
3456
3457 2004-07-21 Andrew Cagney <cagney@gnu.org>
3458
3459 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
3460 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
3461 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
3462 (handle_inferior_event): Wrap call to deprecated
3463 IGNORE_HELPER_CALL in #ifdef.
3464 * config/mips/tm-nbsd.h: Update.
3465
3466 2004-07-20 Jim Blandy <jimb@redhat.com>
3467
3468 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
3469 bfd_mach_ppc has no segment registers.
3470
3471 Include PowerPC SPR numbers for special-purpose registers.
3472 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
3473 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
3474 new member in initializer.
3475 (S, S4, SN4, S64): New macros for defining special-purpose
3476 registers.
3477 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
3478 registers_403, registers_403GC, registers_505, registers_860,
3479 registers_601, registers_602, registers_603, registers_604,
3480 registers_750, registers_e500): Use them.
3481
3482 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
3483 replace references with expression used to initialize variable.
3484
3485 2004-07-20 Andrew Cagney <cagney@gnu.org>
3486
3487 * breakpoint.c (deprecated_read_memory_nobpt): Rename
3488 read_memory_nobpt.
3489 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
3490 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
3491 (s390_sigtramp_frame_sniffer): Update.
3492 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
3493 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
3494 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
3495 (mips32_fetch_instruction): Update.
3496 * mcore-tdep.c (get_insn): Update.
3497 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
3498 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
3499 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
3500 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3501 (i386_linux_rt_sigtramp_start): Update.
3502 * i386-linux-nat.c (child_resume): Update.
3503 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
3504 * hppa-linux-tdep.c (insns_match_pattern): Update.
3505 * gdbcore.h: Update.
3506 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
3507 * frame.c (safe_frame_unwind_memory): Update.
3508 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
3509 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
3510 * alpha-tdep.c (alpha_read_insn): Update.
3511
3512 2004-07-20 Andrew Cagney <cagney@gnu.org>
3513
3514 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
3515 containing both bytes and mask. Add "frame_type".
3516 * tramp-frame.c (tramp_frame_start): Update.
3517 (tramp_frame_prepend_unwinder): Update.
3518 * mips-linux-tdep.c (mips_linux_o32_sigframe)
3519 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
3520 (mips_linux_n64_rt_sigframe): Update. Make "static const".
3521 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
3522
3523 2004-07-19 Eli Zaretskii <eliz@gnu.org>
3524
3525 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
3526 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
3527 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
3528 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
3529
3530 2004-07-17 Andrew Cagney <cagney@gnu.org>
3531
3532 * NEWS, PROBLEMS: Update for 6.2.
3533
3534 * README: Update to 6.2.
3535
3536 * utils.c (xvasprintf): Call xstrvprintf.
3537
3538 * parse.c: Update copyright.
3539 (null_post_parser): Eliminate ARGSUSED.
3540
3541 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
3542 * tui/tui-win.c (tui_get_cmd_list): Ditto.
3543 * symfile-mem.c (_initialize_symfile_mem): Ditto.
3544
3545 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
3546 * ppc-linux-nat.c: Use "Linux kernel".
3547 * hppa-linux-tdep.c: Use GNU/Linux.
3548 * hppa-linux-nat.c: Use GNU/Linux.
3549 * dwarfread.c: Add [sic] to use of Linux.
3550
3551 * hppa-linux-nat.c: Do not include <string.h>.
3552 (supply_fpregset): Remove "register" attribute.
3553
3554 * solib-frv.c (fetch_loadmap): Use xfree, not free.
3555
3556 2004-07-17 Mark Kettenis <kettenis@gnu.org>
3557
3558 * configure.in: Define _MSE_INT_H on Solaris 9 too.
3559 * configure, config.in: Regenerated.
3560
3561 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
3562 "bsd-kvm.h".
3563 (vaxbsd_supply_pcb): New function.
3564 (_initialize_vaxbsd_nat): New prototype and function.
3565 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
3566 solib-sunos.o.
3567 (LOADLIBES): New variable.
3568 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3569 (LOADLIBES): New variable.
3570 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3571 (LOADLIBES): New variable.
3572 * Makefile.in (vaxbsd-nat.o): Update dependencies.
3573
3574 2004-07-16 Andrew Cagney <cagney@gnu.org>
3575
3576 * defs.h (event_loop_p): Replace variable declaration with macro,
3577 always 1.
3578 * main.c (captured_main): Delete options "-async" and "-noasync".
3579 (event_loop_p): Delete variable.
3580 * NEWS: Mention that "-async" and "-noasync" were removed.
3581
3582 2004-07-16 Andrew Cagney <cagney@gnu.org>
3583
3584 * remote-m32r-sdi.c: Re-indent.
3585
3586 2004-07-16 Jim Blandy <jimb@redhat.com>
3587
3588 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
3589 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
3590 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
3591 missing MPC823 SPRs.
3592 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
3593 incorrect. (This was corrected in GDB's register name tables on
3594 2004-07-14.)
3595
3596 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
3597 should be "esasrr" ("ESA Save and Restore Register").
3598
3599 2004-07-16 Andrew Cagney <cagney@gnu.org>
3600
3601 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
3602 calls, no longer applicable. Update comments and rename parameter
3603 "step_frame" to "return_frame".
3604
3605 2004-07-16 Andrew Cagney <cagney@gnu.org>
3606
3607 * frame.c (fprint_field): New function.
3608 (fprint_frame_id): Use fprint_field.
3609
3610 2004-07-15 Joel Brobecker <brobecker@gnat.com>
3611
3612 * ada-lang.c (ada_language_defn): Remove commented out code.
3613
3614 2004-07-15 Jim Blandy <jimb@redhat.com>
3615
3616 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
3617 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
3618
3619 2004-07-14 Jim Blandy <jimb@redhat.com>
3620
3621 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
3622
3623 * ppc-tdep.h (ppc_num_vrs): New enum constant.
3624
3625 * ppc-tdep.h (ppc_num_srs): New enum constant.
3626
3627 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
3628 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
3629 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
3630 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
3631 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
3632 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
3633 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
3634 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
3635 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
3636 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
3637 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
3638 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
3639 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
3640 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
3641 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
3642 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
3643 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
3644 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
3645 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
3646 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
3647 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
3648 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
3649 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
3650 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
3651 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
3652 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
3653 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
3654 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
3655 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
3656 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
3657 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
3658 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
3659 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
3660 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
3661 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
3662 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
3663 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
3664 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
3665 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
3666 special-purpose register numbers.
3667
3668 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
3669 manual mentions 'md_twb', but many mention 'm_twb', and at that
3670 point in the register list.)
3671
3672 2004-07-14 Andrew Cagney <cagney@gnu.org>
3673
3674 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
3675 instead of "internal-error".
3676
3677 2004-07-10 Joel Brobecker <brobecker@gnat.com>
3678
3679 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
3680 that was inserted inside a comment.
3681
3682 2004-07-10 Randolph Chung <tausq@debian.org>
3683
3684 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
3685 function.
3686 (hppa_hpux_push_dummy_code): New function.
3687 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
3688 Set find_global_pointer method.
3689
3690 2004-07-10 Mark Kettenis <kettenis@gnu.org>
3691
3692 * NEWS: Mention BSD libkvm interface.
3693
3694 2004-07-10 Michael Snyder <msnyder@redhat.com>
3695
3696 * symfile.c (generic_load): Comment typo.
3697 * stack.c (get_selected_block): Ditto.
3698 * regcache.c (regcache_cooked_read): Ditto.
3699 * monitor.c (monitor_debug): Ditto.
3700 * mips-tdep.c (mips_read_pc): Ditto.
3701 * i386-linux-nat.c (ps_get_thread_area): Ditto.
3702 * gdb_mbuild.sh: Ditto.
3703 * gdbarch.sh: Ditto.
3704 * gdbarch.h: Ditto.
3705
3706 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
3707
3708 * ada-tasks.c: Remove file.
3709
3710 Remove ARI problems:
3711
3712 * ada-exp.y (write_var_from_sym): Reformat to put operator at
3713 beginning of line.
3714
3715 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
3716 Add comment.
3717 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
3718 (MIN_OF_SIZE): Rename min_of_size. Add comment.
3719 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
3720 (UMIN_OF_SIZE): Remove.
3721 (max_of_type): New function to replace orphan macro in gdbtypes.h
3722 (min_of_type): Ditto.
3723 (discrete_type_high_bound): Use max_of_type.
3724 (discrete_type_low_bound): Use min_of_type.
3725 (possible_user_operator_p): Move operator to beginning of line.
3726 (ada_is_variant_part): Ditto.
3727 (ensure_lval): Rewrite to avoid deprecated operations.
3728 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
3729 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
3730 (ada_enum_name): Remove assignments in 'if' statements.
3731 (build_ada_types): Add gdbarch parameter.
3732 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
3733 with gdbarch_data_register_post_init.
3734 Use add_setshow_uinteger_cmd rather than add_set_cmd and
3735 add_show_from_set.
3736
3737 * ada-valprint.c (inspect_it): Remove declaration.
3738 (repeat_count_threshold): Remove declaration.
3739 (ada_print_floating): Remove assignments in 'if' statements.
3740 (print_str): Move operator to beginning of line.
3741
3742 2004-07-08 Jim Blandy <jimb@redhat.com>
3743
3744 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
3745
3746 2004-07-08 Bob Rossi <bob@brasko.net>
3747
3748 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
3749
3750 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
3751
3752 * language.h (struct_language_defn): Add new function pointer:
3753 la_class_name_from_physname. Also add new prototype for
3754 language_class_name_from_physname.
3755 * language.c (language_class_name_from_physname): New function.
3756 (unk_lang_class_name): Ditto.
3757 (unknown_language_defn, auto_language_defn): Change
3758 to add unk_lang_class_name function pointer for
3759 la_class_name_from_physname.
3760 (local_language_defn): Ditto.
3761 * dwarf2read.c (guess_structure_name): Change to call
3762 language_class_name_from_physname.
3763 (determine_class_name): Ditto.
3764 * cp-support.c (class_name_from_physname): Renamed.
3765 (cp_class_name_from_physname): New name of function.
3766 * cp-support.h: Ditto.
3767 * c-lang.c (c_language_defn): Change to add NULL
3768 for class_name_from_physname function pointer.
3769 (cplus_language_defn): Change to add cp_class_name_from_physname.
3770 * jv-lang.c (java_class_name_physname): New function.
3771 (java_find_last_component): New static routine.
3772 (java_language_defn): Add java_class_name_from_physname pointer.
3773 * ada-lang.c (ada_language_defn): Change to add NULL
3774 for class_name_from_physname function pointer.
3775 * f-lang.c (f_language_defn): Ditto.
3776 * m2-lang.c (m2_language_defn): Ditto.
3777 * objc-lang.c (objc_language_defn): Ditto.
3778 * p-lang.c (pascal_language_defn): Ditto.
3779 * scm-lang.c (scm_language_defn): Ditto.
3780
3781 2004-07-06 Andrew Cagney <cagney@gnu.org>
3782
3783 Patch from Bart Robinson.
3784 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
3785 (O_LARGEFILE): Define to 0, if not defined.
3786
3787 2004-07-03 Mark Kettenis <kettenis@gnu.org>
3788
3789 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
3790 <machine/pcb.h> and "bsd-kvm.h".
3791 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
3792 (m68kbsd_supply_pcb): New function.
3793 (_initialize_m68kbsd_nat): New prototype and function.
3794 * Makefile.in (m68kbsd-nat.o): Update dependencies.
3795 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3796 (LOADLIBES): New variable.
3797 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3798 (LOADLIBES): New variable.
3799
3800 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
3801
3802 2004-07-03 Mark Kettenis <kettenis@gnu.org>
3803
3804 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
3805 <sys/proc.h>.
3806 (bsd_kvm_cmdlist): New variable.
3807 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
3808 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
3809 command and "kvm proc" command.
3810 * Makefile.in (bsd-kvm.o): Update dependencies.
3811
3812 2004-07-02 Mark Kettenis <kettenis@gnu.org>
3813
3814 * osabi.c: Update copyright year.
3815 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
3816 notes if EI_OSABI is set to ELFOSABI_HPUX.
3817
3818 2004-07-01 Michael Snyder <msnyder@redhat.com>
3819
3820 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
3821 that seems to have gotten whacked out of line.
3822
3823 2004-07-01 Mark Kettenis <kettenis@gnu.org>
3824
3825 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
3826 code.
3827
3828 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3829
3830 * ada-lang.c (decode_packed_array): Minor change to comment.
3831 (ada_value_slice_ptr): New function.
3832 (ada_value_slice): New function.
3833 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
3834 test. Don't know why it is there.
3835 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
3836 to avoid dereferencing huge arrays from which one is slicing.
3837 (empty_array): Correct to return an array rather than
3838 a subrange value.
3839 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
3840 on empty arrays (let'em use 'FIRST instead).
3841
3842 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3843
3844 Address complaints from gdb_ari.sh:
3845
3846 * ada-exp.y: Include gdb_string.h rather than string.h.
3847 (convert_char_literal): Reformat declaration.
3848 * ada-lang.h: Include opaque struct declaration for struct frame_info.
3849 * ada-lex.l: Change use of free to xfree (the macro would do so
3850 anyway, but this is harmless).
3851 Include gdb_string.h rather than string.h.
3852 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
3853
3854 * ada-lang.c (parse): Remove K&Rism in parameter list.
3855 (is_name_suffix): Correct Linux => GNU/Linux in comment.
3856
3857 2004-06-30 Mark Kettenis <kettenis@gnu.org>
3858
3859 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
3860 dead code.
3861
3862 2004-06-30 Mark Kettenis <kettenis@gnu.org>
3863
3864 * alphabsd-nat.c: Update copyright year.
3865 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
3866
3867 2004-06-29 Joel Brobecker <brobecker@gnat.com>
3868
3869 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
3870 (i386_cygwin_in_solib_call_trampoline): New function.
3871 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
3872 and skip_trampoline_code gdbarch methods.
3873
3874 2004-06-29 Jim Blandy <jimb@redhat.com>
3875
3876 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
3877 name actually used in the dependency lists.
3878
3879 2004-06-29 Randolph Chung <tausq@debian.org>
3880
3881 * NEWS (New native configurations): Mention GNU/Linux/hppa.
3882
3883 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
3884
3885 * win32-nat.c (child_pid_to_exec_file): New function.
3886 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
3887 functionality.
3888
3889 2004-06-28 Andrew Cagney <cagney@gnu.org>
3890
3891 * defs.h (xstrvprintf): Declare.
3892 * utils.c (xstrvprintf): New function.
3893 (internal_vproblem, xstrprintf, xasprintf)
3894 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
3895 * serial.c (serial_printf): Ditto.
3896 * complaints.c (vcomplaint): Ditto.
3897
3898 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
3899
3900 * infcmd.c (attach_command): Move call to target_terminal_inferior
3901 behind loading symbol table.
3902
3903 2004-06-28 Andrew Cagney <cagney@gnu.org>
3904
3905 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
3906 change - add back extern deprecated_ui_loop_hook declaration.
3907
3908 2004-06-28 Andrew Cagney <cagney@gnu.org>
3909
3910 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
3911 xstrprintf.
3912 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
3913 (c_value_of_variable): Ditto.
3914 * utils.c (internal_vproblem): Ditto.
3915 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
3916 * remote.c (add_packet_config_cmd): Ditto.
3917 * remote-rdp.c (rdp_set_command_line): Ditto.
3918 * regcache.c (regcache_dump): Ditto.
3919 * frv-tdep.c (new_variant, new_variant): Ditto.
3920 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
3921 (fbsd_find_memory_regions): Ditto.
3922 * breakpoint.c (create_thread_event_breakpoint)
3923 (create_breakpoints): Ditto.
3924 * aix-thread.c (aix_thread_pid_to_str): Ditto.
3925 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
3926
3927 2004-06-28 Joel Brobecker <brobecker@gnat.com>
3928
3929 * ada-lang.c: Re-indent file, with some massaging to help indent
3930 a bit when the result is otherwise really too ugly.
3931
3932 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3933
3934 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
3935 code_addr_p and special_addr_p to 'unsigned int'.
3936
3937 2004-06-27 Mark Kettenis <kettenis@gnu.org>
3938
3939 * i386v4-nat.c: Update copyright year and tweak comment.
3940 (regmap): Remove trailing comma.
3941 (supply_gregset): Rename local variable i to regnum. Call
3942 regcache_raw_supply instead of supply_register.
3943 (fill_gregset): Rename argument regno to regnum. Call
3944 regcache_raw_collect instead of regcache_collect.
3945
3946 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3947
3948 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
3949 and special_addr_p.
3950 (frame_id_build, frame_id_build_special): Update comments.
3951 (frame_id_build_wild): New prototype.
3952 * frame.c (frame_id_build, frame_id_build_special): Fill in new
3953 struct frame_id fields.
3954 (frame_id_build_wild): New function.
3955 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
3956
3957 2004-06-27 Mark Kettenis <kettenis@gnu.org>
3958
3959 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
3960 hppabsd-tdep.c.
3961
3962 2004-06-27 Joel Brobecker <brobecker@gnat.com>
3963
3964 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
3965
3966 2004-06-27 Joel Brobecker <brobecker@gnat.com>
3967
3968 * ada-lang.c: Re-indent file.
3969
3970 2004-06-27 Joel Brobecker <brobecker@gnat.com>
3971
3972 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
3973 (no_symtab_msg): Likewise.
3974
3975 2004-06-27 Andreas Schwab <schwab@suse.de>
3976
3977 * source.c: Fix whitespace.
3978
3979 2004-06-27 Mark Kettenis <kettenis@gnu.org>
3980
3981 * configure.in: Include <sys/param.h> for td_pcb test.
3982 * configure: Regenerated.
3983
3984 * i386nbsd-nat.c: New file.
3985 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
3986 i386obsd-nat.c and i386obsd-tdep.c.
3987 (i386nbsd-nat.o): New dependency.
3988 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
3989 bsd-kvm.o.
3990 (LOADLIBES): New variable.
3991 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
3992 bsd-kvm.o.
3993 (LOADLIBES): New variable.
3994
3995 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
3996 (LOADLIBES): New variable.
3997
3998 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
3999 fetching from BSD_KVM_PADDR. Correctly lookup address for
4000 "_thread0".
4001
4002 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
4003 "bsd-kvm.h".
4004 (amd64fbsd_supply_pcb): New funcion.
4005 (_initialize_amd64fbsd_nat): Enable libkvm interface.
4006
4007 2004-06-27 <david@streamline-computing.com>
4008
4009 Partial fix for PR cli/1056.
4010 * valarith.c: Check for zero in division and remainder
4011 evaluation.
4012
4013 2004-06-27 Mark Kettenis <kettenis@gnu.org>
4014
4015 * i387-tdep.c: Remove excessive whitespace.
4016
4017 2004-06-26 Andrew Cagney <cagney@gnu.org>
4018
4019 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
4020 * gdb-events.h, gdb-events.c: Re-generate.
4021 * tui/tui-hooks.c (tui_install_hooks): Update.
4022 (tui_remove_hooks): Update.
4023 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
4024
4025 2004-06-26 Mark Kettenis <kettenis@gnu.org>
4026
4027 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
4028 (gregset_t, fpregset_t): Remove typedefs.
4029 (REG_OFFSET): Rename argument.
4030 (amd64bsd_r_reg_offset): Rename from reg_offset.
4031 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
4032 Remove functions.
4033 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
4034 of reg_offset.
4035 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
4036
4037 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
4038
4039 * vax-tdep.c: Tweak comment.
4040
4041 Add OpenBSD/hppa support.
4042 * NEWS (New native configurations): Mention OpenBSD/hppa.
4043 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
4044 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
4045 files.
4046 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
4047 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
4048 * configure.host: Add hppa*-*-openbsd*.
4049 * configure.tgt: Add hppa*-*-openbsd*.
4050
4051 2004-06-25 Andrew Cagney <cagney@gnu.org>
4052
4053 * defs.h (deprecated_ui_loop_hook): Deprecated.
4054 * wince.c (child_wait): Update.
4055 * win32-nat.c (child_wait): Update.
4056 * v850ice.c (v850ice_wait): Update.
4057 * top.c (deprecated_ui_loop_hook): Update.
4058 * serial.h: Update.
4059 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
4060 (do_unix_readchar): Update.
4061 * ser-tcp.c (net_open): Update.
4062 * remote-sim.c (gdb_os_poll_quit): Update.
4063 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
4064
4065 2004-06-24 Andrew Cagney <cagney@gnu.org>
4066
4067 * defs.h (deprecated_pre_add_symbol_hook)
4068 (deprecated_post_add_symbol_hook): Deprecated.
4069 * symfile.c (symbol_file_add_with_addrs_or_offsets)
4070 (symbol_file_add_with_addrs_or_offsets): Update references.
4071
4072 2004-06-24 Andrew Cagney <cagney@gnu.org>
4073
4074 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
4075 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
4076 * wince.c (ui_loop_hook): Delete extern declaration.
4077 * win32-nat.c (ui_loop_hook): Delete extern declaration..
4078 * v850ice.c (ui_loop_hook): Delete extern declaration..
4079 * ser-unix.c (ui_loop_hook): Delete extern declaration..
4080 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
4081 * remote-sim.c (ui_loop_hook): Delete extern declaration..
4082 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
4083 ui_loop_hook declaration.
4084
4085 2004-06-24 Andrew Cagney <cagney@gnu.org>
4086
4087 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
4088 entry_func_highpc fields.
4089 * objfiles.c (init_entry_point_info): Do not clear
4090 entry_func_lowpc and entry_func_highpc.
4091 (objfile_relocate): Do not relocate entry_func_lowpc and
4092 entry_func_highpc.
4093 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
4094 entry_func_highpc.
4095 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
4096 entry_func_highpc.
4097 * blockframe.c (legacy_frame_chain_valid): Replace tests against
4098 entry_func_lowpc and entry_func_highpc with call to
4099 inside_entry_func.
4100
4101 2004-06-24 Mark Kettenis <kettenis@gnu.org>
4102
4103 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
4104 quad-precision floating point arguments in registers.
4105
4106 2004-06-24 Mark Kettenis <kettenis@gnu.org>
4107
4108 From Michael Mueller <m.mueller99@kay-mueller.de>:
4109 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
4110 account.
4111
4112 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
4113
4114 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
4115 to -1.
4116 * breakpoint.c (bpstat_stop_status): Move check for ignoring
4117 untriggered watchpoints to a separate if clause. Update function
4118 comment regarding STOPPED_BY_WATCHPOINT argument.
4119
4120 2004-06-22 Jim Blandy <jimb@redhat.com>
4121
4122 * gdbarch.sh: Doc fix.
4123
4124 2004-06-21 Martin Hunt <hunt@redhat.com>
4125 Kevin Buettner <kevinb@redhat.com>
4126
4127 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
4128 * mips-tdep.h (MIPS_SP_REGNUM): Define.
4129 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
4130 to set_gdbarch_sp_regnum(). Use cooked register number.
4131 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
4132
4133 2004-06-21 Andrew Cagney <cagney@gnu.org>
4134
4135 * gdbarch.sh: When the macro field is empty, do not generate a
4136 macro definition. When the macro field is "=", generate the macro
4137 name from the upper-case function name.
4138 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
4139 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
4140 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
4141 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
4142 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
4143 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
4144 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
4145 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
4146 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
4147 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
4148 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
4149 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
4150 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
4151 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
4152 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
4153 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
4154 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
4155 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
4156 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
4157 (DEPRECATED_USE_STRUCT_CONVENTION)
4158 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4159 (DEPRECATED_FRAME_INIT_SAVED_REGS)
4160 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
4161 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
4162 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
4163 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
4164 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
4165 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
4166 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
4167 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
4168 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
4169 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
4170 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
4171 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
4172 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
4173 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
4174 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
4175 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
4176
4177 2004-06-21 Andrew Cagney <cagney@gnu.org>
4178
4179 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
4180 macro name, and the function rather than macro value. Only wrap
4181 macro print statements in #ifdef. Move format logic to where it
4182 is needed.
4183 * gdbarch.c: Re-generate.
4184
4185 * gdbarch.sh (read): Delete "print_p" and "description", add
4186 "garbage_at_eol". Check for non-empty garbage at end-of-line.
4187 Delete references to print_p.
4188 (TARGET_ARCHITECTURE): Delete print predicate.
4189 * gdbarch.c: Re-generate.
4190
4191 * gdbarch.sh: Check that multi-arch methods do not provide a
4192 macro.
4193 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
4194 (print_registers_info, print_float_info, print_vector_info)
4195 (adjust_breakpoint_address, remote_translate_xfer_address)
4196 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
4197 (address_class_type_flags_to_name, unwind_sp): Remove the macro
4198 name from the multi-arch definition.
4199
4200 2004-06-20 Andrew Cagney <cagney@gnu.org>
4201
4202 * gdbarch.sh: Sort by the function, instead of macro name.
4203 * gdbarch.c: Re-generate.
4204
4205 2004-06-20 Andrew Cagney <cagney@gnu.org>
4206
4207 * gdbarch.sh: Use the function, instead of macro name in
4208 errors and the log file.
4209 (return_value): Remove stray ":" in spec.
4210
4211 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
4212 * gdbarch.h, gdbarch.c: Re-generate.
4213 * Makefile.in (arch-utils.o): Update dependencies.
4214 * values.c (using_struct_return): Move code calling
4215 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
4216 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
4217 to legacy_return_value, simplify.
4218 * infcmd.c (print_return_value): Move code calling
4219 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
4220 to legacy_return_value, simplify.
4221 * infcall.c (call_function_by_hand): Move code calling
4222 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
4223 * arch-utils.c: Update copyright. Include "gdbcore.h".
4224 (legacy_return_value): New function.
4225 * arch-utils.h: Update copyright.
4226 (legacy_return_value): Declare.
4227
4228 2004-06-20 Andrew Cagney <cagney@gnu.org>
4229
4230 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
4231 * gdbarch.h, gdbarch.c: Re-generate.
4232 * values.c (using_struct_return): Update call.
4233 * mcore-tdep.c: Update comment.
4234 * infcall.c (call_function_by_hand): Update comment.
4235 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4236 * arch-utils.h (always_use_struct_convention): Update.
4237 * v850-tdep.c (v850_gdbarch_init): Update.
4238 * sh64-tdep.c (sh64_gdbarch_init): Update.
4239 * sh-tdep.c (sh_gdbarch_init): Update.
4240 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4241 * mips-tdep.c (mips_gdbarch_init): Update.
4242 * mcore-tdep.c (mcore_gdbarch_init): Update.
4243 * m32r-tdep.c (m32r_gdbarch_init): Update.
4244 * ia64-tdep.c (ia64_gdbarch_init): Update.
4245 * h8300-tdep.c (h8300_gdbarch_init): Update.
4246 * frv-tdep.c (frv_gdbarch_init): Update.
4247 * cris-tdep.c (cris_gdbarch_init): Update.
4248 * arm-tdep.c (arm_gdbarch_init): Update.
4249 * alpha-tdep.c (alpha_gdbarch_init): Update.
4250
4251 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
4252
4253 * PROBLEMS: Add more specific information, and a work-around,
4254 for PR gdb/1458.
4255
4256 2004-06-18 Andrew Cagney <cagney@gnu.org>
4257
4258 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
4259 * gdbarch.h, gdbarch.c: Re-generate.
4260 * ada-lang.c (ada_finish_decode_line_1): Update.
4261 * infrun.c (handle_inferior_event): Update.
4262 * infcall.c (find_function_addr): Update.
4263 * linespec.c (minsym_found): Update.
4264 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
4265 Update.
4266 * blockframe.c (legacy_frameless_look_for_prologue): Update.
4267 * cli/cli-cmds.c (disassemble_command): Update.
4268 * vax-tdep.c (vax_gdbarch_init): Update.
4269
4270 2004-06-18 Mark Kettenis <kettenis@gnu.org>
4271
4272 * i386-tdep.c (i386_collect_fpregset): Fix comment.
4273
4274 2004-06-17 Andrew Cagney <cagney@gnu.org>
4275
4276 GDB 6.1.1 released from the GDB 6.1 branch.
4277 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
4278 * PROBLEMS: Ditto.
4279
4280 2004-06-16 Daniel Jacobowitz <dan@debian.org>
4281
4282 PR gdb/1658
4283 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
4284 operation as a uleb128. Found by Michael Coulter.
4285
4286 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
4287
4288 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
4289 make it non-static.
4290 * ada-lang.h (task_control_block): declaration moved from ada-task.c
4291 to ada-lang.h; this is needed to be able to implement the kill command
4292 in multi-task mode.
4293 (task_ptid): Ditto.
4294 (task_entry): Ditto.
4295 (task_list): Ditto.
4296 (ada_build_task_list): Ditto.
4297
4298 * ada-lang.c: Conditionalize routines and data structures related
4299 to breakpoints, exceptions, completion, and symbol caching on
4300 GNAT_GDB, since these are not yet used in the submitted public sources.
4301 (ada_main_name): Editorial: Move definition out of exception-related
4302 code.
4303
4304 2004-06-15 Andrew Cagney <cagney@gnu.org>
4305
4306 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
4307 deprecated_pc_in_call_dummy.
4308
4309 2004-06-15 Alan Modra <amodra@bigpond.net.au>
4310
4311 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
4312 bfd_get_section_size_before_reloc or _raw_size.
4313 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
4314 * dwarf2read.c (dwarf2_locate_sections): Likewise.
4315 (dwarf2_read_section): Likewise.
4316 * elfread.c (elf_locate_sections): Likewise.
4317 * gcore.c (derive_heap_segment): Likewise.
4318 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
4319 * remote-e7000.c (e7000_load): Likewise.
4320 * remote-m32r-sdi.c (m32r_load): Likewise.
4321 * remote-mips.c (mips_load_srec): Likewise.
4322 (pmon_load_fast): Likewise.
4323 * remote.c (compare_sections_command): Likewise.
4324 * symfile.c (add_section_size_callback): Likewise.
4325 (load_section_callback): Likewise.
4326 (pc_in_unmapped_range): Likewise.
4327 (pc_in_mapped_range): Likewise.
4328 (sections_overlap): Likewise.
4329 (list_overlays_command): Likewise.
4330 (simple_overlay_update_1): Likewise.
4331 (simple_overlay_update): Likewise.
4332 * tracepoint.c (remote_set_transparent_ranges): Likewise.
4333 * win32-nat.c (core_section_load_dll_symbols): Likewise.
4334
4335 2004-06-14 Randolph Chung <tausq@debian.org>
4336
4337 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
4338 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
4339 static.
4340 (hppa_hpux_inferior_created): New function.
4341 (hppa_hpux_init_abi): Register observer.
4342 * symfile.c (hp_cxx_exception_support_initialized)
4343 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
4344 (symbol_file_add_main_1, symbol_file_clear): Likewise.
4345
4346 2004-06-14 Randolph Chung <tausq@debian.org>
4347
4348 * MAINTAINERS (Write After Approval): Alphabetize my entry
4349 correctly.
4350
4351 2004-06-14 Andrew Cagney <cagney@gnu.org>
4352
4353 * MAINTAINERS (testsuite): List Michael Chastain as the lead
4354 testsuite maintainer.
4355
4356 2004-06-13 Andrew Cagney <cagney@gnu.org>
4357
4358 * infcmd.c (print_return_value): Fix logic, allow
4359 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
4360
4361 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
4362 defining any macros.
4363 * gdbarch.h: Re-generate.
4364
4365 * gdbarch.sh: Delete "level" attribute. Only check for a macro
4366 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
4367 * gdbarch.h: Re-generate.
4368
4369 * values.c (generic_use_struct_convention): Don't check gcc_p.
4370
4371 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
4372 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
4373 * gdbarch.h, gdbarch.c: Regenerate.
4374 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
4375 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
4376 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4377 deprecated_max_register_raw_size and
4378 deprecated_max_register_virtual_size.
4379 * v850-tdep.c (v850_gdbarch_init): Ditto.
4380 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
4381 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4382 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4383 * cris-tdep.c (cris_gdbarch_init): Ditto.
4384
4385 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
4386 * gdbarch.h, gdbarch.c: Re-generate.
4387 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
4388 (m68hc11_use_struct_convention): Delete function.
4389 (m68hc11_extract_struct_value_address): Delete function.
4390 (m68hc11_return_value): New function.
4391 (m68hc11_gdbarch_init): Instead of store_return_value,
4392 extract_return_value, return_value_on_stack,
4393 deprecated_extract_struct_value_address and use_struct_convention,
4394 set return_value.
4395 * values.c (using_struct_return): Do not call
4396 RETURN_VALUE_ON_STACK.
4397 * arch-utils.h (generic_return_value_on_stack_not): Delete
4398 declaration.
4399 * arch-utils.c (generic_return_value_on_stack_not): Delete
4400 function.
4401
4402 2004-06-12 Andrew Cagney <cagney@gnu.org>
4403
4404 * values.c (register_value_being_returned): Delete function.
4405 * infcmd.c (legacy_return_value): Delete function.
4406 * infcall.c (call_function_by_hand): Inline
4407 "register_value_being_returned", simplify.
4408 * values.c (using_struct_return): Update comment, refer to
4409 print_return_value instead of register_value_being_returned.
4410 * infcmd.c (print_return_value): Inline calls to
4411 register_value_being_returned and legacy_return_value. Simplify.
4412
4413 2004-06-11 Randolph Chung <tausq@debian.org>
4414
4415 * somread.c (som_symtab_read): Exclude gcc local symbols.
4416
4417 2004-06-11 Randolph Chung <tausq@debian.org>
4418
4419 * infrun.c (handle_inferior_event): Handle the case when a
4420 trampoline ends up in the runtime resolver, and if the trampoline
4421 has no name. Rearrange the code so that all the trampoline
4422 processing happens before other step-out-of-range handling.
4423
4424 2004-06-11 Martin Hunt <hunt@redhat.com>
4425
4426 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
4427 has no fpu.
4428
4429 2004-06-10 Andrew Cagney <cagney@gnu.org>
4430
4431 * blockframe.c (legacy_inside_entry_func): Delete.
4432 (legacy_frame_chain_valid): Inline call to
4433 legacy_inside_entry_func, simplify.
4434
4435 2004-06-10 Bob Rossi <bob@brasko.net>
4436
4437 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
4438 * dwarf2read.c (partial_die_info): Add dirname field.
4439 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
4440 (read_partial_die): Save away DW_AT_comp_dir.
4441 * defs.h (symtab_to_filename): Removed.
4442 * source.c (find_and_open_source): Added.
4443 (open_source_file): Just calls find_and_open_source.
4444 (symtab_to_filename): Removed.
4445 (symtab_to_fullname, psymtab_to_fullname): Added.
4446 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
4447 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
4448 symtab_to_filename.
4449 * symtab.h (partial_symtab): Add dirname field.
4450 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
4451 (mi_cmd_file_list_exec_source_file): Call new function
4452 symtab_to_fullname to find fullname.
4453 (mi_cmd_file_list_exec_source_files): Added.
4454 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
4455 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
4456
4457 2004-06-10 Andrew Cagney <cagney@gnu.org>
4458
4459 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
4460 to generic_use_struct_convention, the default value.
4461
4462 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
4463 of abort.
4464
4465 * ns32k-tdep.c (ns32k_push_arguments): New function.
4466 (ns32k_gdbarch_init): Set deprecated_push_arguments.
4467 * infcall.c (call_function_by_hand): Call error instead of
4468 legacy_push_arguments.
4469 * value.h (legacy_push_arguments): Delete declaration.
4470 * valops.c (legacy_push_arguments): Delete function.
4471 (value_push): Delete function.
4472
4473 2004-06-10 Brian Ford <ford@vss.fsi.com>
4474
4475 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
4476 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
4477 info.
4478 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
4479
4480 2004-06-10 Andrew Cagney <cagney@gnu.org>
4481
4482 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
4483 * gdbarch.h, gdbarch.c: Re-generate.
4484 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
4485 parameters.
4486 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
4487 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
4488 deprecated_pc_in_call_dummy instead of
4489 DEPRECATED_PC_IN_CALL_DUMMY.
4490 (arm_skip_prologue): Ditto.
4491 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
4492 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
4493 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
4494 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
4495 Ditto.
4496 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
4497 (sh64_init_extra_frame_info, sh64_get_saved_register)
4498 (sh64_pop_frame): Ditto.
4499 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
4500 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
4501 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
4502 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
4503 (h8300_pop_frame): Ditto.
4504 * blockframe.c (legacy_inside_entry_func)
4505 (legacy_frame_chain_valid): Ditto.
4506 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
4507 to deprecated_pc_in_call_dummy.
4508
4509 2004-06-09 Andrew Cagney <cagney@gnu.org>
4510
4511 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
4512 provide a default value.
4513 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
4514 * gdbarch.h, gdbarch.c: Re-generate.
4515 * arch-utils.c (generic_convert_register_p): Rename
4516 legacy_convert_register_p
4517 (legacy_register_to_value, legacy_value_to_register): Delete
4518 functions.
4519 * arch-utils.h (generic_convert_register_p): Rename
4520 legacy_convert_register_p.
4521 (legacy_register_to_value, legacy_value_to_register): Delete
4522 declarations.
4523
4524 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
4525 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
4526 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
4527 * gdbarch.h, gdbarch.c: Re-generate.
4528 * infcmd.c (default_print_registers_info): Simplify.
4529 * findvar.c (value_of_register): Simplify.
4530 * mi/mi-main.c (get_register): Simplify.
4531 * arch-utils.c (legacy_convert_register_p): Always return 0.
4532 (legacy_register_to_value, legacy_value_to_register): Always call
4533 internal_error.
4534
4535 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
4536 #ifdef CLEAR_INSN_CACHE code.
4537 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
4538 Delete #ifdef CLEAR_DEFERRED_STORES code.
4539
4540 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
4541
4542 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
4543 copyright.
4544 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
4545
4546 * config/mips/mipsv4.mh: Delete file.
4547
4548 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
4549 unreferenced macro.
4550 (hpread_adjust_stack_address): Delete declaration.
4551
4552 2004-06-08 Andrew Cagney <cagney@gnu.org>
4553
4554 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4555 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
4556 PTRACE_ATTACH / PTRACE_DETACH available call error.
4557 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
4558 * infttrace.c (update_thread_state_after_attach, attach, detach):
4559 Remove #ifdef wrappers.
4560 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
4561 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4562 * config/nm-bsd.h (ATTACH_DETACH): Delete.
4563 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
4564 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
4565 * config/nm-linux.h (ATTACH_DETACH): Delete.
4566 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
4567 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
4568 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
4569 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
4570 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
4571
4572 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
4573
4574 * configure.in: Set $configdir to the right OS specific value.
4575 Use value when setting $tcldir and $tkdir.
4576 * configure: Regenerate.
4577
4578 2004-06-06 Paul Brook <paul@codesourcery.com>
4579
4580 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
4581 records.
4582
4583 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
4584
4585 * ada-lang.c (lookup_symbol_in_language): New function to allow
4586 re-use of another language's symbol lookup code. (Placed here
4587 temporarily while Ada support is being integrated into the public
4588 tree).
4589 (restore_language): New auxiliary function for
4590 lookup_symbol_in_language.
4591 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
4592 temporarily while Ada support is being integrated into the public
4593 tree).
4594
4595 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
4596
4597 * Makefile.in (check//%): New.
4598
4599 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
4600 (mn10300_store_return_value): Rewrite.
4601 (mn10300_type_align): New.
4602 (mn10300_use_struct_convention): Rewrite.
4603 (mn10300_return_value): New, using all of the above.
4604 (mn10300_pop_frame_regular): Add saved_regs_size.
4605 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
4606
4607 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
4608 regs if PC is on movm.
4609
4610 2004-06-07 Jim Blandy <jimb@redhat.com>
4611
4612 Add native Linux support for the PowerPC E500.
4613 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
4614 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
4615 all architectures except the E500.
4616 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
4617 #definitions.
4618 (struct gdb_evrregset_t): New type.
4619 (have_ptrace_getsetevrregs): New variable.
4620 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
4621 fetch_spe_registers): New functions.
4622 (fetch_register): Call fetch_spe_register as appropriate.
4623 Assert that we're only passed raw register numbers.
4624 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
4625 Don't fetch gprs if they're pseudoregisters.
4626 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
4627 store_spe_registers): New functions.
4628 (store_register): Call store_spe_register as appropriate.
4629 Assert that we're only passed raw register numbers.
4630 (store_ppc_registers): Call store_spe_registers as appropriate.
4631 Don't store gprs if they're pseudoregisters.
4632
4633 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
4634
4635 * thread-db.c (thread_get_info_callback): Fill in the thread_info
4636 struct if one exists, even if we are dealing with a zombie thread.
4637
4638 2004-06-07 Andrew Cagney <cagney@gnu.org>
4639
4640 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
4641 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
4642 Rename PC_REQUIRES_RUN_BEFORE_USE.
4643 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
4644 #ifdef.
4645
4646 2004-06-07 Randolph Chung <tausq@debian.org>
4647
4648 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
4649 unwinding after sp has been saved to the stack but before the end
4650 of the prologue, and after the fp has been modified but before it has
4651 been saved to the stack.
4652 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
4653 Remove superfluous definitions.
4654 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
4655
4656 2004-06-07 Guy Martin <gmsoft@gentoo.org>
4657
4658 Committed by Randolph Chung.
4659 * hppa-linux-nat.c: Include the correct version of the header file
4660 depending on the kernel version.
4661
4662 2004-06-06 Randolph Chung <tausq@debian.org>
4663
4664 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
4665 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
4666
4667 2004-06-06 Randolph Chung <tausq@debian.org>
4668
4669 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
4670 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
4671 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
4672 * hppa-tdep.c (hppa_symbol_address): New function definition.
4673 * hppa-tdep.h (hppa_symbol_address): New function declaration.
4674
4675 2004-06-06 Randolph Chung <tausq@debian.org>
4676
4677 * hppa-tdep.h (struct value): Forward declaration.
4678 (gdbarch_tdep): Define tdep find_global_pointer method.
4679 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
4680 associated with the function we are trying to call, and write it
4681 to the gp register.
4682 (hppa32_convert_from_funct_ptr_addr): New function.
4683 (hppa_find_global_pointer): New function.
4684 (hppa_gdbarch_init): Set default find_global_pointer method; set
4685 convert_from_func_ptr_addr method.
4686 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
4687 (hppa_linux_init_abi): Set find_global_pointer method.
4688 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
4689
4690 2004-06-06 Randolph Chung <tausq@debian.org>
4691
4692 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
4693 to struct value *function.
4694 * gdbarch.c: Regenerate.
4695 * gdbarch.h: Likewise.
4696 * infcall.c (call_function_by_hand): Pass entire function value
4697 to push_dummy_call.
4698
4699 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
4700 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
4701 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
4702 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
4703 * arm-tdep.c (arm_push_dummy_call): Likewise.
4704 * avr-tdep.c (avr_push_dummy_call): Likewise.
4705 * cris-tdep.c (cris_push_dummy_call): Likewise.
4706 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
4707 * frv-tdep.c (frv_push_dummy_call): Likewise.
4708 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
4709 * hppa-tdep.c (hppa32_push_dummy_call)
4710 (hppa64_push_dummy_call): Likewise.
4711 * i386-tdep.c (i386_push_dummy_call): Likewise.
4712 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
4713 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
4714 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
4715 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
4716 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
4717 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4718 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
4719 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
4720 (ppc64_sysv_abi_push_dummy_call): Likewise.
4721 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
4722 (ppc64_sysv_abi_push_dummy_call): Likewise.
4723 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4724 * s390-tdep.c (s390_push_dummy_call): Likewise.
4725 * sh-tdep.c (sh_push_dummy_call_fpu)
4726 (sh_push_dummy_call_nofpu): Likewise.
4727 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
4728 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
4729 * vax-tdep.c (vax_push_dummy_call): Likewise.
4730
4731 2004-06-04 Jim Blandy <jimb@redhat.com>
4732
4733 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
4734 gdbarch argument to register_size.
4735
4736 * rs6000-tdep.c (rs6000_store_return_value): Use
4737 regcache_cooked_write_part instead of
4738 deprecated_write_register_bytes.
4739 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
4740 not gdbarch_deprecated_store_return_value.
4741
4742 * ppc-linux-nat.c (store_register, fetch_register): Remove
4743 incorrect assertions. Simplify and generalize handling of
4744 transfers whose sizes are not multiples of, or less than, sizeof
4745 (PTRACE_XFER_TYPE).
4746
4747 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
4748
4749 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
4750 as a new thread event.
4751 * thread-db.c (thread_get_info_callback): If the thread is a
4752 zombie, return TD_THR_ZOMBIE.
4753 (thread_from_lwp): If thread_get_info_callback returns
4754 TD_THR_ZOMBIE, check if the thread is still on the thread list
4755 and return a -1 ptid if not found.
4756 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
4757 change the status to TARGET_WAITKIND_SPURIOUS.
4758
4759 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
4760
4761 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
4762 double values in little endian mode.
4763
4764 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
4765
4766 Committed by Andrew Cagney.
4767 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
4768 after last enum constant to avoid error from IBM C
4769 compiler.
4770
4771 2004-06-02 Jim Blandy <jimb@redhat.com>
4772
4773 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
4774 to 'message', and make it local to the lone block that uses it.
4775
4776 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
4777
4778 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
4779
4780 * ada-exp.y: Update copyright notice.
4781 Include block.h.
4782
4783 Replace REGNAME, LAST, INTERNAL_VARIABLE with
4784 SPECIAL_VARIABLE and unify the treatment of these cases.
4785
4786 (write_attribute_call0): Remove.
4787 (write_attribute_call1): Remove.
4788 (write_attribute_calln): Remove.
4789 (save_qualifier): Add missing semicolon.
4790
4791 (simple_exp,exp): Decomment (i.e., reactivate) code that was
4792 temporarily disabled to allow compilation with FSF head version.
4793
4794 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
4795 use individual operators (OP_*) for all attributes.
4796 (exp syntax): Use write_int.
4797 Handle STRING literals with OP_STRING.
4798 (variable syntax): Add limit parameter to calls to
4799 write_object_renaming.
4800
4801 (temp_parse_space): New definition to hold entities that need
4802 only live until the next call to ada_parse.
4803 (string_to_operator): Rename fields of ada_opname_table entries.
4804
4805 (write_var_from_sym): Record block.
4806 (write_var_from_name): Minor reformatting.
4807 Make sure saved name is properly encoded in the case of multiple
4808 matches, and set its language to Ada.
4809 Update comment.
4810 Modify to indicate unresolved name as symbol in the UNRESOLVED
4811 namespace, allocated in temp_parse_space.
4812 (write_int): New function.
4813
4814 (write_object_renaming): Add max_depth parameter to limit
4815 chains of object renamings.
4816 Handle case where root of renaming expression is itself a renaming.
4817 Use temp_parse_space for temporary name buffer.
4818 Handle renamings to dereferenced pointers (___XEXA suffices).
4819
4820 (ada_parse, yyerror, string_to_operator,
4821 write_var_from_sym, write_var_from_name, write_attribute_call0,
4822 write_attribute_call1, write_attribute_calln,
4823 write_object_renaming): Protoize.
4824
4825 (_initialize_ada_exp): New function.
4826
4827 * ada-lang.c: Update copyright notice.
4828 General terminology change to conform to GNAT compiler usage:
4829 mangle => encode, demangle => decode
4830 Include gdb_obstack.h.
4831 Include gdb_regex.h
4832 Include frame.h
4833 Include hashtab.h
4834 Include completer.h
4835 Include gdb_stat.h
4836 Include block.h
4837 Include infcall.h
4838
4839 (ADA_RETAIN_DOTS): Make sure this is defined.
4840 (TRUNCATION_TOWARDS_ZERO): Define.
4841 (struct string_vector): Define.
4842 (unresolved_names): Remove definition.
4843 (xnew_string_vector): New function.
4844 (string_vector_append): New function.
4845 (extract_string): Make static.
4846 (ada_unqualified_name): New function.
4847 (add_angle_brackets): New function.
4848 (function_name_from_pc): New function.
4849 (place_on_stack): Rename to ensure_lval.
4850
4851 (ensure_lval): Renamed from place_on_stack.
4852 Make identity on lvals.
4853 Update comment.
4854 (is_nonfunction): New interface.
4855 Only symbols in LOC_CONST class can be enumerals.
4856 (fill_in_ada_prototype): Remove; now independent of language.
4857 (add_defn_to_vec): Add obstack and symtab arguments.
4858 Use obstack to hold collected definitions.
4859 (num_defns_collected): New function.
4860 (defns_collected): New function.
4861 (ada_resolve_subexp): Rename to resolve_subexp.
4862 (resolve_subexp): Renamed from ada_resolve_subexp.
4863 (ada_op_name): Return non-const result.
4864 (ada_decoded_op_name): Renamed from ada_op_name, now used for
4865 other purposes.
4866
4867 (to_fixed_array_type): Add declaration.
4868 (coerce_unspec_val_to_type): Remove offset parameter.
4869 (find_sal_from_funcs_and_line): New interface.
4870 (find_line_in_linetable): Ditto.
4871
4872 (all_sals_for_line): Rename to ada_sals_for_line and make
4873 global.
4874 Add new parameter. When set, do not ask the user to choose the
4875 instance, but use the first one found instead.
4876 Use given line number in returned sals.
4877 Fix comment.
4878 Skip the prologue if funfirstline is set.
4879 Correct for memory leak when 0 lines found.
4880
4881 (value_pos_atr): Use pos_atr.
4882 (pos_atr): New function.
4883 (standard_lookup): Add block parameter.
4884
4885 (makeTimeStart): Remove declaration and uses.
4886 (makeTimeStop): Remove declaration and uses.
4887
4888 (ada_completer_word_break_characters): Allow for VMS.
4889 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
4890 (raise_sym_name): New constant.
4891 (raise_unhandled_sym_name): New constant.
4892 (raise_assert_sym_name): New constant.
4893 (process_raise_exception_name): New constant.
4894 (longest_exception_template): New constant.
4895 (warning_limit): New variable to limit warnings during expression
4896 evaluation.
4897 (warnings_issued): New variable to keep track of warnings issued.
4898 (known_runtime_file_name_patterns): New constant.
4899 (known_auxiliary_function_name_patterns): New constant.
4900 (symbol_list_obstack): New variable.
4901
4902 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
4903 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
4904 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
4905 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
4906 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
4907 ada_variant_discrim_name, field_alignment, dynamic_template_type,
4908 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
4909 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
4910 and strcmp.
4911
4912 (ada_get_field_index): New function.
4913 (lim_warning): New function.
4914 (ada_translate_error_message): New function.
4915 (MAX_OF_SIZE): New function.
4916 (MIN_OF_SIZE): New function.
4917 (UMAX_OF_SIZE): New function.
4918 (UMIN_OF_SIZE): New function.
4919 (discrete_type_high_bound): New function.
4920 (discrete_type_low_bound): New function.
4921 (base_type): New function.
4922 (do_command): Remove.
4923
4924 (ada_update_initial_language): Use language_ada, not language_unknown.
4925 (ada_encode): Renamed from ada_mangle.
4926 Obey ADA_RETAIN_DOTS.
4927 (ada_decode): Renamed from ada_demangle.
4928 Update coding conventions.
4929 (decoded_names_store): New hash table.
4930 (ada_decode_symbol): New function.
4931 (ada_la_decode): New function.
4932
4933 (modify_general_field): Correct computations of offset and bit
4934 position.
4935 (desc_base_type): Handle ref types, too.
4936 (ada_is_direct_array_type): New function.
4937
4938 (ada_is_simple_array): Rename to ada_is_simple_array_type.
4939 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
4940 (ada_is_bogus_array_descriptor,ada_type_of_array,
4941 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
4942 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
4943 ada_is_array_descriptor_type.
4944
4945 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
4946 (ada_is_packed_array_type): Handle pointers or
4947 references to packed arrays as well.
4948 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
4949 (decode_packed_array_type): Search for the packed array type
4950 symbol in the currently selected block and associated
4951 superblocks too.
4952 Use lookup_symbol again.
4953
4954 (decode_packed_array): Handle pointers and references.
4955 Update call to coerce_unspec_val_to_type.
4956 (decode_packed_array_type,value_subscript_packed): Limit warnings.
4957 (ada_value_primitive_packed_val): Improve comment.
4958
4959 (ada_index_type): Substitute int type for "undefined".
4960 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
4961 ada_array_langth, ada_is_string_type): Use renamed
4962 ada_is_simple_array_type.
4963 (empty_array): New function.
4964
4965 (ada_resolve): Rename to resolve.
4966 (resolve): Make static.
4967 Call renamed resolve_subexp.
4968 Update comment.
4969 (ada_resolve_subexp): Rename to resolve_subexp.
4970 (resolve_subexp): Update comment.
4971 Decomment disabled code.
4972 Add LOC_COMPUTED* cases.
4973 Modify to use temporary struct symbols (marked as being in
4974 UNDEF_NAMESPACE) to indicate unresolved names, instead of
4975 OP_UNRESOLVED_VALUE.
4976 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
4977 Add OP_STRING case.
4978 Remove OP_ARRAY.
4979 Use SYMBOL_PRINT_NAME instead of ada_demangle.
4980 Use new ada_lookup_symbol_list interface.
4981 Use new ada_resolve_function interface.
4982 Remove OP_TYPE case.
4983
4984 (ada_args_match): Idiot proof against null actuals.
4985 Use intermediate variables to clarify.
4986 (ada_resolve_function): Update comment and interface.
4987 (mangled_ordered_before): Rename to encoded_ordered_before and
4988 update comment.
4989 (sort_choices): Update comment and interface.
4990 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
4991 (user_select_syms): New interface.
4992 Use new sort_choices interface.
4993 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
4994 (possible_user_operator_p): Idiot-proof against null values.
4995 (ada_simple_renamed_entity): Don't make cleanup; rely on
4996 caller to free result string.
4997 Remove const from return type.
4998 (make_array_descriptor): Rename uses of place_on_stack to
4999 ensure_lval.
5000 Make sure that arrays are on stack.
5001
5002 (HASH_SIZE): Define.
5003 (struct cache_entry): Define.
5004 (cache_space): Define.
5005 (cache): Define.
5006 (clear_ada_sym_cache): New function.
5007 (find_entry): New function.
5008 (lookup_cached_symbol): New function.
5009 (defn_vector_size): Define.
5010 (cache_symbol): New function.
5011 (defn_symbols): Remove.
5012
5013 (standard_lookup): Use lookup_symbol_in_language to get effect of
5014 C lookup.
5015 Cache results.
5016
5017 (symbol_completion_match): New function.
5018 (symbol_completion_add): New function.
5019 (ada_make_symbol_completion_list): New function.
5020
5021 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
5022 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
5023 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
5024 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
5025
5026 (ada_lookup_simple_minsym): New function.
5027 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
5028
5029 (add_symbols_from_enclosing_procs): New interface.
5030 Conditionalize more helpfully.
5031 Don't bother if program isn't running.
5032 Use new interface to get_frame_block.
5033 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
5034
5035 (remove_extra_symbols): New interface.
5036 (xget_renaming_scope): New function.
5037 (is_package_name): New function.
5038 (renaming_is_visible): New function.
5039 (remove_out_of_scope_renamings): New function.
5040
5041 (ada_lookup_symbol_list): New interface.
5042 Properly reinitialize the symbol list obstack.
5043 Don't call add_symbols_from_enclosing_procs if we start from a
5044 static or global block.
5045 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
5046 add_symbols_from_enclosing_procs.
5047 Add symtab data to cached entries.
5048 Handle symbols prefixed with
5049 "standard__" specially; strip prefix and don't look in local symbols.
5050 Do not include out of scope renaming symbols in list of
5051 symbols returned.
5052 Add const to block parameter.
5053 Move check for non-local, non-global symbols earlier.
5054 Remove timing stuff.
5055 (ada_lookup_symbol): New interface.
5056 Find symtab as well.
5057 (ada_lookup_symbol_nonlocal): New function.
5058
5059 (is_name_suffix): Enhance suffix detection to recognize
5060 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
5061 (is_dot_digits_suffix): New function.
5062 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
5063
5064 (ada_add_block_symbols): New interface. Use obstack to return results
5065 in a vector of struct ada_symbol_infos. Add symtab argument.
5066 Use new interface to add_defn_to_vec.
5067 Remove calls to fill_in_ada_prototype.
5068 Use BLOCK_BUCKETS, BLOCK_BUCKET.
5069
5070 (ada_finish_decode_line_1): Add const qualification to local to fix
5071 warning.
5072 Start looking in static block for functions to avoid attempts
5073 to search frame chain for up-level variables.
5074 Adapt to new ada_sals_for_line interface.
5075 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
5076 Handle quoting of the function name inside the spec string.
5077 Skip prologue when funfirstline is set and update the
5078 function documentation to that effect.
5079
5080 (debug_print_lines, debug_print_block, debug_print_blocks,
5081 debug_print_symtab): Remove.
5082
5083 (ada_main_name): New function.
5084 (ada_exception_breakpoint_type): New function.
5085 (is_known_support_routine): New function.
5086 (ada_find_printable_frame): Renamed from find_printable_frame and made
5087 global.
5088 Remove level parameter.
5089 Use new interface to select_frame.
5090
5091 (begin_command): Remove.
5092 (ada_adjust_exception_stop): New function.
5093 (ada_print_exception_stop): New function.
5094 (exception_name_from_cond): New function.
5095 (ada_report_exception_break): Replace disabled code with
5096 conditionalization on GNAT_GDB.
5097 Get the exception name from the condition string.
5098 Remove and move functionality into new functions
5099 ada_print_exception_breakpoint_task and
5100 ada_print_exception_breakpoint_nontask.
5101 (error_breakpoint_runtime_sym_not_found): New function.
5102 (is_runtime_sym_defined): New function.
5103 (ada_breakpoint_rewrite): Uncomment suppressed code.
5104 Use symbolic error-message and runtime-symbol names.
5105 Surround runtime symbol names in quotes.
5106 Allow non-specific breakpoints on exceptions and assertions before
5107 program starts.
5108
5109 (ada_is_tagged_type): Add parameter.
5110 (ada_is_tag_type): New function.
5111 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
5112 (ada_variant_discrim_type): Ditto.
5113 (value_tag_from_contents_and_address): New function.
5114 (type_from_tag): New function.
5115 (struct tag_args): New structure used to communicate with
5116 ada_tag_name_1.
5117 (ada_tag_name_1): New function.
5118 (ada_tag_name): New function.
5119
5120 (ada_scan_number): Update comment.
5121 (find_struct_field): New function.
5122 (ada_search_struct_field): Make static.
5123 (ada_value_struct_elt): New version that returns references when
5124 given pointers or references to structs.
5125 (ada_lookup_struct_elt_type): Add 'refok' parameter.
5126 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
5127 interface.
5128 (ada_value_ind): Use new ada_to_fixed_value interface.
5129 (ada_coerce_ref): Ditto.
5130 (field_offset): Remove.
5131
5132 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
5133 (ada_find_renaming_symbol): New function.
5134 (ada_prefer_type): Prefer named types over unnamed ones.
5135 (variant_field_index): New function.
5136 (contains_variant_part): Removed: subsumed by variant_field_index.
5137 (ada_template_to_fixed_record_type): New function, mostly from
5138 template_to_fixed_record_type.
5139 (template_to_fixed_record_type):
5140 Do not scan the type fields beyond the last one; prevents a
5141 potential SEGV.
5142 Handle case where variant field is listed BEFORE discriminant it
5143 depends on.
5144 Fix calculation of record length when bit length is
5145 not evenly divisible by char length.
5146 Move code to ada_template_to_fixed_record_type and call it.
5147
5148 (template_to_static_fixed_type): Revise comment.
5149 Modify to work on ordinary record types as well as templates,
5150 so as to handle fields that use ___XVE or ___XVU encodings.
5151 (to_record_with_fixed_variant_part): Fill out comment.
5152 Initialize C++ stuff in right type.
5153 Allow case where DVAL is null.
5154 Handle case where variant field is not last.
5155 Fix typo concerning record length.
5156 (to_fixed_record_type): Decomment disabled code.
5157 (to_fixed_record_type): Use variant_field_index instead of
5158 contains_variant_part.
5159 (to_fixed_variant_branch_type): Ditto.
5160 (to_fixed_array_type): Decomment disabled code.
5161 (ada_to_fixed_type): Convert tagged types to the specific type.
5162 Deactivate the size-check for array types in order to avoid
5163 some false size alarms.
5164 (to_static_fixed_type): Decomment disabled code.
5165 Modify to call template_to_static_fixed_type
5166 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
5167 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
5168 Remove valaddr argument, as it is never really used.
5169 (ada_to_fixed_value): Change interface to act on single struct value*
5170 operand.
5171 (adjust_pc_past_prologue): New function.
5172 (ada_attribute_name): Modify to take enum exp_opcode argument.
5173
5174 (ada_enum_name): Recognize new homonym-distinguishing convention.
5175 Adjust local variable's type to remove compiler warning.
5176 Fix a small problem in the part that unqualifies the enumeration name.
5177 (ada_value_binop): New function.
5178 (ada_value_equal): New function.
5179
5180 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
5181 Don't give error message when not doing normal evaluation
5182 and a tagged type doesn't seem to contain a structure member.
5183 Give error message for packed arrays.
5184 For indexing arrays, handle pointers to packed arrays correctly.
5185 Handle case of 'first and 'last attributes of bare integral type
5186 without encoded subtype info.
5187 Remove some unnecessary casts.
5188 Fix uninitialized value of type in computing 'first, 'last, or 'length
5189 of array object.
5190 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
5191 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
5192 calls.
5193 Attributes are now exp_opcode values.
5194 Correct treatment of 'modulus.
5195 Better error message for taking 'length of wrong kind of type;
5196 improve comment.
5197 Change EVAL_NORMAL to noside for consistency.
5198 Use ada_value_binop for DIV, MOD, REM.
5199 Make special case out of array of length 0, since an argument
5200 of 0 upsets some platforms' malloc.
5201 Use OP_STRING instead of OP_ARRAY.
5202 For slice, add check that we have an array type before extracting
5203 a slice out of it. Avoids a SEGV.
5204 When evaluating an array slice, if the array type is a reference to
5205 an aligner type, then replace the aligner type by the actual type.
5206 Decomment disabled code.
5207 Remove some dead code.
5208 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
5209 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
5210 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
5211 and UNOP_MBR to UNOP_IN_RANGE.
5212 If an array type has a parallel ___XVE type, then use it.
5213 Turn arrays into pointers for lvalue arrays.
5214 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
5215 bounds error and handle 0-length slices.
5216 Use lim_warning.
5217 When selecting fields, apply ada_to_fixed_value (because the fields
5218 might have ___XVU or ___XVE encodings even if not dynamic.)
5219 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
5220 (ada_is_system_address_type): New function.
5221
5222 (get_var_value): Use new interface to ada_lookup_symbol_list.
5223 (get_int_var_value): New interface.
5224 (to_fixed_range_type): Allow unknown bound, with warning.
5225 (ada_is_modular_type): Decomment disabled code.
5226 (ADA_OPERATORS): New definition.
5227 (ada_operator_length): New function.
5228 (ada_expr_op_name): New function.
5229 (ada_forward_operator_length): New function.
5230 (ada_dump_subexp_body): New function.
5231 (ada_print_subexp): New function.
5232 (ada_exp_descriptor): New constant.
5233 (ada_op_print_tab): Add 'size. Remove FIXMEs.
5234 (ada_language_defn): Add ada_exp_descriptor entry.
5235 Change ada_parse => parse.
5236 Add post-parser entry.
5237 Use ada-specific non-local symbol lookup.
5238 Don't use C-style arrays.
5239 String lower-bound is 1.
5240 Decomment disabled code.
5241 (parse): New function.
5242 New fields ada_translate_error_message, ada_lookup_symbol,
5243 ada_lookup_minimal_symbol.
5244
5245 * ada-lang.h: Update copyright dates.
5246 Replace the mangle/demangle terminology throughout by the
5247 more appropriate encode/decode one.
5248 Include breakpoint.h.
5249 Forward declare struct partial_symbol, struct block.
5250 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
5251 (EXTRACT_ADDRESS): Remove.
5252 (EXTRACT_INT): Remove.
5253 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
5254 (MAX_ENCLOSING_FRAME_LEVELS): Define.
5255 (MAX_RENAMING_CHAIN_LENGTH): Define.
5256 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
5257
5258 (enum task_states): Remove.
5259 ada_task_states: Remove.
5260 (fat_string): Remove.
5261 (struct entry_call): Remove.
5262 (struct task_fields): Remove.
5263 (struct task_entry): Remove.
5264
5265 (struct ada_symbol_info): Define.
5266 (enum ada_attribute): Remove.
5267 (enum ada_operator): Define.
5268
5269 (ada_get_field_index): Declare.
5270 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
5271 (ada_is_simple_array): Rename to ada_is_simple_array_type.
5272 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5273 (ada_lookup_symbol_list): New interface.
5274 (ada_decode_symbol): Declare.
5275 (ada_decode): Declare.
5276 (ada_lookup_symbol): New interface.
5277 (ada_update_initial_language): Declare.
5278 (ada_lookup_simple_minsym): Declare.
5279 (user_select_syms): New interface.
5280 (ada_sals_for_line): Declare.
5281 (ada_is_tagged_type): New interface.
5282 (ada_tag_name): Declare.
5283 (ada_lookup_struct_elt_type): Remove declaration.
5284 (ada_search_struct_field): Remove declaration.
5285 (ada_attribute_name): New interface.
5286 (ada_is_system_address_type): Declare.
5287 (ada_to_fixed_value): Remove declaration.
5288 (ada_template_to_fixed_record_type_1): Declare.
5289 (get_int_var_value): New interface.
5290 (ada_find_any_symbol): Declare.
5291 (ada_find_renaming_symbol): Declare.
5292 (ada_mangle): Rename to ada_encode.
5293 (ada_simple_renamed_entity): Remove const.
5294 (ada_main_name): Declare.
5295 (get_current_task): Rename to ada_get_current_task.
5296 (get_entry_number): Remove declaration.
5297 (ada_report_exception_break): Remove declaration.
5298 (ada_print_exception_breakpoint_nontask): Declare.
5299 (ada_print_exception_breakpoint_task): Declare.
5300 (ada_find_printable_frame): Declare.
5301
5302 * ada-lex.l: Update copyright notices.
5303 Use xmalloc and xfree instead of malloc and free.
5304 Use new interface to name_lookup.
5305 Use new interface to
5306 ada_mangle=>ada_encode.
5307 Redo handling of '$...' variable to parallel current treatment
5308 in c-exp.y.
5309 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
5310 digit_to_int, strtoulst, processInt, processReal, processId,
5311 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
5312 yywrap): Protoize.
5313
5314 (processInt): Use cast to remove harmless warning.
5315 (processReal): Modify to get rid of compiler warning on scan formats.
5316
5317 (processId): Replace xmalloc with obstack_alloc for name and remove
5318 call to ada_name_string_cleanup.
5319 Remove obsolete disabled code.
5320 (name_lookup): Ditto.
5321 New interface.
5322 Use obsavestring on temp_parse_space instead of savestring
5323 on name, and remove call to ada_name_string_cleanup.
5324 Free string returned from ada_simple_renamed_entity.
5325 Use new interface to ada_lookup_symbol_list.
5326 Decomment disabled code.
5327 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
5328 not types.
5329 When a type name lookup succeeds as a result of
5330 lookup_primitive_typename, check for regular type entry that has not
5331 yet been read in.
5332 Limit length of chain of renamed symbols we are willing to follow.
5333 Do not break names beginning with "standard__" into segments.
5334 (block_lookup): Use new interface to ada_lookup_symbol_list.
5335
5336 * ada-typeprint.c: Update copyright notice.
5337 (demangled_type_name): Rename to decoded_type_name.
5338 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
5339 (print_range_bound): Correct handling of negative
5340 bounds that make the index type looked unsigned under STABS.
5341 (print_dynamic_range_bound): Use new interface to get_int_var_value.
5342 (print_range_type_named): Use the builtin int type if no type
5343 corresponding to the given type name could be found.
5344 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
5345 Add some bullet-proofing.
5346 (print_variant_clauses): Allow for variant branches with ___XVU
5347 encodings that are not dynamic fields.
5348 Use new interface to ada_is_tagged_type.
5349 (print_record_type): Allow for fields with ___XVE encodings that
5350 are not dynamic fields.
5351 Use new interface to ada_is_tagged_type.
5352 (ada_print_type): ada_is_array_descriptor =>
5353 ada_is_array_descriptor_type.
5354
5355 * ada-valprint.c: Update copyright notice.
5356 Include gdb_string.h
5357 Include infcall.h
5358 (ui_memcpy): New function.
5359 (ada_print_floating): New function.
5360 (ada_print_str): Order arguments correctly.
5361 Correct handling of empty arrays and arrays of 0-length items.
5362 ada_is_array_descriptor => ada_is_array_descriptor_type
5363 Print values of type System.Address in hexadecimal format.
5364 Use ada_print_floating to print floating-point numbers in Ada format.
5365 Print class tag values with type names.
5366 No longer print the address of reference values. Avoids
5367 a potential confusion.
5368 (ada_value_print): Stop printing the object type for reference
5369 values, but preserve that behavior for access types. Avoids
5370 a potential confusion.
5371 Simplify one conditional expression, as the first part is now
5372 necessarily true.
5373 ada_is_array_descriptor => ada_is_array_descriptor_type
5374 Add check for arrays for null records, and print them by hand.
5375
5376 2004-06-01 Jim Blandy <jimb@redhat.com>
5377
5378 * ppc-tdep.h: Delete unused 'regoff' member.
5379 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
5380
5381 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
5382
5383 Fix PR symtab/1661.
5384 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
5385 (hpread_read_struct_type): Likewise.
5386
5387 2004-06-01 Andrew Cagney <cagney@gnu.org>
5388
5389 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
5390 instead of xasprintf.
5391 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
5392 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
5393 (mi_cmd_data_list_register_names)
5394 (mi_cmd_data_list_changed_registers)
5395 (mi_cmd_data_list_register_values)
5396 (get_register, mi_cmd_data_write_register_values)
5397 (mi_cmd_data_write_register_values)
5398 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
5399 (mi_cmd_target_download, mi_cmd_target_select)
5400 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
5401 (mi_execute_cli_command, mi_execute_async_cli_command)
5402 (mi_execute_async_cli_command): Ditto.
5403 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
5404 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
5405
5406 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
5407 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
5408 error_last_message instead of mi_error_last_message.
5409 * mi/mi-main.c (mi_error_last_message): Delete function.
5410
5411 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
5412 "invalid number of columns" error. Delete redundant "out of
5413 memory" check.
5414
5415 2004-05-31 Mark Kettenis <kettenis@gnu.org>
5416
5417 * i386bsd-nat.c: Don't include <sys/procfs.h>.
5418 (gregset_t, fpregset_t): Remove typedefs.
5419 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
5420 (REG_OFFSET): Rename argument.
5421 (i386bsd_r_reg_offset): Rename from reg_offset.
5422 (REG_ADDR): Remove macro.
5423 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
5424 functions.
5425 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
5426 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
5427 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
5428 instead of supply_gregset.
5429 (store_inferior_registers): Use `struct reg' and `struct fpreg'
5430 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
5431 instead of fill_gregset.
5432 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
5433
5434 * i386bsd-nat.c: Don't include "gregset.h".
5435 (supply_gregset, fill_gregset): Make static.
5436 (supply_fpregset, fill_fpregset): Remove.
5437 * Makefile.in (i386bsd-nat.o): Update dependencies.
5438
5439 2004-05-30 Mark Kettenis <kettenis@gnu.org>
5440
5441 * fbsd-proc.c: Include "regcache.h", "regset.h" and
5442 "gdb_assert.h". Con't include "gregset.h".
5443 (fbsd_make_corefile_notes): Use regset-based core file support
5444 instead off fill_gregset and fill_fpregset.
5445 * Makefile.in (fbsd-proc.o): Update dependencies.
5446
5447 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
5448 instructions.
5449 (m88k_frame_prev_register): Simplify code a bit.
5450
5451 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
5452 (amd64_collect_fpregset): New function.
5453 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
5454
5455 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
5456
5457 * i386-tdep.c (i386_supply_gregset): Adjust comment.
5458 (i386_collect_gregset): New function.
5459 (i386_supply_fpregset): Adjust comment.
5460 (i386_collect_fpregset): New function.
5461 (i386_regset_from_core_section): Use i386_collect_gregset and
5462 i386_collect_fpregset.
5463
5464 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
5465 handle VALUEP being null.
5466
5467 * regset.h (collect_regset_ftype): Unconstify fourth argument.
5468
5469 2004-05-29 Mark Kettenis <kettenis@gnu.org>
5470
5471 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
5472
5473 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
5474 assembler in OpenBSD 3.5-current.
5475 (amd64obsd_sigcontext_addr): Likewise.
5476
5477 2004-05-28 Jim Blandy <jimb@redhat.com>
5478
5479 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
5480 register set, so our regcache isn't declared "legacy" and our E500
5481 pseudoregister read and write functions aren't ignored.
5482 (rs6000_register_byte, rs6000_register_raw_size,
5483 rs6000_register_virtual_type, rs6000_register_convertible,
5484 rs6000_register_convert_to_virtual,
5485 rs6000_register_convert_to_raw): Deleted.
5486 (rs6000_register_type, rs6000_convert_register_p,
5487 rs6000_register_to_value, rs6000_value_to_register): New
5488 functions.
5489 (rs6000_gdbarch_init): Don't register
5490 gdbarch_deprecated_register_size,
5491 gdbarch_deprecated_register_bytes,
5492 gdbarch_deprecated_register_byte,
5493 gdbarch_deprecated_register_raw_size,
5494 gdbarch_deprecated_register_virtual_type,
5495 gdbarch_deprecated_register_convertible,
5496 gdbarch_deprecated_register_convert_to_virtual, or
5497 gdbarch_deprecated_register_convert_to_raw methods. Instead,
5498 register gdbarch_register_type, gdbarch_convert_register_p,
5499 gdbarch_register_to_value, and gdbarch_value_to_register methods.
5500
5501 2004-05-26 Jim Blandy <jimb@redhat.com>
5502
5503 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
5504 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
5505 functions, updated to match the register numberings used in GCC.
5506 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
5507 rs6000_dwarf2_reg_to_regnum as register number conversions
5508 functions for STABS and Dwarf2.
5509
5510 2004-05-26 Randolph Chung <tausq@debian.org>
5511
5512 * infttrace.h (target_waitkind): Forward declare type instead of pulling
5513 in header file.
5514
5515 2004-05-25 Joel Brobecker <brobecker@gnat.com>
5516
5517 * NEWS: Document new "start" command.
5518
5519 2004-05-25 Randolph Chung <tausq@debian.org>
5520
5521 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
5522 hppa-linux.
5523
5524 2004-05-25 Randolph Chung <tausq@debian.org>
5525
5526 * hppa-hpux-tdep.c (offsetof): Define.
5527 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
5528 (hppa32_hpux_frame_base_before_sigtramp)
5529 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
5530 (hppa64_hpux_frame_saved_pc_in_sigtramp)
5531 (hppa64_hpux_frame_base_before_sigtramp)
5532 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
5533 functions.
5534 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
5535 (hppa_hpux_sigtramp_frame_unwind_cache)
5536 (hppa_hpux_sigtramp_frame_this_id)
5537 (hppa_hpux_sigtramp_frame_prev_register)
5538 (hppa_hpux_sigtramp_frame_unwind)
5539 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
5540 (hppa_hpux_init_abi): Register sigtramp unwinder.
5541 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
5542
5543 2004-05-25 Randolph Chung <tausq@debian.org>
5544
5545 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
5546 and multiple stack unwinds.
5547 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
5548
5549 2004-05-25 Andrew Cagney <cagney@gnu.org>
5550
5551 * symfile.h (symbol_file_add_from_memory): Delete declaration.
5552 * symfile-mem.h: Delete file.
5553 * symfile-mem.c: Do not include "symfile-mem.h".
5554 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
5555 "struct bfd_section". When an error do not bother returning NULL.
5556 (add_symbol_file_from_memory_command): Use "struct bfd" and
5557 "struct bfd_section".
5558 * Makefile.in (symfile_mem_h): Delete.
5559 (symfile-mem.o): Update dependencies.
5560
5561 2004-05-25 Nick Roberts <nickrob@gnu.org>
5562
5563 * gdb-mi.el: New file.
5564
5565 2004-05-25 Andrew Cagney <cagney@gnu.org>
5566
5567 * inftarg.c: Include "observer.h".
5568 (child_attach, child_create_inferior): Notify inferior_created.
5569 * corelow.c: Include "observer.h".
5570 (core_open): Notify inferior_created.
5571 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
5572
5573 2004-05-25 Andrew Cagney <cagney@gnu.org>
5574
5575 * target.h (struct target_ops): Add from_tty to
5576 to_create_inferior.
5577 (target_create_inferior, find_default_create_inferior): Update.
5578 * infcmd.c (run_command): Update.
5579 * wince.c (child_create_inferior): Update.
5580 * win32-nat.c (child_create_inferior): Update.
5581 * uw-thread.c (uw_thread_create_inferior): Update.
5582 * thread-db.c (thread_db_create_inferior): Update.
5583 * target.c (debug_to_create_inferior)
5584 (find_default_create_inferior): Update.
5585 (maybe_kill_then_create_inferior): Update.
5586 * sol-thread.c (sol_thread_create_inferior): Update.
5587 * remote.c (extended_remote_async_create_inferior)
5588 (extended_remote_create_inferior): Update.
5589 * remote-vx.c (vx_create_inferior): Update.
5590 * remote-st.c (st2000_create_inferior): Update.
5591 * remote-sim.c (gdbsim_create_inferior): Update.
5592 * remote-sds.c (sds_create_inferior): Update.
5593 * remote-rdp.c (remote_rdp_create_inferior): Update.
5594 * remote-rdi.c (arm_rdi_create_inferior): Update.
5595 * remote-m32r-sdi.c (m32r_create_inferior): Update.
5596 * remote-e7000.c (e7000_create_inferior): Update.
5597 * procfs.c (procfs_create_inferior): Update.
5598 * ocd.c (ocd_create_inferior): Update.
5599 * ocd.h (ocd_create_inferior): Update.
5600 * nto-procfs.c (procfs_create_inferior): Update.
5601 * monitor.c (monitor_create_inferior): Update.
5602 * lin-lwp.c (lin_lwp_create_inferior): Update.
5603 * inftarg.c (child_create_inferior): Update.
5604 * hpux-thread.c (hpux_thread_create_inferior): Update.
5605 * gnu-nat.c (gnu_create_inferior): Update.
5606
5607 2004-05-25 Andrew Cagney <cagney@gnu.com>
5608
5609 * MAINTAINERS: Update e-mail address.
5610
5611 2004-05-24 Randolph Chung <tausq@debian.org>
5612
5613 * thread.c (info_threads_command, thread_apply_all_command)
5614 (thread_apply_command, thread_command, do_captured_thread_select):
5615 Remove HPUXHPPA-specific code.
5616
5617 2004-05-24 Randolph Chung <tausq@debian.org>
5618
5619 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
5620 unused symbols.
5621 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
5622 references.
5623
5624 2004-05-24 Joel Brobecker <brobecker@gnat.com>
5625
5626 * infcmd.c (kill_if_already_running): New function, extracted
5627 from run_command().
5628 (run_command): Replace extracted code by call to
5629 kill_if_already_running().
5630 (start_command): New function.
5631 (_initialize_infcmd): Add "start" command.
5632
5633 2004-05-24 Mark Kettenis <kettenis@gnu.org>
5634
5635 Add OpenBSD/m88k support.
5636 * NEWS (New native configurations): Mention OpenBSD/m88k.
5637 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
5638 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
5639 * Makefile.in (m88k_tdep_h): New variable.
5640 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
5641 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
5642 * configure.host: Add m88*-*-openbsd*.
5643 * configure.tgt: Add m88*-*-openbsd*.
5644
5645 2004-05-24 Jim Blandy <jimb@redhat.com>
5646
5647 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
5648 to approve changes.
5649
5650 2004-05-24 Kevin Buettner <kevinb@redhat.com>
5651
5652 * symtab.c (fixup_section): Search section table when lookup by
5653 name fails.
5654
5655 2004-05-24 Randolph Chung <tausq@debian.org>
5656
5657 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
5658 be "small_struct".
5659
5660 2004-05-24 Mark Kettenis <kettenis@gnu.org>
5661
5662 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
5663 register number in regcache_raw_collect call.
5664 (m68kbsd_collect_fpregset): Likewise.
5665 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
5666
5667 * regset.h (struct regset): Add back `regset' member.
5668
5669 2004-05-23 Mark Kettenis <kettenis@gnu.org>
5670
5671 * configure.in: Check for td_pcb in `struct thread'.
5672 * configure, config.in: Regenerated.
5673
5674 * dpx2-nat.c: Remove file.
5675 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
5676 (dpx2-nat.o): Remove dependencies.
5677
5678 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
5679 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
5680 (amd64obsd_supply_pcb): New function.
5681 (_initialize_amd64obsd_nat): Enable libkvm interface.
5682 * Makefile.in (amd64obsd-nat.o): Update dependencies.
5683 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
5684 (LOADLIBES): New variable.
5685
5686 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
5687 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
5688 (sparc32nbsd_supply_pcb): New function.
5689 (_initialize_sparcnbsd_nat): Enable libkvm interface.
5690 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
5691 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5692 (LOADLIBES): New variable.
5693
5694 2004-05-22 Mark Kettenis <kettenis@gnu.org>
5695
5696 * bsd-kvm.c, bsd-kvm.h: New files.
5697 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5698 "bsd-kvm.h".
5699 (i386fbsd_supply_pcb): New function.
5700 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
5701 (i386fbsd-nat.o): Update dependencies.
5702 (bsd_kvm_h): New variable.
5703 (bsd-kvm.o): New dependency.
5704 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
5705 (LOADLIBES): New variable.
5706
5707 * regset.c: Tweak comment.
5708 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
5709 macro.
5710 * regset.h: Update copyright year.
5711 (struct regset): Remove `descr' member, add `gdbarch' member.
5712 (regset_alloc): Adjust prototype and comment.
5713 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
5714 (i386_supply_fpregset): Likewise.
5715 (i386_regset_from_core_section): Update call to regset_alloc.
5716 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
5717 REGSET->arch.
5718 (i386obsd_aout_regset_from_core_section): Update call to
5719 regset_alloc.
5720 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
5721 REGSET->arch.
5722 (i386nbsd_aout_regset_from_core_section): Update call to
5723 regset_alloc.
5724 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
5725 REGSET->arch.
5726 (amd64_regset_from_core_section): Update call to regset_alloc.
5727 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
5728 REGSET->arch.
5729 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
5730 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
5731 &sparc32nbsd_gregset in sparc32_supply_gregset call.
5732 (sparc32nbsd_init_abi): Update call to regset_alloc.
5733 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
5734 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
5735 (sparc64obsd_init_abi): Update call to regset_alloc.
5736 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
5737 &sparc64nbsd_gregset in sparc64_supply_gregset call.
5738 (sparc64nbsd_init_abi): Update call to regset_alloc.
5739 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
5740 &sparc64fbsd_gregset in sparc64_supply_gregset call.
5741 (sparc64fbsd_init_abi): Update call to regset_alloc.
5742
5743 2004-05-22 Jim Blandy <jimb@redhat.com>
5744
5745 * ppc-tdep.h (spe_register_p): New declaration.
5746 (struct gdbarch_tdep): New members: ppc_acc_regnum and
5747 ppc_spefscr_regnum.
5748 * rs6000-tdep.c (spe_register_p): New function.
5749 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
5750 spefscr.
5751 (rs6000_gdbarch_init): Initialize the new members of the tdep
5752 structure.
5753
5754 2004-05-21 Jim Blandy <jimb@redhat.com>
5755
5756 * ppc-linux-nat.c (fetch_register): Move code back to be next
5757 to the comment that describes it. (Moved code, instead of
5758 comment, for symmetry with store_register.)
5759
5760 Allocate regset structures in the gdbarch's obstack, not using
5761 xmalloc.
5762 * regset.c (regset_alloc): Renamed from regset_xmalloc.
5763 Add 'arch' argument. Allocate the regset on arch's obstack, not
5764 using xmalloc.
5765 * regset.h (regset_alloc): Update declaration.
5766 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
5767 gdbarch argument.
5768 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5769 * i386-tdep.c (i386_regset_from_core_section): Same.
5770 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5771 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5772 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5773 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5774 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5775 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5776
5777 2004-05-21 Joel Brobecker <brobecker@gnat.com>
5778
5779 * config/djgpp/fnchange.lst: Undo previous change, was useless.
5780
5781 2004-05-21 Jim Blandy <jimb@redhat.com>
5782
5783 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
5784 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
5785
5786 2004-05-20 Jim Blandy <jimb@redhat.com>
5787
5788 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
5789
5790 2004-05-20 Mark Kettenis <kettenis@gnu.org>
5791
5792 * regset.h: Make prototype const-correct.
5793 * regset.c (regset_xmalloc): Make const-correct.
5794
5795 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
5796
5797 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
5798 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
5799 (symbol_search_name): Declare.
5800
5801 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
5802 (iter_name_next_hashed): Ditto.
5803 (iter_name_next_linear): Ditto.
5804 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
5805
5806 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
5807 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
5808 (symbol_search_name): New function.
5809
5810 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
5811
5812 * minsyms.c (build_minimal_symbol_hash_tables): Change
5813 test for adding to demangled hash table to check for difference
5814 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
5815
5816 2004-05-19 Jim Blandy <jimb@redhat.com>
5817
5818 Use a constructor function to create regset structures.
5819 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
5820 (struct regset): Use supply_regset_ftype. Add new
5821 'collect_regset' member.
5822 (regset_xmalloc): New declaration.
5823 * regset.c: New file.
5824 * am64-tdep.c (amd64_regset_from_core_section): Use
5825 regset_xmalloc to construct regset structures.
5826 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5827 * i386-tdep.c (i386_regset_from_core_section): Same.
5828 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5829 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5830 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5831 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5832 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5833 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5834 * Makefile.in (COMMON_OBS): Add regset.o.
5835 (regset.o): New rule.
5836
5837 2004-05-19 Joel Brobecker <brobecker@gnat.com>
5838
5839 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
5840 and pthread_cond_wait.c.
5841
5842 2004-05-18 Jim Blandy <jimb@redhat.com>
5843
5844 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
5845 before the mach-specific switch, and then let the individual cases
5846 override the defaults, rather than leaving them uninitialized
5847 until the switch and then setting them in each case.
5848
5849 2004-05-18 Randolph Chung <tausq@debian.org>
5850
5851 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
5852 millicode functions.
5853
5854 2004-05-18 Randolph Chung <tausq@debian.org>
5855
5856 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
5857 references to dld_flags_buffer consistent.
5858
5859 2004-05-18 Randolph Chung <tausq@debian.org>
5860
5861 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
5862 it for unwinding the stack.
5863
5864 2004-05-18 Randolph Chung <tausq@debian.org>
5865
5866 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
5867 Undefine these so we can overide them using gdbarch.
5868
5869 2004-05-18 Randolph Chung <tausq@debian.org>
5870
5871 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
5872 handling for 64-bit HPUX (elf).
5873
5874 2004-05-18 Daniel Jacobowitz <dan@debian.org>
5875
5876 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
5877 constants.
5878 * amd64-tdep.c (amd64_skip_prologue): Likewise.
5879 * ia64-tdep.c (examine_prologue): Likewise.
5880 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
5881 * v850-tdep.c (v850_fix_call_dummy): Likewise.
5882
5883 2004-05-18 Mark Kettenis <kettenis@gnu.org>
5884
5885 * vax-tdep.c (vax_return_value): Implement
5886 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5887
5888 2004-05-17 Mark Kettenis <kettenis@gnu.org>
5889
5890 * vax-tdep.c (vax_return_value): Fix typo.
5891
5892 2004-05-17 Andrew Cagney <cagney@redhat.com>
5893
5894 * MAINTAINERS: Mark Salter was also responsible for
5895 testsuite/config/
5896
5897 * NEWS: Mention signal fixes.
5898
5899 2004-05-17 Randolph Chung <tausq@debian.org>
5900
5901 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
5902 check to see if we are unwinding an export stub. Export stubs clobber
5903 the %rp in the call path and stores the original rp in a stack slot.
5904
5905 2004-05-17 Jim Blandy <jimb@redhat.com>
5906
5907 * MAINTAINERS: Update address for J.T. Conklin.
5908
5909 2004-05-17 Randolph Chung <tausq@debian.org>
5910
5911 * hppa-tdep.c: Remove superfluous #include's.
5912 * Makefile.in (hppa-tdep.o): Update dependencies.
5913
5914 2004-05-17 Randolph Chung <tausq@debian.org>
5915
5916 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
5917 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
5918 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
5919 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
5920 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
5921 Remove static function declarations.
5922
5923 2004-05-17 Mark Kettenis <kettenis@gnu.org>
5924
5925 * alphabsd-nat.c: Update copyright year.
5926 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
5927
5928 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
5929 and M68K_A2_REGNUM.
5930
5931 * m68k-tdep.c (m68k_svr4_return_value): Implement
5932 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5933
5934 2004-05-16 Mark Kettenis <kettenis@gnu.org>
5935
5936 * sol-thread.c Update copyright year. Fix various coding
5937 standards violations. Tweak a few comments.
5938 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
5939 Delete prototypes.
5940
5941 2004-05-15 Randolph Chung <tausq@debian.org>
5942
5943 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
5944 as pointer instead of array reference since HPUX compiler does
5945 not accept unsized array arguments.
5946 * somsolib.c (dld_flags_buffer): Use constant array size.
5947
5948 2004-05-15 Mark Kettenis <kettenis@gnu.org>
5949
5950 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
5951 offset with decimal offset.
5952 (amd64obsd_sigcontext_addr): Return correct address for entire
5953 signal trampoline.
5954
5955 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
5956 instead of get_frame_base.
5957
5958 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
5959 (fill_gregset): Use regcache_raw_collect.
5960
5961 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
5962 ppcobsd-tdep.c.
5963
5964 * config/sparc/tm-nbsd64.h: Remove file.
5965 * config/tm-sunos.h: Remove file.
5966
5967 2004-05-15 Joel Brobecker <brobecker@gnat.com>
5968
5969 * rs6000-tdep.c (store_param_on_stack_p): New function,
5970 an improved version of some code extracted from skip_prologue().
5971 (skip_prologue): Use store_param_on_stack_p() to detect
5972 instructions saving a parameter on the stack. Detect when r0
5973 is used to save a parameter.
5974 Do not mark "li rx, SIMM" instructions as part of the prologue,
5975 unless the following instruction is also part of the prologue.
5976
5977 2004-05-14 Andrew Cagney <cagney@redhat.com>
5978
5979 * infrun.c (handle_inferior_event): Simplify
5980 STEP_OVER_UNDEBUGGABLE.
5981
5982 * infrun.c (handle_step_into_function): Delete function.
5983 (handle_inferior_event): Inline calls to
5984 handle_step_into_function.
5985
5986 2004-05-14 Jerome Guitton <guitton@gnat.com>
5987
5988 * rs6000-nat.c: Fix a comment.
5989
5990 2004-05-12 David Anderson <davea@sgi.com>
5991
5992 Committed by Jim Blandy <jimb@redhat.com>:
5993 * regcache.c (struct regcache_descr): fix comment spelling.
5994
5995 2004-05-13 J. Brobecker <brobecker@gnat.com>
5996
5997 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
5998 Fixes a link link failure.
5999
6000 2004-05-13 J. Brobecker <brobecker@gnat.com>
6001
6002 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
6003 error that was causing the build to fail.
6004
6005 2004-05-13 J. Brobecker <brobecker@gnat.com>
6006
6007 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
6008 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
6009
6010 2004-05-13 Andrew Cagney <cagney@redhat.com>
6011
6012 * infrun.c (handle_inferior_event): Check for
6013 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
6014 calls. Update comments.
6015
6016 2004-05-13 Jim Blandy <jimb@redhat.com>
6017
6018 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
6019 (fetch_regs_user_thread, fetch_regs_kernel_thread)
6020 (store_regs_user_thread, store_regs_kernel_thread): Use
6021 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
6022 * ppc-linux-nat.c (fill_gregset): Same.
6023 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
6024 (ppc_linux_sigtramp_cache): Same.
6025 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
6026 (ppcnbsd_sigtramp_cache_init): Same.
6027 * rs6000-nat.c (fetch_core_registers): Same.
6028 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
6029 (rs6000_frame_cache): Same.
6030
6031 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
6032 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
6033 of assuming that the gprs are numbered starting with zero.
6034 * ppc-linux-nat.c (fill_gregset): Same.
6035 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
6036 * ppcnbsd-nat.c (getregs_supplies): Same.
6037 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
6038 * rs6000-nat.c (fetch_core_registers): Same.
6039 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
6040
6041 2004-05-07 Michael Snyder <msnyder@redhat.com>
6042
6043 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
6044 LOC_COMPUTED_ARG, and LOC_INDIRECT.
6045
6046 2004-05-13 Andrew Cagney <cagney@redhat.com>
6047
6048 * infrun.c (handle_inferior_event): Use frame_unwind_id.
6049
6050 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
6051
6052 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
6053 base_address for shared libraries.
6054
6055 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
6056
6057 * MAINTAINERS (write after approval): Add myself.
6058
6059 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6060
6061 * breakpoint.c (bpstat_stop_status): Add new argument
6062 STOPPED_BY_WATCHPOINT. Use it instead of testing
6063 target_stopped_data_address agaist 0 to check whether
6064 or not we stopped due to a hardware watchpoint.
6065 * breakpoint.h (bpstat_stop_status): Adapt prototype.
6066 * infrun.c (handle_inferior_event): Call bpstat_stop_status
6067 with new argument.
6068
6069 2004-05-12 Jim Blandy <jimb@redhat.com>
6070
6071 * configure.in: When checking whether we should use the -bbigtoc
6072 option, don't forget to restore the original value of LDFLAGS.
6073 * configure: Regenerated.
6074
6075 2004-05-12 Andrew Cagney <cagney@redhat.com>
6076
6077 * thread.c (load_infrun_state): Delete step_sp.
6078 * infrun.c (context_switch): Ditto.
6079 * inferior.h (step_sp): Ditto.
6080 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
6081 * gdbthread.h (struct thread_info, save_infrun_state)
6082 (restore_infrun_state): Ditto.
6083
6084 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
6085
6086 * MAINTAINERS (write after approval): Add myself.
6087
6088 2004-05-12 Andrew Cagney <cagney@redhat.com>
6089
6090 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
6091 eliminate reference to step_sp.
6092 (struct execution_control_state, init_execution_control_state)
6093 (handle_inferior_event, keep_going): Delete update_step_sp and
6094 step_sp.
6095 * infcmd.c (step_sp): Note that variable is unused.
6096
6097 2004-05-11 Andrew Cagney <cagney@redhat.com>
6098
6099 * infrun.c (step_over_function): Delete function.
6100 (handle_step_into_function): Use insert_step_resume_breakpoint.
6101 (insert_step_resume_breakpoint): Fix assertion.
6102
6103 2004-05-11 Nick Roberts <nickrob@gnu.org>
6104
6105 * utils.c (defaulted_query): Just use the normal query input type
6106 when printing the annotations.
6107
6108 2004-05-11 Andrew Cagney <cagney@redhat.com>
6109
6110 * infrun.c (handle_inferior_event): Simplify code handling
6111 step-into or return-from a signal trampoline.
6112
6113 2004-05-11 Andrew Cagney <cagney@redhat.com>
6114
6115 * ppcnbsd-tdep.c: Include "gdb_assert.h".
6116 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
6117
6118 2004-05-10 Jim Blandy <jimb@redhat.com>
6119
6120 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
6121 with a call to internal_error.
6122
6123 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
6124 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
6125 processor variant lacks those registers.
6126 (ppc_floating_point_unit_p): Change description to make it clear
6127 that this returns info about the ISA, not the ABI.
6128 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
6129 return true or false by checking tdep->ppc_fp0_regnum and
6130 tdep->ppc_fpscr_regnum. The original code replicated the BFD
6131 arch/mach switching done in rs6000_gdbarch_init; it's better to
6132 keep that logic there, and just check the results here.
6133 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
6134 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
6135 floating-point registers.
6136 (ppc_supply_fpregset, ppc_collect_fpregset)
6137 (rs6000_push_dummy_call, rs6000_extract_return_value)
6138 (rs6000_store_return_value): Assert that we have floating-point
6139 registers.
6140 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
6141 (rs6000_frame_cache): Don't note the locations at which
6142 floating-point registers were saved if we have no fprs.
6143 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
6144 registers.
6145 (fetch_regs_user_thread, fetch_regs_kernel_thread)
6146 (store_regs_user_thread, store_regs_kernel_thread): Only call
6147 supply_fprs / fill_fprs if we actually have floating-point
6148 registers.
6149 (special_register_p): Check ppc_fpscr_regnum before matching
6150 against it.
6151 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
6152 supply / collect fpscr if we don't have it.
6153 * ppc-bdm.c: #include "gdb_assert.h".
6154 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
6155 have floating-point registers, since I can't test this code on
6156 FP-free systems to adapt it.
6157 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
6158 fpscr and floating point register numbers if they don't exist.
6159 (fetch_register): Assert that we have floating-point registers
6160 before we reach the code that handles them.
6161 (store_register): Same. And use tdep instead of calling
6162 gdbarch_tdep again.
6163 (fill_fpregset): Don't try to collect FP registers and fpscr if we
6164 don't have them.
6165 (ppc_linux_sigtramp_cache): Don't record the saved locations of
6166 fprs and fpscr if we don't have them.
6167 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
6168 don't have them.
6169 * ppcnbsd-nat.c: #include "gdb_assert.h".
6170 (getfpregs_supplies): Assert that we have floating-point registers.
6171 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
6172 * ppcobsd-tdep.c: #include "gdb_assert.h".
6173 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
6174 have floating-point registers.
6175 * rs6000-nat.c (regmap): Don't match against the fpscr and
6176 floating point register numbers if they don't exist.
6177 (fetch_inferior_registers, store_inferior_registers,
6178 fetch_core_registers): Only fetch / store / supply the
6179 floating-point registers and the fpscr if we have them.
6180 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
6181 (ppcobsd-tdep.o): Update dependencies.
6182
6183 2004-05-10 Andrew Cagney <cagney@redhat.com>
6184
6185 * infrun.c (through_sigtramp_breakpoint): Delete variable.
6186 (context_switch): Do not switch through_sigtramp_breakpoint.
6187 * gdbthread.h (save_infrun_state, load_infrun_state)
6188 (struct thread_info): Delete through_sigtramp_breakpoint parameter
6189 and structure member.
6190 * thread.c (load_infrun_state, save_infrun_state): Update.
6191
6192 2004-05-10 Mark Kettenis <kettenis@gnu.org>
6193
6194 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
6195
6196 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6197
6198 * acinclude.m4: Quote macro names being defined by AC_DEFUN
6199 throughout.
6200 * aclocal.m4: Regenerate.
6201
6202 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
6203
6204 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
6205
6206 2004-05-10 Andrew Cagney <cagney@redhat.com>
6207
6208 * infrun.c (check_sigtramp2): Delete function.
6209 (handle_inferior_event): When single stepping, and taking a
6210 signal, set a breakpoint at the signal return address. Delete
6211 redundant calls to check_sigtramp2.
6212 (insert_step_resume_breakpoint): New function.
6213 (through_sigtramp_breakpoint, handle_inferior_event)
6214 (follow_exec, wait_for_inferior, fetch_inferior_event)
6215 (currently_stepping, keep_going): Delete most uses of
6216 through_sigtramp_breakpoint, not that it should be deleted.
6217 (delete_breakpoint_current_contents): Delete function.
6218
6219 2004-05-10 Randolph Chung <tausq@debian.org>
6220
6221 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
6222 target.
6223 * config/pa/tm-linux.h: New file.
6224
6225 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
6226
6227 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
6228 of prefixes. Don't print the prefix twice in the CLI.
6229
6230 2004-05-10 Jim Blandy <jimb@redhat.com>
6231
6232 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
6233 collect all the gprs.
6234
6235 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
6236 loop collecting gprs.
6237
6238 2004-05-09 Andrew Cagney <cagney@redhat.com>
6239
6240 * remote-vx.c (net_step): Delete step-range code.
6241 * remote.c (remote_resume, init_all_packet_configs)
6242 (set_remote_protocol_E_packet_cmd)
6243 (show_remote_protocol_E_packet_cmd)
6244 (remote_protocol_E, show_remote_cmd, _initialize_remote)
6245 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
6246 (show_remote_protocol_e_packet_cmd): Ditto.
6247
6248 2004-05-09 Mark Kettenis <kettenis@gnu.org>
6249
6250 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
6251
6252 * hppa-tdep.h: Update copyright year.
6253 (struct trad_frame_saved_reg): Add opaque declaration.
6254
6255 * amd64-tdep.c (amd64_return_value): Implement
6256 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6257
6258 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
6259 (m68k_value_to_register): New functions.
6260 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
6261 value_to_register.
6262
6263 * defs.h (enum return_value_convention): Add
6264 RETURN_VALUE_ABI_RETURNS_ADDRESS and
6265 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
6266 * infcmd.c (legacy_return_value): New function.
6267 (print_return_value): Rwerite to implement
6268 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6269 * values.c (using_struct_return): Check for inequality to
6270 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
6271 RETURN_VALUE_STRUCT_CONVENTION.
6272 * i386-tdep.c (i386_return_value): Implement
6273 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6274
6275 * vax-tdep.c: Tweak comments. Reorder include files. Don't
6276 include "symtab.h", "opcode/vax.h" and "inferior.h".
6277 (vax_skip_prologue): Replace calls to read_memory_integer by calls
6278 to read_memory_unsigned_integer.
6279 (vax_gdbarch_init): Reorder.
6280 (_initialize_vax_tdep): Spell out prototype.
6281 * Makefile.in (vax-tdep.o): Update dependencies.
6282
6283 2004-05-08 Andrew Cagney <cagney@redhat.com>
6284
6285 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
6286 * target.c (target_detach, target_disconnect): Ditto.
6287
6288 * infcall.c (call_function_by_hand): When no
6289 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
6290 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
6291 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
6292 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6293 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6294
6295 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
6296 * gdbarch.h, gdbarch.c: Re-generate.
6297 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6298 deprecated_fix_call_dummy.
6299 * v850-tdep.c (v850_gdbarch_init): Ditto.
6300 * infcall.c (call_function_by_hand): Do not call
6301 DEPRECATED_FIX_CALL_DUMMY.
6302
6303 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
6304 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
6305 * gdbarch.h, gdbarch.c: Re-generate.
6306 * arm-linux-tdep.c (arm_linux_call_dummy_words)
6307 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
6308 deprecated_sizeof_call_dummy_words.
6309 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
6310 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6311 * v850-tdep.c (v850_gdbarch_init): Ditto.
6312 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
6313 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
6314 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6315 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6316 * arch-utils.h (legacy_call_dummy_words)
6317 (legacy_sizeof_call_dummy_words): Delete declarations.
6318 * arch-utils.c (legacy_call_dummy_words)
6319 (legacy_sizeof_call_dummy_words): Delete variables.
6320
6321 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
6322 * gdbarch.h, gdbarch.c: Re-generate.
6323 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
6324 * infcall.c (call_function_by_hand): Eliminate call to
6325 DEPRECATED_PUSH_DUMMY_FRAME.
6326 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6327 push_dummy_frame.
6328 (ns32k_push_dummy_frame): Delete function.
6329
6330 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6331 deprecated_call_dummy_breakpoint_offset or
6332 deprecated_call_dummy_start_offset.
6333 * dummy-frame.c, arm-tdep.c: Update comments.
6334 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
6335 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
6336 * gdbarch.h, gdbarch.c: Re-generate.
6337
6338 * infcall.c (legacy_push_dummy_code): Delete function.
6339 (push_dummy_code): Delete call.
6340
6341 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
6342 * gdbarch.h, gdbarch.c: Re-generate.
6343 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
6344 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
6345 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
6346 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
6347
6348 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
6349 (struct frame_info): Delete opaque declaration.
6350 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
6351 * frame.c (get_frame_type): Delete call.
6352
6353 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6354 pc_in_call_dummy.
6355 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
6356 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
6357
6358 2004-05-08 Mark Kettenis <kettenis@gnu.org>
6359
6360 * alphanbsd-tdep.c: Include "gdb_string.h".
6361 * armnbsd-tdep.c: Update copyright year.
6362 Include "gdb_string.h".
6363 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
6364 dependencies.
6365
6366 * delta68-nat.c: Remove file.
6367 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
6368 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
6369 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
6370 (delta68-nat.o): Remove dependency.
6371
6372 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
6373 function.
6374 (m68k_gdbarch_init): Don't set
6375 deprecated_frameless_function_invocation.
6376
6377 2004-05-07 Randolph Chung <tausq@debian.org>
6378
6379 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
6380 read_memory_nobpt for code reading when doing frame unwinding.
6381 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
6382
6383 2004-05-07 Randolph Chung <tausq@debian.org>
6384
6385 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
6386 instead of sp, handle sigaltstack case.
6387 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
6388 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
6389 signal handler and not that of the caller.
6390 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
6391 hppa_linux_sigtramp_find_sigcontext.
6392
6393 2004-05-07 Randolph Chung <tausq@debian.org>
6394
6395 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
6396 hppa-linux-nat.c.
6397 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
6398 * hppa-linux-nat.c (fetch_register, store_register): Define.
6399 (fetch_inferior_registers, store_inferior_registers): Define.
6400 (supply_gregset): Add comment and clean up some unneeded code.
6401 (fill_gregset): Add comment and fix so that it saves registers in
6402 the right place in the gregset.
6403 (fill_fpregset): Fix buffer overrun problem.
6404 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
6405
6406 2004-05-07 Randolph Chung <tausq@debian.org>
6407
6408 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
6409 do common handling of the pcoqt register.
6410 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
6411 to use helper function.
6412 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
6413 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
6414 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
6415 generic fallback unwinder when all else fails.
6416 (hppa_gdbarch_init): Add fallback sniffer.
6417 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
6418 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
6419 to use helper function.
6420
6421 2004-05-08 Joel Brobecker <brobecker@gnat.com>
6422
6423 * config/djgpp/fnchange.lst: Add translation rules for
6424 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
6425
6426 2004-05-08 Mark Kettenis <kettenis@gnu.org>
6427
6428 * frame.c (get_prev_frame_1): Work around GCC bug.
6429 * frame.h: Add comment about GCC bug.
6430
6431 2004-05-07 Andrew Cagney <cagney@redhat.com>
6432
6433 * observer.c: Include "commands.h" and "gdbcmd.h".
6434 (observer_debug, _initialize_observer): Add the
6435 command "set/show debug observer".
6436 * observer.sh: When observer debugging, log notify calls.
6437 * Makefile.in (observer.o): Update dependencies.
6438
6439 2004-05-07 Jason Molenda (jmolenda@apple.com)
6440
6441 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
6442
6443 2004-05-07 Jim Blandy <jimb@redhat.com>
6444
6445 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
6446 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
6447 to recognize gpr regnums, instead of assuming that
6448 tdep->ppc_fp0_regnum marks the end of the general-purpose
6449 registers.
6450
6451 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
6452 the given architecture has floating-point registers.
6453
6454 2004-05-07 Andrew Cagney <cagney@redhat.com>
6455
6456 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
6457 macro defined to 1.
6458 * gdbarch.h, gdbarch.c: Re-generate.
6459 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6460 deprecated_use_generic_dummy_frames.
6461
6462 2004-05-07 Brian Ford <ford@vss.fsi.com>
6463
6464 * NEWS: Mention Cygwin DWARF 2 support.
6465
6466 2004-05-07 Andrew Cagney <cagney@redhat.com>
6467
6468 * objfiles.h (struct entry_info): Delete unused fields
6469 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
6470 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
6471 * mipsread.c (mipscoff_symfile_read): Update.
6472 * mdebugread.c (parse_partial_symbols): Update.
6473 * dwarfread.c (read_file_scope): Update.
6474 * dwarf2read.c (read_file_scope): Update.
6475 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
6476 * coffread.c (complete_symtab): Update.
6477
6478 2004-05-07 Mark Kettenis <kettenis@gnu.org>
6479
6480 * infcall.c (_initialize_infcall): Fix typo.
6481
6482 2004-05-07 Andrew Cagney <cagney@redhat.com>
6483
6484 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
6485 * command.h (add_setshow_zinteger_cmd): Declare.
6486
6487 2004-05-06 Randolph Chung <tausq@debian.org>
6488
6489 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
6490 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
6491 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
6492 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
6493 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
6494 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
6495 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
6496 definitions ...
6497 * hppa-tdep.h: ... to here, with HPPA_ prefix.
6498 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
6499 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
6500 (hppa64_hpux_frame_find_saved_regs_in_sig)
6501 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
6502 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
6503 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
6504 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
6505 (hppa_linux_sigtramp_frame_prev_register): Likewise.
6506 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
6507 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
6508 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
6509 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
6510 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
6511 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
6512 (hppa32_register_type, hppa_cannot_store_register)
6513 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
6514 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
6515 * hpread.c (hpread_process_one_debug_symbol): Likewise.
6516 * pa64solib.c (pa64_solib_have_load_event)
6517 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
6518 (pa64_solib_unloaded_library_pathname): Likewise.
6519 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
6520 (som_solib_library_pathname): Likewise.
6521
6522 2004-05-05 Jim Ingham <jingham@apple.com>
6523
6524 * breakpoint.c (create_breakpoints): Copy the ignore count and
6525 thread id over from the pended breakpoint to the actual
6526 breakpoint.
6527
6528 2004-05-05 Andrew Cagney <cagney@redhat.com>
6529
6530 * gdbarch.sh (PARM_BOUNDARY): Delete.
6531 gdbarch.h, gdbarch.c: Re-generate.
6532 * valops.c (PARM_BOUNDARY): Delete macro.
6533 (value_push): Delete PARM_BOUNDARY code.
6534 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
6535
6536 2004-05-04 Jim Blandy <jimb@redhat.com>
6537
6538 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
6539 Don't assume that the gprs, fprs, and UISA sprs are
6540 contiguous, start at register number zero, and end with fpscr.
6541 Instead, use the numbers from the tdep structure.
6542
6543 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
6544 should no longer be used in code specific to the RS6000 and its
6545 derivatives.
6546 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
6547 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
6548 tdep->ppc_fp0_regnum.
6549 (ppc_supply_fpregset, ppc_collect_fpregset)
6550 (rs6000_push_dummy_call, rs6000_extract_return_value)
6551 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
6552 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
6553 FP0_REGNUM.
6554 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
6555 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
6556 Same.
6557 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
6558 bdm_ppc_store_registers): Same.
6559 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
6560 (store_register, fill_fpregset): Same.
6561 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
6562 (ppc_linux_supply_fpregset): Same.
6563 * ppcnbsd-nat.c (getfpregs_supplies): Same.
6564 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
6565 Same.
6566 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
6567 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
6568 ppc64_sysv_abi_return_value): Same.
6569 * rs6000-nat.c (regmap, fetch_inferior_registers)
6570 (store_inferior_registers, fetch_core_registers): Same.
6571
6572 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6573
6574 * m68knbsd-nat.c: Remove file.
6575 * m68knbsd-tdep.c: Remove file.
6576 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
6577 dependencies.
6578 * configure.host: Add m68k-*-netbsdelf*.
6579 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
6580 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
6581 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
6582 (XM_FILE): Remove.
6583 * config/m68k/nbsdelf.mh: New file.
6584 * config/m68k/nbsd.mt: New file.
6585 * config/m68k/nbsdaout.mt: Remove file.
6586 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
6587 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
6588 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
6589 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
6590 (use_struct_convention): Remove prototype.
6591 (USE_STRUCT_CONVENTION): Remove define.
6592 * config/m68k/xm-nbsd.h: Remove file.
6593
6594 2004-05-04 Michael Snyder <msnyder@redhat.com>
6595
6596 * m68k-tdep.c (m68k_gdbarch_init): Default to using
6597 reg_struct_return method (as gcc usually does for cross targets).
6598
6599 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6600
6601 Committed by Andrew Cagney.
6602 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
6603 alignment padding when accessing ucontext struct members.
6604
6605 2004-05-04 Jim Blandy <jimb@redhat.com>
6606
6607 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
6608 'ppc_gplast_regnum' member.
6609 (ppc_num_gprs): New enum constant.
6610 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
6611 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
6612 * rs6000-nat.c (regmap, fetch_inferior_registers,
6613 store_inferior_registers): Same.
6614 * rs6000-tdep.c (e500_pseudo_register_read)
6615 (e500_pseudo_register_write): Same.
6616 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
6617
6618 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
6619 * ppc-tdep.h (ppc_num_fprs): New enum constant.
6620 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
6621 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
6622 FPLAST_REGNUM.
6623 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6624 Same.
6625 * ppc-linux-nat.c (ppc_register_u_addr): Same.
6626 * rs6000-nat.c (regmap, fetch_inferior_registers)
6627 (store_inferior_registers): Same.
6628
6629 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
6630 with FPLAST_REGNUM.
6631
6632 2004-05-03 Joel Brobecker <brobecker@gnat.com>
6633
6634 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
6635 failure detected by recent versions of GCC.
6636 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
6637 to be consistent with the usage in dwarf2_create_include_psymtab.
6638
6639 2004-05-03 Michael Snyder <msnyder@redhat.com>
6640
6641 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
6642 (heuristic_proc_start): Whitespace cleanup.
6643
6644 2004-05-04 Mark Kettenis <kettenis@gnu.org>
6645
6646 * sun3-nat.c: Remove file.
6647 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
6648 dependencies.
6649 (ALLDEPFILES): Remove sun3-nat.c.
6650 (sun3-nat.o): Remove dependencies.
6651
6652 * i386-interix-nat.c, i386-interix-tdep.c,
6653 config/i386/nm-interix.h, config/i386/interix.mh,
6654 config/i386/interix.mt: Remove files.
6655 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
6656 dependencies.
6657
6658 2004-05-03 Mark Kettenis <kettenis@gnu.org>
6659
6660 * m68k-tdep.h (struct gdbarch_tdep): Add member
6661 struct_value_regnum.
6662 (m68k_svr4_init_abi): New prototype.
6663 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
6664 different calling conventions.
6665 (m68k_extract_return_value): Remove code dealing with single-field
6666 structs.
6667 (m68k_store_return_value): Remove code dealing with single-field
6668 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
6669 (m68k_extract_struct_value_address): Remove function.
6670 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
6671 (m68k_reg_struct_return_p, m68k_return_value)
6672 (m68k_svr4_return_value): New functions.
6673 (m68k_use_struct_convention): Remove function.
6674 (m68k_push_dummy_call): Use new struct_value_regnum member of
6675 `struct gdbarch_tdep' instead of hardcoded register number to
6676 store STRUCT_ADDR.
6677 (m68k_svr4_init_abi): New function.
6678 (m68k_gdbarch_init): Don't set extract_return_value,
6679 store_return_values, deprecated_extract_struct_value_address and
6680 use_struct_convention. Set return_value instead. Initialize new
6681 struct_value_regnum member of `struct gdbarch_tdep'.
6682 * m68klinux-tdep.c: Update copyright year.
6683 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
6684 (m68k_linux_extract_struct_value_address): Remove function.
6685 (m68k_linux_init_abi): Don't set extract_return_value,
6686 store_return_values, deprecated_extract_struct_value_address and
6687 use_struct_convention. Call m68k_svr4_init_abi but override the
6688 new struct_value_regnum member of `struct gdbarch_tdep'.
6689 * Makefile.in (m68k-tdep.o): Update dependencies.
6690
6691 2004-05-03 J. Brobecker <brobecker@gnat.com>
6692
6693 * dwarf2read.c (line_header): Add new included_p field in
6694 field file_names.
6695 (partial_die_info): New field has_stmt_list. New field line_offset.
6696 (dwarf2_create_include_psymtab): New function.
6697 (dwarf2_build_include_psymtabs): New function.
6698 (add_file_name): Add forward declaration. Initialize new field.
6699 (dwarf_decode_lines): Add new parameter. Enhance this procedure
6700 to be able to determine the list of files included by the
6701 given unit, and build their associated psymtabs.
6702 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
6703 files as well.
6704 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
6705 (read_file_scope): Update call to dwarf_decode_lines.
6706 (read_partial_die): Handle DW_AT_stmt_list attributes.
6707
6708 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
6709
6710 Unfix PR gdb/1626.
6711 * configure.in: Revert special case for osf5.*.
6712 * configure: Regenerate.
6713
6714 2004-05-02 Jim Blandy <jimb@redhat.com>
6715
6716 Move the symbol-file-from-memory functions into their own file.
6717 * symfile-mem.c, symfile-mem.h: New files.
6718 * symfile.c (symbol_file_add_from_bfd): New function.
6719 (symbol_file_add): Call symbol_file_add_from_bfd.
6720 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
6721 Moved to symfile-mem.c.
6722 (_initialize_symfile): Move definition of
6723 add-symbol-file-from-memory command to symfile-mem.c.
6724 * symfile.h (symbol_file_add_from_bfd): New declaration.
6725 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
6726 * config/powerpc/linux.mt (TDEPFILES): Same.
6727 * Makefile.in (SFILES): Add symfile-mem.c.
6728 (symfile_mem_h): New variable.
6729 (HFILES_NO_SRCDIR): Add symfile-mem.h.
6730 (symfile-mem.o): New rule.
6731
6732 2004-05-01 Andrew Cagney <cagney@redhat.com>
6733
6734 * breakpoint.c (insert_bp_location): Use get_frame_id, and
6735 frame_find_by_id instead of frame_relative_level.
6736 (do_enable_breakpoint): Ditto.
6737 * thread.c: Update copyright.
6738 (info_threads_command): Ditto, simplify.
6739
6740 * frame.c (deprecated_generic_get_saved_register): Delete
6741 function, moved to "xstormy16-tdep.c".
6742 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
6743 deprecated_generic_get_saved_register from "frame.c".
6744 (xstormy16_frame_saved_register): Call
6745 xstormy16_get_saved_register.
6746 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
6747 static.
6748 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
6749 * frame.h (deprecated_generic_get_saved_register): Delete.
6750
6751 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
6752
6753 * dwarfread.c: Update documentation on the state of dwarf-1.
6754
6755 2004-05-01 Andrew Cagney <cagney@redhat.com>
6756
6757 * stack.c (select_frame_command): Delete call to
6758 frame_relative_level.
6759 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
6760 Delete #if0 code.
6761 (frame_info): Do not print FRAMELESS.
6762 (print_block_frame_labels): Replace DEPRECATED_STREQ.
6763 (catch_info): Delete #if0 code.
6764
6765 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
6766 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
6767 of frame_relative_level.
6768 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
6769 to SENTINEL_FRAME.
6770 * frame.h (enum frame_type): Add SENTINEL_FRAME.
6771 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
6772 frame_relative_level.
6773
6774 * frame.h (deprecated_set_frame_type): Delete declaration.
6775 * frame.c (deprecated_set_frame_type): Delete function, update
6776 comments.
6777
6778 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
6779 * gdbarch.h, gdbarch.c: Re-generate.
6780 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
6781 (shnbsd_pc_in_sigtramp): Delete.
6782 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
6783 pc_in_sigtramp.
6784 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
6785 pc_in_sigtramp.
6786 * frame.h: Update comments.
6787 * ppc-linux-tdep.c: Update comments.
6788 * breakpoint.c (bpstat_what): Update comments.
6789
6790 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
6791 m68klinux-tdep.o's dependencies, were previously added to
6792 m68klinux-nat.o.
6793
6794 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
6795 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
6796 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6797 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6798 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6799
6800 * Makefile.in (m68klinux-nat.o): Update dependencies.
6801 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6802 (m68k_linux_sigtramp_frame_cache)
6803 (m68k_linux_sigtramp_frame_this_id)
6804 (m68k_linux_sigtramp_frame_prev_register)
6805 (m68k_linux_sigtramp_frame_unwind)
6806 (m68k_linux_sigtramp_frame_sniffer)
6807 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
6808 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
6809 names, use trad-frame.h.
6810 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
6811 (struct m68k_sigtramp_info): Delete.
6812 * m68k-tdep.c (m68k_sigtramp_frame_cache)
6813 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
6814 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
6815 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
6816 "m68klinux-tdep.c".
6817
6818 * infrun.c (check_sigtramp2): Delete check for
6819 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
6820
6821 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6822
6823 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
6824
6825 2004-05-01 Andrew Cagney <cagney@redhat.com>
6826
6827 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6828 (frv_linux_sigtramp_frame_cache)
6829 (frv_linux_sigtramp_frame_this_id)
6830 (frv_linux_sigtramp_frame_prev_register)
6831 (frv_linux_sigtramp_frame_unwind)
6832 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
6833 include "linux" in function and variable names, directly call
6834 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
6835 the latest trad-frame code.
6836 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
6837 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
6838 * Makefile.in (frv-linux-tdep.o): Update dependencies.
6839 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
6840 * frv-tdep.c (frv_sigtramp_frame_cache)
6841 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
6842 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
6843 frv-linux-tdep.c.
6844 (frv_gdbarch_init): Do not append a sigtramp sniffer.
6845 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
6846 (frv_set_sigcontext_reg_addr): Delete function.
6847
6848 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
6849 (DEPRECATED_SIGTRAMP_END): Delete.
6850 * gdbarch.h, gdbarch.c: Re-generate.
6851 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
6852 * config/vax/tm-vaxbsd.h: Update copyright.
6853 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6854 (DEPRECATED_IN_SIGTRAMP): Define.
6855 * config/m68k/tm-nbsd.h: Update copyright.
6856 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6857 (DEPRECATED_IN_SIGTRAMP): Define.
6858
6859 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6860
6861 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
6862 encondings. Fixes PR gdb/1628.
6863
6864 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
6865 DW_CFA_restore state without a matching DW_CFA_remember_state
6866 instead of aborting. Fixes PR backtrace/1589.
6867
6868 2004-04-30 Joel Brobecker <brobecker@gnat.com>
6869
6870 * MAINTAINERS: Add self as AIX maintainer.
6871 Update my e-mail address in write-after-approval section.
6872
6873 2004-04-30 Andrew Cagney <cagney@redhat.com>
6874
6875 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
6876 (legacy_get_prev_frame): Ditto.
6877
6878 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
6879 (mips_gdbarch_init): Do not set pc_in_sigtramp.
6880 * mipsread.c (sigtramp_address): Delete extern variable.
6881 (mipscoff_new_init): Delete reference.
6882 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
6883 (fixup_sigtramp): Delete function.
6884 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
6885 (fixup_sigtramp): Delete declarations.
6886
6887 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
6888 deprecated_pc_in_sigtramp.
6889 (ppcnbsd_pc_in_sigtramp): Delete function.
6890
6891 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6892
6893 * config/m68k/nm-nbsd.h: Tweak comments.
6894 * config/m68k/nm-nbsdaout.h: Likewise.
6895
6896 2004-04-30 Andrew Cagney <cagney@redhat.com>
6897
6898 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
6899 legacy_pc_in_sigtramp.
6900 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
6901
6902 2004-05-01 Mark Kettenis <kettenis@gnu.org>
6903
6904 Add OpenBSD/m68k support.
6905 * NEWS (New native configurations): Mention OpenBSD/m68k.
6906 * m68kbsd-tdep.c: New file.
6907 * m68kbsd-nat.c: New file.
6908 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
6909 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
6910 * configure.host: Add m68k-*-openbsd.
6911 * configure.tgt: Add m68k-*-openbsd.
6912 * config/m68k/tm-obsd.h: New file.
6913 * config/m68k/obsd.mt: New file.
6914 * config/m68k/obsd.mh: New file.
6915 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
6916 m68kbsd-tdep.c.
6917
6918 2004-04-30 Andrew Cagney <cagney@redhat.com>
6919
6920 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
6921 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
6922
6923 2004-04-30 Mark Kettenis <kettenis@gnu.org>
6924
6925 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
6926 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
6927
6928 2004-04-30 Brian Ford <ford@vss.fsi.com>
6929
6930 Revert 2004-04-16 change.
6931 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
6932 (i386_coff_init_abi): Remove.
6933 * i386-tdep.h (i386_coff_init_abi): Remove.
6934 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
6935
6936 2004-04-30 Andrew Cagney <cagney@redhat.com>
6937
6938 * blockframe.c (find_pc_partial_function): Delete use of
6939 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
6940 DEPRECATED_SIGTRAMP_END.
6941
6942 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
6943 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
6944 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
6945 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
6946 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
6947
6948 * defs.h (deprecated_inside_entry_file): Delete declaration.
6949 * blockframe.c (deprecated_inside_entry_file): Delete function.
6950 (legacy_frame_chain_valid): Delete call.
6951 * sh64-tdep.c (sh64_frame_chain): Delete call.
6952 * objfiles.h: Update comments.
6953 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
6954 call.
6955 * frame.c (get_prev_frame): Delete call, update comments.
6956
6957 2004-04-30 Brian Ford <ford@vss.fsi.com>
6958
6959 * MAINTAINERS (Write After Approval): Add myself.
6960
6961 2004-04-30 Andrew Cagney <cagney@redhat.com>
6962
6963 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
6964 * gdbarch.h, gdbarch.c: Re-generate.
6965 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
6966 code.
6967
6968 2004-04-30 Andrew Cagney <cagney@redhat.com>
6969
6970 * gdb-events.sh (selected_thread_changed)
6971 (selected_frame_level_changed, target_changed): Delete.
6972 * gdb-events.h, gdb-events.c: Re-generate.
6973 * valops.c (value_assign): Update.
6974 * stack.c (select_frame_command, up_silently_base)
6975 (down_silently_base): Update.
6976
6977 2004-04-29 Andrew Cagney <cagney@redhat.com>
6978
6979 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
6980 registers correctly.
6981 (print_gp_register_row, mips32_heuristic_proc_desc)
6982 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
6983 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
6984 references to mips_isa_regsize.
6985
6986 2004-04-29 Andrew Cagney <cagney@redhat.com>
6987
6988 * mips-tdep.c (struct gdbarch_tdep): Delete
6989 mips_fp_register_double.
6990 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
6991 mips_abi_regsize.
6992 (mips_gdbarch_init): Do not set mips_fp_register_double.
6993 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
6994
6995 2004-04-29 Joel Brobecker <brobecker@gnat.com>
6996
6997 Committed by Andrew Cagney.
6998 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
6999 function calls.
7000
7001 2004-04-29 Andrew Cagney <cagney@redhat.com>
7002
7003 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
7004 gdbarch, use mips_abi, update callers.
7005 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
7006 mips_abi_regsize, update callers.
7007 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
7008 mips_default_abi_regsize.
7009 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
7010 mips_default_abi_regsize.
7011
7012 2004-04-29 Andrew Cagney <cagney@redhat.com>
7013
7014 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
7015 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
7016 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
7017 mips_default_abi_regsize.
7018 (mips_isa_regsize): Rename mips_regisze.
7019 * mipsnbsd-tdep.c: Update.
7020 * mips-linux-tdep.c: Update.
7021 * irix5-nat.c: Update.
7022 * mips-tdep.h (mips_isa_regsize): Update.
7023
7024 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
7025 Delete all disabled code.
7026 * gdb-events.h, gdb-events.c: Re-generate.
7027
7028 2004-04-19 Jerome Guitton <guitton@gnat.com>
7029 Mark Kettenis <kettenis@gnu.org>
7030
7031 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
7032 the function begins with a branch instruction.
7033
7034 2004-04-29 Mark Kettenis <kettenis@gnu.org>
7035
7036 * i386-tdep.c: Fix spelling mistakes.
7037
7038 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7039 Andrew Cagney <cagney@redhat.com>
7040
7041 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
7042 <sys/proc.h>.
7043 * acconfig.h: Provide default _KMEMUSER value.
7044 * config.in, configure: Re-generate.
7045 * NEWS: Mention fix.
7046
7047 2004-04-24 Randolph Chung <tausq@debian.org>
7048
7049 * configure.host (hppa*-*-linux*): New target.
7050 * configure.tgt (hppa*-*-linux*): Likewise.
7051 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
7052 gdbarch_init_osabi() call earlier so that osabi-specific frame
7053 unwinders can be registered first.
7054 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
7055 hppa-linux-nat.c.
7056 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
7057 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
7058 * config/pa/linux.mh: New file.
7059 * config/pa/linux.mt: New file.
7060 * config/pa/nm-linux.h: New file.
7061 * config/pa/xm-linux.h: New file.
7062 * hppa-linux-nat.c: New file.
7063 * hppa-linux-tdep.c: New file.
7064
7065 2004-04-28 Randolph Chung <tausq@debian.org>
7066
7067 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
7068 return values.
7069 (hppa32_push_dummy_call): Fix small struct and floating point argument
7070 passing, and make sure the stack frame is properly aligned.
7071
7072 2004-04-28 Andrew Cagney <cagney@redhat.com>
7073
7074 * stack.c (print_stack_frame): Fix description.
7075
7076 * NEWS: Mention gdb/gdbserver/configure execute permission
7077 changed. PR server/519.
7078
7079 2004-04-28 Andrew Cagney <cagney@redhat.com>
7080
7081 * stack.c (print_stack_frame_stub): Delete declaration.
7082 (struct print_stack_frame_args, print_stack_frame)
7083 (print_frame_info, print_frame): Replace "source" with print what.
7084 Replace "print" with "print_level". Replace "args" with
7085 "print_args".
7086 * frame.h (show_and_print_stack_frame, print_stack_frame)
7087 (print_frame_info): Update declarations.
7088 * stack.c (select_and_print_frame, frame_command)
7089 (current_frame_command, up_command, down_command): Update calls -
7090 use get_selected_frame, pass "enum print_what" for source, do not
7091 call frame_relative_level.
7092 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
7093 * remote-rdp.c (remote_rdp_open): Ditto.
7094 * remote-mips.c (common_open): Ditto.
7095 * remote-e7000.c (e7000_start_remote): Ditto.
7096 * ocd.c (ocd_start_remote): Ditto.
7097 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
7098 * infrun.c (normal_stop): Ditto.
7099 * inflow.c (kill_command): Ditto.
7100 * infcmd.c (finish_command): Ditto.
7101 * corelow.c (core_open): Ditto.
7102 * tracepoint.c (finish_tfind_command): Ditto.
7103 * thread.c (info_threads_command, info_threads_command)
7104 (restore_current_thread, do_captured_thread_select): Ditto.
7105 * ada-tasks.c (task_command): Ditto.
7106
7107 2004-04-26 Orjan Friberg <orjanf@axis.com>
7108
7109 * frame.c: Include "observer.h".
7110 (frame_observer_target_changed): New function.
7111 (_initialize_frame): Attach target_changed observer.
7112 * regcache.c: Include "observer.h".
7113 (regcache_observer_target_changed): New function.
7114 (_initialize_regcache): Attach target_changed observer.
7115 * valops.c: Include "observer.h".
7116 (value_assign): Notify target_changed event when modifying register.
7117 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
7118
7119 2004-04-26 Orjan Friberg <orjanf@axis.com>
7120
7121 From Paul Koning <pkoning@equallogic.com>:
7122 * breakpoint.c (free_valchain): New function.
7123 (insert_bp_location, delete_breakpoint): Use free_valchain.
7124 (remove_breakpoint): Do not remove the valchain.
7125 (bpstat_stop_status): If not stopped by watchpoint, skip
7126 watchpoints when generating stop status list.
7127 * infrun.c (handle_inferior_event): Make
7128 stepped_after_stopped_by_watchpoint a global variable.
7129 * remote.c (remote_stopped_data_address): Return watch data
7130 address rather than zero if stepped_after_stopped_by_watchpoint is
7131 set.
7132
7133 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
7134
7135 Fix PR gdb/1626.
7136 * configure.in: Check for curses after termcap.
7137 On osf5.*, do not check for ncurses.
7138 * configure: Regenerate.
7139
7140 2004-04-25 Mark Kettenis <kettenis@gnu.org>
7141
7142 * ppcobsd-nat.c: Include "ppc-tdep.h".
7143 * Makefile.in (ppcobsd-nat.o): Update dependencies.
7144
7145 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
7146 Fixes PR tdep/1623 and PR tdep/1624.
7147
7148 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
7149
7150 * xmodem.h, xmodem.c: Remove files.
7151 * Makefile.in: Remove references to xmodem.h, xmodem.c.
7152
7153 2004-04-23 Randolph Chung <tausq@debian.org>
7154
7155 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
7156 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
7157 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
7158 for handling stackless frames.
7159 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
7160
7161 2004-04-23 Randolph Chung <tausq@debian.org>
7162
7163 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
7164 starts at a pc before the frame is created.
7165
7166 2004-04-23 Joel Brobecker <brobecker@gnat.com>
7167
7168 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
7169
7170 2004-04-23 Jerome Guitton <guitton@gnat.com>
7171
7172 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
7173 use convert_typed_floating to get the appropriate format.
7174
7175 2004-04-22 Randolph Chung <tausq@debian.org>
7176
7177 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
7178 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
7179 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
7180 (hppa_sign_extend): Add prototype.
7181 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
7182 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
7183 (sign_extend): Rename with hppa_ prefix and make non-static. Other
7184 hppa targets will also use these functions.
7185 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
7186 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
7187 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
7188 (hppa_gdbarch_init): Remove gdbarch setting of
7189 skip_trampoline_code, in_solib_call_trampoline and
7190 in_solib_return_trampoline.
7191 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
7192 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
7193 hppa_in_solib_call_trampoline.
7194 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
7195 Moved from hppa-tdep.c.
7196 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
7197 in_solib_call_trampoline and in_solib_return_trampoline.
7198
7199 2004-04-22 Randolph Chung <tausq@debian.org>
7200
7201 * hppa-tdep.c (hppa_debug): New variable.
7202 (find_unwind_entry, hppa_frame_cache): Add debug output.
7203 (_initialize_hppa_tdep): Add command to set debug flag.
7204
7205 2004-04-22 Andrew Cagney <cagney@redhat.com>
7206
7207 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
7208 "trad-frame.h".
7209 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
7210 signal trampoline unwinder.
7211 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
7212
7213 2004-04-22 Mark Kettenis <kettenis@gnu.org>
7214
7215 Add OpenBSD/powerpc support.
7216 * NEWS (New native configurations): Mention OpenBSD/powerpc.
7217 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
7218 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
7219 (ppc_collect_fpregset): New prototypes.
7220 * ppcobsd-nat.c: New file.
7221 * ppcobsd-tdep.c: New file.
7222 * ppcobsd-tdep.h: New file.
7223 * rs6000-tdep.c: Include "regset.h".
7224 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
7225 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
7226 New functions.
7227 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
7228 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
7229 (rs6000-tdep.o): Update dependencies.
7230 * configure.host: Add powerpc-*-openbsd.
7231 * configure.tgt: Add powerpc-*-openbsd.
7232 * config/powerpc/obsd.mh: New file.
7233 * config/powerpc/nm-obsd.h: New file.
7234 * config/powerpc/obsd.mt: New file.
7235
7236 2004-04-22 Andrew Cagney <cagney@redhat.com>
7237
7238 * frame.h (show_frame_info): Delete declaration.
7239
7240 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
7241 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
7242 * m32r-tdep.c (m32r_frame_this_id): Ditto.
7243 * frv-tdep.c (frv_frame_this_id): Ditto.
7244 * avr-tdep.c (avr_frame_this_id): Ditto.
7245
7246 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
7247
7248 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
7249
7250 2004-04-22 Jim Blandy <jimb@redhat.com>
7251
7252 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
7253 register number zero.
7254
7255 2004-04-21 Michael Snyder <msnyder@redhat.com>
7256
7257 * mips-tdep.c (heuristic_proc_start):
7258 Warning() already prefixes "Warning: ".
7259
7260 2004-04-21 Andrew Cagney <cagney@redhat.com>
7261
7262 * annotate.h (deprecated_annotate_starting_hook)
7263 (deprecated_annotate_stopped_hook)
7264 (deprecated_annotate_exited_hook)
7265 (deprecated_annotate_signal_hook)
7266 (deprecated_annotate_signalled_hook): Deprecate.
7267 * tracepoint.h (deprecated_create_tracepoint_hook)
7268 (deprecated_delete_tracepoint_hook)
7269 (deprecated_modify_tracepoint_hook)
7270 (deprecated_trace_find_hook)
7271 (deprecated_trace_start_stop_hook): Deprecate.
7272 * target.h (deprecated_target_new_objfile_hook): Deprecate.
7273 * remote.h (deprecated_target_resume_hook)
7274 (deprecated_target_wait_loop_hook): Deprecate.
7275 * gdbcore.h (deprecated_exec_file_display_hook)
7276 (deprecated_file_changed_hook): Deprecate.
7277 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
7278 * defs.h (deprecated_modify_breakpoint_hook)
7279 (deprecated_command_loop_hook, deprecated_show_load_progress)
7280 (deprecated_print_frame_info_listing_hook)
7281 (deprecated_query_hook, deprecated_warning_hook)
7282 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
7283 (deprecated_delete_breakpoint_hook)
7284 (deprecated_interactive_hook, deprecated_registers_changed_hook)
7285 (deprecated_readline_begin_hook, deprecated_readline_hook)
7286 (deprecated_readline_end_hook, deprecated_register_changed_hook)
7287 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
7288 (deprecated_context_hook, deprecated_target_wait_hook)
7289 (deprecated_attach_hook, deprecated_detach_hook)
7290 (deprecated_call_command_hook, deprecated_set_hook)
7291 (deprecated_error_hook, deprecated_error_begin_hook)
7292 (deprecated_ui_load_progress_hook): Deprecate.
7293 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
7294 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
7295 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
7296 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
7297 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
7298 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
7299 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
7300 * annotate.c, aix-thread.c: Update.
7301
7302 2004-04-21 Andrew Cagney <cagney@redhat.com>
7303
7304 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
7305 * vaxnbsd-tdep.c: Include "gdb_string.h".
7306
7307 * symfile.c (symbol_file_add_from_memory): #if 0 function.
7308 (add_symbol_file_from_memory_command): #if 0 function body, call
7309 error instead.
7310
7311 2004-04-21 Andrew Cagney <cagney@redhat.com>
7312
7313 * gdbcore.h: Update copyright.
7314 (deprecated_add_core_fns): Rename add_core_fns.
7315 * win32-nat.c (_initialize_core_win32): Update.
7316 * sun3-nat.c (_initialize_core_sun3): Update.
7317 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
7318 * rs6000-nat.c (_initialize_core_rs6000): Update.
7319 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
7320 * nto-tdep.c (_initialize_nto_tdep): Update.
7321 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
7322 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
7323 * mips-nat.c (_initialize_core_mips): Update.
7324 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7325 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
7326 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
7327 * lynx-nat.c (_initialize_core_lynx): Update.
7328 * irix5-nat.c (_initialize_core_irix5): Update.
7329 * i386-interix-nat.c (_initialize_core_interix): Update.
7330 * cris-tdep.c (_initialize_cris_tdep): Update.
7331 * corelow.c (deprecated_add_core_fns): Update.
7332 * core-regset.c (_initialize_core_regset): Update.
7333 * core-aout.c (_initialize_core_aout): Update.
7334 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
7335 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
7336 * alpha-nat.c (_initialize_core_alpha): Update.
7337
7338 2004-04-21 Jim Blandy <jimb@redhat.com>
7339
7340 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
7341
7342 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
7343
7344 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
7345 Delete.
7346 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
7347 (read_attribute_value): Update calls to dwarf_alloc_block.
7348 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
7349 dwarf2_tmp_obstack.
7350 (psymtab_to_symtab_1): Likewise. Clean up using
7351 free_stack_comp_unit.
7352 (add_to_cu_func_list): Use the comp_unit_obstack.
7353
7354 2004-04-19 Joel Brobecker <brobecker@gnat.com>
7355
7356 * dwarf2read.c (dwarf2_flag_true_p): New function.
7357 (die_is_declaration): Use the function above. Add some comments.
7358
7359 2004-04-19 Mark Kettenis <kettenis@gnu.org>
7360
7361 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
7362 architecture when registering sparcnbsd_core_osabi_sniffer.
7363 Adjust comment.
7364
7365 2004-04-18 Mark Kettenis <kettenis@gnu.org>
7366
7367 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
7368 return value.
7369
7370 Based on a patch from Brian Ford <ford@vss.fsi.com>:
7371 * i386-tdep.c: Correct register numbering scheme comments
7372 throughout.
7373 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
7374 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
7375 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
7376 (i386_gdb_arch_init): Likewise.
7377
7378 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
7379 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
7380 ppcnbsd-tdep.o.
7381
7382 * m68k-tdep.h: Tweak comments.
7383 * m68k-tdep.c: Tweak comment.
7384
7385 2004-04-17 Randolph Chung <tausq@debian.org>
7386
7387 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
7388 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
7389 (hppa_hpux_som_init_abi): Set is_elf to 0.
7390 (hppa_hpux_elf_init_abi): Set is_elf to 1.
7391 * hppa-tdep.c (low_text_segment_address): Remove global.
7392 (record_text_segment_lowaddr): Pass in low address as parameter. Use
7393 section offset to calculate segment address.
7394 (internalize_unwinds): Define low_text_segment_address as local and
7395 pass to record_text_segment_lowaddr for ELF targets.
7396 (hppa_gdbarch_init): Zero fill tdep structure.
7397 (hppa_dump_tdep): Print tdep structure.
7398 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
7399
7400 2004-04-17 Randolph Chung <tausq@debian.org>
7401
7402 * hppa-tdep.c (hppa_pseudo_register_read): Define.
7403 (hppa_gdbarch_init): Set pseudo_register_read.
7404 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
7405 * regcache.c (supply_register): Remove check for
7406 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
7407
7408 2004-04-17 Randolph Chung <tausq@debian.org>
7409
7410 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
7411 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
7412 (hpread_adjust_stack_address): Move to hpread.c.
7413 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7414 obj_private_struct): Move from tm-hppa.h.
7415 * hpread.c (hppa-tdep.h): Include.
7416 (hpread_adjust_stack_address): Move from hppa-tdep.c.
7417 (hpread_read_function_type, hpread_read_doc_function_type)
7418 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
7419 directly.
7420 * pa64solib.c (hppa-tdep.h): Include.
7421 * somsolib.c (hppa-tdep.h): Include.
7422 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
7423 inferior_status): Remove unused forward declarations.
7424 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
7425 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7426 obj_private_struct): Move to hppa-tdep.h.
7427 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
7428
7429 2004-04-17 Randolph Chung <tausq@debian.org>
7430
7431 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
7432 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
7433 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
7434 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
7435 Remove forward declaration and make static.
7436 (hppa_reg_struct_has_addr): Remove.
7437
7438 2004-04-16 Joel Brobecker <brobecker@gnat.com>
7439
7440 * observer.sh: Move comments in sed command to first column.
7441
7442 2004-04-16 Jason Molenda (jmolenda@apple.com)
7443
7444 * frame.c: Minor typeo corrections in comments.
7445
7446 2004-04-16 Joel Brobecker <brobecker@gnat.com>
7447
7448 * observer.c (observer_test_first_notification_function): Update
7449 function profile.
7450 (observer_test_second_notification_function): Likewise.
7451 (observer_test_third_notification_function): Likewise.
7452
7453 2004-04-16 Mark Kettenis <kettenis@gnu.org>
7454
7455 From Brian Ford <ford@vss.fsi.com>:
7456 * i386-tdep.c (i386_coff_init_abi): New function.
7457 * i386-tdep.h (i386_coff_init_abi): New prototype.
7458 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
7459 register number translation functions for DWARF and DWARF 2.
7460
7461 2004-04-16 Joel Brobecker <brobecker@gnat.com>
7462
7463 * dwarf2read.c: Back out my previous change, it was incorrect.
7464
7465 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
7466
7467 * dwarf2read.c: Include "hashtab.h".
7468 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
7469 has_namespace_info.
7470 (struct partial_die_info): Add comments. Use bitfields to reduce
7471 memory footprint. Add scope, scope_set, has_specification,
7472 spec_offset, die_parent, die_child, and die_sibling.
7473 (peek_die_abbrev): Add prototype.
7474 (partial_read_comp_unit_head): New function, broken out from
7475 dwarf2_build_psymtabs_hard.
7476 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
7477 Use partial_read_comp_unit_head. Initialize the CU and
7478 comp_unit_obstack. Update calls to read_partial_die and
7479 scan_partial_symbols. Use free_stack_comp_unit and
7480 load_partial_dies.
7481 (scan_partial_symbols): Change PDI to a pointer. Use the child and
7482 sibling pointers to walk partial DIEs. Call fixup_partial_die.
7483 Update calls to helper functions. Remove NAMESPACE argument.
7484 Update comments.
7485 (partial_die_parent_scope, partial_die_full_name): New functions.
7486 (add_partial_symbol): Remove namespace argument. Update call to
7487 pdi_needs_namespace. Use partial_die_full_name. Handle
7488 DW_TAG_namespace. Check has_namespace_info flag.
7489 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
7490 tag. Handle namespaces.
7491 (add_partial_namespace, add_partial_enumeration): Simplify.
7492 (guess_structure_name): New function, derived from
7493 add_partial_structure.
7494 (add_partial_structure): Remove.
7495 (determine_class_name): Update comment.
7496 (dwarf2_read_abbrevs): Set has_namespace_info flag.
7497 (is_type_tag_for_partial, load_partial_dies): New functions.
7498 (read_partial_die): Pass abbrev and abbrev_len as arguments.
7499 Record specifications instead of following them immediately.
7500 (find_partial_die_in_comp_unit, find_partial_die)
7501 (fixup_partial_die, free_stack_comp_unit)
7502 (hashtab_obstack_allocate, dummy_obstack_deallocate)
7503 (partial_die_hash, partial_die_eq): New functions.
7504 * Makefile.in (hashtab_h): Define.
7505 (dwarf2read.o): Update dependencies.
7506 (observer_inc, observer_h): Move to the correct section.
7507
7508 2004-04-15 Joel Brobecker <brobecker@gnat.com>
7509
7510 * dwarf2read.c (dwarf2_attribute_true_p): New function.
7511 (die_is_declaration): Use the function above. Add comment.
7512
7513 2004-04-15 Joel Brobecker <brobecker@gnat.com>
7514
7515 * dwarf2read.c (read_structure_scope): Identify stub types
7516 using die_is_declaration() only.
7517
7518 2004-04-15 Roland McGrath <roland@redhat.com>
7519
7520 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
7521 argument instead of NAME.
7522 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
7523 in call to symbol_file_add_with_addrs_or_offsets.
7524 (build_addr_info): New function, helper for ...
7525 (symbol_file_add_from_memory): New function.
7526 (add_symbol_file_from_memory_command): New function using that.
7527 (_initialize_symfile): Register it for add-symbol-file-from-memory.
7528 (pre_add_symbol_hook): Add const to argument type.
7529 * symfile.h (symbol_file_add_from_memory): Declare it.
7530
7531 2004-04-15 Mark Kettenis <kettenis@gnu.org>
7532
7533 * NEWS (New native configurations): Mention OpenBSD/vax.
7534 * configure.host: Add vax-*-openbsd*.
7535 * config/vax/obsd.mh: New file.
7536 * config/vax/nm-obsd.h: New file.
7537
7538 * vax-tdep.c: Include "regset.h".
7539 (vax_supply_gregset): New function.
7540 (vax_gregset): New variable.
7541 (vax_regset_from_core_section): New function.
7542 (vax_gdbarch_init): Set regset_from_core_section.
7543 * Makefile.in (vax-tdep.o): Update dependencies.
7544
7545 2004-04-15 Andrew Cagney <cagney@redhat.com>
7546
7547 * observer.c (normal_stop_subject, observer_notify_normal_stop)
7548 (observer_normal_stop_notification_stub)
7549 (observer_attach_normal_stop, observer_detach_normal_stop):
7550 Delete, replaced by #include "observer.inc".
7551 * infrun.c (normal_stop): Pass "stop_bpstat" to
7552 observer_notify_normal_stop.
7553 * Makefile.in (observer_inc): Define.
7554 (observer.o): Update dependencies.
7555 (observer.h, observer.inc): New rules.
7556 * observer.h: Delete file.
7557 * observer.sh: New file.
7558
7559 2004-04-15 Mark Kettenis <kettenis@gnu.org>
7560
7561 * vax-tdep.c (vax_frame_cache): Fix typo.
7562
7563 2004-04-14 Mark Kettenis <kettenis@gnu.org>
7564
7565 * NEWS (New native configurations): Mention NetBSD/vax.
7566 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
7567 * config/vax/nbsdelf.mh: New file.
7568 * config/vax/nbsdaout.mh: New file.
7569 * config/vax/nm-nbsd.h: New file.
7570 * config/vax/nm-nbsdaout.h: New file.
7571
7572 * vaxnbsd-tdep.c: New file.
7573 * Makefile.in (vaxnbsd-tdep.o): New dependency.
7574 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
7575 * config/vax/nbsd.mt: New file.
7576 * config/vax/tm-nbsd.h: New file.
7577
7578 * Makefile.in (vaxbsd-nat.o): New dependency.
7579
7580 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
7581 * vax-tdep.c (vax_store_arguments): Remove struct_return and
7582 struct_addr arguments. Don't push return value address.
7583 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
7584 arguments to vax_store_arguments. Store return value address in
7585 R1.
7586 (vax_store_struct_return, vax_extract_return_value)
7587 (vax_store_return_value): Remove functions.
7588 (vax_return_value): New function.
7589 (vax_gdbarch_init): Set return value. Don't set
7590 deprecated_store_struct_return, deprecated_extract_struct_return
7591 and deprecated_store_return_value.
7592
7593 2004-04-14 Andreas Schwab <schwab@suse.de>
7594
7595 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
7596 value buffer.
7597 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
7598
7599 2004-04-14 Mark Kettenis <kettenis@gnu.org>
7600
7601 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
7602 (vax_unwind_dummy_id): New functions.
7603 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
7604 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
7605 variables.
7606 (vax_fix_call_dummy): Remove function.
7607 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
7608 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
7609 call_dummy_location, deprecated_call_dummy_words,
7610 deprecated_sizeof_call_dummy_words,
7611 deprecated_call_dummy_breakpoint_offset,
7612 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
7613 and deprecated_dummy_write_sp.
7614
7615 2004-04-13 David Carlton <carlton@kealia.com>
7616
7617 * MAINTAINERS: Move myself to "paper trail" section.
7618
7619 2004-04-12 Mark Kettenis <kettenis@gnu.org>
7620
7621 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
7622 "trad-frame.h".
7623 (vax_frame_init_saved_regs): Remove function.
7624 (vax_sigtramp_saved_pc): Remove function.
7625 (vax_frame_saved_pc): Remove function.
7626 (vax_frame_args_address): Remove function.
7627 (vax_frame_num_args): Rewrite.
7628 (vax_frame_chain): Remove function.
7629 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
7630 VAX_FP_REGNUM.
7631 (vax_pop_frame): Likewise.
7632 (vax_saved_pc_after_call): Remove function.
7633 (struct vax_frame_cache): New structure.
7634 (vax_frame_cache): New function.
7635 (vax_frame_this_id): New function.
7636 (vax_frame_prev_register): New function.
7637 (vax_frame_unwind): New variable.
7638 (vax_frame_sniffer): New function.
7639 (vax_frame_base_address): New function.
7640 (vax_frame_args_address): New function.
7641 (vax_frame_base): New variable.
7642 (vax_unwind_pc): New function.
7643 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
7644 deprecated_fp_regnum, deprecated_saved_pc_after_call,
7645 deprecated_frame_chain, deprecated_frame_saved_pc,
7646 deprecated_frame_args_address and
7647 deprecated_frame_init_saved_regs.
7648 * Makefile.in (vax-tdep.o): Update dependencies.
7649
7650 * vaxbsd-nat.c: New file.
7651
7652 * vax-tdep.h: Update copyright year. Adjust comments.
7653 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
7654 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
7655 (vax_regnum): New enum. Replacing...
7656 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
7657 (VAX_PS_REGNUM): ... these removed macros.
7658 * vax-tdep.c (vax_register_name): Remove prototype.
7659 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
7660 (vax_register_byte, vax_register_raw_size,
7661 vax_register_virtual_size, vax_register_virtual_type): Remove
7662 functions.
7663 (vax_register_type): New function.
7664 (vax_breakpoint_from_pc): Reorganize.
7665 (vax_gdbarch_init): Set register_type. Don't set
7666 deprecated_register_size, deprecated_register_bytes,
7667 deprecated_register_byte, deprecated_register_raw_size,
7668 deprecated_max_register_raw_size,
7669 deprecated_register_virtual_size,
7670 deprecated_max_register_virtual_size and
7671 deprecated_register_virtual_type. Add comment on stack direction.
7672
7673 2004-04-11 Mark Kettenis <kettenis@gnu.org>
7674
7675 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
7676 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
7677 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
7678
7679 2004-04-10 Randolph Chung <tausq@debian.org>
7680
7681 * MAINTAINERS (write after approval): Add myself.
7682
7683 2004-04-07 Randolph Chung <tausq@debian.org>
7684
7685 * hppa-tdep.c (hppa_inner_than): Remove.
7686 (is_pa_2): Remove unused static variable.
7687 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
7688
7689 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
7690
7691 * language.h (language_defn): Add new la_post_parser field.
7692 * parser-defs.h (null_post_parser): New declaration (default for
7693 la_post_parser).
7694
7695 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
7696 insert call to that function.
7697 (parse_exp_in_context): New function, including code formerly in
7698 parse_exp_1. Calls language-dependent post-parser after
7699 prefixification.
7700 (parse_expression_in_context): New exported function.
7701 (null_post_parser): New definition.
7702 * expression.h (parse_expression_in_context): Add declaration.
7703
7704 * p-lang.c (pascal_language_defn): Add trivial post-parser.
7705 * c-lang.c (c_language_defn): Ditto.
7706 (cplus_language_defn): Ditto.
7707 (asm_language_defn): Ditto.
7708 (minimal_language_defn): Ditto.
7709 * f-lang.c (f_language_defn): Ditto.
7710 * jv-lang.c (java_language_defn): Ditto.
7711 * language.c (unknown_language_defn): Ditto.
7712 (auto_language_defn): Ditto.
7713 (local_language_defn): Ditto.
7714 * m2-lang.c (m2_language_defn): Ditto.
7715 * scm-lang.c (scm_language_defn): Ditto.
7716 * obj-lang.c (objc_language_defn): Ditto.
7717
7718 2004-04-10 Mark Kettenis <kettenis@gnu.org>
7719
7720 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
7721 (amd64nbsd_mcontext_addr): New function.
7722 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
7723 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
7724 with amd64nbsd_r_reg_offset, instead of building it on the fly.
7725
7726 * corelow.c (core_xfer_partial): Fix coding standards violation.
7727 Add support for TARGET_OBJECT_WCOOKIE.
7728
7729 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
7730 deprecated_pc_in_sigtramp.
7731 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
7732 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
7733 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
7734 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7735 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
7736 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7737 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
7738
7739 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
7740 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
7741 Fix typo.
7742
7743 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
7744 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
7745 (amd64_collect_fxsave): Likewise.
7746
7747 * i386-sol2-tdep.c: Include "gdb_string.h".
7748 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
7749 name.
7750 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7751
7752 2004-04-10 Mark Kettenis <kettenis@gnu.org>
7753
7754 * i386-sol2-tdep.c: Include "solib-svr4.h".
7755 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7756 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7757 * config/i386/tm-i386sol2.h: Include :solib.h".
7758 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
7759 solib-svr4.o and solib-legacy.o.
7760 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
7761 solib-svr4.o.
7762
7763 2004-04-09 Mark Kettenis <kettenis@gnu.org>
7764
7765 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
7766 whether a register is supplied by PTRACE_GETFPREGS.
7767 (store_inferior_registers): Likewise.
7768 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
7769 whether a register is supplied by PT_GETFPREGS.
7770 (store_inferior_registers): Likewise.
7771
7772 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
7773 * config/i386/linux64.mt (TDEPFILES): Likewise.
7774
7775 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
7776
7777 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
7778 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
7779 the program counter is in the range specified by `struct
7780 gdbarch_tdep'.
7781 * amd64-linux-tdep.c: Include "symtab.h".
7782 (amd64_linux_pc_in_sigtramp): Remove function.
7783 (amd64_linux_sigtramp_p): New function.
7784 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
7785 deprecated_pc_in_sigtramp.
7786 * amd64nbsd-tdep.c: Include "symtab.h".
7787 (amd64nbsd_sigtramp_p): New function.
7788 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
7789 deprecated_pc_in_sigtramp.
7790 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
7791 few comments.
7792 (amd64obsd_pc_in_sigtramp): Remove function.
7793 (amd64obsd_sigtramp_p): New function.
7794 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
7795 deprecated_pc_in_sigtramp.
7796 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
7797 (i386bsd_pc_ins_sigtramp): Remove prototype.
7798 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
7799 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
7800 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
7801 the program counter is in the range specified by `struct
7802 gdbarch_tdep'.
7803 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
7804 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
7805 (i386_go32_pc_in_sigtramp): Remove function.
7806 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
7807 Initialize TDEP->sigtramp_p.
7808 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
7809 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
7810 deprecated_pc_in_sigtramp.
7811 * i386-linux-tdep.c: Adjust comments.
7812 (i386_linux_pc_in_sigtramp): Remove function.
7813 (i386_linux_sigtramp_p): New function.
7814 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
7815 deprecated_pc_in_sigtramp.
7816 * i386-nto-tdep.c: Update copyright year.
7817 (i386nto_pc_in_sigtramp): Remove function.
7818 (i386nto_sigtramp_p): New function.
7819 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
7820 SP_REGNUM.
7821 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
7822 deprecated_pc_in_sigtramp.
7823 * i386-sol2-tdep.c: Update copyright year.
7824 (i386_sol2_pc_in_sigtramp): Remove function.
7825 (i386_sol2_sigtramp_p): New function.
7826 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
7827 deprecated_pc_in_sigtramp.
7828 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
7829 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
7830 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7831 deprecated_sigtramp_start and deprecated_sigtramp_end.
7832 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
7833 (i386nbsd_pc_in_sigtramp): Remove function.
7834 (i386nbsd_sigtramp_p): New function.
7835 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7836 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
7837 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
7838 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
7839 (i386obsd_pc_in_sigtramp): Remove function.
7840 (i386obsd_sigtramp_p): New function.
7841 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
7842 functions.
7843 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7844 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
7845 TDEP->sigtramp_p.
7846 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
7847 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
7848 dependencies.
7849
7850 * config/i386/i386aout.mt: Remove file.
7851
7852 * configure.tgt: Remove i[34567]86-*-go32*,
7853 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
7854 and i[34567]86-*-isc*. Set gdb_target to i386 for
7855 i[34567]86-*-netware* and i[34567]86-*-*.
7856 * config/i386/i386.mt: New file.
7857 * config/i386/embed.mt: Remove file.
7858 * config/i386/go32.mt: Remove file.
7859 * config/i386/i386nw.mt: Remove file.
7860 * config/i386/i386v.mt: Remove file.
7861 * config/i386/tm-go32.h: Remove file.
7862
7863 * tui/tui-hooks.c: Include "readline/readline.h" after
7864 "gdb_curses.h" instead of before.
7865 * tui/tui-io.c: Likewise.
7866
7867 * tui/tui.c: Fix typo in comment.
7868
7869 * sparc64-tdep.c (sparc_address_from_register): Remove function.
7870
7871 2004-04-08 Andrew Cagney <cagney@redhat.com>
7872
7873 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
7874 (deprecated_exception_support_initialized): Declare.
7875 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
7876 (initialize_hp_cxx_exception_support)
7877 (child_enable_exception_callback): Update.
7878 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
7879 (deprecated_exception_support_initialized): Rename
7880 deprecated_exception_catchpoints_are_fragile and
7881 deprecated_exception_support_initialized.
7882 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
7883
7884 * symtab.c (deprecated_hp_som_som_object_present): Rename
7885 hp_som_som_object_present.
7886 * symtab.h (deprecated_hp_som_som_object_present): Declare.
7887 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
7888 Update. Delete extern declaration.
7889 * valops.c (hp_som_som_object_present): Ditto.
7890 * parse.c (deprecated_hp_som_som_object_present)
7891 (parse_nested_classes_for_hpacc): Ditto.
7892 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
7893 * hppa-hpux-tdep.c (hp_som_som_object_present)
7894 (initialize_hp_cxx_exception_support): Ditto.
7895 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
7896 * cp-valprint.c (hp_som_som_object_present)
7897 (cp_print_class_method): Ditto.
7898 * c-typeprint.c (hp_som_som_object_present):
7899 (c_type_print_base): Ditto.
7900 * c-exp.y (hp_som_som_object_present): Ditto.
7901
7902 2004-04-08 Andrew Cagney <cagney@redhat.com>
7903
7904 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
7905 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
7906 (frame_unwind_find_by_frame): Re-implement the unwind code so
7907 that it can both prepend and append sniffers. Replace
7908 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
7909 * tramp-frame.c (tramp_frame_append): Use
7910 frame_unwind_prepend_unwinder.
7911 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
7912 frame_unwind_register_unwinder.
7913 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
7914 tramp_frame_append.
7915 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
7916 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
7917 (mips_linux_init_abi): Update.
7918
7919 2004-04-08 Kevin Buettner <kevinb@redhat.com>
7920
7921 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
7922 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
7923 file support.
7924
7925 2004-04-07 Kevin Buettner <kevinb@redhat.com>
7926
7927 * ia64-tdep.c (elf.h): Don't include.
7928 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
7929
7930 2004-04-07 Jason Molenda (jmolenda@apple.com)
7931
7932 * frame.h: Typeo corrections in comments.
7933
7934 2004-04-07 Jim Blandy <jimb@redhat.com>
7935
7936 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
7937 %esp and %ebp
7938
7939 2004-04-07 Mark Kettenis <kettenis@gnu.org>
7940
7941 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
7942 * config/sparc/linux64.mt (TDEPFILES): Likewise.
7943 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
7944 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
7945 and solib-legacy.o.
7946 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
7947 solib-svr4.o.
7948 * config/sparc/tm-sol2.h: Update copyright year. Include
7949 "solib.h".
7950
7951 * sparc-sol2-tdep.c: Update copyright year. Include
7952 "solib-svr4.h".
7953 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7954 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
7955 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7956 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
7957 dependencies.
7958
7959 2004-04-06 Andrew Cagney <cagney@redhat.com>
7960
7961 * infttrace.c: Include "infttrace.h".
7962 * infttrace.h: Include "target.h".
7963 * Makefile.in (infttrace_h): Update.
7964 (infttrace.o): Update.
7965
7966 2004-04-06 Andrew Cagney <cagney@redhat.com>
7967
7968 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
7969 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
7970 move extern declarations from here ...
7971 * infttrace.h: ... to here.
7972 * Makefile.in (hppah-nat.o): Update dependencies.
7973
7974 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
7975 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
7976 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
7977 (hppa_breakpoint_from_pc): Delete.
7978
7979 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
7980
7981 2004-04-05 Andrew Cagney <cagney@redhat.com>
7982
7983 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
7984 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
7985 <sys/file.h>.
7986
7987 2004-04-06 Randolph Chung <tausq@debian.org>
7988
7989 Committed by Andrew Cagney (mechanical change).
7990 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
7991 exception_catchpoints_are_fragile, find_stub_with_shl_get,
7992 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
7993 child_enable_exception_callback, current_ex_event,
7994 null_symtab_and_line, child_get_current_exception_event,
7995 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
7996 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
7997 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
7998 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
7999 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
8000 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
8001 Move hpux-specific definitions ...
8002 * hppa-hpux-tdep.c: ... to here.
8003
8004 2004-04-05 Andrew Cagney <cagney@redhat.com>
8005
8006 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
8007 skip_prologue_using_sal.
8008
8009 2004-04-05 Andrew Cagney <cagney@redhat.com>
8010
8011 * config/i386/tm-i386.h: Delete file.
8012 * config/i386/tm-vxworks.h: Update copyright, do not include
8013 "tm-i386.h".
8014 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
8015 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
8016 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
8017 * config/i386/ncr3000.mt (TM_FILE): Delete.
8018 * config/i386/interix.mt (TM_FILE): Delete.
8019 * config/i386/i386v.mt (TM_FILE): Delete.
8020 * config/i386/i386nw.mt (TM_FILE): Delete.
8021 * config/i386/i386gnu.mt (TM_FILE): Delete.
8022 * config/i386/i386aout.mt (TM_FILE): Delete.
8023 * config/i386/embed.mt (TM_FILE): Delete.
8024
8025 2004-04-05 Kevin Buettner <kevinb@redhat.com>
8026
8027 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
8028 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
8029 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
8030 (accg7_regnum): New constants.
8031 (last_spr_regnum, last_pseudo_regnum): Update.
8032 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
8033 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8034 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
8035 for accg registers.
8036 (frv_register_sim_regno): Update spr_map[].
8037
8038 2004-04-04 Andrew Cagney <cagney@redhat.com>
8039
8040 * config/mips/xm-riscos.h: Delete.
8041 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
8042 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
8043 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
8044 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
8045 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
8046 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
8047 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
8048 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
8049 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
8050 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
8051 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
8052 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
8053 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
8054 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
8055 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
8056 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
8057 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
8058 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
8059 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
8060 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
8061 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
8062 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
8063 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
8064 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
8065 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
8066 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8067
8068 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
8069 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
8070 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
8071 * configure.host: Remove m680[01]0-sun-sunos3*,
8072 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
8073 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
8074 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
8075 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
8076 mips-*-riscos*.
8077 * NEWS: Mention removed systems.
8078
8079 2004-04-04 Andrew Cagney <cagney@redhat.com>
8080
8081 GDB 6.1 release created from 6.1 branch.
8082
8083 2004-04-04 Andrew Cagney <cagney@redhat.com>
8084
8085 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
8086 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
8087 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
8088
8089 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
8090 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
8091 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
8092
8093 2004-04-03 Jim Blandy <jimb@redhat.com>
8094
8095 * MAINTAINERS: Chris Faylor has changed employers; add him to
8096 "paper trail" section, and update his E-mail address.
8097
8098 2004-04-03 Andrew Cagney <cagney@redhat.com>
8099
8100 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
8101 generic dummy frames.
8102 * dummy-frame.c: Update copyright.
8103 (dummy_frame_sniffer): Delete check for generic dummy frames.
8104
8105 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8106 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
8107 (REG_PARM_STACK_SPACE): Delete.
8108 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
8109 Inline reference to REG_PARM_STACK_SPACE.
8110
8111 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
8112 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8113 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
8114 (FRAME_BASE_BEFORE_SIGTRAMP)
8115 (hppa32_hpux_frame_base_before_sigtramp)
8116 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
8117 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
8118 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
8119 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8120 (FRAME_BASE_BEFORE_SIGTRAMP)
8121 (hppa64_hpux_frame_base_before_sigtramp)
8122 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
8123
8124 2004-04-03 Andrew Cagney <cagney@redhat.com>
8125
8126 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
8127
8128 2004-04-02 Andrew Cagney <cagney@redhat.com>
8129
8130 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
8131 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
8132 * dummy-frame.h: Delete out-of-date comments.
8133 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
8134 * gdbarch.h, gdbarch.c: Re-generate.
8135
8136 2004-04-02 Joel Brobecker <brobecker@gnat.com>
8137
8138 Committed by Andrew Cagney <cagney@redhat.com>.
8139 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
8140 into account an instruction saving a register if we have already
8141 seen an earlier instruction saving that same register.
8142
8143 2004-04-02 Andrew Cagney <cagney@redhat.com>
8144
8145 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
8146 * gdbarch.h, gdbarch.c: Re-generate.
8147 * frame.c (legacy_get_prev_frame): Delete references to
8148 DEPRECATED_INIT_FRAME_PC_FIRST.
8149
8150 * infrun.c (pc_in_sigtramp): Delete function.
8151 (check_sigtramp2): Inline call to pc_in_sigtramp, use
8152 get_frame_type.
8153
8154 2004-04-02 Andrew Cagney <cagney@redhat.com>
8155
8156 * infrun.c (handle_step_into_function): Delete code conditional on
8157 legacy_frame_p.
8158 (handle_inferior_event, step_over_function): Ditto.
8159
8160 2004-04-02 Andrew Cagney <cagney@redhat.com>
8161
8162 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
8163 "previous frame inner to this frame" test.
8164
8165 2004-04-02 Andrew Cagney <cagney@redhat.com>
8166
8167 * frame.c (safe_frame_unwind_memory): New function.
8168 * frame.h (safe_frame_unwind_memory): Declare. Update description
8169 of /safe_/ methods.
8170 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
8171 "next_frame". Use safe_frame_unwind_memory.
8172 (tramp_frame_sniffer): Update call to tramp_frame_start.
8173
8174 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
8175
8176 * dwarf2read.c (dwarf2_objfile_data_key): New.
8177 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
8178 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
8179 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
8180 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
8181 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
8182 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
8183 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
8184 Remove variables.
8185 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
8186 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
8187 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
8188 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
8189 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
8190 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
8191 Remove macros.
8192 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
8193 data.
8194 (dwarf2_locate_sections, dwarf2_build_psymtabs)
8195 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
8196 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
8197 (read_partial_die, read_full_die, read_indirect_string)
8198 (dwarf_decode_line_header, dwarf_decode_macros)
8199 (dwarf2_symbol_mark_computed): Remove use of removed macros.
8200 Update uses of removed variables.
8201 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
8202 of removed macros.
8203 (_initialize_dwarf2_read): New function.
8204 * symfile.h (dwarf2_has_info): Update prototype.
8205 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
8206 * elfread.c (elf_symfile_read): Likewise.
8207
8208 2004-04-01 Jim Blandy <jimb@redhat.com>
8209
8210 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
8211 function for register numbers on all the rs6000-derived targets.
8212 (rs6000_gdbarch_init): Don't register a separate
8213 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
8214 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
8215 variants.
8216
8217 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
8218 numbering.
8219
8220 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
8221
8222 * valarith.c: Update copyright notice.
8223 (value_add): Handle range types.
8224 (value_sub): Ditto.
8225 (value_equal): Ditto.
8226 (value_less): Ditto.
8227 (value_neg): Ditto.
8228 (value_complement): Ditto.
8229 (value_binop): Simplify slightly by using is_integral_type and
8230 eliminiating unnecessary COERCE_ENUMs.
8231
8232 2004-03-31 Andrew Cagney <cagney@redhat.com>
8233
8234 * frame.h (frame_unwind_id): Declare.
8235 * frame.c (frame_unwind_id): New function.
8236 (get_prev_frame_1): New function.
8237 (frame_debug_got_null_frame): New function.
8238 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
8239 code proper to prev_frame, update description.
8240 * infrun.c (step_over_function): Use frame_unwind_id.
8241
8242 2004-04-31 J. Brobecker <brobecker@gnat.com>
8243
8244 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
8245 (hppa64_push_dummy_call): Likewise.
8246
8247 2004-03-30 Jim Blandy <jimb@redhat.com>
8248
8249 From Ulrich Weigand:
8250 * utils.c (query): Do not use a va_list variable multiple times.
8251
8252 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
8253
8254 * Makefile.in (linux_nat_h): Update dependencies.
8255 * configure.in: Check for <gnu/libc-version.h>.
8256 * configure: Regenerate.
8257 * config.in: Regenerate.
8258 * linux-nat.h: Include "target.h". Add waitstatus field to
8259 struct lwp_info.
8260 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
8261 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
8262 to.
8263 (lin_lwp_handle_extended): New function. Handle clone events.
8264 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
8265 thread exit events.
8266 (child_wait): Handle clone events.
8267 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
8268 * linux-nat.c (linux_enable_event_reporting): Turn on
8269 PTRACE_O_TRACECLONE.
8270 (linux_handle_extended_wait): Handle clone events.
8271 * thread-db.c: Include <gnu/libc-version.h>.
8272 (struct private_thread_info): Add dying flag.
8273 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
8274 higher.
8275 (attach_thread): Update comments. Handle dying threads.
8276 (detach_thread): Set the dying flag.
8277 (check_event): Always call attach_thread.
8278
8279 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
8280
8281 * mips-tdep.c (mips_pdr_data): New.
8282 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
8283 (_initialize_mips_tdep): Initialize mips_pdr_data.
8284
8285 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
8286
8287 * minsyms.c (install_minimal_symbols): Move dropping leading
8288 char from linkage name from here...
8289 (prim_record_minimal_symbol_and_info): ...to here. Simplify
8290 test for "__gnu_compiled*" symbols.
8291
8292 2004-03-28 Jim Blandy <jimb@redhat.com>
8293
8294 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
8295 registers to temp register r0 and byte stores as prologue
8296 instructions.
8297
8298 2004-03-28 Andrew Cagney <cagney@redhat.com>
8299
8300 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
8301 arm*-*-*.
8302
8303 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
8304
8305 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
8306 and switch the layout to force a display of register window.
8307
8308 2004-02-26 J. Brobecker <brobecker@gnat.com>
8309
8310 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
8311 of the INTEGER class.
8312
8313 2004-03-26 Jim Blandy <jimb@redhat.com>
8314
8315 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
8316 bytes long on PPC GNU/Linux.
8317
8318 2004-03-26 David Carlton <carlton@kealia.com>
8319
8320 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
8321
8322 2004-03-25 Andrew Cagney <cagney@redhat.com>
8323
8324 * PROBLEMS: Add general section titles, remove references to
8325 specific releases.
8326
8327 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
8328
8329 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
8330 INT_REGISTER_SIZE.
8331 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
8332 FP_REGISTER_VIRTUAL_SIZE.
8333 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
8334 of DEPRECATED_REGISTER_RAW_SIZE.
8335 (arm_register_type): Add gdbarch argument.
8336 (arm_register_raw_size, arm_register_virtual_size): Delete.
8337 (arm_register_byte, arm_extract_return_value)
8338 (arm_store_return_value, arm_get_longjmp_target): Update references
8339 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
8340 (arm_gdbarch_init): Likewise. Don't set
8341 deprecated_register_raw_size, deprecated_register_virtual_size,
8342 deprecated_max_register_raw_size,
8343 deprecated_max_register_virtual_size, or
8344 deprecated_max_register_virtual_type. Do set register_type.
8345 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
8346 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
8347 (FP_REGISTER_VIRTUAL_SIZE): Delete.
8348 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
8349 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
8350 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
8351 INT_REGISTER_SIZE.
8352 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
8353 (remote_rdp_store_register): Likewise.
8354
8355 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
8356
8357 * Makefile.in (mips-linux-tdep.o): Update dependencies.
8358 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
8359 to after osabi initialization.
8360 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
8361 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
8362 functions.
8363 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
8364 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
8365 variables.
8366 (mips_linux_init_abi): Append signal trampoline unwinders.
8367
8368 2004-03-24 Andrew Cagney <cagney@redhat.com>
8369
8370 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
8371 * tramp-frame.c: Include "gdb_assert.h".
8372 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
8373 correct sizeof.
8374 (tramp_frame_append): Validate the tramp frame's instructions.
8375 * Makefile.in (tramp-frame.o): Update dependencies.
8376
8377 2004-03-23 Andrew Cagney <cagney@redhat.com>
8378
8379 * trad-frame.h (trad_frame_set_reg_addr): Declare.
8380
8381 2004-03-23 Andrew Cagney <cagney@redhat.com>
8382
8383 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
8384 Nasser as past testsuite/lib/ (and other) maintainers.
8385
8386 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
8387
8388 * infcmd.c (attach_command): Reread symbols if we already have
8389 an exec file.
8390
8391 2004-03-23 Andrew Cagney <cagney@redhat.com>
8392
8393 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
8394
8395 2004-03-23 Andrew Cagney <cagney@redhat.com>
8396
8397 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
8398 * gdbarch.h, gdbarch.c: Re-generate.
8399 * i386obsd-tdep.c (i386obsd_init_abi): Update.
8400 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8401 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8402 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
8403 (DEPRECATED_SIGTRAMP_START): Update.
8404 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
8405 (DEPRECATED_SIGTRAMP_START): Update.
8406 * blockframe.c (find_pc_sect_partial_function): Update.
8407 * arch-utils.c (legacy_pc_in_sigtramp): Update.
8408
8409 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
8410
8411 * remote.c (remote_open_1): Reopen the exec file and reread symbols
8412 if necessary.
8413
8414 2004-03-23 Andrew Cagney <cagney@redhat.com>
8415
8416 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
8417 predicate, deprecate.
8418 * gdbarch.h, gdbarch.c: Re-generate.
8419 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8420 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8421 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
8422 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8423 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
8424 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
8425 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
8426 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
8427 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
8428 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
8429 * blockframe.c (find_pc_partial_function): Update.
8430 * breakpoint.c (bpstat_what): Update.
8431 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
8432 * frv-linux-tdep.c (frv_linux_init_abi): Update.
8433 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
8434 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
8435 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8436 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8437 * i386-nto-tdep.c (i386nto_init_abi): Update.
8438 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
8439 * i386-tdep.c (i386_sigtramp_frame_sniffer)
8440 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
8441 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8442 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8443 * i386obsd-tdep.c (i386obsd_init_abi): Update.
8444 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
8445 * infrun.c (pc_in_sigtramp): Update.
8446 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
8447 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
8448 * mips-tdep.c (mips_gdbarch_init): Update.
8449 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
8450 * ppc-linux-tdep.c: Update comment.
8451 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
8452 * shnbsd-tdep.c (shnbsd_init_abi): Update.
8453 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
8454 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
8455 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
8456 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
8457 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
8458 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
8459 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
8460 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8461
8462 2004-03-23 Andrew Cagney <cagney@redhat.com>
8463
8464 * tramp-frame.h, tramp-frame.h: New files.
8465 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
8466 Update rules to include "tramp-frame.h" and "tramp-frame.c".
8467
8468 * Makefile.in: Update all dependencies.
8469
8470 2004-03-23 Andrew Cagney <cagney@redhat.com>
8471
8472 * Makefile.in (trad_frame_h): Add $(frame_h).
8473 * trad-frame.h: Update copyright. Include "frame.h".
8474 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
8475 (trad_frame_set_id, trad_frame_get_id): Declare.
8476 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
8477 * trad-frame.c: Update copyright.
8478 (struct trad_frame_cache): Define.
8479 (trad_frame_cache_zalloc): New function.
8480 (trad_frame_set_id, trad_frame_get_id): New functions.
8481 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8482
8483 2004-03-22 Andrew Cagney <cagney@redhat.com>
8484
8485 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
8486 s390_pltstub_unwind_cache.
8487 (s390_stub_frame_unwind_cache): Rename
8488 s390_pltstub_frame_unwind_cache.
8489 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
8490 (s390_stub_frame_prev_register): Rename
8491 s390_pltstub_frame_prev_register.
8492 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
8493 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
8494
8495 From Ulrich Weigand:
8496 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
8497 pointer calls like PLT calls.
8498
8499 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
8500
8501 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
8502 PC rather than the partial function start address. Use the start
8503 address to sanity check the found PDR.
8504
8505 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
8506
8507 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
8508 linux_handle_extended_wait.
8509
8510 2004-03-22 Andrew Cagney <cagney@redhat.com>
8511
8512 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
8513 function.
8514
8515 * frame.h (generic_pop_current_frame): Delete declaration.
8516 (deprecate_pop_dummy_frame): Deprecate
8517 generic_pop_dummy_frame.
8518 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
8519 (generic_pop_current_frame): Delete function.
8520 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
8521 generic_pop_current_frame.
8522 * v850-tdep.c (v850_pop_frame): Update.
8523 * mcore-tdep.c (mcore_pop_frame): Update.
8524 * sh64-tdep.c (sh64_pop_frame): Update.
8525 * h8300-tdep.c (h8300_pop_frame): Update.
8526
8527 2004-03-22 Andrew Cagney <cagney@redhat.com>
8528
8529 * frame.h (deprecated_pc_in_call_dummy): Rename
8530 generic_pc_in_call_dummy.
8531 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
8532 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
8533 generic_pc_in_call_dummy.
8534 (pc_in_dummy_frame): Make static.
8535 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
8536 * gdbarch.h, gdbarch.c: Re-generate.
8537 * dummy-frame.c (dummy_frame_sniffer): Simplify.
8538 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
8539 (legacy_get_prev_frame): Ditto.
8540 * inferior.h: Delete reference to generic_pc_in_call_dummy in
8541 comment.
8542
8543 2004-03-21 Andrew Cagney <cagney@redhat.com>
8544
8545 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
8546 declaration and out-of-date comment.
8547 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
8548 Delete function.
8549 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
8550 deprecated_pc_in_call_dummy.
8551
8552 * infrun.c (handle_inferior_event): For non legacy frames, use the
8553 frame ID and frame type to identify a signal trampoline. Update
8554 comments.
8555
8556 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
8557
8558 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
8559 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
8560
8561 2004-03-21 Andrew Cagney <cagney@redhat.com>
8562
8563 * frame-unwind.h: Update copyright.
8564 (struct frame_data): Add opaque declaration.
8565 (frame_sniffer_ftype): Declare.
8566 (struct frame_unwind): Add "unwind_data" and "sniffer".
8567 (frame_unwind_register_unwinder): Declare.
8568 (frame_unwind_find_by_frame): Add parameter "this_cache".
8569 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
8570 (legacy_get_prev_frame, legacy_get_prev_frame)
8571 (get_frame_type): Pass the prologue_cache to
8572 frame_unwind_find_by_frame.
8573 * frame-unwind.c (struct frame_unwind_table_entry): Add field
8574 "unwinder".
8575 (frame_unwind_register_unwinder): New function.
8576 (frame_unwind_find_by_frame): Handle an unwind sniffer.
8577
8578 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
8579
8580 * bcache.c (print_percentage): Use floating point to avoid
8581 incorrect results when portion*100 overflows.
8582
8583 2004-03-19 Kevin Buettner <kevinb@redhat.com>
8584
8585 * ppc_tdep.h (ppc_linux_frame_saved_pc)
8586 (ppc_linux_init_extra_frame_info)
8587 (ppc_linux_frameless_function_invocation)
8588 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
8589 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
8590 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
8591 (rs6000_frame_chain): Delete declarations.
8592 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
8593 (ppc_linux_init_extra_frame_info)
8594 (ppc_linux_frameless_function_invocation)
8595 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
8596 (ppc_linux_init_abi): Remove registration of above deleted functions.
8597 * rs6000-tdep.c (rs6000_init_extra_frame_info)
8598 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
8599 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
8600 (rs6000_pop_frame, rs6000_frameless_function_invocation)
8601 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
8602 (rs6000_gdbarch_init): Remove registration of above deleted functions.
8603 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
8604 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
8605 frame management for all OSABIs.
8606
8607 2004-03-19 Andrew Cagney <cagney@redhat.com>
8608
8609 Committed by Kevin Buettner <kevinb@redhat.com>.
8610
8611 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
8612 Update copyright.
8613 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
8614 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
8615 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
8616 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
8617 unwinders. #ifdef legacy frame code.
8618 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8619 "frame-base.h".
8620 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
8621 (struct rs6000_frame_cache, rs6000_frame_cache)
8622 (rs6000_frame_this_id, rs6000_frame_prev_register)
8623 (rs6000_frame_sniffer, rs6000_frame_unwind)
8624 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
8625 (rs6000_frame_base): Implement a traditional frame unwinder.
8626 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
8627 frame unwinder.
8628
8629 2004-03-19 Kevin Buettner <kevinb@redhat.com>
8630
8631 * breakpoint.c (adjust_breakpoint_address): Don't adjust
8632 breakpoint address for watchpoints or the catch eventpoints.
8633 Add new paramter ``bptype''. Adjust all callers.
8634
8635 2004-03-19 Andrew Cagney <cagney@redhat.com>
8636
8637 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
8638
8639 * PROBLEMS: Delete note that ARM does not use frame code, problem
8640 fixed.
8641
8642 2004-03-18 Andrew Cagney <cagney@redhat.com>
8643
8644 * stack.c (return_command): Delete code wrapped in #ifdef
8645 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
8646
8647 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
8648
8649 2004-03-18 Andrew Cagney <cagney@redhat.com>
8650
8651 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
8652 DEPRECATED_IN_SIGTRAMP.
8653 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8654 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
8655 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8656 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8657 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8658 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8659 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8660 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8661 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
8662 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
8663
8664 2004-03-18 Andrew Cagney <cagney@redhat.com>
8665
8666 * frame-base.c: Update copyright. Include "gdb_obstack.h".
8667 (struct frame_base_table_entry): Define.
8668 (struct frame_base_table): Re-implement as a linked list.
8669 (frame_base_init): Re-implement.
8670 (frame_base_table): Delete function.
8671 (append_predicate): Delete function.
8672 (frame_base_append_sniffer): Update.
8673 (frame_base_set_default): Update.
8674 (frame_base_find_by_frame): Update.
8675 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
8676 * Makefile.in (frame-base.o): Update dependencies.
8677
8678 2004-03-17 Andrew Cagney <cagney@redhat.com>
8679
8680 * frame.c (legacy_get_prev_frame): Pass correct frame to
8681 frame_unwind_find_by_frame.
8682
8683 2004-03-17 David Carlton <carlton@kealia.com>
8684
8685 * NEWS: Mention C++ nested types and namespaces
8686
8687 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
8688
8689 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
8690 and "Regressions since gdb 5.3.". Add known regressions since
8691 gdb 6.0.
8692
8693 2004-03-16 David Carlton <carlton@kealia.com>
8694
8695 * dwarf2read.c (process_structure_scope): Process children even
8696 when we're a declaration.
8697
8698 2004-03-16 Andrew Cagney <cagney@redhat.com>
8699
8700 * symtab.h (find_pc_sect_partial_function): Delete declaration.
8701 * blockframe.c (find_pc_partial_function)
8702 (find_pc_sect_partial_function): Merge into a single
8703 find_pc_partial_function.
8704
8705 2004-03-16 Mark Kettenis <kettenis@gnu.org>
8706
8707 * i386bsd-nat.c: s/regno/regnum/g.
8708 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
8709 FP0_REGNUM.
8710 (store_inferior_registers): Likewise.
8711
8712 2004-03-16 Mark Kettenis <kettenis@gnu.org>
8713
8714 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
8715 of i387_fill_fsave.
8716 (store_inferior_registers): Call i387_collect_fsave and
8717 i387_collect_fxsave instead of i387_fill_fsave and
8718 i387_fill_fxsave.
8719
8720 2004-03-15 Andrew Cagney <cagney@redhat.com>
8721
8722 * Makefile.in (frame-unwind.o): Update dependencies.
8723 * frame-unwind.c: Include "gdb_obstack.h".
8724 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
8725 parameter.
8726 (append_predicate): Delete function.
8727 (struct frame_unwind_table_entry): New structure.
8728 (struct frame_unwind_table): Replace "sniffer" with "head" and
8729 "tail".
8730 (frame_unwind_append_sniffer): Update.
8731 (frame_unwind_find_by_frame): Update.
8732 (_initialize_frame_unwind): Registe frame_unwind_init using
8733 gdbarch_data_register_pre_init.
8734
8735 2004-03-15 Mark Kettenis <kettenis@gnu.org>
8736
8737 * i386bsd-nat.c: Update copyright year.
8738 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
8739 define unconditionally.
8740
8741 2004-03-15 Mark Kettenis <kettenis@gnu.org>
8742
8743 * i387-tdep.h (i387_collect_fsave): New prototype.
8744 * i387-tdep.c (i387_collect_fsave): New function containing most
8745 of the code from i387_fill_fsave.
8746 (i387_fill_fsave): Call i387_collect_fsave.
8747
8748 2004-03-15 Mark Kettenis <kettenis@gnu.org>
8749
8750 * i386-linux-tdep.c: Update copyright year.
8751 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
8752 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
8753 svr4_ilp32_link_map_offsets instead of
8754 i386_linux_svr4_fetch_link_map_offsets.
8755
8756 2004-03-15 David Carlton <carlton@kealia.com>
8757
8758 Fix for PR c++/1553:
8759 * dwarf2read.c (read_structure_type): Determine type name by
8760 calling determine_class_name.
8761 (determine_class_name): New.
8762 (determine_prefix): Look at TYPE_TAG_NAME and call
8763 determine_class_name when appropriate.
8764 (determine_prefix_aux, class_name): Delete.
8765 (read_namespace): Set die->type.
8766
8767 2004-03-15 Kevin Buettner <kevinb@redhat.com>
8768
8769 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
8770 unused macro definition. The definition in target.h (or perhaps
8771 elsewhere) takes precedence.
8772
8773 2004-03-15 Andrew Cagney <cagney@redhat.com>
8774
8775 * ppc-tdep.h: Update copyright.
8776 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
8777 function signatures to match "regsets.h".
8778 * ppc-linux-tdep.c: Include "regset.h".
8779 (ELF_GREGSET_SIZE): Delete.
8780 (right_supply_register): New function.
8781 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
8782 using right_supply_register.
8783 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
8784 functions.
8785 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
8786 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
8787 (_initialize_ppc_linux_tdep): Do not register
8788 ppc_linux_regset_core_fns.
8789 (ppc_linux_regset_from_core_section): Replace
8790 fetch_core_registers.
8791 (ppc_linux_regset_core_fns): Delete.
8792 * ppc-linux-nat.c: (right_fill_reg): New function.
8793 (supply_gregset): Update call to ppc_linux_supply_gregset.
8794 (fill_gregset): Clear the register set, use right_fill_reg.
8795 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
8796 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
8797
8798 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
8799 unsigned.
8800
8801 2004-03-15 Andrew Cagney <cagney@redhat.com>
8802
8803 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
8804 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
8805 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
8806 and register_gdbarch_data.
8807 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
8808 (struct gdbarch_data): Replace "init" by "pre_init" and
8809 "post_init".
8810 * gdbarch.h, gdbarch.c: Re-generate.
8811 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
8812 with"obstack", use OBSTACK_ZALLOC.
8813 (dwarf2_frame_ops): Delete.
8814 (dwarf2_frame_set_init_reg): Use gdbarch_data.
8815 (dwarf2_frame_init_reg): Use gdbarch_data.
8816 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8817 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
8818 (_initialize_svr4_solib): Update.
8819 * user-regs.c (_initialize_user_regs): Update.
8820 * reggroups.c (_initialize_reggroup): Update.
8821 * regcache.c (_initialize_regcache): Update.
8822 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8823 * libunwind-frame.c (_initialize_libunwind_frame): Update.
8824 * gnu-v3-abi.c (init_gnuv3_ops): Update.
8825 * frame-unwind.c (_initialize_frame_unwind): Update.
8826 * frame-base.c (_initialize_frame_base): Update.
8827 * user-regs.c (user_reg_add): Update.
8828 * reggroups.c (reggroup_add): Update.
8829 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
8830 * libunwind-frame.c (libunwind_frame_set_descr): Update.
8831 * frame-unwind.c (frame_unwind_append_sniffer): Update.
8832 * frame-base.c (frame_base_table): Update.
8833 * remote.c (_initialize_remote): Update.
8834 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8835
8836 2004-03-15 Andrew Cagney <cagney@redhat.com>
8837
8838 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
8839
8840 2004-03-15 Kevin Buettner <kevinb@redhat.com>
8841
8842 * Makefile.in (frv-linux-tdep.o): Add dependencies.
8843 * frv-linux-tdep.c: New file.
8844 * frv-tdep.c (struct gdbarch_tdep): Add new field
8845 ``sigcontext_reg_addr''.
8846 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
8847 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8848 (frv_sigramp_frame_sniffer): New functions.
8849 (frv_sigtramp_frame_unwind): New static global.
8850 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
8851 sniffers.
8852 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
8853 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
8854
8855 2004-03-15 Kevin Buettner <kevinb@redhat.com>
8856
8857 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
8858 but not via a call to error(), when unable to read memory.
8859
8860 2004-03-15 Kevin Buettner <kevinb@redhat.com>
8861
8862 * frv-tdep.c (frv_call_dummy_words): Delete.
8863 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
8864
8865 2004-03-15 Andrew Cagney <cagney@redhat.com>
8866
8867 * infrun.c (handle_step_into_function, step_over_function): Only
8868 update and use STEP_FRAME_ID when the system is using legacy
8869 frames. Update comments.
8870
8871 2004-03-14 Mark Kettenis <kettenis@gnu.org>
8872
8873 * amd64-linux-tdep.h: Remove file.
8874 * amd64-linux-tdep.c: Don't include "inferior.h" and
8875 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
8876 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
8877 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
8878 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
8879 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
8880 macros.
8881 (user_to_gdb_regmap): Remove variable.
8882 (amd64_linux_gregset_reg_offset): New variable.
8883 (amd64_core_fns): Remove variable.
8884 (fetch_core_registers): Remove function.
8885 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
8886 functions.
8887 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
8888 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
8889 * Makefile.in (amd64_linux_tdep_h): Remove.
8890 (amd64-linux-nat.o): Update dependencies.
8891 (amd64-linux-tdep.o): Update dependencies.
8892
8893 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
8894 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
8895 functions.
8896 (fetch_inferior_registers, store_inferior_registers): Rewrite.
8897
8898 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
8899 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
8900
8901 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
8902
8903 * dwarf2read.c (read_structure_type): Rename from
8904 read_structure_scope. Don't create a symbol or call process_die.
8905 Return immediately if die->type is set. Call read_type_die before
8906 dwarf2_add_member_fn.
8907 (process_structure_scope): New function.
8908 (read_enumeration_type, process_enumeration_scope): New functions,
8909 broken out from read_enumeration. Don't create the enumeration
8910 type if it has already been created.
8911 (read_enumeration): Removed.
8912 (process_die): Call read_structure_type, process_structure_scope,
8913 read_enumeration_type, and process_enumeration_scope. Just call
8914 new_symbol for base and subrange types. Add a comment about other
8915 type dies.
8916 (read_type_die): Call read_enumeration_type.
8917 (add_partial_structure, new_symbol): Update comments.
8918
8919 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8920
8921 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
8922
8923 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8924
8925 * tui/tui-win.h (tui_get_cmd_list): Declare.
8926 * tui/tui-win.c (tui_command): New function.
8927 (tui_get_cmd_list): New function.
8928 (_initialize_tui_win): Moved initialization of tui command in
8929 tui_get_cmd_list.
8930
8931 * tui/tui-data.c (init_content_element): Setup new data members.
8932 (init_win_info): Likewise.
8933 (free_content_elements): Free it.
8934 * tui/tui-data.h (struct tui_data_element): Store the register
8935 content to print.
8936 (struct tui_data_info): Keep the current register group.
8937
8938 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
8939
8940 * tui/tui-regs.h (tui_show_registers): Update prototype.
8941 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
8942 (tui_resize_all): No need to calculate anything for register window.
8943 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
8944 (tui_set_register_element, tui_set_general_regs_content): Remove.
8945 (tui_set_special_regs_content): Remove.
8946 (tui_set_general_and_special_regs_content): Remove.
8947 (tui_set_float_regs_content): Remove.
8948 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
8949 (tui_set_regs_content): Remove.
8950 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
8951 (tui_v_show_registers_command_support): Remove.
8952 (tui_show_registers): Use a reggroup to specify the registers to show.
8953 (tui_show_register_group): New function.
8954 (tui_display_registers_from): Compute the layout of register window
8955 and refresh with new API; be sure to delete old register windows.
8956 (tui_check_register_values): Update to use tui_get_register and
8957 tui_display_data.
8958 (tui_display_register): Just refresh the register window part.
8959 (tui_register_format): Format registers and save in tui_data_element.
8960 (tui_get_register): New to combine tui_reg_value_has_changed and
8961 tui_get_register_raw_value; fix to use the new gdb API.
8962 (tui_show_float_command): Renamed tui_reg_float_command.
8963 (tui_show_general_command): Renamed tui_reg_general_command.
8964 (tui_show_special_command): Renamed tui_reg_system_command.
8965 (_initialize_tui_regs): Remove unused commands.
8966
8967 2004-03-13 Mark Kettenis <kettenis@gnu.org>
8968
8969 * NEWS (New native configurations): Mention OpenBSD/amd64.
8970
8971 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
8972 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
8973 Remove defines.
8974 * config/i386/nm-fbsd64.h: Likewise.
8975 * config/i386/nm-obsd.h: Likewise.
8976 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
8977 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
8978
8979 2004-03-12 Kevin Buettner <kevinb@redhat.com>
8980
8981 * frv-tdep.c (set_variant_scratch_registers): New function.
8982 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
8983 New constants.
8984
8985 From Richard Sandiford <rsandifo@redhat.com>:
8986 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
8987
8988 2004-03-12 Kevin Buettner <kevinb@redhat.com>
8989
8990 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
8991 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
8992 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
8993 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
8994 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
8995 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
8996 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
8997 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
8998 definitions from frv-tdep.c to frv-tdep.h.
8999
9000 2004-03-12 Kevin Buettner <kevinb@redhat.com>
9001
9002 Add shared library support for FR-V FDPIC ABI:
9003 * Makefile.in (solib-frv.o): Add dependencies.
9004 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
9005 New functions.
9006 (frv_push_dummy_call): Add support for FDPIC ABI.
9007 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
9008 for FDPIC ABI.
9009 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
9010 (frv_fdpic_find_canonical_descriptor): Declare.
9011 * solib-frv.c: New file.
9012 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
9013 * config/frv/tm-frv.h (solib.h): Include.
9014
9015 2004-03-12 Kevin Buettner <kevinb@redhat.com>
9016
9017 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
9018 (frv-tdep.o): Update dependencies.
9019 * frv-tdep.h: New file.
9020 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
9021 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
9022 constants.
9023 (struct gdbarch_tdep): Add new member ``frv_abi''.
9024 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
9025 functions.
9026 (new_variant): Set ``frv_abi'' field.
9027 (gdb_arch_init): Detect FDPIC executables.
9028
9029 2004-03-12 Mark Kettenis <kettenis@gnu.org>
9030
9031 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
9032 wrapper.
9033
9034 2004-03-11 Andrew Cagney <cagney@redhat.com>
9035
9036 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
9037
9038 2004-03-11 Kevin Buettner <kevinb@redhat.com>
9039
9040 * solist.h (master_so_list): New function.
9041 * solib.c (master_so_list): Likewise.
9042 * solib-svr4.c (enable_break): Iterate over so_list entries
9043 obtained from master list instead of entries obtained directly
9044 via svr4_current_sos().
9045
9046 2004-03-10 Ben Elliston <bje@gnu.org>
9047
9048 * MAINTAINERS: Update my mail address.
9049
9050 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
9051
9052 * remote-m32r-sdi.c: Support hardware watchpoint.
9053
9054 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9055
9056 * user-regs.c: Update copyright years.
9057 (struct user_regs): Rename to gdb_user_regs.
9058 (append_user_reg, builtin_user_regs, user_regs_init)
9059 (user_reg_add, user_reg_map_name_to_regnum)
9060 (usernum_to_user_reg): Update.
9061
9062 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9063
9064 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
9065 (skip_children): New functions.
9066 (locate_pdi_sibling): Call skip_children.
9067
9068 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9069
9070 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
9071 * gdbtypes.c (check_typedef): Update comments.
9072
9073 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9074
9075 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
9076 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
9077 pointer. Update comment about comp_unit_head.
9078 (struct abbrev_info): Shorten two int flags.
9079 (dwarf_alloc_abbrev): Take a CU argument.
9080 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
9081 each time through the loop. Update cleanup argument.
9082 (psymtab_to_symtab_1): Update cleanup call.
9083 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
9084 abbrev_obstack.
9085 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
9086 Just call obstack_free and clear the pointer.
9087
9088 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9089
9090 * infrun.c (handle_inferior_event): Remove short-circuit code for
9091 events in a different thread.
9092
9093 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9094
9095 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
9096 print the whole transfer.
9097 (initialize_targets): Update description of "set debug target".
9098
9099 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
9100
9101 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
9102
9103 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
9104
9105 * MAINTAINERS (write after approval): Add myself.
9106
9107 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
9108
9109 * sh-tdep.c (sh_print_registers_info): Use for loop.
9110 Don't skip multiple registers when a float register is encountered.
9111
9112 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
9113
9114 Fix PR tdep/1291.
9115 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
9116 to official SH documentation.
9117
9118 2004-03-07 Andrew Cagney <cagney@redhat.com>
9119
9120 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
9121 unused function.
9122
9123 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
9124
9125 * arm-tdep.c (thumb_get_next_pc): Handle BX.
9126 (arm_get_next_pc): Handle BX and BLX.
9127
9128 2004-03-07 Andrew Cagney <cagney@redhat.com>
9129
9130 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
9131 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
9132 HPPA_SP_REGNUM.
9133 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
9134 (hppa_target_read_fp): Delete.
9135 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
9136 register_virtual_size, max_register_raw_size,
9137 max_register_virtual_size, register_byte, register_size,
9138 target_read_fp, fp_regnum, and register_bytes. Set register_type
9139 instead of register_virtual_type.
9140 (hppa32_register_type, hppa64_register_type): Replace
9141 hppa32_register_virtual_type and hppa64_register_virtual_type.
9142 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
9143 (HPPA_FP_REGNUM): Define.
9144
9145 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
9146
9147 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
9148 (pa_do_registers_info): Delete.
9149 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
9150 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
9151 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
9152
9153 * infcall.c (legacy_push_dummy_code): Delete #ifdef
9154 GDB_TARGET_IS_HPPA code.
9155 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
9156 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
9157 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
9158 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
9159 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
9160 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
9161 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
9162 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
9163 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
9164 (hppa_frameless_function_invocation, hppa64_store_return_value)
9165 (hppa_store_struct_return, hppa64_extract_return_value)
9166 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
9167 (hppa32_call_dummy_length, hppa64_call_dummy_length)
9168 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
9169 (find_proc_framesize, deposit_21, restore_pc_queue)
9170 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
9171 (rp_saved, pc_in_linker_stub): Delete.
9172
9173 Unconditionally enable 64-bit frame and ABI code.
9174 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
9175 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
9176 push_dummy_frame, fix_call_dummy, push_arguments,
9177 call_dummy_location, extract_return_value, use_struct_convention,
9178 store_return_value, store_struct_return, saved_pc_after_call,
9179 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
9180 frame_chain, frame_chain_valid, frameless_function_invocation,
9181 frame_saved_pc, and pop_frame.
9182
9183 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
9184 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
9185 (hppa_gdbarch_init): Do not set PC_REGNUM.
9186
9187 2004-03-06 Mark Kettenis <kettenis@gnu.org>
9188
9189 * config/alpha/tm-fbsd.h: Remove file.
9190 * config/alpha/fbsd.mt: Tweak comment.
9191 (TM_FILE): Set to tm-alpha.h.
9192
9193 2004-03-05 Andrew Cagney <cagney@redhat.com>
9194
9195 * infrun.c (step_over_function): When non-legacy code, and no
9196 step_frame_id, use the unwinder to get the caller's frame ID.
9197
9198 2004-03-05 Mark Kettenis <kettenis@gnu.org>
9199
9200 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
9201 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
9202 bfd_arch_unknown. Adjust comment.
9203
9204 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
9205 * i386obsd-tdep.c: Correct spelling in comment.
9206 * i386nbsd-tdep.c: Correct spelling in comment.
9207 * sparc-tdep.c: Correct spelling in comments.
9208
9209 2004-03-05 David Carlton <carlton@kealia.com>
9210
9211 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
9212 bug.
9213
9214 2004-03-05 Mark Kettenis <kettenis@gnu.org>
9215
9216 * sparc-tdep.c: Fix typo in comment.
9217
9218 2004-03-04 J. Brobecker <brobecker@gnat.com>
9219
9220 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
9221
9222 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
9223
9224 * dwarf2read.c: Add comment describing memory lifetimes.
9225 (struct dwarf2_pinfo): Update comment.
9226 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
9227 (read_enumeration, new_symbol): Don't use obsavestring.
9228
9229 2004-03-04 Mark Kettenis <kettenis@gnu.org>
9230
9231 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
9232 instead of amd64_fill_fxsave.
9233 * amd64bsd-nat.c (store_inferior_registers): Likewise.
9234 * amd64fbsd-nat.c (fill_fpregset): Likewise.
9235
9236 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
9237 Reorganize code a bit.
9238
9239 2004-03-04 Orjan Friberg <orjanf@axis.com>
9240
9241 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
9242 when the frame pointer is pushed. Don't set the frame pointer's
9243 address on the stack unless it's actually located there.
9244 Set the SRP's address on the stack correctly when the PC is still in
9245 the prologue.
9246 (cris_return_value): New function.
9247 (cris_gdbarch_init): Clear deprecated store_return_value,
9248 extract_return_value.
9249
9250 2004-03-02 Jim Blandy <jimb@redhat.com>
9251
9252 * stabsread.c (reg_value_complaint): The maximum register number
9253 is one less than the number of registers.
9254
9255 2004-03-02 Andrew Cagney <cagney@redhat.com>
9256
9257 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
9258 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
9259 trailing comma and redundant assignment of I386_ST0_REGNUM.
9260 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
9261 32-bit segment registers.
9262
9263 2004-03-01 Andrew Cagney <cagney@redhat.com>
9264
9265 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
9266 use frame_relative_level and get_next_frame.
9267
9268 2004-02-29 Andrew Cagney <cagney@redhat.com>
9269
9270 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
9271 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
9272 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
9273 Delete macro.
9274
9275 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
9276
9277 * inflow.c (terminal_inferior): Don't give up the terminal if we
9278 previously couldn't get the inferior's terminal state.
9279
9280 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
9281
9282 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
9283 PC_REGNUM.
9284
9285 2004-02-28 Andrew Cagney <cagney@redhat.com>
9286
9287 * NEWS: Refer to GDB 6.1.
9288 * README: Refer to GDB 6.1.
9289 * PROBLEMS: Refer to GDB 6.1.
9290
9291 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
9292
9293 * thread-db.c (disable_thread_signals): Remove unused function.
9294
9295 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9296
9297 * amd64-nat.c: Include "gdb_string.h".
9298 (amd64_collect_native_gregset): Zero-extend the 32-bit
9299 general-purpose registers and %eip.
9300
9301 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
9302 * amd64-tdep.c (amd64_collect_fxsave): New function.
9303 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
9304
9305 * i387-tdep.h: Update copyright year.
9306 (i387_collect_fxsave): New prototype.
9307 * i387-tdep.c: Update copyright year.
9308 (i387_collect_fxsave): New function containing most of the code
9309 from i387_fill_fxsave.
9310 (i387_fill_fxsave): Call i387_collect_fxsave.
9311
9312 2004-02-28 Andrew Cagney <cagney@redhat.com>
9313
9314 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
9315 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
9316
9317 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9318
9319 * amd64-tdep.c (amd64_frame_cache): Fix comment.
9320
9321 2004-02-28 Andrew Cagney <cagney@redhat.com>
9322
9323 * utils.c: Use "", instead of <>, to include readline.
9324 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
9325 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
9326 * source.c, solib.c, exec.c, event-top.c: Ditto.
9327 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
9328 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
9329 * Makefile.in: Update all dependencies.
9330 (readline_tilde_h, readline_history_h): Define.
9331 (readline_headers): Delete.
9332
9333 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9334
9335 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
9336 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
9337 "config/i386/tm-lx64.h".
9338
9339 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
9340 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
9341 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
9342
9343 2004-02-28 Andrew Cagney <cagney@redhat.com>
9344
9345 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
9346
9347 * breakpoint.c (_initialize_breakpoint): Use
9348 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
9349 Add help to show command.
9350
9351 2004-02-28 Mark Kettenis <kettenis@gnu.org>
9352
9353 * i386-nat.c: Reformat to be closer to coding standards.
9354 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
9355 `retval'. Make variables `align' and `size' local to while-loop.
9356 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
9357 (_initialize_i386_nat): New prototype.
9358
9359 * tui/tui.c: Include <readline/readline.h> instead of
9360 "readline/readline.h". Include it after <term.h> and
9361 "gdb_curses.h".
9362
9363 2004-02-27 Andrew Cagney <cagney@redhat.com>
9364
9365 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
9366 the new frame unwind code.
9367 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
9368 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
9369 PCOQ_HEAD_REGNUM.
9370
9371 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
9372 "return_value" and "push_dummy_call".
9373 (hppa32_use_struct_convention): Delete unused function.
9374 (hppa32_store_return_value): Delete unused function.
9375 (hppa32_extract_return_value): Delete unused function.
9376 (hppa32_stack_align): Delete function.
9377
9378 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
9379
9380 * coffread.c (enter_linenos): Don't let rawptr reference memory
9381 outside linetab[]'s limits.
9382
9383 2004-02-27 Andrew Cagney <cagney@redhat.com>
9384
9385 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
9386 inferior stack space - the stack needs to grow upwards.
9387 (hppa32_frame_align): New function.
9388 (hppa64_frame_align): Replace hppa_frame_align.
9389 (hppa_gdbarch_init): Update.
9390
9391 2004-02-26 Orjan Friberg <orjanf@axis.com>
9392
9393 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
9394 (dwarf2-frame.h): Include.
9395 (enum cris_regnums): New enum CRIS_FP_REGNUM.
9396 Remove static variables related to ABI setting.
9397 (struct gdbarch_tdep): Remove cris_abi member.
9398 (struct frame_extra_info): Remove.
9399 (cris_unwind_cache, stack_item): New structs.
9400 (cris_frame_unwind, cris_frame_base): New variables.
9401 (push_stack_item, pop_stack_item)
9402 (cris_frame_unwind_cache, cris_frame_this_id)
9403 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
9404 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
9405 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
9406 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
9407 (cris_reg_struct_has_addr): New functions.
9408 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
9409 (cris_frame_saved_pc, cris_saved_pc_after_call,
9410 (cris_store_struct_return, cris_frameless_function_invocation)
9411 (cris_pop_frame, cris_skip_prologue_main)
9412 (cris_abi_original_store_return_value)
9413 (cris_abi_v2_store_return_value)
9414 (cris_abi_original_extract_return_value)
9415 (cris_abi_v2_extract_return_value)
9416 (cris_abi_original_reg_struct_has_addr)
9417 (cris_abi_v2_reg_struct_has_addr)
9418 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
9419 (cris_push_return_address, cris_abi_update): Remove.
9420 (_initialize_cris_tdep): Remove ABI command.
9421 (cris_dump_tdep): Ditto.
9422 (cris_gdbarch_init): Remove ABI command.
9423 Set store_return_value, extract_return_value, push_dummy_code,
9424 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
9425 frame_unwind_append_sniffer, frame_base_set_default.
9426 Clear deprecated init_frame_pc, push_arguments, store_return_value,
9427 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
9428 sizeof_call_dummy_words, get_saved_register, push_return_address,
9429 pop_frame, store_struct_return, frame_init_saved_regs,
9430 init_extra_frame_info, frameless_function_invocation, frame_chain,
9431 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
9432 dummy_write_sp.
9433
9434 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
9435
9436 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
9437 * valprint.c (print_hex_chars): Change from static to external.
9438 (print_char_chars): New function.
9439 * printcmd.c (print_scalar_formatted): For integer and enum types
9440 that are longer than LONGEST, perform processing via appropriate
9441 print_*_chars routines.
9442
9443 2004-02-26 Andrew Cagney <cagney@redhat.com>
9444
9445 * Makefile.in: Update dependencies.
9446 Changes from Ulrich Weigand,
9447 * s390-tdep.c: Include "dwarf2-frame.h".
9448 (s390_dwarf2_frame_init_reg): New function.
9449 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
9450 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
9451
9452 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
9453
9454 * breakpoint.c (pending_break_support): New setting variable.
9455 (break_command_1): Account for pending_break_support setting
9456 when creating pending breakpoints.
9457 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
9458 (_initialize_breakpoint): Add "set breakpoint pending" and
9459 "show breakpoint pending" commands.
9460
9461 2004-02-26 Andrew Cagney <cagney@redhat.com>
9462
9463 Fix PR i18n/1570.
9464 * charset.c (backslashable, backslashed, represented): Remove 'e'
9465 from list of escaped characters, not part of ISO-C.
9466
9467 2004-02-25 J. Brobecker <brobecker@gnat.com>
9468
9469 From Peter Schauer <schauer@pdf.de>:
9470 * tui/tui.c: Move system header includes after local includes.
9471 Fixes a build failure on solaris systems.
9472
9473 2004-02-25 J. Brobecker <brobecker@gnat.com>
9474
9475 * configure.in: Refine the previous change.
9476 * configure: Regenerate.
9477
9478 2004-02-25 Mark Kettenis <kettenis@gnu.org>
9479
9480 * amd64-tdep.h: Renamed from x86-64-tdep.h.
9481 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
9482 "amd64-tdep.h" instead of "x86-64-tdep.h".
9483 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9484 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
9485 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
9486 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9487 and "x86-64-tdep.c".
9488 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
9489 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9490 and "x86-64-tdep.c".
9491 * amd64bsd-nat.c: Update copyright year.
9492 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9493 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
9494 "x86-64-tdep.h".
9495 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
9496 "x86-64-tdep.h".
9497 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
9498 "x86-64-tdep.h".
9499 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
9500 "x86-64-tdep.h".
9501 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
9502 "x86-64-tdep.h".
9503 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
9504 "x86-64-tdep.h".
9505 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9506 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
9507 * Makefile.in (amd64_linux_tdep_h): Renamed from
9508 x86_64_linux_tdep_h.
9509 (amd64_tdep_h): Renamed from x86_64_tdep_h.
9510 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
9511 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
9512 (amd64obsd-tdep.o): Update dependencies.
9513 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
9514 dependencies.
9515 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
9516 dependencies.
9517 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
9518 amd64-linux-nat.c amd64-linux-tdep.c.
9519 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
9520 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
9521 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
9522 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
9523 amd64-tdep.o and amd64-linux-tdep.o.
9524 (TM_FILE): Set to tm-linux64.h.
9525 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
9526 (NAT_FILE): Set to nm-linux64.h.
9527 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
9528 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9529 amd64-tdep.o.
9530 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9531 amd64-tdep.o.
9532 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9533 amd64-tdep.o.
9534
9535 2004-02-25 Roland McGrath <roland@redhat.com>
9536
9537 * remote.c (remote_protocol_qPart_auxv): New variable.
9538 (init_all_packet_configs): Initialize it.
9539 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
9540 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
9541 (show_remote_cmd): Call it.
9542 (_initialize_remote): Initialize commands.
9543 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
9544 service TARGET_OBJECT_AUXV requests.
9545
9546 2004-02-25 J. Brobecker <brobecker@gnat.com>
9547
9548 * configure.in: Make sure that the wborder function is available.
9549 Otherwise, search for it in the cur_colr library.
9550 * configure: Regenerate.
9551
9552 2004-02-25 Andrew Cagney <cagney@redhat.com>
9553
9554 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
9555
9556 2004-02-25 Mark Kettenis <kettenis@gnu.org>
9557
9558 * config/i386/tm-x86-64linux.h: Tweak comments.
9559
9560 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
9561
9562 * MAINTAINERS: Add self to write-after-approval list.
9563
9564 2004-02-25 Andrew Cagney <cagney@redhat.com>
9565
9566 PR cli/1566. Problem found, and fix suggested by David Allan.
9567 * cli/cli-script.c (execute_control_command): Unconditionally
9568 install a cleanup. Default "ret" to "invalid_control". Use
9569 "break" instead of "return" to escape from the switch.
9570
9571 2004-02-24 J. Brobecker <brobecker@gnat.com>
9572
9573 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
9574 with the lines macro defined in term.h on AiX.
9575 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
9576 a collision with the label_width macro defined in term.h on AiX.
9577
9578 2004-02-23 David Mosberger <davidm@hpl.hp.com>
9579
9580 Committed by Kevin Buettner <kevinb@redhat.com>.
9581
9582 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
9583 * ia64-tdep.c (ia64_write_pc): Make it a global function.
9584 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
9585 instead of ia64_write_pc().
9586 * ia64-linux-tdep.c (regcache.h): Include.
9587 (ia64_linux_write_pc): New function.
9588
9589 2004-02-23 Roland McGrath <roland@redhat.com>
9590
9591 * auxv.c (info_auxv_command): Fix typos in error messages.
9592
9593 2004-02-23 Mark Kettenis <kettenis@gnu.org>
9594
9595 * x86-64-tdep.h: Tweak comment.
9596 (enum amd64_regnum): New.
9597 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
9598 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
9599 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
9600 (X86_64_XMM1_REGNUM): Removed.
9601 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
9602 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
9603 prototypes for renamed functions.
9604 * x86-64-tdep.c: Fix typo.
9605 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
9606 register numbers.
9607 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
9608 Use constants from `enum amd64_regnum' for register numbers.
9609 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
9610 (amd64_analyze_prologue, amd64_frame_cache,
9611 amd64_sigtramp_frame_cache): Use constants from `enum
9612 amd64_regnum' for register numbers.
9613 (amd64_supply_fpregset): Adjust for renamed functions.
9614 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
9615 `enum amd64_regnum' for register numbers.
9616 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
9617 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
9618 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
9619 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
9620 (amd64_linux_fill_gregset): Adjust for renamed macros.
9621 (fetch_core_registers): Adjust for renamed functions.
9622 (amd64_linux_init_abi): Adjust for renamed functions.
9623 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
9624 renamed functions.
9625 * amd64-nat.c: Adjust for renamed macros.
9626 * amd64bsd-nat.c (fetch_inferior_registers)
9627 (store_inferior_registers): Use constants from `enum amd64_regnum'
9628 for register numbers. Adjust for renamed variables.
9629 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
9630 renamed variables.
9631 (_initialize_amd64fbsd_nat): Use constants from `enum
9632 amd64_regnum' for register numbers.
9633 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
9634 `enum amd64_regnum' for register numbers.
9635 (amd64fbsd_init_abi): Adjust for renamed functions.
9636 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
9637 `enum amd64_regnum' for register numbers.
9638 (amd64nbsd_init_abi): Adjust for renamed functions.
9639 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
9640 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
9641 `enum amd64_regnum' for register numbers.
9642 (amd64obsd_init_abi): Adjust for renamed functions.
9643 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
9644
9645 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9646
9647 * breakpoint.c (print_one_breakpoint): Do not output spaces
9648 after printing <PENDING> for a pending breakpoint.
9649
9650 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9651
9652 * printcmd.c (print_scalar_formatted): Initialize val_long
9653 to remove compiler warning message.
9654
9655 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9656
9657 * defs.h (nquery, yquery): New prototypes.
9658 * breakpoint.c (break_command_1): Use new nquery interface.
9659 * utils.c (defaulted_query, nquery, yquery): New functions.
9660
9661 2004-02-23 Andrew Cagney <cagney@redhat.com>
9662
9663 * hppa-tdep.c (hppa_frame_align): New function.
9664 (hppa32_push_dummy_call): New function.
9665 (hppa64_push_dummy_call): New function.
9666 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
9667 disabled.
9668
9669 * infcall.c (legacy_push_dummy_code): Don't call deprecated
9670 FIX_CALL_DUMMY when push_dummy_call is available.
9671 (call_function_by_hand, push_dummy_code): Ditto.
9672
9673 2004-02-22 Andrew Cagney <cagney@redhat.com>
9674
9675 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
9676 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
9677 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
9678 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
9679 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
9680 call_dummy_location to ON_STACK.
9681
9682 2004-02-22 Mark Kettenis <kettenis@gnu.org>
9683
9684 * x86-64-linux-tdep.c: Tweak comment.
9685 (amd64_linux_supply_gregset): Renamed from
9686 x86_64_linux_supply_gresget.
9687 (amd64_linux_fill_gregset): Renamed from
9688 x86_64_linux_fill_gregset.
9689 (fetch_core_registers): Adjust for renamed functions.
9690 (amd64_core_fns): Renamed from x86_64_core_fns.
9691 (amd64_linux_sigtramp_start): Renamed from
9692 x86_64_linux_sigtramp_start.
9693 (amd64_linux_pc_in_sigtramp): Renamed from
9694 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
9695 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
9696 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
9697 (amd64_linux_sigcontext_addr): Renamed from
9698 x86_64_linux_sigcontext_addr.
9699 (amd64_linux_sc_reg_offset): Renamed from
9700 x86_64_linux_sc_reg_offset.
9701 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
9702 Adjust for renamed functions and variables.
9703 (_initialize_amd64_linux_tdep): Renamed from
9704 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
9705 variables.
9706 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
9707 Adjust for renamed functions.
9708
9709 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
9710 from x86_64_linux_gregset64_reg_offset.
9711 (amd64_linux_gregset32_reg_offset): Rename from
9712 x86_64_linux_gregset64_reg_offset.
9713 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
9714 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
9715 (amd64_linux_dr_set_control): Renamed from
9716 x86_64_linux_dr_set_control. Adjust for renamed functions.
9717 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
9718 Adjust for renamed functions.
9719 (amd64_linux_dr_reset_addr): Renamed from
9720 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
9721 (amd64_linux_dr_get_status): Renamed from
9722 x86_64_linux_dr_get_status. Adjust for renamed functions.
9723 (_initialize_amd64_linux_nat): Renamed from
9724 _initialize_x86_64_linux_nat. Adjust for renamed variables and
9725 functions.
9726 * config/i386/nm-x86-64linux.h: Update copyright year.
9727 Adjust for renamed functions.
9728
9729 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
9730 amd64fbsd_sigtramp_start.
9731 (amd64fbsd_sigtramp_end_addr): Renamed from
9732 amd64fbsd_sigtramp_end.
9733 (amd64fbsd_init_abi): Adjust for renamed variables.
9734 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
9735 variables.
9736 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
9737 amd64fbsd_sigtramp_start.
9738 (amd64fbsd_sigtramp_end_addr): Renamed from
9739 amd64fbsd_sigtramp_end.
9740
9741 2004-02-22 Andrew Cagney <cagney@redhat.com>
9742
9743 * hppa-tdep.c (hppa32_return_value): New function.
9744 (hppa64_return_value): New function.
9745 (hppa_gdbarch_init): Set return_value; keep disabled.
9746
9747 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
9748 struct-return and inferior function call methods.
9749
9750 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9751 "frame-base.h".
9752 (struct hppa_frame_cache): Define.
9753 (hppa_frame_cache, hppa_frame_this_id): New functions.
9754 (hppa_frame_prev_register): New function.
9755 (hppa_frame_unwind, hppa_frame_base): New variables.
9756 (hppa_frame_unwind_sniffer): New function.
9757 (hppa_frame_base_address, hppa_unwind_pc): New function.
9758 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
9759 sniffer, and frame base sniffer; keep disabled.
9760 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
9761 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
9762
9763 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
9764 to predicates for "seriously old code".
9765
9766 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
9767 runtime if(0).
9768
9769 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
9770 unsigned.
9771 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
9772
9773 * config/pa/tm-hppa.h: Update copyright.
9774 (DEPRECATED_INIT_FRAME_PC): Delete macro.
9775 (deprecated_init_frame_pc_default): Delete declaration.
9776 (hppa_frame_init_saved_regs): Delete declaration.
9777 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9778 * hppa-tdep.c: Include "arch-utils.h".
9779 (hppa_gdbarch_init): Set deprecated init_frame_pc
9780 and deprecated frame_init_saved_regs.
9781 (hppa_frame_init_saved_regs): Make static.
9782
9783 2004-02-22 Mark Kettenis <kettenis@gnu.org>
9784
9785 Remove old 386BSD support.
9786 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
9787 * configure.host: Remove i[34567]86-*-bsd*.
9788 * configure.tgt: Remove i[34567]86-*-bsd*.
9789 * i386b-nat.c: Removed.
9790 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
9791 (i386b-nat.o): Remove dependencies.
9792
9793 * config/i386/i386bsd.mh: Removed.
9794 * config/i386/i386bsd.mt: Removed.
9795 * config/i386/nm-i386bsd.h: Removed.
9796 * config/i386/tm-i386bsd.h: Removed.
9797 * config/i386/xm-i386bsd.h: Removed.
9798
9799 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
9800
9801 * amd64fbsd-tdep.c: Include "solib-svr4.h".
9802 (amd64fbsd_init_abi): Set link map offsets.
9803 * amd64nbsd-tdep.c: Include "slib-svr4.h".
9804 (amd64nbsd_init_abi): Set link map offsets.
9805 * amd64obsd-tdep.c: Include "solib-svr4.h".
9806 (amd64obsd_init_abi): Set link map offsets.
9807 * i386fbsd-tdep.c: Include "solib-svr4.h".
9808 (i386fbsd_init_abi): Set link map offsets.
9809 * i386nbsd-tdep.c: Include "solib-svr4.h".
9810 (i386nbsdelf_init_abi): Set link map offsets.
9811 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
9812 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
9813 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
9814 solib-legacy.o and core-aout.o. Reformat.
9815 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
9816 solib-svr4.o, solib-legacy.o. Reformat.
9817 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
9818 * config/i386/nbsdelf.mh: Reformat.
9819 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
9820 solib-svr4.o, solib-legacy.o and corelow.o.
9821 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
9822 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
9823 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
9824 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9825 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9826 (TM_FILE): Set to tm-fbsd.h.
9827 * config/i386/nbsd.mt (TDEPFILES): Reformat.
9828 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
9829 solib-svr4.o.
9830 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
9831 solib-svr4.o.
9832 (TM_FILE): Set to nm-nbsd.h.
9833 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
9834 Simplify shared library support. Don't include "elf/common.h".
9835 (SVR4_SHARED_LIBS): Don't define.
9836 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
9837 "solib.h".
9838 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
9839 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
9840 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
9841 Don't include "i386/tm-i386.h". Include "solib.h".
9842 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
9843 Don't include "i386/tm-i386.h".
9844 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
9845 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
9846 Include "i386/xm-i386.h".
9847 (HOST_LONG_DOUBLE_FORMAT): Remove.
9848
9849 Fix OpenBSD/i386 sigtramp recognition.
9850 * i386-tdep.h: Update copyright year.
9851 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
9852 (i386bsd_sigtramp_end): New prototypes.
9853 (i386fbsd_sigtramp_start_addr): Renamed from
9854 i386fbsd_sigtramp_start.
9855 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9856 (i386obsd_sigtramp_start_addr): Renamed from
9857 i386obsd_sigtramp_start.
9858 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9859 * i386bsd-tdep.c: Update copyright year.
9860 (i386bsd_pc_in_sigtramp): Make public.
9861 * i386fbsd-nat.c: Update copyright year.
9862 (_initialize_i386fbsd_nat): Adjust for renamed variables.
9863 * i386fbsd-tdep.c: Update copyright year.
9864 (i386fbsd_sigtramp_start_addr): Renamed from
9865 i386fbsd_sigtramp_start.
9866 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9867 (i386fbsdaout_init_abi): Adjust for renamed variables.
9868 * i386obsd-nat.c: Update copyright year.
9869 (_initialize_i386obsd_nat): Adjust for renamed variables.
9870 * i386obsd-tdep.c: Include "target.h".
9871 (i386obsd_page_size): New variable.
9872 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
9873 (i386obsd_sigtramp_end): New functions.
9874 (i386obsd_sigtramp_start_addr): Renamed from
9875 i386obsd_sigtramp_start.
9876 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9877 (i386obsd_init_abi): Adjust for renamed variables. Set
9878 pc_in_sigtramp, sigtramp_start and sigtramp_end.
9879 * Makefile.in (i386obsd-tdep.o): Update dependencies.
9880
9881 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
9882 trampoline change in OpenBSD kernel.
9883
9884 * amd64-nat.c: Update copyright year.
9885 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
9886 architecture from REGCACHE.
9887
9888 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
9889 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
9890
9891 2004-02-21 Mark Kettenis <kettenis@gnu.org>
9892
9893 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
9894 i[34567]86-*-openbsd3.[0-3].
9895 * config/i386/obsdaout.mh: New file.
9896
9897 * config/i386/obsd.mh (MH_FLAGS): Remove.
9898
9899 Fix PR build/1549.
9900 * i386obsd-tdep.c: Update copyright years. Include
9901 "solib-svr4.h".
9902 (i386obsd_init_abi): Don't set regset_from_core_section here.
9903 (i386obsd_aout_init_abi): New function. Set
9904 regset_from_core_section here.
9905 (i386obsd_elf_init_abi): New function.
9906 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
9907 * Makefile.in (i386obsd-tdep.o): Update dependecies.
9908 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9909 (TM_FILE): Set to tm-nbsd.h.
9910
9911 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
9912 solib-sunos.o.
9913
9914 * solib-svr4.h: Update copyright year.
9915 (svr4_ilp32_fetch_link_map_offsets)
9916 (svr4_lp64_fetch_link_map_offsets): New prototype.
9917 * solib-svr4.c: Update copyright year.
9918 (svr4_ilp32_fetch_link_map_offsets)
9919 (svr4_lp64_fetch_link_map_offsets): New function.
9920
9921 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
9922
9923 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
9924 to the partial symbol table.
9925
9926 2004-02-20 J. brobecker <brobecker@gnat.com>
9927
9928 * PROBLEMS: Add description of problem documented under gdb/1560.
9929
9930 2004-02-20 Mark Kettenis <kettenis@gnu.org>
9931
9932 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
9933 comments.
9934 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
9935 functions.
9936 (amd64obsd_init_abi): Reorder initializations. Use
9937 amd64obsd_r_reg_offset to initialize the general-purpose register
9938 set details. Set regset_from_core_section.
9939 (_initialize_amd64obsd_tdep): Rename from
9940 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
9941 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
9942 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
9943
9944 * NEWS (New native configurations): Mention OpenBSD/alpha.
9945 * configure.tgt: Add alpha*-*-openbsd*.
9946 * configure.host: Add alpha*-*-openbsd*.
9947 * alphanbsd-tdep.c: Update copyright year.
9948 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
9949
9950 2004-02-20 Andrew Cagney <cagney@redhat.com>
9951
9952 Fix PR tdep/1372.
9953 * configure.tgt: Delete target "none-*-*".
9954 * configure.host: Delete host "none-*-*".
9955 * config/none/none.mh: Delete file.
9956 * config/none/none.mt: Delete file.
9957 * config/none/xm-none.h: Delete file.
9958 * config/none/tm-none.h: Delete file.
9959 * config/none/nm-none.h: Delete file.
9960
9961 2004-02-19 Fred Fish <fnf@redhat.com>
9962
9963 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
9964 cache->uses_fp prior to setting it.
9965
9966 2004-02-19 Fred Fish <fnf@redhat.com>
9967
9968 Fix for PR breakpoint/1558.
9969 * sh-tdep.c (IS_JSR): New macro.
9970 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
9971
9972 2004-02-19 Jim Blandy <jimb@redhat.com>
9973
9974 * findvar.c (value_from_register): Doc fix.
9975
9976 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
9977
9978 * printcmd.c (print_scalar_formatted): Do not check for sizeof
9979 type being greater than sizeof of host's LONGEST. Always use
9980 unpack_long() unless format 'f' chosen.
9981
9982 2004-02-19 Joel Brobecker <brobecker@gnat.com>
9983
9984 Committed by Elena Zannoni <ezannoni@redhat.com>
9985
9986 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
9987 contains a symbol wich is the best, non-exact match for the given
9988 pc. Update comments.
9989
9990 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
9991
9992 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
9993 macro, which was part of the now removed Mach 3 port.
9994 * utils.c (request_quit): Ditto.
9995
9996 2004-02-18 Mark Kettenis <kettenis@gnu.org>
9997
9998 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
9999 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
10000
10001 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10002
10003 Committed by Mark Kettenis <kettenis@gnu.org>.
10004
10005 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
10006 Define.
10007
10008 2004-02-18 Andrew Cagney <cagney@redhat.com>
10009
10010 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
10011 CONFIG_INSTALL and CONFIG_UNINSTALL.
10012 * configure: Re-generate.
10013 * interps.h (INTERP_TUI): Define.
10014 * Makefile.in: Update dependencies.
10015 (TUI): New macro.
10016 (tui-main.o): Specify dependencies.
10017 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
10018 * tui/tui-main.c: New file.
10019
10020 2004-02-18 Mark Kettenis <kettenis@gnu.org>
10021
10022 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
10023 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
10024 dependencies.
10025 * configure.host: Add x86_64-*-openbsd*.
10026 * configure.tgt: Add x86_64-*-openbsd*.
10027 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
10028
10029 * tui/tui.c: Don't include <malloc.h>.
10030
10031 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
10032 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
10033 amd64nbsd-tdep.c.
10034
10035 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
10036 static. Remove extraneous whitespace.
10037 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
10038 static.
10039
10040 2004-02-17 Jim Blandy <jimb@redhat.com>
10041
10042 * findvar.c (value_from_register): Doc fix.
10043
10044 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10045
10046 Committed by Jim Blandy <jimb@redhat.com>.
10047
10048 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
10049 CORE_ADDR as type for selectors. Correct types for GNU run time
10050 message lookup function to use double indirection.
10051 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
10052 * objc-lang.h (lookup_child_selector): Adapt prototype.
10053
10054 * s390-nat.c (SUBOFF): New macro.
10055 (supply_gregset, fill_gregset): Use it to handle debugging
10056 of 32-bit exectuables running under a 64-bit kernel.
10057 * s390-tdep.c: Include "solib-svr4.h".
10058 (s390_svr4_fetch_link_map_offset): New function.
10059 (s390x_svr_fetch_link_map_offset): Likewise.
10060 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
10061 * Makefile.in (s390-tdep.o): Update dependencies.
10062
10063 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
10064 "frame-unwind.h".
10065 (s390_readinstruction): Reformat. Use read_memory_nobpt.
10066 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
10067 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
10068 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
10069 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
10070 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
10071 S390_SIGNAL_FRAMESIZE,
10072 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
10073 (struct frame_extra_info): Remove.
10074 (s390_memset_extra_info): Remove.
10075 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
10076 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
10077 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
10078 (is_rse): Renamed to ...
10079 (is_rsy): ... this. Support long displacements.
10080 (is_rxe): Renamed to ...
10081 (is_rxy): ... this. Support long displacements.
10082 (compute_x_addr): Support long displacements.
10083 (struct s390_prologue_data): New data type.
10084 (s390_on_stack): Change API to use struct s390_prologue_data.
10085 (s390_store): Reimplement.
10086 (s390_load): New function.
10087 (s390_get_signal_frame_info): Remove.
10088 (s390_get_frame_info): Remove, replace by ...
10089 (s390_analyze_prolog): ... this new function.
10090 (s390_check_function_end): Remove.
10091 (s390_function_start): Remove.
10092 (s390_frameless_function_invokation): Remove.
10093 (s390_is_sigreturn): Remove.
10094 (s390_init_frame_pc_first): Remove.
10095 (s390_init_frame_extra_info): Remove.
10096 (s390_frame_init_saved_regs): Remove.
10097 (s390_frame_saved_pc_nofix): Remove.
10098 (s390_frame_saved_pc): Remove.
10099 (s390_frame_chain): Remove.
10100 (s390_fp_regnum, s390_read_fp): Remove.
10101 (s390_pop_frame_regular, s390_pop_frame): Remove.
10102 (s390_saved_pc_after_call): Remove.
10103 (s390_skip_prologue): Reimplement.
10104 (s390_in_function_epilogue_p): Support long displacements.
10105 (struct s390_unwind_cache): New data structure.
10106 (s390_frame_unwind_cache): New function.
10107 (s390_prologue_frame_unwind_cache): Likewise.
10108 (s390_backchain_frame_unwind_cache): Likewise.
10109 (s390_frame_this_id, s390_frame_prev_register): Likewise.
10110 (s390_frame_unwind): Define.
10111 (s390_frame_sniffer): New function.
10112 (struct s390_pltstub_unwind_cache): New data structure.
10113 (s390_pltstub_frame_unwind_cache): New function.
10114 (s390_pltstub_frame_this_id): Likewise.
10115 (s390_pltstub_frame_prev_register): Likewise.
10116 (s390_pltstub_frame_unwind): Define.
10117 (s390_pltstub_frame_sniffer): New function.
10118 (struct s390_sigtramp_unwind_cache): New data structure.
10119 (s390_sigtramp_frame_unwind_cache): New function.
10120 (s390_sigtramp_frame_this_id): Likewise.
10121 (s390_sigtramp_frame_prev_register): Likewise.
10122 (s390_sigtramp_frame_unwind): Define.
10123 (s390_sigtramp_frame_sniffer): New function.
10124 (s390_frame_base_address, s390_local_base_address): New functions.
10125 (s390_frame_base): Define.
10126 (s390_unwind_pc, s390_unwind_sp): New function.
10127 (s390_push_dummy_call): Use new frame base location.
10128 (s390_unwind_dummy_id): Likewise.
10129 (s390_gdbarch_init): Remove calls to:
10130 set_gdbarch_frameless_function_invocation,
10131 set_gdbarch_deprecated_init_frame_pc,
10132 set_gdbarch_deprecated_frame_chain,
10133 set_gdbarch_deprecated_frame_init_saved_regs,
10134 set_gdbarch_deprecated_pop_frame,
10135 set_gdbarch_deprecated_init_extra_frame_info,
10136 set_gdbarch_deprecated_init_frame_pc_first,
10137 set_gdbarch_deprecated_target_read_fp,
10138 set_gdbarch_deprecated_frame_saved_pc,
10139 set_gdbarch_deprecated_saved_pc_after_call,
10140 set_gdbarch_deprecated_fp_regnum.
10141 Add calls to:
10142 set_gdbarch_in_solib_call_trampoline,
10143 frame_unwind_append_sniffer,
10144 frame_base_set_default,
10145 set_gdbarch_unwind_pc,
10146 set_gdbarch_unwind_sp.
10147 * Makefile.in (s390-tdep.o): Update dependencies.
10148
10149 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
10150 (S390_STACK_FRAME_OVERHEAD): Remove.
10151 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
10152 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
10153 (s390_promote_integer_argument): Remove.
10154 (s390_cannot_extract_struct_value_address): Remove.
10155 (s390_use_struct_convention, s390_store_struct_return): Remove.
10156 (s390_extract_return_value, s390_store_return_value): Remove.
10157 (s390_return_value_convention, s390_return_value): New functions.
10158 (is_float_singleton): Handle typedefs.
10159 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
10160 Remove, replace by ...
10161 (s390_function_arg_pass_by_reference, s390_function_arg_float,
10162 s390_function_arg_integer): ... these new functions.
10163 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
10164 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
10165 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
10166 Fill in tdep->abi.
10167 Remove calls to:
10168 set_gdbarch_deprecated_store_struct_return,
10169 set_gdbarch_deprecated_extract_return_value,
10170 set_gdbarch_deprecated_store_return_value,
10171 set_gdbarch_use_struct_convention,
10172 set_gdbarch_extract_struct_value_address,
10173 set_gdbarch_deprecated_pc_in_call_dummy,
10174 set_gdbarch_deprecated_push_arguments,
10175 set_gdbarch_deprecated_save_dummy_frame_tos,
10176 set_gdbarch_deprecated_push_return_address,
10177 set_gdbarch_deprecated_sizeof_call_dummy_words,
10178 set_gdbarch_deprecated_call_dummy_words,
10179 set_gdbarch_deprecated_dummy_write_sp.
10180 Add calls to:
10181 set_gdbarch_push_dummy_call,
10182 set_gdbarch_unwind_dummy_id,
10183 set_gdbarch_return_value.
10184
10185 * config/s390/nm-linux.h: Update comments.
10186 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
10187 (STOPPED_BY_WATCHPOINT): Redefine.
10188 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
10189 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
10190 (s390_stopped_by_watchpoint): Likewise.
10191 (watch_area_cnt): Remove.
10192 * s390-nat.c: Update comments.
10193 (watch_area): Remove typedef.
10194 Global replace watch_area by struct watch_area.
10195 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
10196 (s390_stopped_by_watchpoint): Remove pid argument,
10197 use s390_inferior_tid. Add short-cut for the no watchpoint case.
10198 (s390_fix_watch_points): Remove pid argument,
10199 use s390_inferior_tid. Recompute area spanned by watchpoints.
10200 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
10201 argument. Reimplement.
10202
10203 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
10204 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
10205 (FETCH_INFERIOR_REGISTERS): Define.
10206 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
10207 core-regset.o.
10208 * config/s390/s390x.mt: Remove.
10209 * config/s390/tm-s390.h: Remove.
10210 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
10211 (TARGET_ELF64): Remove.
10212 (SKIP_TRAMPOLINE_CODE): Do not undefine.
10213 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
10214 s390*-*-* case; always set gdb_target to s390.
10215 * regformats/reg-s390.dat: Remove control registers.
10216 * regformats/reg-s390x.dat: Likewise.
10217 * s390-tdep.h: New file.
10218 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
10219 Include "inferior.h" and "s390-tdep.h".
10220 Remove private definition of offsetof.
10221 (s390_register_u_addr): Remove.
10222 (regmap_gregset, regmap_fpregset): Define.
10223 (supply_gregset, fill_gregset): Reimplement.
10224 (supply_fpregset, fill_fpregset): Likewise.
10225 (s390_inferior_tid): New function.
10226 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
10227 (fetch_inferior_registers, store_inferior_registers): Likewise.
10228 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
10229 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
10230 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
10231 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
10232 (struct gdbarch_tdep): Define.
10233 (struct s390_register_info): Define.
10234 (s390_register_info): New variable.
10235 (s390_register_name): Reimplement.
10236 (s390_register_type): New function.
10237 (s390_register_raw_size, s390x_register_raw_size): Remove.
10238 (s390_cannot_fetch_register): Remove.
10239 (s390_register_byte): Remove.
10240 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
10241 (s390_dwarf_regmap): New variable.
10242 (s390_dwarf_reg_to_regnum): New function.
10243 (s390_stab_reg_to_regnum): Remove.
10244 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
10245 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
10246 (s390_convert_register_p): Likewise.
10247 (s390_register_to_value, s390_value_to_register): Likewise.
10248 (s390_register_reggroup_p): Likewise.
10249 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
10250 s390_gregset, s390x_gregset, s390_fpregset): New variables.
10251 (s390_supply_regset, s390_regset_from_core_section): New functions.
10252 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
10253 (S390_FPR_SIZE): Likewise.
10254 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
10255 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
10256 (S390_NUM_GPRS): Move here from tm-s390.h.
10257 (S390_NUM_FPRS): Likewise.
10258 (s390_in_function_epilogue_p): New function.
10259 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
10260 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
10261 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
10262 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
10263 Replace S390_FP_REGNUM by S390_SP_REGNUM.
10264 Remove calls to:
10265 set_gdbarch_deprecated_max_register_raw_size,
10266 set_gdbarch_deprecated_max_register_virtual_size,
10267 set_gdbarch_deprecated_register_byte,
10268 set_gdbarch_cannot_fetch_register,
10269 set_gdbarch_cannot_store_register,
10270 set_gdbarch_deprecated_register_size,
10271 set_gdbarch_deprecated_register_raw_size,
10272 set_gdbarch_deprecated_register_virtual_size,
10273 set_gdbarch_deprecated_register_virtual_type,
10274 set_gdbarch_deprecated_register_bytes.
10275 Add calls to:
10276 set_gdbarch_num_pseudo_regs,
10277 set_gdbarch_register_type,
10278 set_gdbarch_convert_register_p,
10279 set_gdbarch_register_to_value,
10280 set_gdbarch_value_to_register,
10281 set_gdbarch_register_reggroup_p,
10282 set_gdbarch_regset_from_core_section,
10283 set_gdbarch_pseudo_register_read,
10284 set_gdbarch_pseudo_register_write,
10285 set_gdbarch_in_function_epilogue_p.
10286 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
10287 (s390_tdep_h): New variable.
10288
10289 2004-02-17 Jim Blandy <jimb@redhat.com>
10290
10291 * findvar.c (value_from_register): If the type has no length, just
10292 return an acceptable value --- don't report an internal error.
10293
10294 * stabsread.c (read_type): If we find any type numbers that are
10295 forward references, complain if the references aren't resolved by
10296 the time we're finished reading.
10297 (cleanup_undefined_types): Make error message more appropriate for
10298 a complaint.
10299
10300 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
10301
10302 * Makefile.in (defs_h): Remove dependency on progress_h.
10303 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
10304 progress.h.
10305 * main.c (captured_main): Delete use of START_PROGRESS and
10306 END_PROGRESS.
10307
10308 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
10309
10310 * objfiles.c (terminate_minimal_symbol_table): Add back
10311 initialization of MSYMBOL_TYPE.
10312
10313 2004-02-17 David Mosberger <davidm@hpl.hp.com>
10314
10315 Committed by Andrew Cagney.
10316 * Makefile.in (ia64_tdep_h): New macro.
10317 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
10318 (ia64-tdep.o): Likewise.
10319 * ia64-tdep.h: New file.
10320 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
10321 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
10322 (ia64_aix_sigcontext_register_address): Likewise.
10323 (ia64_linux_getunwind_table): Delete declaration.
10324 * ia64-linux-tdep.c: Likewise.
10325
10326 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
10327
10328 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
10329 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
10330 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
10331
10332 2004-02-17 Andrew Cagney <cagney@redhat.com>
10333
10334 * symtab.c (skip_prologue_using_sal): New function.
10335 * symtab.h (skip_prologue_using_sal): Declare.
10336 * frv-tdep.c: Include "symtab.h".
10337 (skip_prologue_using_sal): Delete function.
10338 * mips-tdep.c (skip_prologue_using_sal): Delete function.
10339 * rs6000-tdep.c (refine_prologue_limit): Mention
10340 skip_prologue_using_sal.
10341 * ia64-tdep.c (refine_prologue_limit): Ditto.
10342 * Makefile.in: Update dependencies.
10343
10344 2004-02-16 Andrew Cagney <cagney@redhat.com>
10345
10346 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
10347 START_INFERIOR_TRAPS_EXPECTED.
10348 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
10349 START_INFERIOR_TRAPS_EXPECTED.
10350 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
10351 Delete macro.
10352 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
10353 macro, moved to "nm-osf.h". Update copyright.
10354 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
10355 update copyright.
10356
10357 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
10358 and function replacing FRAMELESS_FUNCTION_INVOCATION.
10359 * blockframe.c (legacy_frameless_look_for_prologue): Rename
10360 frameless_look_for_prologue.
10361 * frame.h (legacy_frameless_look_for_prologue): Rename
10362 frameless_look_for_prologue.
10363 * gdbarch.h, gdbarch.c: Re-generate.
10364 * sh64-tdep.c (sh64_gdbarch_init): Update.
10365 * sh-tdep.c (sh_gdbarch_init): Update.
10366 * s390-tdep.c (s390_gdbarch_init): Update.
10367 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10368 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10369 * m68k-tdep.c (m68k_gdbarch_init): Update.
10370 (delta68_frame_args_address): Update.
10371 * m32r-tdep.c (m32r_gdbarch_init): Update.
10372 * hppa-tdep.c (hppa_gdbarch_init): Update.
10373 * h8300-tdep.c (h8300_gdbarch_init): Update.
10374 * frv-tdep.c (frv_gdbarch_init): Update.
10375 (frv_frameless_function_invocation): Update.
10376 * cris-tdep.c (cris_gdbarch_init): Update.
10377 (cris_frameless_function_invocation): Update.
10378 * avr-tdep.c (avr_gdbarch_init): Update.
10379 * arm-tdep.c (arm_gdbarch_init): Update.
10380 * stack.c (frame_info): Update, call predicate.
10381 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
10382 * frame.c (legacy_get_prev_frame): Update, call predicate..
10383 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
10384 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
10385 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
10386 invocation.
10387 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10388 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10389 * vax-tdep.c (vax_gdbarch_init): Ditto.
10390
10391 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
10392 function.
10393
10394 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
10395
10396 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
10397 initializations.
10398
10399 2004-02-16 Andrew Cagney <cagney@redhat.com>
10400
10401 * tui/tui-windata.c: Include "gdb_string.h".
10402 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
10403 * tui/tui-layout.c, tui/tui-command.c: Ditto.
10404 * Makefile.in: Update dependencies.
10405
10406 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
10407
10408 * Makefile.in (infrun.o): Add $(gdb_assert_h).
10409 * infrun.c: Include "gdb_assert.h".
10410 (singlestep_ptid, saved_singlestep_ptid)
10411 (stepping_past_singlestep_breakpoint): New variables.
10412 (resume): Set singlestep_ptid. Check for singlestep thread
10413 hop.
10414 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
10415 (handle_inferior_event): Handle singlestep thread hop.
10416
10417 2004-02-16 Andrew Cagney <cagney@redhat.com>
10418
10419 * dwarf2-frame.c (dwarf2_frame_ops): New function.
10420 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
10421 (dwarf2_frame_init_reg): Ditto.
10422
10423 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
10424 suggested by Joshua Neuheisel
10425
10426 * configure.in: Always check for curses, including pdcurses.
10427 Warn, instead of error, when no curses are found. Enable TUI when
10428 curses is available.
10429 * configure: Re-generate.
10430
10431 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
10432
10433 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
10434 sh_sh4_register_convert_to_virtual.
10435 (sh_register_convert_to_raw): Rename from
10436 sh_sh4_register_convert_to_raw.
10437 (sh_pseudo_register_read): Accomodate above name change.
10438 (sh_pseudo_register_write): Ditto.
10439
10440 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
10441
10442 * sh-tdep.c (sh_generic_register_name): Remove.
10443 (sh_gdbarch_init): Use sh_sh_register_name in default case.
10444
10445 2004-02-15 Andrew Cagney <cagney@redhat.com>
10446
10447 * configure.in (build_warnings): Add -Wunused-function.
10448 * configure: Re-generate.
10449
10450 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
10451 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
10452
10453 * procfs.c (procfs_init_inferior): Assume that
10454 START_INFERIOR_TRAPS_EXPECTED is defined.
10455 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
10456 * config/ns32k/tm-nbsd.h: Delete file,
10457 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
10458
10459 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
10460 * config/vax/tm-vax.h: Delete file.
10461
10462 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10463 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10464 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10465 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10466 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
10467 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10468 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
10469
10470 2004-02-15 Mark Kettenis <kettenis@gnu.org>
10471
10472 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
10473 * dwarf2-frame.c (dwarf2_frame_data): New variable.
10474 (struct dwarf2_frame_ops): New.
10475 (dwarf2_frame_default_init_reg): New function, based on
10476 dwarf2_frame_init_reg.
10477 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
10478 (dwarf2_frame_init_reg): Call architecture-specific function.
10479 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
10480 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
10481 instead of dwarf2_frame_data.
10482 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
10483 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
10484
10485 2004-02-15 Andrew Cagney <cagney@redhat.com>
10486
10487 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
10488 register_gdbarch_swap.
10489 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
10490 * f-lang.c (_initialize_f_language): Update, use
10491 DEPRECATED_REGISTER_GDBARCH_SWAP.
10492 * remote.c (_initialize_remote): Ditto.
10493 * regcache.c (_initialize_regcache): Ditto.
10494 * parse.c (_initialize_parse): Ditto.
10495 * infrun.c (_initialize_infrun): Ditto.
10496 * mi/mi-main.c (_initialize_mi_main): Ditto.
10497 * gdbtypes.c (_initialize_gdbtypes): Ditto.
10498
10499 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
10500 poking .cacheable directly.
10501 * symfile.c (symfile_bfd_open): Ditto.
10502
10503 * Makefile.in: Update all dependencies.
10504
10505 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
10506 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
10507 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
10508 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
10509 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
10510
10511 2004-02-14 Andrew Cagney <cagney@redhat.com>
10512
10513 * arch-utils.c (legacy_convert_register_p): Check
10514 DEPRECATED_REGISTER_CONVERTIBLE_P.
10515 * findvar.c (value_of_register): Ditto.
10516
10517 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
10518 * gdbarch.h, gdbarch.c: Re-generate.
10519 * arch-utils.c (deprecated_register_convertible_not): Delete.
10520 * arch-utils.h (deprecated_register_convertible_not): Delete.
10521 * mi/mi-main.c (get_register): Update. Update copyright.
10522 * infcmd.c (default_print_registers_info): Update.
10523
10524 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10525 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
10526 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
10527 * gdbarch.h, gdbarch.c: Re-generate.
10528 * frame.c (deprecated_get_next_frame_hack): Delete function.
10529 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
10530 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10531 Update.
10532 * infcall.c (call_function_by_hand): Update.
10533
10534 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
10535
10536 * symfile.c (init_entry_point_info, entry_point_address): Move
10537 from here...
10538 * objfiles.c (init_entry_point_info, entry_point_address):..to
10539 here.
10540 * symfile.h (init_entry_point_info, entry_point_address): Remove
10541 prototypes.
10542 * objfiles.h (init_entry_point_info, entry_point_address):Add
10543 prototypes.
10544 * cris-tdep.c: Remove include of symfile.h. Add include of
10545 objfiles.h.
10546 * infcall.c: Ditto.
10547 * mcore-tdep.c: Ditto.
10548 * mn10300-tdep.c: Ditto.
10549 * sh64-tdep.c: Ditto.
10550 * v850-tdep.c: Ditto.
10551 * arm-tdep.c: Remove include of symfile.h.
10552 * blockframe.c: Ditto.
10553 * coffread.c: Ditto.
10554 * dbxread.c: Ditto.
10555 * dwarf2read.c: Ditto.
10556 * dwarfread.c: Ditto.
10557 * frv-tdep.c: Ditto.
10558 * ia64-tdep.c: Ditto.
10559 * mdebugread.c: Ditto.
10560 * mipsread.c: Ditto.
10561 * rs6000-tdep.c: Ditto.
10562 * s390-tdep.c: Ditto.
10563 * sh-tdep.c: Ditto.
10564 * xstormy16-tdep.c: Ditto.
10565 * gdbarch.sh: Remove include of symfile.h.
10566 * gdbarch.c: Regenerate.
10567 * solib-irix.c (enable_break): Use entry_point_address().
10568 Add comment about include file.
10569 * xcoffread.c: Add comment about include file.
10570 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
10571 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
10572 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
10573 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
10574 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
10575
10576 2004-02-13 Andrew Cagney <cagney@redhat.com>
10577
10578 * corelow.c (core_xfer_partial): Use "struct bfd_section".
10579 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
10580 copyright.
10581 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
10582
10583 2004-02-12 Fred Fish <fnf@redhat.com>
10584
10585 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
10586 set_gdbarch_store_return_value.
10587
10588 2004-02-12 Andrew Cagney <cagney@redhat.com>
10589
10590 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
10591 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
10592 (interrupt_query): Ditto.
10593 (ofunc): Delete unused variable.
10594 * cris-tdep.c (cris_abi): Delete unused function.
10595 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
10596 (cris_get_wide_opcode, cris_get_short_size): Ditto.
10597 (cris_get_asr_quick_shift_steps): Ditto.
10598 (cris_skip_prologue_frameless_p): Ditto.
10599 * arm-tdep.c (arm_push_return_address): Delete unused function.
10600 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
10601 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
10602 * s390-tdep.c (s390_function_start): Delete unused function.
10603
10604 2004-02-12 Andrew Cagney <cagney@redhat.com>
10605
10606 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
10607 gdbarch.h, gdbarch.c: Re-generate.
10608 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
10609 to generic_prologue_frameless_p.
10610 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
10611 * arch-utils.c (generic_prologue_frameless_p): Delete function.
10612
10613 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
10614
10615 * mips-linux-tdep.c: Include "frame.h".
10616 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
10617 (mips_linux_skip_resolver): New functions.
10618 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
10619 and set_gdbarch_in_solib_call_trampoline.
10620 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
10621 to after set_gdbarch_in_solib_return_trampoline. Only set the
10622 solib hooks to mips16 functions if the OS ABI is unknown.
10623 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
10624 including "config/tm-linux.h".
10625 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
10626 * Makefile.in (mips-linux-tdep.o): Update.
10627
10628 2004-02-11 David Carlton <carlton@kealia.com>
10629
10630 * linespec.c (decode_compound): Only look for a class symbol when
10631 considering all but the rightmost component.
10632
10633 2004-02-11 Andrew Cagney <cagney@redhat.com>
10634
10635 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
10636 abi code are are separatly grouped.
10637
10638 2004-02-11 Andrew Cagney <cagney@redhat.com>
10639
10640 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
10641 * gdbarch.h, gdbarch.c: Re-generate.
10642 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10643 * v850-tdep.c (v850_gdbarch_init): Update.
10644 * sh64-tdep.c (sh64_gdbarch_init): Update.
10645 * sh-tdep.c (sh_gdbarch_init): Update.
10646 * s390-tdep.c (s390_gdbarch_init): Update.
10647 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10648 * mips-tdep.c (mips_gdbarch_init): Update.
10649 * mcore-tdep.c (mcore_gdbarch_init): Update.
10650 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10651 * m32r-tdep.c (m32r_gdbarch_init): Update.
10652 * ia64-tdep.c (ia64_gdbarch_init): Update.
10653 * hppa-tdep.c (hppa_gdbarch_init): Update.
10654 * h8300-tdep.c (h8300_gdbarch_init): Update.
10655 * frv-tdep.c (frv_gdbarch_init): Update.
10656 * d10v-tdep.c (d10v_gdbarch_init): Update.
10657 * cris-tdep.c (cris_gdbarch_init): Update.
10658 * avr-tdep.c (avr_gdbarch_init): Update.
10659 * arm-tdep.c (arm_gdbarch_init): Update.
10660 * alpha-tdep.c (alpha_gdbarch_init): Update.
10661
10662 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
10663
10664 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
10665 comma.
10666 (sh_sh4al_dsp_register_name): Ditto.
10667
10668 2004-02-10 Andrew Cagney <cagney@redhat.com>
10669
10670 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
10671 (mips_init_frame_pc_first): Delete function.
10672 (mips_frame_saved_pc): Delete function.
10673 (mips_frame_chain): Delete function.
10674 (mips_init_extra_frame_info): Delete function.
10675 (mips_xfer_register): Delete unused variable "reg".
10676 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
10677 (mips_n32n64_return_value): Delete unused variable "reg".
10678 (mips_n32n64_return_value): Delete unused variable "pos".
10679 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
10680 (mips_o32_return_value): Delete unused variable "pos".
10681 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
10682 (mips_print_fp_register): Delete unused variable "namelen"
10683 (mips_print_fp_register): Delete unused variable "flt2"
10684 (get_frame_pointer): Delete function.
10685 (cached_proc_desc): Delete static variable.
10686 (mips_pop_frame): Delete function.
10687 (mips_find_saved_regs): Delete function.
10688 (mips_get_saved_register): Delete function.
10689 (mips_saved_pc_after_call): Delete function.
10690 (SIGFRAME_BASE): Delete macro.
10691 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
10692 (SIGFRAME_PC_OFF): Delete macro.
10693 (SIGFRAME_REGSAVE_OFF): Delete macro.
10694 (mips_dump_tdep): Do not print deleted macro definitions.
10695
10696 2004-02-10 Andrew Cagney <cagney@redhat.com>
10697
10698 * Makefile.in (SFILES): Remove explictly listed tui files.
10699 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
10700
10701 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
10702
10703 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
10704 to use paddr functions to format ia64 addresses and long values.
10705 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
10706 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
10707 (get_kernel_table, ia64_find_proc_info_x): Ditto.
10708 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
10709 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
10710
10711 2004-02-10 Andrew Cagney <cagney@redhat.com>
10712
10713 * defs.h: Do not include "tui.h".
10714 * gdb_curses.h: New file.
10715 * tui/tui-hooks.h: New file.
10716 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
10717 (tui_install_hooks, tui_remove_hooks): Delete declarations.
10718 (tui_initialize_io): Delete declaration.
10719 (tui_initialize_readline: Delete redundant declaration.
10720 (struct tui_point): Delete definition.
10721 * tui/tui-data.h (struct tui_point): Define.
10722 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
10723 * utils.c: Include "tui/tui.h".
10724 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
10725 * printcmd.c [TUI]: Include "tui/tui.h".
10726 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
10727 * tui/tui-command.c: Include "gdb_curses.h".
10728 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
10729 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
10730 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
10731 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
10732 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
10733 * Makefile.in: Update all dependencies.
10734 (tui_hooks_h, gdb_curses_h): Define.
10735 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
10736
10737 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
10738
10739 * objfiles.h (struct objfile): Remove unused fields auxf1 and
10740 auxf2. Add comments about some other rarely used fields.
10741
10742 2004-02-10 Andrew Cagney <cagney@redhat.com>
10743
10744 * Makefile.in (init.c): Fix script removing duplicates. Problem
10745 reported by Peter Schauer.
10746
10747 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
10748
10749 * bcache.c (bcache_xmalloc): Use obstack_init instead of
10750 obstack_specify_allocation.
10751 * objfiles.c (allocate_objfile): Ditto.
10752 * solib-sunos.c (solib_add_common_symbols)
10753 (allocate_rt_common_objfile): Ditto.
10754 * symfile.c (reread_symbols): Ditto.
10755 * gdb_obstack.h: Add comment.
10756
10757 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
10758
10759 * linespec.c (decode_line_1, locate_first_half)
10760 (decode_compound, lookup_prefix_sym): Update comments. Delete old
10761 commented out code.
10762
10763 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
10764
10765 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
10766 obstack_free.
10767
10768 2004-02-09 Andrew Cagney <cagney@redhat.com>
10769
10770 * blockframe.c (find_pc_partial_function): If find_pc_overlay
10771 fails, try find_pc_section. Fix PR c++/1267.
10772 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
10773 instead of find_pc_mapped_section.
10774 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
10775 not default to the section containing PC. Fix PR symtab/1519.
10776
10777 2004-02-09 Andrew Cagney <cagney@redhat.com>
10778
10779 * Makefile.in (mips-tdep.o): Update dependencies.
10780 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
10781 "trad-frame.h".
10782 (mips_unwind_pc): Return the pseudo PC register.
10783 (mips_unwind_dummy_id): New function.
10784 (mips16_fetch_instruction): New function.
10785 (mips32_fetch_instruction): New function.
10786 (struct mips_frame_cache): Define.
10787 (mips_mdebug_frame_cache): New function.
10788 (mips_mdebug_frame_this_id): New function.
10789 (mips_mdebug_frame_prev_register): New function.
10790 (mips_mdebug_frame_unwind): Define.
10791 (mips_mdebug_frame_sniffer): New function.
10792 (mips_mdebug_frame_base_address): New function.
10793 (mips_mdebug_frame_base): Define.
10794 (mips_mdebug_frame_base_sniffer): New function.
10795 (mips_gdbarch_init): Append unwind and base sniffers. Set
10796 unwind_dummy_id.
10797
10798 2004-02-08 Andrew Cagney <cagney@redhat.com>
10799
10800 * frame.c: Print both the register number and name.
10801
10802 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
10803 and a sed into a single sed. Make .c and .o patterns more robust.
10804 (OBS): Delete.
10805 (INIT_FILES): Replace OBS with COMMON_OBS.
10806 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
10807
10808 2004-02-08 Mark Kettenis <kettenis@gnu.org>
10809
10810 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
10811 the PT_WCOOKIE request.
10812
10813 2004-02-08 Andrew Cagney <cagney@redhat.com>
10814
10815 * mips-tdep.c (mips_unwind_pc): New function.
10816 (mips_gdbarch_init): Set mips_unwind_pc.
10817
10818 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
10819 (get_frame_id): Allow the UNKNOWN_FRAME.
10820 (frame_register_unwind, get_frame_type): Ditto.
10821
10822 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
10823 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
10824 unwind_dummy_id indicates a legacy frame.
10825
10826 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
10827 * configure: Re-generate.
10828
10829 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
10830 methods.
10831
10832 2004-02-08 Andrew Cagney <cagney@redhat.com>
10833
10834 * configure.in (CONFIG_ALL): Set to Makefile target, and not
10835 makefile macro.
10836 * configure: Re-generate.
10837 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
10838 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
10839 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
10840 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
10841 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
10842 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
10843 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
10844 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
10845 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
10846 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
10847
10848 2004-02-07 Andrew Cagney <cagney@redhat.com>
10849
10850 * Makefile.in: Update all dependencies.
10851
10852 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
10853 * configure: Re-generate.
10854 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
10855 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
10856 (COMMON_OBS): Add "main.o" and "annotate.o".
10857 (ANNOTATE_OBS): Delete.
10858 (OBS): Remove ANNOTATE_OBS.
10859 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
10860 CONFIG_INITS.
10861 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
10862 against CONFIG_OBS and "main.o".
10863 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
10864 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
10865
10866 * tui/tui-command.c: Include "gdb_string.h", delete register
10867 attribute, use ISO-C function signatures.
10868 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
10869 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10870 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
10871 * tui/tui.c: Ditto.
10872
10873 * tui/tui-command.c: Change variable and function names to lower
10874 case.
10875 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
10876 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
10877 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
10878 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10879 * tui/tui-winsource.c, tui/tui.c: Ditto.
10880
10881 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
10882
10883 * buildsym.c (free_pending_blocks, finish_block)
10884 (record_pending_block, make_blockvector, end_symtab): Replace
10885 symbol_obstack with objfile_obstack.
10886 * coffread.c (process_coff_symbol, coff_read_struct_type)
10887 (coff_read_enum_type): Ditto.
10888 * cp-namespace.c (initialize_namespace_symtab)
10889 (check_one_possible_namespace_symbol): Ditto.
10890 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
10891 (dwarf2_symbol_mark_computed): Ditto.
10892 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
10893 * elfread.c (elf_symtab_read): Ditto.
10894 * hpread.c (hpread_symfile_init, hpread_symfile_init)
10895 (hpread_read_enum_type, hpread_read_function_type)
10896 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
10897 Ditto.
10898 * jv-lang.c (get_java_class_symtab, add_class_symbol)
10899 (java_link_class_type): Ditto.
10900 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
10901 (new_symbol): Ditto.
10902 * minsyms.c (install_minimal_symbols): Ditto.
10903 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
10904 (terminate_minimal_symbol_table): Replace symbol_obstack with
10905 objfile_obstack.
10906 (free_objfile): Remove freeing of symbol_obstack.
10907 * objfiles.h: Remove symbol_obstack field.
10908 * pa64solib.c (add_to_solist): Replace symbol_obstack with
10909 objfile_obstack.
10910 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10911 symbol_obstack.
10912 (solib_add_common_symbols): Replace symbol_obstack with
10913 objfile_obstack.
10914 * somsolib.c (som_solib_add): Ditto.
10915 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10916 (common_block_start, common_block_end): Ditto.
10917 * symfile.c (reread_symbols): Remove freeing and init of
10918 symbol_obstack.
10919 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
10920 * symfile.h: Update comment.
10921 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
10922 stats printing.
10923 * symtab.c (symbol_set_names): Replace symbol_obstack with
10924 objfile_obstack.
10925 * symtab.h (struct general_symbol_info, struct minimal_symbol):
10926 Update comments.
10927 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
10928 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
10929 objfile_obstack.
10930
10931 2004-02-07 Andrew Cagney <cagney@redhat.com>
10932
10933 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
10934 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
10935 fields and variables.
10936 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
10937 (m_beInvisible): Delete macro.
10938 * tui/tui-data.h: Fix case case fields and variables.
10939 (m_genWinPtrIsNull): Delete macro.
10940 (tui_win_list): Rename winList.
10941 (TUI_SRC_WIN): Rename srcWin.
10942 (TUI_DISASM_WIN): Rename disassemWin.
10943 (TUI_DATA_WIN): Rename dataWin.
10944 (TUI_CMD_WIN): Rename cmdWin.
10945 (m_genWinPtrNotNull): Delete macro.
10946 (m_winPtrIsNull): Delete macro.
10947 (m_winPtrNotNull): Delete macro.
10948 (tui_win_is_source_type): Replace m_winIsSourceType
10949 (tui_win_is_auxillary): Replace m_winIsAuzillary.
10950 (tui_win_has_locator): Replace m_hasLocator.
10951 (tui_set_win_highlight): Replace m_setWinHighlightOn and
10952 m_setWinHighlightOff.
10953 * tui/tui-data.c: Update references.
10954 (tui_win_is_source_type, tui_set_win_highlight): New functions.
10955 (tui_win_has_locator, tui_win_is_auxillary): New functions.
10956 * tui/tui-command.c, tui/tui-disasm.c: Update references.
10957 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
10958 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
10959 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10960 * tui/tui-winsource.c, tui/tui.c: Ditto.
10961
10962 2004-02-07 Mark Kettenis <kettenis@gnu.org>
10963
10964 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
10965 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
10966 StackGhost.
10967
10968 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
10969 variable `i6' to `i7'.
10970 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
10971
10972 2004-02-07 Andrew Cagney <cagney@redhat.com>
10973
10974 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
10975 (TuiPoint, TuiPointPtr): Ditto.
10976 (TuiStatus, TuiStatusPtr): Ditto.
10977 (TuiWinType, TuiWinTypePtr): Ditto.
10978 (struct tui_point): Rename _TuiPoint.
10979 (tui_get_low_disassembly_address): Rename
10980 tuiGetLowDisassemblyAddress.
10981 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
10982 (tuiFree): Delete declaration.
10983 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
10984 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
10985 * tui/tui.c (tuiFree): Delete function.
10986 * cli/cli-cmds.c (disassemble_command): Update references.
10987 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
10988 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10989 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
10990 * tui/tui-winsource.c: Ditto.
10991
10992 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
10993
10994 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
10995 coffstab_build_psymtabs, elfstab_build_psymtabs)
10996 (stabsect_build_psymtabs): Replace psymbol_obstack with
10997 objfile_obstack.
10998 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
10999 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
11000 Ditto.
11001 * dwarfread.c (scan_compilation_units): Ditto.
11002 * elfread.c (elfstab_offset_sections): Ditto.
11003 * hppa-tdep.c (read_unwind_info): Ditto.
11004 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
11005 (hpread_end_psymtab): Ditto.
11006 * mdebugread.c (mdebug_build_psymtabs, add_pending)
11007 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
11008 Ditto.
11009 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
11010 * objfiles.c (add_to_objfile_sections)
11011 (build_objfile_section_table): Ditto.
11012 (allocate_objfile): Remove init of psymbol_obstack.
11013 (free_objfile): Remove freeing of psymbol_obstack.
11014 * objfiles.h (struct objfile): Remove field
11015 psymbol_obstack. Update comments.
11016 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
11017 psymbol_obstack with objfile_obstack.
11018 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11019 psymbol_obstack.
11020 * somread.c (som_symfile_offsets, init_import_symbols)
11021 (init_export_symbols): Replace psymbol_obstack with
11022 objfile_obstack.
11023 * somsolib.c (som_solib_add_solib_objfile): Ditto.
11024 * symfile.c (default_symfile_offsets, syms_from_objfile)
11025 (reread_symbols): Remove freeing and init of psymbol_obstack.
11026 (cashier_psymtab): Update comment.
11027 * symmisc.c (print_objfile_statistics): Don't report stats for
11028 psymbol obstack.
11029 * symtab.h (struct general_symbol_info, struct partial_symtab):
11030 Update comments.
11031 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
11032 (xcoff_symfile_offsets): Replace psymbol_obstack with
11033 objfile_obstack.
11034
11035 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
11036
11037 * objfiles.h (struct objfile): Add objfile_obstack field.
11038 Remove type_obstack field.
11039
11040 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
11041 read_structure_scope read_enumeration, new_symbol): Replace
11042 type_obstack with objfile_obstack.
11043 * dwarfread.c (struct_type, enum_type): Ditto.
11044 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
11045 (lookup_fundamental_type): Ditto.
11046 * gdbtypes.h (TYPE_ALLOC): Ditto.
11047 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
11048 (hpread_read_doc_function_type, hpread_read_struct_type)
11049 (fix_static_member_physnames, hpread_read_array_type)
11050 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
11051 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
11052 (java_link_class_type): Ditto.
11053 * mdebugread.c (parse_type): Ditto.
11054 * objfiles.c (allocate_objfile, free_objfile): Ditto.
11055 * solib-sunos.c (solib_add_common_symbols): Ditto.
11056 * stabsread.c (define_symbol, read_type, read_member_functions,
11057 read_cpp_abbrev, read_one_struct_field): Ditto.
11058 * symfile.c (reread_symbols): Ditto.
11059 * symmisc.c (print_objfile_statistics): Ditto.
11060
11061 2004-02-07 Andrew Cagney <cagney@redhat.com>
11062
11063 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
11064 (tui_exec_info_content): Rename TuiExecInfoContent.
11065 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
11066 (TuiWinInfo, TuiWinInfoPtr): Ditto.
11067 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
11068 (TuiList, TuiListPtr): Ditto.
11069 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
11070 (TuiDataType, TuiDataTypePtr): Ditto.
11071 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
11072 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
11073 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
11074 (TuiSourceElement, TuiSourceElementPtr): Ditto.
11075 (TuiDataElement, TuiDataElementPtr): Ditto.
11076 (TuiWinElement, TuiWinElementPtr): Ditto.
11077 (TuiDataInfo, TuiDataInfoPtr): Ditto.
11078 (TuiCommandElement, TuiCommandElementPtr): Ditto.
11079 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
11080 (TuiWhichElement, TuiWhichElementPtr): Ditto.
11081 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
11082 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
11083 * tui/tui-command.c, tui/tui-data.c: Update references.
11084 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
11085 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11086 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11087 * tui/tui-winsource.c, tui/tui.c: Ditto.
11088
11089 2004-02-07 Mark Kettenis <kettenis@gnu.org>
11090
11091 * dwarf2-frame.h: Update copyright.
11092 (enum dwarf2_frame_reg_rule): New.
11093 (struct dwarf2_frame_state_reg): New.
11094 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
11095 * dwarf2-frame.c: Update copyright.
11096 (enum dwarf2_reg_rule): Remove.
11097 (struct dwarf2_frame_state): Remove defenition of `struct
11098 dwarf2_frame_state_reg'.
11099 (read_reg): Call get_frame_arch to get the architecture instead of
11100 using CURRENT_GDBARCH.
11101 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
11102 DWARF2_FRAME_.
11103 (dwarf2_frame_init_reg): New function.
11104 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
11105 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
11106 initialize the register state. Prefix old `enum dwarf2_reg_rule'
11107 tags with DWARF2_FRAME_.
11108 (dwarf2_frame_prev_register): Call get_frame_arch to get the
11109 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
11110 dwarf2_reg_rule' tags with DWARF2_FRAME_.
11111
11112 2004-02-06 Andrew Cagney <cagney@redhat.com>
11113
11114 * tui/tui-data.h (struct tui_list): Rename _TuiList.
11115 (enum tui_data_type): Rename _TuiDataType.
11116 (struct tui_layout_def): Rename _TuiLayoutDef.
11117 (struct tui_source_element): Rename _TuiSourceElement.
11118 (struct tui_data_element): Rename _TuiDataElement.
11119 (struct tui_command_element): Rename _TuiCommandElement.
11120 (struct tui_locator_element): Rename _TuiLocatorElement.
11121 (union tui_which_element): Define.
11122 (struct tui_win_element): Rename _TuiWinElement.
11123 (struct tui_data_info): Rename _TuiDataInfo.
11124 (struct tui_source_info): Rename _TuiSourceInfo.
11125 (struct tui_command_info): Rename _TuiCommandInfo.
11126 (tui_initialize_static_data): Rename initializeStaticData.
11127 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
11128 (tui_alloc_win_info): Rename allocWinInfo.
11129 (tui_init_generic_part): Rename initGenericPart.
11130 (tui_init_win_info): Rename initWinInfo.
11131 (tui_alloc_content): Rename allocContent.
11132 (tui_add_content_elements): Rename addContentElements.
11133 (tui_init_content_element): Rename initContentElement.
11134 (tui_free_window): Rename freeWindow.
11135 (tui_free_win_content): Rename freeWinContent.
11136 (tui_free_data_content): Rename freeDataContent.
11137 (tui_free_all_source_wins_content): Rename
11138 freeAllSourceWinsContent.
11139 (tui_del_window): Rename tuiDelWindow.
11140 (tui_del_data_windows): Rename tuiDelDataWindows.
11141 (tui_partial_win_by_name): Rename partialWinByName.
11142 (tui_win_name): Rename winName.
11143 (tui_current_layout): Rename currentLayout.
11144 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
11145 (tui_term_height): Rename termHeight.
11146 (tui_set_term_height_to): Rename setTermHeightTo.
11147 (tui_term_width): Rename termWidth.
11148 (tui_set_term_width_to): Rename setTermWidthTo.
11149 (tui_set_gen_win_origin): Rename setGenWinOrigin.
11150 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
11151 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
11152 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
11153 (tui_source_windows): Rename sourceWindows.
11154 (tui_clear_source_windows): Rename clearSourceWindows.
11155 (tui_clear_source_windows_detail): Rename
11156 clearSourceWindowsDetail.
11157 (tui_clear_win_detail): Rename clearWinDetail.
11158 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
11159 (tui_default_tab_len): Rename tuiDefaultTabLen.
11160 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
11161 (tui_win_with_focus): Rename tuiWinWithFocus.
11162 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
11163 (tui_layout_def): Rename tuiLayoutDef.
11164 (tui_win_resized): Rename tuiWinResized.
11165 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
11166 (tui_next_win): Rename tuiNextWin.
11167 (tui_prev_win): Rename tuiPrevWin.
11168 (tui_add_to_source_windows): Rename addToSourceWindows.
11169 * tui/tui-winsource.c, tui/tui-win.c: Update references.
11170 * tui/tui-layout.c, tui/tui-source.c: Ditto.
11171 * tui/tui-stack.c, tui/tui-io.c: Ditto.
11172 * tui/tui.c, tui/tui-data.c: Ditto.
11173 * tui/tui-interp.c, tui/tui-data.c: Ditto.
11174 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
11175
11176 * tui/tui-source.h: Update copyright. Include "tui-data.h".
11177 (struct symtab): Declare.
11178 (tui_set_source_content): Rename tuiSetSourceContent.
11179 (tui_show_symtab_source): Rename tuiShowSource.
11180 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
11181 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
11182 * tui/tui-source.c: Update copyright. Update references.
11183 * tui/tui-win.c, tui/tui-winsource.c: Update references.
11184 * tui/tui-stack.c: Update references.
11185
11186 * tui/tui-win.h: Update copyright. Include "tui-data.h".
11187 (struct tui_win_info): Declare.
11188 (tui_scroll_forward): Rename tuiScrollForward.
11189 (tui_scroll_backward): Rename tuiScrollBackward.
11190 (tui_scroll_left): Rename tuiScrollLeft.
11191 (tui_scroll_right): Rename tuiScrollRight.
11192 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
11193 (tui_resize_all): Rename tuiResizeAll.
11194 (tui_refresh_all_win): Rename tuiRefreshAll.
11195 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
11196 * tui/tui-layout.c, * tui/tui-io.c: Update references.
11197 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
11198 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
11199
11200 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
11201 (tui_erase_data_content): Rename tuiEraseDataContent.
11202 (tui_display_all_data): Rename tuiDisplayAllData.
11203 (tui_check_data_values): Rename tuiCheckDataValues.
11204 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
11205 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
11206 (tui_first_data_element_no_in_line): Rename
11207 tuiFirstDataElementNoInLine.
11208 (tui_delete_data_content_windows): Rename
11209 tuiDeleteDataContentWindows.
11210 (tui_refresh_data_win): Rename tuiRefreshDataWin.
11211 (tui_display_data_from): Rename tuiDisplayDataFrom.
11212 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
11213 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
11214 * tui/tui-win.c, tui/tui-regs.c: Update references.
11215 * tui/tui-layout.c, tui/tui.c: Update references.
11216
11217 * tui/tui-wingeneral.h: Update copyright.
11218 (m_allBeVisible): Delete macro.
11219 (m_allBeInvisible): Delete macro.
11220 (struct tui_gen_win_info): Declare.
11221 (struct tui_win_info): Declare.
11222 (tui_unhighlight_win): Rename unhighlightWin.
11223 (tui_make_visible, tui_make_invisible): Replace makeVisible.
11224 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
11225 (tui_make_window): Rename makeWindow.
11226 (tui_copy_win): Rename copyWin.
11227 (tui_box_win): Rename boxWin.
11228 (tui_highlight_win): Rename highlightWin.
11229 (tui_check_and_display_highlight_if_needed): Rename
11230 checkAndDisplayHighlightIfNeeded.
11231 (tui_refresh_all): Rename refreshAll.
11232 (tui_delete_win): Rename tuiDelwin.
11233 (tui_refresh_win): Rename tuiRefreshWin.
11234 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
11235 (tui_make_visible, tui_make_invisible): New functions.
11236 (tui_make_all_visible, tui_make_all_invisible): New functions.
11237 (make_all_visible): Rename makeAllVisible.
11238 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
11239 * tui/tui-data.c, tui/tui-winsource.c: Update references.
11240 * tui/tui-windata.c, tui/tui-win.c: Update references.
11241 * tui/tui-regs.c, tui/tui-layout.c: Update references.
11242 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
11243
11244 2004-02-06 Mark Kettenis <kettenis@gnu.org>
11245
11246 * proc-api.c (write_with_trace): Initialize local variable to
11247 silence compiler warning.
11248
11249 2004-02-06 Andrew Cagney <cagney@redhat.com>
11250
11251 * tui/tui-source.h: Do not include "defs.h".
11252 (struct tui_win_info): Declare.
11253 (tui_set_source_content_nil): Declare.
11254 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
11255 (union tui_line_or_address): Rename _TuiLineOrAddress.
11256 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
11257 (tui_update_source_window): Rename tuiUpdateSourceWindow.
11258 (tui_update_source_window_as_is): Rename
11259 tuiUpdateSourceWindowAsIs.
11260 (tui_update_source_windows_with_addr): Rename
11261 tuiUpdateSourceWindowsWithAddr.
11262 (tui_update_source_windows_with_line): Rename
11263 tuiUpdateSourceWindowsWithLine.
11264 (tui_clear_source_content): Rename tuiClearSourceContent.
11265 (tui_erase_source_content): Rename tuiEraseSourceContent.
11266 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
11267 (tui_show_source_content): Rename tuiShowSourceContent.
11268 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
11269 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
11270 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
11271 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
11272 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
11273 (tui_update_exec_info): Rename tuiUpdateExecInfo.
11274 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
11275 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
11276 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
11277 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
11278 (struct tui_win_info): Declare.
11279 * tui/tui-stack.c: Update references.
11280 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
11281 * tui/tui-win.c, tui/tui-source.c: Ditto.
11282 * tui/tui.c, tui/tui-disasm.c: Ditto.
11283
11284 2004-02-06 Mark Kettenis <kettenis@gnu.org>
11285
11286 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
11287 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
11288
11289 2004-02-05 Mark Kettenis <kettenis@gnu.org>
11290
11291 * infrun.c (handle_inferior_event): Allow for breakpoint
11292 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
11293 and SIGEMT. Update comments.
11294 * NEWS (Revised SPARC target): Mention support for non-executable
11295 stack.
11296
11297 2004-02-04 Mark Kettenis <kettenis@gnu.org>
11298
11299 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
11300 * inftarg.c: Update copyright year.
11301 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
11302 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
11303 (sparc_xfer_wcookie): New function.
11304 * sparc-tdep.c (sparc_fetch_wcookie): New function.
11305 * Makefile.in (sparc-nat.o): Update dependencies.
11306 * config/sparc/nm-nbsd.h: Include "target.h".
11307 (NATIVE_XFER_WCOOKIE): New define.
11308 (sparc_xfer_wcookie): New prototype.
11309
11310 2004-02-04 Andrew Cagney <cagney@redhat.com>
11311
11312 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
11313 SYSCALL_TRAP function.
11314 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
11315
11316 2004-02-04 Andrew Cagney <cagney@redhat.com>
11317 Daniel Jacobowitz <drow@mvista.com>
11318
11319 * objfiles.h: Delete comments refering to inside_entry_func and
11320 DEPRECATED_FRAME_CHAIN_VALID.
11321 * defs.h (inside_entry_func): Update prototype..
11322 * blockframe.c (inside_entry_func): Rename to
11323 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
11324 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
11325
11326 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
11327
11328 * breakpoint.c (struct captured_parse_breakpoint_args): Move
11329 outside of #ifdef SOLIB_ADD region.
11330 (do_restore_lang_radix_cleanup): Ditto.
11331 (resolve_pending_breakpoint): Ditto.
11332
11333 2004-02-03 Andrew Cagney <cagney@redhat.com>
11334
11335 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
11336 (process_note_abi_tag_sections): Delete unused function.
11337 (ia64_read_fp): Delete unused function.
11338 (gdbarch_extract_struct_value_address): Delete declaration.
11339
11340 2004-02-02 Andrew Cagney <cagney@redhat.com>
11341
11342 * vax-tdep.c (vax_frame_chain): Delete call to
11343 deprecated_inside_entry_file.
11344 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
11345
11346 2004-02-02 Mark Kettenis <kettenis@gnu.org>
11347
11348 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
11349 column that's "empty" or "same value" when eliminating REG_RA
11350 rules.
11351
11352 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
11353
11354 * NEWS: Add information about new pending breakpoint support.
11355
11356 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
11357
11358 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
11359 and pending fields for pending breakpoint support.
11360 * breakpoint.c (breakpoint_enabled): Add check for not pending.
11361 (condition_command): Only parse condition if not a pending
11362 breakpoint.
11363 (print_one_breakpoint): Add support for pending breakpoints.
11364 (describe_other_breakpoints): Add checks to verify we are not
11365 dealing with pending breakpoints.
11366 (check_duplicates): Don't check pending breakpoints.
11367 (set_raw_breakpoint): Initialize pending flag.
11368 (do_restore_lang_radix_cleanup): New cleanup routine.
11369 (resolve_pending_breakpoint): New function.
11370 (re_enable_breakpoints_in_shlibs): Try and resolve any
11371 pending breakpoints via resolve_pending_breakpoint.
11372 (mention): Add pending breakpoint support.
11373 (parse_breakpoint_sals): Add new parameter to pass to
11374 decode_line_1 to indicate silent errors when files or functions
11375 are not found. Change all callers.
11376 (do_captured_parse_breakpoint): New function.
11377 (break_command_1): Change prototype to return an rc value and to
11378 take an optional pending breakpoint pointer. Support creating
11379 a pending breakpoint if a "not found" form of error occurs when
11380 parsing the breakpoint. Also support resolving an existing pending
11381 breakpoint and be silent if the resolution fails.
11382 (create_breakpoints): Change prototype to take pending breakpoint
11383 pointer. When resolving a pending breakpoint, use the new pointer
11384 to provide a conditional or commands added by the end-user.
11385 (delete_breakpoint): Add appropriate check for pending.
11386 (breakpoint_re_set_one): Ditto.
11387 (do_enable_breakpoint): Ditto.
11388
11389 2004-02-02 David Carlton <carlton@kealia.com>
11390
11391 * valops.c (enum oload_classification): New.
11392 (find_overload_match): Break implementation into separate
11393 functions; delete #if 0'd code; look for symbols within
11394 namespaces.
11395 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
11396 (find_oload_champ,oload_method_static,classify_oload_match): New.
11397 * cp-support.h: Add declaration for cp_func_name; update
11398 declaration for make_symbol_overload_list.
11399 * cp-support.c (cp_func_name): New.
11400 (overload_list_add_symbol): Fix comment, use
11401 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
11402 (make_symbol_overload_list): Take a function name and a namespace
11403 instead of a symbol; change implementation.
11404 (make_symbol_overload_list_using): New.
11405 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
11406
11407 2004-02-02 Fred Fish <fnf@redhat.com>
11408
11409 * main.c (gdb_stdtarg): Move definition to group with other
11410 gdb_stdtarg definitions and update copyright years.
11411 * remote-sim.c (gdb_os_write_stderr): Write output to
11412 gdb_stdtargerr stream instead of gdb_stdtarg stream.
11413 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
11414 gdb_stderr stream and update copyright years.
11415
11416 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11417
11418 * Makefile.in (mips-linux-nat.o): Update dependencies.
11419 * mips-linux-nat.c: Include mips-tdep.h.
11420
11421 2004-02-01 Roland McGrath <roland@redhat.com>
11422
11423 * sol-thread.c (sol_thread_xfer_partial): New function.
11424 (init_sol_thread_ops): Use that for to_xfer_partial hook.
11425 (init_sol_core_ops): Likewise.
11426
11427 * procfs.c (procfs_xfer_partial): New function.
11428 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
11429 * Makefile.in (procfs.o): Add $(auxv_h) dep.
11430
11431 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
11432 procfs_xfer_auxv function.
11433
11434 * procfs.c (procfs_make_note_section): If we can read
11435 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
11436 * linux-proc.c (linux_make_note_section): Likewise.
11437
11438 * auxv.h: New file.
11439 * auxv.c: New file.
11440 * Makefile.in (auxv_h): New variable.
11441 (COMMON_OBS): Add auxv.o here.
11442 (auxv.o): New target.
11443
11444 * corelow.c (core_xfer_partial): New function.
11445 (init_core_ops): Use it for core_ops.to_xfer_partial.
11446
11447 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
11448 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
11449 macro if that is defined.
11450
11451 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11452
11453 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
11454 and check the specified thread for each breakpoint.
11455 * breakpoint.h (bpstat_stop_status): Update prototype.
11456 * infrun.c (handle_inferior_event): Update calls to
11457 bpstat_stop_status.
11458
11459 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11460
11461 * Makefile.in (cli-cmds.o): Add $(readline_h).
11462
11463 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
11464
11465 * cli/cli-cmds.c: Include readline.h.
11466 (complete_command): Pass the start of the last word to
11467 complete_line.
11468
11469 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
11470
11471 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
11472 argument, and change first argument to a CORE_ADDR.
11473 * breakpoint.h (bpstat_stop_status): Update prototype.
11474 * infrun.c (adjust_pc_after_break): Add a new comment.
11475 (handle_inferior_event): Update calls to bpstat_stop_status.
11476
11477 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
11478
11479 * breakpoint.h: Update copyright years.
11480
11481 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
11482
11483 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
11484 (bpstat_stop_status): Don't decrement PC.
11485 * breakpoint.h (software_breakpoint_inserted_here_p): Add
11486 prototype.
11487 * infrun.c (adjust_pc_after_break): New function.
11488 (handle_inferior_event): Call it, early. Remove later references
11489 to DECR_PC_AFTER_BREAK.
11490 (normal_stop): Add commentary.
11491
11492 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
11493
11494 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
11495 2004-01-27 double-free fix.
11496
11497 2004-01-31 Mark Kettenis <kettenis@gnu.org>
11498
11499 * sparc-tdep.c (sparc_fetch_wcookie): New function.
11500 (sparc32_frame_prev_register): Handle StackGhost.
11501 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11502
11503 2004-01-29 Roland McGrath <roland@redhat.com>
11504
11505 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
11506 * configure: Regenerated.
11507
11508 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
11509 * Makefile.in (procfs.o): Add dep.
11510
11511 2004-01-28 Andrew Cagney <cagney@redhat.com>
11512
11513 * tui/tui-stack.h: Update copyright.
11514 (struct frame_info): Add opaque declaration.
11515 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
11516 (tui_show_locator_content): Rename tuiShowLocatorContent.
11517 (tui_show_frame_info): Rename tuiShowFrameInfo.
11518 * tui/tui-stack.c: Update copyright. Update references.
11519 * tui/tui-winsource.c: Update references.
11520 * tui/tui-win.c: Update references.
11521 * tui/tui-layout.c: Update references.
11522 * tui/tui-hooks.c: Update copyright, update references.
11523 * tui/tui.c: Update copyright, update references.
11524 * tui/tui-disasm.c: Update references.
11525
11526 2004-01-28 David Carlton <carlton@kealia.com>
11527
11528 * dwarf2read.c (add_partial_structure): Use demangled name if
11529 namespace equals "".
11530
11531 2004-01-27 Jim Blandy <jimb@redhat.com>
11532
11533 Clean up misapplied patch:
11534 * dwarf2read.c (determine_prefix): Change one of the two forward
11535 declarations for 'determine_prefix_aux' to a declaration for this.
11536 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
11537 argument to 'die_specification'.
11538
11539 * dwarf2read.c (read_func_scope): Re-indent comment.
11540
11541 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
11542
11543 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
11544 b->exp to NULL after freeing so that error during re-parsing or
11545 evaluation of expressions associated with breakpoint don't
11546 eventually lead to re-freeing of storage.
11547 Committed by Andrew Cagney.
11548
11549 2004-01-27 Andrew Cagney <cagney@redhat.com>
11550
11551 * source.c (ambiguous_line_spec): Delete undefined declaration.
11552 * m32r-rom.c (m32r_set_board_address): Delete unused function.
11553 (m32r_set_server_address, m32r_set_download_path): Ditto.
11554 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
11555
11556 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
11557
11558 * dwarf2read.c: Update calls to changed and renamed functions, and
11559 references to moved variables.
11560
11561 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
11562 language, language_defn, list_in_scope, and ftypes members.
11563 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
11564 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
11565 (baseaddr): Remove globals.
11566
11567 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
11568 (set_cu_language, die_is_declaration, die_specification)
11569 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
11570 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
11571 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
11572 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
11573
11574 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
11575 cu.list_in_scope. Don't initialize cu_header_offset.
11576 (add_partial_symbol): Add local baseaddr.
11577 (psymtab_to_symtab_1): Add local baseaddr. Use
11578 objfile->section_offsets for consistency. Don't initialize
11579 cu_header_offset; do initialize cu.header.offset and
11580 cu.list_in_scope.
11581 (read_file_scope, read_func_scope, read_lexical_block_scope)
11582 (dwarf_decode_lines, new_symbol): Add local baseaddr.
11583
11584 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
11585
11586 * PROBLEMS: Add gdb/1516.
11587
11588 2003-12-29 Robert Millan <robertmh@gnu.org>
11589
11590 Patch committed by Andrw Cagney.
11591 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
11592 * configure.tgt: Match knetbsd*-gnu.
11593
11594 2004-01-26 Andrew Cagney <cagney@redhat.com>
11595
11596 * breakpoint.c (catch_command_1): Delete #ifdef code.
11597 (catch_fork_command_1): Delete #ifdef wrapper.
11598 (catch_exec_command_1): Ditto.
11599 (catch_load_command_1): Ditto.
11600 (catch_unload_command_1): Ditto.
11601
11602 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
11603 (catch_breakpoint): Delete #if0ed function.
11604 (disable_catch_breakpoint): Ditto.
11605 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
11606 (disable_catch, enable_catch, delete_catch): Ditto.
11607
11608 2004-01-26 Andrew Cagney <cagney@redhat.com>
11609
11610 * remote.c (echo_check, quit_flag): Delete variables.
11611 (cisco_kernel_mode): Delete variable.
11612 (minitelnet_return, tty_input, escape_count): Delete variables.
11613 (remote_cisco_mode): Delete variable.
11614 (remote_cisco_open, remote_cisco_close): Delete function.
11615 (remote_cisco_mourn, remote_cisco_wait): Delete function.
11616 (init_remote_cisco_ops): Delete function.
11617 (_initialize_remote): Do not install "remote cisco" code.
11618 (read_frame): Delete cisco specific code.
11619 (remote_info_process): Delete function.
11620 (remote_wait): Delete cisco specific code.
11621 (remote_cisco_section_offsets): Delete function.
11622 (remote_cisco_objfile_relocate): Delete function.
11623 (remote_async_wait): Delete cisco specific code.
11624 (minitelnet, readtty, readsocket): Delete function.
11625
11626 2004-01-26 Andrew Cagney <cagney@redhat.com>
11627
11628 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
11629 comments mentioning extract_returned_value_address.
11630 * infcmd.c (print_return_value): Update. Add comments on
11631 extract_returned_value_address.
11632 * stack.c (return_command): Add comments on
11633 extract_returned_value_address.
11634 * values.c: Update comment.
11635 * m32r-tdep.c: Update comment.
11636 * sparc-tdep.c: Update comment.
11637 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
11638 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11639 * sh64-tdep.c (sh64_gdbarch_init): Update.
11640 * sh-tdep.c (sh_gdbarch_init): Update.
11641 * s390-tdep.c (s390_gdbarch_init): Update.
11642 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11643 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
11644 * m68k-tdep.c (m68k_gdbarch_init): Update.
11645 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11646 * m32r-tdep.c (m32r_gdbarch_init): Update.
11647 * ia64-tdep.c (ia64_gdbarch_init): Update.
11648 * h8300-tdep.c (h8300_gdbarch_init): Update.
11649 * frv-tdep.c (frv_gdbarch_init): Update.
11650 * arm-tdep.c (arm_gdbarch_init): Update.
11651 * alpha-tdep.c (alpha_gdbarch_init): Update.
11652
11653 2004-01-26 Andrew Cagney <cagney@redhat.com>
11654
11655 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
11656 SYMBOL_LOCATION_FUNCS
11657 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
11658 "struct symbol_ops".
11659 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
11660 type to "struct symbol_ops".
11661 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
11662 (struct symbol): Replace ".aux_value.loc.funcs" and
11663 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
11664 (SYMBOL_OBJFILE): Delete macro.
11665 (SYMBOL_LOCATION_FUNCS): Delete macro.
11666 (SYMBOL_LOCATION_BATON): Update.
11667 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
11668 intead of SYMBOL_LOCATION_FUNCS.
11669 * ax-gdb.c (gen_var_ref): Ditto.
11670 * printcmd.c (address_info): Ditto.
11671 * findvar.c (read_var_value): Ditto.
11672 (symbol_read_needs_frame): Ditto.
11673
11674 2004-01-26 Andrew Cagney <cagney@redhat.com>
11675
11676 * dwarf2read.c (read_func_scope): Document frame-base hack.
11677
11678 2004-01-25 Mark Kettenis <kettenis@gnu.org>
11679
11680 * infcmd.c (print_return_value): Plug memory leak; delete
11681 ui_stream object. Rename argument `structure_return' to
11682 `struct_return'.
11683
11684 2004-01-25 Mark Kettenis <kettenis@gnu.org>
11685
11686 * infcmd.c (print_return_value): Wrap long lines.
11687 (finish_command_continuation, finish_command): Remove unused
11688 variable `funcaddr'. Fix some coding-standards problems.
11689
11690 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
11691 SECT_SIZE is large enough, not whether it's exactly the right size.
11692 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
11693 TDEP->fpregset to zero.
11694
11695 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
11696 floating-point registers for traditional NetBSD core files.
11697 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
11698 TDEP->sizeof_fpregset here.
11699
11700 2004-01-25 Mark Kettenis <kettenis@gnu.org>
11701
11702 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
11703 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
11704 function with code split out from
11705 sparc32nbsd_sigcontext_frame_cache.
11706 (sparc32nbsd_sigcontext_frame_cache): Use
11707 sparc32nbsd_sigcontext_saved_regs.
11708 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
11709 OpenBSD.
11710 * sparcobsd-tdep.c: New file.
11711 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
11712 (sparcobsd-tdep.o): New dependency.
11713 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
11714 * config/sparc/obsd.mt: New file.
11715
11716 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
11717 TDEP->fpregset to be initialized to enable core file register
11718 sets.
11719
11720 2004-01-24 Mark Kettenis <kettenis@gnu.org>
11721
11722 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
11723 Add opaque declarations.
11724 (sparc64nbsd_sigcontext_saved_regs): New prototype.
11725 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
11726 function with code split out from
11727 sparc64nbsd_sigcontext_frame_cache.
11728 (sparc64nbsd_sigcontext_frame_cache): Use
11729 sparc64nbsd_sigcontext_saved_regs.
11730 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
11731 OpenBSD.
11732 * sparc64obsd-tdep.c: New file.
11733 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
11734 (sparc64obsd-tdep.o): New dependency.
11735 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
11736 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
11737 * config/sparc/obsd64.mt: New file.
11738
11739 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
11740 read the instruction at PC.
11741
11742 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
11743 value of GDB_OSABI_DEFAULT.
11744 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
11745 instead of GDB_OSABI_NETBSD_AOUT.
11746
11747 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
11748
11749 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
11750 copyright.
11751
11752 2004-01-23 Andrew Cagney <cagney@redhat.com>
11753
11754 * printcmd.c (display_command): Replace tui_set_display call with
11755 tui_set_layout_for_display_command.
11756 * tui/tui.h (enum tui_win_type): Define.
11757 (tui_set_layout): Delete declaration.
11758 (tui_set_layout_for_display_command): Rename set_tui_layout.
11759 * tui/tui-data.h (enum tui_layout_type): Define.
11760 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
11761 "tui.h".
11762 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
11763 (tui_default_win_height): Rename tuiDefaultWinHeight.
11764 (tui_default_win_viewport_height): Rename
11765 tuiDefaultWinViewportHeight.
11766 (tui_set_layout): RenametuiSetLayout.
11767 * tui/tui-layout.c: Update references.
11768 * tui/tui.c: Update references.
11769 * tui/tui-disasm.c: Update references.
11770
11771 2004-01-23 David Carlton <carlton@kealia.com>
11772
11773 Partial workaround for PR c++/1511:
11774 * cp-namespace.c: Include frame.h.
11775 (cp_lookup_transparent_type): New
11776 (cp_lookup_transparent_type_loop): New.
11777 * cp-support.h: Declare cp_lookup_transparent_type.
11778 * symtab.c (basic_lookup_transparent_type): Renamed from
11779 lookup_transparent_type.
11780 (lookup_transparent_type): Replace old body by a call to
11781 current_language->la_lookup_transparent_type.
11782 * symtab.h: Update copyright. Declare
11783 basic_lookup_transparent_type.
11784 * language.h: Update copyright.
11785 (struct language_defn): Add la_lookup_transparent_type.
11786 * language.c: Update copyright.
11787 (unknown_language_defn): Add basic_lookup_transparent_type.
11788 (auto_language_defn): Add basic_lookup_transparent_type.
11789 (local_language_defn): Add basic_lookup_transparent_type.
11790 * ada-lang.c: Update copyright.
11791 (ada_language_defn): Add basic_lookup_transparent_type.
11792 * c-lang.c: Update copyright.
11793 (c_language_defn): Add basic_lookup_transparent_type.
11794 (cplus_language_defn): Add basic_lookup_transparent_type.
11795 (asm_language_defn): Add basic_lookup_transparent_type.
11796 (minimal_language_defn): Add basic_lookup_transparent_type.
11797 * f-lang.c: Update copyright.
11798 (f_language_defn): Add basic_lookup_transparent_type.
11799 * jv-lang.c: Update copyright.
11800 (java_language_defn): Add basic_lookup_transparent_type.
11801 * m2-lang.c: Update copyright.
11802 (m2_language_defn): Add basic_lookup_transparent_type.
11803 * objc-lang.c: Update copyright.
11804 (objc_language_defn): Add basic_lookup_transparent_type.
11805 * p-lang.c: Update copyright.
11806 (p_language_defn): Add basic_lookup_transparent_type.
11807 * scm-lang.c: Update copyright.
11808 (scm_language_defn): Add basic_lookup_transparent_type.
11809 * Makefile.in (cp-namespace.o): Depend on frame.h.
11810
11811 2004-01-23 David Carlton <carlton@kealia.com>
11812
11813 Patch for PR c++/1520:
11814 * dwarf2read.c (read_func_scope): Set processing_current_prefix
11815 properly if we have a specification die.
11816 (determine_prefix_aux): Rename from determine_prefix.
11817 (determine_prefix): Like the old determine_prefix, but never
11818 returns NULL.
11819
11820 2004-01-23 Theodore A. Roth <troth@openavr.org>
11821
11822 * avr-tdep.c: Update copyright.
11823 (avr_iaddr_p): Delete unused function.
11824 (avr_saddr_p): Delete unused function.
11825
11826 2004-01-23 David Carlton <carlton@kealia.com>
11827
11828 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
11829 Fix for PR symtab/1534.
11830
11831 2004-01-23 Mark Kettenis <kettenis@gnu.org>
11832
11833 * NEWS (New native configurations): Mention OpenBSD/sparc and
11834 OpenBSD/sparc64.
11835 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
11836 * configure.host: Likewise.
11837 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
11838 handler for OpenBSD.
11839 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
11840
11841 2004-01-22 Mark Kettenis <kettenis@gnu.org>
11842
11843 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
11844 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
11845
11846 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
11847 * cli/cli-cmds.c (shell_escape): Likewise.
11848
11849 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
11850 OpenBSD .note.openbsd.ident sections.
11851
11852 2004-01-22 David Carlton <carlton@kealia.com>
11853
11854 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
11855 get_scope_pc_bounds.
11856 (read_file_scope): Ditto.
11857 (get_scope_pc_bounds): New function, produced by extracting code
11858 from the above two functions, consolidating it, and adding support
11859 for DW_TAG_namespace.
11860
11861 2004-01-22 Mark Kettenis <kettenis@gnu.org>
11862
11863 * osabi.c (MAX_NOTESZ): New define.
11864 (check_note): New function.
11865 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
11866 check_note.
11867
11868 2004-01-21 Roland McGrath <roland@redhat.com>
11869
11870 * MAINTAINERS (write after approval): Add myself.
11871
11872 2004-01-21 Eli Zaretskii <eliz@gnu.org>
11873
11874 * utils.c (init_page_info): Move declarations of `rows' and
11875 `cols' before the __GO32__-specific code. Move the closing brace
11876 outside the #ifdef __GO32__..#endif block.
11877 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
11878
11879 2004-01-21 Paul Brook <paul@codesourcery.com>
11880
11881 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
11882 BPSTAT_WHAT_CHECK_SHLIBS.
11883
11884 2004-01-21 Paul Brook <paul@codesourcery.com>
11885
11886 * MAINTAINERS: Add myself to write-after-approval.
11887
11888 2004-01-20 Andrew Cagney <cagney@redhat.com>
11889
11890 * ax-gdb.c (print_axs_value): Delete unused function.
11891 * jv-lang.c (java_lookup_type): Delete unused function.
11892 * cli/cli-dump.c (dump_filetype): Delete unused function.
11893 * remote-mips.c (remote_mips_insert_hw_breakpoint)
11894 (remote_mips_remove_hw_breakpoint): Delete unused functions.
11895 (mips_getstring): Delete unused function.
11896 (pmon_insert_breakpoint): Delete #if0ed function.
11897 (PMON_MAX_BP): Delete #if0ed MACRO.
11898 (mips_pmon_bp_info): Delete #if0ed variable.
11899 (pmon_remove_breakpoint): Delete #if0ed function.
11900 * monitor.c (monitor_write_even_block): Delete unused function.
11901 (monitor_write_memory_block): Delete #if0ed code.
11902 * dink32-rom.c (dink32_load): Delete unused function.
11903 (_initialize_dink32_rom): Delete #if0ed code.
11904 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
11905
11906 * tui/tui-command.c: Update references.
11907 * tui/tui-io.c: Update references.
11908 * tui/tui-command.h: Update copyright.
11909 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
11910
11911 * source.c (ambiguous_line_spec): Delete never-defined function.
11912 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
11913 * gdbtypes.c (add_name, add_mangled_type): Ditto.
11914 * cli/cli-cmds.c (validate_comname): Ditto.
11915
11916 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
11917 "tui-data.h".
11918 (tui_set_disassem_content): Rename tuiSetDisassemContent.
11919 (tui_show_disassem): Rename tuiShowDisassem.
11920 (tui_show_disassem_and_update_source): Rename
11921 tuiVerticalDisassemScroll.
11922 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
11923 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
11924 * tui/tui.h: Update copyright.
11925 (enum tui_status): Define.
11926 * tui/tui-data.h (enum tui_scroll_direction): Define.
11927 * tui/tui-disasm.c: Update copyright. Update references.
11928 * tui/tui-winsource.c: Update copyright. Update references.
11929 * tui/tui-win.c: Update references.
11930 * tui/tui-layout.c: Update references.
11931
11932 2004-01-20 Andrew Cagney <cagney@redhat.com>
11933
11934 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
11935 sym2 to start of block.
11936
11937 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
11938
11939 * MAINTAINERS: Delete mmalloc.
11940 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
11941 * NEWS: Mention removal of --with-malloc.
11942 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
11943 * config.in: Regenerate.
11944 * configure: Regenerate.
11945 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
11946 USE_MMALLOC, MMCHECK_FORCE.
11947 * gdbinit.in: Remove mmalloc.
11948 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
11949 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
11950 * config/i386/go32.mh: Likewise.
11951 * config/i386/interix.mh: Likewise.
11952 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
11953
11954 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
11955
11956 * linespec.c (decode_variable, symtab_from_filename): Call
11957 error_silent with error message instead of throwing an exception
11958 directly.
11959 * defs.h (error_silent, error_output_message): Add prototypes.
11960 (catch_exceptions_with_msg): Ditto.
11961 * utils.c (error_silent, error_output_message): New functions.
11962 * top.c (catch_exceptions_with_msg): New function.
11963
11964 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
11965
11966 * mi/mi-cmds.h (enum print_values): Add definition.
11967
11968 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
11969 type and value for simple data types and just the name and type
11970 for complex ones, if required.
11971
11972 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
11973 children, if required.
11974
11975 2004-01-19 Kevin Buettner <kevinb@redhat.com>
11976
11977 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
11978 unused declarations.
11979
11980 2004-01-19 Andrew Cagney <cagney@redhat.com>
11981
11982 * top.h (mapped_symbol_files): Delete declaration.
11983 * main.c (captured_main): Delete option "m" and "mapped".
11984 * objfiles.c (mapped_symbol_files): Delete variable.
11985 * symfile.c (symbol_file_command): Delete mmap code.
11986 (symbol_file_add_with_addrs_or_offsets): Ditto.
11987 (add_symbol_file_command, reread_separate_symbols): Ditto.
11988 * objfiles.h (OBJF_MAPPED): Delete.
11989 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
11990 (free_objfile) [USE_MMALLOC]: Ditto.
11991 (open_existing_mapped_file): Delete function.
11992 (open_mapped_file): Delete function.
11993 (map_to_file): Delete function.
11994
11995 2004-01-19 Kevin Buettner <kevinb@redhat.com>
11996
11997 * infrun.c (step_into_function): Account for possible breakpoint
11998 adjustment when computing ``stop_func_start''.
11999
12000 2004-01-19 Kevin Buettner <kevinb@redhat.com>
12001
12002 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
12003 the region size against the size of a pointer, not the size of
12004 a register as given by DEPRECATED_REGISTER_SIZE.
12005
12006 2004-01-19 Andrew Cagney <cagney@redhat.com>
12007
12008 * tui/tui-regs.h: Include "tui-data.h".
12009 (tuiFirstRegElementNoInLine): Delete declaration.
12010 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
12011 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
12012 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
12013 (tui_calculate_regs_column_count): Rename
12014 tuiCalculateRegsColumnCount.
12015 (tui_check_register_values): Rename tuiCheckRegisterValues.
12016 (tui_show_registers): Rename tuiShowRegisters.
12017 (tui_display_registers_from_line): Rename
12018 tuiDisplayRegistersFromLine.
12019 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
12020 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
12021 (tui_first_reg_element_no_inline): Rename
12022 tuiFirstRegElementNoInLine.
12023 * tui/tui-data.h: Update copyright.
12024 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
12025 * tui/tui-windata.c: Update copyright, update references.
12026 * tui/tui-regs.c: Update copyright, update references.
12027 * tui/tui-win.c: Update copyright, update references.
12028 * tui/tui-layout.c: Update copyright, update references.
12029
12030 2004-01-18 Andrew Cagney <cagney@redhat.com>
12031
12032 * tui/tui-io.c: Update copyright.
12033 (key_is_end_sequence, key_is_backspace): New functions.
12034 (key_is_command_char, key_is_start_sequence): New function.
12035 (tui_getc): Update references.
12036 * tui/tui-io.h: Update copyright.
12037 (m_tuiStartNewLine): Delete macro.
12038 (m_isBackspace, m_isDeleteChar): Delete macros.
12039 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
12040 (m_isNextPage, m_isPrevPage): Delete macros.
12041 (m_isLeftArrow, m_isRightArrow): Delete macros.
12042 (m_isXdbStyleCommandChar): Delete macro.
12043 (key_is_start_sequence): Declare, replace m_isStartSequence.
12044 (key_is_end_sequence): Declare, replace m_isEndSequence.
12045 (key_is_backspace): Declare ,replace m_isBackspace.
12046 (key_is_command_char): Declare, replace m_isCommandChar.
12047 * tui/tui-command.c: Update copyright.
12048 (tuiDispatchCtrlChar): Update references.
12049
12050 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
12051 tuiSourceWin.h.
12052
12053 * tui/tui-command.c: Rename tui/tuiCommand.c.
12054 * tui/tui-command.h: Rename tui/tuiCommand.h.
12055 * tui/tui-data.c: Rename tui/tuiData.c.
12056 * tui/tui-data.h: Rename tui/tuiData.h.
12057 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
12058 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
12059 * tui/tui-io.c: Rename tui/tuiIO.c.
12060 * tui/tui-io.h: Rename tui/tuiIO.h.
12061 * tui/tui-layout.c: Rename tui/tuiLayout.c.
12062 * tui/tui-layout.h: Rename tui/tuiLayout.h.
12063 * tui/tui-regs.c: Rename tui/tuiRegs.c.
12064 * tui/tui-regs.h: Rename tui/tuiRegs.h.
12065 * tui/tui-source.c: Rename tui/tuiSource.c.
12066 * tui/tui-source.h: Rename tui/tuiSource.h.
12067 * tui/tui-stack.c: Rename tui/tuiStack.c.
12068 * tui/tui-stack.h: Rename tui/tuiStack.h.
12069 * tui/tui-win.c: Rename tui/tuiWin.c.
12070 * tui/tui-win.h: Rename tui/tuiWin.h.
12071 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
12072 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
12073 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
12074 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
12075 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
12076 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
12077 * tui/tui-file.c: Update includes.
12078 * tui/tui-hooks.c: Update includes.
12079 * tui/tui-interp.c: Update includes.
12080 * tui/tui.c: Update includes.
12081 * Makefile.in: Update all tui/ dependencies.
12082 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
12083
12084 * Makefile.in: Update copyright. Update dependencies.
12085
12086 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
12087 problem.
12088
12089 2004-01-18 Andrew Cagney <cagney@redhat.com>
12090
12091 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
12092 instead of register_gdbarch_init.
12093
12094 * remote-sds.c (tohex): Delete unused function. Update copyright.
12095 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
12096 * v850-tdep.c (v850_register_virtual_size): Ditto.
12097 * target.c (normal_target_post_startup_inferior): Ditto.
12098 * source.c (ambiguous_line_spec): Ditto.
12099 * remote.c (adapt_remote_get_threadinfo): Ditto.
12100 * mi/mi-out.c (out_field_fmt): Ditto.
12101 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
12102 (output_control_change_notification): Ditto.
12103 * m68k-tdep.c (m68k_register_byte): Ditto.
12104 (m68k_remote_breakpoint_from_pc): Ditto.
12105 * ui-out.c (init_ui_out_state): Delete unused declaration.
12106 * stabsread.c (search_value): Ditto.
12107 * mi/mi-cmd-env.c (env_cli_command): Ditto.
12108 * maint.c (print_section_table): Ditto.
12109 * infrun.c (set_follow_fork_mode_command): Ditto.
12110
12111 2004-01-18 Mark Kettenis <kettenis@gnu.org>
12112
12113 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
12114 DW_CFA_def_cfa_exporession. Add support for
12115 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
12116 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
12117
12118 2004-01-18 Andrew Cagney <cagney@redhat.com>
12119
12120 * ocd.c: Update copyright.
12121 (bdm_read_register_command): Delete unused function.
12122 (_initialize_remote_ocd): Delete commented out reference.
12123 (get_quoted_char, reset_packet): Delete #if0ed function.
12124 (output_packet, put_quoted_char): Delete #if0ed function.
12125 (stu_put_packet, stu_get_packet): Delete #if0ed function.
12126 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
12127 (BDM_BREAKPOINT): Delete #if0ed macro.
12128 (remote_timeout): Delete #if0ed variable.
12129
12130 2004-01-18 Mark Kettenis <kettenis@gnu.org>
12131
12132 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
12133 (core-sol2.o): Remove dependency.
12134 * core-sol2.c: Remove file.
12135
12136 2004-01-17 Andrew Cagney <cagney@redhat.com>
12137
12138 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
12139 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
12140 enums.
12141
12142 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12143
12144 * remote.c: Update copyright years.
12145
12146 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12147
12148 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
12149
12150 2004-01-17 Andrew Cagney <cagney@redhat.com>
12151
12152 * mdebugread.c: Update copyright.
12153 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
12154 (parse_type, parse_procedure): Ditto.
12155 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
12156
12157 * cris-tdep.c (cris_store_struct_return): Put back accidently
12158 deleted function.
12159
12160 * gdbarch.sh: Update copyright year.
12161 * gdbarch.h, gdbarch.c: Re-generate.
12162
12163 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12164
12165 Suggested by George Anzinger.
12166 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
12167 correct stack offset. Include unknown opcode numbers in the error
12168 message.
12169
12170 2004-01-17 Andrew Cagney <cagney@redhat.com>
12171
12172 * x86-64-tdep.c (x86_64_init_abi): No need to clear
12173 extract_struct_value_address, i386 does not set it.
12174 * sparc64-tdep.c (sparc64_init_abi): Do not set
12175 extract_struct_value_address, never called.
12176 (sparc64_extract_struct_value_address): Delete function.
12177 * m68hc11-tdep.c: Update copyright.
12178 (m68hc11_gdbarch_init): Delete redundant assignment of
12179 extract_struct_value_address.
12180 * i386-tdep.c: Update copyright.
12181 (i386_gdbarch_init): Do not set extract_struct_value_address,
12182 never called.
12183 (i386_extract_struct_value_address): Delete function.
12184 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
12185 extract_struct_value_address, never called.
12186 (sparc32_extract_struct_value_address): #if 0 function. Add
12187 comments explaining its future.
12188
12189 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12190
12191 * arm-tdep.c (arm_write_pc): New function.
12192 (arm_gdbarch_init): Call set_gdbarch_write_pc.
12193
12194 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
12195
12196 * breakpoint.c (must_shift_inst_regs): Delete.
12197 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
12198 and SHIFT_INST_REGS.
12199 * infcmd.c (step_1, step_1_continuation): Delete references to
12200 SHIFT_INST_REGS.
12201 * infrun.c (keep_going): Likewise.
12202 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
12203 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
12204
12205 2004-01-17 Andrew Cagney <cagney@redhat.com>
12206
12207 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12208 * gdbarch.h, gdbarch.c: Re-generate.
12209 * infcmd.c (print_return_value): Delete reference to
12210 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
12211
12212 * cris-tdep.c (cris_gdbarch_init): Do not set
12213 deprecated_extract_struct_value_address.
12214
12215 * xstormy16-tdep.c: Update copyright.
12216 (xstormy16_extract_struct_value_address): Update to current
12217 extract struct value address interface.
12218 (xstormy16_gdbarch_init): Set extract_struct_value_address.
12219 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
12220 current extract struct value address interface.
12221 (sh64_gdbarch_init): Set extract_struct_value_address.
12222
12223 * cris-tdep.c: Update copyright.
12224 (cris_extract_struct_value_address): Delete function.
12225 (struct_return_address): Delete variable.
12226 (cris_store_struct_return): Do not set struct_return_address.
12227
12228 * mcore-tdep.c: Update copyright.
12229 (mcore_extract_struct_value_address): Delete function. Update
12230 comments.
12231 (mcore_gdbarch_init): Update.
12232 * mn10300-tdep.c: Update copyright.
12233 (mn10300_extract_struct_value_address): Delete function.
12234 (mn10300_gdbarch_init): Update.
12235 * v850-tdep.c: Update copyright.
12236 (v850_extract_struct_value_address): Delete.
12237 (v850_gdbarch_init): Update.
12238 * ns32k-tdep.c: Update copyright.
12239 (ns32k_extract_struct_value_address): Delete.
12240 (ns32k_gdbarch_init): Update.
12241 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
12242 (hppa_gdbarch_init): Update.
12243 * vax-tdep.c: Update copyright.
12244 (vax_extract_struct_value_address): Delete.
12245 (vax_gdbarch_init): Update.
12246
12247 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
12248 * gdbarch.h, gdbarch.c: Re-generate.
12249 * procfs.c (procfs_fetch_registers): Delete reference to
12250 DEPRECATED_NPC_REGNUM.
12251 (procfs_store_registers): Ditto.
12252 * regcache.c (generic_target_write_pc): Simplify.
12253 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
12254
12255 * core-sol2.c (fetch_core_registers): Replace
12256 DEPRECATED_NPC_REGNUM with equivalent tdep value.
12257
12258 * hppa-tdep.c: Update copyright year.
12259 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
12260 NPC_REGNUM.
12261 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
12262
12263 * mips-tdep.c (mips_write_pc): New function.
12264 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
12265 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
12266 (mips_find_saved_regs, mips_software_single_step: Ditto.
12267 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
12268 mips_init_extra_frame_info, mips_pop_frame): Ditto.
12269
12270 2004-01-17 Andrew Cagney <cagney@redhat.com>
12271
12272 * mips-tdep.c: Re-indent. Group functions by ABI.
12273
12274 2004-01-17 Andrew Cagney <cagney@redhat.com>
12275
12276 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
12277 * gdbarch.c: Re-generate.
12278 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12279 DECR_PC_AFTER_BREAK to zero.
12280 * vax-tdep.c (vax_gdbarch_init): Ditto.
12281 * v850-tdep.c (v850_gdbarch_init): Ditto.
12282 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12283 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12284 * sh-tdep.c (sh_gdbarch_init): Ditto.
12285 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12286 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12287 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12288 * mips-tdep.c (mips_gdbarch_init): Ditto.
12289 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12290 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12291 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12292 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12293 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12294 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12295 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12296 * frv-tdep.c (frv_gdbarch_init): Ditto.
12297 * cris-tdep.c (cris_gdbarch_init): Ditto.
12298 * avr-tdep.c (avr_gdbarch_init): Ditto.
12299 * arm-tdep.c (arm_gdbarch_init): Ditto.
12300 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
12301
12302 2004-01-17 J. Brobecker <brobecker@gnat.com>
12303
12304 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
12305 Delete, no longer used.
12306 (read_subrange_type): New function, mostly extracted from
12307 read_array_type().
12308 (read_array_type): Replace extracted code by call to
12309 read_subrange_type().
12310 (dwarf2_get_attr_constant_value): New function.
12311 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
12312 (add_partial_symbol): Likewise.
12313 (process_die): Likewise.
12314 (new_symbol): Likewise.
12315 (read_type_die): Likewise.
12316
12317 2004-01-16 Andrew Cagney <cagney@redhat.com>
12318
12319 * symfile.c: Update copyright year.
12320 (compare_symbols): Delete unused function.
12321 * stabsread.c: Update copyright year.
12322 (lrs_general_complaint): Delete unused function.
12323 (ref_search_value): Ditto.
12324 (get_substring): Delete declaration.
12325 * sh64-tdep.c: Update copyright year.
12326 (sh64_get_gdb_regnum): Delete unused function.
12327 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
12328 Delete unused function.
12329
12330 2004-01-17 Mark Kettenis <kettenis@gnu.org>
12331
12332 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
12333 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
12334
12335 2004-01-16 Andrew Cagney <cagney@redhat.com>
12336
12337 Changes from Peter Schauer.
12338 * rs6000-tdep.c: Update copyright year.
12339 (rs6000_push_dummy_call): Update the stack pointer before
12340 accessing the corresponding stack region.
12341 * rs6000-nat.c: Update copyright year.
12342 (set_host_arch): Set "info.abfd" to "exec_bfd".
12343
12344 2004-01-15 Mark Kettenis <kettenis@gnu.org>
12345
12346 * blockframe.c: Update copyright year.
12347 (inside_entry_func): Don't treat a zero PC specially.
12348
12349 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
12350
12351 * gcore.c (gcore_copy_callback): Use paddr_d to print size
12352 variable.
12353 (gcore_create_callback): Ditto. Skip any memory segment that has
12354 no permissions set.
12355
12356 2004-01-14 David Carlton <carlton@kealia.com>
12357
12358 Change symbols for C++ nested types to contain the fully qualified
12359 name, if possible. (At least in the DWARF-2 case.) Partial fix
12360 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
12361 c++/895.
12362 * c-exp.y (qualified_type): Handle types nested within classes.
12363 * cp-namespace.c: Update comments.
12364 (cp_set_block_scope): Delete #if 0.
12365 (cp_lookup_nested_type): Handle types nested within classes.
12366 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
12367 when appropriate.
12368 (add_partial_symbol): Add the name of the enclosing namespace to
12369 types.
12370 (pdi_needs_namespace): New.
12371 (add_partial_namespace): Tweak comment.
12372 (add_partial_structure): New.
12373 (psymtab_to_symtab_1): Initialize processing_current_prefix
12374 here...
12375 (process_die): instead of here.
12376 (read_structure_scope): Try to figure out the name of the class or
12377 namespace that the structure might be defined within.
12378 (read_enumeration): Generate fully-qualified names, if possible.
12379 (read_namespace): Don't set name to NULL.
12380 (die_specification): New.
12381 (new_symbol): Generate fully-qualified names for types.
12382 (read_type_die): Determine appropriate prefix.
12383 (determine_prefix): New.
12384 (typename_concat): New.
12385 (class_name): New.
12386 * valops.c (value_aggregate_elt): Pass NOSIDE to
12387 value_struct_elt_for_reference.
12388 (value_struct_elt_for_reference): Make static, add NOSIDE
12389 parameter, call value_maybe_namespace_elt as a last resort.
12390 (value_namespace_elt): Break out code into
12391 value_maybe_namespace_elt.
12392 (value_maybe_namespace_elt): New.
12393
12394 2004-01-12 Andrew Cagney <cagney@redhat.com>
12395
12396 * mips-tdep.c (mips_convert_register_p): Handle both raw and
12397 cooked floating-point registers.
12398 (mips_gdbarch_init): Set convert_register_p, register_to_value,
12399 and value_to_register.
12400
12401 2004-01-13 Andrew Cagney <cagney@redhat.com>
12402
12403 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
12404 * gdbarch.c: Re-generate.
12405 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12406 FUNCTION_START_OFFSET.
12407 * v850-tdep.c (v850_gdbarch_init): Ditto.
12408 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12409 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12410 * sh-tdep.c (sh_gdbarch_init): Ditto.
12411 * s390-tdep.c (s390_gdbarch_init): Ditto.
12412 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12413 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12414 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12415 * mips-tdep.c (mips_gdbarch_init): Ditto.
12416 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12417 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
12418 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12419 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12420 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12421 * i386-tdep.c (i386_gdbarch_init): Ditto.
12422 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12423 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12424 * frv-tdep.c (frv_gdbarch_init): Ditto.
12425 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12426 * cris-tdep.c (cris_gdbarch_init): Ditto.
12427 * avr-tdep.c (avr_gdbarch_init): Ditto.
12428 * arm-tdep.c (arm_gdbarch_init): Ditto.
12429 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12430
12431 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
12432
12433 * infrun.c (follow_fork_mode_ask): Remove.
12434 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
12435 (follow_fork): Simplify and remove internal error for
12436 follow_fork_mode_ask.
12437 (_initialize_infrun): Update "set follow-fork-mode" help text.
12438
12439 2004-01-13 Andrew Cagney <cagney@redhat.com>
12440
12441 * configure.in: Update copyright year.
12442 (build_warnings): Add -Wunused-label.
12443 * configure: Re-generate.
12444
12445 2004-01-12 Andrew Cagney <cagney@redhat.com>
12446
12447 * exec.h (exec_ops): Make "extern".
12448
12449 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
12450 the function is void.
12451 (mips_pseudo_register_write): Ditto.
12452
12453 2004-01-12 Andrew Cagney <cagney@redhat.com>
12454
12455 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
12456 call. Never defined.
12457 * sparc-tdep.h (struct frame_info): Add opaque declaration.
12458 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
12459 (struct sparc_gregset, struct regcache): Ditto.
12460 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
12461
12462 2004-01-12 Andrew Cagney <cagney@redhat.com>
12463
12464 * mi/ChangeLog: Delete file. Renamed to ...
12465 * mi/ChangeLog-1999-2003: New file.
12466 * tui/ChangeLog: Delete file. Renamed to ...
12467 * tui/ChangeLog-1998-2003: New file.
12468
12469 2004-01-11 Mark Kettenis <kettenis@gnu.org>
12470
12471 * sparc64nbsd-tdep.c: Include "regset.h".
12472 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
12473 Remove variables.
12474 (fetch_core_registers): Remove function.
12475 (sparc64nbsd_core_fns): Remove variable.
12476 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
12477 functions.
12478 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
12479 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
12480 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
12481
12482 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
12483 sparc_extract_struct_value_address.
12484 (sparc32_gdbarch_init): Set extract_struct_value_address.
12485 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
12486 function.
12487 (sparc64_init_abi): Set extract_struct_value_address. Don't set
12488 return_value_on_stack.
12489
12490 * NEWS: Mention that %cs and %ss have been added to the AMD64
12491 configurations
12492
12493 * frame.c: Update copyright year.
12494 (get_prev_frame): Improve comment.
12495
12496 * sparc64fbsd-tdep.c: Include "regset.h".
12497 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12498 Remove variables.
12499 (fetch_core_registers): Remove function.
12500 (sparc64fbsd_core_fns): Remove variable.
12501 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
12502 functions.
12503 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
12504 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
12505 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
12506
12507 * sparcnbsd-tdep.c: Include "regset.h".
12508 (fetch_core_registers): Remove function.
12509 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
12510 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
12511 functions.
12512 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
12513 TDEP->fpregset.
12514 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
12515
12516 * sparc-tdep.h (struct regset): Provide opaque declaration.
12517 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
12518 fpregset and sizeof_fpregset members.
12519 * sparc-tdep.c (struct regset): Provide opaque declaration.
12520 (sparc_regset_from_core_section): New function.
12521 (sparc32_gdbarch_init): Initialize TDEP->gregset,
12522 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
12523 Set regset_from_core_section when appropriate.
12524
12525 2004-01-10 Mark Kettenis <kettenis@gnu.org>
12526
12527 * x86-64-tdep.c (amd64_non_pod_p): New function.
12528 (amd64_classify_aggregate): Return class memory for non-POD
12529 C++ structure types.
12530
12531 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
12532 argument. Use it to reserve a register if necessary.
12533 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
12534 amd64_push_arguments.
12535
12536 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
12537
12538 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
12539 register numbers in comments.
12540 * x86-64-tdep.h: Update copyright year.
12541 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
12542 Adjust for addition of %cs and %ss.
12543 * amd64fbsd-nat.c: Update copyright year.
12544 (reg_offset): Add register offsets for %cs and %ss.
12545 * amd64fbsd-tdep.c: Update copyright year.
12546 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
12547 (amd64fbsd_sc_reg_offset): Likewise.
12548 * x86-64-linux-nat.c: Update copyright year.
12549 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
12550 and %ss.
12551 * amd64nbsd-nat.c: Update copyright year.
12552 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
12553 * amd64nbsd-tdep.c: Update copyright year.
12554 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
12555 * x86-64-linux-tdep.c: Update copyright year.
12556 (user_to_gdb_regmap): Add mapping for %cs and %ss.
12557 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
12558 * regformats/reg-x86-64.dat: Add %cs and %ss.
12559
12560 * blockframe.c (inside_entry_func): Reformat. Introduce new local
12561 variables to prevent long lines. Update comments to reflect
12562 reality.
12563
12564 2004-01-09 David Carlton <carlton@kealia.com>
12565
12566 Checked in by Elena Zannoni <ezannoni@redhat.com>.
12567 * dwarf2read.c (read_namespace): Pull out name-generating code
12568 into namespace_name. Rename previous_namespace to previous_prefix
12569 and processing_current_namespace to processing_current_prefix..
12570 (namespace_name): New function.
12571 (add_partial_symbol): Substitute uses of pdi->name with
12572 actual_name.
12573 * cp-support.h: Rename processing_current_namespace to
12574 processing_current_prefix.
12575 Update copyright year.
12576 * cp-namespace.c: Rename processing_current_namespace to
12577 processing_current_prefix.
12578 Update copyright year.
12579
12580 2004-01-09 Andrew Cagney <cagney@redhat.com>
12581
12582 * jv-valprint.c, ser-unix.c: Add missing copyright years.
12583
12584 2004-01-09 Mark Kettenis <kettenis@gnu.org>
12585
12586 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
12587 complaining.
12588 (process_one_symbol): Deal with N_PATCH stabs.
12589
12590 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
12591
12592 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
12593 ifdeffed code.
12594 Update copyright year.
12595
12596 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
12597
12598 * config/pa/tm-hppa.h: Update extern declarations for
12599 hppa32_hpux_frame_saved_pc_in_sigtramp,
12600 hppa32_hpux_frame_base_before_sigtramp, and
12601 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
12602
12603 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
12604
12605 * config/pa/tm-hppah.h: Update copyright years.
12606
12607 2004-01-08 Andrew Cagney <cagney@redhat.com>
12608
12609 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
12610 (mips_o32_reg_struct_has_addr): Delete function.
12611 (mips_gdbarch_init): Update.
12612 (mips_extract_struct_value_address): Delete function.
12613
12614 2004-01-08 David Mosberger <davidm@hpl.hp.com>
12615
12616 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
12617 reality.
12618
12619 2004-01-07 Andrew Cagney <cagney@redhat.com>
12620
12621 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
12622 architecture's elf flags (when available).
12623
12624 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
12625 FPU to the start, check the MIPS FPU when looking for an old
12626 architecture.
12627 (set_mipsfpu_single_command): Update the architecture.
12628 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
12629
12630 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
12631 (mips_mask_address_p): Add "tdep" parameter.
12632 (show_mask_address, mips_addr_bits_remove): Update.
12633 (mips_dump_tdep): Update.
12634 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
12635 (MIPS_STACK_ARGSIZE): Delete macro.
12636 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
12637 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
12638 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
12639 (mips_dump_tdep): Update.
12640 (MIPS_SAVED_REGSIZE): Delete macro.
12641 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
12642 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
12643 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
12644 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
12645 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
12646 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
12647 (mips_pop_frame, return_value_location): Update.
12648 (mips_n32n64_return_value, mips_dump_tdep): Update.
12649
12650 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
12651 MIPS ABI.
12652
12653 * mips-tdep.c: Update copyright.
12654 (mips_gdbarch_init): Merge two code blocks handling the register
12655 name and number layout.
12656
12657 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
12658
12659 * tracepoint.c (validate_actionline): Fix segv at EOF
12660
12661 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
12662
12663 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
12664 properly for static fields.
12665
12666 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
12667 Jason Molenda <jmolenda@apple.com>
12668
12669 * disasm.c: Update copyright to include 2004.
12670 (do_mixed_source_and_assembly): For uiout asm list
12671 and tuple cleanups, initialize to null_cleanup instead of
12672 NULL and do so prior to loop. Only reset when we close off
12673 the tuple/list. Move check for whether to close off the
12674 asm tuple/list to after dump_insns call where it will be run
12675 on each loop iteration.
12676
12677 2004-01-05 Andrew Cagney <cagney@redhat.com>
12678
12679 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
12680 should be a switch case and not a label.
12681 * mips-tdep.c (mips32_next_pc): Delete unused labels
12682 "greater_equal_branch" and "less_zero_branch".
12683 * jv-valprint.c (java_print_value_fields): Delete unused label
12684 "flush_it".
12685
12686 * target.c (unpush_target): Only close a target that is in the
12687 target stack.
12688
12689 2004-01-05 Mark Kettenis <kettenis@gnu.org>
12690
12691 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
12692 address from [sp + 64] instead of %o2.
12693
12694 * frame.c (get_prev_frame): Don't try to unwind the PC. This
12695 fixes PR backtrace/1476.
12696
12697 2004-01-05 Andrew Cagney <cagney@redhat.com>
12698
12699 * libunwind-frame.h (struct frame_id): Add opaque declaration,
12700 move to start of file.
12701 * i386-tdep.h (struct regcache): Add opaque declaration.
12702 * config/ia64/nm-linux.h (struct target_ops): Add opaque
12703 declaration.
12704 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
12705 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
12706 * win32-nat.c (fake_create_process): Use ISO C style definition.
12707 * stabsread.c (define_symbol): Delete #ifndef
12708 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
12709 stabs_argument_has_addr call, macro never defined.
12710
12711 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
12712
12713 * op50-rom.c: Delete.
12714 * w89k-rom.c: Delete.
12715 * Makefile.in: Remove references.
12716
12717 2004-01-04 Mark Kettenis <kettenis@gnu.org>
12718
12719 * x86-64-tdep.c: Update copyright year.
12720 (struct amd64_register_info): Rename from x86_64_register_info.
12721 (amd64_register_info): Rename from x86_64_register_info.
12722 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
12723 (amd64_register_name): Rename from x86_64_register_name.
12724 (amd64_register_type): Rename from x86_64_register_type.
12725 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
12726 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
12727 (amd64_dwarf_reg_to_regnum): Rename from
12728 x86_64_dwarf_reg_to_regnum.
12729 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
12730 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
12731 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
12732 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
12733 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
12734 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
12735 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
12736 (amd64_frame_cache): Rename from x86_64_frame_cache.
12737 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
12738 (amd64_frame_prev_register): Rename from
12739 x86_64_frame_prev_register.
12740 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
12741 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
12742 (amd64_sigtramp_frame_cache): Rename from
12743 x86_64_sigtramp_frame_cache.
12744 (amd64_sigtramp_frame_prev_register): Rename from
12745 x86_64_sigtramp_frame_prev_register.
12746 (amd64_sigtramp_frame_unwind): Rename from
12747 x86_64_sigtramp_frame_unwind.
12748 (amd64_sigtramp_frame_sniffer): Rename from
12749 x86_64_sigtramp_frame_sniffer.
12750 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
12751 (amd64_frame_base): Rename from x86_64_frame_base.
12752 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
12753 (amd64_frame_align): Rename from x86_64_frame_align.
12754 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
12755 (amd64_regset_from_core_section): Rename from
12756 x86_64_regset_from_core_section.
12757 (x86_64_init_abi): Update comments.
12758
12759 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
12760
12761 * MAINTAINERS (write after approval): Add myself.
12762
12763 2004-01-04 Mark Kettenis <kettenis@gnu.org>
12764
12765 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
12766 `float' arguments.
12767
12768 2004-01-04 Mark Kettenis <kettenis@gnu.org>
12769
12770 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
12771 such that it mentions a specific version of GCC that exhibits this
12772 bug.
12773
12774 2004-01-03 Mark Kettenis <kettenis@gnu.org>
12775
12776 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
12777 structure that has a single `float' member, store it in %f1 in
12778 addition to %f0.
12779
12780 * sparc-sol2-nat.c: Add missing '\'.
12781
12782 * sparc-tdep.c (sparc32_return_value): New function.
12783 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
12784 Remove functions.
12785 (sparc32_gdbarch_init): Set return_value, don't set
12786 extract_return_value, store_return_value, use_struct_convention
12787 and return_value_on_stack.
12788
12789 * sparc-sol2-nat.c: Add missing ')'.
12790
12791 2004-01-03 J. Brobecker <brobecker@gnat.com>
12792
12793 * infrun.c (handle_step_into_function): New function.
12794 (handle_inferior_event): Extract out some code into the new
12795 function above.
12796
12797 2004-01-03 J. Brobecker <brobecker@gnat.com>
12798
12799 * infrun.c (handle_inferior_event): Move the declaration of
12800 real_stop_pc inside the if blocks where it is used.
12801
12802 2004-01-03 Mark Kettenis <kettenis@gnu.org>
12803
12804 * sparc64-tdep.c (sparc64_16_byte_align_p)
12805 (sparc64_store_floating_fields, sparc64_store_floating_fields):
12806 Use check_typedef to get subtypes of structures and unions.
12807 (sparc64_store_return_value): Fix calculation of the appropriate
12808 offset into VALBUF when storing a structure or union.
12809 (sparc64_return_value): New function.
12810 (sparc64_use_struct_convention): Remove function.
12811 (sparc64_init_abi): Set return_value, don't set
12812 extract_return_value, store_return_value and
12813 use_struct_convention.
12814
12815 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
12816
12817 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
12818 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
12819 gdb/config/alpha/xm-alphaosf.h,
12820 gdb/config/powerpc/tm-ppcle-eabi.h,
12821 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
12822 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
12823 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
12824 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
12825 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
12826 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
12827 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
12828 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
12829 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
12830 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
12831 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
12832 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
12833 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
12834 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
12835 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
12836 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
12837 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
12838 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
12839 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
12840 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
12841 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
12842 Remove lines for .cvsignore files.
12843
12844 2004-01-03 J. Brobecker <brobecker@gnat.com>
12845
12846 * infrun.c: Back out the previous change.
12847
12848 2004-01-03 Mark Kettenis <kettenis@gnu.org>
12849
12850 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
12851 sparc-*-sunos4* to the list of REMOVED configurations.
12852
12853 * configure.tgt: Add back sparc-*-vxworks*.
12854 * remote-vxsparc.c: Remove all includes except for "defs.h",
12855 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
12856 Include "sparc-tdep.h".
12857 (SPARC_R_G1): New define.
12858 (vxsparc_gregset): New variable.
12859 (ext_format_sparc): Remove extern declaration.
12860 (vx_read_register): Rewrite to use sparc32_supply_gregset and
12861 sparc32_supply_fpregset.
12862 (vx_write_register): Rewrite to use sparc32_collect_gregset,
12863 sparc_collect_rwindow and sparc32_collect_fpregset.
12864 * config/sparc/tm-vxworks.h: New file, based on recently removed
12865 tm-vxsparc.h.
12866 * config/sparc/vxworks.mt: New file, based on recently removed
12867 vxworks.mt.
12868
12869 2004-01-03 J. Brobecker <brobecker@gnat.com>
12870
12871 * infrun.c (handle_step_into_function): New function.
12872 (handle_inferior_event): Extract out some code into the new
12873 function above.
12874
12875 2004-01-02 Mark Kettenis <kettenis@gnu.org>
12876
12877 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
12878 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
12879 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
12880 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
12881 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
12882 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
12883 (sparc_nat_h): New variable.
12884 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
12885 (tm-sun4os4.h): Remove dependency.
12886 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
12887 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
12888 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
12889 sparc-tdep.o): Update dependencies.
12890 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
12891 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
12892 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
12893 dependencies.
12894 * configure.host: Remove existing sparc-*-lynxos*,
12895 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
12896 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
12897 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
12898 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
12899 triplets.
12900 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
12901 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
12902 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
12903 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
12904 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
12905 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
12906 sparc64-*-solaris2* and sparc64-*-* triplets.
12907 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
12908 "symtab.h" and "objfiles.h".
12909 (BIAS): Remove define.
12910 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
12911 (X_DISP19): Remove macros.
12912 (sparc_fetch_instruction): Remove function.
12913 (struct gdbarch_tdep): Remove definition.
12914 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
12915 (sparc_breakpoint_from_pc): Remove function.
12916 (struct sparc64_frame_cache): Remove definition.
12917 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
12918 sparc64_unwind_pc): Remove functions.
12919 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
12920 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
12921 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
12922 (sparc64_frame_cache): Change return type to `struct
12923 sparc_frame_cache *'. Simply call sparc_frame_cache.
12924 (sparc64_frame_this_id, sparc64_frame_prev_register,
12925 sparc64_frame_base_address): Use `struct sparc_frame_cache'
12926 instead of `struct sparc64_frame_cache.
12927 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
12928 sparc_analyze_control_transfer, sparc_software_single_step,
12929 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
12930 _initialize_sparc64_tdep): Remove functions.
12931 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
12932 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
12933 macros.
12934 (sparc64_supply_gregset, sparc64_collect_gregset,
12935 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
12936 (sparc64_init_abi): New function.
12937 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
12938 inclusion guard. Include "sparc-tdep.h".
12939 (BIAS): Define.
12940 (r_tstate_offset, r_fprs_offset): New defines.
12941 (enum sparc_regnum): Remove defenition.
12942 (enum sparc64_regnum): Reformat.
12943 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
12944 (sparc64_init_abi, sparc64_supply_gregset,
12945 sparc64_collect_gregset, sparc64_supply_fpregset,
12946 sparc64_collect_fpregset): New prototypes.
12947 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
12948 Add extern declarations.
12949 (sparc64_sol2_init_abi): New prototype.
12950 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12951 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12952 prototypes.
12953 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
12954 "sparnbsd-nat.h".
12955 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
12956 functions.
12957 (_initialize_sparc64fbsd_nat): Remove initialization of
12958 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
12959 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
12960 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
12961 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
12962 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
12963 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
12964 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
12965 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
12966 (sparc64fbsd_r_y_offset): Remove variables.
12967 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12968 Make static and const.
12969 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12970 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12971 functions.
12972 (sparc64fbsd_gregset): New variable.
12973 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
12974 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
12975 and sparc64_supply_fpregset.
12976 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
12977 (sparc64fbsd_sigtramp_frame_this_id)
12978 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
12979 (sparc64fbsd_sigtramp_frame_unwind): New variable.
12980 (sparc64fbsd_sigtramp_frame_sniffer): New function.
12981 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
12982 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
12983 * sparcnbsd-tdep.c: Update copyright year. Include
12984 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
12985 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
12986 "value.h" and "sparcnbsd-tdep.h".
12987 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
12988 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
12989 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
12990 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
12991 defines.
12992 (sparcnbsd_gregset): New variable.
12993 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
12994 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
12995 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
12996 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
12997 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
12998 variables.
12999 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
13000 (sparc32nbsd_sigcontext_frame_this_id)
13001 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
13002 (sparc32nbsd_sigcontext_frame_unwind): New variable.
13003 (sparc32nbsd_sigtramp_frame_sniffer): New function.
13004 (sparcnbsd_get_longjmp_target_32,
13005 sparcnbsd_get_longjmp_target_64): Remove functions.
13006 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
13007 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
13008 sparcnbsd_init_elf): Remove.
13009 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
13010 (sparcnbsd_elf_init_abi): New functions.
13011 (_initialize_sparcnbsd_tdep): New prototype.
13012 (_initialize_sparnbsd_tdep): Update.
13013 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
13014 corelow.o. Add sparc64-nat.o and sparc-nat.o.
13015 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
13016 * config/sparc/linux.mh: Update comment.
13017 (XM_FILE, HOST_IPC): Remove variables.
13018 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
13019 sparc-linux-nat.o.
13020 * config/sparc/linux.mt: Update comment.
13021 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
13022 * config/sparc/nbsd.mt: Reformat.
13023 * config/sparc/nbsd64.mh: Update comment.
13024 (NATDEPFILES): Add sparc-nat.o.
13025 * config/sparc/nbsd64.mt: Update comment.
13026 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
13027 (TM_FILE): Set to tm-nbsd.h.
13028 * config/sparc/nbsdelf.mh: Update comment.
13029 (NATDEPFILES): Add sparc-nat.o.
13030 (XM_FILE): Delete.
13031 * config/sparc/nbsdaout.mh: Update comment.
13032 (NATDEPFILES): Add sparc-nat.o
13033 (XM_FILE): Delete.
13034 * config/sparc/nm-linux.h: Update copyright year. Don't include
13035 "config/nm-svr4.h" and "solib.h". Add protection against multiple
13036 inclusion.
13037 (KERNEL_U_SIZE): Remove define.
13038 (kernel_u_size): Remove prototype.
13039 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
13040 * config/sparc/nm-nbsd.h: Update copyright. Don't include
13041 "regcache.h".
13042 (CHILD_PREPARE_TO_STORE): Remove define.
13043 * config/sparc/nm-nbsdaout.h: Tweak some comments.
13044 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
13045 sparcnbsd-nat.c: Rewrite files.
13046 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
13047 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
13048 sparcnbsd-tdep.h: Remove files.
13049 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
13050 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
13051 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
13052 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
13053 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
13054 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
13055 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
13056 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
13057 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
13058 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
13059 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
13060 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
13061 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
13062 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
13063 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
13064 * config/sparc/linux64.mh, config/sparc/linux64.mt,
13065 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
13066 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
13067 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
13068
13069 2004-01-02 Andrew Cagney <cagney@redhat.com>
13070
13071 From 2003-12-18 Kazuhiro Inaoka:
13072 * configure.host: Add m32r-linux target.
13073
13074 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
13075
13076 * top.c (print_gdb_version): Update year to 2004.
13077
13078 2004-01-02 Mark Mitchell <mark@codesourcery.com>
13079
13080 * MAINTAINERS: Add myself to the write-after-approval category.
13081
13082 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
13083
13084 From Bernardo Innocenti <bernie@develer.com>:
13085 * configure.tgt: Add uClinux target.
13086
13087 2004-01-02 Andrew Cagney <cagney@redhat.com>
13088
13089 * utils.c (do_my_cleanups): Make static, add forward declaration.
13090 * defs.h (do_my_cleanups): Delete declaration.
13091
13092 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
13093
13094 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
13095 bfd/ChangeLog-0203.
13096
13097 2004-01-02 Mark Kettenis <kettenis@gnu.org>
13098
13099 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
13100 in <machine/reg.h>.
13101 * configure, config.in: Regenerate.
13102
13103 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
13104 tui/ChangeLog-1998-2003.
13105 \f
13106 Local Variables:
13107 mode: change-log
13108 left-margin: 8
13109 fill-column: 74
13110 version-control: never
13111 End: