]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
* sparc-nat.c: Include "inf-ptrace.h".
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
06c2338d
MK
12004-10-12 Mark Kettenis <kettenis@gnu.org>
2
1b9445c2
MK
3 * sparc-nat.c: Include "inf-ptrace.h".
4 (sparc_target): New function.
5 * sparc-nat.h: Update copyright year.
6 (sparc_target): New prototype.
7 * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h".
8 (_initialize_sparcnbsd_nat): Construct and add target vector.
9 * sparc64nbsd-nat.c: Include "target.h".
10 (_initialize_sparc64nbsd_nat): Construct and add target vector.
11 * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o):
12 Update dependencies.
13 * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and
14 inftarg.o, add inf-ptrace.o.
15 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
16 inftarg.o, add inf-ptrace.o and bsd-kvm.o.
17 (NAT_FILE): Set to nm-bsd.h.
18 (LOADLIBES): New variable.
19 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
20 infarg.o, add inf-ptrace.o.
21 * config/sparc/nm-nbsdaout.h: Remove file.
22 * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o.
23 * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o.
24 * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
25
06c2338d
MK
26 * defs.h [!FOPEN_RB]: Include "fopen-bin.h" instead of
27 "fopen-same.h". Update comment.
28
3303a276
MK
292004-10-11 Mark Kettenis <kettenis@gnu.org>
30
31 * i386gnu-nat.c: Include "gdb_string.h".
32 (fetch_fpregs): Use i387_supply_fxsave to fill the floating-point
33 registers when the floating-point state isn't initialized.
34 * Makefile.in (i386gnu-nat.o): Update dependencies.
35
04c663e3
DA
362004-10-11 David Anderson <davea@sgi.com>
37
38 * regcache.c (regcache_raw_read): Comment was missing "to".
39 Extraneous ' removed.
40 * gdb_thread_db.h (struct td_thrinfo): ti_lid field
41 comment now describes use.
42
a5f6c8f5
OF
432004-10-11 Orjan Friberg <orjanf@axis.com>
44
45 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start)
46 (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
47 (cris_sigtramp_frame_this_id, cris_sigtramp_frame_prev_register)
48 (cris_sigtramp_frame_sniffer): New functions.
49 (cris_gdbarch_init): Hook in signal trampoline unwinder.
50 (cris_dwarf2_reg_to_regnum, cris_dwarf2_frame_init_reg): New functions.
51 (cris_gdbarch_init): Hook in Dwarf-2 unwinder.
52 (struct gdbarch_tdep, set_cris_dwarf2_cfi, cris_dump_tdep)
53 (cris_gdbarch_init, _initialize_cris_tdep): Add CRIS Dwarf-2 CFI usage
54 command.
55 (cris_version_update): Remove, replace with ...
56 (set_cris_version): New function.
57 (struct gdbarch_tdep, cris_mode, cris_mode_update)
58 (cris_cannot_store_register, cris_dump_tdep, cris_gdbarch_init)
59 (_initialize_cris_tdep): Remove CRIS mode command.
60 (cris_fpless_backtrace, _initialize_cris_tdep): Remove
61 cris-fpless-backtrace command.
62 (cris_scan_prologue): Fix prologue scanning limit.
63 (cris_register_type): Update to reflect actual registers.
64 (cris_register_bytes_ok) Remove.
65 (cris_gdbarch_init): Remove support for CRIS v8 and v9.
66 Remove set_gdbarch_deprecated_register_size,
67 set_gdbarch_deprecated_register_byte, set_gdbarch_register_bytes_ok.
68
77109804
AC
692004-10-10 Andrew Cagney <cagney@gnu.org>
70
71 * ada-lang.c (lim_warning): Add ATTR_FORMAT prototype and FIXME
72 comment.
73
25652d4f
JB
742004-10-10 Joel Brobecker <brobecker@gnat.com>
75
76 * mips-tdep.c (mips16_scan_prologue): Remove redundant code.
77
1e05a7bf
JB
782004-10-10 Joel Brobecker <brobecker@gnat.com>
79
80 * mips-tdep.c (mips16_scan_prologue): Renames
81 mips16_heuristic_proc_desc. Update comment.
82 (mips32_scan_prologue): Renames mips32_heuristic_proc_desc.
83 (heuristic_proc_desc): Update calls to the 2 functions above.
84
c68a4142
JB
852004-10-10 Joel Brobecker <brobecker@gnat.com>
86
87 * mips-tdep.c (mips_insn16_frame_cache): Remove unused variables.
88 Update comments. Also immediately return empty cache when the start
89 address of our function could not be found.
90 (mips_insn32_frame_cache): Likewise.
91
0fce0821
JB
922004-10-10 Joel Brobecker <brobecker@gnat.com>
93
94 * mips-tdep.c (mips16_decode_reg_save): Delete, no longer used.
95 (mips_insn16_frame_cache): Pass frame cache in call to
96 heuristic_proc_desc. Move some code to mips16_heuristic_proc_desc.
97 Remove code that became redundant as a consequence.
98 (mips32_heuristic_proc_desc): No longer compute a fake
99 procedure descriptor. Compute the full frame cache instead.
100 Some minor comment reformatting.
101
b672553e
JB
1022004-10-10 Jim Blandy <jimb@redhat.com>
103
104 * MAINTAINERS (generic symtabs, dwarf readers, elf reader, stabs
105 reader, tracing bytecode stuff): Remove self.
106
9cc52bde
MK
1072004-10-10 Mark Kettenis <kettenis@gnu.org>
108
cc9784b6
MK
109 * sparc64-linux-tdep.c: Update copyright year. Don't include
110 "solib-svr4.h".
111 (sparc64_linux_svr4_fetch_link_map_offsets): Remove function.
112 (sparc64_linux_init_abi): Don't set solib_svr4_link_map_offsets.
113 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
114
ee8aef23
MK
115 * sparc-linux-tdep.c: Update copyright year.
116 (sparc_linux_sigtramp_start): Change first argument from CORE_ADDR
117 to struct frame_info *. Use safe_frame_unwind_memory instead of
118 deprecated_read_memory_nobpt.
119 (sparc32_linux_sigtramp_start, sparc32_linux_rt_sigtramp_start):
120 Change argumen from CORE_ADDR to struct frame_info *. Adjust for
121 changed signature of sparc_linux_sigtramp_start.
122 (sparc32_linux_pc_in_sigtramp): Remove function.
123 (sparc32_linux_sigtramp_p): New function.
124 (sparc32_linux_sigtramp_frame_sniffer): Use
125 sparc32_linux_sigtramp_p instead of sparc32_linux_pc_in_sigtramp.
126
bc73f8cc
MK
127 * sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
128 Remove function.
129 (sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.
130
a2249542
MK
131 * ada-lang.c (lim_warning): Re-implement as a varargs function.
132 (decode_packed_array_type, value_subscript_packed)
133 (ada_evaluate_subexp, to_fixed_range_type): Remove redundant
134 argument in call to lim_warning.
135
9cc52bde
MK
136 * configure.in: Really disable the TUI if an enhanced curses
137 library isn't found.
138 * configure: Regenerate.
139
151fc45b
MK
1402004-10-09 Mark Kettenis <kettenis@gnu.org>
141
142 * config/i386/nbsdaout.mh (NAT_FILE): Set to solib.h.
143 * config/i386/nbsdelf.mh (NAT_FILE): Set to solib.h.
144 * config/i386/nm-nbsdaout.h: Remove file.
145 * config/i386/nm-fbsd.h (link_object, lo_name, lo_library)
146 (lo_unused, lo_major, lo_minor, lo_next, link_map, lm_addr)
147 (lm_name, lm_next, lm_lop, lm_lob, lm_rwt, lm_ld, lm_lpd)
148 (link_dynamic_2, ld_loaded, ld_need, ld_rules, ld_got, ld_plt)
149 (ld_rel, ld_hash, ld_stab, ld_stab_hash, ld_buckets, ld_symbols)
150 (ld_symb_size, ld_text, ld_plt_sz, rtc_symb, rtc_sp, rtc_next)
151 (ld_debug, ldd_version, ldd_in_debugger, ldd_sym_loaded)
152 (ldd_bp_addr, ldd_bp_inst, ldd_cp, link_dynamic, ld_version)
153 (ldd, ld_un, ld_2): Remove defines.
154 * config/i386/nm-obsd.h: Likewise.
155
375c0479
PH
1562004-10-09 Paul Hilfinger <hilfingr@nile.gnat.com>
157
158 * ada-lex.l: Remove useless rule whose right-context clause
159 causes unreferenced static function warning for yyrealloc.
160 (ada_flex_use): Remove the artificial reference to yyrealloc.
161
c8e73a31
AC
1622004-10-08 Andrew Cagney <cagney@gnu.org>
163
164 * target.h (struct target_ops): Rename to_xfer_memory to
165 deprecated_xfer_memory.
166 * target.c: Update.
167 (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
168 * wince.c: Update.
169 * win32-nat.c: Update.
170 * v850ice.c: Update.
171 * uw-thread.c: Update.
172 * thread-db.c: Update.
173 * sol-thread.c: Update.
174 * remote.c: Update.
175 * remote-vx.c: Update.
176 * remote-st.c: Update.
177 * remote-sim.c: Update.
178 * remote-sds.c: Update.
179 * remote-rdp.c: Update.
180 * remote-rdi.c: Update.
181 * remote-mips.c: Update.
182 * remote-m32r-sdi.c: Update.
183 * remote-e7000.c: Update.
184 * procfs.c: Update.
185 * ppc-bdm.c: Update.
186 * nto-procfs.c: Update.
187 * monitor.c: Update.
188 * linux-nat.c: Update.
189 * inftarg.c: Update.
190 * hpux-thread.c: Update.
191 * go32-nat.c: Update.
192 * gnu-nat.c: Update.
193 * exec.c: Update.
194 * corelow.c: Update.
195 * bsd-kvm.c: Update.
196 * aix-thread.c: Update.
197
aa869812
AC
1982004-10-08 Andrew Cagney <cagney@gnu.org>
199
200 * target.c (debug_target): Move to near start of file.
201 (target_stopped_data_address_p): Re-org logic, add casts.
202
8dcef9cf
MK
2032004-10-02 Mark Kettenis <kettenis@gnu.org>
204
205 * solib-sunos.c [HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS] (link_map)
206 (lm_addr, lm_name, lm_next, link_dynamic_2, ld_loaded, rtc_symb)
207 (rtc_sp, rtc_next, ld_debug, ldd_in_debugger, ldd_bp_addr)
208 (ldd_bp_inst, ldd_cp, link_dynamic, ld_version, ldd, ld_un, ld_2):
209 New defines.
210
4aa7a7f5
JJ
2112004-10-08 Jeff Johnston <jjohnstn@redhat.com>
212
213 * target.h (to_stopped_data_address): Change prototype to
214 take a CORE_ADDR pointer and return an int.
215 * target.c (update_current_target): Change to_stopped_data_address
216 to match new prototype.
217 (debug_to_stopped_data_address): Change appropriately.
218 * breakpoint.c (bpstat_stop_status): Change call to
219 target_stopped_data_address to use new prototype.
220 * frv-tdep.c (frv_have_stopped_data_address): New function.
221 (frv_stopped_data_address): Change to new prototype and
222 functionality.
223 * ia64-linux-nat.c (ia64_stopped_data_address): Change to new
224 prototype and functionality.
225 (ia64_stopped_by_watchpoint): New function.
226 * i386-nat.c (i386_stopped_data_address): Change to new
227 prototype and functionality.
228 (i386_stopped_by_watchpoint): New function.
229 * remote.c (remote_stopped_data_address): Change to new prototype
230 and functionality.
231 * remote-m32r-sdi.c (m32r_stopped_data_address): Ditto.
232 * config/frv/tm-frv.h (frv_stopped_data_address): Change prototype.
233 (STOPPED_BY_WATCHPOINT): Change to use frv_have_stopped_data_address.
234 * config/i386/nm-i386.h (STOPPED_BY_WATCHPOINT): Change to use
235 new i386_stopped_by_watchpoint function.
236 (i386_stopped_by_watchpoint): New prototype.
237 (i386_stoppped_data_address): Change to new prototype.
238 * config/ia64/nm-linux.h (STOPPED_BY_WATCHPOINT): Change to use
239 new ia64_stopped_by_watchpoint function.
240 (ia64_stopped_by_watchpoint): New prototype.
241 (ia64_stopped_data_address): Ditto.
242
61ee279c
PH
2432004-10-08 Paul Hilfinger <Hilfinger@gnat.com>
244
245 * ada-typeprint.c (ada_print_type): Use int_string for printing
246 modulus of modular type.
247 * ada-lang.h (ada_modulus): Change return type to unsigned.
248 * ada-lang.c (ada_language_arch_info): Correct type of
249 string_char_type.
250 (ada_modulus): Return unsigned result.
251 (ada_lookup_symbol): Remove user disambiguation and modify comment
252 accordingly.
253
2542004-10-08 Eric Botcazou <ebotcazou@act-europe.fr>
255
256 Committed by Paul Hilfinger.
257 * ada-lang.c (decode_packed_array): On big-endian targets,
258 left-justify the value if it comes with a modular type.
259
2602004-10-08 Joel Brobecker <brobecker@gnat.com>
261
262 Committed by Paul Hilfinger.
263 * ada-lang.c (template_to_static_fixed_type): Fix a small typo.
264 (is_name_suffix): Add support for "___JM" suffixes.
265 (ada_check_typedef): Renames ada_completed_type.
266 Update all users of CHECK_TYPEDEF, check_typedef, and
267 ada_complete_type to call ada_check_typedef.
268 * ada-typeprint.c: Likewise.
269 * ada-valprint.c: Likewise.
270
b6c25a56
CV
2712004-10-08 Corinna Vinschen <vinschen@redhat.com>
272
273 * infcall.c (call_function_by_hand): Use correct VALUE_TYPE macro.
274
83ca6a46
NR
2752004-10-08 Nick Roberts <nickrob@snap.net.nz>
276
277 * MAINTAINERS: Update e-mail address.
278
1fd8cd20
DJ
2792004-10-07 Daniel Jacobowitz <dan@debian.org>
280
281 From Maciej W. Rozycki <macro@mips.com>:
282 * mips-tdep.c (mips32_next_pc): Check the register's contents,
283 not its number for BLEZ/BLEZL and BGTZ/BGTZL.
284
04c663e3 285>>>>>>> 1.6475
cea15572
KI
2862004-10-07 Kei Sakamoto <sakamoto.kei@renesas.com>
287
288 * m32r-tdep.c (decode_prologue): Support functions written
289 in assembler language. Recognize trap instructions as the
290 end of prologue.
291 (m32r_frame_unwind_cache): Ditto.
292 (m32r_skip_prologue): Extend search limit. Quit analyzing
293 prologue if pc's location is not readable.
294
23485554
PH
2952004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>
296
297 * Makefile.in (.l.c): Do conversions of names of alloc and free
298 functions that are done for .y.c files, plus special one
299 for yy_flex_realloc. Also, correct missing-file tests here.
300 * ada-lex.l (malloc, free): Remove macros.
301 (resize_tempbuf): Use "realloc"; rely on sed changes to convert to
302 xrealloc.
303 (ada_flex_use): Dummy definition to remove warnings about unused
304 functions.
305 * ada-exp.y (dummy_string_to_ada_operator): Temporary definition
306 to suppress warning.
307
c0409442
CV
3082004-10-06 Corinna Vinschen <vinschen@redhat.com>
309
310 * sh-tdep.c (sh_return_value_nofpu): New function, implementing
311 RETURN_VALUE.
312 (sh_return_value_fpu): Ditto for CPUs with FPU.
313 (sh_gdbarch_init): Remove STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
314 RETURN_VALUE_ON_STACK and USE_STRUCT_CONVENTION throughout.
315 Install sh_return_value_nofpu resp. sh_return_value_fpu as
316 RETURN_VALUE functions.
317
9bed62d7
CV
3182004-10-06 Corinna Vinschen <vinschen@redhat.com>
319
320 * sh-tdep.c (sh_pseudo_register_read): Add PSEUDO_BANK_REGNUM handling.
321 (sh_pseudo_register_write): Ditto.
322
03131d99
CV
3232004-10-06 Corinna Vinschen <vinschen@redhat.com>
324
325 * sh-tdep.c (IS_MACL_STS): New define.
326 (IS_MOVI20): Ditto.
327 (IS_MACL_LDS): Ditto.
328 (sh_analyze_prologue): Recognize STS.L MACL,@-r15 and MOVI20
329 instructions in prologue.
330 (sh_in_function_epilogue_p): Recognize LDS.L @r15+,MACL and MOVI20
331 instructions in epilogue.
332
da962468
CV
3332004-10-06 Corinna Vinschen <vinschen@redhat.com>
334
335 * sh-tdep.c (SH_NUM_REGS): Define as 67.
336 (sh_sh_register_name): Add eight empty register names.
337 (sh_sh3_register_name): Ditto.
338 (sh_sh3e_register_name): Ditto.
339 (sh_sh2e_register_name): Ditto.
340 (sh_sh2a_register_name): New function, defining SH2A register set.
341 (sh_sh2a_nofpu_register_name): New function, defining SH2A register set
342 in nofpu case.
343 (sh_sh_dsp_register_name): Add eight empty register names.
344 (sh_sh3_dsp_register_name): Ditto.
345 (sh_sh4_register_name): Ditto.
346 (sh_sh4_nofpu_register_name): Ditto.
347 (sh_sh4al_dsp_register_name): Ditto.
348 (sh2a_show_regs): New function.
349 (sh2a_nofpu_show_regs): New function.
350 (sh_sh2a_register_type): New function.
351 (do_bank_register_info): New function.
352 (sh_print_pseudo_register): Call do_bank_register_info.
353 Call sh_print_pseudo_register for valid "bank" register.
354 (sh_sh2a_register_sim_regno): New function.
355 (sh_gdbarch_init): Add bfd_mach_sh2a and bfd_mach_sh2a_nofpu handling.
356 Increment pseudo register count by one for all sh variants with
357 pseudo registers to accomodate pseudo bank register.
358 * sh-tdep.h: Add register numbers for R0_BANK0_REGNUM, MACHB_REGNUM,
359 IVNB_REGNUM, PRB_REGNUM, GBRB_REGNUM, MACLB_REGNUM, BANK_REGNUM,
360 IBCR_REGNUM, IBNR_REGNUM, TBR_REGNUM and PSEUDO_BANK_REGNUM.
361 Increment pseudo register numbers.
362
1326e61b
CV
3632004-10-06 Corinna Vinschen <vinschen@redhat.com>
364
365 * dwarf2read.c (read_subroutine_type): Call make_function_type
366 instead of lookup_function_type.
367
146c42e3
JB
3682004-10-05 Jim Blandy <jimb@redhat.com>
369
370 * linux-nat.c (_initialize_linux_nat): Rename child_ops.
371 (Previous change missed some uses.)
372
1df84f13
AC
3732004-10-05 Andrew Cagney <cagney@gnu.org>
374
375 * target.h (deprecated_child_ops): Rename child_ops.
376 * wince.c: Update copyright. Rename child_ops.
377 * win32-nat.c: Rename child_ops.
378 * target.c: Rename child_ops.
379 * rs6000-nat.c: Rename child_ops.
380 * linux-nat.c: Rename child_ops.
381 * infttrace.c: Rename child_ops.
382 * inftarg.c: Rename child_ops.
383 * infptrace.c: Rename child_ops.
384 * hppah-nat.c: Update copyright. Rename child_ops.
385 * hpux-thread.c: Update copyright. Rename child_ops.
386
21e3b9b9
DJ
3872004-10-05 Daniel Jacobowitz <dan@debian.org>
388
389 * remote.c (remote_xfer_partial): Handle TARGET_OBJECT_MEMORY.
390
de83afe7
AC
3912004-10-05 Andrew Cagney <cagney@gnu.org>
392
393 * version.in: Bump to version 6.2.50_YYYY-MM-DD-cvs.
394
10b3939b
DJ
3952004-10-05 Daniel Jacobowitz <dan@debian.org>
396
397 * dwarf2read.c (REF_HASH_SIZE): Move earlier.
398 (die_ref_table): Remove.
399 (struct dwarf2_cu): Add DIES, DEPENDENCIES, and DIE_REF_TABLE.
400 (struct dwarf2_per_cu_data): Add PSYMTAB. Add a comment describing
401 the usage of this type.
402 (struct dwarf2_per_objfile): Update comment for ALL_COMP_UNITS.
403 (struct dwarf2_pinfo, PST_PRIVATE, DWARF_INFO_OFFSET): Remove.
404 (struct dwarf2_queue_item, dwarf2_queue, dwarf2_queue_tail): New.
405 (dwarf2_create_include_psymtab): Update comment.
406 (find_partial_die): Remove third argument. Remove unreachable call
407 to error ().
408 (dwarf2_find_containing_comp_unit): Update comments. Change one
409 assertion to an error. Remove an unreachable error.
410 (dwarf2_find_comp_unit): Update comments.
411 (type_at_offset): Remove dead code.
412 (make_cleanup_free_die_list, dwarf2_empty_hash_tables): Remove.
413 (store_in_ref_table): Add CU argument.
414 (follow_die_ref): Take DIE, attribute, and CU arguments. Handle
415 inter-compilation-unit references.
416 (load_full_comp_unit, process_full_comp_unit): New functions, based
417 on psymtab_to_symtab_1.
418 (psymtab_to_symtab_1): Use them.
419 (dwarf2_add_dependence): New function.
420 (dwarf2_build_psymtabs_hard): Set the psymtab in per_cu. Always create
421 a per_cu structure, and save it in READ_PSYMTAB_PRIVATE.
422 (partial_die_parent_scope, guess_structure_name): Update for changes
423 to find_partial_die.
424 (dwarf2_psymtab_to_symtab): Initialize dwarf2_per_objfile here.
425 (queue_comp_unit, process_queue, dwarf2_release_queue): New.
426 (read_comp_unit): Don't call dwarf2_empty_hash_tables.
427 (read_die_and_children): Update call to store_in_ref_table.
428 (do_free_die_list_cleanup): Remove.
429 (fixup_partial_die): Update for changes to find_partial_die.
430 (read_full_die): Handle queueing absolute references.
431 (read_attribute_value): Use DW_ADDR for all DW_FORM_ref* forms.
432 (dwarf2_attr, die_specification, die_type)
433 (die_containing_type, dwarf2_extension): Update calls to
434 follow_die_ref.
435 (dump_die): Update DW_FORM_ref* handling.
436 (dwarf2_get_ref_die_offset): Likewise.
437 (free_one_comp_unit): Release the dies list.
438 (dwarf2_mark_helper): New function.
439 (dwarf2_mark): Use it.
440
998bdd68
MK
4412004-10-05 Mark Kettenis <kettenis@jive.nl>
442
443 * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
444 when writing to memory.
445
14588880
KI
4462004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
447
448 * m32r-tdep.c (m32r_use_struct_convention): Delete function.
449 (m32r_extract_struct_value_address): Delete function.
450 (m32r_return_value): New function.
451 (m32r_gdbarch_init): Instead of store_return_value,
452 extract_return_value, deprecated_extract_struct_value_address
453 and deprecated_use_struct_convention, set return_value.
454
dd5e6932
DJ
4552004-10-03 Daniel Jacobowitz <dan@debian.org>
456
457 * dwarf2read.c (read_subrange_type): Add comment for variable
458 sized arrays.
459
7dc1ef8d
PH
4602004-10-03 Paul Hilfinger <hilfingr@nile.gnat.com>
461
462 * Makefile.in (.l.c): Modify rule for compatibility with recent
463 versions of flex, and remove most command-line options.
464 * ada-lex.l: Add %options line in place of -I -i and -s command-line
465 options.
466
1f8173e6
PH
4672004-10-02 Paul N. Hilfinger <Hilfinger@gnat.com>
468
469 Turn on initial Ada support (mainly expression evaluation).
470
471 * Makefile.in (SFILES): Remove ada-tasks.c.
472 (HFILES_NO_SRCDIR): Add ada-lang.h.
473 (COMMON_OBS): Add ada-lang.o, ada-typeprint.o, ada-valprint.o.
474 (YYOBJ): Add ada-exp.o.
475 (rule .l.c): Generalize to not mention ada.
476 * symtab.c: Include ada-lang.h.
477 (symbol_natural_name, symbol_demangled_name)
478 (symbol_search_name): Add Ada case.
479
cb85a953
AC
4802004-10-01 Andrew Cagney <cagney@gnu.org>
481
3f3db248
AC
482 * Makefile.in (COMMON_OBS): Add inf-child.o.
483 * config/vax/obsd.mh (NATDEPFILES): Remove inf-child.o.
484 * config/vax/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
485 * config/vax/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
486 * config/powerpc/nbsd.mh (NATDEPFILES): Remove inf-child.o.
487 * config/m88k/obsd.mh (NATDEPFILES): Remove inf-child.o.
488 * config/i386/obsdaout.mh (NATDEPFILES): Remove inf-child.o.
489 * config/i386/obsd64.mh (NATDEPFILES): Remove inf-child.o.
490 * config/i386/obsd.mh (NATDEPFILES): Remove inf-child.o.
491 * config/i386/nbsdelf.mh (NATDEPFILES): Remove inf-child.o.
492 * config/i386/nbsdaout.mh (NATDEPFILES): Remove inf-child.o.
493 * config/i386/nbsd64.mh (NATDEPFILES): Remove inf-child.o.
494 * config/i386/fbsd64.mh (NATDEPFILES): Remove inf-child.o.
495 * config/i386/fbsd.mh (NATDEPFILES): Remove inf-child.o.
496
cb85a953
AC
497 * target.c (xfer_using_stratum): Change return type to LONGEST.
498 On each iteration offset, readbuf and writebuf.
499 * inf-ptrace.c (inf_ptrace_xfer_partial): Simplify computation of
500 partial_length, and read/modify/write predicate, update comments.
501 Pass buffer.word to ptrace write.
502
963a6417
PH
5032004-10-01 Paul N. Hilfinger <Hilfinger@gnat.com>
504
505 * symfile.c (init_filename_language_table): Add extensions for
506 Ada.
507 * defs.h (enum language): Add language_ada.
508 * gdbtypes.h (TYPE_FLAG_FIXED_INSTANCE): Define.
509 * ada-lang.c: Strip code that is conditionalized out by GNAT_GDB.
510 (add_symbols_from_enclosing_procs): Make a no-op for now.
511 (ada_unqualified_name,add_angle_brackets,function_name_from_pc)
512 (extended_canonical_line_spec, find_sal_from_funcs_and_line)
513 (find_line_in_linetable, find_next_line_in_linetable)
514 (read_all_symtabs, is_plausible_func_for_line)
515 (adjust_pc_past_prologue, error_breakpoint_runtime_sym_not_found)
516 (is_runtime_sym_defined, check_size): Remove declaration.
517 (function_name_from_pc, ada_translate_error_message)
518 (ada_lookup_minimal_symbol): Remove definition.
519 (ada_add_block_symbols): Remove useless label.
520 * ada-lang.h (ada_maybe_exception_partial_symbol): Remove
521 useless declaration.
522 (ada_is_exception_sym): Likewise.
523
9b32d526
KI
5242004-09-30 Kei Sakamoto <sakamoto.kei@renesas.com>
525
526 Add m32r-linux support.
527 * configure.tgt: Add m32r*-*-linux*.
528 * Makefile.in (ALLDEPFILES): Add m32r-tdep.c, m32r-linux-nat.c
529 and m32r-linux-tdep.c.
530 (m32r-linux-nat.o, m32r-linux-tdep.o): New dependencies.
531 * m32r-tdep.c: Move some definitions to m32r-tdep.h.
532 * config/djgpp/fnchange.lst: Add m32r-linux-nat.c and
533 m32r-linux-tdep.c.
534 * m32r-tdep.h, m32r-linux-nat.c, m32r-linux-tdep.c,
535 config/m32r/linux.mh, config/m32r/linux.mt,
536 config/m32r/nm-linux.h: New files.
537
2de118d3
JB
5382004-09-30 Joel Brobecker <brobecker@gnat.com>
539
540 * mips-tdep.c (mips32_decode_reg_save): Remove, unused.
541 (mips32_fetch_instruction): Remove, unused.
542
a9fe69d1
JB
5432004-09-30 Joel Brobecker <brobecker@gnat.com>
544
545 * mips-tdep.c (mips_insn16_frame_cache): Remove dead code or
546 conditions that will always be true.
547
bc8ffc12
MK
5482004-09-30 Mark Kettenis <kettenis@gnu.org>
549
ba0cd111
MK
550 * vaxbsd-nat.c: Include "target,h" and "inf-ptrace.h".
551 (vaxbsd_fetch_inferior_registers): Rename from
552 fetch_inferior_registers. Make static.
553 (vaxbsd_store_inferior_registers): Rename from
554 store_inferior_registers. Make static.
555 (_initialize_vaxbsd_nat): Construct and add target vector.
556 * config/vax/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and
557 inftarg.o. Add inf-child.o and inf-ptrace.o.
558 * config/vax/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and
559 inftarg.o. Add inf-child.o and inf-ptrace.o.
560 (NAT_FILE): Remove.
561 * config/vax/obsd.mh (NATDEPFILES): Remove infptrace.o and
562 inftarg.o. Add inf-child.o and inf-ptrace.o.
563 (NAT_FILE): Remove.
564 * Makefile.in (vaxbsd-nat.o): Update dependencies.
565
bc8ffc12
MK
566 * m88kbsd-nat.c: Include "target.h" and "inf-ptrace.h".
567 (m88kbsd_fetch_inferior_registers): Rename from
568 fetch_inferior_registers. Make static.
569 (m88kbsd_store_inferior_registers): Rename from
570 store_inferior_registers. Make static.
571 (_initialize_m88kbsd_nat): New prototype and function.
572 * config/m88k/obsd.mh (NATDEPFILES): Remove infptrace.o and
573 inftarg.o. Add inf-child.o and inf-ptrace.o.
574 (NAT_FILE): Remove.
575 * Makefile.in (m88kbsd-nat.o): Update dependencies.
576
27394598
AC
5772004-09-30 Andrew Cagney <cagney@gnu.org>
578
579 * target.c (target_xfer_partial): New function.
580 (target_read_memory_partial, target_write_memory_partial)
581 (default_xfer_partial, target_read_partial, target_write_partial)
582 (xfer_using_stratum): Use.
583 (debug_to_xfer_partial): Delete function.
584 (setup_target_debug): Do not override to_xfer_partial.
585
74a4fe32
MK
5862004-09-30 Mark Kettenis <kettenis@chello.nl>
587
588 * fork-child.c: Update copyright year. Fix coding style.
589
982526a1
MK
5902004-09-29 Mark Kettenis <kettenis@gnu.org>
591
592 * defs.h (msavestring, mstrsave): Remove prototypes.
593 * utils.c (msavestring, mstrsave): Remove functions.
594 * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave.
595 * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead
596 of mstrsave.
597 * source.c (find_and_open_source): Use xstrdup instead of
598 mstrsave.
599
b8eb5af0
AC
6002004-09-30 Andrew Cagney <cagney@gnu.org>
601
0779438d
AC
602 * inf-ptrace.c (inf_ptrace_target): Do not set to_xfer_memory.
603 (inf_ptrace_xfer_memory): Delete.
604 * target.c (target_xfer_partial_p, xfer_using_stratum): New.
605 (target_read_memory, target_write_memory): Use xfer_using_stratum
606 when target_xfer_partial_p.
607 (debug_target): Move to start of file.
608 (target_read_memory_partial, target_write_memory_partial): Use
609 to_xfer_partial when target_xfer_partial_p.
610
f929a579
AC
611 * inf-ptrace.c (inf_ptrace_xfer_partial): Replace call to
612 inf_ptrace_xfer_memory with equivalent code.
613 * inftarg.c (child_xfer_partial): When performing a write, pass
614 writebuf to child_xfer_memory.
615
b8eb5af0
AC
616 * target.c (target_read_string): Use target_read_memory instead of
617 target_xfer_memory.
618
ee21b650
AC
6192004-09-29 Andrew Cagney <cagney@gnu.org>
620
d3e05d0d
AC
621 * infptrace.c (kill_inferior): Fix typo, in previous inline. Pass
622 the address of status.
623
ee21b650
AC
624 * infptrace.c (ptrace_wait): Mention problem with HPUX.
625 (kill_inferior): Inline ptrace_wait call.
626 * linux-nat.c (kill_inferior): Inline ptrace_wait call.
627 * inftarg.c (child_wait): Inline ptrace_wait call.
628
a182eed6
AC
629 * target.h (struct target_ops): Delete field to_post_wait.
630 (target_post_wait): Delete macro.
631 (child_post_wait): Delete declaration.
632 * target.c (update_current_target, update_current_target)
633 (debug_to_post_wait, setup_target_debug): Delete functions and
634 references.
635 * infttrace.c (ptrace_wait): Delete call to target_post_wait.
636 * inftarg.c (child_post_wait): Delete.
637 (init_child_ops): Do not set to_post_wait.
638 * infptrace.c (ptrace_wait): Delete call to target_post_wait.
639 * inf-ptrace.c (inf_ptrace_wait): Delete call to target_post_wait.
640 * inf-child.c (inf_child_post_wait): Delete.
641 (inf_child_target): Do not set to_post_wait.
642 * inf-ptrace.c (inf_ptrace_post_wait): Delete.
643 (inf_ptrace_target): Do not set to_post_wait.
644
ba0c540b
AC
645 * wince.c (child_ops): Delete.
646 * win32-nat.c (child_ops): Delete.
647
81977402
AC
648 * inftarg.c (inftarg_set_find_memory_regions)
649 (inftarg_set_make_corefile_notes): Delete functions.
650 (_initialize_linux_nat): Inline calls.
651
5ac10fd1
AC
652 * target.h (child_ops): Declare.
653 * inftarg.c (child_ops): Move from here ...
654 * target.c (child_ops): ... to here.
655 * wince.c (child_ops): Delete extern declaration.
656 * win32-nat.c (child_ops): Delete extern declaration.
657 * linux-nat.c (child_ops): Delete extern declaration.
658 * hpux-thread.c (child_ops): Delete extern declaration.
659
663408c2 6602004-09-28 Mark Kettenis <kettenis@gnu.org>
890c8f4d
MK
661
662 * configure.tgt: Set default OS/ABI for OpenBSD ELF targets.
663
0dad8a66
MK
6642004-09-28 Mark Kettenis <kettenis@gnu.org>
665
666 * configure.in: Only set host_makefile_frag when building a native
667 debugger.
668 * configure: Regenerate.
e8d74ed3
MK
669
670 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Register OS/ABI
671 for OpenBSD ELF.
672
dba24537
AC
6732004-09-28 Andrew Cagney <cagney@gnu.org>
674
e979516b
AC
675 Problem identified by Paul Hilfinger.
676 * Makefile.in (ada_lex_c): Define.
677 (ada-lex.o): Delete rule.
678
dba24537
AC
679 * linux-proc.c: Delete file.
680 * Makefile.in: Update.
681 * config/sparc/linux64.mh (NATDEPFILES):
682 * config/sparc/linux.mh (NATDEPFILES): Update.
683 * config/s390/s390.mh (NATDEPFILES): Update.
684 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update.
685 * config/powerpc/linux.mh (NATDEPFILES): Update.
686 * config/pa/linux.mh (NATDEPFILES): Update.
687 * config/mips/linux.mh (NATDEPFILES): Update.
688 * config/m68k/linux.mh (NATDEPFILES): Update.
689 * config/ia64/linux.mh (NATDEPFILES): Update.
690 * config/i386/linux64.mh (NATDEPFILES): Update.
691 * config/i386/linux.mh (NATDEPFILES): Update.
692 * config/arm/linux.mh (NATDEPFILES): Update.
693 * config/alpha/alpha-linux.mh (NATDEPFILES): Update.
694 * linux-nat.c: Update copyright. Include <sys/param.h>,
695 <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>,
696 "gdbthread.h", "gdb_stat.h", <fcntl.h>.
697 (O_LARGEFILE): Possibly define.
698 (_initialize_linux_nat, linux_proc_pending_signals)
699 (add_line_to_sigset, linux_proc_xfer_memory)
700 (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes)
701 (linux_nat_do_registers, linux_nat_corefile_thread_callback)
702 (struct linux_corefile_thread_data)
703 (linux_nat_do_thread_registers, linux_nat_find_memory_regions)
704 (child_pid_to_exec_file): Insert code previously in linux-proc.c.
705
d6b0e80f
AC
7062004-09-16 Andrew Cagney <cagney@gnu.org>
707
708 * lin-lwp.c: Delete file.
709 * linux-nat.c: Include "gdb_assert.h", "gdb_string.h", <unistd.h>,
710 <sys/syscall.h>, "gdbthread.h", "gdbcmd.h", "regcache.h".
711 (status_to_str, init_lwp_list, add_lwp, delete_lwp)
712 (find_lwp_pid, iterate_over_lwps, lin_lwp_attach_lwp)
713 (linux_nat_attach, detach_callback, linux_nat_detach)
714 (resume_callback, resume_clear_callback, linux_nat_resume)
715 (kill_lwp, linux_nat_handle_extended, wait_lwp, stop_callback)
716 (stop_wait_callback, linux_nat_has_pending, flush_callback)
717 (status_callback, running_callback, count_events_callback)
718 (select_singlestep_lwp_callback, select_event_lwp_callback)
719 (cancel_breakpoints_callback, select_event_lwp, resumed_callback)
720 (child_wait, stop_and_resume_callback, linux_nat_wait)
721 (kill_callback, kill_wait_callback, linux_nat_kill)
722 (linux_nat_create_inferior, linux_nat_mourn_inferior)
723 (linux_nat_xfer_memory, linux_nat_thread_alive)
724 (linux_nat_pid_to_str, init_linux_nat_ops, sigchld_handler)
725 (_initialize_linux_nat): New functions.
726 * Makefile.in: Update all dependencies.
727 * config/sparc/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
728 * config/sparc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
729 * config/s390/s390.mh (NATDEPFILES): Remove lin-lwp.o.
730 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Remove lin-lwp.o.
731 * config/powerpc/linux.mh (NATDEPFILES): Remove lin-lwp.o.
732 * config/pa/linux.mh (NATDEPFILES): Remove lin-lwp.o.
733 * config/mips/linux.mh (NATDEPFILES): Remove lin-lwp.o.
734 * config/m68k/linux.mh (NATDEPFILES): Remove lin-lwp.o.
735 * config/ia64/linux.mh (NATDEPFILES): Remove lin-lwp.o.
736 * config/i386/linux64.mh (NATDEPFILES): Remove lin-lwp.o.
737 * config/i386/linux.mh (NATDEPFILES): Remove lin-lwp.o.
738 * config/arm/linux.mh (NATDEPFILES): Remove lin-lwp.o.
739 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove lin-lwp.o.
740
5a174d79
MK
7412004-09-27 Mark Kettenis <kettenis@gnu.org>
742
2f604c28
MK
743 * config/i386/fbsd64.mh, config/i386/nbsd64.mh,
744 config/i386/obsd64.mh (NAT_FILE): Remove variable.
745
5a174d79
MK
746 * configure.in: Don't comment out NATDEPFILES in the generated
747 Makefile if NAT_FILE is unset.
748 * configure: Regenerate.
749
b2ed1746
AC
7502004-09-27 Andrew Cagney <cagney@gnu.org>
751
44cbf7b5
AC
752 * infrun.c (check_for_old_step_resume_breakpoint): Delete.
753 (insert_step_resume_breakpoint): Delete.
754 (insert_step_resume_breakpoint_at_frame): New function.
755 (insert_step_resume_breakpoint_at_sal): New function.
756 (handle_inferior_event, step_into_function)
757 (insert_step_resume_breakpoint): Simplify by using same.
758
b2ed1746
AC
759 * gdb_indent.sh (types): Add caddr_t to list of predefined types.
760
3691b3be
MK
7612004-09-26 Mark Kettenis <kettenis@gnu.org>
762
36f391e8
MK
763 * fbsd-proc.c: Remove file.
764 * Makefile.in (fbsd-proc.o): Remove dependency.
765
771e236c
MK
766 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Group target related
767 code together.
768
3691b3be
MK
769 * config/i386/nm-fbsd64.h: Remove file.
770 * config/i386/fbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
771
6a5c78a3
MK
7722004-09-26 Mark Kettenis <kettenis@gnu.org>
773
774 * amd64-nat.h: Update copyright year.
775 (amd64bsd_target): New prototype.
776 * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h".
777 (amd64bsd_target): New function.
778 (amd64bsd_fetch_inferior_registers): Rename from
779 fetch_inferior_registers. Make static.
780 (amd64bsd_store_inferior_registers): Rename from
781 store_inferior_registers. Make static.
782 * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h".
783 (_initialize_amd64fbsd_nat): Construct and add target vector.
784 * amd64nbsd-nat.o: Include "target.h".
785 (_initialize_amd64nbsd_nat): Construct and add target vector.
786 * amd64obsd-nat.c: Include "target.h".
787 (_initialize_amd64obsd_nat): Construct and add target vector.
788 * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define.
789 * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o,
790 inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and
791 fbsd-nat.o.
792 * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES):
793 Remove infptrace.o and inftarg.o. Add inf-child.o and
794 inf-ptrace.o.
795 * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o)
796 (amd64obsd-nat.o): Update dependencies.
797
27acbe61
MK
7982004-09-25 Mark Kettenis <kettenis@gnu.org>
799
509a5e7d
MK
800 * config/i386/fbsd.mh (NATDEPFILES): Remove infptrace.o.
801 * config/i386/nbsdaout.mh (NATDEPFILES): Remove infptrace.o.
802 * config/i386/nbsdelf.mh (NATDEPFILES): Remove infptrace.o.
803 * config/i386/obsd.mh (NATDEPFILES): Remove infptrace.o.
804 * config/i386/obsdaout.mh (NATDEPFILES): Remove infptrace.o.
805
6e1e94ea
MK
806 * inf-ptrace.c (inf_ptrace_attach): Remove redundant parenthesis.
807 Inline attach call.
808 (inf_ptrace_detach): Inline detach call.
809
8b9cf735
MK
810 * configure.in: Check for waddstr instead of mvwaddstr when
811 searching for curses library. Check for wborder.
812 * configure, config.in: Regenerate.
813 * tui/tui-wingeneral.c (box_win): Use box if wborder isn't
814 available.
815
27acbe61
MK
816 * inf-ptrace.c (inf_ptrace_xfer_memory): Fix gdb_indent.sh wart.
817
b96ec7ac
AC
8182004-09-24 Robert Picco <Robert.Picco@hp.com>
819
820 Committed by Andrew Cagney.
821 * remote.c (set_remote_protocol_p_packet_cmd, remote_protocol_p)
822 (show_remote_protocol_p_packet_cmd): New. Implement 'p' packet.
823 configuration.
824 (fetch_register_using_p): Implement 'p' packet. Based on code by
825 Fernando Nasser.
826 (remote_fetch_registers): Call fetch_register_using_p.
827 (init_all_packet_configs, show_remote_cmd)
828 (_initialize_remote): Add p-packet.
829
62ece330
MK
8302004-09-24 Mark Kettenis <kettenis@gnu.org>
831
832 * inf-ptrace.c (inf_ptrace_kill_inferior): Call ptrace directly
833 instead of call_ptrace. Call wait directly instead of
834 ptrace_wait.
835 (inf_ptrace_me): Call ptrace directly instead of call_ptrace.
836 (inf_ptrace_wait): Inline ptrace_wait call.
837
00937274
PH
8382004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
839
840 * Makefile.in (.y.c): Revert previous change. ../ylwrap was
841 rolled back instead.
842
3f2c7a45
PH
8432004-09-24 Paul Hilfinger <hilfingr@nile.gnat.com>
844
845 * Makefile.in (.y.c): Modify $(YLWRAP) invocation to use
846 the new argument order.
847
b6fcb393
CV
8482004-09-23 Corinna Vinschen <vinschen@redhat.com>
849
850 * MAINTAINERS: Remove "broken" from XStormy16 entry.
851 * xstormy16-tdep.c: Convert XStormy16 target to latest GDB methods.
852 (struct gdbarch_tdep): Remove.
853 (struct xstormy16_frame_cache): New frame cache structure.
854 (xstormy16_register_byte, xstormy16_register_raw_size)
855 (xstormy16_reg_virtual_type, xstormy16_register_type)
856 (xstormy16_push_arguments, xstormy16_push_return_address)
857 (xstormy16_pop_frame, xstormy16_store_struct_return)
858 (xstormy16_store_return_value, xstormy16_extract_struct_value_address)
859 (xstormy16_frame_saved_register, xstormy16_get_saved_register)
860 (xstormy16_scan_prologue, xstormy16_frame_init_saved_regs)
861 (xstormy16_frame_saved_pc, xstormy16_init_extra_frame_info)
862 (xstormy16_frame_chain, xstormy16_frame_chain_valid,
863 (xstormy16_saved_pc_after_call, xstormy16_save_dummy_frame_to): Remove.
864 (xstormy16_use_struct_convention): Drop gcc_p parameter.
865 (xstormy16_extract_return_value, xstormy16_store_return_value):
866 Regcachify. Drop useless struct convention handling.
867 (xstormy16_register_type, xstormy16_return_value)
868 (xstormy16_push_dummy_call, xstormy16_analyze_prologue)
869 (xstormy16_alloc_frame_cache, xstormy16_frame_cache)
870 (xstormy16_frame_prev_register, xstormy16_frame_this_id)
871 (xstormy16_frame_base_address, xstormy16_frame_sniffer)
872 (xstormy16_unwind_sp, xstormy16_unwind_pc)
873 (xstormy16_unwind_dummy_id) : New functions.
874 (xstormy16_skip_prologue): Call xstormy16_analyze_prologue instead
875 of xstormy16_scan_prologue.
876 (xstormy16_frame_unwind): New frame_unwind structure.
877 (xstormy16_frame_base): New frame_base structure.
878 (xstormy16_gdbarch_init): Accomodate all of the above changes.
879 Reshuffle for better readability. Also add dwarf2_frame_sniffer.
880
1285b746
MK
8812004-09-22 Mark Kettenis <kettenis@gnu.org>
882
883 * language.c (language_gdbarch_post_init): Fix off-by one error.
884
1c379e20
DJ
8852004-09-21 Daniel Jacobowitz <dan@debian.org>
886
887 * dwarf2read.c (struct dwarf2_per_cu_data): New field type_hash.
888 (struct dwarf2_offset_and_type): New.
889 (set_die_type, reset_die_and_siblings_types, get_die_type)
890 (offset_and_type_hash, offset_and_type_eq): New functions.
891 (read_structure_type, read_enumeration_type, read_array_type)
892 (read_namespace, read_tag_pointer_type, read_tag_ptr_to_member_type)
893 (read_tag_reference_type, read_tag_const_type)
894 (read_tag_volatile_type, read_tag_string_type, read_subroutine_type)
895 (read_typedef, read_base_type, read_subrange_type): Use
896 set_die_type.
897
ae038cb0
DJ
8982004-09-20 Daniel Jacobowitz <dan@debian.org>
899
900 * Makefile.in (dwarf2read.o): Update dependencies.
901 * dwarf2read.c: Include "command.h" and "gdbcmd.h".
902 (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units,
903 and read_in_chain.
904 (struct dwarf2_cu): Add read_in_chain, per_cu, last_used,
905 mark, and has_form_ref_addr.
906 (struct dwarf2_per_cu_data): New.
907 (dwarf2_max_cache_age): New.
908 (dwarf2_build_psymtabs_hard): Free cached compilation units
909 after loading. Create and manage the list of compilation units.
910 Remove unnecessary NULL initialization. Fix indentation.
911 (psymtab_to_symtab_1): Initialize all of CU.
912 (dwarf2_read_abbrevs): Set has_form_ref_addr.
913 (find_partial_die): Use dwarf2_find_containing_comp_unit
914 and load_comp_unit.
915 (free_stack_comp_unit): Update comments. Clear the per-cu
916 pointer. Handle aging.
917 (dwarf2_find_containing_comp_unit, free_cached_comp_units)
918 (age_cached_comp_units, free_one_cached_comp_unit)
919 (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units)
920 (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit)
921 (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd)
922 (show_dwarf2_cmd): New.
923 (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age"
924 and "maint show dwarf2 max-cache-age".
925 * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New
926 externs.
927 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make
928 global.
929
987504bb
JJ
9302004-09-20 Jeff Johnston <jjohnstn@redhat.com>
931
932 * dwarf2read.c (typename_concat): Change prototype to accept obstack
933 and dwarf2_cu struct pointer as arguments. Change function to use
934 obstack if provided and use dwarf2_cu to determine language-specific
935 separator.
936 (partial_die_parent_scope): Change comment to include java. Use
937 new version of typename_concat instead of obconcat.
938 (partial_die_full_name): Use typename_concat.
939 (read_namespace): Ditto.
940 (read_enumeration_type): Use typename_concat instead of obconcat.
941 (new_symbol): Ditto.
942 (add_partial_symbol): Enhance tests for C++ to also test for Java.
943 (guess_structure_name): Ditto.
944 (read_subroutine_type): Ditto.
945 (read_structure_type): Ditto.
946 (is_vtable_name): Add Java support.
947 (determine_class_name): Switch to new typename_concat call.
948 (determine_prefix): Switch to new typename_concat call.
949 * jv-exp.y (FuncStart): New pattern.
950 (MethodInvocation): Add support for simple function calls. Change
951 warning message for other forms of inferior call currently not
952 supported.
953 * valarith.c (value_subscript): Treat an array with upper-bound
954 of -1 as unknown size.
955
d9c8471e
DJ
9562004-09-20 Daniel Jacobowitz <dan@debian.org>
957
958 * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
959 (lookup_partial_symtab): Use symtab_to_fullname.
960
d73f140a
JB
9612004-09-19 Jim Blandy <jimb@redhat.com>
962
963 * minsyms.c (lookup_minimal_symbol): Doc fix.
964
adbef1f0
AC
9652004-09-20 Andrew Cagney <cagney@gnu.org>
966
967 * config/nm-lynx.h (DEPRECATED_CHILD_RESUME): Deprecate
968 CHILD_RESUME.
969 * config/i386/nm-linux.h (DEPRECATED_CHILD_RESUME): Ditto.
970 * config/nm-linux.h (DEPRECATED_KILL_INFERIOR): Deprecate
971 KILL_INFERIOR.
972 * infptrace.c: Update.
973
d092d1a2
DJ
9742004-09-19 Daniel Jacobowitz <dan@debian.org>
975
976 * symtab.c (output_source_filename): Mark first argument as const.
977 (sources_info): Use symtab_to_fullname and psymtab_to_fullname
978 for "info sources" output.
979
86d9e1d7
MK
9802004-09-20 Mark Kettenis <kettenis@gnu.org>
981
982 * config/i386/nm-fbsd.h, config/i386/nm-obsd.h: Don't include
983 <machine/vmparam.h>.
984 (KERNEL_U_ADDR, REGISTER_U_ADDR): Remove defines.
985 (register_u_addr): Remove prototype.
986
9a6c8ef4
MK
9872004-09-19 Mark Kettenis <kettenis@gnu.org>
988
9692934b
MK
989 * i386bsd-nat.c: Include "i386bsd-nat.h" and "inf-ptrace.h".
990 (i386bsd_fetch_inferior_registers): Rename from
991 fetch_inferior_registers. Make static.
992 (i386bsd_store_inferior_registers): Rename from
993 store_inferior_registers. Make static.
994 (i386bsd_target): New function.
995 * i386bsd-nat.h: New file.
996 * i386fbsd-nat.c: Include "target.h", "fbsd-nat.h" and
997 "i386bsd-nat.h".
998 (i386fbsd_resume): Rename from child_resume. Make static.
999 (_initialize_i386fbsd_nat): Construct and add target vector.
1000 * i386nbsd-nat.c: Include "target.h" and "i386bsd-nat.h".
1001 (_initialize_i386nbsd_nat): Construct and add target vector.
1002 * config/i386/nm-fbsd.h: (CHILD_RESUME, CHILD_PID_TO_EXEC_FILE):
1003 Remove defines.
1004 * config/i386/fbsd.mh (NATDEPFILES): Add inf-child.o, inf-ptrace.o
1005 and fbsd-nat.o. Remove inftarg.o and fbsd-proc.o.
1006 * config/i386/nbsdaout.mh (NATDEPFILES): Add inf-child.o,
1007 inf-ptrace.o, i386bsd-nat.o and bsd-kvm.o. Remove inftarg.o.
1008 (LOADLIBES): New variable.
1009 * config/i386/nbsdelf.mh (NATDEPFILES): Add inf-child.o and
1010 inf-ptrace.o. Remove inftarg.o.
1011 * config/i386/obsd.mh (NATDEPFILES): Add inf-child.o and
1012 inf-ptrace.o. Remove inftarg.o.
1013 * config/i386/obsdaout.mh (NATDEPFILES): Add inf-child.o,
1014 inf-ptrace.o, i386nbsd-nat.o and bsd-kvm.o. Remove inftarg.o.
1015 (LOADLIBES): New variable.
1016 * Makefile.in (i386bsd_nat_h): New variable.
1017 (i386bsd-nat.o, i386fbsd-nat.o, i386nbsd-nat.o): Update
1018 dependencies.
1019
3510d1f2
MK
1020 * sparc64nbsd-tdep.c: Include "objfiles.h".
1021 (sparc64nbsd_init_abi): Set in_solib_call_trampoline and
1022 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
1023 svr4_lp64_fetch_link_map_offsets.
1024 * sparc64obsd-tdep.c: Include "objfiles.h". Don't include
1025 "nbsd-tdep.h".
1026 (sparc64obsd_init_abi): Set in_solib_call_trampoline and
1027 skip_trampoline_code. Set solib_svr4_fetch_link_map_offsets to
1028 svr4_lp64_fetch_link_map_offsets.
1029 * Makefile.in (sparc64nbsd-tdep.o, sparc64obsd-tdep.o): Update
1030 dependencies.
1031
578c1c03
MK
1032 * fbsd-nat.c: New files with cleaned up contents of fbsd-proc.c.
1033 * fbsd-nat.h: New file.
1034 * Makefile.in (ALLDEPFILES): Add fbsd-nat.c.
1035 (fbsd_nat_h): New variable.
1036 (fbsd-nat.o): New dependency.
1037
7a7b73b7
MK
1038 * config/sparc/nbsd64.mt, config/sparc/obsd.mt,
1039 config/sparc/obsd64.mt (DEPRECATED_TM_FILE): Set to solib.h.
1040
9a6c8ef4
MK
1041 * inf-child.c (inf_child_post_wait): Remove stray whitespace in
1042 comment.
1043
72d5681a
PH
10442004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
1045
1046 * ada-exp.y (type_int): New function to add layer of abstraction
1047 around references to expression types.
1048 (type_long): Ditto.
1049 (type_long_long): Ditto.
1050 (type_float): Ditto.
1051 (type_double): Ditto.
1052 (type_long_double): Ditto.
1053 (type_char): Ditto.
1054 (type_system_address): Ditto.
1055 (simple_exp): Use type_* functions in place of builtin_*
1056 variables.
1057 (exp): Ditto.
1058 (write_var_from_name): Ditto.
1059 (write_object_renaming): Ditto.
1060 * ada-lang.c (ada_create_fundamental_type): Remove redundant
1061 declaration.
1062 (build_ada_types): Remove, replacing with...
1063 (ada_language_arch_info): New function to initialize primitive
1064 type vector in language_arch_info.
1065 (ada_array_length): Remove use of builtin_type_ada_int.
1066 (value_pos_atr): Ditto.
1067 (ada_evaluate_subexp): Ditto.
1068 (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,
1069 builtin_type_ada_long_long, builtin_type_ada_char,
1070 builtin_type_ada_float, builtin_type_ada_double,
1071 builtin_type_ada_long_double, builtin_type_ada_natural,
1072 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
1073 (ada_builtin_types): Remove.
1074 (ada_language_defn): Remove entries for la_builtin_type_vector and
1075 string_char_type and use ada_language_arch_info.
1076 (_initialize_ada_language): Do type-vector initialization along
1077 the lines of c-lang.c.
1078 (ada_create_fundamental_type): Break up line.
1079 (ada_dump_symtab): Remove unused function.
1080 (enum ada_primitive_types): Define.
1081 * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short,
1082 builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char,
1083 builtin_type_ada_float, builtin_type_ada_double,
1084 builtin_type_ada_long_double, builtin_type_ada_natural,
1085 builtin_type_ada_positive, builtin_type_ada_system_address): Remove.
1086 * ada-lex.l: Use type_* functions in place of builtin_* variables.
1087 (processInt): Ditto.
1088 (processReal): Ditto.
1089 (name_lookup): Ditto.
1090 * ada-typeprint.c (print_range): Use builtin_type_int, not
1091 builtin_type_ada_int.
1092
4f0be353
MK
10932004-09-18 Mark Kettenis <kettenis@gnu.org>
1094
30b0e2d8
MK
1095 * i386-tdep.c (i386_register_name): Rename regno to regnum.
1096
4f0be353
MK
1097 * config/pa/hpux1020.mh (MH_CFLAGS): Remove -D__HP_CURSES.
1098 * config/pa/hpux11.mh (MH_CFLAGS): Likewise.
1099 * config/pa/hpux11w.mh (MH_CFLAGS): Likewise.
1100 * configure.in: Improve checks for curses library by checking for
1101 mvwaddstr instead of initscr. Drop HP curses in favour of
1102 standard curses on HP-UX.
1103 * configure: Regenerated.
1104
72d5681a 11052004-09-18 Paul N. Hilfinger <hilfinger@gnat.com>
6c038f32
PH
1106
1107 * ada-lang.c: (ada_main_name, ada_value_slice_ptr, ada_value_slice,
1108 ada_breakpoint_rewrite, ada_template_to_fixed_record_type_1):
1109 Minor formatting changes.
1110 (empty_array): Slight rewrite for formatting.
1111 (emit_char,parse,ada_language_defn,build_ada_types,
1112 ada_is_exception_sym, _initialize_ada_language): Move
1113 definitions around.
1114 (ada_dump_symtab): Remove unused definition.
1115 (ada_maybe_exception_partial_symbol): Remove unused definition.
1116
1c8c7407
AC
11172004-09-16 Andrew Cagney <cagney@gnu.org>
1118
7681f339
AC
1119 * inf-child.c: Include "gdb_string.h".
1120 (inf_child_core_file_to_sym_file): Delete.
1121 (inf_child_target): Set to_fetch_registers and to_store_registers.
1122 * inf-ptrace.c: Include "gdb_string.h".
1123 * Makefile.in: Update all dependencies.
1124
1c8c7407
AC
1125 * Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
1126 problem.
1127
65596487
JB
11282004-09-14 Joel Brobecker <brobecker@gnat.com>
1129
1130 * mips-tdep.c (mips_insn32_frame_cache): Pass frame cache in
1131 call to heuristic_proc_desc. Remove code that became redundant
1132 as a consequence.
1133 (read_next_frame_reg): Remove special case for SP_REGNUM.
1134 (set_reg_offset): Fix small typo.
1135 (reset_saved_regs): New procedure.
1136 (mips32_heuristic_proc_desc): No longer compute a fake
1137 procedure descriptor. Compute the full frame cache instead.
1138 Some minor comment reformatting.
1139
95575b2e
AC
11402004-09-14 Andrew Cagney <cagney@gnu.org>
1141
f200c492
AC
1142 * MAINTAINERS: Add Michael Chastain as the backup gdb.threads
1143 maintainer.
1144
95575b2e
AC
1145 * thread-db.c (thread_db_new_objfile): Assume that there is a
1146 child process.
1147
69657671
JB
11482004-09-13 Jim Blandy <jimb@redhat.com>
1149
1150 * valops.c (value_assign): Move 'buffer' to the enclosing block,
1151 so that its storage isn't referenced after its lifetime ends.
1152
6c4182dd
JB
1153 * valops.c (value_assign): 'use_buffer' is initialized to zero,
1154 and never assigned to. Delete it, and the 'if (use_buffer)'
1155 clauses. Delete 'raw_buffer', since it is now unused.
1156
ee31a58d
AC
11572004-09-13 Andrew Cagney <cagney@gnu.org>
1158
2c0fc042
AC
1159 * configure.in (frags): Replace TM_FILE with DEPRECATED_TM_FILE.
1160 * configure: Re-generate.
1161 * nlm/Makefile.in (TAGS): Update.
1162 * Makefile.in (TAGS): Update.
1163 * config/vax/nbsd.mt (TM_FILE): Update.
1164 * config/sparc/vxworks.mt (TM_FILE): Update.
1165 * config/sparc/sol2.mt (TM_FILE): Update.
1166 * config/sparc/sol2-64.mt (TM_FILE): Update.
1167 * config/sparc/obsd64.mt (TM_FILE): Update.
1168 * config/sparc/obsd.mt (TM_FILE): Update.
1169 * config/sparc/nbsd64.mt (TM_FILE): Update.
1170 * config/sparc/nbsd.mt (TM_FILE): Update.
1171 * config/sparc/linux64.mt (TM_FILE): Update.
1172 * config/sparc/linux.mt (TM_FILE): Update.
1173 * config/sparc/fbsd.mt (TM_FILE): Update.
1174 * config/sh/wince.mt (TM_FILE): Update.
1175 * config/sh/nbsd.mt (TM_FILE): Update.
1176 * config/sh/linux.mt (TM_FILE): Update.
1177 * config/sh/embed.mt (TM_FILE): Update.
1178 * config/s390/s390.mt (TM_FILE): Update.
1179 * config/rs6000/rs6000lynx.mt (TM_FILE): Update.
1180 * config/rs6000/rs6000.mt (TM_FILE): Update.
1181 * config/rs6000/aix4.mt (TM_FILE): Update.
1182 * config/powerpc/vxworks.mt (TM_FILE): Update.
1183 * config/powerpc/ppc-sim.mt (TM_FILE): Update.
1184 * config/powerpc/ppc-eabi.mt (TM_FILE): Update.
1185 * config/powerpc/obsd.mt (TM_FILE): Update.
1186 * config/powerpc/nbsd.mt (TM_FILE): Update.
1187 * config/powerpc/linux.mt (TM_FILE): Update.
1188 * config/powerpc/aix.mt (TM_FILE): Update.
1189 * config/pa/obsd.mt (TM_FILE): Update.
1190 * config/pa/linux.mt (TM_FILE): Update.
1191 * config/pa/hppahpux.mt (TM_FILE): Update.
1192 * config/pa/hppa64.mt (TM_FILE): Update.
1193 * config/pa/hppa.mt (TM_FILE): Update.
1194 * config/ns32k/nbsdaout.mt (TM_FILE): Update.
1195 * config/mips/wince.mt (TM_FILE): Update.
1196 * config/mips/vxmips.mt (TM_FILE): Update.
1197 * config/mips/nbsd.mt (TM_FILE): Update.
1198 * config/mips/linux.mt (TM_FILE): Update.
1199 * config/mips/irix6.mt (TM_FILE): Update.
1200 * config/mips/irix5.mt (TM_FILE): Update.
1201 * config/mips/embed.mt (TM_FILE): Update.
1202 * config/m68k/vxworks68.mt (TM_FILE): Update.
1203 * config/m68k/st2000.mt (TM_FILE): Update.
1204 * config/m68k/os68k.mt (TM_FILE): Update.
1205 * config/m68k/obsd.mt (TM_FILE): Update.
1206 * config/m68k/nbsd.mt (TM_FILE): Update.
1207 * config/m68k/monitor.mt (TM_FILE): Update.
1208 * config/m68k/linux.mt (TM_FILE): Update.
1209 * config/m68k/cisco.mt (TM_FILE): Update.
1210 * config/ia64/linux.mt (TM_FILE): Update.
1211 * config/ia64/aix.mt (TM_FILE): Update.
1212 * config/ia64/ia64.mt (TM_FILE): Update.
1213 * config/i386/vxworks.mt (TM_FILE): Update.
1214 * config/i386/obsd64.mt (TM_FILE): Update.
1215 * config/i386/obsd.mt (TM_FILE): Update.
1216 * config/i386/nto.mt (TM_FILE): Update.
1217 * config/i386/nbsd64.mt (TM_FILE): Update.
1218 * config/i386/nbsd.mt (TM_FILE): Update.
1219 * config/i386/linux64.mt (TM_FILE): Update.
1220 * config/i386/linux.mt (TM_FILE): Update.
1221 * config/i386/i386sol2.mt (TM_FILE): Update.
1222 * config/i386/i386lynx.mt (TM_FILE): Update.
1223 * config/i386/fbsd64.mt (TM_FILE): Update.
1224 * config/i386/fbsd.mt (TM_FILE): Update.
1225 * config/i386/cygwin.mt (TM_FILE): Update.
1226 * config/h8300/h8300.mt (TM_FILE): Update.
1227 * config/frv/frv.mt (TM_FILE): Update.
1228 * config/cris/cris.mt (TM_FILE): Update.
1229 * config/arm/wince.mt (TM_FILE): Update.
1230 * config/arm/nbsd.mt (TM_FILE): Update.
1231 * config/arm/linux.mt (TM_FILE): Update.
1232 * config/arm/embed.mt (TM_FILE): Update.
1233 * config/alpha/nbsd.mt (TM_FILE): Update.
1234 * config/alpha/fbsd.mt (TM_FILE): Update.
1235 * config/alpha/alpha.mt (TM_FILE): Update.
1236 * config/alpha/alpha-osf1.mt (TM_FILE): Update.
1237 * config/alpha/alpha-linux.mt (TM_FILE): Update.
1238
362646f5
AC
1239 Eliminate event_loop_p, always has the value 1.
1240 * defs.h (event_loop_p): Delete macro.
1241 * breakpoint.c (until_break_command): Simplify.
1242 * utils.c (prompt_for_continue): Simplify.
1243 * tracepoint.c (read_actions): Simplify.
1244 * top.c (throw_exception, execute_command, gdb_readline_wrapper)
1245 (gdb_rl_operate_and_get_next, command_line_input, get_prompt)
1246 (set_prompt, init_main): Simplify.
1247 (init_signals, disconnect): Delete, unused.
1248 * remote.c (remote_async_resume)
1249 (extended_remote_async_create_inferior): Simplify.
1250 * mi/mi-interp.c (mi_input): Delete, unused.
1251 (mi_interpreter_resume, mi_command_loop): Simplify.
1252 * interps.c (current_interp_command_loop): Simplify.
1253 * infrun.c (proceed): Simplify.
1254 * infcmd.c (run_command, continue_command, step_1, jump_command)
1255 (until_command, advance_command, finish_command)
1256 (interrupt_target_command): Simplify.
1257 * event-top.c (gdb_setup_readline, gdb_disable_readline): Simplify.
1258
ee31a58d
AC
1259 * config/i386/nm-i386.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1260 * config/s390/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1261 * config/pa/nm-hppah.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1262 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1263 * config/frv/tm-frv.h (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete.
1264 * mips-tdep.c (mips_dump_tdep): Do not print same.
1265
b7ffc4a8
AC
12662004-09-12 Andrew Cagney <cagney@gnu.org>
1267
2bfb72ee
AC
1268 * valprint.c (print_longest): Use fputs_filtered. Make "val"
1269 const.
1270 * Makefile.in (valprint.o): Delete explict rule.
1271
4f17c3c1
AC
1272 * config/m68k/nbsdelf.mh: Add missing trailing newline. Problem
1273 reported by Dave Anderson.
1274
f810308b
AC
1275 * target.c (target_info): Delete #ifdef call to FILES_INFO_HOOK.
1276
b7ffc4a8
AC
1277 * inferior.h (STORE_STRUCT_RETURN): Delete macro.
1278
28b41c52
AC
12792004-09-12 Salvador E. Tropea <set@users.sf.net>
1280 Andrew Cagney <cagney@gnu.org>
1281
1282 * mi/mi-main.c (mi_cmd_data_list_changed_registers)
1283 (mi_cmd_data_list_register_values)
1284 (mi_cmd_data_write_register_values): Include the PSEUDO_REGS in
1285 the register number computation.
1286
5bf970f9
AC
12872004-09-12 Andrew Cagney <cagney@gnu.org>
1288
1289 * ppcnbsd-nat.c: Include "inf-ptrace.h".
1290 (ppcnbsd_fetch_inferior_registers): Rename fetch_inferior_registers.
1291 (ppcnbsd_store_inferior_registers): Rename store_inferior_registers.
1292 (_initialize_ppcnbsd_nat): Create and add a NetBSD/PPC ptrace
1293 target.
1294 * config/powerpc/nbsd.mh (NATDEPFILES): Replace and inftarg.o with
1295 inf-ptrace.o and inf-child.o.
1296 * inf-ptrace.h, inf-ptrace.c, inf-child.h, inf-child.c: New files.
1297 * Makefile.in: Update dependencies.
1298
0759e0bf
AC
12992004-09-11 Andrew Cagney <cagney@gnu.org>
1300
1301 * language.c (hex_string, hex_string_custom): Move from here ...
1302 * utils.c (hex_string, hex_string_custom): ... to here, rewrite.
1303 (CELLSIZE): Increase to 50.
1304 * language.h (hex_string, hex_string_custom): Move from here ...
1305 * defs.h: ... to here.
1306 * Makefile.in: Update all dependencies.
1307
bb599908
PH
13082004-09-11 Paul N. Hilfinger <hilfinger@gnat.com>
1309
1310 * language.c (local_hex_format_custom): Remove.
1311 (local_hex_string): Rename to hex_string, use C format, and move to
1312 utils.c
1313 (local_hex_string_custom): Rename to hex_string_custom and change
1314 interface. Now uses C format. Move to utils.c
1315 (local_octal_format_custom): Remove.
1316 (local_decimal_format_custom): Remove.
1317 (unknown_language_defn): Remove language-specific number
1318 formatting entries.
1319 (auto_language_defn): Ditto.
1320 (local_language_defn): Ditto.
1321 * language.h (struct language_format_info): Delete declaration.
1322 (struct language_defn): Remove language_format_info fields
1323 la_binary_format, la_octal_format, la_decimal_format, la_hex_format.
1324 (local_binary_format): Remove macro.
1325 (local_binary_format_prefix): Remove macro.
1326 (local_binary_format_specifier): Remove macro.
1327 (local_binary_format_suffix): Remove macro.
1328 (local_octal_format): Remove macro.
1329 (local_octal_format_prefix): Remove macro.
1330 (local_octal_format_specifier): Remove macro.
1331 (local_octal_format_suffix): Remove macro.
1332 (local_decimal_format): Remove macro.
1333 (local_decimal_format_prefix): Remove macro.
1334 (local_decimal_format_specifier): Remove macro.
1335 (local_decimal_format_suffix): Remove macro.
1336 (local_hex_format): Remove macro.
1337 (local_hex_format_prefix): Remove macro.
1338 (local_hex_format_specifier): Remove macro.
1339 (local_hex_format_suffix): Remove macro.
1340 (local_decimal_format_custom): Remove.
1341 (local_octal_format_custom): Remove.
1342 (local_hex_format_custom): Remove.
1343 (local_hex_string): Rename to hex_string and move to defs.h.
1344 (local_hex_string_custom): Rename to hex_string_custom, change
1345 interface, and move to defs.h.
1346 * utils.c: (int_string): New function.
1347 (hex_string): New function (from language.c).
1348 (hex_string_custom): New function (from language.c).
1349 (octal2str): New function.
1350 (decimal2str): Add width parameter.
1351 (paddr_u): Use new decimal2str interface.
1352 (paddr_d): Ditto.
1353 * defs.h (hex_string): Declare.
1354 (hex_string_custom): Declare.
1355 (int_string): Declare.
1356 * printcmd.c (print_scalar_formatted): Remove localized binary
1357 formatting.
1358 * valprint.c (print_longest): Use int_string.
1359 (print_floating): Use C hex format.
1360 (print_hex_chars): Ditto.
1361 (print_binary_chars): Remove language-specific formatting.
1362 (print_octal_chars): Use C octal format.
1363 (print_decimal_chars): Delocalize format.
1364 (print_decimal): Remove.
1365 * ada-lang.c (ada_language_defn): Remove language-specific number
1366 formatting entries.
1367 * p-lang.c (pascal_language_defn): Ditto.
1368 * c-lang.c (c_language_defn): Ditto.
1369 (cplus_language_defn): Ditto.
1370 (asm_language_defn): Ditto.
1371 (minimal_language_defn): Ditto.
1372 * f-lang.c (f_language_defn): Ditto.
1373 * jv-lang.c (java_language_defn): Ditto.
1374 * m2-lang.c (m2_language_defn): Ditto.
1375 * scm-lang.c (scm_language_defn): Ditto.
1376 * objc-lang.c (objc_language_defn): Ditto.
1377 * memattr.c (mem_info_command): Use renamed hex_string_custom with
1378 new interface.
1379 * pa64solib.c (pa64_sharedlibrary_info_command): Ditto.
1380 * ui-out.c (ui_out_field_core_addr): Ditto.
1381 * breakpoint.c (breakpoint_adjustment_warning): Ditto.
1382 * exec.c (print_section_info): Ditto.
1383 * i387-tdep.c (print_i387_status_word): Ditto.
1384 (print_i387_control_word): Ditto.
1385 (i387_print_float_info): Ditto.
1386 * maint.c (maint_print_section_info): Ditto.
1387 * solib.c (info_sharedlibrary_command): Ditto.
1388 * somsolib.c (som_sharedlibrary_info_command): Ditto.
1389 * symtab.c (print_msymbol_info): Ditto.
1390 * tracepoint.c (tracepoints_info): Ditto.
1391 * solib-frv.c (lm_base): Ditto.
1392 (frv_current_sos): Ditto.
1393 (enable_break2): Ditto.
1394 (enable_break): Ditto.
1395 * dbxread.c (read_dbx_symtab): Use renamed hex_string.
1396 (process_one_symbol): Ditto.
1397 * infcmd.c (program_info): Ditto.
1398 * mdebugread.c (parse_partial_symbols): Ditto.
1399 * symfile.c (add_symbol_file_command): Ditto.
1400 * cli/cli-cmds.c (edit_command): Ditto.
1401 (list_command): Ditto.
1402 * infcall.c (call_function_by_hand): Ditto.
1403 * remote-vx.c (vx_run_files_info): Ditto.
1404 (vx_wait): Ditto.
1405 (vx_attach): Ditto.
1406 (vx_detach): Ditto.
1407 (vx_kill): Ditto.
1408 * aix-thread.c (pdc_symbol_addrs): Ditto.
1409 (pdc_read_regs): Ditto.
1410 (pdc_write_regs): Ditto.
1411 (pdc_read_data): Ditto.
1412 (pdc_write_data): Ditto.
1413 * d10v-tdep.c (display_trace): Ditto.
1414 * rs6000-nat.c (find_toc_address): Ditto.
1415 * aix-thread.c: Don't include language.h.
1416 * buildsym.c: Ditto.
1417 * dbxread.c: Ditto.
1418 * mdebugread.c: Ditto.
1419 * rs6000-nat.c: Ditto.
1420 * buildsym.c (make_blockvector): Use renamed hex_string.
1421
33f2d567
JM
14222004-09-10 Jason Molenda (jmolenda@apple.com)
1423
1424 * cli/cli-script.c (read_next_line): Accept zero or more whitespace
1425 chars after 'if' or 'while' commands in user-defined commands.
1426
7b90c3f9
JB
14272004-09-08 Jim Blandy <jimb@redhat.com>
1428
1429 Fix bug reported and analyzed by Olivier Crete:
1430 * symfile.c (copy_section_addr_info): New function.
1431 (symbol_file_add_with_addrs_or_offsets): Use it to save the
1432 original set of address arguments, instead of handwritten code
1433 that uses one length to allocate and a different length to
1434 initialize. Use make_cleanup_free_section_addr_info.
1435 * symfile.h (copy_section_addr_info): New declaration.
1436 * utils.c: #include "symfile.h".
1437 (do_free_section_addr_info, make_cleanup_free_section_addr_info):
1438 New functions.
1439 * defs.h (make_cleanup_free_section_addr_info): New declaration.
1440 * Makefile.in (utils.o): Update dependencies.
1441
b26a6851
AC
14422004-09-08 Andrew Cagney <cagney@gnu.org>
1443
1444 * thread-db.c (keep_thread_db): Delete.
1445 (thread_db_new_objfile, thread_db_create_inferior)
1446 (thread_db_mourn_inferior): Simplify assuming !keep_thread_db.
1447
be24b061
MK
14482004-09-08 Mark Kettenis <kettenis@gnu.org>
1449
f6792ef4
MK
1450 * i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
1451 (FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM)
1452 (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros.
1453 (i386_frameless_signal_p): Remove prototype.
1454 * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
1455 (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and
1456 I386_SSE_NUM_REGS.
1457 * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS
1458 instead of FP0_REGNUM.
1459 (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead
1460 of FP0_REGNUM and FPC_REGNUM.
1461
eeefdaa7
MK
1462 * solib-sunos.c (sunos_relocate_main_executable): Remove function.
1463 (sunos_solib_create_inferior_hook): Don't call
1464 sunos_relocate_main_executable.
1465
be24b061
MK
1466 * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Set
1467 solib_svr4_fetch_link_map_offsets to
1468 svr4_ilp32_fetch_link_map_offsets.
1469 * sparcobsd-tdep.c: Don't include "nbsd-tdep.h".
1470 (sparc32obsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
1471 svr4_ilp32_fetch_link_map_offsets.
1472 * Makefile.in (sparcobsd-tdep.o): Update dependencies.
1473
7c679d16
JB
14742004-09-07 Jim Blandy <jimb@redhat.com>
1475
1476 * frame.h (frame_register): Doc fix.
1477
1f04aa62
AC
14782004-09-07 Andrew Cagney <cagney@gnu.org>
1479
1480 * vx-share/wait.h: Delete #ifdef USG.
1481 * utils.c (request_quit): Ditto.
1482 * tui/tui.c (tui_reset): Ditto.
1483 * remote.c: Ditto.
1484 * remote-sds.c: Ditto.
1485 * remote-rdi.c: Ditto.
1486 * mdebugread.c: Ditto.
1487 * m68klinux-nat.c: Ditto.
1488 * infttrace.c: Ditto.
1489 * infptrace.c: Ditto.
1490 * i386v-nat.c: Ditto.
1491 * exec.c: Ditto.
1492 * dbxread.c: Ditto.
1493 * core-aout.c: Ditto.
1494
90edbfbc
JB
14952004-09-05 Joel Brobecker <brobecker@gnat.com>
1496
1497 * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
1498 heuristic_proc_desc.
1499 (mips_insn32_frame_cache): Likewise.
1500
01f4bf2b
JB
15012004-09-04 Joel Brobecker <brobecker@gnat.com>
1502
1503 * mips-tdep.c (mips32_heuristic_proc_desc): Remove code that was
1504 left behind by error.
1505
8511a048
JB
15062004-09-04 Joel Brobecker <brobecker@gnat.com>
1507
1508 * config/alpha/nm-osf.h (PTRACE_ARG3_TYPE): Remove define.
1509 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Likewise.
1510
649dfe9f
JB
15112004-09-04 Joel Brobecker <brobecker@gnat.com>
1512
1513 * config/rs6000/xm-aix4.h: Remove this file.
1514 * config/rs6000/aix4.mh (XM_FILE): Delete.
1515
6e50f889
JB
15162004-09-04 Joel Brobecker <brobecker@gnat.com>
1517
1518 * config/rs6000/xm-rs6000.h: Remove this file.
1519 * config/rs6000/rs6000.mh (XM_FILE): Remove.
1520
b8c4aece
AC
15212004-09-03 Andrew Cagney <cagney@gnu.org>
1522
fb603883
AC
1523 * mips-tdep.c (PROC_DESC_IS_DUMMY, SET_PROC_DESC_IS_DUMMY)
1524 (_PROC_MAGIC_, after_prologue, mips_dump_tdep): Delete macros and
1525 only use.
1526
c9343fd1
AC
1527 * mips-tdep.c (temp_saved_regs): Delete.
1528 (set_reg_offset): Replace saved_regs parameter with this_cache.
1529 (heuristic_proc_desc, mips16_heuristic_proc_desc)
1530 (mips32_heuristic_proc_desc): Add this_cache parameter.
1531 (mips_insn32_frame_cache, mips_insn16_frame_cache)
1532 (after_prologue): Pass a NULL this_cache.
1533
9733cfe1
AC
1534 * mips-tdep.c (mips_mdebug_frame_cache): Delete code handling
1535 non-kernel trap prologues.
1536
0d5febcc
AC
1537 * mips-tdep.c (find_proc_desc): Delete function.
1538 (mips_mdebug_frame_cache): Inline call to find_proc_desc,
1539 simplify.
1540 (mips_insn16_frame_cache): Replace find_proc_desc with code from
1541 mips_insn32_frame_cache.
1542
9733cfe1 1543 * mips-tdep.c (after_prologue): Inline call to find_proc_desc.
283be873
AC
1544 Simplify as NEXT_FRAME is NULL.
1545 (find_proc_desc): Simplify as NEXT_FRAME is non-NULL.
1546
177f84a3
AC
1547 * mips-tdep.c (after_prologue): Replace proc_desc parameter with
1548 local variable.
1549 (mips_skip_prologue): Update.
1550
465f7520
AC
1551 * mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
1552 "cur_frame" parameter.
177f84a3
AC
1553 (after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
1554 (mips_insn32_frame_cache, find_proc_desc): Update
465f7520 1555
e38b8658
AC
1556 * config/vax/nm-obsd.h: Delete file.
1557 * config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1558 * config/vax/nm-nbsd.h: Delete file.
1559 * config/vax/nm-nbsdaout.h: Include config/nm-nbsd.h.
1560 * config/vax/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1561 * config/sh/nm-nbsd.h: Delete file.
1562 * config/sh/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1563 * config/rs6000/nm-rs6000ly.h: Delete file.
1564 * config/djgpp/fnchange.lst: Do not rename nm-rs6000ly.h.
1565 * config/rs6000/rs6000lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1566 * config/powerpc/nm-obsd.h: Delete file.
1567 * config/powerpc/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1568 * config/powerpc/nm-nbsd.h: Delete file.
1569 * config/powerpc/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1570 * config/pa/nm-obsd.h: Delete file.
1571 * config/pa/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1572 * config/mips/nm-nbsd.h: Delete file.
1573 * config/mips/nbsd.mh (NAT_FILE): Set to config/nm-nbsd.h.
1574 * config/m88k/nm-obsd.h: Delete file.
1575 * config/m88k/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
1576 * config/m68k/nm-nbsd.h: Delete file.
1577 * config/m68k/nm-nbsdaout.h: Include config/nm-nbsd.h.
1578 * config/m68k/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1579 * config/i386/nm-nbsd.h: Delete file.
1580 * config/i386/nm-nbsdaout.h: Include config/nm-nbsd.h.
1581 * config/i386/obsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1582 * config/i386/nbsd64.mh (NAT_FILE): Set to config/nm-nbsd.h.
1583 * config/i386/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1584 * config/i386/nm-i386lynx.h: Delete file.
1585 * config/i386/i386lynx.mh (NAT_FILE): Set to config/nm-lynx.h.
1586 * config/arm/nm-nbsd.h: Delete file.
1587 * config/arm/nm-nbsdaout.h: Include config/nm-nbsd.h.
1588 * config/arm/nbsdelf.mh (NAT_FILE): Set to config/nm-nbsd.h.
1589
be1ed680
AC
1590 * config/i386/tm-fbsd.h: Delete file.
1591 * config/i386/fbsd64.mt (TM_FILE): Set to solib.h.
1592 * config/i386/fbsd.mt (TM_FILE): Set to solib.h.
1593
4b392b26
AC
1594 * config/rs6000/tm-rs6000-aix4.h: Delete file.
1595 * config/djgpp/fnchange.lst: Do not rename tm-rs6000-aix4.h.
1596 * config/rs6000/aix4.mt (TM_FILE): Set to
1597 config/rs6000/tm-rs6000.h.
1598 * config/powerpc/tm-ppc-aix.h: Delete file.
1599 * config/powerpc/aix.mt (TM_FILE): Set to
1600 config/rs6000/tm-rs6000.h.
1601 * config/m68k/tm-linux.h: Delete file.
1602 * config/m68k/linux.mt (TM_FILE): Set to solib.h
1603 * config/i386/tm-linux64.h: Delete file.
1604 * config/i386/linux64.mt (TM_FILE): Set to solib.h.
1605 * config/djgpp/fnchange.lst: Do not rename tm-linux.h.
1606
f3219c75
AC
1607 * config/m68k/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1608 * config/i386/tm-linux64.h (SVR4_SHARED_LIBS): Delete.
1609 * config/i386/nm-i386sco5.h (SVR4_SHARED_LIBS): Delete.
1610 * config/tm-linux.h (SVR4_SHARED_LIBS): Delete.
1611 * config/nm-sysv4.h (SVR4_SHARED_LIBS): Delete.
1612 * config/nm-linux.h (SVR4_SHARED_LIBS): Delete.
1613 * config/nm-gnu.h (SVR4_SHARED_LIBS): Delete.
1614 * sh64-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
1615 * sh-tdep.c [SVR4_SHARED_LIBS]: Delete #ifdef wrapper.
1616
b8c4aece
AC
1617 * configure.in (GDB_TM_FILE): Fix typo, use gdb_target_cpu and not
1618 gdb_host_cpu.
1619
8ac2e020
JB
16202004-09-02 Joel Brobecker <brobecker@gnat.com>
1621
1622 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
1623 Minor reformatting. Some code factoring.
1624
c185a355
AC
16252004-09-02 Andrew Cagney <cagney@gnu.org>
1626
63f22f0d
AC
1627 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
1628 * config/vax/tm-nbsd.h: Delete file.
1629 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1630 * config/sparc/tm-vxworks.h: Delete file.
1631 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
1632 * config/sparc/tm-nbsd.h: Delete file.
1633 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
1634 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
1635 * config/sparc/tm-linux.h: Delete file.
1636 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
1637 * config/s390/tm-linux.h: Delete file.
1638 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
1639 * config/pa/tm-bsd.h: Delete file.
1640 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
1641 * config/m68k/tm-obsd.h: Delete file.
1642 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
1643 * config/m68k/tm-nbsd.h: Delete file.
1644 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
1645 * config/i386/tm-vxworks.h: Delete file.
1646 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
1647 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
1648 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
1649 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
1650 * config/i386/tm-nbsd.h: Delete file.
1651 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
1652 * config/i386/tm-i386lynx.h: Delete file.
1653 * config/cris/cris.mt (TM_FILE): Set to solib.h.
1654 * config/cris/tm-cris.h: Delete file.
1655
0f475e27
AC
1656 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
1657 * configure: Re-generate.
1658 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
1659 * config/arm/tm-nbsd.h: Delete file.
1660
458ed000
AC
1661 * config/powerpc/tm-ppcle-sim.h: Delete.
1662 * config/powerpc/tm-ppcle-eabi.h: Delete.
1663 * config/powerpc/tm-nbsd.h: Delete.
1664 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
1665 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
1666 tm-ppcle-eabi.h.
1667
f14375f3
AC
1668 * config/i386/nto.mh (NAT_FILE): Delete.
1669 * config/i386/nm-nto.h: Delete.
1670
c34d127c
AC
1671 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
1672 * config/m68k/tm-os68k.h: Ditto.
1673 * config/m68k/tm-monitor.h: Ditto.
1674 * config/m68k/tm-cisco.h: Ditto.
1675 * config/m68k/st2000.mt (TM_FILE): Delete.
1676 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
1677 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
1678 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
1679 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
1680
f7f0fe03
AC
1681 * config/m68k/tm-st2000.h: Delete.
1682 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
1683 * config/sparc/fbsd.mt (TM_FILE): Delete.
1684 * config/sparc/tm-fbsd.h: Delete.
1685
a2558533
AC
1686 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
1687 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
1688 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
1689
b78960be
AC
1690 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
1691 GDB_TM_FILE and GDB_XM_FILE.
1692 * gdbarch.c: Re-generate.
1693 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
1694 quotes in macro definition.
1695 * configure.in: Re-generate.
1696
4d60522e
AC
1697 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
1698 validating architecture methods.
1699 * gdbarch.c: Re-generate.
1700
5010d38b
AC
1701 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
1702 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
1703 GDB_MULTI_ARCH_PARTIAL.
1704 * gdbarch.h: Re-generate.
1705
c185a355
AC
1706 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
1707 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
1708 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
1709 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
1710 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
1711 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
1712 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
1713 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
1714 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
1715 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
1716 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
1717 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
1718
14aaa6ab
AC
17192004-09-01 Andrew Cagney <cagney@gnu.org>
1720
1721 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
1722 and main_func_highpc.
1723 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
1724 * objfiles.c (init_entry_point_info, objfile_relocate): Update
1725 * nlmread.c (nlm_symfile_read): Update.
1726
a343eb3c
JB
17272004-09-01 Joel Brobecker <brobecker@gnat.com>
1728
1729 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
1730 (mips_insn32_frame_cache): Inline call to find_proc_desc.
1731 (find_proc_desc): Remove dead code.
1732
4fbbbd07
JB
17332004-09-01 Joel Brobecker <brobecker@gnat.com>
1734
1735 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
1736
84acb35a
JJ
17372004-09-01 Jeff Johnston <jjohnstn@redhat.com>
1738
1739 * observer.sh: Add struct so_list declaration.
1740 * Makefile.in: Add dependencies on observer.h for solib.c and
1741 breakpoint.c.
1742 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
1743 function.
1744 (_initialize_breakpoint): Register
1745 disable_breakpoints_in_unloaded_shlib as an observer of the
1746 "solib unloaded" observation event.
1747 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
1748 call decode_line_1 so unfound breakpoint errors are silent.
1749 * solib.c (update_solib_list): When a solib is discovered to have
1750 been unloaded by the program, notify all observers of the
1751 "solib unloaded" observation event.
1752
c8cd9f6c
AC
17532004-09-01 Andrew Cagney <cagney@gnu.org>
1754
1755 * frame.c: Include "objfiles.h".
1756 (inside_main_func): New function.
1757 (get_prev_frame): Use new inside_main_func.
1758 * Makefile.in (frame.o): Update dependencies.
1759 * defs.h (inside_main_func): Delete declaration.
1760 * blockframe.c (inside_main_func): Delete function.
1761
1168df01
JB
17622004-08-31 Jim Blandy <jimb@redhat.com>
1763
1764 * dwarf2read.c (is_vtable_name): New function, based on logic from
1765 read_structure_type, but passing the correct length to strncmp,
1766 and using 'sizeof' instead of 'strlen'.
1767 (read_structure_type): Call it.
1768
f14f9744
JB
17692004-08-31 Joel Brobecker <brobecker@gnat.com>
1770
1771 * config/powerpc/aix.mh: Add comment.
1772
386d4518
PG
17732004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
1774
1775 * MAINTAINERS: Add self to Write-After-Approval.
1776
7d97d5e2
MI
17772004-08-30 Manoj Iyer <manjo@austin.ibm.com>
1778
1779 * MAINTAINERS: Add self to Write-After-Approval.
1780
68f53502
AC
17812004-08-30 Andrew Cagney <cagney@gnu.org>
1782
1783 Fix PR breakpoints/1757.
1784 * infrun.c (struct execution_control_state): Replace
1785 remove_breakpoints_on_following_step with
1786 step_after_step_resume_breakpoint.
1787 (init_execution_control_state): Update.
1788 (handle_inferior_event): For signals, when stepping off a
1789 breakpoint, set step_after_step_resume_breakpoint. When
1790 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
1791 (keep_going): Delete code handling
1792 remove_breakpoints_on_following_step.
1793
7ca2d3a3
DL
17942004-08-29 David Lecomber <david@streamline-computing.com>
1795
1796 Fix PR gdb/648
1797 * language.h (enum array_ordering): New enum.
1798 * language.h (struct language_defn): New la_array_ordering
1799 attribute.
1800 * language.c (unknown_language_defn, auto_language_defn)
1801 (local_language_defn): Ditto.
1802 * ada-lang.c (ada_language_defn): Ditto.
1803 * c-lang.c (c_language_defn, cplus_language_defn)
1804 (asm_language_defn, minimal_language_defn): Ditto.
1805 * f-lang.c (f_language_defn): Ditto.
1806 * jv-lang.c (java_language_defn): Ditto.
1807 * m2-lang.c (f_language_defn): Ditto.
1808 * objc-lang.c (objc_language_defn): Ditto.
1809 * p-lang.c (pascal_language_defn): Ditto.
1810 * scm-lang.c (scm_language_defn): Ditto.
1811 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
1812 oriented large to small in type structure.
1813 * dwarf2read.c (read_array_order): New function.
1814 (read_array_type): Use read_array_order to check row/column
1815 major ordering.
1816
e354df01
NW
18172004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
1818
1819 * target.c (target_resize_to_sections): Check
1820 current_target.to_sections for an old value when updating.
1821
9185ddce
JB
18222004-08-27 Joel Brobecker <brobecker@gnat.com>
1823
1824 * procfs.c (dbx_link_bpt_addr): New static global variable.
1825 (dbx_link_shadow_contents): New static global variable.
1826 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
1827 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
1828 if we just hit it.
1829 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
1830 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
1831 from run to run.
1832 (procfs_create_inferior): Remove syssgi syscall-exit notifications
1833 after the inferior has been forked.
1834 (remove_dbx_link_breakpoint): New function.
1835 (dbx_link_addr): New function.
1836 (insert_dbx_link_bpt_in_file): New function.
1837 (insert_dbx_link_bpt_in_region): New function.
1838 (insert_dbx_link_breakpoint): New function.
1839 (proc_trace_syscalls_1): New function, extracted from
1840 proc_trace_syscalls.
1841 (proc_trace_syscalls): Replace extract code by call to
1842 proc_trace_syscalls_1.
1843 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
1844 is no longer valid.
1845
e6742ace
JB
18462004-08-25 Jim Blandy <jimb@redhat.com>
1847
1848 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
1849
8fb3e588
AC
18502004-08-25 Andrew Cagney <cagney@gnu.org>
1851
629a41ee
AC
1852 * infrun.c (struct execution_control_state): Delete field
1853 "stepping_through_sigtramp".
1854 (init_execution_control_state): Do not set same.
1855 (context_switch): Do not pass same to save_infrun_state and
1856 load_infrun_state.
1857 * gdbthread.h (struct thread_info): Delete field
1858 stepping_through_sigtramp.
1859 (save_infrun_state, load_infrun_state): Delete parameter
1860 stepping_through_sigtramp.
1861 * thread.c (load_infrun_state, save_infrun_state): Update.
1862
8fb3e588
AC
1863 * infrun.c: Re-indent. Move expression operators to the beginning
1864 of the line. Remove long disabled #if 0 code.
1865
49c54768
AC
18662004-08-24 Andrew Cagney <cagney@gnu.org>
1867
1868 * doublest.h (floatformat_ieee_quad): Rename
1869 floatformat_ia64_quad.
1870 * doublest.c (floatformat_ieee_quad): Rename
1871 floatformat_ia64_quad.
1872 (_initialize_doublest): Update.
1873
5ca2e327
JB
18742004-08-24 Jim Blandy <jimb@redhat.com>
1875
87808bd6
JB
1876 * dwarf2expr.h (struct dwarf_expr_context): New members
1877 'num_pieces' and 'pieces', for returning the result of an
1878 expression that uses DW_OP_piece.
1879 (struct dwarf_expr_piece): New struct type.
1880 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
1881 pieces.
1882 (free_dwarf_expr_context): Free pieces, if any.
1883 (add_piece): New function.
1884 (execute_stack_op): Implement DW_OP_piece.
1885 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
1886 expression is a list of pieces, print an error message.
1887 (dwarf2_loc_desc_needs_frame): If the expression yields
1888 pieces, and any piece is in a register, then we need a frame.
1889
5ca2e327
JB
1890 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
1891 the stack until we've decided what sort of result the evaluation
1892 has produced. Use separate variables, with more specific names.
1893
2afeb6b8
RE
18942004-08-23 Richard Earnshaw <rearnsha@arm.com>
1895
1896 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
1897 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
1898 (arm_netbsd_init_abi_common): Register them.
1899
5885ab49
MK
19002004-08-22 Mark Kettenis <kettenis@gnu.org>
1901
fda820a6
MK
1902 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
1903
1c5bf419
MK
1904 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
1905 safe_frame_unwind_memory instead of target_read_memory.
1906
8cbba7c8
MK
1907 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
1908 Reorder includes.
1909 (fetch_register, store_register): Remove prototypes.
1910 (child_resume): Reorganize code and comments such that it is
1911 grouped a bit more logically.
1912 (attach): Explicitly compare errno against 0.
1913 (detach): Likewise. Use perror_with_name instead of
1914 print_sys_errmsg.
1915 * Makefile.in (infptrace.o): Update dependencies.
1916
c5fa4245
MK
1917 * ia64-linux-nat.c: Update copyright year.
1918 (fetch_debug_register, store_debug_register)
1919 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
1920 PTRACE_TYPE_ARG3.
1921 * config/ia64/nm-linux.h: Update copyright year.
1922 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
1923
387c058c
MK
1924 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
1925 from CORE_ADDR to struct frame_info *. Use
1926 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
1927 (amd64_linux_sigtramp_p): Adjust for changed signature of
1928 and64_linux_sigtramp_start
1929
277215a6
MK
1930 * gdb_ptrace.h: GNU/Linux.
1931
25f6178e
MK
1932 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1933 Remove defines.
1934
652fc137
MK
1935 * infptrace.c: Include "gdb_assert.h".
1936 (PTRACE_XFER_TYPE): Remove define.
1937 (offsetof): Only define if U_REGS_OFFSET isn't defined.
1938 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
1939 Tweak comment.
1940 (fetch_inferior_registers, store_inferior_registers): Remove
1941 redundant culry braces. Tweak comment. s/regno/regnum.
1942 * Makefile.in (infptrace.o): Update dependencies.
1943
5885ab49
MK
1944 * configure.in: Change test for return type of ptrace to default
1945 to `long' instead of `int'.
1946 * configure: Regenerate.
1947
11003ae3
MK
19482004-08-21 Mark Kettenis <kettenis@gnu.org>
1949
6b95110c
MK
1950 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
1951
bcb3dc3d
MK
1952 * configure.in: Check for ttrace function.
1953 * configure, config.in: Regenerate.
1954
11003ae3
MK
1955 * gdb_ptrace.h: New file.
1956 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
1957 <sys/ptrace.h>.
1958 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
1959 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
1960 (attach): Don't define PT_ATTACH.
1961 (detach): Don't define PT_DETACH.
1962 * Makefile.in (gdb_ptrace_h): New variable.
1963 (infptrace.o): Update dependencies.
1964
f8707cac
MK
19652004-08-16 Mark Kettenis <kettenis@gnu.org>
1966
1967 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
1968 instead of `int' if not already defined.
1969 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
1970 PTRACE_TYPE_ARG3.
1971 * infptrace.c (call_ptrace): Revert change that replaced
1972 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
1973
655c5466
MK
19742004-08-15 Mark Kettenis <kettenis@gnu.org>
1975
156e5ba7
MK
1976 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
1977 Remove defines.
1978
de9a9e51
MK
1979 * linux-nat.c (kill_inferior): Add missing third and fourth
1980 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
1981
88800403
MK
1982 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
1983 PTRACE_TYPE_RET.
1984
849a1d7c
MK
1985 * proc-why.c (proc_prettyfprint_why): Fix format string.
1986
61ad16d1
MK
1987 * solib-osf.c (osf_current_sos): Remove unsused label.
1988
a6ed5501
MK
1989 * configure.in: Add <ncurses/ncurses.h> to the list of possible
1990 curses headers.
1991 * configure, config.in: Regenerate.
1992 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
1993 <ncurses/ncurses.h>.
1994
016ddeca
MK
1995 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
1996 * config/nm-nbsd.h: Update copyright year.
1997 (PTRACE_ARG3_TYPE): Remove define.
1998
49ec097f
MK
1999 * sparc-nat.c (fetch_inferior_registers)
2000 (store_inferior_registers, sparc_xfer_wcookie):
2001 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2002
9f8e0089
MK
2003 * alphabsd-nat.c (fetch_inferior_registers):
2004 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2005 PTRACE_TYPE_ARG3.
2006 * amd64bsd-nat.c (fetch_inferior_registers)
2007 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2008 PTRACE_TYPE_ARG3.
2009 * armnbsd-nat.c: Update copyright year.
2010 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
2011 (store_register, store_regs, store_fp_register, store_fp_regs):
2012 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2013 * hppabsd-nat.c (fetch_inferior_registers)
2014 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2015 PTRACE_TYPE_ARG3.
2016 * i386bsd-nat.c (fetch_inferior_registers)
2017 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
2018 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2019 * m68kbsd-nat.c (fetch_inferior_registers)
2020 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2021 PTRACE_TYPE_ARG3.
2022 * m88kbsd-nat.c (fetch_inferior_registers)
2023 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2024 PTRACE_TYPE_ARG3.
2025 * mipsnbsd-nat.c: Update copyright year.
2026 (fetch_inferior_registers, store_inferior_registers):
2027 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2028 * ns32knbsd-nat.c: Update copyright year.
2029 (fetch_inferior_registers, store_inferior_registers):
2030 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2031 * ppcnbsd-nat.c (fetch_inferior_registers):
2032 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2033 PTRACE_TYPE_ARG3.
2034 * ppcobsd-nat.c (fetch_inferior_registers):
2035 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2036 PTRACE_TYPE_ARG3.
2037 * shnbsd-nat.c: Update copyright year.
2038 (fetch_inferior_registers, store_inferior_registers):
2039 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2040 * vaxbsd-nat.c (fetch_inferior_registers)
2041 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
2042 PTRACE_TYPE_ARG3.
2043
655c5466
MK
2044 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
2045 PTRACE_TYPE_ARG3.
2046 * infptrace.c (call_ptrace, child_resume, attach, detach)
2047 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
2048 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
2049 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
2050 PTRACE_TYPE_ARG3.
2051
c40d0d10
MK
20522004-08-14 Mark Kettenis <kettenis@gnu.org>
2053
5cb0ff31
MK
2054 * defs.h: Remove out-of-date comment.
2055 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
2056 [!GETENV_PROVIDED] (getenv): Remove prototype.
2057
5f0f34cb
MK
2058 * standalone.c: Remove file.
2059 * Makefile.in (standalone.o): Remove dependency.
2060
7532965f
MK
2061 * i386-linux-nat.c (dummy_sse_values): Remove function and
2062 prototype.
2063 (i386_linux_dr_get): Fix typo in comment.
2064 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
2065
1bdc6c53
MK
2066 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
2067
c40d0d10
MK
2068 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
2069 from declaration.
2070 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
2071 from definition.
2072
64218d3e
MK
20732004-08-13 Mark Kettenis <kettenis@gnu.org>
2074
2075 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
2076 parenthesis in definition.
2077 * configure: Regenerated.
2078
926c94e7
MC
20792004-08-12 Michael Chastain <mec.gnu@mindspring.com>
2080
2081 * PROBLEMS: Mention build/1411.
2082
69489883
NN
20832004-08-09 Robert Millan <robertmh@gnu.org>
2084
2085 Committed by Nathanael Nerode.
2086 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
2087 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
2088
ebb7c577
AC
20892004-08-12 Andrew Cagney <cagney@gnu.org>
2090
2091 * NEWS: Mention fixes in GDB 6.2.1.
2092 * PROBLEMS: Remove mention of mips-irix.
2093
232d697c
JB
20942004-08-11 Joel Brobecker <brobecker@gnat.com>
2095
2096 * config/powerpc/xm-aix.h: Delete.
2097 * config/powerpc/aix.mh (MH_FILE): Remove.
2098 * config/powerpc/aix432.mh (MH_FILE): Remove.
2099
72f4e82b
JB
21002004-08-11 Joel Brobecker <brobecker@gnat.com>
2101
2102 * config/powerpc/aix.mh: Remove obsolete comment.
2103 * config/powerpc/aix432.mh: Likewise.
2104
0687ccb2
JB
21052004-08-11 Joel Brobecker <brobecker@gnat.com>
2106
2107 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
2108
dbf3ada7
JB
21092004-08-11 Joel Brobecker <brobecker@gnat.com>
2110
e08e1886
JB
2111 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
2112 this file is now empty.
2113 * config/xm-aix4.h: Remove, this file is no longer included
2114 anywhere.
2115
21162004-08-11 Joel Brobecker <brobecker@gnat.com>
2117
2118 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
2119 that file is now empty.
dbf3ada7
JB
2120 (termdef): Remove prototype, function no longer used.
2121
4c525ef6
JB
21222004-08-11 Joel Brobecker <brobecker@gnat.com>
2123
2124 * doc/gdbint.texinfo (Host Definition): Remove documentation
2125 for USE_O_NOCTTY, no longer used.
2126 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
2127 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
2128
82e0b968
JB
21292004-08-11 Joel Brobecker <brobecker@gnat.com>
2130
2131 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
2132 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
2133 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
2134
f2acbe1c
MK
21352004-08-11 Mark Kettenis <kettenis@gnu.org>
2136
daa98270
MK
2137 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
2138 instead of FIVE_ARG_PTRACE.
2139
f2acbe1c
MK
2140 * inflow.c (O_NOCTTY): Define to zero if not already defined.
2141 (new_tty): Use O_NOCTTY unconditionally.
2142
cc377e6b
MK
21432004-08-10 Mark Kettenis <kettenis@gnu.org>
2144
2145 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
2146 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
2147 fflush on stdout.
2148
3bcc18fa
JB
21492004-08-10 Joel Brobecker <brobecker@gnat.com>
2150
2151 * xcoff_symfile_finish: Replace last call to xmfree by call
2152 to xfree.
2153
7936743b
AC
21542004-08-10 Andrew Cagney <cagney@gnu.org>
2155
cc503c8a
AC
2156 * main.c (captured_main): Delete call to init_malloc.
2157 * defs.h (init_malloc): Delete declaration.
2158 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
2159 (init_malloc): Delete functions.
2160
2dc74dc1
AC
2161 * defs.h (xmfree): Delete.
2162 * utils.c (xmfree): Delete function.
2163 (xfree): Inline calls to xmfree and mfree.
2164 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
2165 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
2166 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
2167 * somread.c (som_symfile_finish): Ditto.
2168 * objfiles.c (allocate_objfile, free_objfile):
2169 * nlmread.c (nlm_symfile_finish): Ditto.
2170 * hpread.c (hpread_symfile_finish): Ditto.
2171 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
2172 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
2173 * coffread.c (coff_symfile_finish): Ditto.
2174
aa2ee5f6
AC
2175 * defs.h (xmcalloc): Delete declaration.
2176 * utils.c (xmcalloc): Delete.
2177 (xcalloc): Inline calls to xmcalloc and mcalloc.
2178 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
2179 xcalloc and xfree.
2180 * symtab.c (create_demangled_names_hash): Ditto.
2181
0efffb96
AC
2182 * defs.h (xmrealloc): Delete.
2183 * utils.c (xmrealloc): Delete.
2184 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
2185 * symmisc.c (extend_psymbol_list): Use xrealloc.
2186 * source.c (find_source_lines): Ditto.
2187 * hpread.c (hpread_lookup_type): Ditto.
2188 * dbxread.c (add_bincl_to_list): Ditto.
2189
7936743b
AC
2190 * utils.c (xmmalloc): Delete.
2191 (xmalloc): Inline xmmalloc and mmalloc calls.
2192 (msavestring): Use xmalloc.
2193 * defs.h (xmmalloc): Delete declaration.
2194 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
2195 xmmalloc.
2196 * symmisc.c (extend_psymbol_list): Ditto.
2197 * symfile.c (init_psymbol_list): Ditto.
2198 * source.c (find_source_lines): Ditto.
2199 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
2200 * elfread.c (elf_symtab_read): Ditto.
2201 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
2202 * coffread.c (coff_symfile_init): Ditto.
2203
252ab814
DC
22042004-08-10 David Carlton <carlton@bactrian.org>
2205
2206 * MAINTAINERS: Remove David Carlton from c++ testsuite
2207 maintainers.
2208
8f5ba92b
JG
22092004-08-10 Jerome Guitton <guitton@gnat.com>
2210
2211 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
2212 print a line feed before the prompt.
2213
21749010
MK
22142004-08-10 Mark Kettenis <kettenis@gnu.org>
2215
2216 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
2217
1f011ce2
JB
22182004-08-09 Joel Brobecker <brobecker@gnat.com>
2219
2220 General cleanup of the AIX xm include file:
2221 * config/xm-aix4.h (fd_set): Remove undefine.
2222 Remove include of <sys/select.h>.
2223 (HAVE_TERMIO): Remove define.
2224 (USG): Likewise.
2225 (NULL): Remove redefine.
2226 (alloca): Remove #pragma.
2227 (vfork): Remove define.
2228 (termdef): Remove.
2229 (SIGWINCH_HANDLER): Remove.
2230 (SIGWINCH_HANDLER_BODY): Remove.
2231
cf4e7692
MK
22322004-08-09 Mark Kettenis <kettenis@gnu.org>
2233
2234 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
2235 GDB_OSABI_OPENBSD_ELF.
2236
ac5754fa
MK
22372004-08-07 Robert Millan <robertmh@gnu.org>
2238
2239 * bsd-kvm.c: Check for nlist.h before including it.
2240
086ec9eb
MK
22412004-08-09 Mark Kettenis <kettenis@gnu.org>
2242
bbe06c74
MK
2243 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
2244 sigcontext' offset consistency checks for ancient BSD.
2245
3aa7b3b3
MK
2246 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
2247
086ec9eb
MK
2248 * configure.in: Check for <sys/types.h>. Check return and
2249 argument types of ptrace.
2250 * configure, config.in: Regenerate.
2251
09991fa0
JB
22522004-08-09 Jim Blandy <jimb@redhat.com>
2253
2254 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
2255 rs6000_register_sim_regno): Doc fixes.
2256
fed7ba43
JB
22572004-08-08 Joel Brobecker <brobecker@gnat.com>
2258
2259 * mips-tdep.c: Include "floatformat.h".
2260 (n32n64_floatformat_always_valid): New function.
2261 (floatformat_n32n64_long_double_big): New constant.
2262 (mips_gdbarch_init): Set size and format of long double
2263 for N32 and N64 ABIs.
2264 * Makefile.in (mips-tdep.o): Update dependencies.
2265
456fcf94
AC
22662004-08-08 Andrew Cagney <cagney@gnu.org>
2267
2f9b146e
AC
2268 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
2269 print. Improve script's error messages.
2270 * gdbarch.h: Re-generate.
2271
456fcf94
AC
2272 * gdbarch.sh (pformat): New function.
2273 (float_format, double_format, long_double_format): List with bit
2274 members. Use pformat when printing.
2275 * gdbarch.c, gdbarch.h: Re-generate.
2276
69e9e646
NW
22772004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
2278
2279 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
2280 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
2281 (ppcnbsd_supply_pcb): New function.
2282 (_initialize_ppcnbsd_nat): New prototype and function.
2283 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
2284 (LOADLIBES): New variable.
2285 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
2286
5ef2d0aa
AC
22872004-08-08 Andrew Cagney <cagney@gnu.org>
2288
2289 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
2290 (builtin_type_ieee_double, builtin_type_ia64_quad)
2291 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
2292 BE/LE floating-point types.
2293 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
2294 (builtin_type_ieee_double, builtin_type_ia64_quad)
2295 (builtin_type_ia64_spill): Declare.
2296 * doublest.c (_initialize_doublest, floatformat_ieee_single)
2297 (floatformat_ieee_double, floatformat_arm_ext)
2298 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
2299 of LE/BE floatformats.
2300 * doublest.h: (struct floatformat, floatformat_ieee_single)
2301 (floatformat_ieee_double, floatformat_arm_ext)
2302 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
2303
5c7f2947
MK
23042004-08-08 Mark Kettenis <kettenis@gnu.org>
2305
ecac404d
MK
2306 * i386gnu-nat.c (gnu_store_registers): Fix typo.
2307
9b8607ce
MK
2308 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
2309 instead of regcache_raw_supply when storing the registers.
2310
f6052080
MK
2311 * i386gnu-nat.c: Update copyright year.
2312 (gnu_store_registers): Don't use deprecated_registers and
2313 deprecated_registers_valid. Use regcache_valid_p and
2314 regcache_raw_supply instead.
2315
17777823
MK
2316 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
2317 frame_pc_unwind.
2318
5240ceac
MK
2319 * procfs.c (procfs_pid_to_str): Remove redundant and unused
2320 variables. Incapitalized "process".
2321
5c7f2947
MK
2322 * configure.in: Add cursesX to the list of possible curses libs.
2323 Add cursesX.h to the list of possible curses headers.
2324 * configure, config.in: Regenerate.
2325
da7d81e3
NW
23262004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
2327
2328 * configure.in: Test for struct lwp in <sys/lwp.h>.
2329 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
2330 the offset of l_addr in struct lwp.
2331
7f245d65
NW
23322004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
2333
2334 * bsd-kvm.c: Include "gdbcore.h"
2335 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
2336
47b3f456
AC
23372004-08-07 Andrew Cagney <cagney@gnu.org>
2338
70bd8e24
AC
2339 * gdbtypes.c (build_flt, build_complex): New functions.
2340 (gdbtypes_post_init): Use.
2341
9b0dea39
AC
2342 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
2343
5cf7abac
AC
2344 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
2345 through to builtin_type_uint128.
2346
64d2b26d
AC
2347 * c-exp.y: Use builtin_type function to obtain builtin types.
2348
7ad6570d
AC
2349 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
2350 builtin_uint128.
2351 * gdbtypes.c (gdbtypes_post_init): Update.
2352 (build_gdbtypes): Move initialization of builtin_type_int0
2353 through to builtin_type_uint128 from here ...
2354 (_initialize_gdbtypes): ... to here.
2355 * d10v-tdep.c (d10v_register_type): Update.
2356
47b3f456
AC
2357 * doublest.c: Update copyright.
2358 (floatformat_from_length): Call error when floatformat is NULL.
2359 (extract_floating_by_length): Remove NULL fmt check.
2360 (store_floating_by_length): Ditto.
2361
0a8146bf
AC
23622004-08-07 Andrew Cagney <cagney@gnu.org>
2363
2364 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
2365 that the register is valid.
2366
c0ccb908
MK
23672004-08-05 Mark Kettenis <kettenis@chello.nl>
2368
8e6bed05
MK
2369 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2370 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
2371 struct frame_info *. Use safe_frame_unwind_memory instead of
2372 deprecated_read_memory_nobpt.
2373 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
2374 changed signature of i386_linux_sigtramp_start and
2375 i386_linux_rt_sigtramp_start.
2376
24f9f5e3
MK
2377 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
2378 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
2379 instead of deprecated_read_memory_nobpt.
2380 (i386nbsd_sigtramp_p): Adjust for changed signature of
2381 i386nbsd_sigtramp_offset.
2382
c822af0c
MK
2383 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
2384 safe_frame_unwind_memory instead of target_read_memory.
2385
c0ccb908
MK
2386 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2387 !NO_SYS_FILE.
2388 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
2389 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
2390 (_initialize_kernel_u_addr): Remove prototype and function.
2391 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
2392 !NO_SYS_FILE.
2393 * xcoffread.c: Likewise.
2394
b9e1c0d6
MK
23952004-08-06 Mark Kettenis <kettenis@gnu.org>
2396
2397 * vax-nat.c: New file.
2398 * vaxbsd-nat.c: Tweak comment.
2399 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
2400 vaxnbsd-tdep.c.
2401 (vax-nat.o): New dependency.
2402 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
2403 (vax-*-ultrix2*): Remove.
2404 * config/vax/vax.mh: New file.
2405 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
2406 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
2407 (vax_register_u_addr): New prototype.
2408 (REGISTER_U_ADDR): Define using vax_register_u_addr.
2409 * config/vax/vaxult2.mh: Remove file.
2410 * config/vax/vaxult.mh: Remove file.
2411 * config/vax/vaxbsd.mh: Remove file.
2412 * config/vax/vax.mt (TM_FILE): Remove.
2413 * config/vax/tm-vaxbsd.h: Remove file.
2414
9ad7bec7
JB
24152004-08-06 Joel Brobecker <brobecker@gnat.com>
2416
2417 * aix-thread.c (get_signaled_thread): New function.
2418 (iter_trap): Delete, no longer used.
2419 (iter_tid): New function.
2420 (pd_update): Find the thread that received the SIGTRAP signal
2421 by first locating the kernel thread, and then finding its
2422 associated thread.
2423
bf0d233d
UW
24242004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
2425
2426 * lin-lwp.c (child_wait): Continue inferior after processing
2427 PTRACE_EVENT_CLONE event.
2428
d0f853e1
NN
24292004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
2430
2431 * MAINTAINERS: Add self to Write-After-Approval.
2432
ab14aeb0
JJ
24332004-08-05 Jeff Johnston <jjohnstn@redhat.com>
2434
2435 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
2436 libunwind-xxxx.so" where xxxx is UNW_TARGET.
2437
9c8dbfa9
AC
24382004-08-05 Andrew Cagney <cagney@gnu.org>
2439
c8f3ca46
AC
2440 * config/xm-sysv4.h: Delete file.
2441 * config/mips/xm-irix5.h: Delete file.
2442 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
2443 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
2444 * config/ia64/xm-aix.h: Delete file.
2445 * config/ia64/aix.mh (XM_FILE): Delete.
2446 * config/pa/xm-hppah.h: Delete file.
2447 * config/pa/hpux11w.mh (XM_FILE): Delete.
2448 * config/pa/hpux11.mh (XM_FILE): Delete.
2449 * config/pa/hpux1020.mh (XM_FILE): Delete.
2450 * config/pa/hppahpux.mh (XM_FILE): Delete.
2451
5f7daaff
AC
2452 * config/alpha/xm-alphalinux.h: Delete file.
2453 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
2454 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
2455 * config/alpha/xm-alphaosf.h: Delete file.
2456 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
2457 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
2458 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
2459 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
2460
69babf95
AC
2461 * config/i386/xm-i386v.h: Delete file.
2462 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
2463 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
2464 * config/i386/xm-i386sco.h: Delete file.
2465 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
2466 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
2467 * config/i386/xm-i386v4.h: Delete file.
2468 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
2469 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
2470 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
2471 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
2472
6f009c8a
AC
2473 * config/vax/xm-vax.h: Delete file.
2474 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
2475 * config/vax/xm-vaxult2.h: Delete file.
2476 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
2477 * config/vax/vaxult2.mh (XM_FILE): Delete.
2478 * config/vax/xm-vaxult.h: Delete file.
2479 * config/vax/vaxult.mh (XM_FILE): Delete.
2480 * config/vax/xm-vaxbsd.h: Delete file.
2481 * config/vax/vaxbsd.mh (XM_FILE): Delete.
2482
9c8dbfa9
AC
2483 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
2484 * gdbarch.h, gdbarch.c: Re-generate.
2485 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
2486 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
2487 * frame.h: Delete deprecated_read_fp from comments.
2488 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
2489 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
2490
84367a3e
MK
24912004-08-04 Mark Kettenis <kettenis@gnu.org>
2492
9c8e3411
MK
2493 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
2494 trampoline in OpenBSD 3.5-current.
2495
b87bc0d8
MK
2496 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
2497 SSE registers.
2498
84367a3e
MK
2499 * Makefile.in: Remove embedded page breaks.
2500
a44bddec
JB
25012004-08-04 Jim Blandy <jimb@redhat.com>
2502
7ab3286f
JB
2503 * regcache.c (regcache_raw_read): Assert that, after calling
2504 target_fetch_registers, the register we're reading is cached.
2505
a44bddec
JB
2506 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
2507 a call to 'internal_error', with a more helpful error message.
2508 * rs6000-tdep.c (e500_pseudo_register_read,
870d65d5 2509 e500_pseudo_register_write, rs6000_store_return_value): Same.
a44bddec 2510
35124113
AC
25112004-08-04 Andrew Cagney <cagney@gnu.org>
2512
2513 * Makefile.in: Update dependencies.
2514
9f643768
JB
25152004-08-04 Jim Blandy <jimb@redhat.com>
2516
6ced10dd
JB
2517 Change the layout of the PowerPC E500 raw register cache to allow
2518 the lower 32-bit halves of the GPRS to be their own raw registers,
2519 not pseudoregisters.
2520 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
2521 add ppc_ev0_upper_regnum flag.
2522 * rs6000-tdep.c: #include "reggroups.h".
2523 (spe_register_p): Recognize the ev upper half registers as SPE
2524 registers.
2525 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
2526 registers.
2527 (e500_move_ev_register): New function.
2528 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
2529 vector registers are the pseudo-registers now, formed by splicing
2530 together the gprs and the upper-half registers.
2531 (e500_register_reggroup_p): New function.
2532 (P): Macro deleted.
2533 (P8, A4): New macro.
2534 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
2535 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
2536 macros.
2537 (registers_e500): Rearrange register set so that the raw register
2538 set contains 32-bit GPRs and upper-half registers, and the SPE
2539 vector registers become pseudo-registers.
2540 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
2541 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
2542 register numbers are now the same for the E500 as they are for
2543 other PowerPC variants. Register e500_register_reggroup_p as the
2544 register group function for the E500.
2545 * Makefile.in (rs6000-tdep.o): Update dependencies.
2546
2547 Adapt PPC E500 native support to the new raw regcache layout.
2548 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
2549 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
2550 (fetch_spe_register, store_spe_register): Handle fetching/storing
2551 all the SPE registers at once, if regno == -1. These now take
2552 over the job of fetch_spe_registers and store_spe_registers.
2553 (fetch_spe_registers, store_spe_registers): Deleted.
2554 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
2555 unconditionally; they're always raw. Fetch/store SPE upper half
2556 registers, if present, instead of ev registers.
2557 (fetch_register, store_register): Remove sanity checks: gprs are
2558 never pseudo-registers now, so we never need to even mention any
2559 registers that are ever pseudoregisters.
2560
9f643768
JB
2561 Use a fixed register numbering when communicating with the PowerPC
2562 simulator.
2563 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
2564 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
2565 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
2566 New functions.
2567 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
2568 init_sim_regno_table.
2569 * Makefile.in (gdb_sim_ppc_h): New variable.
2570 (rs6000-tdep.o): Update dependencies.
2571
1e2279c8
AC
25722004-08-02 Andrew Cagney <cagney@gnu.org>
2573
1d94326f
AC
2574 * cris-tdep.c (cris_register_size): Restore function, still used
2575 locally.
2576
331ae7ed
AC
2577 * gdbarch.sh (deprecated_target_read_fp)
2578 (deprecated_frame_locals_address, deprecated_frame_args_address)
2579 (deprecated_frame_chain_valid, deprecated_frame_chain)
2580 (deprecated_init_extra_frame_info, deprecated_pop_frame)
2581 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
2582 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
2583 * gdbarch.h, gdbarch.c: Re-generate.
2584 * regcache.c (deprecated_read_fp): Do not call
2585 DEPRECATED_TARGET_READ_FP_P.
2586 * infcmd.c (default_print_registers_info): Do not call
2587 DEPRECATED_DO_REGISTERS_INFO.
2588 * frame-base.c (default_frame_locals_address): Do not call
2589 DEPRECATED_FRAME_LOCALS_ADDRESS.
2590 (default_frame_args_address): Do not call
2591 DEPRECATED_FRAME_ARGS_ADDRESS.
2592
1e2279c8
AC
2593 * gdbarch.sh (deprecated_register_raw_size)
2594 (deprecated_register_virtual_size:int): Delete.
2595 * gdbarch.h, gdbarch.c: Re-generate.
2596 * cris-tdep.c (cris_register_size): Delete.
2597 (cris_gdbarch_init): Update.
2598 * alpha-tdep.c (alpha_register_raw_size)
2599 (alpha_register_virtual_size): Delete.
2600 (alpha_gdbarch_init): Update.
2601
a90c06b4
AC
2602 * gdbarch.sh (deprecated_register_virtual_type)
2603 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
2604 (deprecated_dummy_write_sp): Delete.
2605 * gdbarch.h, gdbarch.c: Re-generate.
2606
f42accbe
AC
2607 * gdbarch.sh (deprecated_register_bytes): Delete.
2608 * gdbarch.h, gdbarch.c: Re-generate.
2609 * regcache.c (deprecated_register_bytes): New function.
2610 * regcache.h (deprecated_register_bytes): Declare.
2611 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2612 * v850-tdep.c (v850_gdbarch_init): Update.
2613 * sh64-tdep.c (sh64_gdbarch_init): Update.
2614 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
2615 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2616 * mcore-tdep.c (mcore_gdbarch_init): Update.
2617 * cris-tdep.c (cris_gdbarch_init): Update.
2618 * arm-tdep.c (arm_gdbarch_init): Update.
2619 * remote.c (init_remote_state): Update.
2620 * remote-vx.c (vx_prepare_to_store): Update.
2621 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
2622 * irix5-nat.c (fetch_core_registers): Update.
2623 * cris-tdep.c (cris_register_bytes_ok): Update.
2624 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
2625
45c9dd44
AC
2626 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
2627 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
2628 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
2629 (mips_insn16_frame_base_address, mips_insn16_frame_base)
2630 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
2631 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
2632 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
2633 (mips_insn32_frame_base_address, mips_insn32_frame_base)
2634 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
2635 with mips_insn16 and mips_insn32.
2636
3acba339
AC
2637 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
2638 * rs6000-tdep.c (rs6000_push_dummy_call)
2639 (rs6000_extract_return_value): Use register_size.
2640 * xstormy16-tdep.c (xstormy16_get_saved_register)
2641 (xstormy16_extract_return_value): Ditto.
2642 * valops.c (value_assign): Ditto.
2643 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
2644 * v850-tdep.c (v850_extract_return_value): Ditto.
2645 * tracepoint.c (collect_symbol): Ditto.
2646 * target.c (debug_print_register): Ditto.
2647 * stack.c (frame_info): Ditto.
2648 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
2649 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
2650 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
2651 (store_register_using_P): Ditto.
2652 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
2653 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
2654 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
2655 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
2656 * regcache.c (deprecated_read_register_bytes)
2657 (deprecated_write_register_bytes, read_register)
2658 (write_register): Ditto.
2659 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
2660 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
2661 * monitor.c (monitor_supply_register, monitor_fetch_register)
2662 (monitor_store_register): Ditto.
2663 * mn10300-tdep.c (mn10300_pop_frame_regular)
2664 (mn10300_print_register): Ditto.
2665 * mipsv4-nat.c (fill_fpregset): Ditto.
2666 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
2667 (mips64_fill_fpregset): Ditto.
2668 * mi/mi-main.c (register_changed_p, get_register)
2669 (mi_cmd_data_write_register_values): Ditto.
2670 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
2671 * irix5-nat.c (fill_gregset, fetch_core_registers):
2672 * infrun.c (write_inferior_status_register): Ditto.
2673 * infptrace.c (fetch_register, store_register): Ditto.
2674 * infcmd.c (default_print_registers_info): Ditto.
2675 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
2676 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
2677 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
2678 * hpux-thread.c (hpux_thread_fetch_registers)
2679 (hpux_thread_store_registers): Ditto.
2680 * hppah-nat.c (store_inferior_registers, fetch_register):
2681 * findvar.c (value_from_register): Ditto.
2682 * dve3900-rom.c (fetch_bitmapped_register):
2683 * cris-tdep.c (cris_gdbarch_init): Ditto.
2684 * alpha-tdep.h: Ditto.
2685 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
2686
01e1877c
AC
2687 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
2688 DEPRECATED_REGISTER_RAW_SIZE from comments.
2689 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
2690 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
2691 DEPRECATED_REGISTER_RAW_SIZE.
2692 * findvar.c (value_of_register): Simplify by assuming that the
2693 registers raw and virtual sizes are identical.
2694 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
2695 comment.
2696 * arch-utils.c (generic_register_size): Simplify by assuming
2697 register_type.
2698
73f458fb
AC
2699 * regcache.c (legacy_read_register_gen, real_register)
2700 (legacy_write_register_gen): Delete, not used.
2701
336a3131
AC
2702 * regcache.c (struct regcache_descr): Delete legacy_p.
2703 (init_legacy_regcache_descr): Delete function.
2704 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
2705 Do not use deprecated register functions.
2706 (regcache_raw_read, deprecated_write_register_gen):
2707 (deprecated_read_register_gen, regcache_raw_write): Delete code
2708 predicated on legacy_p.
2709 (register_size): Delete check against register raw size.
2710
c1d546cd
AC
2711 * cris-tdep.c (cris_register_type): Replace
2712 cris_register_virtual_type.
2713 (cris_gdbarch_init): Update, set register_type.
2714
48c2c0a6
AC
2715 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
2716 * gdbarch.h, gdbarch.c: Re-generate.
2717 * arm-tdep.c (arm_frameless_function_invocation): Delete.
2718 (arm_gdbarch_init) Do not set frameless function invocation.
2719 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
2720 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
2721 * frv-tdep.c (frv_frameless_function_invocation): Delete.
2722 (frv_gdbarch_init): Do not set frameless function invocation.
2723 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
2724 * sh-tdep.c (sh_gdbarch_init): Ditto.
2725 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
2726 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2727 * avr-tdep.c (avr_gdbarch_init): Ditto.
2728
474093a6
AC
2729 * blockframe.c (legacy_frame_chain_valid): Delete function.
2730
3c109c8b
AC
2731 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
2732 and pc. Update comments.
2733 (pc_in_dummy_frame): Delete function.
2734 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
2735 use the "id".
2736 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
2737 call_hi, top and pc, use the id.
2738 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
2739
96860204
AC
2740 * dummy-frame.c: Include "gdb_string.h".
2741 (generic_save_call_dummy_addr, generic_push_dummy_frame)
2742 (generic_save_dummy_frame_tos): Delete.
2743 (dummy_frame_push): New function, replaces above.
2744 * dummy-frame.h: Update copyright.
2745 (dummy_frame_push): Declare.
2746 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
2747 (generic_save_call_dummy_addr): Delete declarations.
2748 * infcall.c: Include "dummy-frame.h".
2749 (call_function_by_hand): Add locals caller_regcache,
2750 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
2751 with call to frame_save_as_regcache plus cleanup. Delete calls to
2752 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
2753 Move clear_proceed_status to just before the resume, add call to
2754 dummy_frame_push (discard cleanup).
2755 * Makefile.in (infcall.o): Add $(dummy_frame_h).
2756 (dummy-frame.o): Add $(gdb_string_h).
2757
d67ec5db
AC
27582004-08-01 Andrew Cagney <cagney@gnu.org>
2759
2760 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
2761 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
2762 * dummy-frame.c (find_dummy_frame): Delete.
2763 (struct dummy_frame_cache, dummy_frame_sniffer)
2764 (dummy_frame_prev_register, dummy_frame_this_id)
2765 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
2766 frame unwinder using a dummy_frame_cache.
2767
a81dcb05
AC
27682004-08-01 Andrew Cagney <cagney@gnu.org>
2769
2770 * frame.h (frame_save_as_regcache): Declare.
2771 * frame.c (frame_save_as_regcache): New function.
2772 (do_frame_read_register): Replace do_frame_unwind_register.
2773 (frame_pop): Use frame_save_as_regcache.
2774 * dummy-frame.c (generic_push_dummy_frame): Use
2775 frame_save_as_regcache.
2776
aa495d11
JB
27772004-08-01 Joel Brobecker <brobecker@gnat.com>
2778
2779 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
2780 file as included until we record the first line in the linetable.
2781
ff65ac78
AC
27822004-08-01 Andrew Cagney <cagney@gnu.org>
2783
2784 * frame.h (deprecated_pop_dummy_frame)
2785 (deprecated_read_register_dummy)
2786 (deprecated_generic_find_dummy_frame): Delete.
2787 * dummy-frame.c (deprecated_generic_find_dummy_frame)
2788 (deprecated_read_register_dummy)
2789 (deprecated_find_dummy_frame_regcache)
2790 (discard_innermost_dummy)
2791 (deprecated_pop_dummy_frame): Delete.
2792 (dummy_frame_this_id): Simplify.
2793 (struct dummy_frame): Delete "fp" and "sp".
2794 (find_dummy_frame): Simplify.
2795 (generic_push_dummy_frame): Do not set "fp" or "sp".
2796 (fprint_dummy_frames): Do not print "fp" and "sp"
2797
37bdc87e
MK
27982004-08-01 Mark Kettenis <kettenis@gnu.org>
2799
2800 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
2801 (struct i386_insn): New structure.
2802 (i386_match_insn): New function.
2803 (i386_frame_setup_skip_insns): New variable.
2804 (i386_analyze_frame_setup): Change to use i386_match_insn and the
2805 array i386_frame_setup_insns of instructions that should be
2806 skipped inside the frame setup sequence.
2807
8241eaa6
AC
28082004-08-01 Andrew Cagney <cagney@gnu.org>
2809
5bc602c7
AC
2810 * frame.h (deprecated_frame_xmalloc_with_cleanup)
2811 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2812 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2813 * stack.c (frame_info): Delete references to
2814 DEPRECATED_FRAME_INIT_SAVED_REGS and
2815 deprecated_get_frame_saved_regs.
2816 * frame.c (struct frame_info): Delete saved_regs and extra_info.
2817 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
2818 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
2819 (frame_unwind_register_signed)
2820 (frame_unwind_register_unsigned)
2821 (frame_unwind_unsigned_register): Use register_size.
2822 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
2823 (deprecated_frame_xmalloc_with_cleanup)
2824 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
2825 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
2826
03d363a1
AC
2827 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
2828 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
2829 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
2830 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
2831
8241eaa6
AC
2832 * infcall.c (call_function_by_hand): Do not use
2833 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
2834 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
2835 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
2836 DEPRECATED_STACK_ALIGN.
2837
f00df8b7
AC
28382004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
2839
2840 Committed by Andrew Cagney.
2841 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
2842
eec63939
AC
28432004-08-01 Andrew Cagney <cagney@gnu.org>
2844
2845 * mips-tdep.c (mips16_frame_cache)
2846 (mips16_frame_this_id, mips16_frame_prev_register)
2847 (mips16_frame_unwind, mips16_frame_sniffer)
2848 (mips16_frame_base_address, mips16_frame_base)
2849 (mips16_frame_base_sniffer, mips32_frame_cache)
2850 (mips32_frame_this_id, mips32_frame_prev_register)
2851 (mips32_frame_unwind, mips32_frame_sniffer)
2852 (mips32_frame_base_address, mips32_frame_base)
2853 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
2854 separate heuristic mips16 and mips32 unwinders.
2855 (mips_stub_frame_cache, mips_stub_frame_this_id)
2856 (mips_stub_frame_prev_register)
2857 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
2858 (mips_stub_frame_base_address, mips_stub_frame_base)
2859 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
2860 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
2861 match true mdebug frames.
2862 (non_heuristic_proc_desc): Add forward declaration.
2863
e66299b3
AC
28642004-08-01 Andrew Cagney <cagney@gnu.org>
2865
83cbbf3e
AC
2866 * config/mips/tm-irix6.h: Delete file.
2867 * config/mips/tm-irix5.h: Delete file.
2868 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
2869 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
2870
22d41b37
AC
2871 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
2872 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
2873 * config/nm-gnu.h (NO_CORE_OPS): Delete.
2874 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
2875 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
2876 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
2877 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
2878 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
2879 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
2880 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
2881 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
2882 (TARGET_SIGNAL_RAW_VALUES): Delete.
2883 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
2884 Delete.
2885 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
2886 (TARGET_HW_WATCH_LIMIT): Delete.
2887 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
2888 * minimon.h: Delete file.
2889
e66299b3
AC
2890 * trad-frame.c (trad_frame_get_this_base)
2891 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
2892 functions.
2893 * trad-frame.h (trad_frame_set_this_base)
2894 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
2895
1f67027d
AC
28962004-07-31 Andrew Cagney <cagney@gnu.org>
2897
2898 * trad-frame.c (trad_frame_get_prev_register): Rename
2899 trad_frame_get_prev_register.
2900 * vax-tdep.c (vax_frame_prev_register): Update.
2901 * trad-frame.h: Update.
2902 * trad-frame.c (trad_frame_get_register): Update.
2903 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
2904 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
2905 Update.
2906 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
2907 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
2908 Update.
2909 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
2910 Update.
2911 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
2912 Update.
2913 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
2914 Update.
2915 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
2916 Update.
2917 * s390-tdep.c (s390_frame_prev_register)
2918 (s390_stub_frame_prev_register)
2919 (s390_sigtramp_frame_prev_register): Update.
2920 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
2921 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
2922 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
2923 * m88k-tdep.c (m88k_frame_prev_register)
2924 * m68hc11-tdep.c (m68hc11_frame_prev_register)
2925 * m32r-tdep.c (m32r_frame_prev_register): Update.
2926 * hppa-tdep.c (hppa_frame_prev_register_helper)
2927 * frv-tdep.c (frv_frame_prev_register): Update.
2928 * d10v-tdep.c (d10v_frame_prev_register): Update.
2929 * cris-tdep.c (cris_frame_prev_register): Update.
2930 * avr-tdep.c (avr_frame_prev_register): Update.
2931 * arm-tdep.c (arm_prologue_prev_register)
2932 (arm_sigtramp_prev_register): Update.
2933
c1bf6f65
AC
29342004-07-31 Andrew Cagney <cagney@gnu.org>
2935
2936 * frame.h (legacy_saved_regs_unwind)
2937 (legacy_frame_chain_valid, legacy_frame_p)
2938 (enum frame_type): Delete UNKNOWN_FRAME.
01fbbd97
AC
2939 * dummy-frame.c (dummy_frame_this_id): Simplify.
2940 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
c1bf6f65
AC
2941 * frame.c (struct frame_info): Delete the field "type".
2942 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
2943 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
2944 (legacy_saved_regs_unwind, legacy_frame_p)
2945 (frame_type_from_pc): Delete.
2946 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
2947 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
2948
dc856692
MK
29492004-07-31 Mark Kettenis <kettenis@gnu.org>
2950
5a5effe1
MK
2951 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
2952 indentation.
2953
d4fd50a6
MK
2954 * mips-nat.c: Remove file.
2955 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
2956 (mips-nat.o): Remove dependency.
2957
2689df5a
MK
2958 * infptrace.c: Update copyright year.
2959 (fetch_register): Pass NULL in regcache_raw_supply call instead of
2960 explicitly setting the buffer to all zeroes.
2961
dc856692
MK
2962 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
2963 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
2964
763910e0
AC
29652004-07-30 Andrew Cagney <cagney@gnu.org>
2966
2967 * GDB 6.2 released from gdb_6_2-branch.
2968
0b66e38c
EZ
29692004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
2970
2971 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
2972
2973 * exec.c (exec_file_attach):
2974 * nto-tdep.c (nto_find_and_open_solib):
2975 * pa64solib.c (pa64_solib_sizeof_symbol_table):
2976 * solib.c (solib_open):
2977 * somsolib.c (som_solib_sizeof_symbol_table):
2978 * source.c (is_regular_file, openp, open_source_file):
2979 * symfile.c (symfile_bfd_open):
2980 * wince.c (upload_to_device): Differentiate between the search for
2981 binary and source files.
2982
be7d7357
AC
29832004-07-30 Andrew Cagney <cagney@gnu.org>
2984
2985 * complaints.c (_initialize_complaints): Pass NULL to
2986 add_setshow_zinteger_cmd for help_doc.
2987 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
2988
ddc9cd0f
AC
29892004-07-30 Andrew Cagney <cagney@gnu.org>
2990
2991 Fix PR i18n/761.
2992 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
2993 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
2994 $(PACKAGE).pot and update-po.
2995 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
2996 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
2997 (update-po): New rules.
2998 (localedir): Define using autoconf.
2999 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
3000 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
3001 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
3002 * configure.in: Generate CATALOGS and LINGUAS from contents of
3003 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
3004 * configure: Re-generate.
3005 * po/gdbtext: New file
3006
e92f3704
JG
30072004-07-30 Jerome Guitton <guitton@gnat.com>
3008
3009 * MAINTAINERS: Reorder Write After Approval list in alphabetical
3010 order.
3011
b0f35d58
DL
30122004-07-30 David Lecomber <dsl@sources.redhat.com>
3013
3014 * dwarf2read.c (read_file_scope): Set producer if attribute
3015 present.
3016 (struct dwarf2_cu): Added new member producer.
3017
ce7d4522
JG
30182004-07-30 Jerome Guitton <guitton@gnat.com>
3019
3020 * inflow.c (kill_command): release file handles in BFD.
3021 * exec.c (exec_file_attach): Ditto.
3022 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
3023
05ee07c7
AC
30242004-07-29 Andrew Cagney <cagney@gnu.org>
3025
3026 * PROBLEMS (mips-irix): Note that it is broken.
3027
62eceb47
AC
30282004-07-29 Andrew Cagney <cagney@gnu.org>
3029
e57b8d41
AC
3030 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
3031 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
3032
d334389b
AC
3033 * config/xm-nbsd.h: Delete file.
3034 * config/arm/xm-nbsd.h: Delete file.
3035 * config/i386/xm-nbsd.h: Delete file.
3036 * config/ns32k/xm-nbsd.h: Delete file.
3037 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
3038 * config/i386/nbsdelf.mh (XM_FILE): Delete.
3039 * config/i386/nbsdaout.mh (XM_FILE): Delete.
3040 * config/arm/nbsdelf.mh (XM_FILE): Delete.
3041 * config/arm/nbsdaout.mh (XM_FILE): Delete.
3042
e910f676
AC
3043 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
3044 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
3045 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
3046 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
3047 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
3048 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
3049
6fa856b9
AC
3050 * config/powerpc/xm-linux.h: Delete empty file.
3051 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
3052 * config/powerpc/linux.mh (XM_FILE): Delete.
3053 * config/m68k/xm-linux.h: Delete empty file.
3054 * config/m68k/linux.mh (XM_FILE): Delete.
3055 * config/ia64/xm-linux.h: Delete empty file.
3056 * config/ia64/linux.mh (XM_FILE): Delete.
3057 * config/arm/xm-linux.h: Delete empty file.
3058 * config/arm/linux.mh (XM_FILE): Delete.
3059
471ae5ae
AC
3060 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3061 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
3062 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3063 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
3064 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3065 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
3066 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
3067 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
3068
62eceb47
AC
3069 * config/m68k/xm-m68k.h: Delete file.
3070 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
3071 copyright.
3072 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
3073 * config/pa/xm-linux.h: Delete empty file.
3074 * config/pa/linux.mh (XM_FILE): Delete.
3075 * config/i386/xm-i386.h: Delete empty file.
3076 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
3077 "i386/xm-i386.h".
3078 * config/i386/obsdaout.mh (XM_FILE): Delete.
3079 * config/i386/obsd64.mh (XM_FILE): Delete.
3080 * config/i386/fbsd64.mh (XM_FILE): Delete.
3081 * config/i386/nto.mh (XM_FILE): Delete.
3082 * config/i386/obsd.mh (XM_FILE): Delete.
3083 * config/i386/linux64.mh (XM_FILE): Delete.
3084 * config/i386/linux.mh (XM_FILE): Delete.
3085 * config/i386/i386sol2.mh (XM_FILE): Delete.
3086 * config/i386/i386gnu.mh (XM_FILE): Delete.
3087 * config/i386/fbsd.mh (XM_FILE): Delete.
3088 * config/i386/nbsd64.mh (XM_FILE): Delete.
3089
c35f4ffc
AC
30902004-07-29 Andrew Cagney <cagney@gnu.org>
3091
3092 * config/pa/xm-linux.h: Do not include "floatformat.h".
3093 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3094 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3095 * config/i386/xm-i386.h: Do not include "floatformat.h".
3096 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3097 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
3098 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3099 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
3100 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
3101 GDB_HOST_LONG_DOUBLE_FORMAT instead.
3102 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
3103 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
3104 * configure, config.in: Regenerate.
3105 * configure.host (gdb_host_float_format, gdb_host_double_format)
3106 (gdb_host_long_double_format): Set according to the host.
3107
624a44a3
AC
31082004-07-29 Andrew Cagney <cagney@gnu.org>
3109
3110 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
3111
0dea2468
AC
31122004-07-28 Andrew Cagney <cagney@gnu.org>
3113
3114 * PROBLEMS: Mention threads/1650.
3115 * NEWS: Mention the NPTL fix.
3116
b3f42336
AC
31172004-07-28 Andrew Cagney <cagney@gnu.org>
3118
3119 * cli/cli-decode.c (add_setshow_cmd): Delete function.
3120 (add_setshow_cmd_full): Make static.
3121 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
3122 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
3123 * cli/cli-decode.c (add_setshow_filename_cmd)
3124 (add_setshow_string_cmd): New functions.
3125 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
3126 * mips-tdep.c (_initialize_mips_tdep): Update.
3127 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
3128 * cli/cli-logging.c (_initialize_cli_logging): Update.
3129 * complaints.c (_initialize_complaints): Update.
3130 * remote.c (_initialize_remote): Update.
3131
3b64bf98
AC
31322004-07-28 Andrew Cagney <cagney@gnu.org>
3133
3134 * cli/cli-decode.c (add_setshow_zinteger_cmd)
3135 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
3136 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
3137 print parameters. Make string parameters constant.
3138 * command.h: Update. Update copyright.
3139 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
3140 * observer.c (_initialize_observer): Ditto.
3141 * frame.c (_initialize_frame): Ditto.
3142 * complaints.c (_initialize_complaints): Ditto.
3143 * maint.c (_initialize_maint_cmds): Ditto.
3144 * target.c (initialize_targets): Ditto.
3145 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
3146 * infcall.c (_initialize_infcall): Ditto.
3147 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3148 * m32r-rom.c (_initialize_m32r_rom): Ditto.
3149 * remote-rdi.c (_initialize_remote_rdi): Ditto.
3150 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
3151 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3152
e9667a65
AC
31532004-07-28 Andrew Cagney <cagney@gnu.org>
3154
54a5b07d
AC
3155 * gdbtypes.c (lookup_primitive_typename): Delete function.
3156 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
3157 * ada-lex.l: Use language_lookup_primitive_type_by_name.
3158 * gdbtypes.c (lookup_typename): Ditto.
3159 * f-exp.y (yylex): Ditto.
3160 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
3161
e9667a65
AC
3162 * scm-lang.c (c_builtin_types): Delete extern declaration.
3163 (scm_language_defn): Replace
3164 string_char_type and primitive_type_vector with
3165 la_language_arch_info.
3166 * jv-lang.c (java_language_defn): Replace
3167 string_char_type and primitive_type_vector with
3168 la_language_arch_info.
3169 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
3170 c_builtin_types in comment.
3171 * c-lang.h (struct language_arch_info): Declare opaque.
3172 (c_language_arch_info): Declare.
3173 (c_builtin_types): Delete declaration.
3174 * c-lang.c (c_language_arch_info): Set string_char_type to
3175 builtin_char, not builtin_true_char. Make global.
3176 (c_builtin_types): Delete array.
3177 (asm_language_defn, minimal_language_defn): Replace
3178 string_char_type and primitive_type_vector with
3179 la_language_arch_info.
3180
685419e2
AC
31812004-07-28 Andrew Cagney <cagney@gnu.org>
3182
3183 * gdbtypes.h (struct builtin_type): Rename true_char to
3184 builtin_true_char.
3185 * gdbtypes.c (gdbtypes_post_init): Update.
3186 * c-lang.c (arch_info): New function.
3187 (enum c_primitive_types): New enum.
3188 (c_language_defn): Instead of string_char_type and
3189 primitive_type_vector set la_language_arch_info.
3190
5a44ea29
AC
31912004-07-28 Andrew Cagney <cagney@gnu.org>
3192
3193 * language.h (struct language_arch_info): Fix typo
3194 s/primative/primitive/.
3195 * gdbtypes.c (lookup_primitive_typename): Ditto.
3196 * language.c (language_lookup_primitive_type_by_name)
3197 (unknown_language_arch_info): Ditto.
3198
f290d38e
AC
31992004-07-27 Andrew Cagney <cagney@gnu.org>
3200
3201 * defs.h (enum language): Add nr_languages.
3202 * language.h (struct language_arch_info): Define.
3203 (struct language_defn): Add la_language_arch_info.
3204 (language_lookup_primative_type_by_name): Declare.
3205 (language_string_char_type): Declare.
3206 * language.c (_initialize_language, language_gdbarch_post_init)
3207 (struct language_gdbarch, language_gdbarch_data): Implement
3208 per-architecture language information.
3209 (unknown_language_arch_info, language_string_char_type)
3210 (language_lookup_primative_type_by_name): New functions.
3211 (unknown_language_defn, auto_language_defn)
3212 (local_language_defn): Set la_language_arch_info to
3213 unknown_language_arch_info.
3214 (unknown_builtin_types): Delete.
3215 * gdbtypes.c (lookup_primitive_typename): Use
3216 language_lookup_primative_type_by_name.
3217 (create_string_type): Use language_string_char_type.
3218 * values.c (value_from_string): Use language_string_char_type.
3219 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
3220 * p-lang.c (pascal_language_defn): Ditto.
3221 * m2-lang.c (m2_language_defn): Ditto.
3222 * jv-lang.c (java_language_defn): Ditto.
3223 * objc-lang.c (objc_language_defn): Ditto.
3224 * f-lang.c (f_language_defn): Ditto.
3225 * c-lang.c (c_language_defn, cplus_language_defn)
3226 (asm_language_defn, minimal_language_defn): Ditto.
3227
000177f0
AC
32282004-07-27 Andrew Cagney <cagney@gnu.org>
3229
3230 * gdbtypes.h (struct builtin_type): Declare.
3231 (builtin_type): Declare.
3232 * d10v-tdep.c (d10v_register_type): Use builtin_type.
3233 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
3234 (gdbtypes_post_init): New function.
3235 (builtin_type): New function.
3236
e22f895c
KI
32372004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
3238
3239 * remote-m32r-sdi.c: Fix breakpoint bug.
3240 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
3241 recv_char_data, recv_long_data): New functions to replace communication
3242 sequences.
3243
536517dd
MC
32442004-07-26 Michael Chastain <mec.gnu@mindspring.com>
3245
3246 Document PR threads/1650.
3247 * PROBLEMS (Threads): Document problem with many threads
3248
a0a44d18
AC
32492004-07-26 Andrew Cagney <cagney@gnu.org>
3250
3251 * gdb-mi.el: Move from here ...
3252 * mi/gdb-mi.el: ... to here.
3253
7ac4ac06
AC
32542004-07-26 Andrew Cagney <cagney@gnu.org>
3255
3256 Problem reported by Ashley Pittman <ashley@quadrics.com>.
3257 * main.c (captured_main): When in batch mode always detach.
3258
a1b461bf
AC
32592004-07-26 Andrew Cagney <cagney@gnu.org>
3260
3261 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
3262 and h8300 as broken.
3263 * NEWS: END-OF-LIFE frame compatibility module.
3264 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
3265 specific comments.
3266
cb1a6d5f
AC
32672004-07-26 Andrew Cagney <cagney@gnu.org>
3268
3269 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
3270 * xcoffsolib.c (_initialize_xcoffsolib): Update.
3271 * wince.c (_initialize_wince): Update.
3272 * win32-nat.c (_initialize_win32_nat): Update.
3273 * varobj.c (_initialize_varobj): Update.
3274 * valops.c (_initialize_valops): Update.
3275 * utils.c (initialize_utils, initialize_utils): Update.
3276 * tui/tui-win.c (_initialize_tui_win): Update.
3277 * top.c (init_main): Update.
3278 * symfile.c (_initialize_symfile): Update.
3279 * source.c (_initialize_source): Update.
3280 * somsolib.c (_initialize_som_solib): Update.
3281 * solib.c (_initialize_solib): Update.
3282 * solib-frv.c (_initialize_frv_solib): Update.
3283 * serial.c (_initialize_serial): Update.
3284 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
3285 * remote.c (_initialize_remote, _initialize_remote): Update.
3286 * remote-vx.c (_initialize_vx): Update.
3287 * remote-utils.c (_initialize_sr_support): Update.
3288 * remote-sds.c (_initialize_remote_sds): Update.
3289 * remote-mips.c (_initialize_remote_mips): Update.
3290 * remote-e7000.c (_initialize_remote_e7000): Update.
3291 * proc-api.c (_initialize_proc_api): Update.
3292 * printcmd.c: Update.
3293 * parse.c (_initialize_parse): Update.
3294 * pa64solib.c (_initialize_pa64_solib): Update.
3295 * p-valprint.c (_initialize_pascal_valprint): Update.
3296 * monitor.c (_initialize_remote_monitors): Update.
3297 * mips-tdep.c (_initialize_mips_tdep): Update.
3298 * mcore-tdep.c (_initialize_mcore_tdep): Update.
3299 * maint.c (_initialize_maint_cmds): Update.
3300 * lin-lwp.c (_initialize_lin_lwp): Update.
3301 * language.c (_initialize_language): Update.
3302 * kod.c (_initialize_kod): Update.
3303 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
3304 * i386-tdep.c (_initialize_i386_tdep): Update.
3305 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
3306 * gdbarch.sh: Update.
3307 * gdbarch.c: Re-generate.
3308 * gdb-events.sh: Update.
3309 * gdb-events.c: Re-generate.
3310 * frame.c (_initialize_frame): Update.
3311 * exec.c: Update.
3312 * demangle.c (_initialize_demangler): Update.
3313 * dcache.c (_initialize_dcache): Update.
3314 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
3315 * cp-valprint.c (_initialize_cp_valprint): Update.
3316 * corefile.c (_initialize_core): Update.
3317 * command.h: Update.
3318 * cli/cli-decode.h: Update.
3319 * cli/cli-cmds.c (init_cli_cmds): Update.
3320 * charset.c (_initialize_charset): Update.
3321 * breakpoint.c (_initialize_breakpoint): Update.
3322 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
3323 * alpha-tdep.c (_initialize_alpha_tdep): Update.
3324 * aix-thread.c (_initialize_aix_thread): Update.
3325
b4632131
MK
33262004-07-24 Mark Kettenis <kettenis@gnu.org>
3327
3328 Partial fix for PR backtrace/1718.
3329 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
3330 that GCC migrates into the prolugue. Don't handle any
3331 instructions that clobber %ebx.
3332
822c9732
AC
33332004-07-23 Andrew Cagney <cagney@gnu.org>
3334
3335 Use regcache_raw_collect instead of regcache_collect.
3336 * regcache.h (regcache_collect): Delete declaration.
3337 * regcache.c (regcache_colect): Delete function.
3338 * win32-nat.c (do_child_store_inferior_registers): Update.
3339 * sol-thread.c (sol_thread_store_registers): Update.
3340 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
3341 * rs6000-nat.c (store_register): Update.
3342 * remote.c (store_register_using_P, remote_store_registers): Update.
3343 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
3344 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
3345 (fill_vrregset, store_spe_registers, fill_gregset)
3346 (fill_gregset): Update.
3347 * nto-procfs.c (procfs_store_registers): Update.
3348 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
3349 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
3350 * m68klinux-nat.c (store_register, fill_gregset): Update.
3351 * m68k-tdep.c (fill_gregset): Update.
3352 * infptrace.c (store_register): Update.
3353 * i386-nto-tdep.c (i386nto_regset_fill): Update.
3354 * i386-linux-nat.c (store_register, fill_gregset): Update.
3355 * hppa-linux-nat.c (fill_gregset): Update.
3356 * go32-nat.c (store_register): Update.
3357 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
3358 (store_fp_regs): Update.
3359 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
3360 (store_nwfpe_extended, store_fpregister, store_fpregs)
3361 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
3362 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
3363 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
3364 (store_regs_user_thread, store_regs_kernel_thread): Update.
3365
32b05c07
MK
33662004-07-24 Mark Kettenis <kettenis@gnu.org>
3367
3368 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
3369 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
3370 encoding.
3371 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
3372 member of `struct comp_unit'.
3373
8567c30f
AC
33742004-07-23 Andrew Cagney <cagney@gnu.org>
3375
3376 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
3377 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
3378
f6da8dd8
MH
33792004-07-23 Martin Hunt <hunt@redhat.com>
3380 Kevin Buettner <kevinb@redhat.com>
3381
3382 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
3383 alignment was being added to the offset instead of multiplied.
3384
bd921882
MK
33852004-07-23 Mark Kettenis <kettenis@gnu.org>
3386
24f033e8
MK
3387 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
3388 changed signal trampoline in OpenBSD 3.5-current.
3389
90f3cecd
MK
3390 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
3391 <machine/pcb.h> and "bsd-kvm.h".
3392 (sparc64nbsd_supply_pcb): New function.
3393 (_initialize_sparc64nbsd_nat): Renamed from
3394 _initialize_sparcnbsd_nat. Enable libkvm interface.
3395 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
3396 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
3397 (LOADLIBES): New variable.
3398
a4954a62
MK
3399 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
3400
bd921882
MK
3401 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
3402
23a6d369
AC
34032004-07-21 Andrew Cagney <cagney@gnu.org>
3404
3405 Use regcache_raw_supply instead of supply_register.
3406 * regcache.h (supply_register): Delete declaration.
3407 * regcache.c (supply_register): Delete function.
3408 * wince.c (do_child_fetch_inferior_registers): Update.
3409 * win32-nat.c (do_child_fetch_inferior_registers)
3410 (fetch_elf_core_registers): Update.
3411 * v850ice.c (v850ice_fetch_registers): Update.
3412 * thread-db.c (thread_db_store_registers): Update.
3413 * sol-thread.c (sol_thread_store_registers): Update.
3414 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
3415 * rs6000-nat.c (fetch_register): Update.
3416 * rom68k-rom.c (rom68k_supply_one_register): Update.
3417 * remote.c (remote_wait, remote_async_wait): Update.
3418 * remote-st.c (get_hex_regs): Update.
3419 * remote-sim.c (gdbsim_fetch_register): Update.
3420 * remote-sds.c (sds_fetch_registers): Update.
3421 * remote-rdp.c (remote_rdp_fetch_register): Update.
3422 * remote-rdi.c (arm_rdi_fetch_registers): Update.
3423 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
3424 * remote-m32r-sdi.c (m32r_fetch_register): Update.
3425 * remote-hms.c (init_hms_cmds): Update.
3426 * remote-est.c (init_est_cmds): Update.
3427 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
3428 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
3429 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
3430 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
3431 (fetch_register, supply_vrregset, supply_vrregset)
3432 (fetch_spe_registers): Update.
3433 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
3434 * monitor.c (monitor_supply_register): Update.
3435 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
3436 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
3437 (mipsnbsd_supply_fpreg): Update.
3438 * mips-nat.c (fetch_inferior_registers)
3439 (fetch_core_registers): Update.
3440 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
3441 (supply_fpregset, mips64_supply_gregset)
3442 (mips64_supply_fpregset): Update.
3443 * m68klinux-nat.c (fetch_register, supply_gregset)
3444 (supply_fpregset): Update.
3445 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
3446 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
3447 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
3448 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
3449 * infptrace.c (fetch_register): Update.
3450 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
3451 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
3452 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
3453 (gnu_fetch_registers, gnu_store_registers): Update.
3454 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
3455 * i386-linux-nat.c (fetch_register, supply_gregset)
3456 (dummy_sse_values): Update.
3457 * hpux-thread.c (hpux_thread_fetch_registers): Update.
3458 * hppah-nat.c (fetch_register): Update.
3459 * hppa-linux-nat.c (fetch_register, supply_gregset)
3460 (supply_fpregset): Update.
3461 * go32-nat.c (fetch_register): Update.
3462 * dve3900-rom.c (fetch_bitmapped_register)
3463 (_initialize_r3900_rom): Update.
3464 * cris-tdep.c (supply_gregset): Update.
3465 * abug-rom.c (init_abug_cmds): Update.
3466 * core-aout.c (fetch_core_registers): Update.
3467 * armnbsd-nat.c (supply_gregset, supply_fparegset)
3468 (fetch_register, fetch_fp_register): Update.
3469 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
3470 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
3471 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
3472 * alphanbsd-tdep.c (fetch_core_registers): Update.
3473 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
3474 * alpha-nat.c (fetch_osf_core_registers)
3475 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
3476 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
3477 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
3478
73cc75f3
AC
34792004-07-21 Andrew Cagney <cagney@gnu.org>
3480
3481 * PROBLEMS: Mention breakpoints/1702.
3482 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
3483 that is known to work.
3484
a53c66de
AC
34852004-07-21 Andrew Cagney <cagney@gnu.org>
3486
3487 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
3488 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
3489 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
3490 (handle_inferior_event): Wrap call to deprecated
3491 IGNORE_HELPER_CALL in #ifdef.
3492 * config/mips/tm-nbsd.h: Update.
3493
708ff411
JB
34942004-07-20 Jim Blandy <jimb@redhat.com>
3495
412b3060
JB
3496 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
3497 bfd_mach_ppc has no segment registers.
3498
13ac140c
JB
3499 Include PowerPC SPR numbers for special-purpose registers.
3500 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
3501 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
3502 new member in initializer.
3503 (S, S4, SN4, S64): New macros for defining special-purpose
3504 registers.
3505 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
3506 registers_403, registers_403GC, registers_505, registers_860,
3507 registers_601, registers_602, registers_603, registers_604,
3508 registers_750, registers_e500): Use them.
3509
708ff411
JB
3510 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
3511 replace references with expression used to initialize variable.
3512
1f602b35
AC
35132004-07-20 Andrew Cagney <cagney@gnu.org>
3514
3515 * breakpoint.c (deprecated_read_memory_nobpt): Rename
3516 read_memory_nobpt.
3517 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
3518 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
3519 (s390_sigtramp_frame_sniffer): Update.
3520 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
3521 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
3522 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
3523 (mips32_fetch_instruction): Update.
3524 * mcore-tdep.c (get_insn): Update.
3525 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
3526 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
3527 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
3528 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3529 (i386_linux_rt_sigtramp_start): Update.
3530 * i386-linux-nat.c (child_resume): Update.
3531 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
3532 * hppa-linux-tdep.c (insns_match_pattern): Update.
3533 * gdbcore.h: Update.
3534 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
3535 * frame.c (safe_frame_unwind_memory): Update.
3536 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
3537 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
3538 * alpha-tdep.c (alpha_read_insn): Update.
3539
2cd8546d
AC
35402004-07-20 Andrew Cagney <cagney@gnu.org>
3541
3542 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
3543 containing both bytes and mask. Add "frame_type".
3544 * tramp-frame.c (tramp_frame_start): Update.
3545 (tramp_frame_prepend_unwinder): Update.
3546 * mips-linux-tdep.c (mips_linux_o32_sigframe)
3547 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
3548 (mips_linux_n64_rt_sigframe): Update. Make "static const".
3549 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
3550
f928dd62
EZ
35512004-07-19 Eli Zaretskii <eliz@gnu.org>
3552
3553 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
3554 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
3555 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
3556 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
3557
d5c560f7
AC
35582004-07-17 Andrew Cagney <cagney@gnu.org>
3559
860660cb
AC
3560 * NEWS, PROBLEMS: Update for 6.2.
3561
8c266f54
AC
3562 * README: Update to 6.2.
3563
a552edd9
AC
3564 * utils.c (xvasprintf): Call xstrvprintf.
3565
c4a172b5
AC
3566 * parse.c: Update copyright.
3567 (null_post_parser): Eliminate ARGSUSED.
3568
da745b36
AC
3569 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
3570 * tui/tui-win.c (tui_get_cmd_list): Ditto.
3571 * symfile-mem.c (_initialize_symfile_mem): Ditto.
3572
9cbc6ef0
AC
3573 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
3574 * ppc-linux-nat.c: Use "Linux kernel".
3575 * hppa-linux-tdep.c: Use GNU/Linux.
3576 * hppa-linux-nat.c: Use GNU/Linux.
3577 * dwarfread.c: Add [sic] to use of Linux.
3578
1b89295f
AC
3579 * hppa-linux-nat.c: Do not include <string.h>.
3580 (supply_fpregset): Remove "register" attribute.
3581
d5c560f7
AC
3582 * solib-frv.c (fetch_loadmap): Use xfree, not free.
3583
7ddd7709
MK
35842004-07-17 Mark Kettenis <kettenis@gnu.org>
3585
b1d19a62
MK
3586 * configure.in: Define _MSE_INT_H on Solaris 9 too.
3587 * configure, config.in: Regenerated.
3588
7ddd7709
MK
3589 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
3590 "bsd-kvm.h".
3591 (vaxbsd_supply_pcb): New function.
3592 (_initialize_vaxbsd_nat): New prototype and function.
3593 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
3594 solib-sunos.o.
3595 (LOADLIBES): New variable.
3596 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3597 (LOADLIBES): New variable.
3598 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3599 (LOADLIBES): New variable.
3600 * Makefile.in (vaxbsd-nat.o): Update dependencies.
3601
2c07db7a
AC
36022004-07-16 Andrew Cagney <cagney@gnu.org>
3603
3604 * defs.h (event_loop_p): Replace variable declaration with macro,
3605 always 1.
3606 * main.c (captured_main): Delete options "-async" and "-noasync".
3607 (event_loop_p): Delete variable.
3608 * NEWS: Mention that "-async" and "-noasync" were removed.
3609
717eb1cf
AC
36102004-07-16 Andrew Cagney <cagney@gnu.org>
3611
3612 * remote-m32r-sdi.c: Re-indent.
3613
c101bc14
JB
36142004-07-16 Jim Blandy <jimb@redhat.com>
3615
5109a438
JB
3616 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
3617 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
3618 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
3619 missing MPC823 SPRs.
3620 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
3621 incorrect. (This was corrected in GDB's register name tables on
3622 2004-07-14.)
3623
c101bc14
JB
3624 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
3625 should be "esasrr" ("ESA Save and Restore Register").
3626
7ce450bd
AC
36272004-07-16 Andrew Cagney <cagney@gnu.org>
3628
3629 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
3630 calls, no longer applicable. Update comments and rename parameter
3631 "step_frame" to "return_frame".
3632
ca73dd9d
AC
36332004-07-16 Andrew Cagney <cagney@gnu.org>
3634
3635 * frame.c (fprint_field): New function.
3636 (fprint_frame_id): Use fprint_field.
3637
31941f6d
JB
36382004-07-15 Joel Brobecker <brobecker@gnat.com>
3639
3640 * ada-lang.c (ada_language_defn): Remove commented out code.
3641
f86a7158
JB
36422004-07-15 Jim Blandy <jimb@redhat.com>
3643
3644 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
3645 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
3646
c24791ec
JB
36472004-07-14 Jim Blandy <jimb@redhat.com>
3648
29bb1356
JB
3649 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
3650
cc98b5cc
JB
3651 * ppc-tdep.h (ppc_num_vrs): New enum constant.
3652
8f088af7
JB
3653 * ppc-tdep.h (ppc_num_srs): New enum constant.
3654
0ea0ec5f
JB
3655 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
3656 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
3657 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
3658 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
3659 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
3660 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
3661 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
3662 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
3663 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
3664 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
3665 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
3666 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
3667 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
3668 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
3669 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
3670 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
3671 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
3672 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
3673 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
3674 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
3675 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
3676 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
3677 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
3678 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
3679 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
3680 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
3681 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
3682 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
3683 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
3684 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
3685 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
3686 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
3687 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
3688 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
3689 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
3690 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
3691 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
3692 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
3693 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
3694 special-purpose register numbers.
3695
c24791ec
JB
3696 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
3697 manual mentions 'md_twb', but many mention 'm_twb', and at that
3698 point in the register list.)
3699
d833db3b
AC
37002004-07-14 Andrew Cagney <cagney@gnu.org>
3701
3702 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
3703 instead of "internal-error".
3704
080228b2
JB
37052004-07-10 Joel Brobecker <brobecker@gnat.com>
3706
3707 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
3708 that was inserted inside a comment.
3709
c268433a
RC
37102004-07-10 Randolph Chung <tausq@debian.org>
3711
3712 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
3713 function.
3714 (hppa_hpux_push_dummy_code): New function.
3715 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
3716 Set find_global_pointer method.
3717
71009278
MK
37182004-07-10 Mark Kettenis <kettenis@gnu.org>
3719
3720 * NEWS: Mention BSD libkvm interface.
3721
b2fa5097
MS
37222004-07-10 Michael Snyder <msnyder@redhat.com>
3723
3724 * symfile.c (generic_load): Comment typo.
3725 * stack.c (get_selected_block): Ditto.
3726 * regcache.c (regcache_cooked_read): Ditto.
3727 * monitor.c (monitor_debug): Ditto.
3728 * mips-tdep.c (mips_read_pc): Ditto.
3729 * i386-linux-nat.c (ps_get_thread_area): Ditto.
3730 * gdb_mbuild.sh: Ditto.
3731 * gdbarch.sh: Ditto.
3732 * gdbarch.h: Ditto.
3733
c3e5cd34
PH
37342004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
3735
8a2225b2
PH
3736 * ada-tasks.c: Remove file.
3737
c3e5cd34
PH
3738 Remove ARI problems:
3739
3740 * ada-exp.y (write_var_from_sym): Reformat to put operator at
3741 beginning of line.
3742
3743 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
3744 Add comment.
3745 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
3746 (MIN_OF_SIZE): Rename min_of_size. Add comment.
3747 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
3748 (UMIN_OF_SIZE): Remove.
3749 (max_of_type): New function to replace orphan macro in gdbtypes.h
3750 (min_of_type): Ditto.
3751 (discrete_type_high_bound): Use max_of_type.
3752 (discrete_type_low_bound): Use min_of_type.
3753 (possible_user_operator_p): Move operator to beginning of line.
3754 (ada_is_variant_part): Ditto.
3755 (ensure_lval): Rewrite to avoid deprecated operations.
3756 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
3757 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
3758 (ada_enum_name): Remove assignments in 'if' statements.
3759 (build_ada_types): Add gdbarch parameter.
3760 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
3761 with gdbarch_data_register_post_init.
3762 Use add_setshow_uinteger_cmd rather than add_set_cmd and
3763 add_show_from_set.
3764
3765 * ada-valprint.c (inspect_it): Remove declaration.
3766 (repeat_count_threshold): Remove declaration.
3767 (ada_print_floating): Remove assignments in 'if' statements.
3768 (print_str): Move operator to beginning of line.
3769
61ce229a
JB
37702004-07-08 Jim Blandy <jimb@redhat.com>
3771
3772 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
3773
09bcec80
BR
37742004-07-08 Bob Rossi <bob@brasko.net>
3775
3776 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
3777
31c27f77
JJ
37782004-07-06 Jeff Johnston <jjohnstn@redhat.com>
3779
3780 * language.h (struct_language_defn): Add new function pointer:
3781 la_class_name_from_physname. Also add new prototype for
3782 language_class_name_from_physname.
3783 * language.c (language_class_name_from_physname): New function.
3784 (unk_lang_class_name): Ditto.
3785 (unknown_language_defn, auto_language_defn): Change
3786 to add unk_lang_class_name function pointer for
3787 la_class_name_from_physname.
3788 (local_language_defn): Ditto.
3789 * dwarf2read.c (guess_structure_name): Change to call
3790 language_class_name_from_physname.
3791 (determine_class_name): Ditto.
3792 * cp-support.c (class_name_from_physname): Renamed.
3793 (cp_class_name_from_physname): New name of function.
3794 * cp-support.h: Ditto.
3795 * c-lang.c (c_language_defn): Change to add NULL
3796 for class_name_from_physname function pointer.
3797 (cplus_language_defn): Change to add cp_class_name_from_physname.
3798 * jv-lang.c (java_class_name_physname): New function.
3799 (java_find_last_component): New static routine.
3800 (java_language_defn): Add java_class_name_from_physname pointer.
3801 * ada-lang.c (ada_language_defn): Change to add NULL
3802 for class_name_from_physname function pointer.
3803 * f-lang.c (f_language_defn): Ditto.
3804 * m2-lang.c (m2_language_defn): Ditto.
3805 * objc-lang.c (objc_language_defn): Ditto.
3806 * p-lang.c (pascal_language_defn): Ditto.
3807 * scm-lang.c (scm_language_defn): Ditto.
3808
ee28ca0f
AC
38092004-07-06 Andrew Cagney <cagney@gnu.org>
3810
3811 Patch from Bart Robinson.
3812 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
3813 (O_LARGEFILE): Define to 0, if not defined.
3814
fdb1bf9d
MK
38152004-07-03 Mark Kettenis <kettenis@gnu.org>
3816
cb162ff6
MK
3817 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
3818 <machine/pcb.h> and "bsd-kvm.h".
3819 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
3820 (m68kbsd_supply_pcb): New function.
3821 (_initialize_m68kbsd_nat): New prototype and function.
3822 * Makefile.in (m68kbsd-nat.o): Update dependencies.
3823 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3824 (LOADLIBES): New variable.
3825 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
3826 (LOADLIBES): New variable.
3827
fdb1bf9d
MK
3828 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
3829
963c4174
MK
38302004-07-03 Mark Kettenis <kettenis@gnu.org>
3831
3832 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
3833 <sys/proc.h>.
3834 (bsd_kvm_cmdlist): New variable.
3835 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
3836 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
3837 command and "kvm proc" command.
3838 * Makefile.in (bsd-kvm.o): Update dependencies.
3839
533f1d8f
MK
38402004-07-02 Mark Kettenis <kettenis@gnu.org>
3841
3842 * osabi.c: Update copyright year.
3843 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
3844 notes if EI_OSABI is set to ELFOSABI_HPUX.
3845
6780dcde
MS
38462004-07-01 Michael Snyder <msnyder@redhat.com>
3847
3848 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
3849 that seems to have gotten whacked out of line.
3850
67bebe79
MK
38512004-07-01 Mark Kettenis <kettenis@gnu.org>
3852
3853 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
3854 code.
3855
0b5d8877
PH
38562004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3857
3858 * ada-lang.c (decode_packed_array): Minor change to comment.
3859 (ada_value_slice_ptr): New function.
3860 (ada_value_slice): New function.
3861 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
3862 test. Don't know why it is there.
3863 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
3864 to avoid dereferencing huge arrays from which one is slicing.
3865 (empty_array): Correct to return an array rather than
3866 a subrange value.
3867 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
3868 on empty arrays (let'em use 'FIRST instead).
3869
19c1ef65
PH
38702004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3871
3872 Address complaints from gdb_ari.sh:
3873
3874 * ada-exp.y: Include gdb_string.h rather than string.h.
3875 (convert_char_literal): Reformat declaration.
3876 * ada-lang.h: Include opaque struct declaration for struct frame_info.
3877 * ada-lex.l: Change use of free to xfree (the macro would do so
3878 anyway, but this is harmless).
3879 Include gdb_string.h rather than string.h.
3880 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
3881
3882 * ada-lang.c (parse): Remove K&Rism in parameter list.
3883 (is_name_suffix): Correct Linux => GNU/Linux in comment.
3884
d81cbc94
MK
38852004-06-30 Mark Kettenis <kettenis@gnu.org>
3886
3887 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
3888 dead code.
3889
07681759
MK
38902004-06-30 Mark Kettenis <kettenis@gnu.org>
3891
3892 * alphabsd-nat.c: Update copyright year.
3893 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
3894
f7948b5f
JB
38952004-06-29 Joel Brobecker <brobecker@gnat.com>
3896
6e0cdd28 3897 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
f7948b5f
JB
3898 (i386_cygwin_in_solib_call_trampoline): New function.
3899 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
3900 and skip_trampoline_code gdbarch methods.
3901
8f113c9a
JB
39022004-06-29 Jim Blandy <jimb@redhat.com>
3903
3904 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
3905 name actually used in the dependency lists.
3906
97dc871c
RC
39072004-06-29 Randolph Chung <tausq@debian.org>
3908
3909 * NEWS (New native configurations): Mention GNU/Linux/hppa.
3910
47216e51
CV
39112004-06-29 Corinna Vinschen <vinschen@redhat.com>
3912
3913 * win32-nat.c (child_pid_to_exec_file): New function.
6780dcde 3914 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
47216e51
CV
3915 functionality.
3916
e623b504
AC
39172004-06-28 Andrew Cagney <cagney@gnu.org>
3918
3919 * defs.h (xstrvprintf): Declare.
3920 * utils.c (xstrvprintf): New function.
3921 (internal_vproblem, xstrprintf, xasprintf)
3922 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
3923 * serial.c (serial_printf): Ditto.
3924 * complaints.c (vcomplaint): Ditto.
3925
79acc9b3
CV
39262004-06-29 Corinna Vinschen <vinschen@redhat.com>
3927
3928 * infcmd.c (attach_command): Move call to target_terminal_inferior
3929 behind loading symbol table.
3930
1daf35d9
AC
39312004-06-28 Andrew Cagney <cagney@gnu.org>
3932
3933 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
3934 change - add back extern deprecated_ui_loop_hook declaration.
3935
b435e160
AC
39362004-06-28 Andrew Cagney <cagney@gnu.org>
3937
3938 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
3939 xstrprintf.
3940 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
3941 (c_value_of_variable): Ditto.
3942 * utils.c (internal_vproblem): Ditto.
3943 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
3944 * remote.c (add_packet_config_cmd): Ditto.
3945 * remote-rdp.c (rdp_set_command_line): Ditto.
3946 * regcache.c (regcache_dump): Ditto.
3947 * frv-tdep.c (new_variant, new_variant): Ditto.
3948 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
3949 (fbsd_find_memory_regions): Ditto.
3950 * breakpoint.c (create_thread_event_breakpoint)
3951 (create_breakpoints): Ditto.
3952 * aix-thread.c (aix_thread_pid_to_str): Ditto.
3953 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
3954
06d5cf63
JB
39552004-06-28 Joel Brobecker <brobecker@gnat.com>
3956
3957 * ada-lang.c: Re-indent file, with some massaging to help indent
3958 a bit when the result is otherwise really too ugly.
3959
35809fad
UW
39602004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3961
3962 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
3963 code_addr_p and special_addr_p to 'unsigned int'.
3964
40e20472
MK
39652004-06-27 Mark Kettenis <kettenis@gnu.org>
3966
3967 * i386v4-nat.c: Update copyright year and tweak comment.
3968 (regmap): Remove trailing comma.
3969 (supply_gregset): Rename local variable i to regnum. Call
3970 regcache_raw_supply instead of supply_register.
3971 (fill_gregset): Rename argument regno to regnum. Call
3972 regcache_raw_collect instead of regcache_collect.
3973
12b0b6de
UW
39742004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
3975
3976 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
3977 and special_addr_p.
3978 (frame_id_build, frame_id_build_special): Update comments.
3979 (frame_id_build_wild): New prototype.
3980 * frame.c (frame_id_build, frame_id_build_special): Fill in new
3981 struct frame_id fields.
3982 (frame_id_build_wild): New function.
3983 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
3984
47b42a3e
MK
39852004-06-27 Mark Kettenis <kettenis@gnu.org>
3986
3987 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
3988 hppabsd-tdep.c.
3989
1265e4aa
JB
39902004-06-27 Joel Brobecker <brobecker@gnat.com>
3991
3992 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
3993
76a01679
JB
39942004-06-27 Joel Brobecker <brobecker@gnat.com>
3995
3996 * ada-lang.c: Re-indent file.
3997
7aca490a
JB
39982004-06-27 Joel Brobecker <brobecker@gnat.com>
3999
4000 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
4001 (no_symtab_msg): Likewise.
4002
5e987968
AS
40032004-06-27 Andreas Schwab <schwab@suse.de>
4004
4005 * source.c: Fix whitespace.
4006
315c4276
MK
40072004-06-27 Mark Kettenis <kettenis@gnu.org>
4008
d15be926
MK
4009 * configure.in: Include <sys/param.h> for td_pcb test.
4010 * configure: Regenerated.
4011
9062529b
MK
4012 * i386nbsd-nat.c: New file.
4013 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
4014 i386obsd-nat.c and i386obsd-tdep.c.
4015 (i386nbsd-nat.o): New dependency.
4016 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
4017 bsd-kvm.o.
4018 (LOADLIBES): New variable.
4019 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
4020 bsd-kvm.o.
4021 (LOADLIBES): New variable.
4022
8010310e
MK
4023 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
4024 (LOADLIBES): New variable.
4025
efe1d7b9
MK
4026 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
4027 fetching from BSD_KVM_PADDR. Correctly lookup address for
4028 "_thread0".
4029
315c4276
MK
4030 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
4031 "bsd-kvm.h".
4032 (amd64fbsd_supply_pcb): New funcion.
4033 (_initialize_amd64fbsd_nat): Enable libkvm interface.
4034
399cfac6
DL
40352004-06-27 <david@streamline-computing.com>
4036
4037 Partial fix for PR cli/1056.
4038 * valarith.c: Check for zero in division and remainder
4039 evaluation.
4040
6235f9c8
MK
40412004-06-27 Mark Kettenis <kettenis@gnu.org>
4042
4043 * i387-tdep.c: Remove excessive whitespace.
4044
2726dafc
AC
40452004-06-26 Andrew Cagney <cagney@gnu.org>
4046
4047 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
4048 * gdb-events.h, gdb-events.c: Re-generate.
4049 * tui/tui-hooks.c (tui_install_hooks): Update.
4050 (tui_remove_hooks): Update.
4051 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
4052
0e56aeaf
MK
40532004-06-26 Mark Kettenis <kettenis@gnu.org>
4054
cb461069
MK
4055 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
4056 (gregset_t, fpregset_t): Remove typedefs.
4057 (REG_OFFSET): Rename argument.
4058 (amd64bsd_r_reg_offset): Rename from reg_offset.
4059 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
4060 Remove functions.
4061 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
4062 of reg_offset.
4063 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
4064
ecba89de
MK
4065 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
4066
4cd80476
MK
4067 * vax-tdep.c: Tweak comment.
4068
0e56aeaf
MK
4069 Add OpenBSD/hppa support.
4070 * NEWS (New native configurations): Mention OpenBSD/hppa.
4071 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
4072 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
4073 files.
4074 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
4075 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
4076 * configure.host: Add hppa*-*-openbsd*.
4077 * configure.tgt: Add hppa*-*-openbsd*.
4078
98bbd631
AC
40792004-06-25 Andrew Cagney <cagney@gnu.org>
4080
4081 * defs.h (deprecated_ui_loop_hook): Deprecated.
4082 * wince.c (child_wait): Update.
4083 * win32-nat.c (child_wait): Update.
4084 * v850ice.c (v850ice_wait): Update.
4085 * top.c (deprecated_ui_loop_hook): Update.
4086 * serial.h: Update.
4087 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
4088 (do_unix_readchar): Update.
4089 * ser-tcp.c (net_open): Update.
4090 * remote-sim.c (gdb_os_poll_quit): Update.
4091 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
4092
769d7dc4
AC
40932004-06-24 Andrew Cagney <cagney@gnu.org>
4094
4095 * defs.h (deprecated_pre_add_symbol_hook)
4096 (deprecated_post_add_symbol_hook): Deprecated.
4097 * symfile.c (symbol_file_add_with_addrs_or_offsets)
4098 (symbol_file_add_with_addrs_or_offsets): Update references.
4099
11c949aa
AC
41002004-06-24 Andrew Cagney <cagney@gnu.org>
4101
4102 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
4103 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
4104 * wince.c (ui_loop_hook): Delete extern declaration.
4105 * win32-nat.c (ui_loop_hook): Delete extern declaration..
4106 * v850ice.c (ui_loop_hook): Delete extern declaration..
4107 * ser-unix.c (ui_loop_hook): Delete extern declaration..
4108 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
4109 * remote-sim.c (ui_loop_hook): Delete extern declaration..
4110 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
4111 ui_loop_hook declaration.
4112
eedc19af
AC
41132004-06-24 Andrew Cagney <cagney@gnu.org>
4114
4115 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
4116 entry_func_highpc fields.
4117 * objfiles.c (init_entry_point_info): Do not clear
4118 entry_func_lowpc and entry_func_highpc.
4119 (objfile_relocate): Do not relocate entry_func_lowpc and
4120 entry_func_highpc.
4121 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
4122 entry_func_highpc.
4123 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
4124 entry_func_highpc.
4125 * blockframe.c (legacy_frame_chain_valid): Replace tests against
4126 entry_func_lowpc and entry_func_highpc with call to
4127 inside_entry_func.
4128
d47079be
MK
41292004-06-24 Mark Kettenis <kettenis@gnu.org>
4130
4131 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
4132 quad-precision floating point arguments in registers.
4133
2107e348
MK
41342004-06-24 Mark Kettenis <kettenis@gnu.org>
4135
4136 From Michael Mueller <m.mueller99@kay-mueller.de>:
4137 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
4138 account.
4139
46587c42
JJ
41402004-06-22 Jeff Johnston <jjohnstn@redhat.com>
4141
4142 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
4143 to -1.
4144 * breakpoint.c (bpstat_stop_status): Move check for ignoring
4145 untriggered watchpoints to a separate if clause. Update function
4146 comment regarding STOPPED_BY_WATCHPOINT argument.
4147
226f5cf4
JB
41482004-06-22 Jim Blandy <jimb@redhat.com>
4149
4150 * gdbarch.sh: Doc fix.
4151
f10683bb
MH
41522004-06-21 Martin Hunt <hunt@redhat.com>
4153 Kevin Buettner <kevinb@redhat.com>
4154
4155 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
4156 * mips-tdep.h (MIPS_SP_REGNUM): Define.
4157 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
4158 to set_gdbarch_sp_regnum(). Use cooked register number.
4159 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
4160
412d5987
AC
41612004-06-21 Andrew Cagney <cagney@gnu.org>
4162
4163 * gdbarch.sh: When the macro field is empty, do not generate a
4164 macro definition. When the macro field is "=", generate the macro
4165 name from the upper-case function name.
4166 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
4167 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
4168 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
4169 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
4170 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
4171 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
4172 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
4173 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
4174 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
4175 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
4176 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
4177 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
4178 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
4179 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
4180 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
4181 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
4182 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
4183 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
4184 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
4185 (DEPRECATED_USE_STRUCT_CONVENTION)
4186 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4187 (DEPRECATED_FRAME_INIT_SAVED_REGS)
4188 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
4189 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
4190 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
4191 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
4192 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
4193 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
4194 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
4195 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
4196 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
4197 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
4198 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
4199 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
4200 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
4201 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
4202 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
4203 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
4204
68908a3e
AC
42052004-06-21 Andrew Cagney <cagney@gnu.org>
4206
48f7351b
AC
4207 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
4208 macro name, and the function rather than macro value. Only wrap
4209 macro print statements in #ifdef. Move format logic to where it
4210 is needed.
4211 * gdbarch.c: Re-generate.
4212
283354d8
AC
4213 * gdbarch.sh (read): Delete "print_p" and "description", add
4214 "garbage_at_eol". Check for non-empty garbage at end-of-line.
4215 Delete references to print_p.
4216 (TARGET_ARCHITECTURE): Delete print predicate.
4217 * gdbarch.c: Re-generate.
4218
68908a3e
AC
4219 * gdbarch.sh: Check that multi-arch methods do not provide a
4220 macro.
4221 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
4222 (print_registers_info, print_float_info, print_vector_info)
4223 (adjust_breakpoint_address, remote_translate_xfer_address)
4224 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
4225 (address_class_type_flags_to_name, unwind_sp): Remove the macro
4226 name from the multi-arch definition.
4227
a2428dbe
AC
42282004-06-20 Andrew Cagney <cagney@gnu.org>
4229
4230 * gdbarch.sh: Sort by the function, instead of macro name.
4231 * gdbarch.c: Re-generate.
4232
750eb019
AC
42332004-06-20 Andrew Cagney <cagney@gnu.org>
4234
66d659b1
AC
4235 * gdbarch.sh: Use the function, instead of macro name in
4236 errors and the log file.
4237 (return_value): Remove stray ":" in spec.
4238
750eb019
AC
4239 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
4240 * gdbarch.h, gdbarch.c: Re-generate.
4241 * Makefile.in (arch-utils.o): Update dependencies.
4242 * values.c (using_struct_return): Move code calling
4243 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
4244 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
4245 to legacy_return_value, simplify.
4246 * infcmd.c (print_return_value): Move code calling
4247 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
4248 to legacy_return_value, simplify.
4249 * infcall.c (call_function_by_hand): Move code calling
4250 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
4251 * arch-utils.c: Update copyright. Include "gdbcore.h".
4252 (legacy_return_value): New function.
4253 * arch-utils.h: Update copyright.
4254 (legacy_return_value): Declare.
4255
b5622e8d
AC
42562004-06-20 Andrew Cagney <cagney@gnu.org>
4257
4258 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
4259 * gdbarch.h, gdbarch.c: Re-generate.
4260 * values.c (using_struct_return): Update call.
4261 * mcore-tdep.c: Update comment.
4262 * infcall.c (call_function_by_hand): Update comment.
4263 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4264 * arch-utils.h (always_use_struct_convention): Update.
4265 * v850-tdep.c (v850_gdbarch_init): Update.
4266 * sh64-tdep.c (sh64_gdbarch_init): Update.
4267 * sh-tdep.c (sh_gdbarch_init): Update.
4268 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4269 * mips-tdep.c (mips_gdbarch_init): Update.
4270 * mcore-tdep.c (mcore_gdbarch_init): Update.
4271 * m32r-tdep.c (m32r_gdbarch_init): Update.
4272 * ia64-tdep.c (ia64_gdbarch_init): Update.
4273 * h8300-tdep.c (h8300_gdbarch_init): Update.
4274 * frv-tdep.c (frv_gdbarch_init): Update.
4275 * cris-tdep.c (cris_gdbarch_init): Update.
4276 * arm-tdep.c (arm_gdbarch_init): Update.
4277 * alpha-tdep.c (alpha_gdbarch_init): Update.
4278
5191de37
MC
42792004-06-18 Michael Chastain <mec.gnu@mindspring.com>
4280
4281 * PROBLEMS: Add more specific information, and a work-around,
4282 for PR gdb/1458.
4283
782263ab
AC
42842004-06-18 Andrew Cagney <cagney@gnu.org>
4285
4286 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
4287 * gdbarch.h, gdbarch.c: Re-generate.
4288 * ada-lang.c (ada_finish_decode_line_1): Update.
4289 * infrun.c (handle_inferior_event): Update.
4290 * infcall.c (find_function_addr): Update.
4291 * linespec.c (minsym_found): Update.
4292 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
4293 Update.
4294 * blockframe.c (legacy_frameless_look_for_prologue): Update.
4295 * cli/cli-cmds.c (disassemble_command): Update.
4296 * vax-tdep.c (vax_gdbarch_init): Update.
4297
2f305df1
MK
42982004-06-18 Mark Kettenis <kettenis@gnu.org>
4299
4300 * i386-tdep.c (i386_collect_fpregset): Fix comment.
4301
e5fe55f7
AC
43022004-06-17 Andrew Cagney <cagney@gnu.org>
4303
4304 GDB 6.1.1 released from the GDB 6.1 branch.
4305 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
4306 * PROBLEMS: Ditto.
4307
473b7be6
DJ
43082004-06-16 Daniel Jacobowitz <dan@debian.org>
4309
4310 PR gdb/1658
4311 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
4312 operation as a uleb128. Found by Michael Coulter.
4313
96d887e8
PH
43142004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
4315
4316 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
4317 make it non-static.
4318 * ada-lang.h (task_control_block): declaration moved from ada-task.c
4319 to ada-lang.h; this is needed to be able to implement the kill command
4320 in multi-task mode.
4321 (task_ptid): Ditto.
4322 (task_entry): Ditto.
4323 (task_list): Ditto.
4324 (ada_build_task_list): Ditto.
4325
4326 * ada-lang.c: Conditionalize routines and data structures related
4327 to breakpoints, exceptions, completion, and symbol caching on
4328 GNAT_GDB, since these are not yet used in the submitted public sources.
4329 (ada_main_name): Editorial: Move definition out of exception-related
4330 code.
4331
31eef181
AC
43322004-06-15 Andrew Cagney <cagney@gnu.org>
4333
4334 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
4335 deprecated_pc_in_call_dummy.
4336
2c500098
AM
43372004-06-15 Alan Modra <amodra@bigpond.net.au>
4338
4339 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
4340 bfd_get_section_size_before_reloc or _raw_size.
4341 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
4342 * dwarf2read.c (dwarf2_locate_sections): Likewise.
4343 (dwarf2_read_section): Likewise.
4344 * elfread.c (elf_locate_sections): Likewise.
4345 * gcore.c (derive_heap_segment): Likewise.
4346 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
4347 * remote-e7000.c (e7000_load): Likewise.
4348 * remote-m32r-sdi.c (m32r_load): Likewise.
4349 * remote-mips.c (mips_load_srec): Likewise.
4350 (pmon_load_fast): Likewise.
4351 * remote.c (compare_sections_command): Likewise.
4352 * symfile.c (add_section_size_callback): Likewise.
4353 (load_section_callback): Likewise.
4354 (pc_in_unmapped_range): Likewise.
4355 (pc_in_mapped_range): Likewise.
4356 (sections_overlap): Likewise.
4357 (list_overlays_command): Likewise.
4358 (simple_overlay_update_1): Likewise.
4359 (simple_overlay_update): Likewise.
4360 * tracepoint.c (remote_set_transparent_ranges): Likewise.
4361 * win32-nat.c (core_section_load_dll_symbols): Likewise.
4362
90f943f1
RC
43632004-06-14 Randolph Chung <tausq@debian.org>
4364
4365 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
4366 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
4367 static.
4368 (hppa_hpux_inferior_created): New function.
4369 (hppa_hpux_init_abi): Register observer.
4370 * symfile.c (hp_cxx_exception_support_initialized)
4371 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
4372 (symbol_file_add_main_1, symbol_file_clear): Likewise.
4373
700c15aa
RC
43742004-06-14 Randolph Chung <tausq@debian.org>
4375
3973a7d3
AC
4376 * MAINTAINERS (Write After Approval): Alphabetize my entry
4377 correctly.
700c15aa 4378
cea4838c
AC
43792004-06-14 Andrew Cagney <cagney@gnu.org>
4380
4381 * MAINTAINERS (testsuite): List Michael Chastain as the lead
4382 testsuite maintainer.
4383
97092415
AC
43842004-06-13 Andrew Cagney <cagney@gnu.org>
4385
e8c3165b
AC
4386 * infcmd.c (print_return_value): Fix logic, allow
4387 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
4388
bceabdd8
AC
4389 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
4390 defining any macros.
4391 * gdbarch.h: Re-generate.
4392
57010b1c
AC
4393 * gdbarch.sh: Delete "level" attribute. Only check for a macro
4394 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
4395 * gdbarch.h: Re-generate.
4396
bc87dfa0
AC
4397 * values.c (generic_use_struct_convention): Don't check gcc_p.
4398
15ac804d
AC
4399 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
4400 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
4401 * gdbarch.h, gdbarch.c: Regenerate.
4402 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
4403 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
4404 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4405 deprecated_max_register_raw_size and
4406 deprecated_max_register_virtual_size.
4407 * v850-tdep.c (v850_gdbarch_init): Ditto.
4408 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
4409 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4410 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4411 * cris-tdep.c (cris_gdbarch_init): Ditto.
4412
97092415
AC
4413 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
4414 * gdbarch.h, gdbarch.c: Re-generate.
4415 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
4416 (m68hc11_use_struct_convention): Delete function.
4417 (m68hc11_extract_struct_value_address): Delete function.
4418 (m68hc11_return_value): New function.
4419 (m68hc11_gdbarch_init): Instead of store_return_value,
4420 extract_return_value, return_value_on_stack,
4421 deprecated_extract_struct_value_address and use_struct_convention,
4422 set return_value.
4423 * values.c (using_struct_return): Do not call
4424 RETURN_VALUE_ON_STACK.
4425 * arch-utils.h (generic_return_value_on_stack_not): Delete
4426 declaration.
4427 * arch-utils.c (generic_return_value_on_stack_not): Delete
4428 function.
4429
44e5158b
AC
44302004-06-12 Andrew Cagney <cagney@gnu.org>
4431
4432 * values.c (register_value_being_returned): Delete function.
4433 * infcmd.c (legacy_return_value): Delete function.
4434 * infcall.c (call_function_by_hand): Inline
4435 "register_value_being_returned", simplify.
4436 * values.c (using_struct_return): Update comment, refer to
4437 print_return_value instead of register_value_being_returned.
4438 * infcmd.c (print_return_value): Inline calls to
4439 register_value_being_returned and legacy_return_value. Simplify.
4440
b887c273
RC
44412004-06-11 Randolph Chung <tausq@debian.org>
4442
4443 * somread.c (som_symtab_read): Exclude gcc local symbols.
4444
1b2bfbb9
RC
44452004-06-11 Randolph Chung <tausq@debian.org>
4446
3973a7d3
AC
4447 * infrun.c (handle_inferior_event): Handle the case when a
4448 trampoline ends up in the runtime resolver, and if the trampoline
4449 has no name. Rearrange the code so that all the trampoline
4450 processing happens before other step-out-of-range handling.
1b2bfbb9 4451
a9d61c86
MH
44522004-06-11 Martin Hunt <hunt@redhat.com>
4453
4454 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
4455 has no fpu.
4456
2c87cf5a
AC
44572004-06-10 Andrew Cagney <cagney@gnu.org>
4458
4459 * blockframe.c (legacy_inside_entry_func): Delete.
4460 (legacy_frame_chain_valid): Inline call to
4461 legacy_inside_entry_func, simplify.
4462
0b67b468 44632004-06-10 Bob Rossi <bob@brasko.net>
57c22c6c
BR
4464
4465 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
3973a7d3
AC
4466 * dwarf2read.c (partial_die_info): Add dirname field.
4467 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
4468 (read_partial_die): Save away DW_AT_comp_dir.
4469 * defs.h (symtab_to_filename): Removed.
4470 * source.c (find_and_open_source): Added.
57c22c6c 4471 (open_source_file): Just calls find_and_open_source.
3973a7d3
AC
4472 (symtab_to_filename): Removed.
4473 (symtab_to_fullname, psymtab_to_fullname): Added.
57c22c6c
BR
4474 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
4475 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
4476 symtab_to_filename.
4477 * symtab.h (partial_symtab): Add dirname field.
4478 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
3973a7d3
AC
4479 (mi_cmd_file_list_exec_source_file): Call new function
4480 symtab_to_fullname to find fullname.
57c22c6c 4481 (mi_cmd_file_list_exec_source_files): Added.
3973a7d3 4482 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
57c22c6c
BR
4483 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
4484
9a1dd1ad
AC
44852004-06-10 Andrew Cagney <cagney@gnu.org>
4486
239ae8c7
AC
4487 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
4488 to generic_use_struct_convention, the default value.
4489
fc720350
AC
4490 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
4491 of abort.
4492
9a1dd1ad
AC
4493 * ns32k-tdep.c (ns32k_push_arguments): New function.
4494 (ns32k_gdbarch_init): Set deprecated_push_arguments.
4495 * infcall.c (call_function_by_hand): Call error instead of
4496 legacy_push_arguments.
4497 * value.h (legacy_push_arguments): Delete declaration.
4498 * valops.c (legacy_push_arguments): Delete function.
4499 (value_push): Delete function.
4500
fea25152
BF
45012004-06-10 Brian Ford <ford@vss.fsi.com>
4502
4503 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
4504 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
4505 info.
4506 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
4507
30a4a8e0
AC
45082004-06-10 Andrew Cagney <cagney@gnu.org>
4509
4510 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
4511 * gdbarch.h, gdbarch.c: Re-generate.
4512 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
4513 parameters.
4514 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
4515 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
4516 deprecated_pc_in_call_dummy instead of
4517 DEPRECATED_PC_IN_CALL_DUMMY.
4518 (arm_skip_prologue): Ditto.
4519 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
4520 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
4521 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
4522 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
4523 Ditto.
4524 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
4525 (sh64_init_extra_frame_info, sh64_get_saved_register)
4526 (sh64_pop_frame): Ditto.
4527 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
4528 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
4529 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
4530 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
4531 (h8300_pop_frame): Ditto.
4532 * blockframe.c (legacy_inside_entry_func)
4533 (legacy_frame_chain_valid): Ditto.
4534 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
4535 to deprecated_pc_in_call_dummy.
4536
81cfbe54
AC
45372004-06-09 Andrew Cagney <cagney@gnu.org>
4538
a1f4a1b6
AC
4539 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
4540 provide a default value.
4541 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
4542 * gdbarch.h, gdbarch.c: Re-generate.
4543 * arch-utils.c (generic_convert_register_p): Rename
4544 legacy_convert_register_p
4545 (legacy_register_to_value, legacy_value_to_register): Delete
4546 functions.
4547 * arch-utils.h (generic_convert_register_p): Rename
4548 legacy_convert_register_p.
4549 (legacy_register_to_value, legacy_value_to_register): Delete
4550 declarations.
4551
9730f241
AC
4552 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
4553 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
4554 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
4555 * gdbarch.h, gdbarch.c: Re-generate.
4556 * infcmd.c (default_print_registers_info): Simplify.
4557 * findvar.c (value_of_register): Simplify.
4558 * mi/mi-main.c (get_register): Simplify.
4559 * arch-utils.c (legacy_convert_register_p): Always return 0.
4560 (legacy_register_to_value, legacy_value_to_register): Always call
4561 internal_error.
4562
8a1bf479
AC
4563 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
4564 #ifdef CLEAR_INSN_CACHE code.
4565 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
4566 Delete #ifdef CLEAR_DEFERRED_STORES code.
4567
4b38d6f1
AC
4568 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
4569
2d62ecc7
AC
4570 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
4571 copyright.
4572 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
4573
be4f7469
AC
4574 * config/mips/mipsv4.mh: Delete file.
4575
81cfbe54
AC
4576 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
4577 unreferenced macro.
4578 (hpread_adjust_stack_address): Delete declaration.
4579
d966f0cb
AC
45802004-06-08 Andrew Cagney <cagney@gnu.org>
4581
4582 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4583 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
4584 PTRACE_ATTACH / PTRACE_DETACH available call error.
4585 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
4586 * infttrace.c (update_thread_state_after_attach, attach, detach):
4587 Remove #ifdef wrappers.
4588 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
4589 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
4590 * config/nm-bsd.h (ATTACH_DETACH): Delete.
4591 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
4592 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
4593 * config/nm-linux.h (ATTACH_DETACH): Delete.
4594 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
4595 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
4596 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
4597 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
4598 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
4599
d91670b9
CV
46002004-06-08 Corinna Vinschen <vinschen@redhat.com>
4601
4602 * configure.in: Set $configdir to the right OS specific value.
4603 Use value when setting $tcldir and $tkdir.
4604 * configure: Regenerate.
4605
28ba0b33
PB
46062004-06-06 Paul Brook <paul@codesourcery.com>
4607
4608 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
4609 records.
4610
f26caa11
PH
46112004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
4612
4613 * ada-lang.c (lookup_symbol_in_language): New function to allow
4614 re-use of another language's symbol lookup code. (Placed here
4615 temporarily while Ada support is being integrated into the public
4616 tree).
4617 (restore_language): New auxiliary function for
4618 lookup_symbol_in_language.
4619 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
4620 temporarily while Ada support is being integrated into the public
4621 tree).
4622
d560a54b
AO
46232004-06-08 Alexandre Oliva <aoliva@redhat.com>
4624
e75d110c
AO
4625 * Makefile.in (check//%): New.
4626
d560a54b
AO
4627 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
4628 (mn10300_store_return_value): Rewrite.
4629 (mn10300_type_align): New.
4630 (mn10300_use_struct_convention): Rewrite.
4631 (mn10300_return_value): New, using all of the above.
4632 (mn10300_pop_frame_regular): Add saved_regs_size.
4633 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
4634
a72fbdb7
AO
4635 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
4636 regs if PC is on movm.
4637
01904826
JB
46382004-06-07 Jim Blandy <jimb@redhat.com>
4639
4640 Add native Linux support for the PowerPC E500.
4641 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
4642 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
4643 all architectures except the E500.
4644 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
4645 #definitions.
4646 (struct gdb_evrregset_t): New type.
4647 (have_ptrace_getsetevrregs): New variable.
4648 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
4649 fetch_spe_registers): New functions.
4650 (fetch_register): Call fetch_spe_register as appropriate.
4651 Assert that we're only passed raw register numbers.
4652 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
4653 Don't fetch gprs if they're pseudoregisters.
4654 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
4655 store_spe_registers): New functions.
4656 (store_register): Call store_spe_register as appropriate.
4657 Assert that we're only passed raw register numbers.
4658 (store_ppc_registers): Call store_spe_registers as appropriate.
4659 Don't store gprs if they're pseudoregisters.
4660
f90ef764
JJ
46612004-06-07 Jeff Johnston <jjohnstn@redhat.com>
4662
4663 * thread-db.c (thread_get_info_callback): Fill in the thread_info
4664 struct if one exists, even if we are dealing with a zombie thread.
4665
45b75230
AC
46662004-06-07 Andrew Cagney <cagney@gnu.org>
4667
4668 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
4669 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
4670 Rename PC_REQUIRES_RUN_BEFORE_USE.
4671 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
4672 #ifdef.
4673
1658da49
RC
46742004-06-07 Randolph Chung <tausq@debian.org>
4675
4676 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
4677 unwinding after sp has been saved to the stack but before the end
4678 of the prologue, and after the fp has been modified but before it has
4679 been saved to the stack.
4680 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
4681 Remove superfluous definitions.
4682 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
4683
9a727a3c
RC
46842004-06-07 Guy Martin <gmsoft@gentoo.org>
4685
4686 Committed by Randolph Chung.
4687 * hppa-linux-nat.c: Include the correct version of the header file
4688 depending on the kernel version.
4689
9e500012
RC
46902004-06-06 Randolph Chung <tausq@debian.org>
4691
4692 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
4693 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
4694
3388d7ff
RC
46952004-06-06 Randolph Chung <tausq@debian.org>
4696
4697 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
4698 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
4699 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
4700 * hppa-tdep.c (hppa_symbol_address): New function definition.
4701 * hppa-tdep.h (hppa_symbol_address): New function declaration.
4702
d49771ef
RC
47032004-06-06 Randolph Chung <tausq@debian.org>
4704
4705 * hppa-tdep.h (struct value): Forward declaration.
4706 (gdbarch_tdep): Define tdep find_global_pointer method.
4707 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
4708 associated with the function we are trying to call, and write it
4709 to the gp register.
4710 (hppa32_convert_from_funct_ptr_addr): New function.
4711 (hppa_find_global_pointer): New function.
4712 (hppa_gdbarch_init): Set default find_global_pointer method; set
4713 convert_from_func_ptr_addr method.
4714 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
4715 (hppa_linux_init_abi): Set find_global_pointer method.
4716 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
4717
7d9b040b
RC
47182004-06-06 Randolph Chung <tausq@debian.org>
4719
4720 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
4721 to struct value *function.
4722 * gdbarch.c: Regenerate.
4723 * gdbarch.h: Likewise.
4724 * infcall.c (call_function_by_hand): Pass entire function value
4725 to push_dummy_call.
4726
4727 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
4728 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
4729 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
4730 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
4731 * arm-tdep.c (arm_push_dummy_call): Likewise.
4732 * avr-tdep.c (avr_push_dummy_call): Likewise.
4733 * cris-tdep.c (cris_push_dummy_call): Likewise.
4734 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
4735 * frv-tdep.c (frv_push_dummy_call): Likewise.
4736 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
4737 * hppa-tdep.c (hppa32_push_dummy_call)
4738 (hppa64_push_dummy_call): Likewise.
4739 * i386-tdep.c (i386_push_dummy_call): Likewise.
4740 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
4741 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
4742 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
4743 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
4744 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
4745 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4746 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
4747 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
4748 (ppc64_sysv_abi_push_dummy_call): Likewise.
4749 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
4750 (ppc64_sysv_abi_push_dummy_call): Likewise.
4751 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4752 * s390-tdep.c (s390_push_dummy_call): Likewise.
4753 * sh-tdep.c (sh_push_dummy_call_fpu)
4754 (sh_push_dummy_call_nofpu): Likewise.
4755 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
4756 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
4757 * vax-tdep.c (vax_push_dummy_call): Likewise.
4758
4a19ea35
JB
47592004-06-04 Jim Blandy <jimb@redhat.com>
4760
8327ccee
JB
4761 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
4762 gdbarch argument to register_size.
4763
a3c001ce
JB
4764 * rs6000-tdep.c (rs6000_store_return_value): Use
4765 regcache_cooked_write_part instead of
4766 deprecated_write_register_bytes.
4767 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
4768 not gdbarch_deprecated_store_return_value.
4769
4a19ea35
JB
4770 * ppc-linux-nat.c (store_register, fetch_register): Remove
4771 incorrect assertions. Simplify and generalize handling of
4772 transfers whose sizes are not multiples of, or less than, sizeof
4773 (PTRACE_XFER_TYPE).
4774
b9b5d7ea
JJ
47752004-06-04 Jeff Johnston <jjohnstn@redhat.com>
4776
4777 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
4778 as a new thread event.
720c7d64 4779 * thread-db.c (thread_get_info_callback): If the thread is a
b9b5d7ea 4780 zombie, return TD_THR_ZOMBIE.
720c7d64 4781 (thread_from_lwp): If thread_get_info_callback returns
b9b5d7ea
JJ
4782 TD_THR_ZOMBIE, check if the thread is still on the thread list
4783 and return a -1 ptid if not found.
4784 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
4785 change the status to TARGET_WAITKIND_SPURIOUS.
4786
c8a3b559
CV
47872004-06-03 Corinna Vinschen <vinschen@redhat.com>
4788
4789 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
4790 double values in little endian mode.
4791
20605361
AC
47922004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
4793
4794 Committed by Andrew Cagney.
4795 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
4796 after last enum constant to avoid error from IBM C
4797 compiler.
4798
bc97b3ba
JB
47992004-06-02 Jim Blandy <jimb@redhat.com>
4800
4801 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
4802 to 'message', and make it local to the lone block that uses it.
4803
1da28ab0
JB
4804 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
4805
4c4b4cd2
PH
48062004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
4807
8a2225b2
PH
4808 * ada-exp.y: Update copyright notice.
4809 Include block.h.
4810
4811 Replace REGNAME, LAST, INTERNAL_VARIABLE with
4812 SPECIAL_VARIABLE and unify the treatment of these cases.
4813
4814 (write_attribute_call0): Remove.
4815 (write_attribute_call1): Remove.
4816 (write_attribute_calln): Remove.
4817 (save_qualifier): Add missing semicolon.
4818
4819 (simple_exp,exp): Decomment (i.e., reactivate) code that was
4820 temporarily disabled to allow compilation with FSF head version.
4821
4822 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
4823 use individual operators (OP_*) for all attributes.
4824 (exp syntax): Use write_int.
4825 Handle STRING literals with OP_STRING.
4826 (variable syntax): Add limit parameter to calls to
4827 write_object_renaming.
4828
4829 (temp_parse_space): New definition to hold entities that need
4830 only live until the next call to ada_parse.
4831 (string_to_operator): Rename fields of ada_opname_table entries.
4832
4833 (write_var_from_sym): Record block.
4834 (write_var_from_name): Minor reformatting.
4835 Make sure saved name is properly encoded in the case of multiple
4836 matches, and set its language to Ada.
4837 Update comment.
4838 Modify to indicate unresolved name as symbol in the UNRESOLVED
4839 namespace, allocated in temp_parse_space.
4840 (write_int): New function.
4841
4842 (write_object_renaming): Add max_depth parameter to limit
4843 chains of object renamings.
4844 Handle case where root of renaming expression is itself a renaming.
4845 Use temp_parse_space for temporary name buffer.
4846 Handle renamings to dereferenced pointers (___XEXA suffices).
4847
4848 (ada_parse, yyerror, string_to_operator,
4849 write_var_from_sym, write_var_from_name, write_attribute_call0,
4850 write_attribute_call1, write_attribute_calln,
4851 write_object_renaming): Protoize.
4852
4853 (_initialize_ada_exp): New function.
4854
4855 * ada-lang.c: Update copyright notice.
4856 General terminology change to conform to GNAT compiler usage:
4857 mangle => encode, demangle => decode
4858 Include gdb_obstack.h.
4859 Include gdb_regex.h
4860 Include frame.h
4861 Include hashtab.h
4862 Include completer.h
4863 Include gdb_stat.h
4864 Include block.h
4865 Include infcall.h
4866
4867 (ADA_RETAIN_DOTS): Make sure this is defined.
4868 (TRUNCATION_TOWARDS_ZERO): Define.
4869 (struct string_vector): Define.
4870 (unresolved_names): Remove definition.
4871 (xnew_string_vector): New function.
4872 (string_vector_append): New function.
4873 (extract_string): Make static.
4874 (ada_unqualified_name): New function.
4875 (add_angle_brackets): New function.
4876 (function_name_from_pc): New function.
4877 (place_on_stack): Rename to ensure_lval.
4878
4879 (ensure_lval): Renamed from place_on_stack.
4880 Make identity on lvals.
4881 Update comment.
4882 (is_nonfunction): New interface.
4883 Only symbols in LOC_CONST class can be enumerals.
4884 (fill_in_ada_prototype): Remove; now independent of language.
4885 (add_defn_to_vec): Add obstack and symtab arguments.
4886 Use obstack to hold collected definitions.
4887 (num_defns_collected): New function.
4888 (defns_collected): New function.
4889 (ada_resolve_subexp): Rename to resolve_subexp.
4890 (resolve_subexp): Renamed from ada_resolve_subexp.
4891 (ada_op_name): Return non-const result.
4892 (ada_decoded_op_name): Renamed from ada_op_name, now used for
4893 other purposes.
4894
4895 (to_fixed_array_type): Add declaration.
4896 (coerce_unspec_val_to_type): Remove offset parameter.
4897 (find_sal_from_funcs_and_line): New interface.
4898 (find_line_in_linetable): Ditto.
4899
4900 (all_sals_for_line): Rename to ada_sals_for_line and make
4901 global.
4902 Add new parameter. When set, do not ask the user to choose the
4903 instance, but use the first one found instead.
4904 Use given line number in returned sals.
4905 Fix comment.
4906 Skip the prologue if funfirstline is set.
4907 Correct for memory leak when 0 lines found.
4908
4909 (value_pos_atr): Use pos_atr.
4910 (pos_atr): New function.
4911 (standard_lookup): Add block parameter.
4912
4913 (makeTimeStart): Remove declaration and uses.
4914 (makeTimeStop): Remove declaration and uses.
4915
4916 (ada_completer_word_break_characters): Allow for VMS.
4917 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
4918 (raise_sym_name): New constant.
4919 (raise_unhandled_sym_name): New constant.
4920 (raise_assert_sym_name): New constant.
4921 (process_raise_exception_name): New constant.
4922 (longest_exception_template): New constant.
4923 (warning_limit): New variable to limit warnings during expression
4924 evaluation.
4925 (warnings_issued): New variable to keep track of warnings issued.
4926 (known_runtime_file_name_patterns): New constant.
4927 (known_auxiliary_function_name_patterns): New constant.
4928 (symbol_list_obstack): New variable.
4929
4930 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
4931 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
4932 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
4933 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
4934 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
4935 ada_variant_discrim_name, field_alignment, dynamic_template_type,
4936 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
4937 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
4938 and strcmp.
4939
4940 (ada_get_field_index): New function.
4941 (lim_warning): New function.
4942 (ada_translate_error_message): New function.
4943 (MAX_OF_SIZE): New function.
4944 (MIN_OF_SIZE): New function.
4945 (UMAX_OF_SIZE): New function.
4946 (UMIN_OF_SIZE): New function.
4947 (discrete_type_high_bound): New function.
4948 (discrete_type_low_bound): New function.
4949 (base_type): New function.
4950 (do_command): Remove.
4951
4952 (ada_update_initial_language): Use language_ada, not language_unknown.
4953 (ada_encode): Renamed from ada_mangle.
4954 Obey ADA_RETAIN_DOTS.
4955 (ada_decode): Renamed from ada_demangle.
4956 Update coding conventions.
4957 (decoded_names_store): New hash table.
4958 (ada_decode_symbol): New function.
4959 (ada_la_decode): New function.
4960
4961 (modify_general_field): Correct computations of offset and bit
4962 position.
4963 (desc_base_type): Handle ref types, too.
4964 (ada_is_direct_array_type): New function.
4965
4966 (ada_is_simple_array): Rename to ada_is_simple_array_type.
4967 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
4968 (ada_is_bogus_array_descriptor,ada_type_of_array,
4969 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
4970 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
4971 ada_is_array_descriptor_type.
4972
4973 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
4974 (ada_is_packed_array_type): Handle pointers or
4975 references to packed arrays as well.
4976 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
4977 (decode_packed_array_type): Search for the packed array type
4978 symbol in the currently selected block and associated
4979 superblocks too.
4980 Use lookup_symbol again.
4981
4982 (decode_packed_array): Handle pointers and references.
4983 Update call to coerce_unspec_val_to_type.
4984 (decode_packed_array_type,value_subscript_packed): Limit warnings.
4985 (ada_value_primitive_packed_val): Improve comment.
4986
4987 (ada_index_type): Substitute int type for "undefined".
4988 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
4989 ada_array_langth, ada_is_string_type): Use renamed
4990 ada_is_simple_array_type.
4991 (empty_array): New function.
4992
4993 (ada_resolve): Rename to resolve.
4994 (resolve): Make static.
4995 Call renamed resolve_subexp.
4996 Update comment.
4997 (ada_resolve_subexp): Rename to resolve_subexp.
4998 (resolve_subexp): Update comment.
4999 Decomment disabled code.
5000 Add LOC_COMPUTED* cases.
5001 Modify to use temporary struct symbols (marked as being in
5002 UNDEF_NAMESPACE) to indicate unresolved names, instead of
5003 OP_UNRESOLVED_VALUE.
5004 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
5005 Add OP_STRING case.
5006 Remove OP_ARRAY.
5007 Use SYMBOL_PRINT_NAME instead of ada_demangle.
5008 Use new ada_lookup_symbol_list interface.
5009 Use new ada_resolve_function interface.
5010 Remove OP_TYPE case.
5011
5012 (ada_args_match): Idiot proof against null actuals.
5013 Use intermediate variables to clarify.
5014 (ada_resolve_function): Update comment and interface.
5015 (mangled_ordered_before): Rename to encoded_ordered_before and
5016 update comment.
5017 (sort_choices): Update comment and interface.
5018 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
5019 (user_select_syms): New interface.
5020 Use new sort_choices interface.
5021 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
5022 (possible_user_operator_p): Idiot-proof against null values.
5023 (ada_simple_renamed_entity): Don't make cleanup; rely on
5024 caller to free result string.
5025 Remove const from return type.
5026 (make_array_descriptor): Rename uses of place_on_stack to
5027 ensure_lval.
5028 Make sure that arrays are on stack.
5029
5030 (HASH_SIZE): Define.
5031 (struct cache_entry): Define.
5032 (cache_space): Define.
5033 (cache): Define.
5034 (clear_ada_sym_cache): New function.
5035 (find_entry): New function.
5036 (lookup_cached_symbol): New function.
5037 (defn_vector_size): Define.
5038 (cache_symbol): New function.
5039 (defn_symbols): Remove.
5040
5041 (standard_lookup): Use lookup_symbol_in_language to get effect of
5042 C lookup.
5043 Cache results.
5044
5045 (symbol_completion_match): New function.
5046 (symbol_completion_add): New function.
5047 (ada_make_symbol_completion_list): New function.
5048
5049 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
5050 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
5051 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
5052 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
5053
5054 (ada_lookup_simple_minsym): New function.
5055 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
5056
5057 (add_symbols_from_enclosing_procs): New interface.
5058 Conditionalize more helpfully.
5059 Don't bother if program isn't running.
5060 Use new interface to get_frame_block.
5061 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
5062
5063 (remove_extra_symbols): New interface.
5064 (xget_renaming_scope): New function.
5065 (is_package_name): New function.
5066 (renaming_is_visible): New function.
5067 (remove_out_of_scope_renamings): New function.
5068
5069 (ada_lookup_symbol_list): New interface.
5070 Properly reinitialize the symbol list obstack.
5071 Don't call add_symbols_from_enclosing_procs if we start from a
5072 static or global block.
5073 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
5074 add_symbols_from_enclosing_procs.
5075 Add symtab data to cached entries.
5076 Handle symbols prefixed with
5077 "standard__" specially; strip prefix and don't look in local symbols.
5078 Do not include out of scope renaming symbols in list of
5079 symbols returned.
5080 Add const to block parameter.
5081 Move check for non-local, non-global symbols earlier.
5082 Remove timing stuff.
5083 (ada_lookup_symbol): New interface.
5084 Find symtab as well.
5085 (ada_lookup_symbol_nonlocal): New function.
5086
5087 (is_name_suffix): Enhance suffix detection to recognize
5088 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
5089 (is_dot_digits_suffix): New function.
5090 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
5091
5092 (ada_add_block_symbols): New interface. Use obstack to return results
5093 in a vector of struct ada_symbol_infos. Add symtab argument.
5094 Use new interface to add_defn_to_vec.
5095 Remove calls to fill_in_ada_prototype.
5096 Use BLOCK_BUCKETS, BLOCK_BUCKET.
5097
5098 (ada_finish_decode_line_1): Add const qualification to local to fix
5099 warning.
5100 Start looking in static block for functions to avoid attempts
5101 to search frame chain for up-level variables.
5102 Adapt to new ada_sals_for_line interface.
5103 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
5104 Handle quoting of the function name inside the spec string.
5105 Skip prologue when funfirstline is set and update the
5106 function documentation to that effect.
5107
5108 (debug_print_lines, debug_print_block, debug_print_blocks,
5109 debug_print_symtab): Remove.
5110
5111 (ada_main_name): New function.
5112 (ada_exception_breakpoint_type): New function.
5113 (is_known_support_routine): New function.
5114 (ada_find_printable_frame): Renamed from find_printable_frame and made
5115 global.
5116 Remove level parameter.
5117 Use new interface to select_frame.
5118
5119 (begin_command): Remove.
5120 (ada_adjust_exception_stop): New function.
5121 (ada_print_exception_stop): New function.
5122 (exception_name_from_cond): New function.
5123 (ada_report_exception_break): Replace disabled code with
5124 conditionalization on GNAT_GDB.
5125 Get the exception name from the condition string.
5126 Remove and move functionality into new functions
5127 ada_print_exception_breakpoint_task and
5128 ada_print_exception_breakpoint_nontask.
5129 (error_breakpoint_runtime_sym_not_found): New function.
5130 (is_runtime_sym_defined): New function.
5131 (ada_breakpoint_rewrite): Uncomment suppressed code.
5132 Use symbolic error-message and runtime-symbol names.
5133 Surround runtime symbol names in quotes.
5134 Allow non-specific breakpoints on exceptions and assertions before
5135 program starts.
5136
5137 (ada_is_tagged_type): Add parameter.
5138 (ada_is_tag_type): New function.
5139 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
5140 (ada_variant_discrim_type): Ditto.
5141 (value_tag_from_contents_and_address): New function.
5142 (type_from_tag): New function.
5143 (struct tag_args): New structure used to communicate with
5144 ada_tag_name_1.
5145 (ada_tag_name_1): New function.
5146 (ada_tag_name): New function.
5147
5148 (ada_scan_number): Update comment.
5149 (find_struct_field): New function.
5150 (ada_search_struct_field): Make static.
5151 (ada_value_struct_elt): New version that returns references when
5152 given pointers or references to structs.
5153 (ada_lookup_struct_elt_type): Add 'refok' parameter.
5154 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
5155 interface.
5156 (ada_value_ind): Use new ada_to_fixed_value interface.
5157 (ada_coerce_ref): Ditto.
5158 (field_offset): Remove.
5159
5160 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
5161 (ada_find_renaming_symbol): New function.
5162 (ada_prefer_type): Prefer named types over unnamed ones.
5163 (variant_field_index): New function.
5164 (contains_variant_part): Removed: subsumed by variant_field_index.
5165 (ada_template_to_fixed_record_type): New function, mostly from
5166 template_to_fixed_record_type.
5167 (template_to_fixed_record_type):
5168 Do not scan the type fields beyond the last one; prevents a
5169 potential SEGV.
5170 Handle case where variant field is listed BEFORE discriminant it
5171 depends on.
5172 Fix calculation of record length when bit length is
5173 not evenly divisible by char length.
5174 Move code to ada_template_to_fixed_record_type and call it.
5175
5176 (template_to_static_fixed_type): Revise comment.
5177 Modify to work on ordinary record types as well as templates,
5178 so as to handle fields that use ___XVE or ___XVU encodings.
5179 (to_record_with_fixed_variant_part): Fill out comment.
5180 Initialize C++ stuff in right type.
5181 Allow case where DVAL is null.
5182 Handle case where variant field is not last.
5183 Fix typo concerning record length.
5184 (to_fixed_record_type): Decomment disabled code.
5185 (to_fixed_record_type): Use variant_field_index instead of
5186 contains_variant_part.
5187 (to_fixed_variant_branch_type): Ditto.
5188 (to_fixed_array_type): Decomment disabled code.
5189 (ada_to_fixed_type): Convert tagged types to the specific type.
5190 Deactivate the size-check for array types in order to avoid
5191 some false size alarms.
5192 (to_static_fixed_type): Decomment disabled code.
5193 Modify to call template_to_static_fixed_type
5194 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
5195 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
5196 Remove valaddr argument, as it is never really used.
5197 (ada_to_fixed_value): Change interface to act on single struct value*
5198 operand.
5199 (adjust_pc_past_prologue): New function.
5200 (ada_attribute_name): Modify to take enum exp_opcode argument.
5201
5202 (ada_enum_name): Recognize new homonym-distinguishing convention.
5203 Adjust local variable's type to remove compiler warning.
5204 Fix a small problem in the part that unqualifies the enumeration name.
5205 (ada_value_binop): New function.
5206 (ada_value_equal): New function.
5207
5208 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
5209 Don't give error message when not doing normal evaluation
5210 and a tagged type doesn't seem to contain a structure member.
5211 Give error message for packed arrays.
5212 For indexing arrays, handle pointers to packed arrays correctly.
5213 Handle case of 'first and 'last attributes of bare integral type
5214 without encoded subtype info.
5215 Remove some unnecessary casts.
5216 Fix uninitialized value of type in computing 'first, 'last, or 'length
5217 of array object.
5218 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
5219 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
5220 calls.
5221 Attributes are now exp_opcode values.
5222 Correct treatment of 'modulus.
5223 Better error message for taking 'length of wrong kind of type;
5224 improve comment.
5225 Change EVAL_NORMAL to noside for consistency.
5226 Use ada_value_binop for DIV, MOD, REM.
5227 Make special case out of array of length 0, since an argument
5228 of 0 upsets some platforms' malloc.
5229 Use OP_STRING instead of OP_ARRAY.
5230 For slice, add check that we have an array type before extracting
5231 a slice out of it. Avoids a SEGV.
5232 When evaluating an array slice, if the array type is a reference to
5233 an aligner type, then replace the aligner type by the actual type.
5234 Decomment disabled code.
5235 Remove some dead code.
5236 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
5237 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
5238 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
5239 and UNOP_MBR to UNOP_IN_RANGE.
5240 If an array type has a parallel ___XVE type, then use it.
5241 Turn arrays into pointers for lvalue arrays.
5242 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
5243 bounds error and handle 0-length slices.
5244 Use lim_warning.
5245 When selecting fields, apply ada_to_fixed_value (because the fields
5246 might have ___XVU or ___XVE encodings even if not dynamic.)
5247 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
5248 (ada_is_system_address_type): New function.
5249
5250 (get_var_value): Use new interface to ada_lookup_symbol_list.
5251 (get_int_var_value): New interface.
5252 (to_fixed_range_type): Allow unknown bound, with warning.
5253 (ada_is_modular_type): Decomment disabled code.
5254 (ADA_OPERATORS): New definition.
5255 (ada_operator_length): New function.
5256 (ada_expr_op_name): New function.
5257 (ada_forward_operator_length): New function.
5258 (ada_dump_subexp_body): New function.
5259 (ada_print_subexp): New function.
5260 (ada_exp_descriptor): New constant.
5261 (ada_op_print_tab): Add 'size. Remove FIXMEs.
5262 (ada_language_defn): Add ada_exp_descriptor entry.
5263 Change ada_parse => parse.
5264 Add post-parser entry.
5265 Use ada-specific non-local symbol lookup.
5266 Don't use C-style arrays.
5267 String lower-bound is 1.
5268 Decomment disabled code.
5269 (parse): New function.
5270 New fields ada_translate_error_message, ada_lookup_symbol,
5271 ada_lookup_minimal_symbol.
5272
5273 * ada-lang.h: Update copyright dates.
5274 Replace the mangle/demangle terminology throughout by the
5275 more appropriate encode/decode one.
5276 Include breakpoint.h.
5277 Forward declare struct partial_symbol, struct block.
5278 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
5279 (EXTRACT_ADDRESS): Remove.
5280 (EXTRACT_INT): Remove.
5281 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
5282 (MAX_ENCLOSING_FRAME_LEVELS): Define.
5283 (MAX_RENAMING_CHAIN_LENGTH): Define.
5284 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
5285
5286 (enum task_states): Remove.
5287 ada_task_states: Remove.
5288 (fat_string): Remove.
5289 (struct entry_call): Remove.
5290 (struct task_fields): Remove.
5291 (struct task_entry): Remove.
5292
5293 (struct ada_symbol_info): Define.
5294 (enum ada_attribute): Remove.
5295 (enum ada_operator): Define.
5296
5297 (ada_get_field_index): Declare.
5298 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
5299 (ada_is_simple_array): Rename to ada_is_simple_array_type.
5300 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
5301 (ada_lookup_symbol_list): New interface.
5302 (ada_decode_symbol): Declare.
5303 (ada_decode): Declare.
5304 (ada_lookup_symbol): New interface.
5305 (ada_update_initial_language): Declare.
5306 (ada_lookup_simple_minsym): Declare.
5307 (user_select_syms): New interface.
5308 (ada_sals_for_line): Declare.
5309 (ada_is_tagged_type): New interface.
5310 (ada_tag_name): Declare.
5311 (ada_lookup_struct_elt_type): Remove declaration.
5312 (ada_search_struct_field): Remove declaration.
5313 (ada_attribute_name): New interface.
5314 (ada_is_system_address_type): Declare.
5315 (ada_to_fixed_value): Remove declaration.
5316 (ada_template_to_fixed_record_type_1): Declare.
5317 (get_int_var_value): New interface.
5318 (ada_find_any_symbol): Declare.
5319 (ada_find_renaming_symbol): Declare.
5320 (ada_mangle): Rename to ada_encode.
5321 (ada_simple_renamed_entity): Remove const.
5322 (ada_main_name): Declare.
5323 (get_current_task): Rename to ada_get_current_task.
5324 (get_entry_number): Remove declaration.
5325 (ada_report_exception_break): Remove declaration.
5326 (ada_print_exception_breakpoint_nontask): Declare.
5327 (ada_print_exception_breakpoint_task): Declare.
5328 (ada_find_printable_frame): Declare.
5329
5330 * ada-lex.l: Update copyright notices.
5331 Use xmalloc and xfree instead of malloc and free.
5332 Use new interface to name_lookup.
5333 Use new interface to
5334 ada_mangle=>ada_encode.
5335 Redo handling of '$...' variable to parallel current treatment
5336 in c-exp.y.
5337 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
5338 digit_to_int, strtoulst, processInt, processReal, processId,
5339 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
5340 yywrap): Protoize.
5341
5342 (processInt): Use cast to remove harmless warning.
5343 (processReal): Modify to get rid of compiler warning on scan formats.
5344
5345 (processId): Replace xmalloc with obstack_alloc for name and remove
5346 call to ada_name_string_cleanup.
5347 Remove obsolete disabled code.
5348 (name_lookup): Ditto.
5349 New interface.
5350 Use obsavestring on temp_parse_space instead of savestring
5351 on name, and remove call to ada_name_string_cleanup.
5352 Free string returned from ada_simple_renamed_entity.
5353 Use new interface to ada_lookup_symbol_list.
5354 Decomment disabled code.
5355 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
5356 not types.
5357 When a type name lookup succeeds as a result of
5358 lookup_primitive_typename, check for regular type entry that has not
5359 yet been read in.
5360 Limit length of chain of renamed symbols we are willing to follow.
5361 Do not break names beginning with "standard__" into segments.
5362 (block_lookup): Use new interface to ada_lookup_symbol_list.
5363
5364 * ada-typeprint.c: Update copyright notice.
5365 (demangled_type_name): Rename to decoded_type_name.
5366 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
5367 (print_range_bound): Correct handling of negative
5368 bounds that make the index type looked unsigned under STABS.
5369 (print_dynamic_range_bound): Use new interface to get_int_var_value.
5370 (print_range_type_named): Use the builtin int type if no type
5371 corresponding to the given type name could be found.
5372 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
5373 Add some bullet-proofing.
5374 (print_variant_clauses): Allow for variant branches with ___XVU
5375 encodings that are not dynamic fields.
5376 Use new interface to ada_is_tagged_type.
5377 (print_record_type): Allow for fields with ___XVE encodings that
5378 are not dynamic fields.
5379 Use new interface to ada_is_tagged_type.
5380 (ada_print_type): ada_is_array_descriptor =>
5381 ada_is_array_descriptor_type.
5382
5383 * ada-valprint.c: Update copyright notice.
5384 Include gdb_string.h
5385 Include infcall.h
5386 (ui_memcpy): New function.
5387 (ada_print_floating): New function.
5388 (ada_print_str): Order arguments correctly.
5389 Correct handling of empty arrays and arrays of 0-length items.
5390 ada_is_array_descriptor => ada_is_array_descriptor_type
5391 Print values of type System.Address in hexadecimal format.
5392 Use ada_print_floating to print floating-point numbers in Ada format.
5393 Print class tag values with type names.
5394 No longer print the address of reference values. Avoids
5395 a potential confusion.
5396 (ada_value_print): Stop printing the object type for reference
5397 values, but preserve that behavior for access types. Avoids
5398 a potential confusion.
5399 Simplify one conditional expression, as the first part is now
5400 necessarily true.
5401 ada_is_array_descriptor => ada_is_array_descriptor_type
5402 Add check for arrays for null records, and print them by hand.
4c4b4cd2 5403
f65f91b5
JB
54042004-06-01 Jim Blandy <jimb@redhat.com>
5405
5406 * ppc-tdep.h: Delete unused 'regoff' member.
5407 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
5408
d4687fa0
MC
54092004-06-01 Michael Chastain <mec.gnu@mindspring.com>
5410
5411 Fix PR symtab/1661.
5412 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
5413 (hpread_read_struct_type): Likewise.
5414
de169ec9
AC
54152004-06-01 Andrew Cagney <cagney@gnu.org>
5416
c6902d46
AC
5417 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
5418 instead of xasprintf.
5419 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
5420 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
5421 (mi_cmd_data_list_register_names)
5422 (mi_cmd_data_list_changed_registers)
5423 (mi_cmd_data_list_register_values)
5424 (get_register, mi_cmd_data_write_register_values)
5425 (mi_cmd_data_write_register_values)
5426 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
5427 (mi_cmd_target_download, mi_cmd_target_select)
5428 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
5429 (mi_execute_cli_command, mi_execute_async_cli_command)
5430 (mi_execute_async_cli_command): Ditto.
5431 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
5432 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
5433
6085fc2d
AC
5434 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
5435 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
5436 error_last_message instead of mi_error_last_message.
5437 * mi/mi-main.c (mi_error_last_message): Delete function.
5438
de169ec9
AC
5439 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
5440 "invalid number of columns" error. Delete redundant "out of
5441 memory" check.
5442
1fc7d519
MK
54432004-05-31 Mark Kettenis <kettenis@gnu.org>
5444
6cfb2041
MK
5445 * i386bsd-nat.c: Don't include <sys/procfs.h>.
5446 (gregset_t, fpregset_t): Remove typedefs.
5447 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
5448 (REG_OFFSET): Rename argument.
5449 (i386bsd_r_reg_offset): Rename from reg_offset.
5450 (REG_ADDR): Remove macro.
5451 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
5452 functions.
5453 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
5454 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
5455 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
5456 instead of supply_gregset.
5457 (store_inferior_registers): Use `struct reg' and `struct fpreg'
5458 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
5459 instead of fill_gregset.
5460 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
5461
1fc7d519
MK
5462 * i386bsd-nat.c: Don't include "gregset.h".
5463 (supply_gregset, fill_gregset): Make static.
5464 (supply_fpregset, fill_fpregset): Remove.
5465 * Makefile.in (i386bsd-nat.o): Update dependencies.
5466
2c34abbe
MK
54672004-05-30 Mark Kettenis <kettenis@gnu.org>
5468
448724fb
MK
5469 * fbsd-proc.c: Include "regcache.h", "regset.h" and
5470 "gdb_assert.h". Con't include "gregset.h".
5471 (fbsd_make_corefile_notes): Use regset-based core file support
5472 instead off fill_gregset and fill_fpregset.
5473 * Makefile.in (fbsd-proc.o): Update dependencies.
5474
5ca8ca7c
MK
5475 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
5476 instructions.
5477 (m88k_frame_prev_register): Simplify code a bit.
5478
593adc23
MK
5479 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
5480 (amd64_collect_fpregset): New function.
5481 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
5482
8d1b517b
MK
5483 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
5484
7fdafb5a
MK
5485 * i386-tdep.c (i386_supply_gregset): Adjust comment.
5486 (i386_collect_gregset): New function.
5487 (i386_supply_fpregset): Adjust comment.
5488 (i386_collect_fpregset): New function.
5489 (i386_regset_from_core_section): Use i386_collect_gregset and
5490 i386_collect_fpregset.
5491
8693c419
MK
5492 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
5493 handle VALUEP being null.
5494
2c34abbe
MK
5495 * regset.h (collect_regset_ftype): Unconstify fourth argument.
5496
45d134d8
MK
54972004-05-29 Mark Kettenis <kettenis@gnu.org>
5498
1698f4e7
MK
5499 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
5500
45d134d8
MK
5501 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
5502 assembler in OpenBSD 3.5-current.
5503 (amd64obsd_sigcontext_addr): Likewise.
5504
691d145a
JB
55052004-05-28 Jim Blandy <jimb@redhat.com>
5506
5507 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
5508 register set, so our regcache isn't declared "legacy" and our E500
5509 pseudoregister read and write functions aren't ignored.
5510 (rs6000_register_byte, rs6000_register_raw_size,
5511 rs6000_register_virtual_type, rs6000_register_convertible,
5512 rs6000_register_convert_to_virtual,
5513 rs6000_register_convert_to_raw): Deleted.
5514 (rs6000_register_type, rs6000_convert_register_p,
5515 rs6000_register_to_value, rs6000_value_to_register): New
5516 functions.
5517 (rs6000_gdbarch_init): Don't register
5518 gdbarch_deprecated_register_size,
5519 gdbarch_deprecated_register_bytes,
5520 gdbarch_deprecated_register_byte,
5521 gdbarch_deprecated_register_raw_size,
5522 gdbarch_deprecated_register_virtual_type,
5523 gdbarch_deprecated_register_convertible,
5524 gdbarch_deprecated_register_convert_to_virtual, or
5525 gdbarch_deprecated_register_convert_to_raw methods. Instead,
5526 register gdbarch_register_type, gdbarch_convert_register_p,
5527 gdbarch_register_to_value, and gdbarch_value_to_register methods.
5528
18ed0c4e
JB
55292004-05-26 Jim Blandy <jimb@redhat.com>
5530
5531 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
5532 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
5533 functions, updated to match the register numberings used in GCC.
5534 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
5535 rs6000_dwarf2_reg_to_regnum as register number conversions
5536 functions for STABS and Dwarf2.
5537
779af9e3
RC
55382004-05-26 Randolph Chung <tausq@debian.org>
5539
5540 * infttrace.h (target_waitkind): Forward declare type instead of pulling
5541 in header file.
5542
c23968a2
JB
55432004-05-25 Joel Brobecker <brobecker@gnat.com>
5544
5545 * NEWS: Document new "start" command.
5546
3a7d1c27
RC
55472004-05-25 Randolph Chung <tausq@debian.org>
5548
5549 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
5550 hppa-linux.
5551
43613416
RC
55522004-05-25 Randolph Chung <tausq@debian.org>
5553
5554 * hppa-hpux-tdep.c (offsetof): Define.
5555 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
5556 (hppa32_hpux_frame_base_before_sigtramp)
5557 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
5558 (hppa64_hpux_frame_saved_pc_in_sigtramp)
5559 (hppa64_hpux_frame_base_before_sigtramp)
5560 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
5561 functions.
5562 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
5563 (hppa_hpux_sigtramp_frame_unwind_cache)
5564 (hppa_hpux_sigtramp_frame_this_id)
5565 (hppa_hpux_sigtramp_frame_prev_register)
5566 (hppa_hpux_sigtramp_frame_unwind)
5567 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
5568 (hppa_hpux_init_abi): Register sigtramp unwinder.
5569 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
5570
6d1be3f1
RC
55712004-05-25 Randolph Chung <tausq@debian.org>
5572
5573 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
5574 and multiple stack unwinds.
5575 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
5576
97c34f65
AC
55772004-05-25 Andrew Cagney <cagney@gnu.org>
5578
5579 * symfile.h (symbol_file_add_from_memory): Delete declaration.
5580 * symfile-mem.h: Delete file.
5581 * symfile-mem.c: Do not include "symfile-mem.h".
5582 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
5583 "struct bfd_section". When an error do not bother returning NULL.
5584 (add_symbol_file_from_memory_command): Use "struct bfd" and
5585 "struct bfd_section".
5586 * Makefile.in (symfile_mem_h): Delete.
5587 (symfile-mem.o): Update dependencies.
5588
e23cbd82
NR
55892004-05-25 Nick Roberts <nickrob@gnu.org>
5590
5591 * gdb-mi.el: New file.
5592
20d2ca3e
AC
55932004-05-25 Andrew Cagney <cagney@gnu.org>
5594
5595 * inftarg.c: Include "observer.h".
5596 (child_attach, child_create_inferior): Notify inferior_created.
5597 * corelow.c: Include "observer.h".
5598 (core_open): Notify inferior_created.
5599 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
5600
c27cda74
AC
56012004-05-25 Andrew Cagney <cagney@gnu.org>
5602
5603 * target.h (struct target_ops): Add from_tty to
5604 to_create_inferior.
5605 (target_create_inferior, find_default_create_inferior): Update.
5606 * infcmd.c (run_command): Update.
5607 * wince.c (child_create_inferior): Update.
5608 * win32-nat.c (child_create_inferior): Update.
5609 * uw-thread.c (uw_thread_create_inferior): Update.
5610 * thread-db.c (thread_db_create_inferior): Update.
5611 * target.c (debug_to_create_inferior)
5612 (find_default_create_inferior): Update.
5613 (maybe_kill_then_create_inferior): Update.
5614 * sol-thread.c (sol_thread_create_inferior): Update.
5615 * remote.c (extended_remote_async_create_inferior)
5616 (extended_remote_create_inferior): Update.
5617 * remote-vx.c (vx_create_inferior): Update.
5618 * remote-st.c (st2000_create_inferior): Update.
5619 * remote-sim.c (gdbsim_create_inferior): Update.
5620 * remote-sds.c (sds_create_inferior): Update.
5621 * remote-rdp.c (remote_rdp_create_inferior): Update.
5622 * remote-rdi.c (arm_rdi_create_inferior): Update.
5623 * remote-m32r-sdi.c (m32r_create_inferior): Update.
5624 * remote-e7000.c (e7000_create_inferior): Update.
5625 * procfs.c (procfs_create_inferior): Update.
5626 * ocd.c (ocd_create_inferior): Update.
5627 * ocd.h (ocd_create_inferior): Update.
5628 * nto-procfs.c (procfs_create_inferior): Update.
5629 * monitor.c (monitor_create_inferior): Update.
5630 * lin-lwp.c (lin_lwp_create_inferior): Update.
5631 * inftarg.c (child_create_inferior): Update.
5632 * hpux-thread.c (hpux_thread_create_inferior): Update.
5633 * gnu-nat.c (gnu_create_inferior): Update.
5634
1db2a798
AC
56352004-05-25 Andrew Cagney <cagney@gnu.com>
5636
5637 * MAINTAINERS: Update e-mail address.
5638
007d08bb
RC
56392004-05-24 Randolph Chung <tausq@debian.org>
5640
5641 * thread.c (info_threads_command, thread_apply_all_command)
5642 (thread_apply_command, thread_command, do_captured_thread_select):
5643 Remove HPUXHPPA-specific code.
5644
69e7b95e
RC
56452004-05-24 Randolph Chung <tausq@debian.org>
5646
5647 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
5648 unused symbols.
5649 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
5650 references.
5651
a4d5f2e0
JB
56522004-05-24 Joel Brobecker <brobecker@gnat.com>
5653
5654 * infcmd.c (kill_if_already_running): New function, extracted
5655 from run_command().
5656 (run_command): Replace extracted code by call to
5657 kill_if_already_running().
5658 (start_command): New function.
5659 (_initialize_infcmd): Add "start" command.
5660
bf2ca189
MK
56612004-05-24 Mark Kettenis <kettenis@gnu.org>
5662
5663 Add OpenBSD/m88k support.
5664 * NEWS (New native configurations): Mention OpenBSD/m88k.
5665 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
5666 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
5667 * Makefile.in (m88k_tdep_h): New variable.
5668 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
5669 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
5670 * configure.host: Add m88*-*-openbsd*.
5671 * configure.tgt: Add m88*-*-openbsd*.
5672
80fadb11
JB
56732004-05-24 Jim Blandy <jimb@redhat.com>
5674
5675 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
5676 to approve changes.
5677
19e2d14b
KB
56782004-05-24 Kevin Buettner <kevinb@redhat.com>
5679
5680 * symtab.c (fixup_section): Search section table when lookup by
5681 name fails.
5682
1b07b470
RC
56832004-05-24 Randolph Chung <tausq@debian.org>
5684
5685 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
5686 be "small_struct".
5687
368702b1
MK
56882004-05-24 Mark Kettenis <kettenis@gnu.org>
5689
5df97fde
MK
5690 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
5691 register number in regcache_raw_collect call.
5692 (m68kbsd_collect_fpregset): Likewise.
5693 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
5694
368702b1
MK
5695 * regset.h (struct regset): Add back `regset' member.
5696
a770d4ec
MK
56972004-05-23 Mark Kettenis <kettenis@gnu.org>
5698
70f9f479
MK
5699 * configure.in: Check for td_pcb in `struct thread'.
5700 * configure, config.in: Regenerated.
5701
2e16d79e
MK
5702 * dpx2-nat.c: Remove file.
5703 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
5704 (dpx2-nat.o): Remove dependencies.
5705
492cf391
MK
5706 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
5707 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
5708 (amd64obsd_supply_pcb): New function.
5709 (_initialize_amd64obsd_nat): Enable libkvm interface.
5710 * Makefile.in (amd64obsd-nat.o): Update dependencies.
5711 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
5712 (LOADLIBES): New variable.
5713
a770d4ec
MK
5714 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
5715 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
5716 (sparc32nbsd_supply_pcb): New function.
5717 (_initialize_sparcnbsd_nat): Enable libkvm interface.
5718 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
5719 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
5720 (LOADLIBES): New variable.
5721
9ea75c57
MK
57222004-05-22 Mark Kettenis <kettenis@gnu.org>
5723
2e0c3539
MK
5724 * bsd-kvm.c, bsd-kvm.h: New files.
5725 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
5726 "bsd-kvm.h".
5727 (i386fbsd_supply_pcb): New function.
5728 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
5729 (i386fbsd-nat.o): Update dependencies.
5730 (bsd_kvm_h): New variable.
5731 (bsd-kvm.o): New dependency.
5732 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
5733 (LOADLIBES): New variable.
5734
9ea75c57
MK
5735 * regset.c: Tweak comment.
5736 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
5737 macro.
5738 * regset.h: Update copyright year.
5739 (struct regset): Remove `descr' member, add `gdbarch' member.
5740 (regset_alloc): Adjust prototype and comment.
5741 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
5742 (i386_supply_fpregset): Likewise.
5743 (i386_regset_from_core_section): Update call to regset_alloc.
5744 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
5745 REGSET->arch.
5746 (i386obsd_aout_regset_from_core_section): Update call to
5747 regset_alloc.
5748 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
5749 REGSET->arch.
5750 (i386nbsd_aout_regset_from_core_section): Update call to
5751 regset_alloc.
5752 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
5753 REGSET->arch.
5754 (amd64_regset_from_core_section): Update call to regset_alloc.
5755 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
5756 REGSET->arch.
5757 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
5758 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
5759 &sparc32nbsd_gregset in sparc32_supply_gregset call.
5760 (sparc32nbsd_init_abi): Update call to regset_alloc.
5761 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
5762 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
5763 (sparc64obsd_init_abi): Update call to regset_alloc.
5764 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
5765 &sparc64nbsd_gregset in sparc64_supply_gregset call.
5766 (sparc64nbsd_init_abi): Update call to regset_alloc.
5767 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
5768 &sparc64fbsd_gregset in sparc64_supply_gregset call.
5769 (sparc64fbsd_init_abi): Update call to regset_alloc.
5770
867e2dc5
JB
57712004-05-22 Jim Blandy <jimb@redhat.com>
5772
5773 * ppc-tdep.h (spe_register_p): New declaration.
5774 (struct gdbarch_tdep): New members: ppc_acc_regnum and
5775 ppc_spefscr_regnum.
5776 * rs6000-tdep.c (spe_register_p): New function.
5777 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
5778 spefscr.
5779 (rs6000_gdbarch_init): Initialize the new members of the tdep
5780 structure.
5781
617a4cba
JB
57822004-05-21 Jim Blandy <jimb@redhat.com>
5783
0397dee1
JB
5784 * ppc-linux-nat.c (fetch_register): Move code back to be next
5785 to the comment that describes it. (Moved code, instead of
5786 comment, for symmetry with store_register.)
5787
617a4cba
JB
5788 Allocate regset structures in the gdbarch's obstack, not using
5789 xmalloc.
5790 * regset.c (regset_alloc): Renamed from regset_xmalloc.
5791 Add 'arch' argument. Allocate the regset on arch's obstack, not
5792 using xmalloc.
5793 * regset.h (regset_alloc): Update declaration.
5794 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
5795 gdbarch argument.
5796 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5797 * i386-tdep.c (i386_regset_from_core_section): Same.
5798 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5799 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5800 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5801 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5802 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5803 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5804
9aa3914d
JB
58052004-05-21 Joel Brobecker <brobecker@gnat.com>
5806
5807 * config/djgpp/fnchange.lst: Undo previous change, was useless.
5808
99c87dab
JB
58092004-05-21 Jim Blandy <jimb@redhat.com>
5810
5811 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
5812 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
5813
c2b6b4aa
JB
58142004-05-20 Jim Blandy <jimb@redhat.com>
5815
5816 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
5817
144529d0
MK
58182004-05-20 Mark Kettenis <kettenis@gnu.org>
5819
5820 * regset.h: Make prototype const-correct.
5821 * regset.c (regset_xmalloc): Make const-correct.
5822
4725b721
PH
58232004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
5824
5825 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
5826 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
5827 (symbol_search_name): Declare.
5828
5829 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
5830 (iter_name_next_hashed): Ditto.
5831 (iter_name_next_linear): Ditto.
5832 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
5833
5834 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
5835 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
5836 (symbol_search_name): New function.
5837
5838 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
5839
5840 * minsyms.c (build_minimal_symbol_hash_tables): Change
5841 test for adding to demangled hash table to check for difference
5842 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
5843
be07a590
JB
58442004-05-19 Jim Blandy <jimb@redhat.com>
5845
5846 Use a constructor function to create regset structures.
5847 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
5848 (struct regset): Use supply_regset_ftype. Add new
5849 'collect_regset' member.
5850 (regset_xmalloc): New declaration.
5851 * regset.c: New file.
5852 * am64-tdep.c (amd64_regset_from_core_section): Use
5853 regset_xmalloc to construct regset structures.
5854 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
5855 * i386-tdep.c (i386_regset_from_core_section): Same.
5856 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
5857 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
5858 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
5859 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
5860 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
5861 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
5862 * Makefile.in (COMMON_OBS): Add regset.o.
5863 (regset.o): New rule.
5864
604368f5
JB
58652004-05-19 Joel Brobecker <brobecker@gnat.com>
5866
5867 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
5868 and pthread_cond_wait.c.
5869
82d69f8b
JB
58702004-05-18 Jim Blandy <jimb@redhat.com>
5871
5872 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
5873 before the mach-specific switch, and then let the individual cases
5874 override the defaults, rather than leaving them uninitialized
5875 until the switch and then setting them in each case.
5876
5859efe5
RC
58772004-05-18 Randolph Chung <tausq@debian.org>
5878
5879 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
5880 millicode functions.
5881
9ca80cf8
RC
58822004-05-18 Randolph Chung <tausq@debian.org>
5883
5884 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
5885 references to dld_flags_buffer consistent.
5886
ed70ba00
RC
58872004-05-18 Randolph Chung <tausq@debian.org>
5888
5889 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
5890 it for unwinding the stack.
5891
63100632
RC
58922004-05-18 Randolph Chung <tausq@debian.org>
5893
5894 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
5895 Undefine these so we can overide them using gdbarch.
5896
090ccbb7
RC
58972004-05-18 Randolph Chung <tausq@debian.org>
5898
5899 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
5900 handling for 64-bit HPUX (elf).
5901
594706e6
DJ
59022004-05-18 Daniel Jacobowitz <dan@debian.org>
5903
5904 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
5905 constants.
5906 * amd64-tdep.c (amd64_skip_prologue): Likewise.
5907 * ia64-tdep.c (examine_prologue): Likewise.
5908 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
5909 * v850-tdep.c (v850_fix_call_dummy): Likewise.
5910
e5483145
MK
59112004-05-18 Mark Kettenis <kettenis@gnu.org>
5912
5913 * vax-tdep.c (vax_return_value): Implement
5914 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5915
caed1a45
MK
59162004-05-17 Mark Kettenis <kettenis@gnu.org>
5917
5918 * vax-tdep.c (vax_return_value): Fix typo.
5919
3c0b7db2
AC
59202004-05-17 Andrew Cagney <cagney@redhat.com>
5921
5aae53e5
AC
5922 * MAINTAINERS: Mark Salter was also responsible for
5923 testsuite/config/
5924
3c0b7db2
AC
5925 * NEWS: Mention signal fixes.
5926
22b0923d
RC
59272004-05-17 Randolph Chung <tausq@debian.org>
5928
5929 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
5930 check to see if we are unwinding an export stub. Export stubs clobber
5931 the %rp in the call path and stores the original rp in a stack slot.
5932
22f2b2f3
JB
59332004-05-17 Jim Blandy <jimb@redhat.com>
5934
5935 * MAINTAINERS: Update address for J.T. Conklin.
5936
cea96d64
RC
59372004-05-17 Randolph Chung <tausq@debian.org>
5938
5939 * hppa-tdep.c: Remove superfluous #include's.
5940 * Makefile.in (hppa-tdep.o): Update dependencies.
5941
f08f6a4a
RC
59422004-05-17 Randolph Chung <tausq@debian.org>
5943
5944 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
5945 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
5946 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
5947 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
5948 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
5949 Remove static function declarations.
5950
51da707a
MK
59512004-05-17 Mark Kettenis <kettenis@gnu.org>
5952
caed1a45
MK
5953 * alphabsd-nat.c: Update copyright year.
5954 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
5955
c0c2b0db
MK
5956 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
5957 and M68K_A2_REGNUM.
5958
51da707a
MK
5959 * m68k-tdep.c (m68k_svr4_return_value): Implement
5960 RETURN_VALUE_ABI_RETURNS_ADDRESS.
5961
8d027a04
MK
59622004-05-16 Mark Kettenis <kettenis@gnu.org>
5963
5964 * sol-thread.c Update copyright year. Fix various coding
5965 standards violations. Tweak a few comments.
5966 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
5967 Delete prototypes.
5968
0d99fdb9
RC
59692004-05-15 Randolph Chung <tausq@debian.org>
5970
5971 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
5972 as pointer instead of array reference since HPUX compiler does
5973 not accept unsized array arguments.
5974 * somsolib.c (dld_flags_buffer): Use constant array size.
5975
f7e3843a
MK
59762004-05-15 Mark Kettenis <kettenis@gnu.org>
5977
0fe85704
MK
5978 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
5979 offset with decimal offset.
5980 (amd64obsd_sigcontext_addr): Return correct address for entire
5981 signal trampoline.
5982
a54f9a00
MK
5983 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
5984 instead of get_frame_base.
5985
feae6502
MK
5986 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
5987 (fill_gregset): Use regcache_raw_collect.
5988
0382d099
MK
5989 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
5990 ppcobsd-tdep.c.
5991
f7e3843a
MK
5992 * config/sparc/tm-nbsd64.h: Remove file.
5993 * config/tm-sunos.h: Remove file.
5994
773df3e5
JB
59952004-05-15 Joel Brobecker <brobecker@gnat.com>
5996
5997 * rs6000-tdep.c (store_param_on_stack_p): New function,
5998 an improved version of some code extracted from skip_prologue().
5999 (skip_prologue): Use store_param_on_stack_p() to detect
6000 instructions saving a parameter on the stack. Detect when r0
6001 is used to save a parameter.
6002 Do not mark "li rx, SIMM" instructions as part of the prologue,
6003 unless the following instruction is also part of the prologue.
6004
95918acb
AC
60052004-05-14 Andrew Cagney <cagney@redhat.com>
6006
06f32659
AC
6007 * infrun.c (handle_inferior_event): Simplify
6008 STEP_OVER_UNDEBUGGABLE.
6009
95918acb
AC
6010 * infrun.c (handle_step_into_function): Delete function.
6011 (handle_inferior_event): Inline calls to
6012 handle_step_into_function.
6013
40711ff1 60142004-05-14 Jerome Guitton <guitton@gnat.com>
42203e46
JG
6015
6016 * rs6000-nat.c: Fix a comment.
6017
02f60eae
JB
60182004-05-12 David Anderson <davea@sgi.com>
6019
6020 Committed by Jim Blandy <jimb@redhat.com>:
6021 * regcache.c (struct regcache_descr): fix comment spelling.
6022
552e377b
JB
60232004-05-13 J. Brobecker <brobecker@gnat.com>
6024
6025 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
6026 Fixes a link link failure.
6027
349766b2
JB
60282004-05-13 J. Brobecker <brobecker@gnat.com>
6029
6030 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
6031 error that was causing the build to fail.
6032
0d4d5484
JB
60332004-05-13 J. Brobecker <brobecker@gnat.com>
6034
6035 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
6036 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
6037
0b30808c
AC
60382004-05-13 Andrew Cagney <cagney@redhat.com>
6039
6040 * infrun.c (handle_inferior_event): Check for
6041 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
6042 calls. Update comments.
6043
cdf2c5f5
JB
60442004-05-13 Jim Blandy <jimb@redhat.com>
6045
063715bf
JB
6046 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
6047 (fetch_regs_user_thread, fetch_regs_kernel_thread)
6048 (store_regs_user_thread, store_regs_kernel_thread): Use
6049 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
6050 * ppc-linux-nat.c (fill_gregset): Same.
6051 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
6052 (ppc_linux_sigtramp_cache): Same.
6053 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
6054 (ppcnbsd_sigtramp_cache_init): Same.
6055 * rs6000-nat.c (fetch_core_registers): Same.
6056 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
6057 (rs6000_frame_cache): Same.
6058
cdf2c5f5
JB
6059 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
6060 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
6061 of assuming that the gprs are numbered starting with zero.
6062 * ppc-linux-nat.c (fill_gregset): Same.
6063 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
6064 * ppcnbsd-nat.c (getregs_supplies): Same.
6065 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
6066 * rs6000-nat.c (fetch_core_registers): Same.
6067 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
6068
450bd37b
MS
60692004-05-07 Michael Snyder <msnyder@redhat.com>
6070
6071 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
6072 LOC_COMPUTED_ARG, and LOC_INDIRECT.
6073
4a72a2a6
AC
60742004-05-13 Andrew Cagney <cagney@redhat.com>
6075
6076 * infrun.c (handle_inferior_event): Use frame_unwind_id.
6077
8edfa926
BM
60782004-05-13 Bryce McKinlay <mckinlay@redhat.com>
6079
6080 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
6081 base_address for shared libraries.
6082
723e0e3d
BM
60832004-05-13 Bryce McKinlay <mckinlay@redhat.com>
6084
6085 * MAINTAINERS (write after approval): Add myself.
6086
00d4360e
UW
60872004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6088
6089 * breakpoint.c (bpstat_stop_status): Add new argument
6090 STOPPED_BY_WATCHPOINT. Use it instead of testing
6091 target_stopped_data_address agaist 0 to check whether
6092 or not we stopped due to a hardware watchpoint.
6093 * breakpoint.h (bpstat_stop_status): Adapt prototype.
6094 * infrun.c (handle_inferior_event): Call bpstat_stop_status
6095 with new argument.
6096
ec76baa5
JB
60972004-05-12 Jim Blandy <jimb@redhat.com>
6098
6099 * configure.in: When checking whether we should use the -bbigtoc
6100 option, don't forget to restore the original value of LDFLAGS.
6101 * configure: Regenerated.
6102
f2c9ca08
AC
61032004-05-12 Andrew Cagney <cagney@redhat.com>
6104
6105 * thread.c (load_infrun_state): Delete step_sp.
6106 * infrun.c (context_switch): Ditto.
6107 * inferior.h (step_sp): Ditto.
6108 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
6109 * gdbthread.h (struct thread_info, save_infrun_state)
6110 (restore_infrun_state): Ditto.
6111
090ddb2a
UW
61122004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
6113
6114 * MAINTAINERS (write after approval): Add myself.
6115
8aad930b
AC
61162004-05-12 Andrew Cagney <cagney@redhat.com>
6117
6118 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
6119 eliminate reference to step_sp.
6120 (struct execution_control_state, init_execution_control_state)
6121 (handle_inferior_event, keep_going): Delete update_step_sp and
6122 step_sp.
6123 * infcmd.c (step_sp): Note that variable is unused.
6124
922d5ae0
AC
61252004-05-11 Andrew Cagney <cagney@redhat.com>
6126
6127 * infrun.c (step_over_function): Delete function.
6128 (handle_step_into_function): Use insert_step_resume_breakpoint.
6129 (insert_step_resume_breakpoint): Fix assertion.
6130
017c5ca5
NR
61312004-05-11 Nick Roberts <nickrob@gnu.org>
6132
6133 * utils.c (defaulted_query): Just use the normal query input type
6134 when printing the annotations.
6135
42edda50
AC
61362004-05-11 Andrew Cagney <cagney@redhat.com>
6137
6138 * infrun.c (handle_inferior_event): Simplify code handling
6139 step-into or return-from a signal trampoline.
6140
d28b44a7
AC
61412004-05-11 Andrew Cagney <cagney@redhat.com>
6142
6143 * ppcnbsd-tdep.c: Include "gdb_assert.h".
6144 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
6145
383f0f5b
JB
61462004-05-10 Jim Blandy <jimb@redhat.com>
6147
d0b57c3a
JB
6148 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
6149 with a call to internal_error.
6150
383f0f5b
JB
6151 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
6152 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
6153 processor variant lacks those registers.
6154 (ppc_floating_point_unit_p): Change description to make it clear
6155 that this returns info about the ISA, not the ABI.
6156 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
6157 return true or false by checking tdep->ppc_fp0_regnum and
6158 tdep->ppc_fpscr_regnum. The original code replicated the BFD
6159 arch/mach switching done in rs6000_gdbarch_init; it's better to
6160 keep that logic there, and just check the results here.
6161 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
6162 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
6163 floating-point registers.
6164 (ppc_supply_fpregset, ppc_collect_fpregset)
6165 (rs6000_push_dummy_call, rs6000_extract_return_value)
6166 (rs6000_store_return_value): Assert that we have floating-point
6167 registers.
6168 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
6169 (rs6000_frame_cache): Don't note the locations at which
6170 floating-point registers were saved if we have no fprs.
6171 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
6172 registers.
6173 (fetch_regs_user_thread, fetch_regs_kernel_thread)
6174 (store_regs_user_thread, store_regs_kernel_thread): Only call
6175 supply_fprs / fill_fprs if we actually have floating-point
6176 registers.
6177 (special_register_p): Check ppc_fpscr_regnum before matching
6178 against it.
6179 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
6180 supply / collect fpscr if we don't have it.
6181 * ppc-bdm.c: #include "gdb_assert.h".
6182 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
6183 have floating-point registers, since I can't test this code on
6184 FP-free systems to adapt it.
6185 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
6186 fpscr and floating point register numbers if they don't exist.
6187 (fetch_register): Assert that we have floating-point registers
6188 before we reach the code that handles them.
6189 (store_register): Same. And use tdep instead of calling
6190 gdbarch_tdep again.
6191 (fill_fpregset): Don't try to collect FP registers and fpscr if we
6192 don't have them.
6193 (ppc_linux_sigtramp_cache): Don't record the saved locations of
6194 fprs and fpscr if we don't have them.
6195 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
6196 don't have them.
6197 * ppcnbsd-nat.c: #include "gdb_assert.h".
6198 (getfpregs_supplies): Assert that we have floating-point registers.
6199 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
6200 * ppcobsd-tdep.c: #include "gdb_assert.h".
6201 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
6202 have floating-point registers.
6203 * rs6000-nat.c (regmap): Don't match against the fpscr and
6204 floating point register numbers if they don't exist.
6205 (fetch_inferior_registers, store_inferior_registers,
6206 fetch_core_registers): Only fetch / store / supply the
6207 floating-point registers and the fpscr if we have them.
6208 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
6209 (ppcobsd-tdep.o): Update dependencies.
6210
15960608
AC
62112004-05-10 Andrew Cagney <cagney@redhat.com>
6212
6213 * infrun.c (through_sigtramp_breakpoint): Delete variable.
6214 (context_switch): Do not switch through_sigtramp_breakpoint.
6215 * gdbthread.h (save_infrun_state, load_infrun_state)
6216 (struct thread_info): Delete through_sigtramp_breakpoint parameter
6217 and structure member.
6218 * thread.c (load_infrun_state, save_infrun_state): Update.
6219
5ab5aa0f
MK
62202004-05-10 Mark Kettenis <kettenis@gnu.org>
6221
6222 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
6223
da78b0e7
DJ
62242004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6225
6226 * acinclude.m4: Quote macro names being defined by AC_DEFUN
6227 throughout.
6228 * aclocal.m4: Regenerate.
6229
cca0d3b0
NW
62302004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
6231
6232 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
6233
d303a6c7
AC
62342004-05-10 Andrew Cagney <cagney@redhat.com>
6235
6236 * infrun.c (check_sigtramp2): Delete function.
6237 (handle_inferior_event): When single stepping, and taking a
6238 signal, set a breakpoint at the signal return address. Delete
6239 redundant calls to check_sigtramp2.
6240 (insert_step_resume_breakpoint): New function.
6241 (through_sigtramp_breakpoint, handle_inferior_event)
6242 (follow_exec, wait_for_inferior, fetch_inferior_event)
6243 (currently_stepping, keep_going): Delete most uses of
6244 through_sigtramp_breakpoint, not that it should be deleted.
6245 (delete_breakpoint_current_contents): Delete function.
6246
03f4cc20
RC
62472004-05-10 Randolph Chung <tausq@debian.org>
6248
6249 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
6250 target.
6251 * config/pa/tm-linux.h: New file.
6252
37fc812e
DJ
62532004-05-10 Daniel Jacobowitz <drow@mvista.com>
6254
6255 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
6256 of prefixes. Don't print the prefix twice in the CLI.
6257
26c0b942
JB
62582004-05-10 Jim Blandy <jimb@redhat.com>
6259
2e56e9c1
JB
6260 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
6261 collect all the gprs.
6262
26c0b942
JB
6263 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
6264 loop collecting gprs.
6265
dc497459
AC
62662004-05-09 Andrew Cagney <cagney@redhat.com>
6267
6268 * remote-vx.c (net_step): Delete step-range code.
6269 * remote.c (remote_resume, init_all_packet_configs)
6270 (set_remote_protocol_E_packet_cmd)
6271 (show_remote_protocol_E_packet_cmd)
6272 (remote_protocol_E, show_remote_cmd, _initialize_remote)
6273 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
6274 (show_remote_protocol_e_packet_cmd): Ditto.
6275
0543f387
MK
62762004-05-09 Mark Kettenis <kettenis@gnu.org>
6277
c481d1ca
MK
6278 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
6279
f626a069
MK
6280 * hppa-tdep.h: Update copyright year.
6281 (struct trad_frame_saved_reg): Add opaque declaration.
6282
6fa57a7d
MK
6283 * amd64-tdep.c (amd64_return_value): Implement
6284 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6285
e47577ab
MK
6286 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
6287 (m68k_value_to_register): New functions.
6288 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
6289 value_to_register.
6290
31db7b6c
MK
6291 * defs.h (enum return_value_convention): Add
6292 RETURN_VALUE_ABI_RETURNS_ADDRESS and
6293 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
6294 * infcmd.c (legacy_return_value): New function.
6295 (print_return_value): Rwerite to implement
6296 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6297 * values.c (using_struct_return): Check for inequality to
6298 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
6299 RETURN_VALUE_STRUCT_CONVENTION.
6300 * i386-tdep.c (i386_return_value): Implement
6301 RETURN_VALUE_ABI_RETURNS_ADDRESS.
6302
0543f387
MK
6303 * vax-tdep.c: Tweak comments. Reorder include files. Don't
6304 include "symtab.h", "opcode/vax.h" and "inferior.h".
6305 (vax_skip_prologue): Replace calls to read_memory_integer by calls
6306 to read_memory_unsigned_integer.
6307 (vax_gdbarch_init): Reorder.
6308 (_initialize_vax_tdep): Spell out prototype.
6309 * Makefile.in (vax-tdep.o): Update dependencies.
6310
0c93b7b6
AC
63112004-05-08 Andrew Cagney <cagney@redhat.com>
6312
e6b55ae2
AC
6313 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
6314 * target.c (target_detach, target_disconnect): Ditto.
6315
1ac839b8
AC
6316 * infcall.c (call_function_by_hand): When no
6317 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
6318 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
6319 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
6320 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6321 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6322
28954179
AC
6323 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
6324 * gdbarch.h, gdbarch.c: Re-generate.
6325 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6326 deprecated_fix_call_dummy.
6327 * v850-tdep.c (v850_gdbarch_init): Ditto.
6328 * infcall.c (call_function_by_hand): Do not call
6329 DEPRECATED_FIX_CALL_DUMMY.
6330
434b87dd
AC
6331 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
6332 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
6333 * gdbarch.h, gdbarch.c: Re-generate.
6334 * arm-linux-tdep.c (arm_linux_call_dummy_words)
6335 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
6336 deprecated_sizeof_call_dummy_words.
6337 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
6338 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6339 * v850-tdep.c (v850_gdbarch_init): Ditto.
6340 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
6341 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
6342 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6343 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6344 * arch-utils.h (legacy_call_dummy_words)
6345 (legacy_sizeof_call_dummy_words): Delete declarations.
6346 * arch-utils.c (legacy_call_dummy_words)
6347 (legacy_sizeof_call_dummy_words): Delete variables.
6348
58d28df8
AC
6349 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
6350 * gdbarch.h, gdbarch.c: Re-generate.
6351 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
6352 * infcall.c (call_function_by_hand): Eliminate call to
6353 DEPRECATED_PUSH_DUMMY_FRAME.
6354 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6355 push_dummy_frame.
6356 (ns32k_push_dummy_frame): Delete function.
6357
e4a2df64
AC
6358 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6359 deprecated_call_dummy_breakpoint_offset or
6360 deprecated_call_dummy_start_offset.
6361 * dummy-frame.c, arm-tdep.c: Update comments.
6362 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
6363 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
6364 * gdbarch.h, gdbarch.c: Re-generate.
6365
d3712828
AC
6366 * infcall.c (legacy_push_dummy_code): Delete function.
6367 (push_dummy_code): Delete call.
6368
7a882905
AC
6369 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
6370 * gdbarch.h, gdbarch.c: Re-generate.
6371 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
6372 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
6373 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
6374 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
6375
0ec5872b
AC
6376 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
6377 (struct frame_info): Delete opaque declaration.
6378 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
6379 * frame.c (get_frame_type): Delete call.
6380
0c93b7b6
AC
6381 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
6382 pc_in_call_dummy.
6383 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
6384 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
6385
75536971
MK
63862004-05-08 Mark Kettenis <kettenis@gnu.org>
6387
527ca6bb
MK
6388 * alphanbsd-tdep.c: Include "gdb_string.h".
6389 * armnbsd-tdep.c: Update copyright year.
6390 Include "gdb_string.h".
6391 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
6392 dependencies.
6393
d39fdc61
MK
6394 * delta68-nat.c: Remove file.
6395 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
6396 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
6397 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
6398 (delta68-nat.o): Remove dependency.
6399
75536971
MK
6400 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
6401 function.
6402 (m68k_gdbarch_init): Don't set
6403 deprecated_frameless_function_invocation.
6404
f4ca1d1f
RC
64052004-05-07 Randolph Chung <tausq@debian.org>
6406
6407 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
6408 read_memory_nobpt for code reading when doing frame unwinding.
6409 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
6410
2f0e8c7a
RC
64112004-05-07 Randolph Chung <tausq@debian.org>
6412
6413 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
6414 instead of sp, handle sigaltstack case.
6415 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
6416 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
6417 signal handler and not that of the caller.
6418 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
6419 hppa_linux_sigtramp_find_sigcontext.
6420
959464ff
RC
64212004-05-07 Randolph Chung <tausq@debian.org>
6422
6423 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
6424 hppa-linux-nat.c.
6425 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
6426 * hppa-linux-nat.c (fetch_register, store_register): Define.
6427 (fetch_inferior_registers, store_inferior_registers): Define.
6428 (supply_gregset): Add comment and clean up some unneeded code.
6429 (fill_gregset): Add comment and fix so that it saves registers in
6430 the right place in the gregset.
6431 (fill_fpregset): Fix buffer overrun problem.
6432 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
6433
0da28f8a
RC
64342004-05-07 Randolph Chung <tausq@debian.org>
6435
6436 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
6437 do common handling of the pcoqt register.
6438 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
6439 to use helper function.
6440 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
6441 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
6442 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
6443 generic fallback unwinder when all else fails.
6444 (hppa_gdbarch_init): Add fallback sniffer.
6445 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
6446 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
6447 to use helper function.
6448
b9ec757a
JB
64492004-05-08 Joel Brobecker <brobecker@gnat.com>
6450
6451 * config/djgpp/fnchange.lst: Add translation rules for
6452 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
6453
756e95f1
MK
64542004-05-08 Mark Kettenis <kettenis@gnu.org>
6455
6456 * frame.c (get_prev_frame_1): Work around GCC bug.
6457 * frame.h: Add comment about GCC bug.
6458
2b4855ab
AC
64592004-05-07 Andrew Cagney <cagney@redhat.com>
6460
6461 * observer.c: Include "commands.h" and "gdbcmd.h".
6462 (observer_debug, _initialize_observer): Add the
6463 command "set/show debug observer".
6464 * observer.sh: When observer debugging, log notify calls.
6465 * Makefile.in (observer.o): Update dependencies.
6466
ba3e8e46
JM
64672004-05-07 Jason Molenda (jmolenda@apple.com)
6468
6469 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
6470
16796152
JB
64712004-05-07 Jim Blandy <jimb@redhat.com>
6472
daf6dc85
JB
6473 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
6474 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
6475 to recognize gpr regnums, instead of assuming that
6476 tdep->ppc_fp0_regnum marks the end of the general-purpose
6477 registers.
6478
16796152
JB
6479 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
6480 the given architecture has floating-point registers.
6481
c69b8bfc
AC
64822004-05-07 Andrew Cagney <cagney@redhat.com>
6483
6484 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
6485 macro defined to 1.
6486 * gdbarch.h, gdbarch.c: Re-generate.
6487 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
6488 deprecated_use_generic_dummy_frames.
6489
7243600a
BF
64902004-05-07 Brian Ford <ford@vss.fsi.com>
6491
6492 * NEWS: Mention Cygwin DWARF 2 support.
6493
73c1e0a1
AC
64942004-05-07 Andrew Cagney <cagney@redhat.com>
6495
6496 * objfiles.h (struct entry_info): Delete unused fields
6497 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
6498 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
6499 * mipsread.c (mipscoff_symfile_read): Update.
6500 * mdebugread.c (parse_partial_symbols): Update.
6501 * dwarfread.c (read_file_scope): Update.
6502 * dwarf2read.c (read_file_scope): Update.
6503 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
6504 * coffread.c (complete_symtab): Update.
6505
1d3056ac
MK
65062004-05-07 Mark Kettenis <kettenis@gnu.org>
6507
6508 * infcall.c (_initialize_infcall): Fix typo.
6509
15170568
AC
65102004-05-07 Andrew Cagney <cagney@redhat.com>
6511
6512 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
6513 * command.h (add_setshow_zinteger_cmd): Declare.
6514
34f75cc1
RC
65152004-05-06 Randolph Chung <tausq@debian.org>
6516
6517 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
6518 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
6519 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
6520 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
6521 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
6522 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
6523 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
6524 definitions ...
6525 * hppa-tdep.h: ... to here, with HPPA_ prefix.
6526 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
6527 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
6528 (hppa64_hpux_frame_find_saved_regs_in_sig)
6529 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
6530 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
6531 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
6532 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
6533 (hppa_linux_sigtramp_frame_prev_register): Likewise.
6534 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
6535 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
6536 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
6537 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
6538 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
6539 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
6540 (hppa32_register_type, hppa_cannot_store_register)
6541 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
6542 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
6543 * hpread.c (hpread_process_one_debug_symbol): Likewise.
6544 * pa64solib.c (pa64_solib_have_load_event)
6545 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
6546 (pa64_solib_unloaded_library_pathname): Likewise.
6547 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
6548 (som_solib_library_pathname): Likewise.
6549
0a5e7efe
JI
65502004-05-05 Jim Ingham <jingham@apple.com>
6551
6552 * breakpoint.c (create_breakpoints): Copy the ignore count and
6553 thread id over from the pended breakpoint to the actual
6554 breakpoint.
6555
10a4b113
AC
65562004-05-05 Andrew Cagney <cagney@redhat.com>
6557
6558 * gdbarch.sh (PARM_BOUNDARY): Delete.
6559 gdbarch.h, gdbarch.c: Re-generate.
6560 * valops.c (PARM_BOUNDARY): Delete macro.
6561 (value_push): Delete PARM_BOUNDARY code.
6562 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
6563
366f009f
JB
65642004-05-04 Jim Blandy <jimb@redhat.com>
6565
32b99774
JB
6566 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
6567 Don't assume that the gprs, fprs, and UISA sprs are
6568 contiguous, start at register number zero, and end with fpscr.
6569 Instead, use the numbers from the tdep structure.
6570
366f009f
JB
6571 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
6572 should no longer be used in code specific to the RS6000 and its
6573 derivatives.
6574 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
6575 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
6576 tdep->ppc_fp0_regnum.
6577 (ppc_supply_fpregset, ppc_collect_fpregset)
6578 (rs6000_push_dummy_call, rs6000_extract_return_value)
6579 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
6580 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
6581 FP0_REGNUM.
6582 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
6583 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
6584 Same.
6585 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
6586 bdm_ppc_store_registers): Same.
6587 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
6588 (store_register, fill_fpregset): Same.
6589 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
6590 (ppc_linux_supply_fpregset): Same.
6591 * ppcnbsd-nat.c (getfpregs_supplies): Same.
6592 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
6593 Same.
6594 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
6595 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
6596 ppc64_sysv_abi_return_value): Same.
6597 * rs6000-nat.c (regmap, fetch_inferior_registers)
6598 (store_inferior_registers, fetch_core_registers): Same.
6599
827f338d
MK
66002004-05-01 Mark Kettenis <kettenis@gnu.org>
6601
6602 * m68knbsd-nat.c: Remove file.
6603 * m68knbsd-tdep.c: Remove file.
6604 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
6605 dependencies.
6606 * configure.host: Add m68k-*-netbsdelf*.
6607 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
6608 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
6609 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
6610 (XM_FILE): Remove.
6611 * config/m68k/nbsdelf.mh: New file.
6612 * config/m68k/nbsd.mt: New file.
6613 * config/m68k/nbsdaout.mt: Remove file.
6614 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
6615 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
6616 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
6617 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
6618 (use_struct_convention): Remove prototype.
6619 (USE_STRUCT_CONVENTION): Remove define.
6620 * config/m68k/xm-nbsd.h: Remove file.
6621
66894781
MS
66222004-05-04 Michael Snyder <msnyder@redhat.com>
6623
6624 * m68k-tdep.c (m68k_gdbarch_init): Default to using
6625 reg_struct_return method (as gcc usually does for cross targets).
6626
f0f63663
AC
66272004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6628
6629 Committed by Andrew Cagney.
6630 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
6631 alignment padding when accessing ucontext struct members.
6632
edf61169
JB
66332004-05-04 Jim Blandy <jimb@redhat.com>
6634
8bf659e8
JB
6635 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
6636 'ppc_gplast_regnum' member.
6637 (ppc_num_gprs): New enum constant.
6638 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
6639 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
6640 * rs6000-nat.c (regmap, fetch_inferior_registers,
6641 store_inferior_registers): Same.
6642 * rs6000-tdep.c (e500_pseudo_register_read)
6643 (e500_pseudo_register_write): Same.
6644 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
6645
b967e06f
JB
6646 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
6647 * ppc-tdep.h (ppc_num_fprs): New enum constant.
6648 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
6649 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
6650 FPLAST_REGNUM.
6651 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6652 Same.
6653 * ppc-linux-nat.c (ppc_register_u_addr): Same.
6654 * rs6000-nat.c (regmap, fetch_inferior_registers)
6655 (store_inferior_registers): Same.
6656
edf61169
JB
6657 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
6658 with FPLAST_REGNUM.
6659
58a9656e
JB
66602004-05-03 Joel Brobecker <brobecker@gnat.com>
6661
6662 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
6663 failure detected by recent versions of GCC.
6664 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
6665 to be consistent with the usage in dwarf2_create_include_psymtab.
6666
dc305454
MS
66672004-05-03 Michael Snyder <msnyder@redhat.com>
6668
6669 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
6670 (heuristic_proc_start): Whitespace cleanup.
6671
29972665
MK
66722004-05-04 Mark Kettenis <kettenis@gnu.org>
6673
6b57680d
MK
6674 * sun3-nat.c: Remove file.
6675 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
6676 dependencies.
6677 (ALLDEPFILES): Remove sun3-nat.c.
6678 (sun3-nat.o): Remove dependencies.
6679
29972665
MK
6680 * i386-interix-nat.c, i386-interix-tdep.c,
6681 config/i386/nm-interix.h, config/i386/interix.mh,
6682 config/i386/interix.mt: Remove files.
6683 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
6684 dependencies.
6685
f595cb19
MK
66862004-05-03 Mark Kettenis <kettenis@gnu.org>
6687
6688 * m68k-tdep.h (struct gdbarch_tdep): Add member
6689 struct_value_regnum.
6690 (m68k_svr4_init_abi): New prototype.
6691 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
6692 different calling conventions.
6693 (m68k_extract_return_value): Remove code dealing with single-field
6694 structs.
6695 (m68k_store_return_value): Remove code dealing with single-field
6696 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
6697 (m68k_extract_struct_value_address): Remove function.
6698 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
6699 (m68k_reg_struct_return_p, m68k_return_value)
6700 (m68k_svr4_return_value): New functions.
6701 (m68k_use_struct_convention): Remove function.
6702 (m68k_push_dummy_call): Use new struct_value_regnum member of
6703 `struct gdbarch_tdep' instead of hardcoded register number to
6704 store STRUCT_ADDR.
6705 (m68k_svr4_init_abi): New function.
6706 (m68k_gdbarch_init): Don't set extract_return_value,
6707 store_return_values, deprecated_extract_struct_value_address and
6708 use_struct_convention. Set return_value instead. Initialize new
6709 struct_value_regnum member of `struct gdbarch_tdep'.
6710 * m68klinux-tdep.c: Update copyright year.
6711 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
6712 (m68k_linux_extract_struct_value_address): Remove function.
6713 (m68k_linux_init_abi): Don't set extract_return_value,
6714 store_return_values, deprecated_extract_struct_value_address and
6715 use_struct_convention. Call m68k_svr4_init_abi but override the
6716 new struct_value_regnum member of `struct gdbarch_tdep'.
6717 * Makefile.in (m68k-tdep.o): Update dependencies.
6718
aaa75496
JB
67192004-05-03 J. Brobecker <brobecker@gnat.com>
6720
6721 * dwarf2read.c (line_header): Add new included_p field in
6722 field file_names.
6723 (partial_die_info): New field has_stmt_list. New field line_offset.
6724 (dwarf2_create_include_psymtab): New function.
6725 (dwarf2_build_include_psymtabs): New function.
6726 (add_file_name): Add forward declaration. Initialize new field.
6727 (dwarf_decode_lines): Add new parameter. Enhance this procedure
6728 to be able to determine the list of files included by the
6729 given unit, and build their associated psymtabs.
6730 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
6731 files as well.
6732 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
6733 (read_file_scope): Update call to dwarf_decode_lines.
6734 (read_partial_die): Handle DW_AT_stmt_list attributes.
6735
c848556f
MC
67362004-05-02 Michael Chastain <mec.gnu@mindspring.com>
6737
6738 Unfix PR gdb/1626.
6739 * configure.in: Revert special case for osf5.*.
6740 * configure: Regenerate.
6741
eb4556d7
JB
67422004-05-02 Jim Blandy <jimb@redhat.com>
6743
6744 Move the symbol-file-from-memory functions into their own file.
6745 * symfile-mem.c, symfile-mem.h: New files.
6746 * symfile.c (symbol_file_add_from_bfd): New function.
6747 (symbol_file_add): Call symbol_file_add_from_bfd.
6748 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
6749 Moved to symfile-mem.c.
6750 (_initialize_symfile): Move definition of
6751 add-symbol-file-from-memory command to symfile-mem.c.
6752 * symfile.h (symbol_file_add_from_bfd): New declaration.
6753 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
6754 * config/powerpc/linux.mt (TDEPFILES): Same.
6755 * Makefile.in (SFILES): Add symfile-mem.c.
6756 (symfile_mem_h): New variable.
6757 (HFILES_NO_SRCDIR): Add symfile-mem.h.
6758 (symfile-mem.o): New rule.
6759
80bb239e
AC
67602004-05-01 Andrew Cagney <cagney@redhat.com>
6761
7789d0fa
AC
6762 * breakpoint.c (insert_bp_location): Use get_frame_id, and
6763 frame_find_by_id instead of frame_relative_level.
6764 (do_enable_breakpoint): Ditto.
6765 * thread.c: Update copyright.
6766 (info_threads_command): Ditto, simplify.
6767
80bb239e
AC
6768 * frame.c (deprecated_generic_get_saved_register): Delete
6769 function, moved to "xstormy16-tdep.c".
6770 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
6771 deprecated_generic_get_saved_register from "frame.c".
6772 (xstormy16_frame_saved_register): Call
6773 xstormy16_get_saved_register.
6774 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
6775 static.
6776 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
6777 * frame.h (deprecated_generic_get_saved_register): Delete.
6778
b2a871dd
MC
67792004-05-01 Michael Chastain <mec.gnu@mindspring.com>
6780
6781 * dwarfread.c: Update documentation on the state of dwarf-1.
6782
0e100dab
AC
67832004-05-01 Andrew Cagney <cagney@redhat.com>
6784
acd8056e
AC
6785 * stack.c (select_frame_command): Delete call to
6786 frame_relative_level.
6787 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
6788 Delete #if0 code.
6789 (frame_info): Do not print FRAMELESS.
6790 (print_block_frame_labels): Replace DEPRECATED_STREQ.
6791 (catch_info): Delete #if0 code.
6792
0e100dab
AC
6793 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
6794 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
6795 of frame_relative_level.
6796 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
6797 to SENTINEL_FRAME.
6798 * frame.h (enum frame_type): Add SENTINEL_FRAME.
6799 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
6800 frame_relative_level.
6801
55699d59
AC
6802 * frame.h (deprecated_set_frame_type): Delete declaration.
6803 * frame.c (deprecated_set_frame_type): Delete function, update
6804 comments.
6805
fcf70625
AC
6806 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
6807 * gdbarch.h, gdbarch.c: Re-generate.
6808 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
6809 (shnbsd_pc_in_sigtramp): Delete.
6810 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
6811 pc_in_sigtramp.
6812 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
6813 pc_in_sigtramp.
6814 * frame.h: Update comments.
6815 * ppc-linux-tdep.c: Update comments.
6816 * breakpoint.c (bpstat_what): Update comments.
6817
ac5eccb7
AC
6818 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
6819 m68klinux-tdep.o's dependencies, were previously added to
6820 m68klinux-nat.o.
6821
f2524b93
AC
6822 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
6823 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
6824 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6825 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6826 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6827
17e20bce
AC
6828 * Makefile.in (m68klinux-nat.o): Update dependencies.
6829 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6830 (m68k_linux_sigtramp_frame_cache)
6831 (m68k_linux_sigtramp_frame_this_id)
6832 (m68k_linux_sigtramp_frame_prev_register)
6833 (m68k_linux_sigtramp_frame_unwind)
6834 (m68k_linux_sigtramp_frame_sniffer)
6835 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
6836 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
6837 names, use trad-frame.h.
6838 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
6839 (struct m68k_sigtramp_info): Delete.
6840 * m68k-tdep.c (m68k_sigtramp_frame_cache)
6841 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
6842 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
6843 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
6844 "m68klinux-tdep.c".
6845
c8864fa2
AC
6846 * infrun.c (check_sigtramp2): Delete check for
6847 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
6848
511dd2cd
MK
68492004-05-01 Mark Kettenis <kettenis@gnu.org>
6850
6851 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
6852
8c6b0e06
AC
68532004-05-01 Andrew Cagney <cagney@redhat.com>
6854
9df0bb3f
AC
6855 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
6856 (frv_linux_sigtramp_frame_cache)
6857 (frv_linux_sigtramp_frame_this_id)
6858 (frv_linux_sigtramp_frame_prev_register)
6859 (frv_linux_sigtramp_frame_unwind)
6860 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
6861 include "linux" in function and variable names, directly call
6862 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
6863 the latest trad-frame code.
6864 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
6865 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
6866 * Makefile.in (frv-linux-tdep.o): Update dependencies.
6867 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
6868 * frv-tdep.c (frv_sigtramp_frame_cache)
6869 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
6870 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
6871 frv-linux-tdep.c.
6872 (frv_gdbarch_init): Do not append a sigtramp sniffer.
6873 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
6874 (frv_set_sigcontext_reg_addr): Delete function.
6875
8c6b0e06
AC
6876 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
6877 (DEPRECATED_SIGTRAMP_END): Delete.
6878 * gdbarch.h, gdbarch.c: Re-generate.
6879 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
6880 * config/vax/tm-vaxbsd.h: Update copyright.
6881 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6882 (DEPRECATED_IN_SIGTRAMP): Define.
6883 * config/m68k/tm-nbsd.h: Update copyright.
6884 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
6885 (DEPRECATED_IN_SIGTRAMP): Define.
6886
50ea7769
MK
68872004-05-01 Mark Kettenis <kettenis@gnu.org>
6888
03ac2a74
MK
6889 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
6890 encondings. Fixes PR gdb/1628.
6891
50ea7769
MK
6892 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
6893 DW_CFA_restore state without a matching DW_CFA_remember_state
6894 instead of aborting. Fixes PR backtrace/1589.
6895
9a5d7be1
JB
68962004-04-30 Joel Brobecker <brobecker@gnat.com>
6897
6898 * MAINTAINERS: Add self as AIX maintainer.
6899 Update my e-mail address in write-after-approval section.
6900
2593d1cd
AC
69012004-04-30 Andrew Cagney <cagney@redhat.com>
6902
ce12bbf9
AC
6903 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
6904 (legacy_get_prev_frame): Ditto.
6905
36710c63
AC
6906 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
6907 (mips_gdbarch_init): Do not set pc_in_sigtramp.
6908 * mipsread.c (sigtramp_address): Delete extern variable.
6909 (mipscoff_new_init): Delete reference.
6910 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
6911 (fixup_sigtramp): Delete function.
6912 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
6913 (fixup_sigtramp): Delete declarations.
6914
2593d1cd
AC
6915 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
6916 deprecated_pc_in_sigtramp.
6917 (ppcnbsd_pc_in_sigtramp): Delete function.
6918
2a25f91c
MK
69192004-05-01 Mark Kettenis <kettenis@gnu.org>
6920
6921 * config/m68k/nm-nbsd.h: Tweak comments.
6922 * config/m68k/nm-nbsdaout.h: Likewise.
6923
0b281939
AC
69242004-04-30 Andrew Cagney <cagney@redhat.com>
6925
6926 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
6927 legacy_pc_in_sigtramp.
6928 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
6929
8f2d3ea0
MK
69302004-05-01 Mark Kettenis <kettenis@gnu.org>
6931
6932 Add OpenBSD/m68k support.
6933 * NEWS (New native configurations): Mention OpenBSD/m68k.
6934 * m68kbsd-tdep.c: New file.
6935 * m68kbsd-nat.c: New file.
6936 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
6937 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
6938 * configure.host: Add m68k-*-openbsd.
6939 * configure.tgt: Add m68k-*-openbsd.
6940 * config/m68k/tm-obsd.h: New file.
6941 * config/m68k/obsd.mt: New file.
6942 * config/m68k/obsd.mh: New file.
6943 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
6944 m68kbsd-tdep.c.
6945
c40f49a4
AC
69462004-04-30 Andrew Cagney <cagney@redhat.com>
6947
6948 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
6949 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
6950
e81554cd
MK
69512004-04-30 Mark Kettenis <kettenis@gnu.org>
6952
6953 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
6954 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
6955
d4dc1a91
BF
69562004-04-30 Brian Ford <ford@vss.fsi.com>
6957
6958 Revert 2004-04-16 change.
6959 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
6960 (i386_coff_init_abi): Remove.
6961 * i386-tdep.h (i386_coff_init_abi): Remove.
6962 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
6963
2f72f850
AC
69642004-04-30 Andrew Cagney <cagney@redhat.com>
6965
e492f9d6
AC
6966 * blockframe.c (find_pc_partial_function): Delete use of
6967 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
6968 DEPRECATED_SIGTRAMP_END.
6969
7b7adad0
AC
6970 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
6971 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
6972 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
6973 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
6974 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
6975
2f72f850
AC
6976 * defs.h (deprecated_inside_entry_file): Delete declaration.
6977 * blockframe.c (deprecated_inside_entry_file): Delete function.
6978 (legacy_frame_chain_valid): Delete call.
6979 * sh64-tdep.c (sh64_frame_chain): Delete call.
6980 * objfiles.h: Update comments.
6981 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
6982 call.
6983 * frame.c (get_prev_frame): Delete call, update comments.
6984
283f90a7
BF
69852004-04-30 Brian Ford <ford@vss.fsi.com>
6986
6987 * MAINTAINERS (Write After Approval): Add myself.
6988
8ee56bcf
AC
69892004-04-30 Andrew Cagney <cagney@redhat.com>
6990
6991 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
6992 * gdbarch.h, gdbarch.c: Re-generate.
6993 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
6994 code.
6995
ee27e1b6
AC
69962004-04-30 Andrew Cagney <cagney@redhat.com>
6997
6998 * gdb-events.sh (selected_thread_changed)
6999 (selected_frame_level_changed, target_changed): Delete.
7000 * gdb-events.h, gdb-events.c: Re-generate.
7001 * valops.c (value_assign): Update.
7002 * stack.c (select_frame_command, up_silently_base)
7003 (down_silently_base): Update.
7004
d5ac5a39
AC
70052004-04-29 Andrew Cagney <cagney@redhat.com>
7006
7007 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
7008 registers correctly.
7009 (print_gp_register_row, mips32_heuristic_proc_desc)
7010 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
7011 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
7012 references to mips_isa_regsize.
7013
ceae6e75
AC
70142004-04-29 Andrew Cagney <cagney@redhat.com>
7015
7016 * mips-tdep.c (struct gdbarch_tdep): Delete
7017 mips_fp_register_double.
7018 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
7019 mips_abi_regsize.
7020 (mips_gdbarch_init): Do not set mips_fp_register_double.
7021 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
7022
a587af0b
AC
70232004-04-29 Joel Brobecker <brobecker@gnat.com>
7024
7025 Committed by Andrew Cagney.
7026 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
7027 function calls.
7028
13326b4e
AC
70292004-04-29 Andrew Cagney <cagney@redhat.com>
7030
7031 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
7032 gdbarch, use mips_abi, update callers.
7033 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
7034 mips_abi_regsize, update callers.
7035 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
7036 mips_default_abi_regsize.
7037 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
7038 mips_default_abi_regsize.
7039
711cc5cd
AC
70402004-04-29 Andrew Cagney <cagney@redhat.com>
7041
1b13c4f6
AC
7042 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
7043 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
7044 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
7045 mips_default_abi_regsize.
7046 (mips_isa_regsize): Rename mips_regisze.
7047 * mipsnbsd-tdep.c: Update.
7048 * mips-linux-tdep.c: Update.
7049 * irix5-nat.c: Update.
7050 * mips-tdep.h (mips_isa_regsize): Update.
7051
711cc5cd
AC
7052 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
7053 Delete all disabled code.
7054 * gdb-events.h, gdb-events.c: Re-generate.
7055
e63bbc88
MK
70562004-04-19 Jerome Guitton <guitton@gnat.com>
7057 Mark Kettenis <kettenis@gnu.org>
7058
7059 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
7060 the function begins with a branch instruction.
7061
fd35795f
MK
70622004-04-29 Mark Kettenis <kettenis@gnu.org>
7063
7064 * i386-tdep.c: Fix spelling mistakes.
7065
c960c18f
AC
70662004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7067 Andrew Cagney <cagney@redhat.com>
7068
7069 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
7070 <sys/proc.h>.
7071 * acconfig.h: Provide default _KMEMUSER value.
7072 * config.in, configure: Re-generate.
7073 * NEWS: Mention fix.
7074
50306a9d
RC
70752004-04-24 Randolph Chung <tausq@debian.org>
7076
7077 * configure.host (hppa*-*-linux*): New target.
7078 * configure.tgt (hppa*-*-linux*): Likewise.
7079 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
7080 gdbarch_init_osabi() call earlier so that osabi-specific frame
7081 unwinders can be registered first.
7082 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
7083 hppa-linux-nat.c.
7084 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
7085 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
7086 * config/pa/linux.mh: New file.
7087 * config/pa/linux.mt: New file.
7088 * config/pa/nm-linux.h: New file.
7089 * config/pa/xm-linux.h: New file.
7090 * hppa-linux-nat.c: New file.
7091 * hppa-linux-tdep.c: New file.
7092
2a6228ef
RC
70932004-04-28 Randolph Chung <tausq@debian.org>
7094
7095 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
7096 return values.
7097 (hppa32_push_dummy_call): Fix small struct and floating point argument
7098 passing, and make sure the stack frame is properly aligned.
7099
82c10df6
AC
71002004-04-28 Andrew Cagney <cagney@redhat.com>
7101
d762c46a
AC
7102 * stack.c (print_stack_frame): Fix description.
7103
82c10df6
AC
7104 * NEWS: Mention gdb/gdbserver/configure execute permission
7105 changed. PR server/519.
7106
0faf0076
AC
71072004-04-28 Andrew Cagney <cagney@redhat.com>
7108
7109 * stack.c (print_stack_frame_stub): Delete declaration.
7110 (struct print_stack_frame_args, print_stack_frame)
7111 (print_frame_info, print_frame): Replace "source" with print what.
7112 Replace "print" with "print_level". Replace "args" with
7113 "print_args".
7114 * frame.h (show_and_print_stack_frame, print_stack_frame)
7115 (print_frame_info): Update declarations.
7116 * stack.c (select_and_print_frame, frame_command)
7117 (current_frame_command, up_command, down_command): Update calls -
7118 use get_selected_frame, pass "enum print_what" for source, do not
7119 call frame_relative_level.
7120 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
7121 * remote-rdp.c (remote_rdp_open): Ditto.
7122 * remote-mips.c (common_open): Ditto.
7123 * remote-e7000.c (e7000_start_remote): Ditto.
7124 * ocd.c (ocd_start_remote): Ditto.
7125 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
7126 * infrun.c (normal_stop): Ditto.
7127 * inflow.c (kill_command): Ditto.
7128 * infcmd.c (finish_command): Ditto.
7129 * corelow.c (core_open): Ditto.
7130 * tracepoint.c (finish_tfind_command): Ditto.
7131 * thread.c (info_threads_command, info_threads_command)
7132 (restore_current_thread, do_captured_thread_select): Ditto.
7133 * ada-tasks.c (task_command): Ditto.
7134
f4c5303c
OF
71352004-04-26 Orjan Friberg <orjanf@axis.com>
7136
7137 * frame.c: Include "observer.h".
7138 (frame_observer_target_changed): New function.
7139 (_initialize_frame): Attach target_changed observer.
7140 * regcache.c: Include "observer.h".
7141 (regcache_observer_target_changed): New function.
7142 (_initialize_regcache): Attach target_changed observer.
7143 * valops.c: Include "observer.h".
7144 (value_assign): Notify target_changed event when modifying register.
7145 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
7146
7270d8f2
OF
71472004-04-26 Orjan Friberg <orjanf@axis.com>
7148
7149 From Paul Koning <pkoning@equallogic.com>:
7150 * breakpoint.c (free_valchain): New function.
7151 (insert_bp_location, delete_breakpoint): Use free_valchain.
7152 (remove_breakpoint): Do not remove the valchain.
7153 (bpstat_stop_status): If not stopped by watchpoint, skip
7154 watchpoints when generating stop status list.
7155 * infrun.c (handle_inferior_event): Make
7156 stepped_after_stopped_by_watchpoint a global variable.
7157 * remote.c (remote_stopped_data_address): Return watch data
7158 address rather than zero if stepped_after_stopped_by_watchpoint is
7159 set.
7160
02d62932
MC
71612004-04-25 Michael Chastain <mec.gnu@mindspring.com>
7162
7163 Fix PR gdb/1626.
7164 * configure.in: Check for curses after termcap.
7165 On osf5.*, do not check for ncurses.
7166 * configure: Regenerate.
7167
3e9a183c
MK
71682004-04-25 Mark Kettenis <kettenis@gnu.org>
7169
c79ac407
MK
7170 * ppcobsd-nat.c: Include "ppc-tdep.h".
7171 * Makefile.in (ppcobsd-nat.o): Update dependencies.
7172
3e9a183c
MK
7173 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
7174 Fixes PR tdep/1623 and PR tdep/1624.
7175
38cc9c28
MC
71762004-04-24 Michael Chastain <mec.gnu@mindspring.com>
7177
7178 * xmodem.h, xmodem.c: Remove files.
7179 * Makefile.in: Remove references to xmodem.h, xmodem.c.
7180
7f07c5b6
RC
71812004-04-23 Randolph Chung <tausq@debian.org>
7182
7183 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
7184 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
7185 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
7186 for handling stackless frames.
7187 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
7188
9f7194c3
RC
71892004-04-23 Randolph Chung <tausq@debian.org>
7190
7191 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
7192 starts at a pc before the frame is created.
7193
dcff6009
JB
71942004-04-23 Joel Brobecker <brobecker@gnat.com>
7195
7196 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
7197
40711ff1 71982004-04-23 Jerome Guitton <guitton@gnat.com>
65951cd9
JG
7199
7200 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
7201 use convert_typed_floating to get the appropriate format.
7202
abc485a1
RC
72032004-04-22 Randolph Chung <tausq@debian.org>
7204
7205 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
7206 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
7207 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
7208 (hppa_sign_extend): Add prototype.
7209 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
7210 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
7211 (sign_extend): Rename with hppa_ prefix and make non-static. Other
7212 hppa targets will also use these functions.
7213 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
7214 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
7215 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
7216 (hppa_gdbarch_init): Remove gdbarch setting of
7217 skip_trampoline_code, in_solib_call_trampoline and
7218 in_solib_return_trampoline.
7219 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
7220 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
7221 hppa_in_solib_call_trampoline.
7222 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
7223 Moved from hppa-tdep.c.
7224 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
7225 in_solib_call_trampoline and in_solib_return_trampoline.
7226
369aa520
RC
72272004-04-22 Randolph Chung <tausq@debian.org>
7228
7229 * hppa-tdep.c (hppa_debug): New variable.
7230 (find_unwind_entry, hppa_frame_cache): Add debug output.
7231 (_initialize_hppa_tdep): Add command to set debug flag.
7232
476be15e
AC
72332004-04-22 Andrew Cagney <cagney@redhat.com>
7234
7235 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
7236 "trad-frame.h".
7237 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
7238 signal trampoline unwinder.
7239 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
7240
d195bc9f
MK
72412004-04-22 Mark Kettenis <kettenis@gnu.org>
7242
7243 Add OpenBSD/powerpc support.
7244 * NEWS (New native configurations): Mention OpenBSD/powerpc.
7245 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
7246 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
7247 (ppc_collect_fpregset): New prototypes.
7248 * ppcobsd-nat.c: New file.
7249 * ppcobsd-tdep.c: New file.
7250 * ppcobsd-tdep.h: New file.
7251 * rs6000-tdep.c: Include "regset.h".
7252 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
7253 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
7254 New functions.
7255 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
7256 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
7257 (rs6000-tdep.o): Update dependencies.
7258 * configure.host: Add powerpc-*-openbsd.
7259 * configure.tgt: Add powerpc-*-openbsd.
7260 * config/powerpc/obsd.mh: New file.
7261 * config/powerpc/nm-obsd.h: New file.
7262 * config/powerpc/obsd.mt: New file.
7263
6f14cc33
AC
72642004-04-22 Andrew Cagney <cagney@redhat.com>
7265
fcf29e5f
AC
7266 * frame.h (show_frame_info): Delete declaration.
7267
6f14cc33
AC
7268 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
7269 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
7270 * m32r-tdep.c (m32r_frame_this_id): Ditto.
7271 * frv-tdep.c (frv_frame_this_id): Ditto.
7272 * avr-tdep.c (avr_frame_this_id): Ditto.
7273
e5786a5c
EZ
72742004-04-22 Elena Zannoni <ezannoni@redhat.com>
7275
7276 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
7277
26e75e5c
JB
72782004-04-22 Jim Blandy <jimb@redhat.com>
7279
7280 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
7281 register number zero.
7282
d8d65dd3
MS
72832004-04-21 Michael Snyder <msnyder@redhat.com>
7284
7285 * mips-tdep.c (heuristic_proc_start):
7286 Warning() already prefixes "Warning: ".
7287
9a4105ab
AC
72882004-04-21 Andrew Cagney <cagney@redhat.com>
7289
7290 * annotate.h (deprecated_annotate_starting_hook)
7291 (deprecated_annotate_stopped_hook)
7292 (deprecated_annotate_exited_hook)
7293 (deprecated_annotate_signal_hook)
7294 (deprecated_annotate_signalled_hook): Deprecate.
7295 * tracepoint.h (deprecated_create_tracepoint_hook)
7296 (deprecated_delete_tracepoint_hook)
7297 (deprecated_modify_tracepoint_hook)
7298 (deprecated_trace_find_hook)
7299 (deprecated_trace_start_stop_hook): Deprecate.
7300 * target.h (deprecated_target_new_objfile_hook): Deprecate.
7301 * remote.h (deprecated_target_resume_hook)
7302 (deprecated_target_wait_loop_hook): Deprecate.
7303 * gdbcore.h (deprecated_exec_file_display_hook)
7304 (deprecated_file_changed_hook): Deprecate.
7305 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
7306 * defs.h (deprecated_modify_breakpoint_hook)
7307 (deprecated_command_loop_hook, deprecated_show_load_progress)
7308 (deprecated_print_frame_info_listing_hook)
7309 (deprecated_query_hook, deprecated_warning_hook)
7310 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
7311 (deprecated_delete_breakpoint_hook)
7312 (deprecated_interactive_hook, deprecated_registers_changed_hook)
7313 (deprecated_readline_begin_hook, deprecated_readline_hook)
7314 (deprecated_readline_end_hook, deprecated_register_changed_hook)
7315 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
7316 (deprecated_context_hook, deprecated_target_wait_hook)
7317 (deprecated_attach_hook, deprecated_detach_hook)
7318 (deprecated_call_command_hook, deprecated_set_hook)
7319 (deprecated_error_hook, deprecated_error_begin_hook)
7320 (deprecated_ui_load_progress_hook): Deprecate.
7321 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
7322 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
7323 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
7324 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
7325 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
7326 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
7327 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
7328 * annotate.c, aix-thread.c: Update.
7329
62cf13cc
AC
73302004-04-21 Andrew Cagney <cagney@redhat.com>
7331
b2e31a62
AC
7332 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
7333 * vaxnbsd-tdep.c: Include "gdb_string.h".
7334
62cf13cc
AC
7335 * symfile.c (symbol_file_add_from_memory): #if 0 function.
7336 (add_symbol_file_from_memory_command): #if 0 function body, call
7337 error instead.
7338
00e32a35
AC
73392004-04-21 Andrew Cagney <cagney@redhat.com>
7340
7341 * gdbcore.h: Update copyright.
7342 (deprecated_add_core_fns): Rename add_core_fns.
7343 * win32-nat.c (_initialize_core_win32): Update.
7344 * sun3-nat.c (_initialize_core_sun3): Update.
7345 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
7346 * rs6000-nat.c (_initialize_core_rs6000): Update.
7347 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
7348 * nto-tdep.c (_initialize_nto_tdep): Update.
7349 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
7350 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
7351 * mips-nat.c (_initialize_core_mips): Update.
7352 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7353 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
7354 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
7355 * lynx-nat.c (_initialize_core_lynx): Update.
7356 * irix5-nat.c (_initialize_core_irix5): Update.
7357 * i386-interix-nat.c (_initialize_core_interix): Update.
7358 * cris-tdep.c (_initialize_cris_tdep): Update.
7359 * corelow.c (deprecated_add_core_fns): Update.
7360 * core-regset.c (_initialize_core_regset): Update.
7361 * core-aout.c (_initialize_core_aout): Update.
7362 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
7363 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
7364 * alpha-nat.c (_initialize_core_alpha): Update.
7365
13c7b1ca
JB
73662004-04-21 Jim Blandy <jimb@redhat.com>
7367
7368 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
7369
7b5a2f43
DJ
73702004-04-19 Daniel Jacobowitz <drow@mvista.com>
7371
7372 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
7373 Delete.
7374 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
7375 (read_attribute_value): Update calls to dwarf_alloc_block.
7376 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
7377 dwarf2_tmp_obstack.
7378 (psymtab_to_symtab_1): Likewise. Clean up using
7379 free_stack_comp_unit.
7380 (add_to_cu_func_list): Use the comp_unit_obstack.
7381
05cf31d1
JB
73822004-04-19 Joel Brobecker <brobecker@gnat.com>
7383
7384 * dwarf2read.c (dwarf2_flag_true_p): New function.
7385 (die_is_declaration): Use the function above. Add some comments.
7386
adf93a2f
MK
73872004-04-19 Mark Kettenis <kettenis@gnu.org>
7388
7389 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
7390 architecture when registering sparcnbsd_core_osabi_sniffer.
7391 Adjust comment.
7392
748894bf
MK
73932004-04-18 Mark Kettenis <kettenis@gnu.org>
7394
f622ad42
MK
7395 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
7396 return value.
7397
c4fc7f1b
MK
7398 Based on a patch from Brian Ford <ford@vss.fsi.com>:
7399 * i386-tdep.c: Correct register numbering scheme comments
7400 throughout.
7401 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
7402 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
7403 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
7404 (i386_gdb_arch_init): Likewise.
7405
b4ead1bd
MK
7406 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
7407 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
7408 ppcnbsd-tdep.o.
7409
748894bf
MK
7410 * m68k-tdep.h: Tweak comments.
7411 * m68k-tdep.c: Tweak comment.
7412
fdd72f95
RC
74132004-04-17 Randolph Chung <tausq@debian.org>
7414
7415 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
7416 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
7417 (hppa_hpux_som_init_abi): Set is_elf to 0.
7418 (hppa_hpux_elf_init_abi): Set is_elf to 1.
7419 * hppa-tdep.c (low_text_segment_address): Remove global.
7420 (record_text_segment_lowaddr): Pass in low address as parameter. Use
7421 section offset to calculate segment address.
7422 (internalize_unwinds): Define low_text_segment_address as local and
7423 pass to record_text_segment_lowaddr for ELF targets.
7424 (hppa_gdbarch_init): Zero fill tdep structure.
7425 (hppa_dump_tdep): Print tdep structure.
7426 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
7427
0f8d9d59
RC
74282004-04-17 Randolph Chung <tausq@debian.org>
7429
7430 * hppa-tdep.c (hppa_pseudo_register_read): Define.
7431 (hppa_gdbarch_init): Set pseudo_register_read.
7432 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
7433 * regcache.c (supply_register): Remove check for
7434 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
7435
7c46b9fb
RC
74362004-04-17 Randolph Chung <tausq@debian.org>
7437
7438 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
7439 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
7440 (hpread_adjust_stack_address): Move to hpread.c.
7441 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7442 obj_private_struct): Move from tm-hppa.h.
7443 * hpread.c (hppa-tdep.h): Include.
7444 (hpread_adjust_stack_address): Move from hppa-tdep.c.
7445 (hpread_read_function_type, hpread_read_doc_function_type)
7446 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
7447 directly.
7448 * pa64solib.c (hppa-tdep.h): Include.
7449 * somsolib.c (hppa-tdep.h): Include.
7450 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
7451 inferior_status): Remove unused forward declarations.
7452 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
7453 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
7454 obj_private_struct): Move to hppa-tdep.h.
7455 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
7456
8d153463
RC
74572004-04-17 Randolph Chung <tausq@debian.org>
7458
7459 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
7460 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
7461 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
7462 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
7463 Remove forward declaration and make static.
7464 (hppa_reg_struct_has_addr): Remove.
7465
350c2e5b
JB
74662004-04-16 Joel Brobecker <brobecker@gnat.com>
7467
7468 * observer.sh: Move comments in sed command to first column.
7469
bbde78fa
JM
74702004-04-16 Jason Molenda (jmolenda@apple.com)
7471
7472 * frame.c: Minor typeo corrections in comments.
7473
e0270fd9
JB
74742004-04-16 Joel Brobecker <brobecker@gnat.com>
7475
7476 * observer.c (observer_test_first_notification_function): Update
7477 function profile.
7478 (observer_test_second_notification_function): Likewise.
7479 (observer_test_third_notification_function): Likewise.
7480
3d049254
MK
74812004-04-16 Mark Kettenis <kettenis@gnu.org>
7482
7483 From Brian Ford <ford@vss.fsi.com>:
7484 * i386-tdep.c (i386_coff_init_abi): New function.
7485 * i386-tdep.h (i386_coff_init_abi): New prototype.
7486 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
7487 register number translation functions for DWARF and DWARF 2.
7488
7867684d
JB
74892004-04-16 Joel Brobecker <brobecker@gnat.com>
7490
7491 * dwarf2read.c: Back out my previous change, it was incorrect.
7492
72bf9492
DJ
74932004-04-16 Daniel Jacobowitz <drow@mvista.com>
7494
7495 * dwarf2read.c: Include "hashtab.h".
7496 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
7497 has_namespace_info.
7498 (struct partial_die_info): Add comments. Use bitfields to reduce
7499 memory footprint. Add scope, scope_set, has_specification,
7500 spec_offset, die_parent, die_child, and die_sibling.
7501 (peek_die_abbrev): Add prototype.
7502 (partial_read_comp_unit_head): New function, broken out from
7503 dwarf2_build_psymtabs_hard.
7504 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
7505 Use partial_read_comp_unit_head. Initialize the CU and
7506 comp_unit_obstack. Update calls to read_partial_die and
7507 scan_partial_symbols. Use free_stack_comp_unit and
7508 load_partial_dies.
7509 (scan_partial_symbols): Change PDI to a pointer. Use the child and
7510 sibling pointers to walk partial DIEs. Call fixup_partial_die.
7511 Update calls to helper functions. Remove NAMESPACE argument.
7512 Update comments.
7513 (partial_die_parent_scope, partial_die_full_name): New functions.
7514 (add_partial_symbol): Remove namespace argument. Update call to
7515 pdi_needs_namespace. Use partial_die_full_name. Handle
7516 DW_TAG_namespace. Check has_namespace_info flag.
7517 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
7518 tag. Handle namespaces.
7519 (add_partial_namespace, add_partial_enumeration): Simplify.
7520 (guess_structure_name): New function, derived from
7521 add_partial_structure.
7522 (add_partial_structure): Remove.
7523 (determine_class_name): Update comment.
7524 (dwarf2_read_abbrevs): Set has_namespace_info flag.
7525 (is_type_tag_for_partial, load_partial_dies): New functions.
7526 (read_partial_die): Pass abbrev and abbrev_len as arguments.
7527 Record specifications instead of following them immediately.
7528 (find_partial_die_in_comp_unit, find_partial_die)
7529 (fixup_partial_die, free_stack_comp_unit)
7530 (hashtab_obstack_allocate, dummy_obstack_deallocate)
7531 (partial_die_hash, partial_die_eq): New functions.
7532 * Makefile.in (hashtab_h): Define.
7533 (dwarf2read.o): Update dependencies.
7534 (observer_inc, observer_h): Move to the correct section.
7535
fdc860a3
JB
75362004-04-15 Joel Brobecker <brobecker@gnat.com>
7537
7538 * dwarf2read.c (dwarf2_attribute_true_p): New function.
7539 (die_is_declaration): Use the function above. Add comment.
7540
dc718098
JB
75412004-04-15 Joel Brobecker <brobecker@gnat.com>
7542
7543 * dwarf2read.c (read_structure_scope): Identify stub types
7544 using die_is_declaration() only.
7545
8718a420
RM
75462004-04-15 Roland McGrath <roland@redhat.com>
7547
7548 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
7549 argument instead of NAME.
7550 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
7551 in call to symbol_file_add_with_addrs_or_offsets.
7552 (build_addr_info): New function, helper for ...
7553 (symbol_file_add_from_memory): New function.
7554 (add_symbol_file_from_memory_command): New function using that.
7555 (_initialize_symfile): Register it for add-symbol-file-from-memory.
7556 (pre_add_symbol_hook): Add const to argument type.
7557 * symfile.h (symbol_file_add_from_memory): Declare it.
7558
8b910bab
MK
75592004-04-15 Mark Kettenis <kettenis@gnu.org>
7560
9f076e7a
MK
7561 * NEWS (New native configurations): Mention OpenBSD/vax.
7562 * configure.host: Add vax-*-openbsd*.
7563 * config/vax/obsd.mh: New file.
7564 * config/vax/nm-obsd.h: New file.
7565
8b910bab
MK
7566 * vax-tdep.c: Include "regset.h".
7567 (vax_supply_gregset): New function.
7568 (vax_gregset): New variable.
7569 (vax_regset_from_core_section): New function.
7570 (vax_gdbarch_init): Set regset_from_core_section.
7571 * Makefile.in (vax-tdep.o): Update dependencies.
7572
7a464420
AC
75732004-04-15 Andrew Cagney <cagney@redhat.com>
7574
7575 * observer.c (normal_stop_subject, observer_notify_normal_stop)
7576 (observer_normal_stop_notification_stub)
7577 (observer_attach_normal_stop, observer_detach_normal_stop):
7578 Delete, replaced by #include "observer.inc".
7579 * infrun.c (normal_stop): Pass "stop_bpstat" to
7580 observer_notify_normal_stop.
7581 * Makefile.in (observer_inc): Define.
7582 (observer.o): Update dependencies.
7583 (observer.h, observer.inc): New rules.
7584 * observer.h: Delete file.
7585 * observer.sh: New file.
7586
e36ad527
MK
75872004-04-15 Mark Kettenis <kettenis@gnu.org>
7588
7589 * vax-tdep.c (vax_frame_cache): Fix typo.
7590
67b441e1
MK
75912004-04-14 Mark Kettenis <kettenis@gnu.org>
7592
6f606e1c
MK
7593 * NEWS (New native configurations): Mention NetBSD/vax.
7594 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
7595 * config/vax/nbsdelf.mh: New file.
7596 * config/vax/nbsdaout.mh: New file.
7597 * config/vax/nm-nbsd.h: New file.
7598 * config/vax/nm-nbsdaout.h: New file.
7599
9c5519a5
MK
7600 * vaxnbsd-tdep.c: New file.
7601 * Makefile.in (vaxnbsd-tdep.o): New dependency.
7602 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
7603 * config/vax/nbsd.mt: New file.
7604 * config/vax/tm-nbsd.h: New file.
7605
4844a614
MK
7606 * Makefile.in (vaxbsd-nat.o): New dependency.
7607
67b441e1
MK
7608 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
7609 * vax-tdep.c (vax_store_arguments): Remove struct_return and
7610 struct_addr arguments. Don't push return value address.
7611 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
7612 arguments to vax_store_arguments. Store return value address in
7613 R1.
7614 (vax_store_struct_return, vax_extract_return_value)
7615 (vax_store_return_value): Remove functions.
7616 (vax_return_value): New function.
7617 (vax_gdbarch_init): Set return value. Don't set
7618 deprecated_store_struct_return, deprecated_extract_struct_return
7619 and deprecated_store_return_value.
7620
6672f2ae
AS
76212004-04-14 Andreas Schwab <schwab@suse.de>
7622
7623 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
7624 value buffer.
7625 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
7626
7346c184
MK
76272004-04-14 Mark Kettenis <kettenis@gnu.org>
7628
7629 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
7630 (vax_unwind_dummy_id): New functions.
7631 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
7632 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
7633 variables.
7634 (vax_fix_call_dummy): Remove function.
7635 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
7636 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
7637 call_dummy_location, deprecated_call_dummy_words,
7638 deprecated_sizeof_call_dummy_words,
7639 deprecated_call_dummy_breakpoint_offset,
7640 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
7641 and deprecated_dummy_write_sp.
7642
58e23df4
DC
76432004-04-13 David Carlton <carlton@kealia.com>
7644
7645 * MAINTAINERS: Move myself to "paper trail" section.
7646
5e6b39ff
MK
76472004-04-12 Mark Kettenis <kettenis@gnu.org>
7648
7def7fef
MK
7649 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
7650 "trad-frame.h".
7651 (vax_frame_init_saved_regs): Remove function.
7652 (vax_sigtramp_saved_pc): Remove function.
7653 (vax_frame_saved_pc): Remove function.
7654 (vax_frame_args_address): Remove function.
7655 (vax_frame_num_args): Rewrite.
7656 (vax_frame_chain): Remove function.
7657 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
7658 VAX_FP_REGNUM.
7659 (vax_pop_frame): Likewise.
7660 (vax_saved_pc_after_call): Remove function.
7661 (struct vax_frame_cache): New structure.
7662 (vax_frame_cache): New function.
7663 (vax_frame_this_id): New function.
7664 (vax_frame_prev_register): New function.
7665 (vax_frame_unwind): New variable.
7666 (vax_frame_sniffer): New function.
7667 (vax_frame_base_address): New function.
7668 (vax_frame_args_address): New function.
7669 (vax_frame_base): New variable.
7670 (vax_unwind_pc): New function.
7671 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
7672 deprecated_fp_regnum, deprecated_saved_pc_after_call,
7673 deprecated_frame_chain, deprecated_frame_saved_pc,
7674 deprecated_frame_args_address and
7675 deprecated_frame_init_saved_regs.
7676 * Makefile.in (vax-tdep.o): Update dependencies.
7677
53284fc1
MK
7678 * vaxbsd-nat.c: New file.
7679
5e6b39ff
MK
7680 * vax-tdep.h: Update copyright year. Adjust comments.
7681 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
7682 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
7683 (vax_regnum): New enum. Replacing...
7684 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
7685 (VAX_PS_REGNUM): ... these removed macros.
7686 * vax-tdep.c (vax_register_name): Remove prototype.
7687 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
7688 (vax_register_byte, vax_register_raw_size,
7689 vax_register_virtual_size, vax_register_virtual_type): Remove
7690 functions.
7691 (vax_register_type): New function.
7692 (vax_breakpoint_from_pc): Reorganize.
7693 (vax_gdbarch_init): Set register_type. Don't set
7694 deprecated_register_size, deprecated_register_bytes,
7695 deprecated_register_byte, deprecated_register_raw_size,
7696 deprecated_max_register_raw_size,
7697 deprecated_register_virtual_size,
7698 deprecated_max_register_virtual_size and
7699 deprecated_register_virtual_type. Add comment on stack direction.
7700
e9c71e9f
MK
77012004-04-11 Mark Kettenis <kettenis@gnu.org>
7702
7703 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
7704 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
296bc76f 7705 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
e9c71e9f 7706
d46f1176 77072004-04-10 Randolph Chung <tausq@debian.org>
8718a420 7708
d46f1176
RC
7709 * MAINTAINERS (write after approval): Add myself.
7710
a2a84a72
RC
77112004-04-07 Randolph Chung <tausq@debian.org>
7712
7713 * hppa-tdep.c (hppa_inner_than): Remove.
7714 (is_pa_2): Remove unused static variable.
8718a420 7715 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
a2a84a72 7716
e85c3284
PH
77172004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
7718
7719 * language.h (language_defn): Add new la_post_parser field.
7720 * parser-defs.h (null_post_parser): New declaration (default for
7721 la_post_parser).
8718a420 7722
e85c3284
PH
7723 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
7724 insert call to that function.
7725 (parse_exp_in_context): New function, including code formerly in
8718a420 7726 parse_exp_1. Calls language-dependent post-parser after
e85c3284
PH
7727 prefixification.
7728 (parse_expression_in_context): New exported function.
7729 (null_post_parser): New definition.
7730 * expression.h (parse_expression_in_context): Add declaration.
8718a420 7731
e85c3284
PH
7732 * p-lang.c (pascal_language_defn): Add trivial post-parser.
7733 * c-lang.c (c_language_defn): Ditto.
7734 (cplus_language_defn): Ditto.
7735 (asm_language_defn): Ditto.
7736 (minimal_language_defn): Ditto.
7737 * f-lang.c (f_language_defn): Ditto.
7738 * jv-lang.c (java_language_defn): Ditto.
7739 * language.c (unknown_language_defn): Ditto.
7740 (auto_language_defn): Ditto.
7741 (local_language_defn): Ditto.
7742 * m2-lang.c (m2_language_defn): Ditto.
7743 * scm-lang.c (scm_language_defn): Ditto.
7744 * obj-lang.c (objc_language_defn): Ditto.
8718a420 7745
d9f8c85b
MK
77462004-04-10 Mark Kettenis <kettenis@gnu.org>
7747
fa34704a
MK
7748 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
7749 (amd64nbsd_mcontext_addr): New function.
7750 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
7751 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
7752 with amd64nbsd_r_reg_offset, instead of building it on the fly.
7753
403e1656
MK
7754 * corelow.c (core_xfer_partial): Fix coding standards violation.
7755 Add support for TARGET_OBJECT_WCOOKIE.
7756
a57e5a95
MK
7757 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
7758 deprecated_pc_in_sigtramp.
7759 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
7760 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
7761 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
7762 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7763 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
7764 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7765 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
7766
377d9ebd
MK
7767 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
7768 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
7769 Fix typo.
7770
f0ef85a5
MK
7771 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
7772 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
7773 (amd64_collect_fxsave): Likewise.
7774
d9f8c85b
MK
7775 * i386-sol2-tdep.c: Include "gdb_string.h".
7776 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
7777 name.
7778 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7779
75f501b5
MK
77802004-04-10 Mark Kettenis <kettenis@gnu.org>
7781
7782 * i386-sol2-tdep.c: Include "solib-svr4.h".
7783 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7784 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
7785 * config/i386/tm-i386sol2.h: Include :solib.h".
7786 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
7787 solib-svr4.o and solib-legacy.o.
7788 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
7789 solib-svr4.o.
7790
b31bc724
MK
77912004-04-09 Mark Kettenis <kettenis@gnu.org>
7792
18bbbd9e
MK
7793 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
7794 whether a register is supplied by PTRACE_GETFPREGS.
7795 (store_inferior_registers): Likewise.
7796 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
7797 whether a register is supplied by PT_GETFPREGS.
7798 (store_inferior_registers): Likewise.
7799
3c30bf1b
MK
7800 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
7801 * config/i386/linux64.mt (TDEPFILES): Likewise.
7802
a4194092
MK
7803 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
7804
911bc6ee
MK
7805 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
7806 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
7807 the program counter is in the range specified by `struct
7808 gdbarch_tdep'.
7809 * amd64-linux-tdep.c: Include "symtab.h".
7810 (amd64_linux_pc_in_sigtramp): Remove function.
7811 (amd64_linux_sigtramp_p): New function.
7812 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
7813 deprecated_pc_in_sigtramp.
7814 * amd64nbsd-tdep.c: Include "symtab.h".
7815 (amd64nbsd_sigtramp_p): New function.
7816 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
7817 deprecated_pc_in_sigtramp.
7818 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
7819 few comments.
7820 (amd64obsd_pc_in_sigtramp): Remove function.
7821 (amd64obsd_sigtramp_p): New function.
7822 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
7823 deprecated_pc_in_sigtramp.
7824 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
7825 (i386bsd_pc_ins_sigtramp): Remove prototype.
7826 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
7827 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
7828 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
7829 the program counter is in the range specified by `struct
7830 gdbarch_tdep'.
7831 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
7832 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
7833 (i386_go32_pc_in_sigtramp): Remove function.
7834 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
7835 Initialize TDEP->sigtramp_p.
7836 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
7837 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
7838 deprecated_pc_in_sigtramp.
7839 * i386-linux-tdep.c: Adjust comments.
7840 (i386_linux_pc_in_sigtramp): Remove function.
7841 (i386_linux_sigtramp_p): New function.
7842 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
7843 deprecated_pc_in_sigtramp.
7844 * i386-nto-tdep.c: Update copyright year.
7845 (i386nto_pc_in_sigtramp): Remove function.
7846 (i386nto_sigtramp_p): New function.
7847 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
7848 SP_REGNUM.
7849 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
7850 deprecated_pc_in_sigtramp.
7851 * i386-sol2-tdep.c: Update copyright year.
7852 (i386_sol2_pc_in_sigtramp): Remove function.
7853 (i386_sol2_sigtramp_p): New function.
7854 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
7855 deprecated_pc_in_sigtramp.
7856 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
7857 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
7858 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7859 deprecated_sigtramp_start and deprecated_sigtramp_end.
7860 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
7861 (i386nbsd_pc_in_sigtramp): Remove function.
7862 (i386nbsd_sigtramp_p): New function.
7863 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7864 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
7865 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
7866 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
7867 (i386obsd_pc_in_sigtramp): Remove function.
7868 (i386obsd_sigtramp_p): New function.
7869 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
7870 functions.
7871 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
7872 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
7873 TDEP->sigtramp_p.
7874 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
7875 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
7876 dependencies.
7877
e083e6ec
MK
7878 * config/i386/i386aout.mt: Remove file.
7879
bd153b94
MK
7880 * configure.tgt: Remove i[34567]86-*-go32*,
7881 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
7882 and i[34567]86-*-isc*. Set gdb_target to i386 for
7883 i[34567]86-*-netware* and i[34567]86-*-*.
7884 * config/i386/i386.mt: New file.
7885 * config/i386/embed.mt: Remove file.
7886 * config/i386/go32.mt: Remove file.
7887 * config/i386/i386nw.mt: Remove file.
7888 * config/i386/i386v.mt: Remove file.
7889 * config/i386/tm-go32.h: Remove file.
7890
4a1bcc8c
MK
7891 * tui/tui-hooks.c: Include "readline/readline.h" after
7892 "gdb_curses.h" instead of before.
7893 * tui/tui-io.c: Likewise.
7894
f9a79064
MK
7895 * tui/tui.c: Fix typo in comment.
7896
b31bc724
MK
7897 * sparc64-tdep.c (sparc_address_from_register): Remove function.
7898
f83f82bc
AC
78992004-04-08 Andrew Cagney <cagney@redhat.com>
7900
7901 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
7902 (deprecated_exception_support_initialized): Declare.
8718a420 7903 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
f83f82bc
AC
7904 (initialize_hp_cxx_exception_support)
7905 (child_enable_exception_callback): Update.
7906 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
7907 (deprecated_exception_support_initialized): Rename
7908 deprecated_exception_catchpoints_are_fragile and
7909 deprecated_exception_support_initialized.
7910 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
7911
7912 * symtab.c (deprecated_hp_som_som_object_present): Rename
7913 hp_som_som_object_present.
7914 * symtab.h (deprecated_hp_som_som_object_present): Declare.
7915 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
7916 Update. Delete extern declaration.
7917 * valops.c (hp_som_som_object_present): Ditto.
8718a420 7918 * parse.c (deprecated_hp_som_som_object_present)
f83f82bc
AC
7919 (parse_nested_classes_for_hpacc): Ditto.
7920 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
8718a420 7921 * hppa-hpux-tdep.c (hp_som_som_object_present)
f83f82bc
AC
7922 (initialize_hp_cxx_exception_support): Ditto.
7923 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
8718a420 7924 * cp-valprint.c (hp_som_som_object_present)
f83f82bc 7925 (cp_print_class_method): Ditto.
8718a420 7926 * c-typeprint.c (hp_som_som_object_present):
f83f82bc
AC
7927 (c_type_print_base): Ditto.
7928 * c-exp.y (hp_som_som_object_present): Ditto.
7929
fb2be677
AC
79302004-04-08 Andrew Cagney <cagney@redhat.com>
7931
7932 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
7933 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
7934 (frame_unwind_find_by_frame): Re-implement the unwind code so
7935 that it can both prepend and append sniffers. Replace
7936 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
7937 * tramp-frame.c (tramp_frame_append): Use
7938 frame_unwind_prepend_unwinder.
7939 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
7940 frame_unwind_register_unwinder.
7941 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
7942 tramp_frame_append.
7943 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
8718a420 7944 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
fb2be677
AC
7945 (mips_linux_init_abi): Update.
7946
67faf007
KB
79472004-04-08 Kevin Buettner <kevinb@redhat.com>
7948
7949 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
7950 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
7951 file support.
7952
8973ff21
KB
79532004-04-07 Kevin Buettner <kevinb@redhat.com>
7954
7955 * ia64-tdep.c (elf.h): Don't include.
7956 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
7957
4a0e2f88
JM
79582004-04-07 Jason Molenda (jmolenda@apple.com)
7959
7960 * frame.h: Typeo corrections in comments.
7961
9872ad24
JB
79622004-04-07 Jim Blandy <jimb@redhat.com>
7963
7964 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
7965 %esp and %ebp
7966
70b216c8
MK
79672004-04-07 Mark Kettenis <kettenis@gnu.org>
7968
11d5789c
MK
7969 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
7970 * config/sparc/linux64.mt (TDEPFILES): Likewise.
7971 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
7972 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
7973 and solib-legacy.o.
7974 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
7975 solib-svr4.o.
7976 * config/sparc/tm-sol2.h: Update copyright year. Include
7977 "solib.h".
7978
70b216c8
MK
7979 * sparc-sol2-tdep.c: Update copyright year. Include
7980 "solib-svr4.h".
7981 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
7982 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
7983 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
096f864c 7984 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
70b216c8
MK
7985 dependencies.
7986
6339dc9e
AC
79872004-04-06 Andrew Cagney <cagney@redhat.com>
7988
7989 * infttrace.c: Include "infttrace.h".
7990 * infttrace.h: Include "target.h".
7991 * Makefile.in (infttrace_h): Update.
7992 (infttrace.o): Update.
8718a420 7993
93449403
AC
79942004-04-06 Andrew Cagney <cagney@redhat.com>
7995
6d518969
AC
7996 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
7997 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
7998 move extern declarations from here ...
7999 * infttrace.h: ... to here.
8000 * Makefile.in (hppah-nat.o): Update dependencies.
8001
85f4f2d8
AC
8002 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
8003 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
8718a420 8004 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
85f4f2d8
AC
8005 (hppa_breakpoint_from_pc): Delete.
8006
93449403
AC
8007 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
8008
71456ec6
AC
80092004-04-05 Andrew Cagney <cagney@redhat.com>
8010
8011 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
8012 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
8013 <sys/file.h>.
8718a420 8014
4c02c60c
AC
80152004-04-06 Randolph Chung <tausq@debian.org>
8016
8017 Committed by Andrew Cagney (mechanical change).
8018 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
8019 exception_catchpoints_are_fragile, find_stub_with_shl_get,
8020 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
8021 child_enable_exception_callback, current_ex_event,
8022 null_symtab_and_line, child_get_current_exception_event,
8023 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
8024 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
8025 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
8026 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
8027 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
8028 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
8029 Move hpux-specific definitions ...
8030 * hppa-hpux-tdep.c: ... to here.
8031
3a515653
AC
80322004-04-05 Andrew Cagney <cagney@redhat.com>
8033
8034 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
8035 skip_prologue_using_sal.
8036
c1730d02
AC
80372004-04-05 Andrew Cagney <cagney@redhat.com>
8038
8039 * config/i386/tm-i386.h: Delete file.
8040 * config/i386/tm-vxworks.h: Update copyright, do not include
8041 "tm-i386.h".
8042 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
8043 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
8044 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
8045 * config/i386/ncr3000.mt (TM_FILE): Delete.
8046 * config/i386/interix.mt (TM_FILE): Delete.
8047 * config/i386/i386v.mt (TM_FILE): Delete.
8048 * config/i386/i386nw.mt (TM_FILE): Delete.
8049 * config/i386/i386gnu.mt (TM_FILE): Delete.
8050 * config/i386/i386aout.mt (TM_FILE): Delete.
8051 * config/i386/embed.mt (TM_FILE): Delete.
8052
8b67aa36
KB
80532004-04-05 Kevin Buettner <kevinb@redhat.com>
8054
8055 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
8056 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
8057 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
8058 (accg7_regnum): New constants.
8059 (last_spr_regnum, last_pseudo_regnum): Update.
c2f59a1a
KB
8060 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
8061 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
8b67aa36
KB
8062 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
8063 for accg registers.
8064 (frv_register_sim_regno): Update spr_map[].
8065
3c7012f5
AC
80662004-04-04 Andrew Cagney <cagney@redhat.com>
8067
8068 * config/mips/xm-riscos.h: Delete.
8069 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
8070 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
8071 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
8072 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
8073 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
8074 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
8075 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
8076 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
8077 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
8078 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
8079 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
8080 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
8081 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
8082 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
8083 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
8084 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
8085 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
8086 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
8087 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
8088 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
8089 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
8090 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
8091 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
8092 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
8093 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
8094 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
8718a420 8095
3c7012f5
AC
8096 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
8097 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
8098 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
8099 * configure.host: Remove m680[01]0-sun-sunos3*,
8100 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
8101 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
8102 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
8103 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
8104 mips-*-riscos*.
8105 * NEWS: Mention removed systems.
8106
99d16a21
AC
81072004-04-04 Andrew Cagney <cagney@redhat.com>
8108
8109 GDB 6.1 release created from 6.1 branch.
8110
6cdf9d98
AC
81112004-04-04 Andrew Cagney <cagney@redhat.com>
8112
98d346c3
AC
8113 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
8114 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
8115 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
8116
6cdf9d98
AC
8117 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
8118 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
8119 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
8120
859a326d
JB
81212004-04-03 Jim Blandy <jimb@redhat.com>
8122
8123 * MAINTAINERS: Chris Faylor has changed employers; add him to
8124 "paper trail" section, and update his E-mail address.
8125
b87178c3
AC
81262004-04-03 Andrew Cagney <cagney@redhat.com>
8127
4ea2acf0
AC
8128 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
8129 generic dummy frames.
8130 * dummy-frame.c: Update copyright.
8131 (dummy_frame_sniffer): Delete check for generic dummy frames.
8132
d0bd2d18 8133 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
8718a420 8134 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
d0bd2d18
AC
8135 (REG_PARM_STACK_SPACE): Delete.
8136 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
8137 Inline reference to REG_PARM_STACK_SPACE.
8138
b87178c3
AC
8139 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
8140 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8141 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
8142 (FRAME_BASE_BEFORE_SIGTRAMP)
8143 (hppa32_hpux_frame_base_before_sigtramp)
8144 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
8145 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
8146 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
8147 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
8148 (FRAME_BASE_BEFORE_SIGTRAMP)
8149 (hppa64_hpux_frame_base_before_sigtramp)
8150 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
8151
43e2e1a0
AC
81522004-04-03 Andrew Cagney <cagney@redhat.com>
8153
8154 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
8155
ddc135a4
AC
81562004-04-02 Andrew Cagney <cagney@redhat.com>
8157
8158 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
8159 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
8160 * dummy-frame.h: Delete out-of-date comments.
8161 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
8162 * gdbarch.h, gdbarch.c: Re-generate.
8163
d15bfd3a 81642004-04-02 Joel Brobecker <brobecker@gnat.com>
8718a420 8165
d15bfd3a
AC
8166 Committed by Andrew Cagney <cagney@redhat.com>.
8167 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
8168 into account an instruction saving a register if we have already
8169 seen an earlier instruction saving that same register.
8170
f04ceafa
AC
81712004-04-02 Andrew Cagney <cagney@redhat.com>
8172
08be3abd
AC
8173 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
8174 * gdbarch.h, gdbarch.c: Re-generate.
8175 * frame.c (legacy_get_prev_frame): Delete references to
8176 DEPRECATED_INIT_FRAME_PC_FIRST.
8177
f04ceafa
AC
8178 * infrun.c (pc_in_sigtramp): Delete function.
8179 (check_sigtramp2): Inline call to pc_in_sigtramp, use
8180 get_frame_type.
8181
08e69816
AC
81822004-04-02 Andrew Cagney <cagney@redhat.com>
8183
8184 * infrun.c (handle_step_into_function): Delete code conditional on
8185 legacy_frame_p.
8186 (handle_inferior_event, step_over_function): Ditto.
8187
adb54772
AC
81882004-04-02 Andrew Cagney <cagney@redhat.com>
8189
8190 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
8191 "previous frame inner to this frame" test.
8192
304396fb
AC
81932004-04-02 Andrew Cagney <cagney@redhat.com>
8194
8195 * frame.c (safe_frame_unwind_memory): New function.
8196 * frame.h (safe_frame_unwind_memory): Declare. Update description
8197 of /safe_/ methods.
8198 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
8199 "next_frame". Use safe_frame_unwind_memory.
8200 (tramp_frame_sniffer): Update call to tramp_frame_start.
8201
6502dd73
DJ
82022004-04-01 Daniel Jacobowitz <drow@mvista.com>
8203
8204 * dwarf2read.c (dwarf2_objfile_data_key): New.
8205 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
8206 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
8207 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
8208 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
8209 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
8210 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
8211 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
8212 Remove variables.
8213 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
8214 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
8215 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
8216 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
8217 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
8218 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
8219 Remove macros.
8220 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
8221 data.
8222 (dwarf2_locate_sections, dwarf2_build_psymtabs)
8223 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
8224 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
8225 (read_partial_die, read_full_die, read_indirect_string)
8226 (dwarf_decode_line_header, dwarf_decode_macros)
8227 (dwarf2_symbol_mark_computed): Remove use of removed macros.
8228 Update uses of removed variables.
8229 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
8230 of removed macros.
8231 (_initialize_dwarf2_read): New function.
8232 * symfile.h (dwarf2_has_info): Update prototype.
8233 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
8234 * elfread.c (elf_symfile_read): Likewise.
8235
408752b0
JB
82362004-04-01 Jim Blandy <jimb@redhat.com>
8237
9f744501
JB
8238 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
8239 function for register numbers on all the rs6000-derived targets.
8240 (rs6000_gdbarch_init): Don't register a separate
8241 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
8242 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
8243 variants.
8244
408752b0
JB
8245 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
8246 numbering.
8247
2de41bce
PH
82482004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
8249
8250 * valarith.c: Update copyright notice.
8251 (value_add): Handle range types.
8252 (value_sub): Ditto.
8253 (value_equal): Ditto.
8254 (value_less): Ditto.
8255 (value_neg): Ditto.
8256 (value_complement): Ditto.
8718a420 8257 (value_binop): Simplify slightly by using is_integral_type and
2de41bce 8258 eliminiating unnecessary COERCE_ENUMs.
8718a420 8259
5613d8d3
AC
82602004-03-31 Andrew Cagney <cagney@redhat.com>
8261
8262 * frame.h (frame_unwind_id): Declare.
8263 * frame.c (frame_unwind_id): New function.
8264 (get_prev_frame_1): New function.
8265 (frame_debug_got_null_frame): New function.
8266 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
8267 code proper to prev_frame, update description.
8268 * infrun.c (step_over_function): Use frame_unwind_id.
8269
c4557624
JB
82702004-04-31 J. Brobecker <brobecker@gnat.com>
8271
8272 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
8273 (hppa64_push_dummy_call): Likewise.
8274
3e6bb910
JB
82752004-03-30 Jim Blandy <jimb@redhat.com>
8276
8277 From Ulrich Weigand:
8278 * utils.c (query): Do not use a va_list variable multiple times.
8279
a2f23071
DJ
82802004-03-29 Daniel Jacobowitz <drow@mvista.com>
8281
8282 * Makefile.in (linux_nat_h): Update dependencies.
8283 * configure.in: Check for <gnu/libc-version.h>.
8284 * configure: Regenerate.
8285 * config.in: Regenerate.
8286 * linux-nat.h: Include "target.h". Add waitstatus field to
8287 struct lwp_info.
8288 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
8289 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
8290 to.
8291 (lin_lwp_handle_extended): New function. Handle clone events.
8292 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
8293 thread exit events.
8294 (child_wait): Handle clone events.
8295 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
8296 * linux-nat.c (linux_enable_event_reporting): Turn on
8297 PTRACE_O_TRACECLONE.
8298 (linux_handle_extended_wait): Handle clone events.
8299 * thread-db.c: Include <gnu/libc-version.h>.
8300 (struct private_thread_info): Add dying flag.
8301 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
8302 higher.
8303 (attach_thread): Update comments. Handle dying threads.
8304 (detach_thread): Set the dying flag.
8305 (check_event): Always call attach_thread.
8306
8d5f9dcb
DJ
83072004-03-29 Daniel Jacobowitz <drow@mvista.com>
8308
8309 * mips-tdep.c (mips_pdr_data): New.
8310 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
8311 (_initialize_mips_tdep): Initialize mips_pdr_data.
8312
66337bb1
CV
83132004-03-29 Corinna Vinschen <vinschen@redhat.com>
8314
8315 * minsyms.c (install_minimal_symbols): Move dropping leading
8316 char from linkage name from here...
8317 (prim_record_minimal_symbol_and_info): ...to here. Simplify
8318 test for "__gnu_compiled*" symbols.
8319
e802b915
JB
83202004-03-28 Jim Blandy <jimb@redhat.com>
8321
8322 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
8323 registers to temp register r0 and byte stores as prologue
8324 instructions.
8325
72b56458
AC
83262004-03-28 Andrew Cagney <cagney@redhat.com>
8327
8328 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
8329 arm*-*-*.
8330
0bfbda3b
SC
83312004-03-28 Stephane Carrez <stcarrez@nerim.fr>
8332
8333 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
8334 and switch the layout to force a display of register window.
8335
5a7225ed
JB
83362004-02-26 J. Brobecker <brobecker@gnat.com>
8337
8338 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
8339 of the INTEGER class.
8340
81a07a45
JB
83412004-03-26 Jim Blandy <jimb@redhat.com>
8342
8343 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
8344 bytes long on PPC GNU/Linux.
8345
8c691c7a
DC
83462004-03-26 David Carlton <carlton@kealia.com>
8347
8348 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
8349
103a0089
AC
83502004-03-25 Andrew Cagney <cagney@redhat.com>
8351
8352 * PROBLEMS: Add general section titles, remove references to
8353 specific releases.
8354
7a5ea0d4
DJ
83552004-03-25 Daniel Jacobowitz <drow@mvista.com>
8356
8357 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
8358 INT_REGISTER_SIZE.
8359 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
8360 FP_REGISTER_VIRTUAL_SIZE.
8361 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
8362 of DEPRECATED_REGISTER_RAW_SIZE.
8363 (arm_register_type): Add gdbarch argument.
8364 (arm_register_raw_size, arm_register_virtual_size): Delete.
8365 (arm_register_byte, arm_extract_return_value)
8366 (arm_store_return_value, arm_get_longjmp_target): Update references
8367 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
8368 (arm_gdbarch_init): Likewise. Don't set
8369 deprecated_register_raw_size, deprecated_register_virtual_size,
8370 deprecated_max_register_raw_size,
8371 deprecated_max_register_virtual_size, or
8372 deprecated_max_register_virtual_type. Do set register_type.
8373 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
8374 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
8375 (FP_REGISTER_VIRTUAL_SIZE): Delete.
8376 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
8377 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
8378 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
8379 INT_REGISTER_SIZE.
8380 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
8381 (remote_rdp_store_register): Likewise.
8382
5792a79b
DJ
83832004-03-24 Daniel Jacobowitz <drow@mvista.com>
8384
8385 * Makefile.in (mips-linux-tdep.o): Update dependencies.
8386 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
8387 to after osabi initialization.
8388 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
8389 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
8390 functions.
8391 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
8392 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
8393 variables.
8394 (mips_linux_init_abi): Append signal trampoline unwinders.
8395
1196bfda
AC
83962004-03-24 Andrew Cagney <cagney@redhat.com>
8397
8398 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
8399 * tramp-frame.c: Include "gdb_assert.h".
8400 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
8401 correct sizeof.
8402 (tramp_frame_append): Validate the tramp frame's instructions.
8403 * Makefile.in (tramp-frame.o): Update dependencies.
8404
4be282b4
AC
84052004-03-23 Andrew Cagney <cagney@redhat.com>
8406
8407 * trad-frame.h (trad_frame_set_reg_addr): Declare.
8408
69aec09b
AC
84092004-03-23 Andrew Cagney <cagney@redhat.com>
8410
8411 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
8412 Nasser as past testsuite/lib/ (and other) maintainers.
8413
63ed89b4
DJ
84142004-03-23 Daniel Jacobowitz <drow@mvista.com>
8415
8416 * infcmd.c (attach_command): Reread symbols if we already have
8417 an exec file.
8418
f3b36427
AC
84192004-03-23 Andrew Cagney <cagney@redhat.com>
8420
8421 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
8422
aa2a3f87
AC
84232004-03-23 Andrew Cagney <cagney@redhat.com>
8424
8425 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
8426 * gdbarch.h, gdbarch.c: Re-generate.
8427 * i386obsd-tdep.c (i386obsd_init_abi): Update.
8428 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8429 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8718a420 8430 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87 8431 (DEPRECATED_SIGTRAMP_START): Update.
8718a420 8432 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
aa2a3f87
AC
8433 (DEPRECATED_SIGTRAMP_START): Update.
8434 * blockframe.c (find_pc_sect_partial_function): Update.
8435 * arch-utils.c (legacy_pc_in_sigtramp): Update.
8436
00cac895
DJ
84372004-03-23 Daniel Jacobowitz <drow@mvista.com>
8438
8439 * remote.c (remote_open_1): Reopen the exec file and reread symbols
8440 if necessary.
8441
f561f026
AC
84422004-03-23 Andrew Cagney <cagney@redhat.com>
8443
8444 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
8445 predicate, deprecate.
8446 * gdbarch.h, gdbarch.c: Re-generate.
8447 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
8448 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
8449 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
8450 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
8451 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
8452 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
8453 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
8454 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
8455 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
8456 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
8457 * blockframe.c (find_pc_partial_function): Update.
8458 * breakpoint.c (bpstat_what): Update.
8459 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
8460 * frv-linux-tdep.c (frv_linux_init_abi): Update.
8461 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
8462 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
8463 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8464 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8465 * i386-nto-tdep.c (i386nto_init_abi): Update.
8466 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
8467 * i386-tdep.c (i386_sigtramp_frame_sniffer)
8468 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
8469 * i386bsd-tdep.c (i386bsd_init_abi): Update.
8470 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
8471 * i386obsd-tdep.c (i386obsd_init_abi): Update.
8472 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
8473 * infrun.c (pc_in_sigtramp): Update.
8474 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
8475 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
8476 * mips-tdep.c (mips_gdbarch_init): Update.
8477 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
8478 * ppc-linux-tdep.c: Update comment.
8479 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
8480 * shnbsd-tdep.c (shnbsd_init_abi): Update.
8481 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
8482 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
8483 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
8484 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
8485 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
8486 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
8487 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
8488 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
8718a420 8489
8050c72f
AC
84902004-03-23 Andrew Cagney <cagney@redhat.com>
8491
d2259dd3
AC
8492 * tramp-frame.h, tramp-frame.h: New files.
8493 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
8494 Update rules to include "tramp-frame.h" and "tramp-frame.c".
8495
8050c72f
AC
8496 * Makefile.in: Update all dependencies.
8497
0db9b4b7
AC
84982004-03-23 Andrew Cagney <cagney@redhat.com>
8499
8500 * Makefile.in (trad_frame_h): Add $(frame_h).
8501 * trad-frame.h: Update copyright. Include "frame.h".
8502 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
8503 (trad_frame_set_id, trad_frame_get_id): Declare.
8504 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
8505 * trad-frame.c: Update copyright.
8506 (struct trad_frame_cache): Define.
8507 (trad_frame_cache_zalloc): New function.
8508 (trad_frame_set_id, trad_frame_get_id): New functions.
8509 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
8718a420 8510
8e645ae7
AC
85112004-03-22 Andrew Cagney <cagney@redhat.com>
8512
8513 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
8514 s390_pltstub_unwind_cache.
8515 (s390_stub_frame_unwind_cache): Rename
8516 s390_pltstub_frame_unwind_cache.
8517 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
8518 (s390_stub_frame_prev_register): Rename
8519 s390_pltstub_frame_prev_register.
8520 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
8521 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
8522
8523 From Ulrich Weigand:
8524 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
8525 pointer calls like PLT calls.
8526
34fcf120
DJ
85272004-03-22 Daniel Jacobowitz <drow@mvista.com>
8528
8529 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
8530 PC rather than the partial function start address. Use the start
8531 address to sanity check the found PDR.
8532
5b917078
DJ
85332004-03-22 Daniel Jacobowitz <drow@mvista.com>
8534
8535 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
8536 linux_handle_extended_wait.
8537
8adf9e78
AC
85382004-03-22 Andrew Cagney <cagney@redhat.com>
8539
c3122434
AC
8540 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
8541 function.
8542
8adf9e78
AC
8543 * frame.h (generic_pop_current_frame): Delete declaration.
8544 (deprecate_pop_dummy_frame): Deprecate
8545 generic_pop_dummy_frame.
8546 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
8547 (generic_pop_current_frame): Delete function.
8548 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
8549 generic_pop_current_frame.
8550 * v850-tdep.c (v850_pop_frame): Update.
8551 * mcore-tdep.c (mcore_pop_frame): Update.
8552 * sh64-tdep.c (sh64_pop_frame): Update.
8553 * h8300-tdep.c (h8300_pop_frame): Update.
8554
90ba813f
AC
85552004-03-22 Andrew Cagney <cagney@redhat.com>
8556
8557 * frame.h (deprecated_pc_in_call_dummy): Rename
8558 generic_pc_in_call_dummy.
8559 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
8560 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
8561 generic_pc_in_call_dummy.
8562 (pc_in_dummy_frame): Make static.
8563 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
8564 * gdbarch.h, gdbarch.c: Re-generate.
8565 * dummy-frame.c (dummy_frame_sniffer): Simplify.
8566 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
8567 (legacy_get_prev_frame): Ditto.
8568 * inferior.h: Delete reference to generic_pc_in_call_dummy in
8569 comment.
8718a420 8570
ca4bb888
AC
85712004-03-21 Andrew Cagney <cagney@redhat.com>
8572
244675f9
AC
8573 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
8574 declaration and out-of-date comment.
8575 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
8576 Delete function.
8577 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
8578 deprecated_pc_in_call_dummy.
8579
ca4bb888
AC
8580 * infrun.c (handle_inferior_event): For non legacy frames, use the
8581 frame ID and frame type to identify a signal trampoline. Update
8582 comments.
8583
1777c7b4
NW
85842004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
8585
8586 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
8587 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
8588
82417da5
AC
85892004-03-21 Andrew Cagney <cagney@redhat.com>
8590
8591 * frame-unwind.h: Update copyright.
8592 (struct frame_data): Add opaque declaration.
8593 (frame_sniffer_ftype): Declare.
8594 (struct frame_unwind): Add "unwind_data" and "sniffer".
8595 (frame_unwind_register_unwinder): Declare.
8596 (frame_unwind_find_by_frame): Add parameter "this_cache".
8597 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
8598 (legacy_get_prev_frame, legacy_get_prev_frame)
8599 (get_frame_type): Pass the prologue_cache to
8600 frame_unwind_find_by_frame.
8601 * frame-unwind.c (struct frame_unwind_table_entry): Add field
8602 "unwinder".
8603 (frame_unwind_register_unwinder): New function.
8604 (frame_unwind_find_by_frame): Handle an unwind sniffer.
8605
b2ba182e
PH
86062004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
8607
8608 * bcache.c (print_percentage): Use floating point to avoid
8609 incorrect results when portion*100 overflows.
8610
81332287
KB
86112004-03-19 Kevin Buettner <kevinb@redhat.com>
8612
8613 * ppc_tdep.h (ppc_linux_frame_saved_pc)
8614 (ppc_linux_init_extra_frame_info)
8615 (ppc_linux_frameless_function_invocation)
8616 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
8617 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
8618 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
8619 (rs6000_frame_chain): Delete declarations.
8620 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
8621 (ppc_linux_init_extra_frame_info)
8622 (ppc_linux_frameless_function_invocation)
8623 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
8624 (ppc_linux_init_abi): Remove registration of above deleted functions.
8625 * rs6000-tdep.c (rs6000_init_extra_frame_info)
8626 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
8627 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
8628 (rs6000_pop_frame, rs6000_frameless_function_invocation)
8629 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
8630 (rs6000_gdbarch_init): Remove registration of above deleted functions.
8631 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
8632 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
8633 frame management for all OSABIs.
8634
61a65099
KB
86352004-03-19 Andrew Cagney <cagney@redhat.com>
8636
8637 Committed by Kevin Buettner <kevinb@redhat.com>.
8638
8639 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
8640 Update copyright.
8641 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
8642 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
8643 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
8644 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
8645 unwinders. #ifdef legacy frame code.
8646 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8647 "frame-base.h".
8648 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
8649 (struct rs6000_frame_cache, rs6000_frame_cache)
8650 (rs6000_frame_this_id, rs6000_frame_prev_register)
8651 (rs6000_frame_sniffer, rs6000_frame_unwind)
8652 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
8653 (rs6000_frame_base): Implement a traditional frame unwinder.
8654 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
8655 frame unwinder.
8656
88f7da05
KB
86572004-03-19 Kevin Buettner <kevinb@redhat.com>
8658
8659 * breakpoint.c (adjust_breakpoint_address): Don't adjust
8660 breakpoint address for watchpoints or the catch eventpoints.
8661 Add new paramter ``bptype''. Adjust all callers.
8662
f826dce1
AC
86632004-03-19 Andrew Cagney <cagney@redhat.com>
8664
33cb8b0f
AC
8665 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
8666
f826dce1
AC
8667 * PROBLEMS: Delete note that ARM does not use frame code, problem
8668 fixed.
8669
43b1ab88
AC
86702004-03-18 Andrew Cagney <cagney@redhat.com>
8671
292ab034
AC
8672 * stack.c (return_command): Delete code wrapped in #ifdef
8673 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
8674
43b1ab88
AC
8675 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
8676
dbfe4626
AC
86772004-03-18 Andrew Cagney <cagney@redhat.com>
8678
8679 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
8680 DEPRECATED_IN_SIGTRAMP.
8681 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8682 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
8683 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8684 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8685 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8686 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8687 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8688 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
8689 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
8690 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
8691
0cad6aec
AC
86922004-03-18 Andrew Cagney <cagney@redhat.com>
8693
8694 * frame-base.c: Update copyright. Include "gdb_obstack.h".
8695 (struct frame_base_table_entry): Define.
8696 (struct frame_base_table): Re-implement as a linked list.
8697 (frame_base_init): Re-implement.
8698 (frame_base_table): Delete function.
8699 (append_predicate): Delete function.
8700 (frame_base_append_sniffer): Update.
8701 (frame_base_set_default): Update.
8702 (frame_base_find_by_frame): Update.
8703 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
8704 * Makefile.in (frame-base.o): Update dependencies.
8705
9982c2e7
AC
87062004-03-17 Andrew Cagney <cagney@redhat.com>
8707
8708 * frame.c (legacy_get_prev_frame): Pass correct frame to
8709 frame_unwind_find_by_frame.
8710
8dfe8985
DC
87112004-03-17 David Carlton <carlton@kealia.com>
8712
8713 * NEWS: Mention C++ nested types and namespaces
8714
ed47347a
MC
87152004-03-16 Michael Chastain <mec.gnu@mindspring.com>
8716
8717 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
8718 and "Regressions since gdb 5.3.". Add known regressions since
8719 gdb 6.0.
8720
90aeadfc
DC
87212004-03-16 David Carlton <carlton@kealia.com>
8722
8723 * dwarf2read.c (process_structure_scope): Process children even
8724 when we're a declaration.
8725
73912b9b
AC
87262004-03-16 Andrew Cagney <cagney@redhat.com>
8727
8728 * symtab.h (find_pc_sect_partial_function): Delete declaration.
8729 * blockframe.c (find_pc_partial_function)
8730 (find_pc_sect_partial_function): Merge into a single
8731 find_pc_partial_function.
8732
283accbc
MK
87332004-03-16 Mark Kettenis <kettenis@gnu.org>
8734
8735 * i386bsd-nat.c: s/regno/regnum/g.
8736 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
8737 FP0_REGNUM.
8738 (store_inferior_registers): Likewise.
8739
f5b1afdf
MK
87402004-03-16 Mark Kettenis <kettenis@gnu.org>
8741
8742 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
8743 of i387_fill_fsave.
8744 (store_inferior_registers): Call i387_collect_fsave and
8745 i387_collect_fxsave instead of i387_fill_fsave and
8746 i387_fill_fxsave.
8747
41fe5eb3
AC
87482004-03-15 Andrew Cagney <cagney@redhat.com>
8749
8750 * Makefile.in (frame-unwind.o): Update dependencies.
8751 * frame-unwind.c: Include "gdb_obstack.h".
8752 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
8753 parameter.
8754 (append_predicate): Delete function.
8755 (struct frame_unwind_table_entry): New structure.
8756 (struct frame_unwind_table): Replace "sniffer" with "head" and
8757 "tail".
8758 (frame_unwind_append_sniffer): Update.
8759 (frame_unwind_find_by_frame): Update.
8760 (_initialize_frame_unwind): Registe frame_unwind_init using
8761 gdbarch_data_register_pre_init.
8762
3f63813d
MK
87632004-03-15 Mark Kettenis <kettenis@gnu.org>
8764
8765 * i386bsd-nat.c: Update copyright year.
8766 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
8767 define unconditionally.
8768
3248c325 87692004-03-15 Mark Kettenis <kettenis@gnu.org>
63b6c53f
MK
8770
8771 * i387-tdep.h (i387_collect_fsave): New prototype.
8772 * i387-tdep.c (i387_collect_fsave): New function containing most
8773 of the code from i387_fill_fsave.
3248c325 8774 (i387_fill_fsave): Call i387_collect_fsave.
63b6c53f 8775
871fbe6a
MK
87762004-03-15 Mark Kettenis <kettenis@gnu.org>
8777
8778 * i386-linux-tdep.c: Update copyright year.
8779 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
8780 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
8781 svr4_ilp32_link_map_offsets instead of
8782 i386_linux_svr4_fetch_link_map_offsets.
8783
8176b9b8
DC
87842004-03-15 David Carlton <carlton@kealia.com>
8785
8786 Fix for PR c++/1553:
8787 * dwarf2read.c (read_structure_type): Determine type name by
8788 calling determine_class_name.
8789 (determine_class_name): New.
8790 (determine_prefix): Look at TYPE_TAG_NAME and call
8791 determine_class_name when appropriate.
8792 (determine_prefix_aux, class_name): Delete.
9d58e29d 8793 (read_namespace): Set die->type.
8176b9b8 8794
fe8bf7d7
KB
87952004-03-15 Kevin Buettner <kevinb@redhat.com>
8796
8797 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
8798 unused macro definition. The definition in target.h (or perhaps
8799 elsewhere) takes precedence.
8800
ed6edd9b
AC
88012004-03-15 Andrew Cagney <cagney@redhat.com>
8802
f9be684a
AC
8803 * ppc-tdep.h: Update copyright.
8804 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
8805 function signatures to match "regsets.h".
8806 * ppc-linux-tdep.c: Include "regset.h".
8807 (ELF_GREGSET_SIZE): Delete.
8808 (right_supply_register): New function.
8809 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
8810 using right_supply_register.
8811 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
8812 functions.
8813 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
8814 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
8815 (_initialize_ppc_linux_tdep): Do not register
8816 ppc_linux_regset_core_fns.
8817 (ppc_linux_regset_from_core_section): Replace
8818 fetch_core_registers.
8819 (ppc_linux_regset_core_fns): Delete.
8820 * ppc-linux-nat.c: (right_fill_reg): New function.
8821 (supply_gregset): Update call to ppc_linux_supply_gregset.
8822 (fill_gregset): Clear the register set, use right_fill_reg.
8823 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
8824 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
8825
ed6edd9b
AC
8826 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
8827 unsigned.
8828
030f20e1
AC
88292004-03-15 Andrew Cagney <cagney@redhat.com>
8830
8831 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
8832 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
8833 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
8834 and register_gdbarch_data.
8835 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
8836 (struct gdbarch_data): Replace "init" by "pre_init" and
8837 "post_init".
8838 * gdbarch.h, gdbarch.c: Re-generate.
8839 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
8840 with"obstack", use OBSTACK_ZALLOC.
8841 (dwarf2_frame_ops): Delete.
8842 (dwarf2_frame_set_init_reg): Use gdbarch_data.
8843 (dwarf2_frame_init_reg): Use gdbarch_data.
8844 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
8718a420 8845 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
030f20e1
AC
8846 (_initialize_svr4_solib): Update.
8847 * user-regs.c (_initialize_user_regs): Update.
8848 * reggroups.c (_initialize_reggroup): Update.
8849 * regcache.c (_initialize_regcache): Update.
8850 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
8851 * libunwind-frame.c (_initialize_libunwind_frame): Update.
8852 * gnu-v3-abi.c (init_gnuv3_ops): Update.
8853 * frame-unwind.c (_initialize_frame_unwind): Update.
8854 * frame-base.c (_initialize_frame_base): Update.
8855 * user-regs.c (user_reg_add): Update.
8856 * reggroups.c (reggroup_add): Update.
8857 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
8858 * libunwind-frame.c (libunwind_frame_set_descr): Update.
8859 * frame-unwind.c (frame_unwind_append_sniffer): Update.
8860 * frame-base.c (frame_base_table): Update.
8861 * remote.c (_initialize_remote): Update.
8862 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
8718a420 8863
3111a3fc
AC
88642004-03-15 Andrew Cagney <cagney@redhat.com>
8865
8866 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
8867
5ecb7103
KB
88682004-03-15 Kevin Buettner <kevinb@redhat.com>
8869
8870 * Makefile.in (frv-linux-tdep.o): Add dependencies.
8871 * frv-linux-tdep.c: New file.
8872 * frv-tdep.c (struct gdbarch_tdep): Add new field
8873 ``sigcontext_reg_addr''.
8874 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
8875 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
8876 (frv_sigramp_frame_sniffer): New functions.
8877 (frv_sigtramp_frame_unwind): New static global.
8878 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
8879 sniffers.
8880 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
8881 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
8882
1ccda5e9
KB
88832004-03-15 Kevin Buettner <kevinb@redhat.com>
8884
8885 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
8886 but not via a call to error(), when unable to read memory.
8887
b375a0a5
KB
88882004-03-15 Kevin Buettner <kevinb@redhat.com>
8889
8890 * frv-tdep.c (frv_call_dummy_words): Delete.
8891 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
8892
4fdf6121
AC
88932004-03-15 Andrew Cagney <cagney@redhat.com>
8894
8895 * infrun.c (handle_step_into_function, step_over_function): Only
8896 update and use STEP_FRAME_ID when the system is using legacy
8897 frames. Update comments.
8898
34021503
MK
88992004-03-14 Mark Kettenis <kettenis@gnu.org>
8900
187e21d1
MK
8901 * amd64-linux-tdep.h: Remove file.
8902 * amd64-linux-tdep.c: Don't include "inferior.h" and
8903 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
8904 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
8905 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
8906 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
8907 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
8908 macros.
8909 (user_to_gdb_regmap): Remove variable.
8910 (amd64_linux_gregset_reg_offset): New variable.
8911 (amd64_core_fns): Remove variable.
8912 (fetch_core_registers): Remove function.
8913 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
8914 functions.
8915 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
8916 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
8917 * Makefile.in (amd64_linux_tdep_h): Remove.
8918 (amd64-linux-nat.o): Update dependencies.
8919 (amd64-linux-tdep.o): Update dependencies.
8920
99679982
MK
8921 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
8922 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
8923 functions.
8924 (fetch_inferior_registers, store_inferior_registers): Rewrite.
8925
34021503
MK
8926 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
8927 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
8928
134d01f1
DJ
89292004-03-14 Daniel Jacobowitz <drow@mvista.com>
8930
8931 * dwarf2read.c (read_structure_type): Rename from
8718a420 8932 read_structure_scope. Don't create a symbol or call process_die.
134d01f1
DJ
8933 Return immediately if die->type is set. Call read_type_die before
8934 dwarf2_add_member_fn.
8935 (process_structure_scope): New function.
8936 (read_enumeration_type, process_enumeration_scope): New functions,
8937 broken out from read_enumeration. Don't create the enumeration
8938 type if it has already been created.
8939 (read_enumeration): Removed.
8940 (process_die): Call read_structure_type, process_structure_scope,
8941 read_enumeration_type, and process_enumeration_scope. Just call
8942 new_symbol for base and subrange types. Add a comment about other
8943 type dies.
8944 (read_type_die): Call read_enumeration_type.
8945 (add_partial_structure, new_symbol): Update comments.
8946
65760afb
SC
89472004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8948
8949 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
8950
10f59415
SC
89512004-03-13 Stephane Carrez <stcarrez@nerim.fr>
8952
8953 * tui/tui-win.h (tui_get_cmd_list): Declare.
8954 * tui/tui-win.c (tui_command): New function.
8955 (tui_get_cmd_list): New function.
8956 (_initialize_tui_win): Moved initialization of tui command in
8957 tui_get_cmd_list.
8958
8959 * tui/tui-data.c (init_content_element): Setup new data members.
8960 (init_win_info): Likewise.
8961 (free_content_elements): Free it.
8962 * tui/tui-data.h (struct tui_data_element): Store the register
8963 content to print.
8964 (struct tui_data_info): Keep the current register group.
8965
8966 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
8967
8968 * tui/tui-regs.h (tui_show_registers): Update prototype.
8969 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
8970 (tui_resize_all): No need to calculate anything for register window.
8971 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
8972 (tui_set_register_element, tui_set_general_regs_content): Remove.
8973 (tui_set_special_regs_content): Remove.
8974 (tui_set_general_and_special_regs_content): Remove.
8975 (tui_set_float_regs_content): Remove.
8976 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
8977 (tui_set_regs_content): Remove.
8978 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
8979 (tui_v_show_registers_command_support): Remove.
8980 (tui_show_registers): Use a reggroup to specify the registers to show.
8981 (tui_show_register_group): New function.
8982 (tui_display_registers_from): Compute the layout of register window
8983 and refresh with new API; be sure to delete old register windows.
8984 (tui_check_register_values): Update to use tui_get_register and
8985 tui_display_data.
8986 (tui_display_register): Just refresh the register window part.
8987 (tui_register_format): Format registers and save in tui_data_element.
8988 (tui_get_register): New to combine tui_reg_value_has_changed and
8989 tui_get_register_raw_value; fix to use the new gdb API.
8990 (tui_show_float_command): Renamed tui_reg_float_command.
8991 (tui_show_general_command): Renamed tui_reg_general_command.
8992 (tui_show_special_command): Renamed tui_reg_system_command.
8993 (_initialize_tui_regs): Remove unused commands.
8994
c3364ea4
MK
89952004-03-13 Mark Kettenis <kettenis@gnu.org>
8996
27d1e716
MK
8997 * NEWS (New native configurations): Mention OpenBSD/amd64.
8998
c3364ea4
MK
8999 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
9000 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
9001 Remove defines.
9002 * config/i386/nm-fbsd64.h: Likewise.
9003 * config/i386/nm-obsd.h: Likewise.
9004 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
9005 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
9006
b2d6d697
KB
90072004-03-12 Kevin Buettner <kevinb@redhat.com>
9008
9009 * frv-tdep.c (set_variant_scratch_registers): New function.
b2d6d697
KB
9010 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
9011 New constants.
9012
76e43199
KB
9013 From Richard Sandiford <rsandifo@redhat.com>:
9014 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
9015
34ce532e
KB
90162004-03-12 Kevin Buettner <kevinb@redhat.com>
9017
9018 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
9019 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
9020 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
9021 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
9022 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
9023 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
9024 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
9025 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
9026 definitions from frv-tdep.c to frv-tdep.h.
9027
c4d10515
KB
90282004-03-12 Kevin Buettner <kevinb@redhat.com>
9029
9030 Add shared library support for FR-V FDPIC ABI:
9031 * Makefile.in (solib-frv.o): Add dependencies.
9032 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
9033 New functions.
9034 (frv_push_dummy_call): Add support for FDPIC ABI.
9035 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
9036 for FDPIC ABI.
9037 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
9038 (frv_fdpic_find_canonical_descriptor): Declare.
9039 * solib-frv.c: New file.
9040 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
9041 * config/frv/tm-frv.h (solib.h): Include.
9042
ed1bd989
KB
90432004-03-12 Kevin Buettner <kevinb@redhat.com>
9044
9045 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
9046 (frv-tdep.o): Update dependencies.
9047 * frv-tdep.h: New file.
9048 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
9049 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
9050 constants.
9051 (struct gdbarch_tdep): Add new member ``frv_abi''.
9052 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
9053 functions.
9054 (new_variant): Set ``frv_abi'' field.
9055 (gdb_arch_init): Detect FDPIC executables.
9056
82b38f72
MK
90572004-03-12 Mark Kettenis <kettenis@gnu.org>
9058
9059 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
9060 wrapper.
9061
db1ea9ba
AC
90622004-03-11 Andrew Cagney <cagney@redhat.com>
9063
9064 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
9065
f8766ec1
KB
90662004-03-11 Kevin Buettner <kevinb@redhat.com>
9067
9068 * solist.h (master_so_list): New function.
9069 * solib.c (master_so_list): Likewise.
9070 * solib-svr4.c (enable_break): Iterate over so_list entries
9071 obtained from master list instead of entries obtained directly
9072 via svr4_current_sos().
9073
523f6a27
BE
90742004-03-10 Ben Elliston <bje@gnu.org>
9075
9076 * MAINTAINERS: Update my mail address.
9077
37814c18
KI
90782004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
9079
9080 * remote-m32r-sdi.c: Support hardware watchpoint.
9081
8b9740d8
DJ
90822004-03-09 Daniel Jacobowitz <drow@mvista.com>
9083
9084 * user-regs.c: Update copyright years.
9085 (struct user_regs): Rename to gdb_user_regs.
9086 (append_user_reg, builtin_user_regs, user_regs_init)
9087 (user_reg_add, user_reg_map_name_to_regnum)
9088 (usernum_to_user_reg): Update.
9089
4bb7a0a7
DJ
90902004-03-09 Daniel Jacobowitz <drow@mvista.com>
9091
9092 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
9093 (skip_children): New functions.
9094 (locate_pdi_sibling): Call skip_children.
9095
44e1a9eb
DJ
90962004-03-09 Daniel Jacobowitz <drow@mvista.com>
9097
9098 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
9099 * gdbtypes.c (check_typedef): Update comments.
9100
f3dd6933
DJ
91012004-03-09 Daniel Jacobowitz <drow@mvista.com>
9102
9103 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
9104 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
9105 pointer. Update comment about comp_unit_head.
9106 (struct abbrev_info): Shorten two int flags.
9107 (dwarf_alloc_abbrev): Take a CU argument.
9108 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
9109 each time through the loop. Update cleanup argument.
9110 (psymtab_to_symtab_1): Update cleanup call.
9111 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
9112 abbrev_obstack.
9113 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
9114 Just call obstack_free and clear the pointer.
9115
b40c7d58
DJ
91162004-03-09 Daniel Jacobowitz <drow@mvista.com>
9117
9118 * infrun.c (handle_inferior_event): Remove short-circuit code for
9119 events in a different thread.
9120
333dabeb
DJ
91212004-03-09 Daniel Jacobowitz <drow@mvista.com>
9122
9123 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
9124 print the whole transfer.
9125 (initialize_targets): Update description of "set debug target".
9126
aa17d93e
DJ
91272004-03-09 Daniel Jacobowitz <drow@mvista.com>
9128
9129 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
9130
0b71f08f
NW
91312004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
9132
9133 * MAINTAINERS (write after approval): Add myself.
9134
3930f270
CV
91352004-03-08 Corinna Vinschen <vinschen@redhat.com>
9136
9137 * sh-tdep.c (sh_print_registers_info): Use for loop.
9138 Don't skip multiple registers when a float register is encountered.
9139
a2b4a96c
CV
91402004-03-08 Corinna Vinschen <vinschen@redhat.com>
9141
9142 Fix PR tdep/1291.
9143 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
9144 to official SH documentation.
9145
f15a4bc0
AC
91462004-03-07 Andrew Cagney <cagney@redhat.com>
9147
9148 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
9149 unused function.
9150
9498281f
DJ
91512004-03-07 Daniel Jacobowitz <drow@mvista.com>
9152
9153 * arm-tdep.c (thumb_get_next_pc): Handle BX.
9154 (arm_get_next_pc): Handle BX and BLX.
9155
449e1137
AC
91562004-03-07 Andrew Cagney <cagney@redhat.com>
9157
eded0a31
AC
9158 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
9159 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
9160 HPPA_SP_REGNUM.
9161 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
9162 (hppa_target_read_fp): Delete.
9163 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
9164 register_virtual_size, max_register_raw_size,
9165 max_register_virtual_size, register_byte, register_size,
9166 target_read_fp, fp_regnum, and register_bytes. Set register_type
9167 instead of register_virtual_type.
9168 (hppa32_register_type, hppa64_register_type): Replace
9169 hppa32_register_virtual_type and hppa64_register_virtual_type.
9170 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
9171 (HPPA_FP_REGNUM): Define.
9172
f5f907e2
AC
9173 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
9174
69b4bbe4
AC
9175 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
9176 (pa_do_registers_info): Delete.
9177 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
8718a420 9178 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
69b4bbe4 9179 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
f5f907e2 9180
78161e48
AC
9181 * infcall.c (legacy_push_dummy_code): Delete #ifdef
9182 GDB_TARGET_IS_HPPA code.
9183 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
8718a420 9184 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
78161e48
AC
9185 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
9186 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
8718a420
RM
9187 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
9188 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
9189 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
78161e48 9190 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
8718a420
RM
9191 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
9192 (hppa_frameless_function_invocation, hppa64_store_return_value)
9193 (hppa_store_struct_return, hppa64_extract_return_value)
78161e48 9194 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
8718a420 9195 (hppa32_call_dummy_length, hppa64_call_dummy_length)
78161e48 9196 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
8718a420
RM
9197 (find_proc_framesize, deposit_21, restore_pc_queue)
9198 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
210197d2 9199 (rp_saved, pc_in_linker_stub): Delete.
78161e48 9200
782eae8b
AC
9201 Unconditionally enable 64-bit frame and ABI code.
9202 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
9203 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
9204 push_dummy_frame, fix_call_dummy, push_arguments,
9205 call_dummy_location, extract_return_value, use_struct_convention,
9206 store_return_value, store_struct_return, saved_pc_after_call,
9207 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
9208 frame_chain, frame_chain_valid, frameless_function_invocation,
9209 frame_saved_pc, and pop_frame.
78161e48 9210
449e1137
AC
9211 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
9212 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
9213 (hppa_gdbarch_init): Do not set PC_REGNUM.
9214
12507572
MK
92152004-03-06 Mark Kettenis <kettenis@gnu.org>
9216
9217 * config/alpha/tm-fbsd.h: Remove file.
9218 * config/alpha/fbsd.mt: Tweak comment.
9219 (TM_FILE): Set to tm-alpha.h.
9220
c107cc1b
AC
92212004-03-05 Andrew Cagney <cagney@redhat.com>
9222
9223 * infrun.c (step_over_function): When non-legacy code, and no
9224 step_frame_id, use the unwinder to get the caller's frame ID.
9225
f2e7c15d
MK
92262004-03-05 Mark Kettenis <kettenis@gnu.org>
9227
8b0c3633
MK
9228 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
9229 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
9230 bfd_arch_unknown. Adjust comment.
9231
f2e7c15d
MK
9232 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
9233 * i386obsd-tdep.c: Correct spelling in comment.
9234 * i386nbsd-tdep.c: Correct spelling in comment.
9235 * sparc-tdep.c: Correct spelling in comments.
9236
1198ecbe
DC
92372004-03-05 David Carlton <carlton@kealia.com>
9238
9239 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
9240 bug.
9241
9eb42ed1
MK
92422004-03-05 Mark Kettenis <kettenis@gnu.org>
9243
9244 * sparc-tdep.c: Fix typo in comment.
9245
52b5e991
JB
92462004-03-04 J. Brobecker <brobecker@gnat.com>
9247
9248 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
9249
d8151005
DJ
92502004-03-04 Daniel Jacobowitz <drow@mvista.com>
9251
9252 * dwarf2read.c: Add comment describing memory lifetimes.
9253 (struct dwarf2_pinfo): Update comment.
9254 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
9255 (read_enumeration, new_symbol): Don't use obsavestring.
9256
cbeae229
MK
92572004-03-04 Mark Kettenis <kettenis@gnu.org>
9258
722d18c2
MK
9259 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
9260 instead of amd64_fill_fxsave.
9261 * amd64bsd-nat.c (store_inferior_registers): Likewise.
9262 * amd64fbsd-nat.c (fill_fpregset): Likewise.
9263
cbeae229
MK
9264 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
9265 Reorganize code a bit.
9266
b4206d25
OF
92672004-03-04 Orjan Friberg <orjanf@axis.com>
9268
9269 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
8718a420
RM
9270 when the frame pointer is pushed. Don't set the frame pointer's
9271 address on the stack unless it's actually located there.
b4206d25
OF
9272 Set the SRP's address on the stack correctly when the PC is still in
9273 the prologue.
9274 (cris_return_value): New function.
9275 (cris_gdbarch_init): Clear deprecated store_return_value,
9276 extract_return_value.
9277
49b0b195
JB
92782004-03-02 Jim Blandy <jimb@redhat.com>
9279
9280 * stabsread.c (reg_value_complaint): The maximum register number
9281 is one less than the number of registers.
9282
e9ff708b
AC
92832004-03-02 Andrew Cagney <cagney@redhat.com>
9284
9285 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
9286 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
9287 trailing comma and redundant assignment of I386_ST0_REGNUM.
9288 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
9289 32-bit segment registers.
9290
d4715e41
AC
92912004-03-01 Andrew Cagney <cagney@redhat.com>
9292
9293 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
9294 use frame_relative_level and get_next_frame.
9295
3ce2bf18
AC
92962004-02-29 Andrew Cagney <cagney@redhat.com>
9297
9298 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
9299 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
9300 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
9301 Delete macro.
9302
2da6aac3
DJ
93032004-02-29 Daniel Jacobowitz <drow@mvista.com>
9304
9305 * inflow.c (terminal_inferior): Don't give up the terminal if we
9306 previously couldn't get the inferior's terminal state.
9307
6ba34a8d
DJ
93082004-02-29 Daniel Jacobowitz <drow@mvista.com>
9309
9310 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
9311 PC_REGNUM.
9312
faae5abe
AC
93132004-02-28 Andrew Cagney <cagney@redhat.com>
9314
9315 * NEWS: Refer to GDB 6.1.
9316 * README: Refer to GDB 6.1.
9317 * PROBLEMS: Refer to GDB 6.1.
9318
2227a3c5
DJ
93192004-02-28 Daniel Jacobowitz <drow@mvista.com>
9320
9321 * thread-db.c (disable_thread_signals): Remove unused function.
9322
80571bff
MK
93232004-02-28 Mark Kettenis <kettenis@gnu.org>
9324
041bd74b
MK
9325 * amd64-nat.c: Include "gdb_string.h".
9326 (amd64_collect_native_gregset): Zero-extend the 32-bit
9327 general-purpose registers and %eip.
9328
3c017e40
MK
9329 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
9330 * amd64-tdep.c (amd64_collect_fxsave): New function.
9331 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
9332
80571bff
MK
9333 * i387-tdep.h: Update copyright year.
9334 (i387_collect_fxsave): New prototype.
9335 * i387-tdep.c: Update copyright year.
9336 (i387_collect_fxsave): New function containing most of the code
9337 from i387_fill_fxsave.
9338 (i387_fill_fxsave): Call i387_collect_fxsave.
9339
50d71875
AC
93402004-02-28 Andrew Cagney <cagney@redhat.com>
9341
9342 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
9343 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
9344
4a28816e
MK
93452004-02-28 Mark Kettenis <kettenis@gnu.org>
9346
9347 * amd64-tdep.c (amd64_frame_cache): Fix comment.
9348
dbda9972
AC
93492004-02-28 Andrew Cagney <cagney@redhat.com>
9350
9351 * utils.c: Use "", instead of <>, to include readline.
9352 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
9353 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
9354 * source.c, solib.c, exec.c, event-top.c: Ditto.
9355 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
9356 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
9357 * Makefile.in: Update all dependencies.
9358 (readline_tilde_h, readline_history_h): Define.
9359 (readline_headers): Delete.
9360
83277a99
MK
93612004-02-28 Mark Kettenis <kettenis@gnu.org>
9362
91ae4303
MK
9363 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
9364 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
9365 "config/i386/tm-lx64.h".
9366
83277a99
MK
9367 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
9368 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
9369 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
9370
6e1d7d6c
AC
93712004-02-28 Andrew Cagney <cagney@redhat.com>
9372
ecc9ac84
AC
9373 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
9374
6e1d7d6c
AC
9375 * breakpoint.c (_initialize_breakpoint): Use
9376 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
9377 Add help to show command.
9378
9671aeef
MK
93792004-02-28 Mark Kettenis <kettenis@gnu.org>
9380
7fa2737c
MK
9381 * i386-nat.c: Reformat to be closer to coding standards.
9382 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
9383 `retval'. Make variables `align' and `size' local to while-loop.
9384 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
9385 (_initialize_i386_nat): New prototype.
9386
9671aeef
MK
9387 * tui/tui.c: Include <readline/readline.h> instead of
9388 "readline/readline.h". Include it after <term.h> and
9389 "gdb_curses.h".
9390
fca7aa43
AC
93912004-02-27 Andrew Cagney <cagney@redhat.com>
9392
412275d5
AC
9393 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
9394 the new frame unwind code.
9395 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
9396 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
9397 PCOQ_HEAD_REGNUM.
9398
fca7aa43
AC
9399 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
9400 "return_value" and "push_dummy_call".
9401 (hppa32_use_struct_convention): Delete unused function.
9402 (hppa32_store_return_value): Delete unused function.
9403 (hppa32_extract_return_value): Delete unused function.
9404 (hppa32_stack_align): Delete function.
9405
e6a8a7d2
EZ
94062004-02-27 Eli Zaretskii <eliz@elta.co.il>
9407
9408 * coffread.c (enter_linenos): Don't let rawptr reference memory
9409 outside linetab[]'s limits.
9410
1797a8f6
AC
94112004-02-27 Andrew Cagney <cagney@redhat.com>
9412
9413 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
9414 inferior stack space - the stack needs to grow upwards.
9415 (hppa32_frame_align): New function.
9416 (hppa64_frame_align): Replace hppa_frame_align.
9417 (hppa_gdbarch_init): Update.
9418
2e4b5889
OF
94192004-02-26 Orjan Friberg <orjanf@axis.com>
9420
9421 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
9422 (dwarf2-frame.h): Include.
9423 (enum cris_regnums): New enum CRIS_FP_REGNUM.
9424 Remove static variables related to ABI setting.
9425 (struct gdbarch_tdep): Remove cris_abi member.
9426 (struct frame_extra_info): Remove.
9427 (cris_unwind_cache, stack_item): New structs.
9428 (cris_frame_unwind, cris_frame_base): New variables.
9429 (push_stack_item, pop_stack_item)
9430 (cris_frame_unwind_cache, cris_frame_this_id)
9431 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
9432 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
9433 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
9434 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
9435 (cris_reg_struct_has_addr): New functions.
9436 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
8718a420 9437 (cris_frame_saved_pc, cris_saved_pc_after_call,
2e4b5889
OF
9438 (cris_store_struct_return, cris_frameless_function_invocation)
9439 (cris_pop_frame, cris_skip_prologue_main)
9440 (cris_abi_original_store_return_value)
9441 (cris_abi_v2_store_return_value)
9442 (cris_abi_original_extract_return_value)
9443 (cris_abi_v2_extract_return_value)
9444 (cris_abi_original_reg_struct_has_addr)
9445 (cris_abi_v2_reg_struct_has_addr)
9446 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
9447 (cris_push_return_address, cris_abi_update): Remove.
9448 (_initialize_cris_tdep): Remove ABI command.
9449 (cris_dump_tdep): Ditto.
8718a420 9450 (cris_gdbarch_init): Remove ABI command.
2e4b5889
OF
9451 Set store_return_value, extract_return_value, push_dummy_code,
9452 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
9453 frame_unwind_append_sniffer, frame_base_set_default.
9454 Clear deprecated init_frame_pc, push_arguments, store_return_value,
9455 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
9456 sizeof_call_dummy_words, get_saved_register, push_return_address,
8718a420 9457 pop_frame, store_struct_return, frame_init_saved_regs,
2e4b5889
OF
9458 init_extra_frame_info, frameless_function_invocation, frame_chain,
9459 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
9460 dummy_write_sp.
8718a420 9461
6b9acc27
JJ
94622004-02-26 Jeff Johnston <jjohnstn@redhat.com>
9463
9464 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
9465 * valprint.c (print_hex_chars): Change from static to external.
9466 (print_char_chars): New function.
9467 * printcmd.c (print_scalar_formatted): For integer and enum types
9468 that are longer than LONGEST, perform processing via appropriate
9469 print_*_chars routines.
9470
a431654a
AC
94712004-02-26 Andrew Cagney <cagney@redhat.com>
9472
9473 * Makefile.in: Update dependencies.
9474 Changes from Ulrich Weigand,
9475 * s390-tdep.c: Include "dwarf2-frame.h".
9476 (s390_dwarf2_frame_init_reg): New function.
9477 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
9478 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
9479
fa8d40ab
JJ
94802004-02-26 Jeff Johnston <jjohnstn@redhat.com>
9481
9482 * breakpoint.c (pending_break_support): New setting variable.
9483 (break_command_1): Account for pending_break_support setting
9484 when creating pending breakpoints.
9485 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
9486 (_initialize_breakpoint): Add "set breakpoint pending" and
9487 "show breakpoint pending" commands.
9488
0dcd613f
AC
94892004-02-26 Andrew Cagney <cagney@redhat.com>
9490
9491 Fix PR i18n/1570.
9492 * charset.c (backslashable, backslashed, represented): Remove 'e'
9493 from list of escaped characters, not part of ISO-C.
9494
479272a3
JB
94952004-02-25 J. Brobecker <brobecker@gnat.com>
9496
9497 From Peter Schauer <schauer@pdf.de>:
9498 * tui/tui.c: Move system header includes after local includes.
9499 Fixes a build failure on solaris systems.
9500
7613d933
JB
95012004-02-25 J. Brobecker <brobecker@gnat.com>
9502
9503 * configure.in: Refine the previous change.
9504 * configure: Regenerate.
9505
9c1488cb
MK
95062004-02-25 Mark Kettenis <kettenis@gnu.org>
9507
9508 * amd64-tdep.h: Renamed from x86-64-tdep.h.
9509 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
9510 "amd64-tdep.h" instead of "x86-64-tdep.h".
9511 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9512 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
9513 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
9514 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9515 and "x86-64-tdep.c".
9516 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
9517 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
9518 and "x86-64-tdep.c".
9519 * amd64bsd-nat.c: Update copyright year.
9520 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
9521 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
9522 "x86-64-tdep.h".
9523 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
9524 "x86-64-tdep.h".
9525 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
9526 "x86-64-tdep.h".
9527 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
9528 "x86-64-tdep.h".
9529 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
9530 "x86-64-tdep.h".
9531 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
9532 "x86-64-tdep.h".
8718a420 9533 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
9c1488cb
MK
9534 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
9535 * Makefile.in (amd64_linux_tdep_h): Renamed from
9536 x86_64_linux_tdep_h.
9537 (amd64_tdep_h): Renamed from x86_64_tdep_h.
9538 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
9539 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
9540 (amd64obsd-tdep.o): Update dependencies.
9541 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
9542 dependencies.
9543 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
9544 dependencies.
9545 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
9546 amd64-linux-nat.c amd64-linux-tdep.c.
9547 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
9548 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
9549 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
9550 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
9551 amd64-tdep.o and amd64-linux-tdep.o.
9552 (TM_FILE): Set to tm-linux64.h.
9553 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
9554 (NAT_FILE): Set to nm-linux64.h.
9555 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
9556 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9557 amd64-tdep.o.
9558 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9559 amd64-tdep.o.
9560 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
9561 amd64-tdep.o.
9562
4b8dad4a
RM
95632004-02-25 Roland McGrath <roland@redhat.com>
9564
9565 * remote.c (remote_protocol_qPart_auxv): New variable.
9566 (init_all_packet_configs): Initialize it.
9567 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
9568 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
9569 (show_remote_cmd): Call it.
9570 (_initialize_remote): Initialize commands.
9571 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
9572 service TARGET_OBJECT_AUXV requests.
9573
66745969
JB
95742004-02-25 J. Brobecker <brobecker@gnat.com>
9575
9576 * configure.in: Make sure that the wborder function is available.
9577 Otherwise, search for it in the cur_colr library.
9578 * configure: Regenerate.
9579
79508e1e
AC
95802004-02-25 Andrew Cagney <cagney@redhat.com>
9581
9582 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
9583
571ee600
MK
95842004-02-25 Mark Kettenis <kettenis@gnu.org>
9585
9586 * config/i386/tm-x86-64linux.h: Tweak comments.
9587
2b1b322f 95882004-02-25 Richard Sandiford <rsandifo@redhat.com>
ad74788f
RS
9589
9590 * MAINTAINERS: Add self to write-after-approval list.
9591
4d2acc65
AC
95922004-02-25 Andrew Cagney <cagney@redhat.com>
9593
4b8dad4a 9594 PR cli/1566. Problem found, and fix suggested by David Allan.
4d2acc65
AC
9595 * cli/cli-script.c (execute_control_command): Unconditionally
9596 install a cleanup. Default "ret" to "invalid_control". Use
9597 "break" instead of "return" to escape from the switch.
9598
4cfcaf21
JB
95992004-02-24 J. Brobecker <brobecker@gnat.com>
9600
9601 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
9602 with the lines macro defined in term.h on AiX.
9603 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
9604 a collision with the label_width macro defined in term.h on AiX.
9605
54a5c8d8
KB
96062004-02-23 David Mosberger <davidm@hpl.hp.com>
9607
9608 Committed by Kevin Buettner <kevinb@redhat.com>.
9609
9610 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
9611 * ia64-tdep.c (ia64_write_pc): Make it a global function.
9612 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
9613 instead of ia64_write_pc().
9614 * ia64-linux-tdep.c (regcache.h): Include.
9615 (ia64_linux_write_pc): New function.
4b8dad4a 9616
8a1dac83
RM
96172004-02-23 Roland McGrath <roland@redhat.com>
9618
9619 * auxv.c (info_auxv_command): Fix typos in error messages.
9620
90f90721
MK
96212004-02-23 Mark Kettenis <kettenis@gnu.org>
9622
8a1dac83 9623 * x86-64-tdep.h: Tweak comment.
90f90721
MK
9624 (enum amd64_regnum): New.
9625 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
9626 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
9627 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
9628 (X86_64_XMM1_REGNUM): Removed.
9629 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
9630 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
9631 prototypes for renamed functions.
9632 * x86-64-tdep.c: Fix typo.
9633 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
9634 register numbers.
9635 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
9636 Use constants from `enum amd64_regnum' for register numbers.
9637 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
9638 (amd64_analyze_prologue, amd64_frame_cache,
9639 amd64_sigtramp_frame_cache): Use constants from `enum
9640 amd64_regnum' for register numbers.
9641 (amd64_supply_fpregset): Adjust for renamed functions.
9642 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
9643 `enum amd64_regnum' for register numbers.
9644 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
9645 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
9646 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
9647 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
9648 (amd64_linux_fill_gregset): Adjust for renamed macros.
9649 (fetch_core_registers): Adjust for renamed functions.
9650 (amd64_linux_init_abi): Adjust for renamed functions.
9651 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
9652 renamed functions.
9653 * amd64-nat.c: Adjust for renamed macros.
9654 * amd64bsd-nat.c (fetch_inferior_registers)
9655 (store_inferior_registers): Use constants from `enum amd64_regnum'
9656 for register numbers. Adjust for renamed variables.
9657 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
9658 renamed variables.
9659 (_initialize_amd64fbsd_nat): Use constants from `enum
9660 amd64_regnum' for register numbers.
9661 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
9662 `enum amd64_regnum' for register numbers.
9663 (amd64fbsd_init_abi): Adjust for renamed functions.
9664 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
9665 `enum amd64_regnum' for register numbers.
9666 (amd64nbsd_init_abi): Adjust for renamed functions.
9667 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
9668 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
9669 `enum amd64_regnum' for register numbers.
9670 (amd64obsd_init_abi): Adjust for renamed functions.
9671 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
9672
d5479188
JJ
96732004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9674
9675 * breakpoint.c (print_one_breakpoint): Do not output spaces
9676 after printing <PENDING> for a pending breakpoint.
9677
81cb7cc9
JJ
96782004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9679
9680 * printcmd.c (print_scalar_formatted): Initialize val_long
9681 to remove compiler warning message.
9682
cbdeadca
JJ
96832004-02-23 Jeff Johnston <jjohnstn@redhat.com>
9684
9685 * defs.h (nquery, yquery): New prototypes.
9686 * breakpoint.c (break_command_1): Use new nquery interface.
9687 * utils.c (defaulted_query, nquery, yquery): New functions.
9688
da6bab63
AC
96892004-02-23 Andrew Cagney <cagney@redhat.com>
9690
2f690297
AC
9691 * hppa-tdep.c (hppa_frame_align): New function.
9692 (hppa32_push_dummy_call): New function.
9693 (hppa64_push_dummy_call): New function.
9694 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
9695 disabled.
8a1dac83 9696
da6bab63
AC
9697 * infcall.c (legacy_push_dummy_code): Don't call deprecated
9698 FIX_CALL_DUMMY when push_dummy_call is available.
9699 (call_function_by_hand, push_dummy_code): Ditto.
9700
abf9b42d
AC
97012004-02-22 Andrew Cagney <cagney@redhat.com>
9702
9703 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
9704 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
9705 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
9706 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
9707 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
9708 call_dummy_location to ON_STACK.
9709
10fc94a4
MK
97102004-02-22 Mark Kettenis <kettenis@gnu.org>
9711
51433e4b
MK
9712 * x86-64-linux-tdep.c: Tweak comment.
9713 (amd64_linux_supply_gregset): Renamed from
9714 x86_64_linux_supply_gresget.
9715 (amd64_linux_fill_gregset): Renamed from
9716 x86_64_linux_fill_gregset.
9717 (fetch_core_registers): Adjust for renamed functions.
9718 (amd64_core_fns): Renamed from x86_64_core_fns.
9719 (amd64_linux_sigtramp_start): Renamed from
9720 x86_64_linux_sigtramp_start.
9721 (amd64_linux_pc_in_sigtramp): Renamed from
9722 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
9723 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
9724 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
9725 (amd64_linux_sigcontext_addr): Renamed from
9726 x86_64_linux_sigcontext_addr.
9727 (amd64_linux_sc_reg_offset): Renamed from
9728 x86_64_linux_sc_reg_offset.
9729 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
9730 Adjust for renamed functions and variables.
9731 (_initialize_amd64_linux_tdep): Renamed from
9732 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
9733 variables.
9734 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
9735 Adjust for renamed functions.
9736
430eaf2e
MK
9737 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
9738 from x86_64_linux_gregset64_reg_offset.
9739 (amd64_linux_gregset32_reg_offset): Rename from
9740 x86_64_linux_gregset64_reg_offset.
9741 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
9742 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
9743 (amd64_linux_dr_set_control): Renamed from
9744 x86_64_linux_dr_set_control. Adjust for renamed functions.
9745 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
9746 Adjust for renamed functions.
9747 (amd64_linux_dr_reset_addr): Renamed from
9748 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
9749 (amd64_linux_dr_get_status): Renamed from
9750 x86_64_linux_dr_get_status. Adjust for renamed functions.
9751 (_initialize_amd64_linux_nat): Renamed from
9752 _initialize_x86_64_linux_nat. Adjust for renamed variables and
9753 functions.
9754 * config/i386/nm-x86-64linux.h: Update copyright year.
9755 Adjust for renamed functions.
9756
10fc94a4
MK
9757 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
9758 amd64fbsd_sigtramp_start.
9759 (amd64fbsd_sigtramp_end_addr): Renamed from
9760 amd64fbsd_sigtramp_end.
9761 (amd64fbsd_init_abi): Adjust for renamed variables.
9762 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
9763 variables.
9764 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
9765 amd64fbsd_sigtramp_start.
9766 (amd64fbsd_sigtramp_end_addr): Renamed from
9767 amd64fbsd_sigtramp_end.
9768
343af405
AC
97692004-02-22 Andrew Cagney <cagney@redhat.com>
9770
537987fc
AC
9771 * hppa-tdep.c (hppa32_return_value): New function.
9772 (hppa64_return_value): New function.
9773 (hppa_gdbarch_init): Set return_value; keep disabled.
9774
fad850b2
AC
9775 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
9776 struct-return and inferior function call methods.
9777
26d08f08
AC
9778 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
9779 "frame-base.h".
9780 (struct hppa_frame_cache): Define.
9781 (hppa_frame_cache, hppa_frame_this_id): New functions.
9782 (hppa_frame_prev_register): New function.
9783 (hppa_frame_unwind, hppa_frame_base): New variables.
9784 (hppa_frame_unwind_sniffer): New function.
9785 (hppa_frame_base_address, hppa_unwind_pc): New function.
9786 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
9787 sniffer, and frame base sniffer; keep disabled.
9788 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
9789 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
9790
e7d7bd65
AC
9791 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
9792 to predicates for "seriously old code".
9793
e963316f
AC
9794 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
9795 runtime if(0).
9796
56132691
AC
9797 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
9798 unsigned.
9799 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
e963316f 9800
343af405
AC
9801 * config/pa/tm-hppa.h: Update copyright.
9802 (DEPRECATED_INIT_FRAME_PC): Delete macro.
9803 (deprecated_init_frame_pc_default): Delete declaration.
9804 (hppa_frame_init_saved_regs): Delete declaration.
9805 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9806 * hppa-tdep.c: Include "arch-utils.h".
9807 (hppa_gdbarch_init): Set deprecated init_frame_pc
9808 and deprecated frame_init_saved_regs.
9809 (hppa_frame_init_saved_regs): Make static.
9810
f5859b4d
MK
98112004-02-22 Mark Kettenis <kettenis@gnu.org>
9812
86f6f8e7 9813 Remove old 386BSD support.
cf7c5c23 9814 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
86f6f8e7
MK
9815 * configure.host: Remove i[34567]86-*-bsd*.
9816 * configure.tgt: Remove i[34567]86-*-bsd*.
9817 * i386b-nat.c: Removed.
9818 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
cf7c5c23
MK
9819 (i386b-nat.o): Remove dependencies.
9820
86f6f8e7
MK
9821 * config/i386/i386bsd.mh: Removed.
9822 * config/i386/i386bsd.mt: Removed.
9823 * config/i386/nm-i386bsd.h: Removed.
9824 * config/i386/tm-i386bsd.h: Removed.
9825 * config/i386/xm-i386bsd.h: Removed.
9826
971218cd
MK
9827 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
9828
7e654c37
MK
9829 * amd64fbsd-tdep.c: Include "solib-svr4.h".
9830 (amd64fbsd_init_abi): Set link map offsets.
9831 * amd64nbsd-tdep.c: Include "slib-svr4.h".
9832 (amd64nbsd_init_abi): Set link map offsets.
9833 * amd64obsd-tdep.c: Include "solib-svr4.h".
9834 (amd64obsd_init_abi): Set link map offsets.
9835 * i386fbsd-tdep.c: Include "solib-svr4.h".
9836 (i386fbsd_init_abi): Set link map offsets.
9837 * i386nbsd-tdep.c: Include "solib-svr4.h".
9838 (i386nbsdelf_init_abi): Set link map offsets.
9839 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
9840 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
9841 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
9842 solib-legacy.o and core-aout.o. Reformat.
9843 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
9844 solib-svr4.o, solib-legacy.o. Reformat.
9845 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
9846 * config/i386/nbsdelf.mh: Reformat.
9847 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
9848 solib-svr4.o, solib-legacy.o and corelow.o.
9849 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
9850 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
9851 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
9852 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9853 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
9854 (TM_FILE): Set to tm-fbsd.h.
9855 * config/i386/nbsd.mt (TDEPFILES): Reformat.
9856 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
9857 solib-svr4.o.
9858 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
9859 solib-svr4.o.
9860 (TM_FILE): Set to nm-nbsd.h.
9861 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
9862 Simplify shared library support. Don't include "elf/common.h".
9863 (SVR4_SHARED_LIBS): Don't define.
9864 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
9865 "solib.h".
9866 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
9867 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
9868 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
9869 Don't include "i386/tm-i386.h". Include "solib.h".
9870 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
9871 Don't include "i386/tm-i386.h".
9872 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
9873 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
9874 Include "i386/xm-i386.h".
9875 (HOST_LONG_DOUBLE_FORMAT): Remove.
9876
5d93ae8c
MK
9877 Fix OpenBSD/i386 sigtramp recognition.
9878 * i386-tdep.h: Update copyright year.
9879 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
9880 (i386bsd_sigtramp_end): New prototypes.
9881 (i386fbsd_sigtramp_start_addr): Renamed from
9882 i386fbsd_sigtramp_start.
9883 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9884 (i386obsd_sigtramp_start_addr): Renamed from
9885 i386obsd_sigtramp_start.
9886 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9887 * i386bsd-tdep.c: Update copyright year.
9888 (i386bsd_pc_in_sigtramp): Make public.
9889 * i386fbsd-nat.c: Update copyright year.
9890 (_initialize_i386fbsd_nat): Adjust for renamed variables.
9891 * i386fbsd-tdep.c: Update copyright year.
9892 (i386fbsd_sigtramp_start_addr): Renamed from
9893 i386fbsd_sigtramp_start.
9894 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
9895 (i386fbsdaout_init_abi): Adjust for renamed variables.
9896 * i386obsd-nat.c: Update copyright year.
9897 (_initialize_i386obsd_nat): Adjust for renamed variables.
9898 * i386obsd-tdep.c: Include "target.h".
9899 (i386obsd_page_size): New variable.
9900 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
9901 (i386obsd_sigtramp_end): New functions.
9902 (i386obsd_sigtramp_start_addr): Renamed from
9903 i386obsd_sigtramp_start.
9904 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
9905 (i386obsd_init_abi): Adjust for renamed variables. Set
9906 pc_in_sigtramp, sigtramp_start and sigtramp_end.
9907 * Makefile.in (i386obsd-tdep.o): Update dependencies.
9908
84d04465
MK
9909 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
9910 trampoline change in OpenBSD kernel.
9911
b053aceb
MK
9912 * amd64-nat.c: Update copyright year.
9913 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
9914 architecture from REGCACHE.
9915
f5859b4d
MK
9916 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
9917 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
9918
e4bbbda8
MK
99192004-02-21 Mark Kettenis <kettenis@gnu.org>
9920
ba361932
MK
9921 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
9922 i[34567]86-*-openbsd3.[0-3].
9923 * config/i386/obsdaout.mh: New file.
9924
d3e48264
MK
9925 * config/i386/obsd.mh (MH_FLAGS): Remove.
9926
60a6eeb6
MK
9927 Fix PR build/1549.
9928 * i386obsd-tdep.c: Update copyright years. Include
9929 "solib-svr4.h".
9930 (i386obsd_init_abi): Don't set regset_from_core_section here.
9931 (i386obsd_aout_init_abi): New function. Set
9932 regset_from_core_section here.
9933 (i386obsd_elf_init_abi): New function.
9934 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
9935 * Makefile.in (i386obsd-tdep.o): Update dependecies.
9936 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
9937 (TM_FILE): Set to tm-nbsd.h.
9938
9939 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
9940 solib-sunos.o.
9941
e4bbbda8
MK
9942 * solib-svr4.h: Update copyright year.
9943 (svr4_ilp32_fetch_link_map_offsets)
9944 (svr4_lp64_fetch_link_map_offsets): New prototype.
9945 * solib-svr4.c: Update copyright year.
9946 (svr4_ilp32_fetch_link_map_offsets)
9947 (svr4_lp64_fetch_link_map_offsets): New function.
9948
f6fe98ef
DJ
99492004-02-20 Daniel Jacobowitz <drow@mvista.com>
9950
9951 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
9952 to the partial symbol table.
9953
589ca796
JB
99542004-02-20 J. brobecker <brobecker@gnat.com>
9955
9956 * PROBLEMS: Add description of problem documented under gdb/1560.
9957
2031c21a
MK
99582004-02-20 Mark Kettenis <kettenis@gnu.org>
9959
30b344b1
MK
9960 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
9961 comments.
9962 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
9963 functions.
9964 (amd64obsd_init_abi): Reorder initializations. Use
9965 amd64obsd_r_reg_offset to initialize the general-purpose register
9966 set details. Set regset_from_core_section.
9967 (_initialize_amd64obsd_tdep): Rename from
9968 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
9969 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
9970 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
9971
2031c21a
MK
9972 * NEWS (New native configurations): Mention OpenBSD/alpha.
9973 * configure.tgt: Add alpha*-*-openbsd*.
9974 * configure.host: Add alpha*-*-openbsd*.
9975 * alphanbsd-tdep.c: Update copyright year.
9976 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
9977
42471775
AC
99782004-02-20 Andrew Cagney <cagney@redhat.com>
9979
9980 Fix PR tdep/1372.
9981 * configure.tgt: Delete target "none-*-*".
9982 * configure.host: Delete host "none-*-*".
9983 * config/none/none.mh: Delete file.
9984 * config/none/none.mt: Delete file.
9985 * config/none/xm-none.h: Delete file.
9986 * config/none/tm-none.h: Delete file.
9987 * config/none/nm-none.h: Delete file.
9988
960ccd7d
FF
99892004-02-19 Fred Fish <fnf@redhat.com>
9990
9991 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
9992 cache->uses_fp prior to setting it.
9993
5f883edd
FF
99942004-02-19 Fred Fish <fnf@redhat.com>
9995
9996 Fix for PR breakpoint/1558.
9997 * sh-tdep.c (IS_JSR): New macro.
9998 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
9999
f98c22d5
JB
100002004-02-19 Jim Blandy <jimb@redhat.com>
10001
10002 * findvar.c (value_from_register): Doc fix.
10003
95051d27
JJ
100042004-02-19 Jeff Johnston <jjohnstn@redhat.com>
10005
10006 * printcmd.c (print_scalar_formatted): Do not check for sizeof
10007 type being greater than sizeof of host's LONGEST. Always use
10008 unpack_long() unless format 'f' chosen.
10009
ccefbec3
EZ
100102004-02-19 Joel Brobecker <brobecker@gnat.com>
10011
10012 Committed by Elena Zannoni <ezannoni@redhat.com>
2ede629f 10013
ccefbec3
EZ
10014 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
10015 contains a symbol wich is the best, non-exact match for the given
10016 pc. Update comments.
10017
100182004-02-19 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 10019
2ede629f
EZ
10020 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
10021 macro, which was part of the now removed Mach 3 port.
10022 * utils.c (request_quit): Ditto.
10023
567ee972
MK
100242004-02-18 Mark Kettenis <kettenis@gnu.org>
10025
10026 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
10027 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
10028
50cca7bb
MK
100292004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10030
10031 Committed by Mark Kettenis <kettenis@gnu.org>.
10032
10033 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
10034 Define.
10035
226361c4
AC
100362004-02-18 Andrew Cagney <cagney@redhat.com>
10037
10038 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
10039 CONFIG_INSTALL and CONFIG_UNINSTALL.
10040 * configure: Re-generate.
10041 * interps.h (INTERP_TUI): Define.
10042 * Makefile.in: Update dependencies.
10043 (TUI): New macro.
10044 (tui-main.o): Specify dependencies.
10045 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
10046 * tui/tui-main.c: New file.
10047
49cfa46f
MK
100482004-02-18 Mark Kettenis <kettenis@gnu.org>
10049
e2879ccb
MK
10050 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
10051 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
10052 dependencies.
10053 * configure.host: Add x86_64-*-openbsd*.
10054 * configure.tgt: Add x86_64-*-openbsd*.
10055 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
10056
c43f4bec
MK
10057 * tui/tui.c: Don't include <malloc.h>.
10058
09ae75b6
MK
10059 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
10060 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
10061 amd64nbsd-tdep.c.
10062
49cfa46f 10063 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8a1dac83 10064 static. Remove extraneous whitespace.
49cfa46f
MK
10065 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
10066 static.
10067
05957fdb
JB
100682004-02-17 Jim Blandy <jimb@redhat.com>
10069
10070 * findvar.c (value_from_register): Doc fix.
10071
d0f54f9d
JB
100722004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10073
10074 Committed by Jim Blandy <jimb@redhat.com>.
e1457d83 10075
8a1dac83 10076 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
c253954e
JB
10077 CORE_ADDR as type for selectors. Correct types for GNU run time
10078 message lookup function to use double indirection.
10079 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
10080 * objc-lang.h (lookup_child_selector): Adapt prototype.
10081
9cbd5950
JB
10082 * s390-nat.c (SUBOFF): New macro.
10083 (supply_gregset, fill_gregset): Use it to handle debugging
10084 of 32-bit exectuables running under a 64-bit kernel.
10085 * s390-tdep.c: Include "solib-svr4.h".
10086 (s390_svr4_fetch_link_map_offset): New function.
10087 (s390x_svr_fetch_link_map_offset): Likewise.
10088 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
10089 * Makefile.in (s390-tdep.o): Update dependencies.
10090
a8c99f38
JB
10091 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
10092 "frame-unwind.h".
10093 (s390_readinstruction): Reformat. Use read_memory_nobpt.
10094 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
10095 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
10096 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
10097 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
10098 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8a1dac83 10099 S390_SIGNAL_FRAMESIZE,
a8c99f38
JB
10100 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
10101 (struct frame_extra_info): Remove.
10102 (s390_memset_extra_info): Remove.
f73b1eff
JB
10103 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
10104 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
10105 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
a8c99f38
JB
10106 (is_rse): Renamed to ...
10107 (is_rsy): ... this. Support long displacements.
10108 (is_rxe): Renamed to ...
10109 (is_rxy): ... this. Support long displacements.
10110 (compute_x_addr): Support long displacements.
10111 (struct s390_prologue_data): New data type.
10112 (s390_on_stack): Change API to use struct s390_prologue_data.
10113 (s390_store): Reimplement.
10114 (s390_load): New function.
10115 (s390_get_signal_frame_info): Remove.
10116 (s390_get_frame_info): Remove, replace by ...
10117 (s390_analyze_prolog): ... this new function.
10118 (s390_check_function_end): Remove.
10119 (s390_function_start): Remove.
10120 (s390_frameless_function_invokation): Remove.
10121 (s390_is_sigreturn): Remove.
10122 (s390_init_frame_pc_first): Remove.
10123 (s390_init_frame_extra_info): Remove.
10124 (s390_frame_init_saved_regs): Remove.
10125 (s390_frame_saved_pc_nofix): Remove.
10126 (s390_frame_saved_pc): Remove.
10127 (s390_frame_chain): Remove.
10128 (s390_fp_regnum, s390_read_fp): Remove.
10129 (s390_pop_frame_regular, s390_pop_frame): Remove.
10130 (s390_saved_pc_after_call): Remove.
10131 (s390_skip_prologue): Reimplement.
10132 (s390_in_function_epilogue_p): Support long displacements.
10133 (struct s390_unwind_cache): New data structure.
10134 (s390_frame_unwind_cache): New function.
10135 (s390_prologue_frame_unwind_cache): Likewise.
10136 (s390_backchain_frame_unwind_cache): Likewise.
10137 (s390_frame_this_id, s390_frame_prev_register): Likewise.
10138 (s390_frame_unwind): Define.
10139 (s390_frame_sniffer): New function.
10140 (struct s390_pltstub_unwind_cache): New data structure.
10141 (s390_pltstub_frame_unwind_cache): New function.
10142 (s390_pltstub_frame_this_id): Likewise.
10143 (s390_pltstub_frame_prev_register): Likewise.
10144 (s390_pltstub_frame_unwind): Define.
10145 (s390_pltstub_frame_sniffer): New function.
10146 (struct s390_sigtramp_unwind_cache): New data structure.
10147 (s390_sigtramp_frame_unwind_cache): New function.
10148 (s390_sigtramp_frame_this_id): Likewise.
10149 (s390_sigtramp_frame_prev_register): Likewise.
10150 (s390_sigtramp_frame_unwind): Define.
10151 (s390_sigtramp_frame_sniffer): New function.
10152 (s390_frame_base_address, s390_local_base_address): New functions.
10153 (s390_frame_base): Define.
10154 (s390_unwind_pc, s390_unwind_sp): New function.
10155 (s390_push_dummy_call): Use new frame base location.
10156 (s390_unwind_dummy_id): Likewise.
10157 (s390_gdbarch_init): Remove calls to:
10158 set_gdbarch_frameless_function_invocation,
10159 set_gdbarch_deprecated_init_frame_pc,
10160 set_gdbarch_deprecated_frame_chain,
10161 set_gdbarch_deprecated_frame_init_saved_regs,
10162 set_gdbarch_deprecated_pop_frame,
10163 set_gdbarch_deprecated_init_extra_frame_info,
10164 set_gdbarch_deprecated_init_frame_pc_first,
10165 set_gdbarch_deprecated_target_read_fp,
10166 set_gdbarch_deprecated_frame_saved_pc,
10167 set_gdbarch_deprecated_saved_pc_after_call,
10168 set_gdbarch_deprecated_fp_regnum.
10169 Add calls to:
10170 set_gdbarch_in_solib_call_trampoline,
10171 frame_unwind_append_sniffer,
10172 frame_base_set_default,
10173 set_gdbarch_unwind_pc,
10174 set_gdbarch_unwind_sp.
10175 * Makefile.in (s390-tdep.o): Update dependencies.
10176
b0cf273e
JB
10177 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
10178 (S390_STACK_FRAME_OVERHEAD): Remove.
10179 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
10180 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
10181 (s390_promote_integer_argument): Remove.
10182 (s390_cannot_extract_struct_value_address): Remove.
10183 (s390_use_struct_convention, s390_store_struct_return): Remove.
10184 (s390_extract_return_value, s390_store_return_value): Remove.
10185 (s390_return_value_convention, s390_return_value): New functions.
10186 (is_float_singleton): Handle typedefs.
8a1dac83 10187 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
b0cf273e
JB
10188 Remove, replace by ...
10189 (s390_function_arg_pass_by_reference, s390_function_arg_float,
10190 s390_function_arg_integer): ... these new functions.
10191 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
10192 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
10193 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
10194 Fill in tdep->abi.
10195 Remove calls to:
10196 set_gdbarch_deprecated_store_struct_return,
10197 set_gdbarch_deprecated_extract_return_value,
10198 set_gdbarch_deprecated_store_return_value,
10199 set_gdbarch_use_struct_convention,
10200 set_gdbarch_extract_struct_value_address,
10201 set_gdbarch_deprecated_pc_in_call_dummy,
10202 set_gdbarch_deprecated_push_arguments,
10203 set_gdbarch_deprecated_save_dummy_frame_tos,
10204 set_gdbarch_deprecated_push_return_address,
10205 set_gdbarch_deprecated_sizeof_call_dummy_words,
10206 set_gdbarch_deprecated_call_dummy_words,
10207 set_gdbarch_deprecated_dummy_write_sp.
10208 Add calls to:
10209 set_gdbarch_push_dummy_call,
10210 set_gdbarch_unwind_dummy_id,
10211 set_gdbarch_return_value.
8a1dac83 10212
e1457d83
JB
10213 * config/s390/nm-linux.h: Update comments.
10214 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
10215 (STOPPED_BY_WATCHPOINT): Redefine.
10216 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
10217 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
10218 (s390_stopped_by_watchpoint): Likewise.
10219 (watch_area_cnt): Remove.
10220 * s390-nat.c: Update comments.
10221 (watch_area): Remove typedef.
10222 Global replace watch_area by struct watch_area.
10223 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8a1dac83 10224 (s390_stopped_by_watchpoint): Remove pid argument,
e1457d83
JB
10225 use s390_inferior_tid. Add short-cut for the no watchpoint case.
10226 (s390_fix_watch_points): Remove pid argument,
10227 use s390_inferior_tid. Recompute area spanned by watchpoints.
10228 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
10229 argument. Reimplement.
10230
d0f54f9d
JB
10231 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
10232 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
10233 (FETCH_INFERIOR_REGISTERS): Define.
8a1dac83 10234 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
d0f54f9d
JB
10235 core-regset.o.
10236 * config/s390/s390x.mt: Remove.
10237 * config/s390/tm-s390.h: Remove.
10238 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
10239 (TARGET_ELF64): Remove.
10240 (SKIP_TRAMPOLINE_CODE): Do not undefine.
10241 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
10242 s390*-*-* case; always set gdb_target to s390.
10243 * regformats/reg-s390.dat: Remove control registers.
10244 * regformats/reg-s390x.dat: Likewise.
10245 * s390-tdep.h: New file.
8a1dac83 10246 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
d0f54f9d
JB
10247 Include "inferior.h" and "s390-tdep.h".
10248 Remove private definition of offsetof.
10249 (s390_register_u_addr): Remove.
10250 (regmap_gregset, regmap_fpregset): Define.
10251 (supply_gregset, fill_gregset): Reimplement.
10252 (supply_fpregset, fill_fpregset): Likewise.
10253 (s390_inferior_tid): New function.
10254 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
10255 (fetch_inferior_registers, store_inferior_registers): Likewise.
10256 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
10257 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
10258 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
10259 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
10260 (struct gdbarch_tdep): Define.
10261 (struct s390_register_info): Define.
10262 (s390_register_info): New variable.
10263 (s390_register_name): Reimplement.
10264 (s390_register_type): New function.
10265 (s390_register_raw_size, s390x_register_raw_size): Remove.
10266 (s390_cannot_fetch_register): Remove.
10267 (s390_register_byte): Remove.
10268 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
10269 (s390_dwarf_regmap): New variable.
10270 (s390_dwarf_reg_to_regnum): New function.
10271 (s390_stab_reg_to_regnum): Remove.
10272 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
10273 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
10274 (s390_convert_register_p): Likewise.
10275 (s390_register_to_value, s390_value_to_register): Likewise.
10276 (s390_register_reggroup_p): Likewise.
10277 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
10278 s390_gregset, s390x_gregset, s390_fpregset): New variables.
10279 (s390_supply_regset, s390_regset_from_core_section): New functions.
10280 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
10281 (S390_FPR_SIZE): Likewise.
10282 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
10283 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
10284 (S390_NUM_GPRS): Move here from tm-s390.h.
10285 (S390_NUM_FPRS): Likewise.
10286 (s390_in_function_epilogue_p): New function.
10287 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
10288 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
10289 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
10290 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
10291 Replace S390_FP_REGNUM by S390_SP_REGNUM.
10292 Remove calls to:
10293 set_gdbarch_deprecated_max_register_raw_size,
8a1dac83
RM
10294 set_gdbarch_deprecated_max_register_virtual_size,
10295 set_gdbarch_deprecated_register_byte,
d0f54f9d 10296 set_gdbarch_cannot_fetch_register,
8a1dac83 10297 set_gdbarch_cannot_store_register,
d0f54f9d
JB
10298 set_gdbarch_deprecated_register_size,
10299 set_gdbarch_deprecated_register_raw_size,
10300 set_gdbarch_deprecated_register_virtual_size,
10301 set_gdbarch_deprecated_register_virtual_type,
10302 set_gdbarch_deprecated_register_bytes.
10303 Add calls to:
10304 set_gdbarch_num_pseudo_regs,
10305 set_gdbarch_register_type,
10306 set_gdbarch_convert_register_p,
10307 set_gdbarch_register_to_value,
10308 set_gdbarch_value_to_register,
10309 set_gdbarch_register_reggroup_p,
10310 set_gdbarch_regset_from_core_section,
10311 set_gdbarch_pseudo_register_read,
10312 set_gdbarch_pseudo_register_write,
10313 set_gdbarch_in_function_epilogue_p.
10314 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
10315 (s390_tdep_h): New variable.
10316
8cfe231d
JB
103172004-02-17 Jim Blandy <jimb@redhat.com>
10318
4589a601
JB
10319 * findvar.c (value_from_register): If the type has no length, just
10320 return an acceptable value --- don't report an internal error.
10321
8cfe231d
JB
10322 * stabsread.c (read_type): If we find any type numbers that are
10323 forward references, complain if the references aren't resolved by
10324 the time we're finished reading.
10325 (cleanup_undefined_types): Make error message more appropriate for
10326 a complaint.
10327
5bf0017e
EZ
103282004-02-17 Elena Zannoni <ezannoni@redhat.com>
10329
9d62932d
EZ
10330 * Makefile.in (defs_h): Remove dependency on progress_h.
10331 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
10332 progress.h.
10333 * main.c (captured_main): Delete use of START_PROGRESS and
10334 END_PROGRESS.
10335
103362004-02-17 Elena Zannoni <ezannoni@redhat.com>
8a1dac83 10337
5bf0017e
EZ
10338 * objfiles.c (terminate_minimal_symbol_table): Add back
10339 initialization of MSYMBOL_TYPE.
10340
9fc9f5e2
AC
103412004-02-17 David Mosberger <davidm@hpl.hp.com>
10342
10343 Committed by Andrew Cagney.
10344 * Makefile.in (ia64_tdep_h): New macro.
10345 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
10346 (ia64-tdep.o): Likewise.
10347 * ia64-tdep.h: New file.
10348 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
10349 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
10350 (ia64_aix_sigcontext_register_address): Likewise.
10351 (ia64_linux_getunwind_table): Delete declaration.
10352 * ia64-linux-tdep.c: Likewise.
10353
76cd2bd9
CV
103542004-02-17 Corinna Vinschen <vinschen@redhat.com>
10355
10356 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
10357 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
10358 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
10359
634aa483
AC
103602004-02-17 Andrew Cagney <cagney@redhat.com>
10361
10362 * symtab.c (skip_prologue_using_sal): New function.
10363 * symtab.h (skip_prologue_using_sal): Declare.
10364 * frv-tdep.c: Include "symtab.h".
10365 (skip_prologue_using_sal): Delete function.
10366 * mips-tdep.c (skip_prologue_using_sal): Delete function.
10367 * rs6000-tdep.c (refine_prologue_limit): Mention
10368 skip_prologue_using_sal.
10369 * ia64-tdep.c (refine_prologue_limit): Ditto.
10370 * Makefile.in: Update dependencies.
10371
103722004-02-16 Andrew Cagney <cagney@redhat.com>
19772a2c 10373
39ce7b3f
AC
10374 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
10375 START_INFERIOR_TRAPS_EXPECTED.
10376 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
10377 START_INFERIOR_TRAPS_EXPECTED.
10378 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
10379 Delete macro.
10380 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
10381 macro, moved to "nm-osf.h". Update copyright.
10382 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
10383 update copyright.
10384
19772a2c
AC
10385 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
10386 and function replacing FRAMELESS_FUNCTION_INVOCATION.
10387 * blockframe.c (legacy_frameless_look_for_prologue): Rename
10388 frameless_look_for_prologue.
10389 * frame.h (legacy_frameless_look_for_prologue): Rename
10390 frameless_look_for_prologue.
10391 * gdbarch.h, gdbarch.c: Re-generate.
10392 * sh64-tdep.c (sh64_gdbarch_init): Update.
10393 * sh-tdep.c (sh_gdbarch_init): Update.
10394 * s390-tdep.c (s390_gdbarch_init): Update.
10395 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10396 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10397 * m68k-tdep.c (m68k_gdbarch_init): Update.
10398 (delta68_frame_args_address): Update.
10399 * m32r-tdep.c (m32r_gdbarch_init): Update.
10400 * hppa-tdep.c (hppa_gdbarch_init): Update.
10401 * h8300-tdep.c (h8300_gdbarch_init): Update.
10402 * frv-tdep.c (frv_gdbarch_init): Update.
10403 (frv_frameless_function_invocation): Update.
10404 * cris-tdep.c (cris_gdbarch_init): Update.
10405 (cris_frameless_function_invocation): Update.
10406 * avr-tdep.c (avr_gdbarch_init): Update.
10407 * arm-tdep.c (arm_gdbarch_init): Update.
10408 * stack.c (frame_info): Update, call predicate.
10409 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
10410 * frame.c (legacy_get_prev_frame): Update, call predicate..
10411 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
10412 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
10413 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
10414 invocation.
10415 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10416 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10417 * vax-tdep.c (vax_gdbarch_init): Ditto.
2be8b3c1
AC
10418
10419 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
10420 function.
10421
7dcaac91
DJ
104222004-02-16 Daniel Jacobowitz <drow@mvista.com>
10423
10424 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
10425 initializations.
10426
88289b6e
AC
104272004-02-16 Andrew Cagney <cagney@redhat.com>
10428
10429 * tui/tui-windata.c: Include "gdb_string.h".
10430 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
10431 * tui/tui-layout.c, tui/tui-command.c: Ditto.
10432 * Makefile.in: Update dependencies.
10433
9f976b41
DJ
104342004-02-16 Daniel Jacobowitz <drow@mvista.com>
10435
10436 * Makefile.in (infrun.o): Add $(gdb_assert_h).
10437 * infrun.c: Include "gdb_assert.h".
10438 (singlestep_ptid, saved_singlestep_ptid)
10439 (stepping_past_singlestep_breakpoint): New variables.
10440 (resume): Set singlestep_ptid. Check for singlestep thread
10441 hop.
10442 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
10443 (handle_inferior_event): Handle singlestep thread hop.
10444
c324d747
AC
104452004-02-16 Andrew Cagney <cagney@redhat.com>
10446
f090b9b1
AC
10447 * dwarf2-frame.c (dwarf2_frame_ops): New function.
10448 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
10449 (dwarf2_frame_init_reg): Ditto.
10450
fd33e6cb
AC
10451 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
10452 suggested by Joshua Neuheisel
10453
c324d747
AC
10454 * configure.in: Always check for curses, including pdcurses.
10455 Warn, instead of error, when no curses are found. Enable TUI when
10456 curses is available.
10457 * configure: Re-generate.
10458
b66ba949
CV
104592004-02-16 Corinna Vinschen <vinschen@redhat.com>
10460
10461 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
10462 sh_sh4_register_convert_to_virtual.
10463 (sh_register_convert_to_raw): Rename from
10464 sh_sh4_register_convert_to_raw.
10465 (sh_pseudo_register_read): Accomodate above name change.
10466 (sh_pseudo_register_write): Ditto.
10467
b58cbbf2
CV
104682004-02-16 Corinna Vinschen <vinschen@redhat.com>
10469
10470 * sh-tdep.c (sh_generic_register_name): Remove.
10471 (sh_gdbarch_init): Use sh_sh_register_name in default case.
10472
5929a910
AC
104732004-02-15 Andrew Cagney <cagney@redhat.com>
10474
4566dfcf
AC
10475 * configure.in (build_warnings): Add -Wunused-function.
10476 * configure: Re-generate.
10477
db11ed55
AC
10478 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
10479 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
10480
46ac7a5d
AC
10481 * procfs.c (procfs_init_inferior): Assume that
10482 START_INFERIOR_TRAPS_EXPECTED is defined.
10483 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
10484 * config/ns32k/tm-nbsd.h: Delete file,
10485 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
10486
ba801595
AC
10487 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
10488 * config/vax/tm-vax.h: Delete file.
10489
5929a910
AC
10490 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10491 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10492 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10493 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10494 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
10495 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
10496 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
10497
8f22cb90
MK
104982004-02-15 Mark Kettenis <kettenis@gnu.org>
10499
10500 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
10501 * dwarf2-frame.c (dwarf2_frame_data): New variable.
10502 (struct dwarf2_frame_ops): New.
10503 (dwarf2_frame_default_init_reg): New function, based on
10504 dwarf2_frame_init_reg.
10505 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
10506 (dwarf2_frame_init_reg): Call architecture-specific function.
10507 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
10508 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
10509 instead of dwarf2_frame_data.
10510 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
10511 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
10512
8132723e
AC
105132004-02-15 Andrew Cagney <cagney@redhat.com>
10514
046a4708
AC
10515 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
10516 register_gdbarch_swap.
10517 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
10518 * f-lang.c (_initialize_f_language): Update, use
10519 DEPRECATED_REGISTER_GDBARCH_SWAP.
10520 * remote.c (_initialize_remote): Ditto.
10521 * regcache.c (_initialize_regcache): Ditto.
10522 * parse.c (_initialize_parse): Ditto.
10523 * infrun.c (_initialize_infrun): Ditto.
10524 * mi/mi-main.c (_initialize_mi_main): Ditto.
10525 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8a1dac83 10526
549c1eea
AC
10527 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
10528 poking .cacheable directly.
10529 * symfile.c (symfile_bfd_open): Ditto.
10530
0c0b39de
AC
10531 * Makefile.in: Update all dependencies.
10532
8132723e
AC
10533 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
10534 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
10535 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
10536 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
10537 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
0c0b39de 10538
b9d26eb9
AC
105392004-02-14 Andrew Cagney <cagney@redhat.com>
10540
8e1f669a
AC
10541 * arch-utils.c (legacy_convert_register_p): Check
10542 DEPRECATED_REGISTER_CONVERTIBLE_P.
10543 * findvar.c (value_of_register): Ditto.
10544
cd0bfa36
AC
10545 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
10546 * gdbarch.h, gdbarch.c: Re-generate.
10547 * arch-utils.c (deprecated_register_convertible_not): Delete.
10548 * arch-utils.h (deprecated_register_convertible_not): Delete.
10549 * mi/mi-main.c (get_register): Update. Update copyright.
10550 * infcmd.c (default_print_registers_info): Update.
10551
b9d26eb9
AC
10552 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
10553 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
10554 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8a1dac83 10555 * gdbarch.h, gdbarch.c: Re-generate.
b9d26eb9
AC
10556 * frame.c (deprecated_get_next_frame_hack): Delete function.
10557 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
10558 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
10559 Update.
10560 * infcall.c (call_function_by_hand): Update.
10561
9ab9195f
EZ
105622004-02-14 Elena Zannoni <ezannoni@redhat.com>
10563
10564 * symfile.c (init_entry_point_info, entry_point_address): Move
8a1dac83 10565 from here...
9ab9195f
EZ
10566 * objfiles.c (init_entry_point_info, entry_point_address):..to
10567 here.
10568 * symfile.h (init_entry_point_info, entry_point_address): Remove
10569 prototypes.
10570 * objfiles.h (init_entry_point_info, entry_point_address):Add
8a1dac83 10571 prototypes.
9ab9195f
EZ
10572 * cris-tdep.c: Remove include of symfile.h. Add include of
10573 objfiles.h.
10574 * infcall.c: Ditto.
10575 * mcore-tdep.c: Ditto.
10576 * mn10300-tdep.c: Ditto.
10577 * sh64-tdep.c: Ditto.
10578 * v850-tdep.c: Ditto.
10579 * arm-tdep.c: Remove include of symfile.h.
10580 * blockframe.c: Ditto.
10581 * coffread.c: Ditto.
10582 * dbxread.c: Ditto.
10583 * dwarf2read.c: Ditto.
10584 * dwarfread.c: Ditto.
8a1dac83 10585 * frv-tdep.c: Ditto.
9ab9195f
EZ
10586 * ia64-tdep.c: Ditto.
10587 * mdebugread.c: Ditto.
10588 * mipsread.c: Ditto.
8a1dac83 10589 * rs6000-tdep.c: Ditto.
9ab9195f
EZ
10590 * s390-tdep.c: Ditto.
10591 * sh-tdep.c: Ditto.
8a1dac83 10592 * xstormy16-tdep.c: Ditto.
9ab9195f
EZ
10593 * gdbarch.sh: Remove include of symfile.h.
10594 * gdbarch.c: Regenerate.
10595 * solib-irix.c (enable_break): Use entry_point_address().
10596 Add comment about include file.
10597 * xcoffread.c: Add comment about include file.
8a1dac83
RM
10598 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
10599 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
10600 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
10601 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
9ab9195f
EZ
10602 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
10603
c4c5b7ba
AC
106042004-02-13 Andrew Cagney <cagney@redhat.com>
10605
10606 * corelow.c (core_xfer_partial): Use "struct bfd_section".
10607 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
10608 copyright.
10609 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
10610
3e7879de
FF
106112004-02-12 Fred Fish <fnf@redhat.com>
10612
10613 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
10614 set_gdbarch_store_return_value.
10615
6a7760b6
AC
106162004-02-12 Andrew Cagney <cagney@redhat.com>
10617
10618 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
10619 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
10620 (interrupt_query): Ditto.
10621 (ofunc): Delete unused variable.
10622 * cris-tdep.c (cris_abi): Delete unused function.
10623 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
10624 (cris_get_wide_opcode, cris_get_short_size): Ditto.
10625 (cris_get_asr_quick_shift_steps): Ditto.
10626 (cris_skip_prologue_frameless_p): Ditto.
10627 * arm-tdep.c (arm_push_return_address): Delete unused function.
10628 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
10629 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
10630 * s390-tdep.c (s390_function_start): Delete unused function.
10631
31687c3c
AC
106322004-02-12 Andrew Cagney <cagney@redhat.com>
10633
10634 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
10635 gdbarch.h, gdbarch.c: Re-generate.
10636 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
10637 to generic_prologue_frameless_p.
10638 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
10639 * arch-utils.c (generic_prologue_frameless_p): Delete function.
10640
6de918a6
DJ
106412004-02-11 Daniel Jacobowitz <drow@mvista.com>
10642
10643 * mips-linux-tdep.c: Include "frame.h".
10644 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
10645 (mips_linux_skip_resolver): New functions.
10646 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
10647 and set_gdbarch_in_solib_call_trampoline.
10648 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
10649 to after set_gdbarch_in_solib_return_trampoline. Only set the
10650 solib hooks to mips16 functions if the OS ABI is unknown.
10651 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
10652 including "config/tm-linux.h".
10653 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
10654 * Makefile.in (mips-linux-tdep.o): Update.
10655
87b3ede8
DC
106562004-02-11 David Carlton <carlton@kealia.com>
10657
10658 * linespec.c (decode_compound): Only look for a class symbol when
10659 considering all but the rightmost component.
10660
5979bc46
AC
106612004-02-11 Andrew Cagney <cagney@redhat.com>
10662
10663 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
10664 abi code are are separatly grouped.
10665
5867a2fb
AC
106662004-02-11 Andrew Cagney <cagney@redhat.com>
10667
10668 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
10669 * gdbarch.h, gdbarch.c: Re-generate.
10670 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10671 * v850-tdep.c (v850_gdbarch_init): Update.
10672 * sh64-tdep.c (sh64_gdbarch_init): Update.
10673 * sh-tdep.c (sh_gdbarch_init): Update.
10674 * s390-tdep.c (s390_gdbarch_init): Update.
10675 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10676 * mips-tdep.c (mips_gdbarch_init): Update.
10677 * mcore-tdep.c (mcore_gdbarch_init): Update.
10678 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10679 * m32r-tdep.c (m32r_gdbarch_init): Update.
10680 * ia64-tdep.c (ia64_gdbarch_init): Update.
10681 * hppa-tdep.c (hppa_gdbarch_init): Update.
10682 * h8300-tdep.c (h8300_gdbarch_init): Update.
10683 * frv-tdep.c (frv_gdbarch_init): Update.
10684 * d10v-tdep.c (d10v_gdbarch_init): Update.
10685 * cris-tdep.c (cris_gdbarch_init): Update.
10686 * avr-tdep.c (avr_gdbarch_init): Update.
10687 * arm-tdep.c (arm_gdbarch_init): Update.
10688 * alpha-tdep.c (alpha_gdbarch_init): Update.
10689
026a72f8
CV
106902004-02-11 Corinna Vinschen <vinschen@redhat.com>
10691
10692 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
10693 comma.
10694 (sh_sh4al_dsp_register_name): Ditto.
10695
3903d437
AC
106962004-02-10 Andrew Cagney <cagney@redhat.com>
10697
10698 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
10699 (mips_init_frame_pc_first): Delete function.
10700 (mips_frame_saved_pc): Delete function.
10701 (mips_frame_chain): Delete function.
10702 (mips_init_extra_frame_info): Delete function.
10703 (mips_xfer_register): Delete unused variable "reg".
10704 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
10705 (mips_n32n64_return_value): Delete unused variable "reg".
10706 (mips_n32n64_return_value): Delete unused variable "pos".
10707 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
10708 (mips_o32_return_value): Delete unused variable "pos".
10709 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
10710 (mips_print_fp_register): Delete unused variable "namelen"
10711 (mips_print_fp_register): Delete unused variable "flt2"
10712 (get_frame_pointer): Delete function.
10713 (cached_proc_desc): Delete static variable.
10714 (mips_pop_frame): Delete function.
10715 (mips_find_saved_regs): Delete function.
10716 (mips_get_saved_register): Delete function.
10717 (mips_saved_pc_after_call): Delete function.
10718 (SIGFRAME_BASE): Delete macro.
10719 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
10720 (SIGFRAME_PC_OFF): Delete macro.
10721 (SIGFRAME_REGSAVE_OFF): Delete macro.
10722 (mips_dump_tdep): Do not print deleted macro definitions.
10723
b9fb98bd
AC
107242004-02-10 Andrew Cagney <cagney@redhat.com>
10725
10726 * Makefile.in (SFILES): Remove explictly listed tui files.
10727 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
10728
78ced177 107292004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8a1dac83 10730
78ced177
JJ
10731 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
10732 to use paddr functions to format ia64 addresses and long values.
10733 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
10734 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
10735 (get_kernel_table, ia64_find_proc_info_x): Ditto.
10736 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
10737 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
10738
6a83354a
AC
107392004-02-10 Andrew Cagney <cagney@redhat.com>
10740
10741 * defs.h: Do not include "tui.h".
10742 * gdb_curses.h: New file.
10743 * tui/tui-hooks.h: New file.
10744 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
10745 (tui_install_hooks, tui_remove_hooks): Delete declarations.
10746 (tui_initialize_io): Delete declaration.
10747 (tui_initialize_readline: Delete redundant declaration.
10748 (struct tui_point): Delete definition.
10749 * tui/tui-data.h (struct tui_point): Define.
10750 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
10751 * utils.c: Include "tui/tui.h".
10752 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
10753 * printcmd.c [TUI]: Include "tui/tui.h".
10754 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
10755 * tui/tui-command.c: Include "gdb_curses.h".
10756 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
10757 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
10758 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
10759 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
10760 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
10761 * Makefile.in: Update all dependencies.
10762 (tui_hooks_h, gdb_curses_h): Define.
10763 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
10764
997470ef
EZ
107652004-02-10 Elena Zannoni <ezannoni@redhat.com>
10766
10767 * objfiles.h (struct objfile): Remove unused fields auxf1 and
10768 auxf2. Add comments about some other rarely used fields.
10769
4ff2cc4d
AC
107702004-02-10 Andrew Cagney <cagney@redhat.com>
10771
10772 * Makefile.in (init.c): Fix script removing duplicates. Problem
10773 reported by Peter Schauer.
10774
1ab21617
EZ
107752004-02-09 Elena Zannoni <ezannoni@redhat.com>
10776
10777 * bcache.c (bcache_xmalloc): Use obstack_init instead of
10778 obstack_specify_allocation.
10779 * objfiles.c (allocate_objfile): Ditto.
8a1dac83 10780 * solib-sunos.c (solib_add_common_symbols)
1ab21617
EZ
10781 (allocate_rt_common_objfile): Ditto.
10782 * symfile.c (reread_symbols): Ditto.
10783 * gdb_obstack.h: Add comment.
10784
17763fd9
EZ
107852004-02-09 Elena Zannoni <ezannoni@redhat.com>
10786
10787 * linespec.c (decode_line_1, locate_first_half)
10788 (decode_compound, lookup_prefix_sym): Update comments. Delete old
10789 commented out code.
10790
ec5cdd75
DJ
107912004-02-09 Daniel Jacobowitz <drow@mvista.com>
10792
10793 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
10794 obstack_free.
10795
43b54b88
AC
107962004-02-09 Andrew Cagney <cagney@redhat.com>
10797
10798 * blockframe.c (find_pc_partial_function): If find_pc_overlay
10799 fails, try find_pc_section. Fix PR c++/1267.
10800 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
10801 instead of find_pc_mapped_section.
10802 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
10803 not default to the section containing PC. Fix PR symtab/1519.
10804
edfae063
AC
108052004-02-09 Andrew Cagney <cagney@redhat.com>
10806
10807 * Makefile.in (mips-tdep.o): Update dependencies.
10808 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
10809 "trad-frame.h".
10810 (mips_unwind_pc): Return the pseudo PC register.
10811 (mips_unwind_dummy_id): New function.
10812 (mips16_fetch_instruction): New function.
10813 (mips32_fetch_instruction): New function.
10814 (struct mips_frame_cache): Define.
10815 (mips_mdebug_frame_cache): New function.
10816 (mips_mdebug_frame_this_id): New function.
10817 (mips_mdebug_frame_prev_register): New function.
10818 (mips_mdebug_frame_unwind): Define.
10819 (mips_mdebug_frame_sniffer): New function.
10820 (mips_mdebug_frame_base_address): New function.
10821 (mips_mdebug_frame_base): Define.
10822 (mips_mdebug_frame_base_sniffer): New function.
10823 (mips_gdbarch_init): Append unwind and base sniffers. Set
10824 unwind_dummy_id.
10825
defc864c
AC
108262004-02-08 Andrew Cagney <cagney@redhat.com>
10827
6764ddad
AC
10828 * frame.c: Print both the register number and name.
10829
defc864c
AC
10830 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
10831 and a sed into a single sed. Make .c and .o patterns more robust.
10832 (OBS): Delete.
10833 (INIT_FILES): Replace OBS with COMMON_OBS.
10834 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
10835
645d6d10
MK
108362004-02-08 Mark Kettenis <kettenis@gnu.org>
10837
10838 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
10839 the PT_WCOOKIE request.
10840
23e3c3fc
AC
108412004-02-08 Andrew Cagney <cagney@redhat.com>
10842
58dfe9ff
AC
10843 * mips-tdep.c (mips_unwind_pc): New function.
10844 (mips_gdbarch_init): Set mips_unwind_pc.
10845
1152e35e
AC
10846 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
10847 (get_frame_id): Allow the UNKNOWN_FRAME.
10848 (frame_register_unwind, get_frame_type): Ditto.
10849
31b75dbf
AC
10850 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
10851 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
10852 unwind_dummy_id indicates a legacy frame.
10853
3483b318
AC
10854 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
10855 * configure: Re-generate.
10856
23e3c3fc
AC
10857 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
10858 methods.
10859
33f8ca73
AC
108602004-02-08 Andrew Cagney <cagney@redhat.com>
10861
10862 * configure.in (CONFIG_ALL): Set to Makefile target, and not
10863 makefile macro.
10864 * configure: Re-generate.
10865 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
10866 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
10867 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
10868 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
10869 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
10870 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
10871 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
10872 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
10873 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
10874 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
10875
6ba8e26f 108762004-02-07 Andrew Cagney <cagney@redhat.com>
d836ee13 10877
20d286a5
AC
10878 * Makefile.in: Update all dependencies.
10879
d836ee13
AC
10880 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
10881 * configure: Re-generate.
10882 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
10883 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
10884 (COMMON_OBS): Add "main.o" and "annotate.o".
10885 (ANNOTATE_OBS): Delete.
10886 (OBS): Remove ANNOTATE_OBS.
10887 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
10888 CONFIG_INITS.
10889 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
10890 against CONFIG_OBS and "main.o".
10891 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
10892 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
10893
d02c80cd
AC
10894 * tui/tui-command.c: Include "gdb_string.h", delete register
10895 attribute, use ISO-C function signatures.
10896 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
10897 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
10898 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
10899 * tui/tui.c: Ditto.
6ba8e26f
AC
10900
10901 * tui/tui-command.c: Change variable and function names to lower
10902 case.
10903 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
10904 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
10905 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
10906 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10907 * tui/tui-winsource.c, tui/tui.c: Ditto.
10908
4a146b47
EZ
109092004-02-07 Elena Zannoni <ezannoni@redhat.com>
10910
10911 * buildsym.c (free_pending_blocks, finish_block)
10912 (record_pending_block, make_blockvector, end_symtab): Replace
10913 symbol_obstack with objfile_obstack.
8a1dac83 10914 * coffread.c (process_coff_symbol, coff_read_struct_type)
4a146b47 10915 (coff_read_enum_type): Ditto.
8a1dac83 10916 * cp-namespace.c (initialize_namespace_symtab)
4a146b47 10917 (check_one_possible_namespace_symbol): Ditto.
8a1dac83 10918 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
4a146b47
EZ
10919 (dwarf2_symbol_mark_computed): Ditto.
10920 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
10921 * elfread.c (elf_symtab_read): Ditto.
10922 * hpread.c (hpread_symfile_init, hpread_symfile_init)
10923 (hpread_read_enum_type, hpread_read_function_type)
10924 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
10925 Ditto.
8a1dac83 10926 * jv-lang.c (get_java_class_symtab, add_class_symbol)
4a146b47 10927 (java_link_class_type): Ditto.
8a1dac83 10928 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
4a146b47
EZ
10929 (new_symbol): Ditto.
10930 * minsyms.c (install_minimal_symbols): Ditto.
10931 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
10932 (terminate_minimal_symbol_table): Replace symbol_obstack with
10933 objfile_obstack.
10934 (free_objfile): Remove freeing of symbol_obstack.
10935 * objfiles.h: Remove symbol_obstack field.
10936 * pa64solib.c (add_to_solist): Replace symbol_obstack with
10937 objfile_obstack.
10938 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
10939 symbol_obstack.
10940 (solib_add_common_symbols): Replace symbol_obstack with
10941 objfile_obstack.
10942 * somsolib.c (som_solib_add): Ditto.
10943 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10944 (common_block_start, common_block_end): Ditto.
10945 * symfile.c (reread_symbols): Remove freeing and init of
10946 symbol_obstack.
10947 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
10948 * symfile.h: Update comment.
10949 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
10950 stats printing.
10951 * symtab.c (symbol_set_names): Replace symbol_obstack with
10952 objfile_obstack.
10953 * symtab.h (struct general_symbol_info, struct minimal_symbol):
10954 Update comments.
10955 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
10956 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
10957 objfile_obstack.
10958
6d012f14
AC
109592004-02-07 Andrew Cagney <cagney@redhat.com>
10960
10961 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
10962 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
10963 fields and variables.
10964 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
10965 (m_beInvisible): Delete macro.
10966 * tui/tui-data.h: Fix case case fields and variables.
10967 (m_genWinPtrIsNull): Delete macro.
10968 (tui_win_list): Rename winList.
10969 (TUI_SRC_WIN): Rename srcWin.
10970 (TUI_DISASM_WIN): Rename disassemWin.
10971 (TUI_DATA_WIN): Rename dataWin.
10972 (TUI_CMD_WIN): Rename cmdWin.
10973 (m_genWinPtrNotNull): Delete macro.
10974 (m_winPtrIsNull): Delete macro.
10975 (m_winPtrNotNull): Delete macro.
10976 (tui_win_is_source_type): Replace m_winIsSourceType
10977 (tui_win_is_auxillary): Replace m_winIsAuzillary.
10978 (tui_win_has_locator): Replace m_hasLocator.
10979 (tui_set_win_highlight): Replace m_setWinHighlightOn and
10980 m_setWinHighlightOff.
10981 * tui/tui-data.c: Update references.
10982 (tui_win_is_source_type, tui_set_win_highlight): New functions.
10983 (tui_win_has_locator, tui_win_is_auxillary): New functions.
10984 * tui/tui-command.c, tui/tui-disasm.c: Update references.
10985 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
10986 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
10987 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
10988 * tui/tui-winsource.c, tui/tui.c: Ditto.
10989
7d34766b
MK
109902004-02-07 Mark Kettenis <kettenis@gnu.org>
10991
1c800673
MK
10992 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
10993 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
10994 StackGhost.
10995
7d34766b
MK
10996 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
10997 variable `i6' to `i7'.
10998 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
10999
22940a24
AC
110002004-02-07 Andrew Cagney <cagney@redhat.com>
11001
11002 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
11003 (TuiPoint, TuiPointPtr): Ditto.
11004 (TuiStatus, TuiStatusPtr): Ditto.
11005 (TuiWinType, TuiWinTypePtr): Ditto.
11006 (struct tui_point): Rename _TuiPoint.
11007 (tui_get_low_disassembly_address): Rename
11008 tuiGetLowDisassemblyAddress.
11009 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
11010 (tuiFree): Delete declaration.
11011 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
11012 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
11013 * tui/tui.c (tuiFree): Delete function.
11014 * cli/cli-cmds.c (disassemble_command): Update references.
11015 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
11016 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
11017 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
11018 * tui/tui-winsource.c: Ditto.
11019
8b92e4d5
EZ
110202004-02-07 Elena Zannoni <ezannoni@redhat.com>
11021
11022 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
11023 coffstab_build_psymtabs, elfstab_build_psymtabs)
11024 (stabsect_build_psymtabs): Replace psymbol_obstack with
11025 objfile_obstack.
11026 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
11027 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
11028 Ditto.
11029 * dwarfread.c (scan_compilation_units): Ditto.
11030 * elfread.c (elfstab_offset_sections): Ditto.
11031 * hppa-tdep.c (read_unwind_info): Ditto.
11032 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
11033 (hpread_end_psymtab): Ditto.
11034 * mdebugread.c (mdebug_build_psymtabs, add_pending)
11035 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
11036 Ditto.
11037 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
8a1dac83 11038 * objfiles.c (add_to_objfile_sections)
8b92e4d5
EZ
11039 (build_objfile_section_table): Ditto.
11040 (allocate_objfile): Remove init of psymbol_obstack.
11041 (free_objfile): Remove freeing of psymbol_obstack.
11042 * objfiles.h (struct objfile): Remove field
11043 psymbol_obstack. Update comments.
11044 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
11045 psymbol_obstack with objfile_obstack.
11046 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
11047 psymbol_obstack.
11048 * somread.c (som_symfile_offsets, init_import_symbols)
11049 (init_export_symbols): Replace psymbol_obstack with
11050 objfile_obstack.
11051 * somsolib.c (som_solib_add_solib_objfile): Ditto.
11052 * symfile.c (default_symfile_offsets, syms_from_objfile)
11053 (reread_symbols): Remove freeing and init of psymbol_obstack.
11054 (cashier_psymtab): Update comment.
11055 * symmisc.c (print_objfile_statistics): Don't report stats for
11056 psymbol obstack.
11057 * symtab.h (struct general_symbol_info, struct partial_symtab):
11058 Update comments.
11059 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
11060 (xcoff_symfile_offsets): Replace psymbol_obstack with
11061 objfile_obstack.
11062
b99607ea
EZ
110632004-02-07 Elena Zannoni <ezannoni@redhat.com>
11064
11065 * objfiles.h (struct objfile): Add objfile_obstack field.
11066 Remove type_obstack field.
11067
11068 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
11069 read_structure_scope read_enumeration, new_symbol): Replace
11070 type_obstack with objfile_obstack.
11071 * dwarfread.c (struct_type, enum_type): Ditto.
8a1dac83 11072 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
b99607ea
EZ
11073 (lookup_fundamental_type): Ditto.
11074 * gdbtypes.h (TYPE_ALLOC): Ditto.
8a1dac83
RM
11075 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
11076 (hpread_read_doc_function_type, hpread_read_struct_type)
11077 (fix_static_member_physnames, hpread_read_array_type)
b99607ea 11078 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
8a1dac83 11079 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
b99607ea
EZ
11080 (java_link_class_type): Ditto.
11081 * mdebugread.c (parse_type): Ditto.
11082 * objfiles.c (allocate_objfile, free_objfile): Ditto.
11083 * solib-sunos.c (solib_add_common_symbols): Ditto.
11084 * stabsread.c (define_symbol, read_type, read_member_functions,
11085 read_cpp_abbrev, read_one_struct_field): Ditto.
11086 * symfile.c (reread_symbols): Ditto.
11087 * symmisc.c (print_objfile_statistics): Ditto.
8a1dac83 11088
2a8854a7
AC
110892004-02-07 Andrew Cagney <cagney@redhat.com>
11090
11091 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
11092 (tui_exec_info_content): Rename TuiExecInfoContent.
11093 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
11094 (TuiWinInfo, TuiWinInfoPtr): Ditto.
11095 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
11096 (TuiList, TuiListPtr): Ditto.
11097 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
11098 (TuiDataType, TuiDataTypePtr): Ditto.
11099 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
11100 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
11101 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
11102 (TuiSourceElement, TuiSourceElementPtr): Ditto.
11103 (TuiDataElement, TuiDataElementPtr): Ditto.
11104 (TuiWinElement, TuiWinElementPtr): Ditto.
11105 (TuiDataInfo, TuiDataInfoPtr): Ditto.
11106 (TuiCommandElement, TuiCommandElementPtr): Ditto.
11107 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
11108 (TuiWhichElement, TuiWhichElementPtr): Ditto.
11109 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
11110 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
11111 * tui/tui-command.c, tui/tui-data.c: Update references.
11112 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
11113 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
11114 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
11115 * tui/tui-winsource.c, tui/tui.c: Ditto.
8a1dac83 11116
05cbe71a
MK
111172004-02-07 Mark Kettenis <kettenis@gnu.org>
11118
11119 * dwarf2-frame.h: Update copyright.
11120 (enum dwarf2_frame_reg_rule): New.
11121 (struct dwarf2_frame_state_reg): New.
11122 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
11123 * dwarf2-frame.c: Update copyright.
11124 (enum dwarf2_reg_rule): Remove.
11125 (struct dwarf2_frame_state): Remove defenition of `struct
11126 dwarf2_frame_state_reg'.
11127 (read_reg): Call get_frame_arch to get the architecture instead of
11128 using CURRENT_GDBARCH.
11129 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
11130 DWARF2_FRAME_.
11131 (dwarf2_frame_init_reg): New function.
11132 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
11133 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
11134 initialize the register state. Prefix old `enum dwarf2_reg_rule'
11135 tags with DWARF2_FRAME_.
11136 (dwarf2_frame_prev_register): Call get_frame_arch to get the
11137 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
11138 dwarf2_reg_rule' tags with DWARF2_FRAME_.
11139
ec7d9e56
AC
111402004-02-06 Andrew Cagney <cagney@redhat.com>
11141
dd1abb8c
AC
11142 * tui/tui-data.h (struct tui_list): Rename _TuiList.
11143 (enum tui_data_type): Rename _TuiDataType.
11144 (struct tui_layout_def): Rename _TuiLayoutDef.
11145 (struct tui_source_element): Rename _TuiSourceElement.
11146 (struct tui_data_element): Rename _TuiDataElement.
11147 (struct tui_command_element): Rename _TuiCommandElement.
11148 (struct tui_locator_element): Rename _TuiLocatorElement.
11149 (union tui_which_element): Define.
11150 (struct tui_win_element): Rename _TuiWinElement.
11151 (struct tui_data_info): Rename _TuiDataInfo.
11152 (struct tui_source_info): Rename _TuiSourceInfo.
11153 (struct tui_command_info): Rename _TuiCommandInfo.
11154 (tui_initialize_static_data): Rename initializeStaticData.
11155 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
11156 (tui_alloc_win_info): Rename allocWinInfo.
11157 (tui_init_generic_part): Rename initGenericPart.
11158 (tui_init_win_info): Rename initWinInfo.
11159 (tui_alloc_content): Rename allocContent.
11160 (tui_add_content_elements): Rename addContentElements.
11161 (tui_init_content_element): Rename initContentElement.
11162 (tui_free_window): Rename freeWindow.
11163 (tui_free_win_content): Rename freeWinContent.
11164 (tui_free_data_content): Rename freeDataContent.
11165 (tui_free_all_source_wins_content): Rename
11166 freeAllSourceWinsContent.
11167 (tui_del_window): Rename tuiDelWindow.
11168 (tui_del_data_windows): Rename tuiDelDataWindows.
11169 (tui_partial_win_by_name): Rename partialWinByName.
11170 (tui_win_name): Rename winName.
11171 (tui_current_layout): Rename currentLayout.
11172 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
11173 (tui_term_height): Rename termHeight.
11174 (tui_set_term_height_to): Rename setTermHeightTo.
11175 (tui_term_width): Rename termWidth.
11176 (tui_set_term_width_to): Rename setTermWidthTo.
11177 (tui_set_gen_win_origin): Rename setGenWinOrigin.
11178 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
11179 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
11180 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
11181 (tui_source_windows): Rename sourceWindows.
11182 (tui_clear_source_windows): Rename clearSourceWindows.
11183 (tui_clear_source_windows_detail): Rename
11184 clearSourceWindowsDetail.
11185 (tui_clear_win_detail): Rename clearWinDetail.
11186 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
11187 (tui_default_tab_len): Rename tuiDefaultTabLen.
11188 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
11189 (tui_win_with_focus): Rename tuiWinWithFocus.
11190 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
11191 (tui_layout_def): Rename tuiLayoutDef.
11192 (tui_win_resized): Rename tuiWinResized.
11193 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
11194 (tui_next_win): Rename tuiNextWin.
11195 (tui_prev_win): Rename tuiPrevWin.
11196 (tui_add_to_source_windows): Rename addToSourceWindows.
11197 * tui/tui-winsource.c, tui/tui-win.c: Update references.
11198 * tui/tui-layout.c, tui/tui-source.c: Ditto.
11199 * tui/tui-stack.c, tui/tui-io.c: Ditto.
11200 * tui/tui.c, tui/tui-data.c: Ditto.
11201 * tui/tui-interp.c, tui/tui-data.c: Ditto.
11202 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
11203
a358af15
AC
11204 * tui/tui-source.h: Update copyright. Include "tui-data.h".
11205 (struct symtab): Declare.
11206 (tui_set_source_content): Rename tuiSetSourceContent.
11207 (tui_show_symtab_source): Rename tuiShowSource.
11208 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
11209 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
11210 * tui/tui-source.c: Update copyright. Update references.
11211 * tui/tui-win.c, tui/tui-winsource.c: Update references.
11212 * tui/tui-stack.c: Update references.
11213
a21fcd8f
AC
11214 * tui/tui-win.h: Update copyright. Include "tui-data.h".
11215 (struct tui_win_info): Declare.
11216 (tui_scroll_forward): Rename tuiScrollForward.
11217 (tui_scroll_backward): Rename tuiScrollBackward.
11218 (tui_scroll_left): Rename tuiScrollLeft.
11219 (tui_scroll_right): Rename tuiScrollRight.
11220 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
11221 (tui_resize_all): Rename tuiResizeAll.
11222 (tui_refresh_all_win): Rename tuiRefreshAll.
11223 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
11224 * tui/tui-layout.c, * tui/tui-io.c: Update references.
11225 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
11226 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
11227
edae1ccf
AC
11228 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
11229 (tui_erase_data_content): Rename tuiEraseDataContent.
11230 (tui_display_all_data): Rename tuiDisplayAllData.
11231 (tui_check_data_values): Rename tuiCheckDataValues.
11232 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
11233 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
11234 (tui_first_data_element_no_in_line): Rename
11235 tuiFirstDataElementNoInLine.
11236 (tui_delete_data_content_windows): Rename
11237 tuiDeleteDataContentWindows.
11238 (tui_refresh_data_win): Rename tuiRefreshDataWin.
11239 (tui_display_data_from): Rename tuiDisplayDataFrom.
11240 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
11241 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
11242 * tui/tui-win.c, tui/tui-regs.c: Update references.
11243 * tui/tui-layout.c, tui/tui.c: Update references.
11244
ec7d9e56
AC
11245 * tui/tui-wingeneral.h: Update copyright.
11246 (m_allBeVisible): Delete macro.
8a1dac83 11247 (m_allBeInvisible): Delete macro.
ec7d9e56
AC
11248 (struct tui_gen_win_info): Declare.
11249 (struct tui_win_info): Declare.
11250 (tui_unhighlight_win): Rename unhighlightWin.
11251 (tui_make_visible, tui_make_invisible): Replace makeVisible.
11252 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
11253 (tui_make_window): Rename makeWindow.
11254 (tui_copy_win): Rename copyWin.
11255 (tui_box_win): Rename boxWin.
11256 (tui_highlight_win): Rename highlightWin.
11257 (tui_check_and_display_highlight_if_needed): Rename
11258 checkAndDisplayHighlightIfNeeded.
11259 (tui_refresh_all): Rename refreshAll.
11260 (tui_delete_win): Rename tuiDelwin.
11261 (tui_refresh_win): Rename tuiRefreshWin.
11262 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
11263 (tui_make_visible, tui_make_invisible): New functions.
11264 (tui_make_all_visible, tui_make_all_invisible): New functions.
11265 (make_all_visible): Rename makeAllVisible.
11266 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
11267 * tui/tui-data.c, tui/tui-winsource.c: Update references.
11268 * tui/tui-windata.c, tui/tui-win.c: Update references.
11269 * tui/tui-regs.c, tui/tui-layout.c: Update references.
11270 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
11271
1e52e2eb
MK
112722004-02-06 Mark Kettenis <kettenis@gnu.org>
11273
11274 * proc-api.c (write_with_trace): Initialize local variable to
11275 silence compiler warning.
11276
f80bda8e
AC
112772004-02-06 Andrew Cagney <cagney@redhat.com>
11278
11279 * tui/tui-source.h: Do not include "defs.h".
11280 (struct tui_win_info): Declare.
11281 (tui_set_source_content_nil): Declare.
11282 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
11283 (union tui_line_or_address): Rename _TuiLineOrAddress.
11284 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
11285 (tui_update_source_window): Rename tuiUpdateSourceWindow.
11286 (tui_update_source_window_as_is): Rename
11287 tuiUpdateSourceWindowAsIs.
11288 (tui_update_source_windows_with_addr): Rename
11289 tuiUpdateSourceWindowsWithAddr.
11290 (tui_update_source_windows_with_line): Rename
11291 tuiUpdateSourceWindowsWithLine.
11292 (tui_clear_source_content): Rename tuiClearSourceContent.
11293 (tui_erase_source_content): Rename tuiEraseSourceContent.
11294 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
11295 (tui_show_source_content): Rename tuiShowSourceContent.
11296 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
11297 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
11298 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
11299 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
11300 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
11301 (tui_update_exec_info): Rename tuiUpdateExecInfo.
11302 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
11303 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
11304 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
11305 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
11306 (struct tui_win_info): Declare.
11307 * tui/tui-stack.c: Update references.
11308 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
11309 * tui/tui-win.c, tui/tui-source.c: Ditto.
11310 * tui/tui.c, tui/tui-disasm.c: Ditto.
11311
9fbfb822
MK
113122004-02-06 Mark Kettenis <kettenis@gnu.org>
11313
11314 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
11315 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
11316
03cebad2
MK
113172004-02-05 Mark Kettenis <kettenis@gnu.org>
11318
11319 * infrun.c (handle_inferior_event): Allow for breakpoint
11320 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
11321 and SIGEMT. Update comments.
11322 * NEWS (Revised SPARC target): Mention support for non-executable
11323 stack.
11324
290281b1
MK
113252004-02-04 Mark Kettenis <kettenis@gnu.org>
11326
11327 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
11328 * inftarg.c: Update copyright year.
11329 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
11330 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
11331 (sparc_xfer_wcookie): New function.
11332 * sparc-tdep.c (sparc_fetch_wcookie): New function.
11333 * Makefile.in (sparc-nat.o): Update dependencies.
11334 * config/sparc/nm-nbsd.h: Include "target.h".
11335 (NATIVE_XFER_WCOOKIE): New define.
11336 (sparc_xfer_wcookie): New prototype.
11337
212161df
AC
113382004-02-04 Andrew Cagney <cagney@redhat.com>
11339
11340 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
11341 SYSCALL_TRAP function.
11342 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
11343
6e4c6c91
DJ
113442004-02-04 Andrew Cagney <cagney@redhat.com>
11345 Daniel Jacobowitz <drow@mvista.com>
11346
11347 * objfiles.h: Delete comments refering to inside_entry_func and
11348 DEPRECATED_FRAME_CHAIN_VALID.
11349 * defs.h (inside_entry_func): Update prototype..
11350 * blockframe.c (inside_entry_func): Rename to
11351 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
11352 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
11353
cae688ec
JJ
113542004-02-03 Jeff Johnston <jjohnstn@redhat.com>
11355
11356 * breakpoint.c (struct captured_parse_breakpoint_args): Move
11357 outside of #ifdef SOLIB_ADD region.
11358 (do_restore_lang_radix_cleanup): Ditto.
11359 (resolve_pending_breakpoint): Ditto.
11360
19217676
AC
113612004-02-03 Andrew Cagney <cagney@redhat.com>
11362
11363 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
11364 (process_note_abi_tag_sections): Delete unused function.
11365 (ia64_read_fp): Delete unused function.
11366 (gdbarch_extract_struct_value_address): Delete declaration.
11367
876753be
AC
113682004-02-02 Andrew Cagney <cagney@redhat.com>
11369
11370 * vax-tdep.c (vax_frame_chain): Delete call to
11371 deprecated_inside_entry_file.
11372 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
11373
d4f10bf2
MK
113742004-02-02 Mark Kettenis <kettenis@gnu.org>
11375
11376 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
11377 column that's "empty" or "same value" when eliminating REG_RA
11378 rules.
11379
cae688ec
JJ
113802004-02-02 Jeff Johnston <jjohnstn@redhat.com>
11381
11382 * NEWS: Add information about new pending breakpoint support.
11383
0101ce28
JJ
113842004-02-02 Jeff Johnston <jjohnstn@redhat.com>
11385
11386 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
11387 and pending fields for pending breakpoint support.
11388 * breakpoint.c (breakpoint_enabled): Add check for not pending.
11389 (condition_command): Only parse condition if not a pending
11390 breakpoint.
11391 (print_one_breakpoint): Add support for pending breakpoints.
11392 (describe_other_breakpoints): Add checks to verify we are not
11393 dealing with pending breakpoints.
11394 (check_duplicates): Don't check pending breakpoints.
11395 (set_raw_breakpoint): Initialize pending flag.
11396 (do_restore_lang_radix_cleanup): New cleanup routine.
11397 (resolve_pending_breakpoint): New function.
11398 (re_enable_breakpoints_in_shlibs): Try and resolve any
11399 pending breakpoints via resolve_pending_breakpoint.
11400 (mention): Add pending breakpoint support.
11401 (parse_breakpoint_sals): Add new parameter to pass to
11402 decode_line_1 to indicate silent errors when files or functions
11403 are not found. Change all callers.
11404 (do_captured_parse_breakpoint): New function.
11405 (break_command_1): Change prototype to return an rc value and to
11406 take an optional pending breakpoint pointer. Support creating
11407 a pending breakpoint if a "not found" form of error occurs when
11408 parsing the breakpoint. Also support resolving an existing pending
11409 breakpoint and be silent if the resolution fails.
11410 (create_breakpoints): Change prototype to take pending breakpoint
11411 pointer. When resolving a pending breakpoint, use the new pointer
11412 to provide a conditional or commands added by the end-user.
11413 (delete_breakpoint): Add appropriate check for pending.
11414 (breakpoint_re_set_one): Ditto.
11415 (do_enable_breakpoint): Ditto.
11416
8d577d32
DC
114172004-02-02 David Carlton <carlton@kealia.com>
11418
11419 * valops.c (enum oload_classification): New.
11420 (find_overload_match): Break implementation into separate
11421 functions; delete #if 0'd code; look for symbols within
11422 namespaces.
11423 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
11424 (find_oload_champ,oload_method_static,classify_oload_match): New.
11425 * cp-support.h: Add declaration for cp_func_name; update
11426 declaration for make_symbol_overload_list.
11427 * cp-support.c (cp_func_name): New.
11428 (overload_list_add_symbol): Fix comment, use
11429 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
11430 (make_symbol_overload_list): Take a function name and a namespace
11431 instead of a symbol; change implementation.
11432 (make_symbol_overload_list_using): New.
11433 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
11434
22e8e3c7
FF
114352004-02-02 Fred Fish <fnf@redhat.com>
11436
11437 * main.c (gdb_stdtarg): Move definition to group with other
15390fef 11438 gdb_stdtarg definitions and update copyright years.
22e8e3c7
FF
11439 * remote-sim.c (gdb_os_write_stderr): Write output to
11440 gdb_stdtargerr stream instead of gdb_stdtarg stream.
11441 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
15390fef 11442 gdb_stderr stream and update copyright years.
22e8e3c7 11443
6b753f60
DJ
114442004-02-01 Daniel Jacobowitz <drow@mvista.com>
11445
11446 * Makefile.in (mips-linux-nat.o): Update dependencies.
11447 * mips-linux-nat.c: Include mips-tdep.h.
11448
114492004-02-01 Roland McGrath <roland@redhat.com>
2cb6b099
RM
11450
11451 * sol-thread.c (sol_thread_xfer_partial): New function.
11452 (init_sol_thread_ops): Use that for to_xfer_partial hook.
11453 (init_sol_core_ops): Likewise.
11454
11455 * procfs.c (procfs_xfer_partial): New function.
11456 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
11457 * Makefile.in (procfs.o): Add $(auxv_h) dep.
11458
11459 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
11460 procfs_xfer_auxv function.
11461
11462 * procfs.c (procfs_make_note_section): If we can read
11463 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
11464 * linux-proc.c (linux_make_note_section): Likewise.
11465
11466 * auxv.h: New file.
11467 * auxv.c: New file.
11468 * Makefile.in (auxv_h): New variable.
11469 (COMMON_OBS): Add auxv.o here.
11470 (auxv.o): New target.
11471
11472 * corelow.c (core_xfer_partial): New function.
11473 (init_core_ops): Use it for core_ops.to_xfer_partial.
11474
11475 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
11476 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
11477 macro if that is defined.
11478
fa5281d0
DJ
114792004-02-01 Daniel Jacobowitz <drow@mvista.com>
11480
11481 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
11482 and check the specified thread for each breakpoint.
11483 * breakpoint.h (bpstat_stop_status): Update prototype.
11484 * infrun.c (handle_inferior_event): Update calls to
11485 bpstat_stop_status.
11486
26ee262d
DJ
114872004-02-01 Daniel Jacobowitz <drow@mvista.com>
11488
11489 * Makefile.in (cli-cmds.o): Add $(readline_h).
11490
d9b52655
DJ
114912004-02-01 Daniel Jacobowitz <drow@mvista.com>
11492
11493 * cli/cli-cmds.c: Include readline.h.
11494 (complete_command): Pass the start of the last word to
11495 complete_line.
11496
9709f61c
DJ
114972004-01-31 Daniel Jacobowitz <drow@mvista.com>
11498
11499 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
11500 argument, and change first argument to a CORE_ADDR.
11501 * breakpoint.h (bpstat_stop_status): Update prototype.
11502 * infrun.c (adjust_pc_after_break): Add a new comment.
11503 (handle_inferior_event): Update calls to bpstat_stop_status.
11504
4f1280bb
DJ
115052004-01-31 Daniel Jacobowitz <drow@mvista.com>
11506
11507 * breakpoint.h: Update copyright years.
11508
4fa8626c
DJ
115092004-01-31 Daniel Jacobowitz <drow@mvista.com>
11510
11511 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
11512 (bpstat_stop_status): Don't decrement PC.
11513 * breakpoint.h (software_breakpoint_inserted_here_p): Add
11514 prototype.
11515 * infrun.c (adjust_pc_after_break): New function.
11516 (handle_inferior_event): Call it, early. Remove later references
11517 to DECR_PC_AFTER_BREAK.
11518 (normal_stop): Add commentary.
11519
fad0733a
DJ
115202004-01-31 Daniel Jacobowitz <drow@mvista.com>
11521
11522 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
11523 2004-01-27 double-free fix.
11524
42cdca6c
MK
115252004-01-31 Mark Kettenis <kettenis@gnu.org>
11526
11527 * sparc-tdep.c (sparc_fetch_wcookie): New function.
11528 (sparc32_frame_prev_register): Handle StackGhost.
11529 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
11530
932d5416
RM
115312004-01-29 Roland McGrath <roland@redhat.com>
11532
11533 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
11534 * configure: Regenerated.
11535
11536 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
11537 * Makefile.in (procfs.o): Add dep.
11538
47d3492a
AC
115392004-01-28 Andrew Cagney <cagney@redhat.com>
11540
11541 * tui/tui-stack.h: Update copyright.
11542 (struct frame_info): Add opaque declaration.
11543 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
11544 (tui_show_locator_content): Rename tuiShowLocatorContent.
11545 (tui_show_frame_info): Rename tuiShowFrameInfo.
11546 * tui/tui-stack.c: Update copyright. Update references.
11547 * tui/tui-winsource.c: Update references.
11548 * tui/tui-win.c: Update references.
11549 * tui/tui-layout.c: Update references.
11550 * tui/tui-hooks.c: Update copyright, update references.
11551 * tui/tui.c: Update copyright, update references.
11552 * tui/tui-disasm.c: Update references.
11553
5d51ca54
DC
115542004-01-28 David Carlton <carlton@kealia.com>
11555
11556 * dwarf2read.c (add_partial_structure): Use demangled name if
11557 namespace equals "".
11558
086ed43d
JB
115592004-01-27 Jim Blandy <jimb@redhat.com>
11560
11561 Clean up misapplied patch:
11562 * dwarf2read.c (determine_prefix): Change one of the two forward
11563 declarations for 'determine_prefix_aux' to a declaration for this.
11564 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
11565 argument to 'die_specification'.
11566
2a35147e
JB
11567 * dwarf2read.c (read_func_scope): Re-indent comment.
11568
a355c7de 115692004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
932d5416 11570
a355c7de
AC
11571 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
11572 b->exp to NULL after freeing so that error during re-parsing or
11573 evaluation of expressions associated with breakpoint don't
11574 eventually lead to re-freeing of storage.
11575 Committed by Andrew Cagney.
11576
63ff5125
AC
115772004-01-27 Andrew Cagney <cagney@redhat.com>
11578
11579 * source.c (ambiguous_line_spec): Delete undefined declaration.
11580 * m32r-rom.c (m32r_set_board_address): Delete unused function.
11581 (m32r_set_server_address, m32r_set_download_path): Ditto.
11582 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
11583
e142c38c
DJ
115842004-01-27 Daniel Jacobowitz <drow@mvista.com>
11585
11586 * dwarf2read.c: Update calls to changed and renamed functions, and
11587 references to moved variables.
11588
11589 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
11590 language, language_defn, list_in_scope, and ftypes members.
11591 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
11592 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
11593 (baseaddr): Remove globals.
11594
11595 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
11596 (set_cu_language, die_is_declaration, die_specification)
11597 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
11598 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
11599 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
11600 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
11601
11602 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
11603 cu.list_in_scope. Don't initialize cu_header_offset.
11604 (add_partial_symbol): Add local baseaddr.
11605 (psymtab_to_symtab_1): Add local baseaddr. Use
11606 objfile->section_offsets for consistency. Don't initialize
11607 cu_header_offset; do initialize cu.header.offset and
11608 cu.list_in_scope.
11609 (read_file_scope, read_func_scope, read_lexical_block_scope)
11610 (dwarf_decode_lines, new_symbol): Add local baseaddr.
11611
c6e06ede
MC
116122004-01-27 Michael Chastain <mec.gnu@mindspring.com>
11613
fb328ecc 11614 * PROBLEMS: Add gdb/1516.
c6e06ede 11615
48184fd4
AC
116162003-12-29 Robert Millan <robertmh@gnu.org>
11617
11618 Patch committed by Andrw Cagney.
11619 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
11620 * configure.tgt: Match knetbsd*-gnu.
11621
c1321b30
AC
116222004-01-26 Andrew Cagney <cagney@redhat.com>
11623
f3699be3
AC
11624 * breakpoint.c (catch_command_1): Delete #ifdef code.
11625 (catch_fork_command_1): Delete #ifdef wrapper.
11626 (catch_exec_command_1): Ditto.
11627 (catch_load_command_1): Ditto.
11628 (catch_unload_command_1): Ditto.
11629
c1321b30
AC
11630 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
11631 (catch_breakpoint): Delete #if0ed function.
11632 (disable_catch_breakpoint): Ditto.
11633 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
11634 (disable_catch, enable_catch, delete_catch): Ditto.
11635
b4501125
AC
116362004-01-26 Andrew Cagney <cagney@redhat.com>
11637
11638 * remote.c (echo_check, quit_flag): Delete variables.
11639 (cisco_kernel_mode): Delete variable.
11640 (minitelnet_return, tty_input, escape_count): Delete variables.
11641 (remote_cisco_mode): Delete variable.
11642 (remote_cisco_open, remote_cisco_close): Delete function.
11643 (remote_cisco_mourn, remote_cisco_wait): Delete function.
11644 (init_remote_cisco_ops): Delete function.
11645 (_initialize_remote): Do not install "remote cisco" code.
11646 (read_frame): Delete cisco specific code.
11647 (remote_info_process): Delete function.
11648 (remote_wait): Delete cisco specific code.
11649 (remote_cisco_section_offsets): Delete function.
11650 (remote_cisco_objfile_relocate): Delete function.
11651 (remote_async_wait): Delete cisco specific code.
11652 (minitelnet, readtty, readsocket): Delete function.
11653
74055713
AC
116542004-01-26 Andrew Cagney <cagney@redhat.com>
11655
11656 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
11657 comments mentioning extract_returned_value_address.
11658 * infcmd.c (print_return_value): Update. Add comments on
11659 extract_returned_value_address.
11660 * stack.c (return_command): Add comments on
11661 extract_returned_value_address.
11662 * values.c: Update comment.
11663 * m32r-tdep.c: Update comment.
11664 * sparc-tdep.c: Update comment.
11665 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
11666 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11667 * sh64-tdep.c (sh64_gdbarch_init): Update.
11668 * sh-tdep.c (sh_gdbarch_init): Update.
11669 * s390-tdep.c (s390_gdbarch_init): Update.
11670 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11671 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
11672 * m68k-tdep.c (m68k_gdbarch_init): Update.
11673 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11674 * m32r-tdep.c (m32r_gdbarch_init): Update.
11675 * ia64-tdep.c (ia64_gdbarch_init): Update.
11676 * h8300-tdep.c (h8300_gdbarch_init): Update.
11677 * frv-tdep.c (frv_gdbarch_init): Update.
11678 * arm-tdep.c (arm_gdbarch_init): Update.
11679 * alpha-tdep.c (alpha_gdbarch_init): Update.
11680
a67af2b9
AC
116812004-01-26 Andrew Cagney <cagney@redhat.com>
11682
11683 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
11684 SYMBOL_LOCATION_FUNCS
11685 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
11686 "struct symbol_ops".
11687 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
11688 type to "struct symbol_ops".
11689 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
11690 (struct symbol): Replace ".aux_value.loc.funcs" and
11691 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
11692 (SYMBOL_OBJFILE): Delete macro.
11693 (SYMBOL_LOCATION_FUNCS): Delete macro.
11694 (SYMBOL_LOCATION_BATON): Update.
11695 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
11696 intead of SYMBOL_LOCATION_FUNCS.
11697 * ax-gdb.c (gen_var_ref): Ditto.
11698 * printcmd.c (address_info): Ditto.
11699 * findvar.c (read_var_value): Ditto.
11700 (symbol_read_needs_frame): Ditto.
11701
c034e007
AC
117022004-01-26 Andrew Cagney <cagney@redhat.com>
11703
11704 * dwarf2read.c (read_func_scope): Document frame-base hack.
11705
bb472c1e
MK
117062004-01-25 Mark Kettenis <kettenis@gnu.org>
11707
11708 * infcmd.c (print_return_value): Plug memory leak; delete
11709 ui_stream object. Rename argument `structure_return' to
11710 `struct_return'.
11711
c8e737d5
MK
117122004-01-25 Mark Kettenis <kettenis@gnu.org>
11713
f941662f
MK
11714 * infcmd.c (print_return_value): Wrap long lines.
11715 (finish_command_continuation, finish_command): Remove unused
11716 variable `funcaddr'. Fix some coding-standards problems.
11717
c558d81a 11718 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
d8d65dd3 11719 SECT_SIZE is large enough, not whether it's exactly the right size.
c558d81a
MK
11720 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
11721 TDEP->fpregset to zero.
11722
bf1e5861 11723 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
c8e737d5
MK
11724 floating-point registers for traditional NetBSD core files.
11725 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
11726 TDEP->sizeof_fpregset here.
11727
4c72d57a
MK
117282004-01-25 Mark Kettenis <kettenis@gnu.org>
11729
566626fa
MK
11730 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
11731 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
11732 function with code split out from
11733 sparc32nbsd_sigcontext_frame_cache.
11734 (sparc32nbsd_sigcontext_frame_cache): Use
11735 sparc32nbsd_sigcontext_saved_regs.
11736 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
11737 OpenBSD.
11738 * sparcobsd-tdep.c: New file.
11739 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
11740 (sparcobsd-tdep.o): New dependency.
11741 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
11742 * config/sparc/obsd.mt: New file.
11743
4c72d57a
MK
11744 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
11745 TDEP->fpregset to be initialized to enable core file register
11746 sets.
11747
7e5e9f88
MK
117482004-01-24 Mark Kettenis <kettenis@gnu.org>
11749
f0f207fd 11750 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
1e067c66
MK
11751 Add opaque declarations.
11752 (sparc64nbsd_sigcontext_saved_regs): New prototype.
11753 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
11754 function with code split out from
11755 sparc64nbsd_sigcontext_frame_cache.
11756 (sparc64nbsd_sigcontext_frame_cache): Use
11757 sparc64nbsd_sigcontext_saved_regs.
11758 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
11759 OpenBSD.
11760 * sparc64obsd-tdep.c: New file.
11761 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
11762 (sparc64obsd-tdep.o): New dependency.
11763 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
11764 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
11765 * config/sparc/obsd64.mt: New file.
11766
690668cc
MK
11767 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
11768 read the instruction at PC.
11769
7e5e9f88
MK
11770 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
11771 value of GDB_OSABI_DEFAULT.
11772 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
11773 instead of GDB_OSABI_NETBSD_AOUT.
11774
68b6dce9
NR
117752004-01-24 Nick Roberts <nick@nick.uklinux.net>
11776
11777 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
11778 copyright.
11779
080ce8c0
AC
117802004-01-23 Andrew Cagney <cagney@redhat.com>
11781
11782 * printcmd.c (display_command): Replace tui_set_display call with
11783 tui_set_layout_for_display_command.
11784 * tui/tui.h (enum tui_win_type): Define.
11785 (tui_set_layout): Delete declaration.
11786 (tui_set_layout_for_display_command): Rename set_tui_layout.
11787 * tui/tui-data.h (enum tui_layout_type): Define.
11788 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
11789 "tui.h".
11790 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
11791 (tui_default_win_height): Rename tuiDefaultWinHeight.
11792 (tui_default_win_viewport_height): Rename
11793 tuiDefaultWinViewportHeight.
11794 (tui_set_layout): RenametuiSetLayout.
11795 * tui/tui-layout.c: Update references.
11796 * tui/tui.c: Update references.
11797 * tui/tui-disasm.c: Update references.
11798
b368761e
DC
117992004-01-23 David Carlton <carlton@kealia.com>
11800
11801 Partial workaround for PR c++/1511:
11802 * cp-namespace.c: Include frame.h.
11803 (cp_lookup_transparent_type): New
11804 (cp_lookup_transparent_type_loop): New.
11805 * cp-support.h: Declare cp_lookup_transparent_type.
11806 * symtab.c (basic_lookup_transparent_type): Renamed from
11807 lookup_transparent_type.
11808 (lookup_transparent_type): Replace old body by a call to
11809 current_language->la_lookup_transparent_type.
11810 * symtab.h: Update copyright. Declare
11811 basic_lookup_transparent_type.
11812 * language.h: Update copyright.
11813 (struct language_defn): Add la_lookup_transparent_type.
11814 * language.c: Update copyright.
11815 (unknown_language_defn): Add basic_lookup_transparent_type.
11816 (auto_language_defn): Add basic_lookup_transparent_type.
11817 (local_language_defn): Add basic_lookup_transparent_type.
11818 * ada-lang.c: Update copyright.
11819 (ada_language_defn): Add basic_lookup_transparent_type.
11820 * c-lang.c: Update copyright.
11821 (c_language_defn): Add basic_lookup_transparent_type.
11822 (cplus_language_defn): Add basic_lookup_transparent_type.
11823 (asm_language_defn): Add basic_lookup_transparent_type.
11824 (minimal_language_defn): Add basic_lookup_transparent_type.
11825 * f-lang.c: Update copyright.
11826 (f_language_defn): Add basic_lookup_transparent_type.
11827 * jv-lang.c: Update copyright.
11828 (java_language_defn): Add basic_lookup_transparent_type.
11829 * m2-lang.c: Update copyright.
11830 (m2_language_defn): Add basic_lookup_transparent_type.
11831 * objc-lang.c: Update copyright.
11832 (objc_language_defn): Add basic_lookup_transparent_type.
11833 * p-lang.c: Update copyright.
11834 (p_language_defn): Add basic_lookup_transparent_type.
11835 * scm-lang.c: Update copyright.
11836 (scm_language_defn): Add basic_lookup_transparent_type.
11837 * Makefile.in (cp-namespace.o): Depend on frame.h.
11838
fdde2d81
DC
118392004-01-23 David Carlton <carlton@kealia.com>
11840
11841 Patch for PR c++/1520:
11842 * dwarf2read.c (read_func_scope): Set processing_current_prefix
11843 properly if we have a specification die.
11844 (determine_prefix_aux): Rename from determine_prefix.
11845 (determine_prefix): Like the old determine_prefix, but never
11846 returns NULL.
11847
5b828b6b
TR
118482004-01-23 Theodore A. Roth <troth@openavr.org>
11849
11850 * avr-tdep.c: Update copyright.
11851 (avr_iaddr_p): Delete unused function.
11852 (avr_saddr_p): Delete unused function.
11853
a1b8c067
DC
118542004-01-23 David Carlton <carlton@kealia.com>
11855
11856 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
11857 Fix for PR symtab/1534.
11858
f2cab569
MK
118592004-01-23 Mark Kettenis <kettenis@gnu.org>
11860
11861 * NEWS (New native configurations): Mention OpenBSD/sparc and
11862 OpenBSD/sparc64.
11863 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
11864 * configure.host: Likewise.
11865 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
11866 handler for OpenBSD.
11867 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
11868
642d8300
MK
118692004-01-22 Mark Kettenis <kettenis@gnu.org>
11870
89aac506
MK
11871 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
11872 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
11873
36662fde
MK
11874 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
11875 * cli/cli-cmds.c (shell_escape): Likewise.
11876
642d8300
MK
11877 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
11878 OpenBSD .note.openbsd.ident sections.
11879
fae299cd
DC
118802004-01-22 David Carlton <carlton@kealia.com>
11881
11882 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
11883 get_scope_pc_bounds.
11884 (read_file_scope): Ditto.
11885 (get_scope_pc_bounds): New function, produced by extracting code
11886 from the above two functions, consolidating it, and adding support
11887 for DW_TAG_namespace.
11888
a49d618c
MK
118892004-01-22 Mark Kettenis <kettenis@gnu.org>
11890
11891 * osabi.c (MAX_NOTESZ): New define.
11892 (check_note): New function.
11893 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
11894 check_note.
11895
fe61caab
RM
118962004-01-21 Roland McGrath <roland@redhat.com>
11897
11898 * MAINTAINERS (write after approval): Add myself.
11899
ec145965
EZ
119002004-01-21 Eli Zaretskii <eliz@gnu.org>
11901
11902 * utils.c (init_page_info): Move declarations of `rows' and
11903 `cols' before the __GO32__-specific code. Move the closing brace
11904 outside the #ifdef __GO32__..#endif block.
11905 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
11906
877522db
PB
119072004-01-21 Paul Brook <paul@codesourcery.com>
11908
11909 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
11910 BPSTAT_WHAT_CHECK_SHLIBS.
11911
dbf5be1c
PB
119122004-01-21 Paul Brook <paul@codesourcery.com>
11913
11914 * MAINTAINERS: Add myself to write-after-approval.
11915
81f08b92
AC
119162004-01-20 Andrew Cagney <cagney@redhat.com>
11917
5a1efed7
AC
11918 * ax-gdb.c (print_axs_value): Delete unused function.
11919 * jv-lang.c (java_lookup_type): Delete unused function.
11920 * cli/cli-dump.c (dump_filetype): Delete unused function.
11921 * remote-mips.c (remote_mips_insert_hw_breakpoint)
11922 (remote_mips_remove_hw_breakpoint): Delete unused functions.
11923 (mips_getstring): Delete unused function.
11924 (pmon_insert_breakpoint): Delete #if0ed function.
11925 (PMON_MAX_BP): Delete #if0ed MACRO.
11926 (mips_pmon_bp_info): Delete #if0ed variable.
11927 (pmon_remove_breakpoint): Delete #if0ed function.
11928 * monitor.c (monitor_write_even_block): Delete unused function.
11929 (monitor_write_memory_block): Delete #if0ed code.
11930 * dink32-rom.c (dink32_load): Delete unused function.
11931 (_initialize_dink32_rom): Delete #if0ed code.
11932 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
11933
b0a30fce
AC
11934 * tui/tui-command.c: Update references.
11935 * tui/tui-io.c: Update references.
11936 * tui/tui-command.h: Update copyright.
11937 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
11938
81f08b92
AC
11939 * source.c (ambiguous_line_spec): Delete never-defined function.
11940 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
11941 * gdbtypes.c (add_name, add_mangled_type): Ditto.
11942 * cli/cli-cmds.c (validate_comname): Ditto.
11943
65f05602
AC
11944 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
11945 "tui-data.h".
11946 (tui_set_disassem_content): Rename tuiSetDisassemContent.
11947 (tui_show_disassem): Rename tuiShowDisassem.
11948 (tui_show_disassem_and_update_source): Rename
11949 tuiVerticalDisassemScroll.
11950 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
11951 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
11952 * tui/tui.h: Update copyright.
11953 (enum tui_status): Define.
11954 * tui/tui-data.h (enum tui_scroll_direction): Define.
11955 * tui/tui-disasm.c: Update copyright. Update references.
11956 * tui/tui-winsource.c: Update copyright. Update references.
11957 * tui/tui-win.c: Update references.
11958 * tui/tui-layout.c: Update references.
11959
6bb0384f
AC
119602004-01-20 Andrew Cagney <cagney@redhat.com>
11961
11962 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
11963 sym2 to start of block.
11964
9175c9a3
MC
119652004-01-19 Michael Chastain <mec.gnu@mindspring.com>
11966
11967 * MAINTAINERS: Delete mmalloc.
11968 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
11969 * NEWS: Mention removal of --with-malloc.
11970 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
11971 * config.in: Regenerate.
11972 * configure: Regenerate.
6bb0384f
AC
11973 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
11974 USE_MMALLOC, MMCHECK_FORCE.
9175c9a3
MC
11975 * gdbinit.in: Remove mmalloc.
11976 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
11977 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
11978 * config/i386/go32.mh: Likewise.
11979 * config/i386/interix.mh: Likewise.
11980 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
11981
4fcef00a
JJ
119822004-01-19 Jeff Johnston <jjohnstn@redhat.com>
11983
11984 * linespec.c (decode_variable, symtab_from_filename): Call
11985 error_silent with error message instead of throwing an exception
11986 directly.
11987 * defs.h (error_silent, error_output_message): Add prototypes.
11988 (catch_exceptions_with_msg): Ditto.
11989 * utils.c (error_silent, error_output_message): New functions.
11990 * top.c (catch_exceptions_with_msg): New function.
11991
8e94b928
NR
119922004-01-20 Nick Roberts <nick@nick.uklinux.net>
11993
11994 * mi/mi-cmds.h (enum print_values): Add definition.
11995
11996 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
11997 type and value for simple data types and just the name and type
11998 for complex ones, if required.
11999
12000 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
12001 children, if required.
12002
a02d6af8
KB
120032004-01-19 Kevin Buettner <kevinb@redhat.com>
12004
12005 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
12006 unused declarations.
12007
78a4a9b9
AC
120082004-01-19 Andrew Cagney <cagney@redhat.com>
12009
12010 * top.h (mapped_symbol_files): Delete declaration.
12011 * main.c (captured_main): Delete option "m" and "mapped".
12012 * objfiles.c (mapped_symbol_files): Delete variable.
12013 * symfile.c (symbol_file_command): Delete mmap code.
12014 (symbol_file_add_with_addrs_or_offsets): Ditto.
12015 (add_symbol_file_command, reread_separate_symbols): Ditto.
12016 * objfiles.h (OBJF_MAPPED): Delete.
12017 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
12018 (free_objfile) [USE_MMALLOC]: Ditto.
12019 (open_existing_mapped_file): Delete function.
12020 (open_mapped_file): Delete function.
12021 (map_to_file): Delete function.
12022
2dbd5e30
KB
120232004-01-19 Kevin Buettner <kevinb@redhat.com>
12024
12025 * infrun.c (step_into_function): Account for possible breakpoint
12026 adjustment when computing ``stop_func_start''.
12027
437b434f
KB
120282004-01-19 Kevin Buettner <kevinb@redhat.com>
12029
12030 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
12031 the region size against the size of a pointer, not the size of
12032 a register as given by DEPRECATED_REGISTER_SIZE.
12033
55fb0713
AC
120342004-01-19 Andrew Cagney <cagney@redhat.com>
12035
12036 * tui/tui-regs.h: Include "tui-data.h".
12037 (tuiFirstRegElementNoInLine): Delete declaration.
12038 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
12039 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
12040 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
12041 (tui_calculate_regs_column_count): Rename
12042 tuiCalculateRegsColumnCount.
12043 (tui_check_register_values): Rename tuiCheckRegisterValues.
12044 (tui_show_registers): Rename tuiShowRegisters.
12045 (tui_display_registers_from_line): Rename
12046 tuiDisplayRegistersFromLine.
12047 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
12048 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
12049 (tui_first_reg_element_no_inline): Rename
12050 tuiFirstRegElementNoInLine.
12051 * tui/tui-data.h: Update copyright.
12052 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
12053 * tui/tui-windata.c: Update copyright, update references.
12054 * tui/tui-regs.c: Update copyright, update references.
12055 * tui/tui-win.c: Update copyright, update references.
12056 * tui/tui-layout.c: Update copyright, update references.
fe61caab 12057
cebe9500
AC
120582004-01-18 Andrew Cagney <cagney@redhat.com>
12059
bcdf1568
AC
12060 * tui/tui-io.c: Update copyright.
12061 (key_is_end_sequence, key_is_backspace): New functions.
12062 (key_is_command_char, key_is_start_sequence): New function.
12063 (tui_getc): Update references.
12064 * tui/tui-io.h: Update copyright.
12065 (m_tuiStartNewLine): Delete macro.
12066 (m_isBackspace, m_isDeleteChar): Delete macros.
12067 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
12068 (m_isNextPage, m_isPrevPage): Delete macros.
12069 (m_isLeftArrow, m_isRightArrow): Delete macros.
12070 (m_isXdbStyleCommandChar): Delete macro.
12071 (key_is_start_sequence): Declare, replace m_isStartSequence.
12072 (key_is_end_sequence): Declare, replace m_isEndSequence.
12073 (key_is_backspace): Declare ,replace m_isBackspace.
12074 (key_is_command_char): Declare, replace m_isCommandChar.
12075 * tui/tui-command.c: Update copyright.
12076 (tuiDispatchCtrlChar): Update references.
12077
130d87e6
AC
12078 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
12079 tuiSourceWin.h.
12080
d7b2e967
AC
12081 * tui/tui-command.c: Rename tui/tuiCommand.c.
12082 * tui/tui-command.h: Rename tui/tuiCommand.h.
12083 * tui/tui-data.c: Rename tui/tuiData.c.
12084 * tui/tui-data.h: Rename tui/tuiData.h.
12085 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
12086 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
12087 * tui/tui-io.c: Rename tui/tuiIO.c.
12088 * tui/tui-io.h: Rename tui/tuiIO.h.
12089 * tui/tui-layout.c: Rename tui/tuiLayout.c.
12090 * tui/tui-layout.h: Rename tui/tuiLayout.h.
12091 * tui/tui-regs.c: Rename tui/tuiRegs.c.
12092 * tui/tui-regs.h: Rename tui/tuiRegs.h.
12093 * tui/tui-source.c: Rename tui/tuiSource.c.
12094 * tui/tui-source.h: Rename tui/tuiSource.h.
12095 * tui/tui-stack.c: Rename tui/tuiStack.c.
12096 * tui/tui-stack.h: Rename tui/tuiStack.h.
12097 * tui/tui-win.c: Rename tui/tuiWin.c.
12098 * tui/tui-win.h: Rename tui/tuiWin.h.
12099 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
12100 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
12101 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
12102 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
12103 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
12104 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
12105 * tui/tui-file.c: Update includes.
12106 * tui/tui-hooks.c: Update includes.
12107 * tui/tui-interp.c: Update includes.
12108 * tui/tui.c: Update includes.
12109 * Makefile.in: Update all tui/ dependencies.
12110 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
12111
b2100910
AC
12112 * Makefile.in: Update copyright. Update dependencies.
12113
cebe9500
AC
12114 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
12115 problem.
12116
c6f0559b
AC
121172004-01-18 Andrew Cagney <cagney@redhat.com>
12118
43e9390b
AC
12119 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
12120 instead of register_gdbarch_init.
12121
c6f0559b
AC
12122 * remote-sds.c (tohex): Delete unused function. Update copyright.
12123 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
12124 * v850-tdep.c (v850_register_virtual_size): Ditto.
12125 * target.c (normal_target_post_startup_inferior): Ditto.
12126 * source.c (ambiguous_line_spec): Ditto.
12127 * remote.c (adapt_remote_get_threadinfo): Ditto.
12128 * mi/mi-out.c (out_field_fmt): Ditto.
12129 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
12130 (output_control_change_notification): Ditto.
12131 * m68k-tdep.c (m68k_register_byte): Ditto.
12132 (m68k_remote_breakpoint_from_pc): Ditto.
12133 * ui-out.c (init_ui_out_state): Delete unused declaration.
12134 * stabsread.c (search_value): Ditto.
12135 * mi/mi-cmd-env.c (env_cli_command): Ditto.
12136 * maint.c (print_section_table): Ditto.
12137 * infrun.c (set_follow_fork_mode_command): Ditto.
12138
a8504492
MK
121392004-01-18 Mark Kettenis <kettenis@gnu.org>
12140
12141 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
12142 DW_CFA_def_cfa_exporession. Add support for
12143 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
12144 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
12145
0bd8997e
AC
121462004-01-18 Andrew Cagney <cagney@redhat.com>
12147
12148 * ocd.c: Update copyright.
12149 (bdm_read_register_command): Delete unused function.
12150 (_initialize_remote_ocd): Delete commented out reference.
12151 (get_quoted_char, reset_packet): Delete #if0ed function.
12152 (output_packet, put_quoted_char): Delete #if0ed function.
12153 (stu_put_packet, stu_get_packet): Delete #if0ed function.
12154 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
12155 (BDM_BREAKPOINT): Delete #if0ed macro.
12156 (remote_timeout): Delete #if0ed variable.
12157
31bb40e4
MK
121582004-01-18 Mark Kettenis <kettenis@gnu.org>
12159
12160 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
12161 (core-sol2.o): Remove dependency.
12162 * core-sol2.c: Remove file.
12163
887432a5
AC
121642004-01-17 Andrew Cagney <cagney@redhat.com>
12165
12166 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
12167 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
12168 enums.
12169
29182b13
DJ
121702004-01-17 Daniel Jacobowitz <drow@mvista.com>
12171
12172 * remote.c: Update copyright years.
12173
2963ee1d
DJ
121742004-01-17 Daniel Jacobowitz <drow@mvista.com>
12175
12176 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
12177
79d45cd4
AC
121782004-01-17 Andrew Cagney <cagney@redhat.com>
12179
ee300cd4
AC
12180 * mdebugread.c: Update copyright.
12181 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
12182 (parse_type, parse_procedure): Ditto.
12183 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
12184
fcacc9c2
AC
12185 * cris-tdep.c (cris_store_struct_return): Put back accidently
12186 deleted function.
12187
79d45cd4
AC
12188 * gdbarch.sh: Update copyright year.
12189 * gdbarch.h, gdbarch.c: Re-generate.
12190
b263358a
DJ
121912004-01-17 Daniel Jacobowitz <drow@mvista.com>
12192
12193 Suggested by George Anzinger.
12194 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
12195 correct stack offset. Include unknown opcode numbers in the error
12196 message.
12197
931aecf5
AC
121982004-01-17 Andrew Cagney <cagney@redhat.com>
12199
12200 * x86-64-tdep.c (x86_64_init_abi): No need to clear
12201 extract_struct_value_address, i386 does not set it.
12202 * sparc64-tdep.c (sparc64_init_abi): Do not set
12203 extract_struct_value_address, never called.
12204 (sparc64_extract_struct_value_address): Delete function.
12205 * m68hc11-tdep.c: Update copyright.
12206 (m68hc11_gdbarch_init): Delete redundant assignment of
12207 extract_struct_value_address.
12208 * i386-tdep.c: Update copyright.
12209 (i386_gdbarch_init): Do not set extract_struct_value_address,
12210 never called.
12211 (i386_extract_struct_value_address): Delete function.
12212 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
12213 extract_struct_value_address, never called.
12214 (sparc32_extract_struct_value_address): #if 0 function. Add
12215 comments explaining its future.
12216
756fe439
DJ
122172004-01-17 Daniel Jacobowitz <drow@mvista.com>
12218
12219 * arm-tdep.c (arm_write_pc): New function.
12220 (arm_gdbarch_init): Call set_gdbarch_write_pc.
12221
e74f0f02
DJ
122222004-01-17 Daniel Jacobowitz <drow@mvista.com>
12223
12224 * breakpoint.c (must_shift_inst_regs): Delete.
12225 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
12226 and SHIFT_INST_REGS.
12227 * infcmd.c (step_1, step_1_continuation): Delete references to
12228 SHIFT_INST_REGS.
12229 * infrun.c (keep_going): Likewise.
12230 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
12231 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
12232
b6cb9035
AC
122332004-01-17 Andrew Cagney <cagney@redhat.com>
12234
444a1e2e
AC
12235 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12236 * gdbarch.h, gdbarch.c: Re-generate.
12237 * infcmd.c (print_return_value): Delete reference to
12238 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
12239
def7e6ed
AC
12240 * cris-tdep.c (cris_gdbarch_init): Do not set
12241 deprecated_extract_struct_value_address.
12242
07be497a
AC
12243 * xstormy16-tdep.c: Update copyright.
12244 (xstormy16_extract_struct_value_address): Update to current
12245 extract struct value address interface.
12246 (xstormy16_gdbarch_init): Set extract_struct_value_address.
12247 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
12248 current extract struct value address interface.
12249 (sh64_gdbarch_init): Set extract_struct_value_address.
12250
6b4d5c91
AC
12251 * cris-tdep.c: Update copyright.
12252 (cris_extract_struct_value_address): Delete function.
12253 (struct_return_address): Delete variable.
12254 (cris_store_struct_return): Do not set struct_return_address.
12255
464e0365
AC
12256 * mcore-tdep.c: Update copyright.
12257 (mcore_extract_struct_value_address): Delete function. Update
12258 comments.
12259 (mcore_gdbarch_init): Update.
12260 * mn10300-tdep.c: Update copyright.
12261 (mn10300_extract_struct_value_address): Delete function.
12262 (mn10300_gdbarch_init): Update.
12263 * v850-tdep.c: Update copyright.
12264 (v850_extract_struct_value_address): Delete.
12265 (v850_gdbarch_init): Update.
12266 * ns32k-tdep.c: Update copyright.
12267 (ns32k_extract_struct_value_address): Delete.
12268 (ns32k_gdbarch_init): Update.
12269 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
12270 (hppa_gdbarch_init): Update.
12271 * vax-tdep.c: Update copyright.
12272 (vax_extract_struct_value_address): Delete.
12273 (vax_gdbarch_init): Update.
12274
afb18d0f
AC
12275 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
12276 * gdbarch.h, gdbarch.c: Re-generate.
12277 * procfs.c (procfs_fetch_registers): Delete reference to
12278 DEPRECATED_NPC_REGNUM.
12279 (procfs_store_registers): Ditto.
12280 * regcache.c (generic_target_write_pc): Simplify.
12281 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
12282
a698f53e
AC
12283 * core-sol2.c (fetch_core_registers): Replace
12284 DEPRECATED_NPC_REGNUM with equivalent tdep value.
12285
adc11376
AC
12286 * hppa-tdep.c: Update copyright year.
12287 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
12288 NPC_REGNUM.
12289 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
12290
b6cb9035
AC
12291 * mips-tdep.c (mips_write_pc): New function.
12292 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
12293 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
12294 (mips_find_saved_regs, mips_software_single_step: Ditto.
12295 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
12296 mips_init_extra_frame_info, mips_pop_frame): Ditto.
12297
6d82d43b
AC
122982004-01-17 Andrew Cagney <cagney@redhat.com>
12299
12300 * mips-tdep.c: Re-indent. Group functions by ABI.
12301
71bd6bd4
AC
123022004-01-17 Andrew Cagney <cagney@redhat.com>
12303
12304 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
12305 * gdbarch.c: Re-generate.
12306 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12307 DECR_PC_AFTER_BREAK to zero.
12308 * vax-tdep.c (vax_gdbarch_init): Ditto.
12309 * v850-tdep.c (v850_gdbarch_init): Ditto.
12310 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12311 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12312 * sh-tdep.c (sh_gdbarch_init): Ditto.
12313 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12314 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12315 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12316 * mips-tdep.c (mips_gdbarch_init): Ditto.
12317 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12318 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12319 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12320 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12321 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12322 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12323 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12324 * frv-tdep.c (frv_gdbarch_init): Ditto.
12325 * cris-tdep.c (cris_gdbarch_init): Ditto.
12326 * avr-tdep.c (avr_gdbarch_init): Ditto.
12327 * arm-tdep.c (arm_gdbarch_init): Ditto.
12328 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
12329
a02abb62
JB
123302004-01-17 J. Brobecker <brobecker@gnat.com>
12331
12332 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
12333 Delete, no longer used.
12334 (read_subrange_type): New function, mostly extracted from
12335 read_array_type().
12336 (read_array_type): Replace extracted code by call to
12337 read_subrange_type().
12338 (dwarf2_get_attr_constant_value): New function.
12339 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
12340 (add_partial_symbol): Likewise.
12341 (process_die): Likewise.
12342 (new_symbol): Likewise.
12343 (read_type_die): Likewise.
12344
cf5b2f1b
AC
123452004-01-16 Andrew Cagney <cagney@redhat.com>
12346
12347 * symfile.c: Update copyright year.
12348 (compare_symbols): Delete unused function.
12349 * stabsread.c: Update copyright year.
12350 (lrs_general_complaint): Delete unused function.
12351 (ref_search_value): Ditto.
12352 (get_substring): Delete declaration.
12353 * sh64-tdep.c: Update copyright year.
12354 (sh64_get_gdb_regnum): Delete unused function.
12355 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
12356 Delete unused function.
12357
d33b9831
MK
123582004-01-17 Mark Kettenis <kettenis@gnu.org>
12359
12360 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
12361 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
12362
7aea86e6
AC
123632004-01-16 Andrew Cagney <cagney@redhat.com>
12364
12365 Changes from Peter Schauer.
12366 * rs6000-tdep.c: Update copyright year.
12367 (rs6000_push_dummy_call): Update the stack pointer before
12368 accessing the corresponding stack region.
12369 * rs6000-nat.c: Update copyright year.
12370 (set_host_arch): Set "info.abfd" to "exec_bfd".
12371
26b0da32
MK
123722004-01-15 Mark Kettenis <kettenis@gnu.org>
12373
12374 * blockframe.c: Update copyright year.
12375 (inside_entry_func): Don't treat a zero PC specially.
12376
86fbe6cc
EZ
123772004-01-14 Elena Zannoni <ezannoni@redhat.com>
12378
12379 * gcore.c (gcore_copy_callback): Use paddr_d to print size
12380 variable.
12381 (gcore_create_callback): Ditto. Skip any memory segment that has
12382 no permissions set.
12383
63d06c5c
DC
123842004-01-14 David Carlton <carlton@kealia.com>
12385
12386 Change symbols for C++ nested types to contain the fully qualified
12387 name, if possible. (At least in the DWARF-2 case.) Partial fix
12388 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
12389 c++/895.
12390 * c-exp.y (qualified_type): Handle types nested within classes.
12391 * cp-namespace.c: Update comments.
12392 (cp_set_block_scope): Delete #if 0.
12393 (cp_lookup_nested_type): Handle types nested within classes.
12394 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
12395 when appropriate.
12396 (add_partial_symbol): Add the name of the enclosing namespace to
12397 types.
12398 (pdi_needs_namespace): New.
12399 (add_partial_namespace): Tweak comment.
12400 (add_partial_structure): New.
12401 (psymtab_to_symtab_1): Initialize processing_current_prefix
12402 here...
12403 (process_die): instead of here.
12404 (read_structure_scope): Try to figure out the name of the class or
12405 namespace that the structure might be defined within.
12406 (read_enumeration): Generate fully-qualified names, if possible.
12407 (read_namespace): Don't set name to NULL.
12408 (die_specification): New.
12409 (new_symbol): Generate fully-qualified names for types.
12410 (read_type_die): Determine appropriate prefix.
12411 (determine_prefix): New.
12412 (typename_concat): New.
12413 (class_name): New.
12414 * valops.c (value_aggregate_elt): Pass NOSIDE to
12415 value_struct_elt_for_reference.
12416 (value_struct_elt_for_reference): Make static, add NOSIDE
12417 parameter, call value_maybe_namespace_elt as a last resort.
12418 (value_namespace_elt): Break out code into
12419 value_maybe_namespace_elt.
12420 (value_maybe_namespace_elt): New.
12421
87783b8b
AC
124222004-01-12 Andrew Cagney <cagney@redhat.com>
12423
12424 * mips-tdep.c (mips_convert_register_p): Handle both raw and
12425 cooked floating-point registers.
12426 (mips_gdbarch_init): Set convert_register_p, register_to_value,
12427 and value_to_register.
12428
6503b91e
AC
124292004-01-13 Andrew Cagney <cagney@redhat.com>
12430
12431 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
12432 * gdbarch.c: Re-generate.
12433 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
12434 FUNCTION_START_OFFSET.
12435 * v850-tdep.c (v850_gdbarch_init): Ditto.
12436 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
12437 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
12438 * sh-tdep.c (sh_gdbarch_init): Ditto.
12439 * s390-tdep.c (s390_gdbarch_init): Ditto.
12440 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12441 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
12442 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12443 * mips-tdep.c (mips_gdbarch_init): Ditto.
12444 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12445 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
12446 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12447 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
12448 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12449 * i386-tdep.c (i386_gdbarch_init): Ditto.
12450 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12451 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12452 * frv-tdep.c (frv_gdbarch_init): Ditto.
12453 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12454 * cris-tdep.c (cris_gdbarch_init): Ditto.
12455 * avr-tdep.c (avr_gdbarch_init): Ditto.
12456 * arm-tdep.c (arm_gdbarch_init): Ditto.
12457 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12458
ea1dd7bc
DJ
124592004-01-13 Daniel Jacobowitz <drow@mvista.com>
12460
12461 * infrun.c (follow_fork_mode_ask): Remove.
12462 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
12463 (follow_fork): Simplify and remove internal error for
12464 follow_fork_mode_ask.
12465 (_initialize_infrun): Update "set follow-fork-mode" help text.
12466
0f0cffd2
AC
124672004-01-13 Andrew Cagney <cagney@redhat.com>
12468
12469 * configure.in: Update copyright year.
12470 (build_warnings): Add -Wunused-label.
12471 * configure: Re-generate.
12472
de38af99
AC
124732004-01-12 Andrew Cagney <cagney@redhat.com>
12474
954a7fba
AC
12475 * exec.h (exec_ops): Make "extern".
12476
de38af99
AC
12477 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
12478 the function is void.
12479 (mips_pseudo_register_write): Ditto.
12480
1a111ce3
AC
124812004-01-12 Andrew Cagney <cagney@redhat.com>
12482
12483 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
12484 call. Never defined.
12485 * sparc-tdep.h (struct frame_info): Add opaque declaration.
12486 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
12487 (struct sparc_gregset, struct regcache): Ditto.
12488 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
12489
48efe704
AC
124902004-01-12 Andrew Cagney <cagney@redhat.com>
12491
12492 * mi/ChangeLog: Delete file. Renamed to ...
12493 * mi/ChangeLog-1999-2003: New file.
12494 * tui/ChangeLog: Delete file. Renamed to ...
12495 * tui/ChangeLog-1998-2003: New file.
fe61caab 12496
a54124c5
MK
124972004-01-11 Mark Kettenis <kettenis@gnu.org>
12498
2ca62865
MK
12499 * sparc64nbsd-tdep.c: Include "regset.h".
12500 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
12501 Remove variables.
12502 (fetch_core_registers): Remove function.
12503 (sparc64nbsd_core_fns): Remove variable.
12504 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
12505 functions.
12506 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
12507 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
12508 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
12509
ca9d58e9
MK
12510 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
12511 sparc_extract_struct_value_address.
12512 (sparc32_gdbarch_init): Set extract_struct_value_address.
12513 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
12514 function.
12515 (sparc64_init_abi): Set extract_struct_value_address. Don't set
12516 return_value_on_stack.
12517
3cc87ec0
MK
12518 * NEWS: Mention that %cs and %ss have been added to the AMD64
12519 configurations
12520
5bf00f29
MK
12521 * frame.c: Update copyright year.
12522 (get_prev_frame): Improve comment.
12523
4f7ec84e
MK
12524 * sparc64fbsd-tdep.c: Include "regset.h".
12525 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12526 Remove variables.
12527 (fetch_core_registers): Remove function.
12528 (sparc64fbsd_core_fns): Remove variable.
12529 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
12530 functions.
12531 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
12532 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
46b58ce9 12533 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
4f7ec84e 12534
4e7b0cd3
MK
12535 * sparcnbsd-tdep.c: Include "regset.h".
12536 (fetch_core_registers): Remove function.
12537 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
12538 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
12539 functions.
12540 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
12541 TDEP->fpregset.
46b58ce9 12542 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
4e7b0cd3 12543
a54124c5
MK
12544 * sparc-tdep.h (struct regset): Provide opaque declaration.
12545 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
12546 fpregset and sizeof_fpregset members.
12547 * sparc-tdep.c (struct regset): Provide opaque declaration.
12548 (sparc_regset_from_core_section): New function.
12549 (sparc32_gdbarch_init): Initialize TDEP->gregset,
12550 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
12551 Set regset_from_core_section when appropriate.
12552
29ff87c5
MK
125532004-01-10 Mark Kettenis <kettenis@gnu.org>
12554
79b1ab3d
MK
12555 * x86-64-tdep.c (amd64_non_pod_p): New function.
12556 (amd64_classify_aggregate): Return class memory for non-POD
12557 C++ structure types.
12558
6470d250
MK
12559 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
12560 argument. Use it to reserve a register if necessary.
12561 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
12562 amd64_push_arguments.
12563
562c50c2
MK
12564 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
12565
af233647
MK
12566 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
12567 register numbers in comments.
12568 * x86-64-tdep.h: Update copyright year.
12569 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
12570 Adjust for addition of %cs and %ss.
12571 * amd64fbsd-nat.c: Update copyright year.
12572 (reg_offset): Add register offsets for %cs and %ss.
12573 * amd64fbsd-tdep.c: Update copyright year.
12574 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
12575 (amd64fbsd_sc_reg_offset): Likewise.
12576 * x86-64-linux-nat.c: Update copyright year.
12577 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
12578 and %ss.
12579 * amd64nbsd-nat.c: Update copyright year.
12580 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
12581 * amd64nbsd-tdep.c: Update copyright year.
12582 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
12583 * x86-64-linux-tdep.c: Update copyright year.
12584 (user_to_gdb_regmap): Add mapping for %cs and %ss.
12585 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
12586 * regformats/reg-x86-64.dat: Add %cs and %ss.
12587
29ff87c5
MK
12588 * blockframe.c (inside_entry_func): Reformat. Introduce new local
12589 variables to prevent long lines. Update comments to reflect
12590 reality.
12591
38d518c9
EZ
125922004-01-09 David Carlton <carlton@kealia.com>
12593
12594 Checked in by Elena Zannoni <ezannoni@redhat.com>.
12595 * dwarf2read.c (read_namespace): Pull out name-generating code
12596 into namespace_name. Rename previous_namespace to previous_prefix
12597 and processing_current_namespace to processing_current_prefix..
12598 (namespace_name): New function.
12599 (add_partial_symbol): Substitute uses of pdi->name with
12600 actual_name.
12601 * cp-support.h: Rename processing_current_namespace to
12602 processing_current_prefix.
12603 Update copyright year.
12604 * cp-namespace.c: Rename processing_current_namespace to
12605 processing_current_prefix.
12606 Update copyright year.
fe61caab 12607
1e4728e7
AC
126082004-01-09 Andrew Cagney <cagney@redhat.com>
12609
12610 * jv-valprint.c, ser-unix.c: Add missing copyright years.
12611
c77c642a
MK
126122004-01-09 Mark Kettenis <kettenis@gnu.org>
12613
12614 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
12615 complaining.
12616 (process_one_symbol): Deal with N_PATCH stabs.
12617
b44e9041
EZ
126182004-01-09 Elena Zannoni <ezannoni@redhat.com>
12619
12620 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
12621 ifdeffed code.
12622 Update copyright year.
38d518c9 12623
eccfb640
MC
126242004-01-08 Michael Chastain <mec.gnu@mindspring.com>
12625
12626 * config/pa/tm-hppa.h: Update extern declarations for
12627 hppa32_hpux_frame_saved_pc_in_sigtramp,
12628 hppa32_hpux_frame_base_before_sigtramp, and
12629 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
12630
848c5feb
MC
126312004-01-08 Michael Chastain <mec.gnu@mindspring.com>
12632
12633 * config/pa/tm-hppah.h: Update copyright years.
12634
3cc5d663
AC
126352004-01-08 Andrew Cagney <cagney@redhat.com>
12636
12637 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
12638 (mips_o32_reg_struct_has_addr): Delete function.
12639 (mips_gdbarch_init): Update.
12640 (mips_extract_struct_value_address): Delete function.
12641
bfec0b41
JJ
126422004-01-08 David Mosberger <davidm@hpl.hp.com>
12643
12644 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
12645 reality.
12646
16e109ca
AC
126472004-01-07 Andrew Cagney <cagney@redhat.com>
12648
6214a8a1
AC
12649 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
12650 architecture's elf flags (when available).
12651
8d5838b5
AC
12652 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
12653 FPU to the start, check the MIPS FPU when looking for an old
12654 architecture.
12655 (set_mipsfpu_single_command): Update the architecture.
12656 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
12657
480d3dd2
AC
12658 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
12659 (mips_mask_address_p): Add "tdep" parameter.
12660 (show_mask_address, mips_addr_bits_remove): Update.
12661 (mips_dump_tdep): Update.
12662 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
12663 (MIPS_STACK_ARGSIZE): Delete macro.
12664 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
12665 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
12666 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
12667 (mips_dump_tdep): Update.
12668 (MIPS_SAVED_REGSIZE): Delete macro.
12669 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
12670 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
12671 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
12672 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
12673 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
12674 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
12675 (mips_pop_frame, return_value_location): Update.
12676 (mips_n32n64_return_value, mips_dump_tdep): Update.
12677
ec03c1ac
AC
12678 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
12679 MIPS ABI.
12680
16e109ca
AC
12681 * mips-tdep.c: Update copyright.
12682 (mips_gdbarch_init): Merge two code blocks handling the register
12683 name and number layout.
12684
15255275
MS
126852004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
12686
12687 * tracepoint.c (validate_actionline): Fix segv at EOF
12688
9f9057da
MC
126892004-01-07 Michael Chastain <mec.gnu@mindspring.com>
12690
12691 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
12692 properly for static fields.
12693
0127c0d3 126942004-01-06 Jeff Johnston <jjohnstn@redhat.com>
91562f53 12695 Jason Molenda <jmolenda@apple.com>
0127c0d3
JJ
12696
12697 * disasm.c: Update copyright to include 2004.
12698 (do_mixed_source_and_assembly): For uiout asm list
12699 and tuple cleanups, initialize to null_cleanup instead of
fe61caab 12700 NULL and do so prior to loop. Only reset when we close off
0127c0d3 12701 the tuple/list. Move check for whether to close off the
fe61caab 12702 asm tuple/list to after dump_insns call where it will be run
0127c0d3
JJ
12703 on each loop iteration.
12704
5269965e
AC
127052004-01-05 Andrew Cagney <cagney@redhat.com>
12706
54f1137d
AC
12707 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
12708 should be a switch case and not a label.
12709 * mips-tdep.c (mips32_next_pc): Delete unused labels
12710 "greater_equal_branch" and "less_zero_branch".
12711 * jv-valprint.c (java_print_value_fields): Delete unused label
12712 "flush_it".
12713
5269965e
AC
12714 * target.c (unpush_target): Only close a target that is in the
12715 target stack.
12716
dbc22fa1
MK
127172004-01-05 Mark Kettenis <kettenis@gnu.org>
12718
9515395e
MK
12719 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
12720 address from [sp + 64] instead of %o2.
12721
dbc22fa1
MK
12722 * frame.c (get_prev_frame): Don't try to unwind the PC. This
12723 fixes PR backtrace/1476.
12724
5439edaa
AC
127252004-01-05 Andrew Cagney <cagney@redhat.com>
12726
12727 * libunwind-frame.h (struct frame_id): Add opaque declaration,
12728 move to start of file.
12729 * i386-tdep.h (struct regcache): Add opaque declaration.
12730 * config/ia64/nm-linux.h (struct target_ops): Add opaque
12731 declaration.
12732 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
12733 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
12734 * win32-nat.c (fake_create_process): Use ISO C style definition.
12735 * stabsread.c (define_symbol): Delete #ifndef
12736 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
12737 stabs_argument_has_addr call, macro never defined.
12738
19061abe
MC
127392004-01-04 Michael Chastain <mec.gnu@mindspring.com>
12740
12741 * op50-rom.c: Delete.
12742 * w89k-rom.c: Delete.
12743 * Makefile.in: Remove references.
12744
e53bef9f
MK
127452004-01-04 Mark Kettenis <kettenis@gnu.org>
12746
12747 * x86-64-tdep.c: Update copyright year.
12748 (struct amd64_register_info): Rename from x86_64_register_info.
12749 (amd64_register_info): Rename from x86_64_register_info.
12750 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
12751 (amd64_register_name): Rename from x86_64_register_name.
12752 (amd64_register_type): Rename from x86_64_register_type.
12753 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
12754 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
12755 (amd64_dwarf_reg_to_regnum): Rename from
12756 x86_64_dwarf_reg_to_regnum.
12757 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
12758 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
12759 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
12760 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
12761 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
12762 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
12763 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
12764 (amd64_frame_cache): Rename from x86_64_frame_cache.
12765 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
12766 (amd64_frame_prev_register): Rename from
12767 x86_64_frame_prev_register.
12768 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
12769 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
12770 (amd64_sigtramp_frame_cache): Rename from
12771 x86_64_sigtramp_frame_cache.
12772 (amd64_sigtramp_frame_prev_register): Rename from
12773 x86_64_sigtramp_frame_prev_register.
12774 (amd64_sigtramp_frame_unwind): Rename from
12775 x86_64_sigtramp_frame_unwind.
12776 (amd64_sigtramp_frame_sniffer): Rename from
12777 x86_64_sigtramp_frame_sniffer.
12778 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
12779 (amd64_frame_base): Rename from x86_64_frame_base.
12780 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
12781 (amd64_frame_align): Rename from x86_64_frame_align.
12782 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
12783 (amd64_regset_from_core_section): Rename from
12784 x86_64_regset_from_core_section.
12785 (x86_64_init_abi): Update comments.
12786
fca6aa58
NR
127872004-01-04 Nick Roberts <nick@nick.uklinux.net>
12788
12789 * MAINTAINERS (write after approval): Add myself.
12790
8ada74e3
MK
127912004-01-04 Mark Kettenis <kettenis@gnu.org>
12792
12793 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
12794 `float' arguments.
12795
5154b0cd
MK
127962004-01-04 Mark Kettenis <kettenis@gnu.org>
12797
12798 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
12799 such that it mentions a specific version of GCC that exhibits this
12800 bug.
12801
fb316966
MK
128022004-01-03 Mark Kettenis <kettenis@gnu.org>
12803
200cc553
MK
12804 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
12805 structure that has a single `float' member, store it in %f1 in
12806 addition to %f0.
12807
e226a4a0
MK
12808 * sparc-sol2-nat.c: Add missing '\'.
12809
b9d4c5ed
MK
12810 * sparc-tdep.c (sparc32_return_value): New function.
12811 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
12812 Remove functions.
12813 (sparc32_gdbarch_init): Set return_value, don't set
12814 extract_return_value, store_return_value, use_struct_convention
12815 and return_value_on_stack.
12816
fb316966
MK
12817 * sparc-sol2-nat.c: Add missing ')'.
12818
1af510a8
JB
128192004-01-03 J. Brobecker <brobecker@gnat.com>
12820
12821 * infrun.c (handle_step_into_function): New function.
12822 (handle_inferior_event): Extract out some code into the new
12823 function above.
12824
5cf4d23a
JB
128252004-01-03 J. Brobecker <brobecker@gnat.com>
12826
12827 * infrun.c (handle_inferior_event): Move the declaration of
12828 real_stop_pc inside the if blocks where it is used.
12829
60af1db2
MK
128302004-01-03 Mark Kettenis <kettenis@gnu.org>
12831
12832 * sparc64-tdep.c (sparc64_16_byte_align_p)
12833 (sparc64_store_floating_fields, sparc64_store_floating_fields):
12834 Use check_typedef to get subtypes of structures and unions.
12835 (sparc64_store_return_value): Fix calculation of the appropriate
12836 offset into VALBUF when storing a structure or union.
12837 (sparc64_return_value): New function.
12838 (sparc64_use_struct_convention): Remove function.
12839 (sparc64_init_abi): Set return_value, don't set
12840 extract_return_value, store_return_value and
12841 use_struct_convention.
12842
1a901d3f
EZ
128432004-01-03 Eli Zaretskii <eliz@elta.co.il>
12844
12845 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
12846 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
12847 gdb/config/alpha/xm-alphaosf.h,
12848 gdb/config/powerpc/tm-ppcle-eabi.h,
12849 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
12850 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
12851 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
12852 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
12853 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
12854 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
12855 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
12856 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
12857 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
12858 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
12859 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
12860 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
12861 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
12862 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
12863 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
12864 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
12865 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
12866 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
12867 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
12868 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
12869 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
12870 Remove lines for .cvsignore files.
12871
ef52e463
JB
128722004-01-03 J. Brobecker <brobecker@gnat.com>
12873
12874 * infrun.c: Back out the previous change.
12875
cb1bf9dc
MK
128762004-01-03 Mark Kettenis <kettenis@gnu.org>
12877
f0424ef6
MK
12878 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
12879 sparc-*-sunos4* to the list of REMOVED configurations.
12880
cb1bf9dc
MK
12881 * configure.tgt: Add back sparc-*-vxworks*.
12882 * remote-vxsparc.c: Remove all includes except for "defs.h",
12883 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
12884 Include "sparc-tdep.h".
12885 (SPARC_R_G1): New define.
12886 (vxsparc_gregset): New variable.
12887 (ext_format_sparc): Remove extern declaration.
12888 (vx_read_register): Rewrite to use sparc32_supply_gregset and
12889 sparc32_supply_fpregset.
12890 (vx_write_register): Rewrite to use sparc32_collect_gregset,
12891 sparc_collect_rwindow and sparc32_collect_fpregset.
12892 * config/sparc/tm-vxworks.h: New file, based on recently removed
12893 tm-vxsparc.h.
12894 * config/sparc/vxworks.mt: New file, based on recently removed
12895 vxworks.mt.
fe61caab 12896
5e938f9f
JB
128972004-01-03 J. Brobecker <brobecker@gnat.com>
12898
12899 * infrun.c (handle_step_into_function): New function.
12900 (handle_inferior_event): Extract out some code into the new
12901 function above.
12902
386c036b
MK
129032004-01-02 Mark Kettenis <kettenis@gnu.org>
12904
12905 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
12906 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
12907 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
12908 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
12909 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
12910 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
12911 (sparc_nat_h): New variable.
12912 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
12913 (tm-sun4os4.h): Remove dependency.
12914 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
12915 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
12916 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
12917 sparc-tdep.o): Update dependencies.
12918 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
12919 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
12920 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
12921 dependencies.
12922 * configure.host: Remove existing sparc-*-lynxos*,
12923 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
12924 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
12925 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
12926 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
12927 triplets.
12928 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
12929 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
12930 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
12931 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
12932 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
12933 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
12934 sparc64-*-solaris2* and sparc64-*-* triplets.
12935 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
12936 "symtab.h" and "objfiles.h".
12937 (BIAS): Remove define.
12938 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
12939 (X_DISP19): Remove macros.
12940 (sparc_fetch_instruction): Remove function.
12941 (struct gdbarch_tdep): Remove definition.
12942 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
12943 (sparc_breakpoint_from_pc): Remove function.
12944 (struct sparc64_frame_cache): Remove definition.
12945 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
12946 sparc64_unwind_pc): Remove functions.
12947 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
12948 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
12949 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
12950 (sparc64_frame_cache): Change return type to `struct
12951 sparc_frame_cache *'. Simply call sparc_frame_cache.
12952 (sparc64_frame_this_id, sparc64_frame_prev_register,
12953 sparc64_frame_base_address): Use `struct sparc_frame_cache'
12954 instead of `struct sparc64_frame_cache.
12955 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
12956 sparc_analyze_control_transfer, sparc_software_single_step,
12957 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
12958 _initialize_sparc64_tdep): Remove functions.
12959 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
12960 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
12961 macros.
12962 (sparc64_supply_gregset, sparc64_collect_gregset,
12963 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
12964 (sparc64_init_abi): New function.
12965 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
12966 inclusion guard. Include "sparc-tdep.h".
12967 (BIAS): Define.
12968 (r_tstate_offset, r_fprs_offset): New defines.
12969 (enum sparc_regnum): Remove defenition.
12970 (enum sparc64_regnum): Reformat.
12971 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
12972 (sparc64_init_abi, sparc64_supply_gregset,
12973 sparc64_collect_gregset, sparc64_supply_fpregset,
12974 sparc64_collect_fpregset): New prototypes.
12975 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
12976 Add extern declarations.
12977 (sparc64_sol2_init_abi): New prototype.
12978 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12979 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12980 prototypes.
12981 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
12982 "sparnbsd-nat.h".
12983 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
12984 functions.
12985 (_initialize_sparc64fbsd_nat): Remove initialization of
12986 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
12987 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
fe61caab 12988 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
386c036b
MK
12989 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
12990 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
12991 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
12992 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
12993 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
12994 (sparc64fbsd_r_y_offset): Remove variables.
12995 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
12996 Make static and const.
12997 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
12998 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
12999 functions.
13000 (sparc64fbsd_gregset): New variable.
13001 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
13002 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
13003 and sparc64_supply_fpregset.
13004 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
13005 (sparc64fbsd_sigtramp_frame_this_id)
13006 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
13007 (sparc64fbsd_sigtramp_frame_unwind): New variable.
13008 (sparc64fbsd_sigtramp_frame_sniffer): New function.
13009 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
13010 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
13011 * sparcnbsd-tdep.c: Update copyright year. Include
13012 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
13013 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
13014 "value.h" and "sparcnbsd-tdep.h".
13015 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
13016 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
13017 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
13018 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
13019 defines.
13020 (sparcnbsd_gregset): New variable.
13021 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
13022 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
13023 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
13024 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
13025 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
13026 variables.
13027 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
13028 (sparc32nbsd_sigcontext_frame_this_id)
13029 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
13030 (sparc32nbsd_sigcontext_frame_unwind): New variable.
13031 (sparc32nbsd_sigtramp_frame_sniffer): New function.
13032 (sparcnbsd_get_longjmp_target_32,
13033 sparcnbsd_get_longjmp_target_64): Remove functions.
13034 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
13035 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
13036 sparcnbsd_init_elf): Remove.
13037 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
13038 (sparcnbsd_elf_init_abi): New functions.
13039 (_initialize_sparcnbsd_tdep): New prototype.
13040 (_initialize_sparnbsd_tdep): Update.
13041 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
13042 corelow.o. Add sparc64-nat.o and sparc-nat.o.
13043 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
13044 * config/sparc/linux.mh: Update comment.
13045 (XM_FILE, HOST_IPC): Remove variables.
13046 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
13047 sparc-linux-nat.o.
13048 * config/sparc/linux.mt: Update comment.
13049 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
13050 * config/sparc/nbsd.mt: Reformat.
13051 * config/sparc/nbsd64.mh: Update comment.
13052 (NATDEPFILES): Add sparc-nat.o.
13053 * config/sparc/nbsd64.mt: Update comment.
13054 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
13055 (TM_FILE): Set to tm-nbsd.h.
13056 * config/sparc/nbsdelf.mh: Update comment.
13057 (NATDEPFILES): Add sparc-nat.o.
13058 (XM_FILE): Delete.
13059 * config/sparc/nbsdaout.mh: Update comment.
13060 (NATDEPFILES): Add sparc-nat.o
13061 (XM_FILE): Delete.
13062 * config/sparc/nm-linux.h: Update copyright year. Don't include
13063 "config/nm-svr4.h" and "solib.h". Add protection against multiple
13064 inclusion.
13065 (KERNEL_U_SIZE): Remove define.
13066 (kernel_u_size): Remove prototype.
13067 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
13068 * config/sparc/nm-nbsd.h: Update copyright. Don't include
13069 "regcache.h".
13070 (CHILD_PREPARE_TO_STORE): Remove define.
13071 * config/sparc/nm-nbsdaout.h: Tweak some comments.
13072 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
13073 sparcnbsd-nat.c: Rewrite files.
13074 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
13075 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
13076 sparcnbsd-tdep.h: Remove files.
13077 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
13078 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
13079 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
13080 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
13081 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
13082 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
13083 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
13084 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
13085 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
13086 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
13087 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
13088 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
13089 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
13090 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
13091 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
13092 * config/sparc/linux64.mh, config/sparc/linux64.mt,
13093 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
13094 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
13095 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
13096
ee84457a
AC
130972004-01-02 Andrew Cagney <cagney@redhat.com>
13098
13099 From 2003-12-18 Kazuhiro Inaoka:
13100 * configure.host: Add m32r-linux target.
13101
0bc2134e
MC
131022004-01-02 Michael Chastain <mec.gnu@mindspring.com>
13103
13104 * top.c (print_gdb_version): Update year to 2004.
13105
89a72f9c
MM
131062004-01-02 Mark Mitchell <mark@codesourcery.com>
13107
13108 * MAINTAINERS: Add myself to the write-after-approval category.
13109
86b013ed
DJ
131102004-01-02 Daniel Jacobowitz <drow@mvista.com>
13111
13112 From Bernardo Innocenti <bernie@develer.com>:
13113 * configure.tgt: Add uClinux target.
13114
e42c9534
AC
131152004-01-02 Andrew Cagney <cagney@redhat.com>
13116
13117 * utils.c (do_my_cleanups): Make static, add forward declaration.
13118 * defs.h (do_my_cleanups): Delete declaration.
13119
162467d3
EZ
131202004-01-02 Eli Zaretskii <eliz@elta.co.il>
13121
13122 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
13123 bfd/ChangeLog-0203.
13124
78434e59
MK
131252004-01-02 Mark Kettenis <kettenis@gnu.org>
13126
13127 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
13128 in <machine/reg.h>.
13129 * configure, config.in: Regenerate.
13130
48efe704
AC
13131For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
13132tui/ChangeLog-1998-2003.
c906108c
SS
13133\f
13134Local Variables:
13135mode: change-log
13136left-margin: 8
13137fill-column: 74
13138version-control: never
13139End: