1 2003-05-13 Ian Lance Taylor <ian@airs.com>
3 * MAINTAINERS (write after approval): Add myself.
5 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6 second and third arguments.
7 * ser-tcp.c (_initialize_ser_tcp): Likewise.
8 * ser-unix.c (_initialize_ser_hardwire): Likewise.
10 2003-05-13 Andrew Cagney <cagney@redhat.com>
12 * defs.h (store_address): Delete declaration.
13 findvar.c (store_address): Delete function.
14 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
15 store_unsigned_integer.
16 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
17 * v850-tdep.c (v850_push_arguments): Ditto.
18 * sparc-tdep.c (sparc_get_saved_register): Ditto.
19 * sh-tdep.c (sh64_get_saved_register): Ditto.
20 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
21 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
22 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
23 (mips_get_saved_register): Ditto.
24 * ia64-tdep.c (ia64_get_saved_register): Ditto.
25 (find_func_descr, ia64_push_arguments): Ditto.
26 * i386-tdep.c (i386_push_arguments): Ditto.
27 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
28 * frv-tdep.c (frv_push_arguments): Ditto.
29 * frame.c (legacy_saved_regs_prev_register): Ditto.
30 (deprecated_generic_get_saved_register): Ditto.
31 * findvar.c (unsigned_address_to_pointer): Ditto.
32 * dwarf2read.c (dwarf2_const_value): Ditto.
33 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
34 * alpha-tdep.c (alpha_push_arguments): Ditto.
36 2003-05-12 J. Brobecker <brobecker@gnat.com>
38 * NEWS: Mention that the hppa-hpux port has been partially
39 multiarched (32bit ABIT only, so far).
41 2003-05-11 Andrew Cagney <cagney@redhat.com>
43 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
44 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
45 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
46 sim/testsuite/sim/arm/misaligned2.ms, and
47 sim/testsuite/sim/arm/misaligned3.ms.
48 * disasm.h (struct ui_file): Add opaque struct declaration.
49 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
50 * frame.h (struct ui_file): Ditto.
52 2003-05-11 Mark Kettenis <kettenis@gnu.org>
54 * value.h: Pretty print.
56 2003-05-10 Mark Kettenis <kettenis@gnu.org>
58 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
60 2003-05-08 Andrew Cagney <cagney@redhat.com>
62 * regcache.h (max_register_size): Delete declaration.
63 * regcache.c (max_register_size): Delete function.
64 (struct regcache_descr): Delete field "max_register_size".
65 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
66 registers fit in MAX_REGISTER_SIZE.
67 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
68 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
69 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
70 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
71 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
72 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
73 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
74 * dve3900-rom.c, hppa-tdep.c: Ditto.
76 2003-05-08 David Carlton <carlton@math.stanford.edu>
78 * valops.c (push_word): Fix typo.
80 2003-05-08 Andrew Cagney <cagney@redhat.com>
82 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
83 * gdbarch.h: Re-generate.
84 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
85 (legacy_max_register_raw_size): Delete declaration.
86 * regcache.c (legacy_max_register_raw_size): Delete function.
87 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
88 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
89 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
90 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
91 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
92 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
93 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
94 * findvar.c, dwarf2cfi.c: Ditto.
96 2003-05-08 Andrew Cagney <cagney@redhat.com>
98 * mips-tdep.c (read_signed_register): New function, moved to here
100 (read_signed_register_pid): Ditto.
101 * regcache.c (read_signed_register_pid): Delete function, moved to
103 (read_signed_register): Ditto.
104 * regcache.h (read_signed_register): Delete declaration.
105 (read_signed_register_pid): Delete declaration.
107 2003-05-08 Andrew Cagney <cagney@redhat.com>
109 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
110 * gdbarch.h: Re-generate.
111 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
112 (legacy_max_register_virtual_size): Delete declaration.
113 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
114 * d10v-tdep.c (d10v_print_registers_info): Ditto.
115 * tracepoint.c (memrange_sortmerge): Ditto.
116 * sparc-tdep.c (sparc_print_registers): Ditto.
117 * regcache.c (legacy_max_register_virtual_size): Delete function.
119 2002-05-08 J. Brobecker <brobecker@gnat.com>
121 * fork-child.c (escape_bang_in_quoted_argument): New function.
122 (fork_inferior): Escape '!' characters in quoted arguments
125 2003-05-08 J. Brobecker <brobecker@gnat.com>
127 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
128 the language of the CU is not currently supported by GDB.
130 2003-05-08 J. Brobecker <brobecker@gnat.com>
132 * defs.h (language): Add language_minimal enum value.
133 * c-lang.c (minimal_language_defn): New language definition.
134 (_initialize_c_language): Add the new minimal language to the list
135 of languages known to GDB.
137 2003-05-08 Kevin Buettner <kevinb@redhat.com>
139 * frame.c (get_frame_type): Don't attempt to lazily initialize
140 frame's unwinder for legacy frames.
142 2003-05-07 Andrew Cagney <cagney@redhat.com>
144 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
145 and "regcache" parameters.
146 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
148 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
150 * dwarf2read.c (dwarf_decode_lines): Only use output of
151 check_cu_functions() when calling record_line(). Do not update
154 2003-05-07 Andrew Cagney <cagney@redhat.com>
156 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
159 2003-05-07 Jim Blandy <jimb@redhat.com>
161 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
162 'maint info symtabs' and 'maint info psymtabs'.
163 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
164 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
165 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
166 Declarations updated.
167 * maint.c (maintenance_list_command): Delete.
168 (_initialize_maint_cmds): Update calls to add_cmd.
169 * gdbcmd.h (maintenancelistlist): Delete declaration.
170 * cli/cli-cmds.c (maintenancelistlist): Delete.
171 (init_cmd_lists): Don't initialize it.
172 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
174 2003-05-07 Andrew Cagney <cagney@redhat.com>
176 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
178 (d10v_print_registers_info): Update.
179 (d10v_dmap_register, d10v_imap_register): Delete functions.
180 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
182 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
183 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
184 * arch-utils.c (generic_remote_translate_xfer_address): Add
185 "regcache" and "gdbarch" parameters.
186 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
187 parameter. Change class to multi-arch.
188 * gdbarch.h, gdbarch.c: Re-generate.
189 * remote.c (remote_xfer_memory): Use
190 gdbarch_remote_translate_xfer_address.
192 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
194 * infrun.c (prev_pc): Move declaration ahead of proceed().
195 (proceed): Refresh prev_pc value before resuming.
196 (stop_stepping): Remove code to refresh prev_pc.
198 2003-05-06 Kris Warkentin <kewarken@qnx.com>
200 * nto-tdep.c: Removed stray comment.
202 2003-05-06 Kris Warkentin <kewarken@qnx.com>
204 * i386-nto-tdep.c: Fix old K&R function definitions.
205 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
206 Also change add_show_from_set() call to add_setshow_cmd().
207 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
209 2003-05-05 Andrew Cagney <cagney@redhat.com>
211 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
212 (fprint_dummy_frames): New function.
213 (maintenance_print_dummy_frames): New function.
214 (_initialize_dummy_frame): Add command "maint print dummy-frames".
215 * frame.c (fprint_frame_id): Make global.
216 * frame.h (fprint_frame_id): Declare.
217 * Makefile.in (dummy-frame.o): Update dependencies.
219 2003-05-05 Andrew Cagney <cagney@redhat.com>
221 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
222 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
223 SIZEOF_CALL_DUMMY_WORDS.
224 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
225 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
226 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
227 CALL_DUMMY_BREAKPOINT_OFFSET.
228 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
229 CALL_DUMMY_START_OFFSET.
230 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
231 * gdbarch.h, gdbarch.c: Re-generate.
232 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
233 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
234 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
235 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
236 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
237 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
238 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
239 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
240 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
241 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
242 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
243 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
244 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
245 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
246 * config/sparc/tm-sparc.h: Update.
248 2003-05-05 Kris Warkentin <kewarken@qnx.com>
250 * configure.tgt: Add i[3456]86-*-nto*.
251 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
252 * nto-tdep.c: New file. Neutrino target support routines.
253 * nto-tdep.h: New file. Neutrino target header.
254 * config/tm-qnxnto.h: New file.
255 * config/i386/i386nto.mt: New file.
256 * config/i386/tm-i386nto.h: New file.
258 2003-05-04 Andrew Cagney <cagney@redhat.com>
260 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
261 (load_infrun_state): Ditto.
262 (struct thread_info): Drop "prev_func_name" field.
263 * thread.c (load_infrun_state): Update.
264 (save_infrun_state): Update.
265 * infrun.c (prev_func_name): Delete variable.
266 (init_wait_for_inferior): Do not clear prev_func_name.
267 (stop_stepping, keep_going, context_switch): Do not swap
269 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
270 instead of PC_IN_SIGTRAMP.
272 2003-05-04 Andrew Cagney <cagney@redhat.com>
274 * sentinel-frame.c (sentinel_frame_prev_register): Replace
275 REGISTER_BYTE with register_offset_hack.
276 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
277 that REGISTER_BYTE is consistent with the regcache.
278 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
279 * gdbarch.h, gdbarch.c: Regenerate.
281 2003-05-04 Mark Kettenis <kettenis@gnu.org>
283 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
284 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
286 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
288 2003-05-03 J. Brobecker <brobecker@gnat.com>
290 From Thierry Schneider <tpschneider1@yahoo.com>
291 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
292 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
293 (mi-cmd-symbol.o): Add rule.
295 2003-05-03 Andrew Cagney <cagney@redhat.com>
297 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
298 comments noteing that it replaces the old FIX_CALL_DUMMY code.
299 * gdbarch.h, gdbarch.c: Re-generate.
300 * d10v-tdep.c (d10v_push_dummy_code): New function.
301 (d10v_gdbarch_init): Set push_dummy_code.
302 * infcall.c (legacy_push_dummy_code): New function.
303 (generic_push_dummy_code): New function.
304 (push_dummy_code): New function.
305 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
306 instead of dummy_addr, to push_dummy_call. Move call to
307 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
309 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
311 2003-05-03 Andrew Cagney <cagney@redhat.com>
313 * disasm.h (print_insn): Declare.
314 * disasm.c (init_gdb_disassemble_info): New function.
315 (gdb_disassembly): Call init_gdb_disassemble_info.
316 (gdb_print_insn): New function.
317 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
318 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
319 * mcore-tdep.c: Include "disasm.h"
320 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
321 * d10v-tdep.c: Include "disasm.h".
322 (display_trace): Call gdb_print_insn, instead of print_insn.
323 (print_insn): Delete function.
324 * printcmd.c: Include "disasm.h".
325 (print_insn): Delete function.
326 (print_formatted): Call gdb_print_insn, instead of print_insn.
327 * Makefile.in (printcmd.o): Update dependencies.
328 (mcore-tdep.o, d10v-tdep.o): Ditto.
330 2003-05-02 Andrew Cagney <cagney@redhat.com>
332 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
333 PC_REGNUM, re-indent.
334 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
337 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
338 * gdbarch.h, gdbarch.c: Re-generate.
339 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
340 register_virtual_size, pc_regnum, or register_bytes.
341 (D10V_PC_REGNUM): Rename _PC_REGNUM.
342 (d10v_register_type): Use D10V_PC_REGNUM.
343 (d10v_print_registers_info, d10v_read_pc): Ditto.
344 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
345 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
347 2003-05-02 David Carlton <carlton@bactrian.org>
349 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
350 the name with mstrsave.
352 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
354 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
355 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
356 (host_charset_name, target_charset_name): New vars for use by
358 (host_charset_enum, target_charset_enum): New enums for set/show
360 (set_charset_sfunc, set_host_charset_sfunc,
361 set_target_charset_sfunc): New functions.
362 (set_host_charset, set_target_charset): Make static.
363 (list_charsets, set_host_charset_command,
364 set_target_charset_command): Delete functions.
365 (show_charset_command): Rewrite as....
366 (show_charset): Hook this up with the set/show command mechanism.
367 (_initialize_charset): Change names of charsets to match the
368 set/show enums. Use host_charset_name and target_charset_name.
369 Use set/show mechanism for charset, host-charset, target-charset
370 commands. Do not make 'show host-charset' and 'show
371 target-charset' be aliases of 'show charset'.
373 * charset.h (set_host_charset, set_target_charset): Don't export,
374 they are not used outside the file.
376 2003-05-01 Andrew Cagney <cagney@redhat.com>
378 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
379 (gdb_disassembly): Make "di" non static, always initialize and
380 cleanup. Always use dis_asm_read_memory.
381 (gdb_dis_asm_read_memory): Delete function.
383 2003-05-01 Andrew Cagney <cagney@redhat.com>
385 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
386 (d10v_gdbarch_init): Set frame_align instead of stack_align.
388 2003-04-30 Andrew Cagney <cagney@redhat.com>
390 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
391 "tm_print_insn_info".
392 (TARGET_PRINT_INSN_INFO): Delete macro.
393 (dis_asm_read_memory): Delete function declaration.
394 (dis_asm_memory_error, dis_asm_print_address): Ditto.
395 (tm_print_insn_info): Delete variable definition.
396 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
397 * gdbarch.h, gdbarch.c: Re-generate.
398 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
399 "deprecated_tm_print_insn_info".
400 * mcore-tdep.c (mcore_dump_insn): Ditto.
401 * mips-tdep.c (mips_gdbarch_init): Ditto.
402 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
403 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
404 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
405 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
406 instead of TARGET_PRINT_INSN_INFO, add comment.
407 * s390-tdep.c (s390_get_frame_info): Instead of
408 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
409 (s390_check_function_end, s390_is_sigreturn): Ditto.
410 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
411 (dis_asm_memory_error, dis_asm_print_address): Ditto.
412 * disasm.c: Include "gdbcore.h".
413 (_initialize_disasm): New function, initialize
414 "deprecated_tm_print_insn_info".
415 (deprecated_tm_print_insn_info): New variable.
416 (dis_asm_read_memory): Moved from "corefile.c", made static.
417 (dis_asm_print_address, dis_asm_memory_error): Ditto.
418 * Makefile.in (disasm.o): Update dependencies.
420 2003-04-30 Andrew Cagney <cagney@redhat.com>
422 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
424 2003-04-29 Adam Fedor <fedor@gnu.org>
426 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
427 * infcall.c (find_function_addr): Make non-static.
428 * infcall.h (find_function_addr): Declare.
429 * Makefile.in (eval.o): Update dependencies.
431 2003-04-28 Adam Fedor <fedor@gnu.org>
433 * symtab.c (symbol_find_demangled_name): Check for and demangle
435 (symbol_init_demangled_name): Init for language_objc as well.
437 2003-04-28 Andrew Cagney <cagney@redhat.com>
439 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
440 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
441 * gdbarch.h, gdbarch.c: Re-generate.
442 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
443 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
444 * inferior.h (deprecated_read_fp): Rename read_fp.
445 (generic_target_read_fp): Delete declaration.
446 * regcache.c (generic_target_read_fp): Delete function.
447 (deprecated_read_fp): Replace read_fp, use
448 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
449 * d10v-tdep.c (d10v_read_fp): Delete function.
450 (d10v_gdbarch_init): Do not set deprecated_read_fp.
452 * sparc-tdep.c (sparc_gdbarch_init): Do not set
453 deprecated_target_read_fp to generic_target_read_fp.
454 * sh-tdep.c (sh_gdbarch_init): Ditto.
455 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
456 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
457 * frv-tdep.c (frv_gdbarch_init): Ditto.
459 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
460 deprecated_fp_regnum.
461 * x86-64-tdep.c (x86_64_init_abi): Ditto.
462 * vax-tdep.c (vax_gdbarch_init): Ditto.
463 * v850-tdep.c (v850_gdbarch_init): Ditto.
464 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
465 * sh-tdep.c (sh_gdbarch_init): Ditto.
466 * s390-tdep.c (s390_gdbarch_init): Ditto.
467 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
468 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
469 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
470 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
471 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
472 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
473 * i386-tdep.c (i386_gdbarch_init): Ditto.
474 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
475 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
476 * frv-tdep.c (frv_gdbarch_init): Ditto.
477 * cris-tdep.c (cris_gdbarch_init): Ditto.
478 * avr-tdep.c (avr_gdbarch_init): Ditto.
479 * arm-tdep.c (arm_gdbarch_init): Ditto.
480 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
482 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
483 * v850-tdep.c (v850_gdbarch_init): Ditto.
484 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
485 * sh-tdep.c (sh_gdbarch_init): Ditto.
486 * s390-tdep.c (s390_gdbarch_init): Ditto.
487 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
488 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
489 * mips-tdep.c (mips_gdbarch_init): Ditto.
490 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
491 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
492 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
493 * frv-tdep.c (frv_gdbarch_init): Ditto.
494 * avr-tdep.c (avr_gdbarch_init): Ditto.
495 * arm-tdep.c (arm_gdbarch_init): Ditto.
497 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
498 DEPRECATED_FP_REGNUM.
499 (vax_push_dummy_frame, vax_pop_frame): Ditto.
500 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
501 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
502 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
503 (sparc32_register_virtual_type): Ditto.
504 * sh-tdep.c (sh64_frame_chain): Ditto.
505 (sh64_get_saved_register, sh64_pop_frame): Ditto.
506 (sh_nofp_frame_init_saved_regs): Ditto.
507 (sh64_nofp_frame_init_saved_regs): Ditto.
508 (sh_fp_frame_init_saved_regs): Ditto.
509 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
510 * remote-e7000.c (fetch_regs_from_dump): Ditto.
511 * procfs.c (procfs_fetch_registers): Ditto.
512 (procfs_store_registers): Ditto.
513 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
514 (store_inferior_registers, fetch_core_registers): Ditto.
515 (fetch_kcore_registers, clear_regs): Ditto.
516 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
517 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
518 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
519 * nlm/i386.c (do_status): Ditto.
520 * mipsv4-nat.c (supply_gregset): Ditto.
521 * mips-tdep.c: Ditto for comments.
522 * mips-nat.c (fetch_inferior_registers): Ditto.
523 (store_inferior_registers, fetch_core_registers): Ditto.
524 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
525 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
526 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
527 (i386_do_pop_frame, i386_register_type): Ditto.
528 * hppa-tdep.c (hppa_frame_chain): Ditto.
529 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
530 (hppa_pop_frame, hppa_read_fp): Ditto.
531 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
532 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
533 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
534 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
535 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
536 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
537 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
538 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
539 * blockframe.c: Ditto for comments.
540 * arch-utils.h: Ditto for comments.
541 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
542 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
543 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
544 * alpha-tdep.h: Ditto for comments.
545 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
546 (alpha_cannot_store_register): Ditto.
547 (alpha_push_dummy_frame): Ditto.
548 * alpha-nat.c (supply_gregset): Ditto.
550 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
551 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
552 * config/sparc/tm-sparc.h: Update comment.
554 * hppa-tdep.c (hppa_init_extra_frame_info): Use
555 deprecated_read_fp instead of TARGET_READ_FP.
556 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
557 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
558 * sparc-tdep.c (sparc_init_extra_frame_info): Use
559 deprecated_read_fp instead of read_fp.
560 * s390-tdep.c (s390_push_arguments): Ditto.
561 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
562 * frame.h: Ditto in comments.
563 * frame.c (legacy_get_prev_frame): Ditto.
564 * dummy-frame.c (dummy_frame_this_id): Ditto.
565 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
567 2003-04-28 Andrew Cagney <cagney@redhat.com>
569 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
570 * gdbarch.h, gdbarch.c: Re-generate.
571 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
572 * vax-tdep.c (_initialize_vax_tdep): Update.
573 * v850-tdep.c (_initialize_v850_tdep): Update.
574 * sparc-tdep.c (_initialize_sparc_tdep): Update.
575 * s390-tdep.c (_initialize_s390_tdep): Update.
576 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
577 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
578 * mips-tdep.c (_initialize_mips_tdep): Update.
579 * mcore-tdep.c (_initialize_mcore_tdep): Update.
580 * m68k-tdep.c (_initialize_m68k_tdep): Update.
581 * ia64-tdep.c (_initialize_ia64_tdep): Update.
582 * hppa-tdep.c (_initialize_hppa_tdep): Update.
583 * h8300-tdep.c (_initialize_h8300_tdep): Update.
584 * frv-tdep.c (_initialize_frv_tdep): Update.
585 * cris-tdep.c (cris_delayed_get_disassembler): Update.
586 (_initialize_cris_tdep): Update.
587 * arch-utils.c (legacy_print_insn): Update.
588 * alpha-tdep.c (_initialize_alpha_tdep): Update.
590 2003-04-26 Adam Fedor <fedor@gnu.org>
592 * linespec.c (decode_objc): New function to decode ObjC calls
593 (decode_line_1): Check for ObjC calls (using decode_objc)
594 * Makefile (linespec.o): Update dependencies.
596 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
598 * breakpoint.h (struct breakpoint_ops): New.
599 (struct breakpoint): Add ops member.
601 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
602 (mention): Use new breakpoint ops member.
603 (set_raw_breakpoint): Initialize ops field to NULL.
604 (print_exception_catchpoint, print_one_exception_catchpoint)
605 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
606 (gnu_v3_exception_catchpoint_ops): New.
607 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
609 2003-04-25 Adam Fedor <fedor@gnu.org>
611 * Makefile.in (COMMON_OBS): Add objc-lang.o
613 2003-04-25 Andrew Cagney <cagney@redhat.com>
615 * d10v-tdep.c (print_insn): Delete function.
616 (display_trace): Use TARGET_PRINT_INSN.
617 (_initialize_d10v_tdep): Do not set tm_print_insn.
618 (d10v_gdbarch_init): Set print_insn.
620 2003-04-25 Andrew Cagney <cagney@redhat.com>
622 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
623 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
624 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
625 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
626 (nr_dmap_regs, a0_regnum): ... new functions.
627 (d10v_print_registers_info): Use a0_regnum, use register_size.
628 (d10v_register_byte): Delete function.
629 (d10v_register_raw_size): Delete function.
630 (d10v_register_type): Use a0_regnum.
631 (d10v_print_registers_info): Use a0_regnum.
632 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
633 (d10v_gdbarch_init): Do not set register_byte or
634 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
635 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
637 (trace_command): Use XCALLOC.
638 (print_insn): Delete reference to tm_print_insn.
639 (saved_regs_unwinder): Use store_unsigned_integer instead of
641 * frame.h (FRAME_OBSTACK_CALLOC): Define
643 2003-04-25 David Carlton <carlton@bactrian.org>
645 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
647 2003-04-24 Adam Fedor <fedor@gnu.org>
649 * objc-lang.c: Include "valprint.h"
650 * Makefile.in (objc-lang.o): Update dependencies.
652 2003-04-24 Adam Fedor <fedor@gnu.org>
654 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
655 architecture dependant compilation and mark as unimplemented
656 (until they get put in the gdbarch vector).
658 2003-04-23 David Carlton <carlton@bactrian.org>
660 * cp-support.c (cp_find_first_component): Accept 'operator' in
663 2003-04-23 Andrew Cagney <cagney@redhat.com>
665 * infcall.c (call_function_by_hand): Eliminate redundant
666 indentation. Move "saved_async" and "old_cleanups" to where they
669 2003-04-23 Andrew Cagney <cagney@redhat.com>
671 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
672 and "buffer". Move the "name" code to where it is needed.
674 2003-04-23 Andrew Cagney <cagney@redhat.com>
676 * infcall.c (call_function_by_hand): Move variables "start_sp",
677 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
678 code to ON_STACK switch branch.
680 2003-04-23 Andrew Cagney <cagney@redhat.com>
682 * infcall.c (call_function_by_hand): Make declaration of "i",
683 "sal", "bpt" and "old_sp" more local to their use. Delete #if
686 2003-04-23 Andrew Cagney <cagney@redhat.com>
688 * infcall.c (call_function_by_hand): Delete variable
689 "n_method_args". Localize "param_type"'s declaration to the loop
690 that it is used. Reinstate code assigning to said variable -
691 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
692 Rationalize code using "param_type".
694 2003-04-22 Andrew Cagney <cagney@redhat.com>
696 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
697 compute the breakpoint address. Only call FIX_CALL_DUMMY when
698 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
699 to DEPRECATED_PUSH_RETURN_ADDRESS.
701 2003-04-22 Kevin Buettner <kevinb@redhat.com>
703 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
704 on the DWARF2 register number prior to fetching a register.
706 2003-04-22 J. Brobecker <brobecker@gnat.com>
708 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
709 Update all the tests using SOFT_FLOAT considering the fact that
710 this macro was always set to 0.
711 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
712 considering the fact that this macro was always set to 0.
713 * hppa-tdep.h (hppa_store_return_value): Likewise.
714 (hppa_extract_return_value): Likewise.
716 2003-04-22 J. Brobecker <brobecker@gnat.com>
718 * config/pa/tm-hppa.h: Remove obsolete code, was used by
719 the hppa-pro target only.
721 2003-04-21 J. Brobecker <brobecker@gnat.com>
723 Ongoing multi-arch conversion effort for HP/UX:
724 * config/pa/tm-hppa.h: Move all macro that are no longer
725 defined now that GDB_MULTI_ARCH is now set to 1 from here...
726 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
728 2003-04-21 J. Brobecker <brobecker@gnat.com>
730 * config/pa/tm-hppa.h: Obsolete a section that was only used
733 2003-04-21 J. Brobecker <brobecker@gnat.com>
735 Ongoing multi-arch conversion for HP/UX.
736 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
737 if already defined (allows hppa64 to stay non-multiarched for now).
738 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
740 2003-04-21 Andrew Cagney <cagney@redhat.com>
742 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
744 2003-04-21 Andrew Cagney <cagney@redhat.com>
746 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
749 2003-04-21 Andrew Cagney <cagney@redhat.com>
751 * infcall.c: New file.
752 * infcall.h: New file.
753 * valarith.c: Include "infcall.h".
754 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
755 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
756 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
757 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
758 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
759 (SFILES): Add "infcall.c"
760 (COMMON_OBS): Add "infcall.o".
761 (infcall.o): Specify dependencies.
762 * value.h (call_function_by_hand): Delete declaration.
763 * inferior.h (run_stack_dummy): Delete declaration.
764 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
765 (run_stack_dummy): Move to "infcall.c", merged into
766 call_function_by_hand.
767 * valops.c (call_function_by_hand): Moved to "infcall.c".
768 (find_function_addr, value_arg_coerce): Ditto.
769 (unwindonsignal_p, coerce_float_to_double): Ditto.
770 (_initialize_valops): Move "set/show coerce-float-to-double", and
771 "set/show unwindonsignal" commands to "infcall.c".
772 * v850-tdep.c, target.h: Update comments.
773 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
774 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
775 (sh64_init_extra_frame_info): Update comments.
776 * mn10300-tdep.c: Update comments.
777 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
778 * config/sparc/tm-sparc.h: Update comments.
779 * breakpoint.h: Update comments.
780 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
781 * arm-tdep.c: Update comment.
783 2003-04-19 Mark Kettenis <kettenis@gnu.org>
785 * i386-tdep.c (i386_num_register_names): New variable.
786 (i386_num_mmx_regs): Renamed from mmx_num_regs.
787 (MM0_REGNUM): Remove redundant parentheses in define.
788 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
789 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
790 i386_mxcsr_regnum_p): Remove redundant parentheses.
791 (i386_register_name): Use i386_num_register_names.
793 * i386-tdep.c (i386_extract_return_value,
794 i386_store_return_value): Correct check for availability of
795 floating-point registers.
797 * i386-tdep.c (i386_frame_num_args): Remove function.
798 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
800 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
801 mmx_regnum_to_fp_regnum. Adjust all callers.
803 * i386-tdep.c (i386_get_longjmp_target): Use
804 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
805 and TARGET_CHAR_BIT. Use extract_typed_address instead of
808 2003-04-19 Mark Kettenis <kettenis@gnu.org>
810 * core-regset.c: Update comments to reflect reality. Re-order
812 (fetch_core_registers): Use switch instead of if. Remove
815 2003-04-18 Jim Blandy <jimb@redhat.com>
817 * s390-tdep.c (s390_frame_align): New function.
818 (s390_gdbarch_init): Register it with the gdbarch object.
820 2003-04-17 Richard Henderson <rth@redhat.com>
822 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
824 2003-04-17 Michael Snyder <msnyder@redhat.com>
825 Karen Bennet <bennet@redhat.com>
827 Committed by Elena Zannoni <ezannoni@redhat.com>
828 * gdb_gcore.sh: New script to create a core dump of a process.
830 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
832 * values.c (value_being_returned): Don't fetch the return
833 value if the return type is void.
835 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
837 * thread-db.c: Reindented.
839 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
841 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
842 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
845 2003-04-16 Kevin Buettner <kevinb@redhat.com>
847 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
848 the size of ``long double'' to 16, instead of 8.
850 2003-04-16 Mark Kettenis <kettenis@gnu.org>
852 * i386-linux-nat.c: Add some whitespace to make things more
854 (fetch_register, store_register, fetch_inferior_registers,
855 store_inferior_registers): Get rid of assignment in if-statement.
856 (store_register): Fix typo in error message.
858 2003-04-16 Andrew Cagney <cagney@redhat.com>
860 * utils.c (xmmalloc): Always allocate something, matches
861 libiberty/xmalloc's semantics.
862 (xmrealloc, xmcalloc): Ditto.
864 2003-04-16 Andrew Cagney <cagney@redhat.com>
866 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
868 (get_frame_type): Initialize unwind and type when needed.
869 (get_frame_id, frame_register_unwind): Ditto.
871 2003-04-16 Andrew Cagney <cagney@redhat.com>
873 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
875 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
876 * sparcl-stub.c: Obsolete file.
877 * config/sparc/tm-sparclet.h: Obsolete file.
878 * sparclet-stub.c: Obsolete file.
879 * sparclet-rom.c: Obsolete file.
880 * sparcl-tdep.c: Obsolete file.
881 * config/sparc/tm-sparclite.h: Obsolete file.
882 * config/sparc/sparclite.mt: Obsolete file.
883 * config/sparc/sparclet.mt: Obsolete file.
884 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
885 sparc86x-*-* obsolete.
887 2003-04-15 David Carlton <carlton@math.stanford.edu>
889 * Makefile.in (SFILES): Add cp-namespace.c.
890 (COMMON_OBS): Add cp-namespace.o.
891 (block.o): Depend on gdb_obstack_h and cp_support_h.
892 (buildsym.o): Depend on cp_support_h.
893 (cp-namespace.o): New.
894 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
895 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
896 (dwarf2read.o): Depend on cp_support_h.
897 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
898 * dwarf2read.c (process_die): Set processing_has_namespace_info,
899 processing_current_namespace.
900 (read_namespace): Update processing_current_namespace; check for
901 anonymous namespaces.
902 (dwarf2_name): New function.
903 (dwarf2_extension): Ditto.
904 * cp-support.h: Update copyright, contributors.
905 Add inclusion guards.
906 Add opaque declaration for structs obstack, block, symbol.
907 (struct using_direct): New struct.
908 Add declarations for cp_find_first_component,
909 cp_entire_prefix_len, processing_has_namespace_info,
910 processing_current_namespace, cp_is_anonymous,
911 cp_add_using_directive, cp_initialize_namespace,
912 cp_finalize_namespace, cp_set_block_scope,
913 cp_scan_for_anonymous_namespaces.
914 * cp-namespace.c: New file.
915 * cp-support.c: Update copyright.
916 Include ctype.h, gdb_assert.h, gdbcmd.h.
917 New variable maint_cplus_cmd_list.
918 (cp_find_first_component): New function.
919 (cp_entire_prefix_len, maint_cplus_command)
920 (first_component_command, _initialize_cp_support): Ditto.
921 * buildsym.c: Include cp-support.h.
922 New variable using_list.
923 (add_symbol_to_list): Check for anonymous namespaces.
924 (finish_block): Set block's scope.
925 (start_symtab): Initialize C++ namespace support.
926 (end_symtab): Finalize C++ namespace support.
927 * block.h: Add opaque declarations for structs
928 block_namespace_info, using_direct, and obstack.
929 Add declarations for block_set_scope and block_set_using.
930 (struct block): Add 'language_specific' member.
931 (BLOCK_NAMESPACE): New macro.
932 * block.c: Include gdb_obstack.h and cp-support.h.
933 (struct block_namespace_info): New struct.
934 (block_set_scope): New function.
935 (block_set_using, block_initialize_namespace): Ditto.
937 2003-04-14 Kevin Buettner <kevinb@redhat.com>
939 * solib-svr4.c (svr4_have_link_map_offsets): New function.
940 (locate_base): Return early if there aren't any link map offsets.
941 (svr4_solib_create_inferior_hook): Warn if shared library support
944 2003-04-14 David Carlton <carlton@math.stanford.edu>
946 * symtab.c (symbol_set_names): Add prefix when storing Java names
947 in hash table. Fix for PR java/1039.
949 2003-04-14 David Carlton <carlton@math.stanford.edu>
951 * symtab.c (symbol_set_names): Rename 'name' arg to
952 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
953 * symtab.h: Change 'name' argument in declaration of
954 symbol_set_names to 'linkage_name'.
955 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
957 2003-04-14 Andrew Cagney <cagney@redhat.com>
959 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
960 return the fully sign-extended register value.
961 (get_frame_pointer): Ditto.
962 (mips_pop_frame): Initialize "proc_desc" after checking for a
965 2003-04-14 Andrew Cagney <cagney@redhat.com>
967 * mips-tdep.c (mips_push_dummy_frame): Delete function.
968 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
969 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
970 (mips_push_register): Delete function.
971 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
974 2003-04-14 Jim Blandy <jimb@redhat.com>
976 * symmisc.c: #include "gdb_regex.h".
977 (maintenance_list_symtabs, maintenance_list_psymtabs): New
979 * maint.c (maintenance_list_command): New function.
980 (_initialize_maint_cmds): Register the above as commands.
981 * symtab.h (maintenance_list_symtabs,
982 maintenance_list_psymtabs): New declarations.
983 * cli/cli-cmds.c (maintenancelistlist): New variable.
984 (init_cmd_lists): Initialize it.
985 * cli/cli-cmds.h (maintenancelistlist): New declaration.
986 * gdbcmd.h (maintenancelistlist): New declaration.
987 * Makefile.in (symmisc.o): Update dependencies.
989 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
991 * s390-nat.c: Include asm/types.h for addr_t.
993 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
995 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
996 actually incoming type.
998 2003-04-13 Andrew Cagney <cagney@redhat.com>
1000 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
1001 get_next_frame and get_frame_saved_regs.
1003 2003-04-13 Andrew Cagney <cagney@redhat.com>
1005 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
1006 of gdbarch_num_regs.
1008 2003-04-13 Andrew Cagney <cagney@redhat.com>
1010 * frame.h: Mention what replaced what in "struct frame_info".
1011 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
1012 deprecated_update_frame_base_hack and
1013 deprecated_update_frame_pc_hack.
1014 * hppa-tdep.c: Ditto.
1016 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
1018 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
1019 to read_reg and update its comment. Remove regnum member.
1020 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
1021 Don't call read_reg when setting in_reg. Call read_reg to get
1022 the frame base if it's in a register. Return the register number
1023 on the stack instead of in the context. Remove extra arguments
1025 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
1026 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
1027 the register number on the expression stack.
1028 (needs_frame_read_reg): Remove extra arguments.
1030 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
1032 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
1034 (execute_stack_op): All callers updated.
1035 * dwarf2expr.h: Add prototype for dwarf2_read_address.
1036 * dwarf2loc.c (find_location_expression): New function.
1037 (dwarf_expr_frame_base): Call it.
1038 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
1039 (dwarf2_tracepoint_var_ref): New function, broken out from
1040 locexpr_tracepoint_var_ref.
1041 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
1043 (loclist_read_variable, loclist_read_needs_frame): New functions.
1044 (loclist_describe_location, loclist_tracepoint_var_ref): New
1046 (dwarf2_loclist_funcs): New struct location_funcs.
1047 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
1048 (struct dwarf2_locexpr_baton): Add comments.
1049 (dwarf2_loclist_funcs): New extern.
1050 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
1051 base_address and base_known.
1052 (dwarf_loc_buffer): New variable.
1053 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
1054 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
1055 (dwarf2_has_info): Initialize dwarf_loc_offset.
1056 (dwarf2_build_psymtabs): Read in .debug_loc.
1057 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
1059 (psymtab_to_symtab_1): Likewise. Move base address calculation
1061 (dwarf2_get_pc_bounds): ... here. Use the base address from
1063 (dwarf2_symbol_mark_computed): Handle location lists.
1065 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
1067 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
1068 if the linkage name demangled successfully.
1070 2003-04-13 Mark Kettenis <kettenis@gnu.org>
1072 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
1073 disassmbly_flavour): Removed.
1075 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
1077 2003-04-13 Mark Kettenis <kettenis@gnu.org>
1079 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
1081 2003-04-12 Andrew Cagney <cagney@redhat.com>
1083 * frame.h (struct frame_info): Move definition from here ...
1084 * frame.c (struct frame_info): ... to here.
1086 2003-04-12 Andrew Cagney <cagney@redhat.com>
1088 * gdbthread.h (save_infrun_state): Delete parameter
1090 (struct thread_info): Delete field "prev_func_start".
1091 (load_infrun_state): Ditto.
1092 * thread.c (load_infrun_state, save_infrun_state): Update.
1093 * infrun.c (prev_func_start): Delete variable.
1094 (context_switch, init_wait_for_inferior): Update.
1095 (stop_stepping, keep_going): Update.
1097 2003-04-12 Andrew Cagney <cagney@redhat.com>
1099 * gdbarch.sh: Add missing opaque declarations.
1100 * gdbarch.h: Regnerate.
1101 * symtab.h: Add missing opaque declarations.
1102 * value.h, target.h, symfile.h, stabsread.h: Ditto.
1103 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
1104 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
1105 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
1106 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
1107 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
1108 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
1109 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
1110 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
1111 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
1112 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
1113 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
1114 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
1116 2003-04-11 Andrew Cagney <cagney@redhat.com>
1118 * frame.c (get_frame_id): Return this frame's "id".
1119 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
1121 (legacy_saved_regs_this_id): Replace function body with
1123 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
1124 FRAME_OBSTACK_ZALLOC.
1125 (create_new_frame): Mark the frame ID as valid.
1127 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
1129 * Makefile.in (libbfd_h): Added missing setting.
1130 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
1131 according to the selected ABI.
1133 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
1135 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
1137 2003-04-11 Andrew Cagney <cagney@redhat.com>
1139 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
1140 SAVED_PC_AFTER_CALL.
1141 * gdbarch.h, gdbarch.c: Regenerate.
1142 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1143 * x86-64-tdep.c (x86_64_init_abi): Update.
1144 * vax-tdep.c (vax_gdbarch_init): Update.
1145 * v850-tdep.c (v850_gdbarch_init): Update.
1146 * sparc-tdep.c (sparc_gdbarch_init): Update.
1147 * sh-tdep.c (sh_gdbarch_init): Update.
1148 * s390-tdep.c (s390_gdbarch_init): Update.
1149 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1150 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1151 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1152 * mips-tdep.c (mips_gdbarch_init): Update.
1153 * mcore-tdep.c (mcore_gdbarch_init): Update.
1154 * m68k-tdep.c (m68k_gdbarch_init): Update.
1155 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1156 * ia64-tdep.c (ia64_gdbarch_init): Update.
1157 (ia64_saved_pc_after_call): Update declaration.
1158 * i386ly-tdep.c (i386lynx_init_abi): Update.
1159 * i386-tdep.c (i386_gdbarch_init): Update.
1160 * hppa-tdep.c (hppa_gdbarch_init): Update.
1161 * h8300-tdep.c (h8300_gdbarch_init): Update.
1162 * frv-tdep.c (frv_gdbarch_init): Update.
1163 * cris-tdep.c (cris_gdbarch_init): Update.
1164 * avr-tdep.c (avr_gdbarch_init): Update.
1165 * arm-tdep.c (arm_gdbarch_init): Update.
1166 * alpha-tdep.c (alpha_gdbarch_init): Update.
1167 * ns32knbsd-nat.c (frame_num_args): Update.
1168 * ns32k-tdep.c (umax_frame_num_args): Update.
1169 * mips-tdep.c (mips_init_frame_pc_first): Update.
1170 * infrun.c (step_over_function): Update.
1171 * i386-linux-tdep.c (skip_hurd_resolver): Update.
1172 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
1173 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
1174 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1175 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1176 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
1177 * arm-linux-tdep.c (skip_hurd_resolver): Update.
1178 * arch-utils.c (init_frame_pc_default): Update.
1179 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
1180 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
1183 2003-04-11 Andrew Cagney <cagney@redhat.com>
1185 * i387-tdep.c: Update copyright.
1186 (i387_to_double): Delete function.
1187 (double_to_i387): Delete function.
1189 2003-04-10 Andrew Cagney <cagney@redhat.com>
1191 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
1192 frame's function's address. Simplify.
1193 (d10v_frame_unwind_cache): Check that the frame's function is
1196 2003-04-10 Jim Blandy <jimb@redhat.com>
1198 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
1199 call to set_gdbarch_deprecated_push_arguments.
1201 2003-04-10 Andrew Cagney <cagney@redhat.com>
1203 * frame.c (fprint_frame_id): New function.
1204 (fprint_frame_type, fprint_frame): New function.
1205 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
1206 (create_sentinel_frame, get_frame_id): Ditto.
1207 (frame_id_p, frame_id_eq): Ditto.
1208 (frame_id_inner, create_new_frame): Ditto.
1209 (legacy_get_prev_frame, get_prev_frame): Ditto.
1210 (deprecated_update_frame_pc_hack): Ditto.
1211 (frame_register_unwind): Ditto.
1212 (deprecated_update_frame_base_hack): Ditto.
1214 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
1216 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
1217 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
1218 frame_chain function.
1219 * Makefile.in: Add dependencies due to above change.
1221 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
1223 * blockframe.c (legacy_frame_chain_valid): Move call to
1224 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
1227 2003-04-09 Andrew Cagney <cagney@redhat.com>
1229 * frame.h (struct frame_id): Replace "pc" and "base" with
1230 "stack_addr" and "code_addr". Update comments.
1231 (frame_id_build): Update parameter names and comment.
1232 (struct frame_info): Replace "id_p" and "id" with "this_id".
1233 * dummy-frame.c (dummy_frame_this_id): Update.
1234 * breakpoint.c (print_one_breakpoint): Update.
1235 * frame.c (get_frame_id): Update.
1236 (get_frame_base, frame_id_build): Update.
1237 (create_sentinel_frame, legacy_get_prev_frame): Update.
1238 (deprecated_update_frame_base_hack): Update.
1239 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
1240 (frame_id_inner): Ditto.
1242 2003-04-09 Andrew Cagney <cagney@redhat.com>
1244 * defs.h (gdb_print_host_address): Make "addr" parameter a
1246 * utils.c (gdb_print_host_address): Update.
1248 2003-04-09 Kevin Buettner <kevinb@redhat.com>
1250 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
1251 register number for R0 is 0.
1253 2003-04-09 J. Brobecker <brobecker@gnat.com>
1255 * frame.h (struct gdbarch): Add opaque structure definition
1256 to avoid a compilation warning on LynxOS 4.0.
1258 2003-04-09 Andrew Cagney <cagney@redhat.com>
1260 * frame.h (struct frame_info): Delete field "pc". Replace
1261 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
1263 * frame.c (frame_pc_unwind): Update.
1264 (create_sentinel_frame): Do not set "pc".
1265 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
1266 (get_frame_pc): Call frame_pc_unwind.
1267 (deprecated_update_frame_pc_hack): Update.
1268 (create_new_frame): Use "pc" not "->pc".
1270 2003-04-09 Andrew Cagney <cagney@redhat.com>
1272 * frame.c (get_frame_id): Eliminate code updating "frame".
1273 (legacy_get_prev_frame): Ditto.
1274 (get_frame_base): Return id.base directly.
1275 (deprecated_update_frame_base_hack): Update "id.base".
1276 * frame.h (struct frame_info): Delete field "frame".
1278 2003-04-09 Andrew Cagney <cagney@redhat.com>
1280 * NEWS: Mention that the "Sequent family" is obsolete.
1281 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
1282 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
1283 * configure.host: Obsolete i[3456]86-sequent-bsd*,
1284 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
1285 * config/i386/tm-ptx4.h: Obsolete file.
1286 * config/i386/tm-ptx.h: Obsolete file.
1287 * symm-tdep.c: Obsolete file.
1288 * config/i386/symmetry.mt: Obsolete file.
1289 * config/i386/tm-symmetry.h: Obsolete file.
1290 * symm-nat.c: Obsolete file.
1291 * config/i386/nm-symmetry.h: Obsolete file.
1292 * config/i386/xm-symmetry.h: Obsolete file.
1293 * config/i386/symmetry.mh: Obsolete file.
1294 * config/i386/nm-ptx4.h: Obsolete file.
1295 * config/i386/ptx4.mh: Obsolete file.
1296 * config/i386/ptx.mt: Obsolete file.
1297 * config/i386/ptx.mh: Obsolete file.
1298 * config/i386/xm-ptx4.h: Obsolete file.
1299 * config/i386/xm-ptx.h: Obsolete file.
1301 2003-04-09 Andrew Cagney <cagney@redhat.com>
1303 Obsolete mips*-*-mach3*.
1304 * NEWS: Mention that mips*-*-mach3* is obsolete.
1305 * m3-nat.c: Obsolete file.
1306 * config/nm-m3.h: Obsolete file.
1307 * config/mips/tm-mipsm3.h: Obsolete file.
1308 * config/mips/mipsm3.mt: Obsolete file.
1309 * config/mips/mipsm3.mh: Obsolete file.
1310 * config/mips/xm-mipsm3.h: Obsolete file.
1311 * mipsm3-nat.c: Obsolete file.
1312 * configure.host: Obsolete mips-dec-mach3*.
1313 * configure.tgt: Obsolete mips*-*-mach3*.
1315 2003-04-09 Andrew Cagney <cagney@redhat.com>
1317 * doublest.h: Update copyright.
1318 (deprecated_store_floating, deprecated_extract_floating): Rename
1319 store_floating and extract_floating. Update comments.
1320 * doublest.c: Update copyright.
1321 (extract_floating_by_length): Replace extract_floating.
1322 (store_floating_by_length): Replace store_floating.
1323 (deprecated_extract_floating): New function.
1324 (deprecated_store_floating): New function.
1325 (extract_typed_floating): Call extract_floating_by_length.
1326 (store_typed_floating): Call store_floating_by_length.
1327 * x86-64-tdep.c (x86_64_store_return_value): Update.
1328 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
1329 (sh64_extract_return_value): Update.
1330 (sh_sh4_register_convert_to_virtual): Update.
1331 (sh_sh64_register_convert_to_virtual): Update.
1332 (sh_sh4_register_convert_to_raw): Update.
1333 (sh_sh64_register_convert_to_raw): Update.
1334 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
1335 (rs6000_register_convert_to_raw): Update.
1336 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
1337 (ia64_register_convert_to_raw): Update.
1338 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
1339 (REGISTER_CONVERT_TO_VIRTUAL): Update.
1340 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
1341 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
1342 (alpha_register_convert_to_raw): Update.
1344 2003-04-08 Andrew Cagney <cagney@redhat.com>
1346 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
1347 * gdbarch.h, gdbarch.c: Re-generate.
1348 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
1349 (d10v_gdbarch_init): Do not set saved_pc_after_call.
1350 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
1351 conditionally, use frame_pc_unwind as an alternative. Add
1353 * arch-utils.c (init_frame_pc_default): Only call
1354 SAVED_PC_AFTER_CALL when available.
1356 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
1358 * infrun.c (stop_soon): Rename from stop_soon_quietly.
1359 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
1360 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
1361 (start_remote): Ditto.
1362 (handle_inferior_event): Ditto.
1363 (save_inferior_status): Ditto.
1364 (restore_inferior_status): Ditto.
1365 * infcmd.c (attach_command): Ditto.
1366 * fork-child.c (startup_inferior): Ditto.
1367 * inferior.h (stop_soon): Rename from stop_soon_quietly.
1368 * alpha-tdep.c (heuristic_proc_start): Ditto.
1369 * mips-tdep.c (heuristic_proc_start): Ditto.
1370 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
1371 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
1372 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
1373 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
1374 * remote-vx.c (vx_create_inferior): Ditto.
1376 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
1378 * infrun.c (stop_soon_quietly): Make it an enum, to better
1379 override the default behavior of handle_inferior_event.
1380 (clear_proceed_status): Update uses of stop_soon_quietly to
1381 reflect that it is now an enum.
1382 (start_remote): Ditto.
1383 (handle_inferior_event): Change logic a bit if stop_soon_quietly
1384 is set to handle the new GNU/Linux kernel behavior for
1385 attach/sigstop. Update uses of stop_soon_quietly.
1386 * inferior.h (enum stop_kind): New enum.
1387 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
1388 Reset normal handle_inferior_event behavior, afterwards.
1389 * fork-child.c (startup_inferior): Update.
1390 * alpha-tdep.c (heuristic_proc_start): Update.
1391 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1392 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
1393 * solib-osf.c (osf_solib_create_inferior_hook): Update.
1394 * solib-irix.c (irix_solib_create_inferior_hook): Update.
1395 * remote-vx.c (vx_create_inferior): Update.
1396 * mips-tdep.c (heuristic_proc_start): Update.
1398 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
1400 * disasm.c (dump_insns): Move variables inside loop, or they will
1401 be freed more than once, causing wild memory corruptions.
1402 (gdb_disassembly): Look for the substring "-thread",
1403 instead of "-threads" in the target name, to make sure to find
1404 the 'multi-thread' target. Also, make sure we do the right thing
1405 with the "core" target.
1407 2003-04-07 Kevin Buettner <kevinb@redhat.com>
1409 * mips-tdep.c (mips_print_fp_register): New function, created from
1410 do_fp_register_row(). Registers are now (also) printed as hex.
1411 Only one register is printed per row.
1412 (mips_print_register, do_fp_register_row): Print floating point
1413 registers with mips_print_fp_register().
1415 2003-04-06 Andrew Cagney <cagney@redhat.com>
1417 * valprint.h (inspect_it): Add extern declaration.
1418 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
1419 (selectors_info, classes_info): Ditto.
1420 (find_objc_msgcall): Fix indentation.
1421 (objc_printstr): Delete extern declarations.
1423 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
1425 2003-04-06 Andrew Cagney <cagney@redhat.com>
1427 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
1429 * frame.c (legacy_saved_regs_this_id): Update.
1430 (legacy_get_prev_frame): Update.
1431 * xstormy16-tdep.c: Update comment.
1432 * sparc-tdep.c (sparc_frame_chain): Update comment.
1433 * blockframe.c (legacy_frame_chain_valid): Update.
1435 2003-04-06 Andrew Cagney <cagney@redhat.com>
1437 * valprint.c (val_print_type_code_int): Delete #ifdef
1438 PRINT_TYPELESS_INTEGER code.
1440 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
1441 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
1442 multi-arch definition.
1443 * gdbarch.h: Re-generate.
1445 2003-04-05 Andrew Cagney <cagney@redhat.com>
1447 Eliminate FRAME_FIND_SAVED_REGS.
1448 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
1449 Change FSR parameter to a pointer.
1450 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
1451 Assume FSR parameter is a pointer.
1452 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
1454 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
1455 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
1456 saved_regs a pointer.
1457 (hppa_frame_saved_pc): Ditto.
1458 (find_dummy_frame_regs): Make frame_saved_regs a pointer
1459 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
1461 (restore_pc_queue): Make fsr a pointer.
1462 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
1463 (hppa_frame_chain): Make saved_regs a pointer, call
1464 hppa_frame_init_saved_regs.
1465 * sparc-tdep.c: Include "gdb_assert.h".
1466 (sparc_frame_find_saved_regs): Replace internal_error with
1468 * remote-vxsparc.c (vx_read_register): Delete reference to
1469 FRAME_FIND_SAVED_REGS.
1470 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
1471 * gdbarch.h: Regenerate.
1472 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
1473 (deprecated_get_frame_saved_regs): Delete declaration.
1474 (struct frame_saved_regs): Delete definition.
1475 * frame.c (deprecated_get_frame_saved_regs): Delete function.
1476 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
1477 (hppa_frame_find_saved_regs): Delete declaration.
1478 (FRAME_FIND_SAVED_REGS): Delete macro.
1479 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
1480 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
1481 FRAME_FIND_SAVED_REGS in comment.
1483 2003-04-05 Andrew Cagney <cagney@redhat.com>
1485 * frame.c (frame_func_unwind, get_frame_func): New functions.
1486 * frame.h (get_frame_func, frame_func_unwind): Declare.
1487 (struct frame_info): Add field "prev_func" for caching the
1488 previous frame's function address.
1489 * arm-tdep.c (arm_frameless_function_invocation): Combine
1490 get_pc_function_start and get_frame_pc into get_frame_func.
1491 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
1492 (sh64_nofp_frame_init_saved_regs): Ditto.
1493 * s390-tdep.c (s390_function_start): Ditto.
1494 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
1495 (rs6000_frameless_function_invocation): Ditto.
1496 (rs6000_frame_saved_pc): Ditto.
1497 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
1498 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
1499 * i386-tdep.c (i386_frameless_signal_p): Ditto.
1500 (i386_frame_init_saved_regs): Ditto.
1501 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
1502 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
1503 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
1504 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
1505 * blockframe.c (frameless_look_for_prologue): Ditto.
1507 2003-04-05 Andrew Cagney <cagney@redhat.com>
1509 * frame.c (legacy_get_prev_frame): Link prev to next at the
1510 function start. Update comments.
1512 2003-04-05 Andrew Cagney <cagney@redhat.com>
1514 * frame.c (get_frame_id): Update comment.
1515 (legacy_get_prev_frame): Update comment.
1516 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
1517 * gdbarch.h: Regenerate.
1518 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
1519 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
1521 2003-04-05 Andrew Cagney <cagney@redhat.com>
1523 * stack.c (print_frame_info): Use get_frame_pc.
1525 2003-04-04 Andrew Cagney <cagney@redhat.com>
1527 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
1528 the frame's type from the unwinder.
1529 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
1530 (create_new_frame, legacy_get_prev_frame): When the unwinder's
1531 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
1532 (get_frame_base_address): Use get_frame_type.
1533 (get_frame_locals_address, get_frame_args_address): Ditto.
1534 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
1535 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
1536 (struct frame_info): Add comment explaining why the frame contains
1538 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
1539 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
1540 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
1542 * frame-unwind.h: Include "frame.h".
1543 (struct frame_unwind): Add "type" field.
1544 * Makefile.in (frame_unwind_h): Add $(frame_h).
1546 2003-04-04 Andrew Cagney <cagney@redhat.com>
1548 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
1549 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
1550 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
1552 (d10v_unwind_dummy_id): Use frame_id_build.
1553 * frame.c (find_frame_sal): Use get_frame_pc.
1554 (create_new_frame): Use deprecated_update_frame_pc_hack and
1555 deprecated_update_frame_base_hack.
1556 (create_sentinel_frame): Add comment about ->pc going away.
1557 (get_prev_frame): Add comment about ->pc going away.
1558 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
1559 frame_id_build, deprecated_update_frame_pc_hack and
1560 deprecated_update_frame_base_hack.
1561 (select_frame): Use get_frame_pc.
1562 (legacy_saved_regs_this_id): Use frame_id_build.
1564 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
1566 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
1567 signed integer case.
1568 (classify_argument): Handle enumerations and references.
1570 2003-04-04 Andrew Cagney <cagney@redhat.com>
1572 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
1575 2003-04-01 Adam Fedor <fedor@gnu.org>
1577 * gdb/objc-lang.c (selectors_info): Replace calls to
1578 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
1579 SYMBOL_NATURAL_NAME.
1580 (classes_info, find_methods): Likewise.
1582 2003-04-03 Kevin Buettner <kevinb@redhat.com>
1584 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
1585 ``mach'' to the value determined by bfd_default_set_arch_mach().
1587 2003-04-02 Bob Rossi <bob_rossi@cox.net>
1589 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
1590 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
1591 (mi-cmd-file.o): Update dependencies.
1593 2003-04-01 Kevin Buettner <kevinb@redhat.com>
1595 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
1596 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
1598 2003-04-01 Adam Fedor <fedor@gnu.org>
1600 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
1601 * language.h (struct language_defn): Add la_demangle.
1602 (language_demangle): Declare.
1603 * language.c (language_demangle): New function.
1604 (unk_lang_demangle): Likewise.
1605 (unknown_language_defn, auto_language_defn, local_language_defn):
1606 Add ukn_lang_demangle.
1607 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
1608 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
1609 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
1610 (cplus_language_defn): Add cplus_demangle for la_demangle element.
1611 * jv-lang.c (java_demangle): New function
1612 (java_language_defn): Use it for la_demangle element.
1613 * objc-lang.c (objc_demangle): Add options argument
1614 (objc_language_defn): Use objc_demangle for la_demangle element.
1615 * maint.c (maintenance_demangle): Replace switch with
1616 call to language_demangle.
1617 * utils.c (fprintf_symbol_filtered): Likewise.
1619 2003-04-01 Andrew Cagney <cagney@redhat.com>
1621 * printcmd.c (print_frame_nameless_args): Delete #ifdef
1622 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
1623 PRINT_TYPELESS_INTEGER.
1624 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
1625 PUSH_RETURN_ADDRESS.
1627 2003-04-01 Andrew Cagney <cagney@redhat.com>
1629 * Makefile.in (d10v-tdep.o): Update dependencies.
1630 * d10v-tdep.c: Include "frame-base.h".
1631 (d10v_frame_unwind): Make constant.
1632 (d10v_frame_base_address): New function.
1633 (d10v_frame_base): New variable.
1634 (d10v_gdbarch_init): Set frame_base default.
1635 (struct d10v_unwind_cache): Add the field "prev_sp". Update
1637 (d10v_frame_unwind_cache): Set and use "prev_sp".
1638 (d10v_frame_this_id): Use the previous frame's inner most stack
1639 address and this frame's func address for the frame ID. Use
1640 frame_id_build. Don't analyze beyond the current instruction.
1642 2003-04-01 Andrew Cagney <cagney@redhat.com>
1644 * frame.h (get_frame_locals_address, get_frame_args_address):
1645 Refer to the base address, instead of the address of the first
1648 2003-04-01 Andrew Cagney <cagney@redhat.com>
1650 Add frame debug info addresses:
1651 * frame-base.c: New file.
1652 * frame-base.h: New file.
1653 * frame.h (struct frame_base): Add opaque declaration.
1654 (get_frame_base): Update comment.
1655 (get_frame_base_address): Declare.
1656 (get_frame_locals_address): Declare.
1657 (get_frame_args_address): Declare.
1658 (struct frame_info): Add "base" and "base_cache". Update
1659 comments on the unwinder.
1660 * frame.c: Include "frame-base.h".
1661 (get_frame_locals_address): New function.
1662 (get_frame_base_address): New function.
1663 (get_frame_args_address): New function.
1664 * findvar.c (read_var_value): Use get_frame_locals_address and
1665 get_frame_args_address.
1666 * stack.c (frame_info): Use get_frame_locals_address and
1667 get_frame_args_address.
1668 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
1669 moved to "frame-base.c".
1670 * printcmd.c (print_frame_nameless_args): Ditto.
1671 * symtab.h (address_class): Update comments.
1672 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
1673 get_frame_base_address.
1674 * dwarf2expr.c (execute_stack_op): Ditto.
1675 * Makefile.in (frame_base_h): Define.
1676 (frame.o): Update dependencies.
1677 (frame-base.o): Add dependencies.
1678 (SFILES): Add frame-base.c.
1679 (COMMON_OBS): Add frame-base.o.
1681 2003-04-01 Andrew Cagney <cagney@redhat.com>
1683 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
1684 CALL_DUMMY_LENGTH): Ditto.
1685 * gdbarch.c: Re-generate.
1686 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
1687 (CALL_DUMMY_LENGTH): Delete macro.
1688 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
1689 * arm-tdep.c (arm_gdbarch_init): Ditto.
1690 * avr-tdep.c (avr_gdbarch_init): Ditto.
1691 * cris-tdep.c (cris_gdbarch_init): Ditto.
1692 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1693 * frv-tdep.c (frv_gdbarch_init): Ditto.
1694 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1695 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
1696 * i386-tdep.c (i386_gdbarch_init): Ditto.
1697 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1698 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1699 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1700 * mips-tdep.c (mips_gdbarch_init): Ditto.
1701 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1702 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1703 * s390-tdep.c (s390_gdbarch_init): Ditto.
1704 * sh-tdep.c (sh_gdbarch_init): Ditto.
1705 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1706 * v850-tdep.c (v850_gdbarch_init): Ditto.
1707 * vax-tdep.c (vax_gdbarch_init): Ditto.
1708 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1710 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
1712 * frame.c (get_prev_frame): Disable call to inside_entry_file().
1714 2003-04-01 Andrew Cagney <cagney@redhat.com>
1716 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
1717 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
1718 * gdbarch.h, gdbarch.c: Re-generate.
1719 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
1720 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
1721 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
1722 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
1723 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
1724 * infcmd.c (run_stack_dummy): Simplify assuming
1725 CALL_DUMMY_BREAKPOINT_OFFSET_P.
1726 * infrun.c (handle_inferior_event): Ditto.
1727 * alpha-tdep.c (alpha_gdbarch_init): Do not set
1728 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
1729 * arm-tdep.c (arm_gdbarch_init): Ditto.
1730 * avr-tdep.c (avr_gdbarch_init): Ditto.
1731 * cris-tdep.c (cris_gdbarch_init): Ditto.
1732 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1733 * frv-tdep.c (frv_gdbarch_init): Ditto.
1734 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1735 * i386-tdep.c (i386_gdbarch_init): Ditto.
1736 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1737 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1738 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
1739 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1740 * mips-tdep.c (mips_gdbarch_init): Ditto.
1741 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1742 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1743 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1744 * s390-tdep.c (s390_gdbarch_init): Ditto.
1745 * sh-tdep.c (sh_gdbarch_init): Ditto.
1746 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1747 * v850-tdep.c (v850_gdbarch_init): Ditto.
1748 * vax-tdep.c (vax_gdbarch_init): Ditto.
1749 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1751 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
1753 * symfile.c (symfile_relocate_debug_section): Update call to
1754 bfd_simple_get_relocated_section_contents.
1756 2003-03-31 Andrew Cagney <cagney@redhat.com>
1758 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
1759 * gdbarch.h, gdbarch.c: Regenerate.
1760 * inferior.h (FIX_CALL_DUMMY): Delete macro.
1761 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
1763 * frame.h (generic_fix_call_dummy): Delete declaration.
1764 * dummy-frame.h: Update comment.
1765 * dummy-frame.c (generic_fix_call_dummy): Delete function.
1766 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1768 * sh-tdep.c (sh_gdbarch_init): Ditto.
1769 * s390-tdep.c (s390_gdbarch_init): Ditto.
1770 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1771 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1772 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1773 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1774 * i386-tdep.c (i386_gdbarch_init): Ditto.
1775 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1776 * frv-tdep.c (frv_gdbarch_init): Ditto.
1777 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1778 * cris-tdep.c (cris_gdbarch_init): Ditto.
1779 * avr-tdep.c (avr_gdbarch_init): Ditto.
1780 * arm-tdep.c (arm_gdbarch_init): Ditto.
1782 2003-03-31 J. Brobecker <brobecker@gnat.com>
1784 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
1785 (INIT_FRAME_AP): Likewise.
1786 (EXTRA_FRAME_INFO): Likewise.
1788 2003-03-31 Andrew Cagney <cagney@redhat.com>
1790 * gdbarch.sh: Include "symfile.h".
1791 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
1792 * gdbarch.h, gdbarch.c: Re-generate.
1793 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
1794 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1795 call_dummy_address, the default is at entry_point_address.
1796 * v850-tdep.c (v850_gdbarch_init): Ditto.
1797 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1798 * sh-tdep.c (sh_gdbarch_init): Ditto.
1799 * s390-tdep.c (s390_gdbarch_init): Ditto.
1800 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1801 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1802 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1803 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1804 * i386-tdep.c (i386_gdbarch_init): Ditto.
1805 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1806 * frv-tdep.c (frv_gdbarch_init): Ditto.
1807 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1808 * cris-tdep.c (cris_gdbarch_init): Ditto.
1809 * arm-tdep.c (arm_gdbarch_init): Ditto.
1811 2003-03-31 Andrew Cagney <cagney@redhat.com>
1813 * gdbarch.sh (CALL_DUMMY_P): Delete.
1814 * gdbarch.h, gdbarch.c: Re-generate.
1815 * inferior.h (CALL_DUMMY_P): Delete macro.
1816 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1817 * vax-tdep.c (vax_gdbarch_init): Update.
1818 * v850-tdep.c (v850_gdbarch_init): Update.
1819 * sparc-tdep.c (sparc_gdbarch_init): Update.
1820 * sh-tdep.c (sh_gdbarch_init): Update.
1821 * s390-tdep.c (s390_gdbarch_init): Update.
1822 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1823 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1824 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1825 * mips-tdep.c (mips_gdbarch_init): Update.
1826 * mcore-tdep.c (mcore_gdbarch_init): Update.
1827 * m68k-tdep.c (m68k_gdbarch_init): Update.
1828 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1829 * ia64-tdep.c (ia64_gdbarch_init): Update.
1830 * i386-tdep.c (i386_gdbarch_init): Update.
1831 * h8300-tdep.c (h8300_gdbarch_init): Update.
1832 * frv-tdep.c (frv_gdbarch_init): Update.
1833 * d10v-tdep.c (d10v_gdbarch_init): Update.
1834 * cris-tdep.c (cris_gdbarch_init): Update.
1835 * breakpoint.c (deprecated_frame_in_dummy): Update.
1836 * avr-tdep.c (avr_gdbarch_init): Update.
1837 * alpha-tdep.c (alpha_gdbarch_init): Update.
1838 * arm-tdep.c (arm_gdbarch_init): Update.
1839 * dummy-frame.c (dummy_frame_this_id): Update comments.
1840 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
1841 * frame.c (legacy_get_prev_frame): Ditto.
1842 * valops.c (call_function_by_hand): Delete function.
1843 (hand_function_call): Rename to call_function_by_hand
1845 2003-03-30 Andrew Cagney <cagney@redhat.com>
1847 2002-11-10 Klee Dienes <kdienes@apple.com>
1848 * value.h (struct value): Update comment.
1850 2003-03-30 Andrew Cagney <cagney@redhat.com>
1852 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
1854 (d10v_gdbarch_init): Do not set fp_regnum.
1856 * frame.c (get_frame_base): Force ID initialization.
1857 (get_prev_frame): Move computation of the frame ID from here ...
1858 (get_frame_id): ... to here.
1859 (legacy_get_prev_frame): Mark the frame ID as valid.
1860 * frame.h (struct frame_info): Add field "id_p".
1862 2003-03-30 Mark Kettenis <kettenis@gnu.org>
1864 * i386-tdep.c (i386_store_struct_return): Removed.
1865 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
1867 2003-03-30 Andrew Cagney <cagney@redhat.com>
1869 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
1870 * gdbarch.h, gdbarch.c: Regenerate.
1871 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
1872 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1873 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1874 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
1875 * i386-tdep.c (i386_gdbarch_init): Ditto.
1876 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1877 * cris-tdep.c (cris_gdbarch_init): Ditto.
1878 * vax-tdep.c (vax_gdbarch_init): Ditto.
1879 * s390-tdep.c (s390_gdbarch_init): Ditto.
1880 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1881 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1882 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1883 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
1884 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
1885 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
1886 * sparc-tdep.c (sparc_gdbarch_init): Update.
1887 * sh-tdep.c (sh_gdbarch_init): Update.
1888 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1889 * mips-tdep.c (mips_gdbarch_init): Update.
1890 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1891 * ia64-tdep.c (ia64_gdbarch_init): Update.
1892 * frv-tdep.c (frv_gdbarch_init): Update.
1893 * avr-tdep.c (avr_gdbarch_init): Update.
1894 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
1895 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
1896 instead of when push_dummy_call is not available.
1898 2003-03-30 Andrew Cagney <cagney@redhat.com>
1900 * infttrace.c: Include "gdbthread.h".
1901 (parent_attach_all): Fix function signature.
1902 (call_ptrace): Update call.
1903 * Makefile.in (infttrace.o): Update dependencies.
1905 2003-03-30 Andrew Cagney <cagney@redhat.com>
1907 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
1908 PUSH_RETURN_ADDRESS.
1909 * gdbarch.h, gdbarch.c: Regenerate.
1910 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1911 * x86-64-tdep.c (x86_64_init_abi): Update.
1912 * v850-tdep.c (v850_gdbarch_init): Update.
1913 * sparc-tdep.c (sparc_gdbarch_init): Update.
1914 * sh-tdep.c (sh_gdbarch_init): Update.
1915 * s390-tdep.c (s390_gdbarch_init): Update.
1916 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1917 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1918 * mips-tdep.c (mips_gdbarch_init): Update.
1919 * mcore-tdep.c (mcore_gdbarch_init): Update.
1920 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1921 * ia64-tdep.c (ia64_gdbarch_init): Update.
1922 * i386-tdep.c (i386_gdbarch_init): Update.
1923 * h8300-tdep.c (h8300_gdbarch_init): Update.
1924 * frv-tdep.c (frv_gdbarch_init): Update.
1925 * cris-tdep.c (cris_gdbarch_init): Update.
1926 * avr-tdep.c (avr_gdbarch_init): Update.
1927 * arm-tdep.c (arm_gdbarch_init): Update.
1928 * valops.c (hand_function_call): Update.
1930 2003-03-29 Andrew Cagney <cagney@redhat.com>
1932 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
1933 sizeof_call_dummy_words.
1934 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
1936 * gdbarch.h: Regenerate.
1938 2003-03-29 Andrew Cagney <cagney@redhat.com>
1940 * infttrace.h: New file.
1941 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
1942 (hpread_get_textlow): Detect an uninitialized dn_bufp.
1943 (hpread_read_doc_function_type): Detect an initialized type1.
1944 (hpread_quick_traverse): Initialize mod_name_string.
1945 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
1946 (som_solib_get_solib_by_pc): Declare.
1947 (so_lib_thread_start_addr): Declare.
1948 (no_shared_libraries): Declare.
1949 * somread.c (init_import_symbols): Make static. Add forward
1951 * config/pa/nm-hppah.h: Include "infttrace.h" for
1953 (hppa_insert_hw_watchpoint): Declare.
1954 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
1955 * hppah-nat.c: Include "gdb_string.h".
1956 (parent_attach_all): Delete extern declaration, moved to
1958 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
1960 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
1961 * Makefile.in (infttrace_h): Define.
1962 (hpread.o): Update dependencies.
1963 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
1964 * hppa-hpux-tdep.c: Include "gdb_string.h".
1965 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
1966 * infrun.c (handle_inferior_event): Always initialize
1967 stepped_after_stopped_by_watchpoint. Add default and remove
1968 fallthrough in switch statement.
1969 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
1971 (hppa_remove_hw_watchpoint): Ditto.
1973 2003-03-29 Andrew Cagney <cagney@redhat.com>
1975 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
1978 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
1980 * arm-tdep.c (arm_push_arguments): Delete.
1981 (struct stack_item): New type.
1982 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
1983 (arm_store_struct_return): Delte.
1984 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
1985 arm_push_arguments or arm_store_struct_return.
1987 2003-03-28 Andrew Cagney <cagney@redhat.com>
1989 * Makefile.in (d10v-tdep.o): Update dependencies.
1990 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
1991 * d10v-tdep.c: Include "remote.h".
1992 (target_resume_hook): Delete extern declaration.
1993 (target_wait_loop_hook): Ditto.
1994 (tdisassemble_command): Eliminate assignment in "if" conditional.
1995 (d10v_ts2_register_sim_regno): Eliminate call to
1996 legacy_register_sim_regno.
1997 (d10v_ts3_register_sim_regno): Ditto.
1999 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
2001 * thread.c: Reindented.
2003 * linux-proc.c: Ditto.
2005 2003-03-28 Bob Rossi <bob_rossi@cox.net>
2007 * MAINTAINERS (write after approval): Add myself.
2009 2003-03-27 Theodore A. Roth <troth@openavr.org>
2011 * objc-exp.y: Add missing semi-colons.
2013 2003-03-27 Andrew Cagney <cagney@redhat.com>
2015 * regcache.c (write_sp): Delete function and references.
2016 * inferior.h (write_sp): Delete declaration.
2017 * valops.c (hand_function_call): Replace write_sp with
2019 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
2020 (sparc_pop_frame): Ditto.
2022 2003-03-27 Andrew Cagney <cagney@redhat.com>
2024 * NEWS: Mention removal of support for hppa*-*-bsd* and
2025 hppa*-*-osf* natives, and hppa*-*-pro* target.
2026 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
2027 * config/pa/xm-pa.h: Obsolete file.
2028 * config/pa/xm-hppab.h: Obsolete file.
2029 * config/pa/nm-hppab.h: Obsolete file.
2030 * config/pa/tm-hppab.h: Obsolete file.
2031 * config/pa/tm-hppao.h: Obsolete file.
2032 * config/pa/nm-hppao.h: Obsolete file.
2033 * config/pa/tm-pro.h: Obsolete file.
2034 * config/pa/hppaosf.mt: Obsolete file.
2035 * config/pa/hppaosf.mh: Obsolete file.
2036 * config/pa/hppapro.mt: Obsolete file.
2037 * config/pa/hppabsd.mt: Obsolete file.
2038 * config/pa/hppabsd.mh: Obsolete file.
2039 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
2040 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
2043 2003-03-27 Andrew Cagney <cagney@redhat.com>
2045 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
2046 push_arguments. Don't set push_return_address or write_sp.
2047 (d10v_push_dummy_call): Replace d10v_push_arguments.
2048 (d10v_push_return_address, d10v_write_sp): Delete function,
2049 handled by push_dummy_call.
2051 2003-03-26 Andrew Cagney <cagney@redhat.com>
2053 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
2054 (push_dummy_call): New pure multi-arch replacement with gdbarch,
2055 regcache and dummy_addr parameters.
2056 * gdbarch.h, gdbarch.c: Re-generate.
2057 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
2058 available; assume it will handle stack alignment and return
2059 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
2060 legacy_push_arguments.
2061 (legacy_push_arguments): Rename default_push_arguments.
2062 * value.h (legacy_push_arguments): Rename default_push_arguments.
2063 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
2064 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
2065 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
2066 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
2067 * config/i386/tm-symmetry.h: Update.
2068 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2069 * x86-64-tdep.c (x86_64_init_abi): Update.
2070 * v850-tdep.c (v850_gdbarch_init): Update.
2071 * sparc-tdep.c (sparc_gdbarch_init): Update.
2072 * sh-tdep.c (sh_gdbarch_init): Update.
2073 * s390-tdep.c (s390_gdbarch_init): Update.
2074 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2075 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2076 * mips-tdep.c (mips_gdbarch_init): Update.
2077 * mcore-tdep.c (mcore_gdbarch_init): Update.
2078 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2079 * ia64-tdep.c (ia64_gdbarch_init): Update.
2080 * i386-tdep.c (i386_gdbarch_init): Update.
2081 * hppa-tdep.c (hppa_gdbarch_init): Update.
2082 * h8300-tdep.c (h8300_gdbarch_init): Update.
2083 * frv-tdep.c (frv_gdbarch_init): Update.
2084 * d10v-tdep.c (d10v_gdbarch_init): Update.
2085 * cris-tdep.c (cris_gdbarch_init): Update.
2086 * avr-tdep.c (avr_gdbarch_init): Update.
2087 * arm-tdep.c (arm_gdbarch_init): Update.
2088 * arm-linux-tdep.c (arm_linux_init_abi): Update.
2089 * alpha-tdep.c (alpha_gdbarch_init): Update.
2091 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
2093 * signals/signals.c (do_target_signal_to_host): Correct realtime
2096 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
2098 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
2099 (struct sal_chain, map_catch_names): Remove.
2100 (catch_exception_command_1): Don't call
2101 handle_gnu_4_16_catch_command.
2103 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
2105 From Mark Dettinger <dettinge@de.ibm.com>:
2106 * dwarf2cfi.c (read_2u): Increment pointer by two.
2108 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
2110 * signals/signals.c: Fix typos in last change.
2112 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
2114 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
2115 not already defined. Use __SIGRTMIN if available.
2116 (target_signal_from_host): Remove SIGRTMIN block.
2117 (do_target_signal_to_host): Remove SIGRTMIN block; check that
2118 the signal is within the realtime range.
2120 2003-03-25 Adam Fedor <fedor@gnu.org>
2122 * Makefile.in (infrun.o): Add $(language_h)
2123 * infrun.c (handle_inferior_event): Use skip_language_trampoline
2124 for language specific trampolines.
2125 * language.h (struct language_defn): Add skip_trampoline.
2126 (skip_language_trampoline): Declare.
2127 * language.c (unk_lang_trampoline, skip_language_trampoline):
2129 (unknown_language_defn, auto_language_defn, local_language_defn):
2130 Add ukn_lang_trampoline.
2131 * ada-lang.c (ada_language_defn): Add NULL for language
2132 specific skip_trampoline.
2133 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
2134 scm-lang.c: Likewise.
2135 * objc-lang.c (objc_skip_trampoline): New function.
2136 (objc_language_defn): Add objc_skip_trampoline.
2138 2003-03-25 Andrew Cagney <cagney@redhat.com>
2140 * frame.c (get_prev_frame): Delay validating a frame's ID -
2141 non-NULL, didn't go backwards - until an attempt to unwind it to
2144 2003-03-25 Andrew Cagney <cagney@redhat.com>
2146 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
2147 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
2148 * gdbarch.h, gdbarch.c: Re-generate.
2149 * config/sparc/tm-sparc.h
2150 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
2151 * sparc-tdep.c (sparc_gdbarch_init): Set
2152 deprecated_extra_stack_alignment_needed.
2153 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
2154 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
2155 extra_stack_alignment_needed.
2156 * v850-tdep.c (v850_gdbarch_init): Ditto.
2157 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
2158 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2159 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2160 * cris-tdep.c (cris_gdbarch_init): Ditto.
2161 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2162 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2164 2003-03-25 Andrew Cagney <cagney@redhat.com>
2166 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
2167 STORE_STRUCT_RETURN.
2168 * gdbarch.h, gdbarch.c: Regenerate.
2169 * d10v-tdep.c (d10v_store_struct_return): Delete function.
2170 (d10v_push_arguments): Set the struct return register.
2171 (d10v_gdbarch_init): Update.
2172 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2173 * x86-64-tdep.c (x86_64_init_abi): Update.
2174 * vax-tdep.c (vax_gdbarch_init): Update.
2175 * v850-tdep.c (v850_gdbarch_init): Update.
2176 * sparc-tdep.c (sparc_gdbarch_init): Update.
2177 * sh-tdep.c (sh_gdbarch_init): Update.
2178 * s390-tdep.c (s390_gdbarch_init): Update.
2179 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2180 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2181 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2182 * mips-tdep.c (mips_gdbarch_init): Update.
2183 * mcore-tdep.c (mcore_gdbarch_init): Update.
2184 * m68k-tdep.c (m68k_gdbarch_init): Update.
2185 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2186 * ia64-tdep.c (ia64_gdbarch_init): Update.
2187 * i386-tdep.c (i386_gdbarch_init): Update.
2188 * hppa-tdep.c (hppa_gdbarch_init): Update.
2189 * h8300-tdep.c (h8300_gdbarch_init): Update.
2190 * frv-tdep.c (frv_gdbarch_init): Update.
2191 * cris-tdep.c (cris_gdbarch_init): Update.
2192 * avr-tdep.c (avr_gdbarch_init): Update.
2193 * arm-tdep.c (arm_gdbarch_init): Update.
2194 * alpha-tdep.c (alpha_gdbarch_init): Update.
2196 2003-03-25 Andrew Cagney <cagney@redhat.com>
2198 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
2199 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
2200 CALL_DUMMY_STACK_ADJUST with a predicate variable.
2201 * gdbarch.h, gdbarch.c: Regenerate.
2202 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2203 call_dummy_stack_adjust_p.
2204 * vax-tdep.c (vax_gdbarch_init): Ditto.
2205 * v850-tdep.c (v850_gdbarch_init): Ditto.
2206 * sh-tdep.c (sh_gdbarch_init): Ditto.
2207 * s390-tdep.c (s390_gdbarch_init): Ditto.
2208 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2209 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
2210 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2211 * mips-tdep.c (mips_gdbarch_init): Ditto.
2212 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2213 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2214 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2215 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2216 * i386-tdep.c (i386_gdbarch_init): Ditto.
2217 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2218 * frv-tdep.c (frv_gdbarch_init): Ditto.
2219 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2220 * cris-tdep.c (cris_gdbarch_init): Ditto.
2221 * avr-tdep.c (avr_gdbarch_init): Ditto.
2222 * arm-tdep.c (arm_gdbarch_init): Ditto.
2223 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2224 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
2225 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
2226 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
2227 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
2228 call_dummy_stack_adjust_p.
2229 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
2230 (CALL_DUMMY_STACK_ADJUST): Delete macro.
2231 * sparc-tdep.c (sparc32_push_arguments): Update.
2232 * valops.c (hand_function_call): Update.
2234 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
2236 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
2237 set_gdbarch_char_signed.
2239 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
2242 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
2244 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
2246 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
2247 (_initialize_arm_tdep): Don't set tm_print_insn.
2249 2003-03-24 Adam Fedor <fedor@gnu.org>
2251 * Makefile.in (YYOBJ): Add objc-exp.tab.o
2252 * objc-lang.h: Add multiple inclusion protection.
2253 (start_msglist, add_msglist, end_msglist): Additional declarations.
2255 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
2257 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
2258 value was renamed to ARM_FLOAT_SOFT_FPA.
2260 2003-03-23 Andrew Cagney <cagney@redhat.com>
2262 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
2263 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
2264 * gdbarch.h, gdbarch.c: Regenerate.
2265 * valops.c (hand_function_call): Update.
2266 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
2267 * frame.c (legacy_saved_regs_this_id): Update.
2268 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
2269 * dummy-frame.h: Update.
2270 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
2271 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
2272 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
2273 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
2274 * config/m68k/tm-sun3.h: Update.
2275 * blockframe.c (inside_main_func, frame_chain_valid): Update.
2276 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2277 * x86-64-tdep.c (x86_64_init_abi): Update.
2278 * vax-tdep.c (vax_gdbarch_init): Update.
2279 * v850-tdep.c (v850_gdbarch_init): Update.
2280 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
2281 * sh-tdep.c (sh_gdbarch_init): Update.
2282 * s390-tdep.c (s390_gdbarch_init): Update.
2283 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2284 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
2285 (frame_get_saved_regs): Update.
2286 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
2287 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2288 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2289 * mips-tdep.c (mips_gdbarch_init): Update.
2290 * mcore-tdep.c (mcore_gdbarch_init): Update.
2291 * m68k-tdep.c (m68k_gdbarch_init): Update.
2292 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2293 * ia64-tdep.c (ia64_gdbarch_init): Update.
2294 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
2295 * i386-interix-tdep.c (i386_interix_init_abi): Update.
2296 (i386_interix_back_one_frame): Update.
2297 * hppa-tdep.c (hppa_gdbarch_init): Update.
2298 (hppa_init_extra_frame_info): Update.
2299 * h8300-tdep.c (h8300_gdbarch_init): Update.
2300 * frv-tdep.c (frv_gdbarch_init): Update.
2301 * cris-tdep.c (cris_gdbarch_init): Update.
2302 * avr-tdep.c (avr_gdbarch_init): Update.
2303 * arm-tdep.c (arm_gdbarch_init): Update.
2304 * alpha-tdep.c (alpha_gdbarch_init): Update.
2306 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
2308 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
2309 (arm_get_fp_model): Declare.
2310 * arm-tdep.c (fp_model_strings): New string array.
2311 (arm_fp_model, current_fp_model): New variables.
2312 (arm_get_fp_model): New function.
2313 (arm_set_fp): New function.
2314 (set_fp_model_sfunc): New function.
2315 (show_fp_model): New function.
2316 (_initialize_arm_tdep): Add new command to set/show the FPU.
2317 (arm_extract_return_value): Use arm_get_fp_model.
2318 (arm_store_return_value): Likewise.
2319 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
2320 to initialize the floating-point data types.
2321 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
2324 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
2326 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
2327 the current setting of each value.
2328 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
2329 new_set and new_show. Use add_setshow_cmd_full and
2330 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
2331 commands and add new version as subcommands of "set/show arm".
2333 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
2335 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
2336 (set_arm_command, show_arm_command): New functions.
2337 (_initialize_arm_tdep): Add them.
2338 (num_disassembly_options): Renamed from num_flavor_options.
2339 (valid_disassembly_styles): Renamed from valid_flavors.
2340 (disassembly_style): Renamed from disassembly_flavor.
2341 (set_disassembly_style_sfunc): Renamed from
2342 set_disassembly_flavor_sfunc.
2343 (set_disassembly_style): Renamed from set_disassembly_flavor.
2344 (arm_othernames): Updated.
2345 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
2346 command. Add "set/show arm disassembly" commands. Deprecate
2347 "othernames" command.
2349 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
2351 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
2352 (arm-tdep.o): Depend on elf_arm_h.
2354 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
2356 * Makefile.in (coff_internal_h): Define.
2357 (arm-tdep.o): Update dependencies.
2359 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
2361 * arm-tdep.c (prologue_cache): Delete.
2362 (check_prologue_cache, save_prologue_cache): Delete.
2363 (arm_scan_prologue): Don't check or update the prologue_cache.
2364 (arm_gdb_arch_init): Don't initialize it.
2365 (_initialize_arm_tdep): Likewise.
2367 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
2369 * MAINTAINERS (tui): Maintainer of tui code.
2371 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
2373 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
2374 (i386-cygwin-tdep.o): Add dependencies.
2375 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
2376 * i386-cygwin-tdep.c: New file.
2377 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
2378 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
2380 2003-03-20 Andrew Cagney <cagney@redhat.com>
2382 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
2383 (handle_inferior_event): Remove code calling
2384 DYNAMIC_TRAMPOLINE_NEXTPC.
2386 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
2387 already has a full path.
2389 * main.c (gdb_main): Return 1.
2390 (captured_main): Call error to report an invalid interpreter.
2392 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
2393 * alpha-osf1-tdep.c: Include "gdb_string.h".
2395 2003-03-19 J. Brobecker <brobecker@gnat.com>
2397 Continuing work to convert the hppa targets to multiarch partial.
2399 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
2400 method, now that hppa_push_dummy_frame has a conformant prototype.
2401 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
2402 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
2403 for the switch to multiarch partial.
2405 2003-03-19 Kevin Buettner <kevinb@redhat.com>
2407 * mdebugread.c (parse_symbol): For stEnd, we're done counting
2408 when iss is issNull.
2410 2003-03-18 Kevin Buettner <kevinb@redhat.com>
2412 * mips-tdep.c (mips_register_name): Fix fencepost error involving
2413 NUM_REGS bounds check.
2415 2003-03-18 Kevin Buettner <kevinb@redhat.com>
2417 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
2418 * mips-tdep.c (gdb_assert.h): Include.
2419 (mips_generic_reg_names, mips_processor_reg_names): Make static.
2420 (mips_register_name): Handle integer registers explicitly. Add
2422 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
2423 (mips_lsi33k_reg_names): Don't list integer registers; they're
2424 handled by mips_register_name() now.
2425 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
2426 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
2427 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
2428 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
2429 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
2431 2003-03-18 Andrew Cagney <cagney@redhat.com>
2433 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
2435 * gdbtypes.h (print_scalar_formatted): Update declaration.
2436 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
2438 2003-03-18 J. Brobecker <brobecker@gnat.com>
2440 * infrun.c (observer.h): Add #include.
2441 (normal_stop): Add call to observer_notify_normal_stop.
2442 * Makefile.in (infrun.o): Add dependency on observer.h.
2444 2003-03-18 J. Brobecker <brobecker@gnat.com>
2446 Continuing work to convert the hppa targets to multiarch partial.
2447 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
2448 parameter. Reformat comment.
2449 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
2450 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
2451 to match new profile.
2453 2003-03-18 J. Brobecker <brobecker@gnat.com>
2455 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
2456 appear to be working in any case.
2458 2003-03-18 J. Brobecker <brobecker@gnat.com>
2460 * observer.c (observer_test_first_observer): New static variable.
2461 (observer_test_second_observer): Likewise.
2462 (observer_test_third_observer): Likewise.
2463 (observer_test_first_notification_function): New static function.
2464 (observer_test_second_notification_function): Likewise.
2465 (observer_test_third_notification_function): Likewise.
2467 2003-03-17 J. Brobecker <brobecker@gnat.com>
2469 * hppa-tdep.c (gdb_assert.h): Add missing #include.
2470 * somsolib.c (gdb_assert.h): Likewise.
2471 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
2472 (somsolib.o): Likewise.
2474 2003-03-17 Andrew Cagney <cagney@redhat.com>
2476 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
2477 BFD. Simplify setting of di.endian.
2479 2003-03-17 Andrew Cagney <cagney@redhat.com>
2481 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
2482 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
2484 From Elena Zannoni <ezannoni@redhat.com>
2485 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
2486 vector and floating-point parameters.
2487 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
2489 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
2491 2003-03-17 Fernando Nasser <fnasser@redhat.com>
2493 * MAINTAINERS: Remove my name from several maintainership roles.
2495 2003-03-17 Andrew Cagney <cagney@redhat.com>
2497 Fix frame off-by-one bug.
2498 * frame-unwind.h (frame_this_id_ftype): Replace
2499 frame_unwind_id_ftype.
2500 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
2501 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
2502 with "prev_register".
2503 * frame-unwind.c (frame_unwind_find_by_pc): Return
2504 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
2506 * dummy-frame.c (cached_find_dummy_frame): Delete function.
2507 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
2508 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
2509 (dummy_frame_unwind): Update.
2510 * sentinel-frame.c (sentinel_frame_prev_register): Replace
2511 sentinel_frame_register_unwind.
2512 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
2513 (sentinel_frame_unwinder): Update.
2514 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
2515 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
2516 * frame.c (create_sentinel_frame): Update. Initialize
2517 "prologue_cache" instead of "unwind_cache".
2518 (frame_register_unwind): Call this frame's prev_register with the
2519 next frame and this frame's prologue cache.
2520 (get_prev_frame): Simplify. Always call prev frame's this_id with
2521 this frame and prev frame's prologue cache. Document that this
2522 call is shifted one to the left when compared to the
2523 frame_register_unwind call.
2524 (legacy_saved_regs_prev_register): Replace
2525 frame_saved_regs_register_unwind.
2526 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
2527 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
2528 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
2529 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
2530 (d10v_frame_unwind): Update.
2531 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
2532 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
2533 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
2534 "saved_regs" with "this_saved_regs".
2536 2003-03-16 Andrew Cagney <cagney@redhat.com>
2538 * frame.c (frame_pop): Don't call target_store_registers. Fix
2539 problem reported by Mark Kettenis.
2541 2003-03-16 Mark Kettenis <kettenis@gnu.org>
2543 * i386-tdep.c (i386_register_type): Renamed from
2544 i386_register_virtual_type. Adjust function signature.
2545 (i386_gdbarch_init): Set register_type instead of
2546 deprecated_max_register_raw_size,
2547 deprecated_max_register_virtual_size and register_virtual_type.
2549 2003-03-14 Andrew Cagney <cagney@redhat.com>
2551 * frame.c (get_prev_frame): When a legacy frame, always call
2552 legacy_get_prev_frame. Simplify unwind code using assumption that
2553 the unwinder is new.
2554 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
2555 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
2556 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
2558 2003-03-14 Andrew Cagney <cagney@redhat.com>
2560 * frame.c (get_saved_register): Delete function.
2561 * frame.h (get_saved_register): Delete declaration.
2562 * xstormy16-tdep.c: Update comment.
2563 * regcache.h: Update comments.
2564 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
2565 get_saved_register and extract_address, use
2566 frame_read_unsigned_register.
2567 (sparc_frame_saved_pc): Ditto.
2568 (sparc_get_saved_register): Instead of get_saved_register, use
2570 (sparc_pop_frame): Ditto.
2571 * findvar.c: Update comments.
2572 (value_of_register): Call frame_register instead of
2574 (value_from_register): Ditto.
2575 * config/sparc/tm-sparc.h: Update comment.
2576 * breakpoint.c: Update comment.
2578 2003-03-14 Andrew Cagney <cagney@redhat.com>
2580 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
2582 * gdbarch.h, gdbarch.c: Re-generate.
2583 * frame.h: Update comments.
2584 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2585 * x86-64-tdep.c (x86_64_init_abi): Update.
2586 * sparc-tdep.c (sparc_gdbarch_init): Update.
2587 * sh-tdep.c (sh_gdbarch_init): Update.
2588 * mips-tdep.c (mips_gdbarch_init): Update.
2589 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2590 * cris-tdep.c (cris_gdbarch_init): Update.
2591 * ia64-tdep.c (ia64_gdbarch_init): Update.
2592 * frame.c (frame_register): Update.
2593 (get_saved_register): Update.
2594 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
2596 2003-03-13 Andrew Cagney <cagney@redhat.com>
2598 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
2599 * gdbarch.h, gdbarch.c: Regenerate.
2600 * valops.c (hand_function_call): Update comment.
2601 * stack.c (return_command): Update comment.
2602 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
2603 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
2604 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2605 * x86-64-tdep.c (x86_64_init_abi): Update.
2606 * vax-tdep.c (vax_gdbarch_init): Update.
2607 * v850-tdep.c (v850_gdbarch_init): Update.
2608 * sparc-tdep.c (sparc_gdbarch_init): Update.
2609 * sh-tdep.c (sh_gdbarch_init): Update.
2610 * s390-tdep.c (s390_gdbarch_init): Update.
2611 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2612 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2613 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2614 * mips-tdep.c (mips_gdbarch_init): Update.
2615 * mcore-tdep.c (mcore_gdbarch_init): Update.
2616 * m68k-tdep.c (m68k_gdbarch_init): Update.
2617 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2618 * ia64-tdep.c (ia64_gdbarch_init): Update.
2619 * i386-tdep.c (i386_gdbarch_init): Update.
2620 * hppa-tdep.c (hppa_gdbarch_init): Update.
2621 * h8300-tdep.c (h8300_gdbarch_init): Update.
2622 * frv-tdep.c (frv_gdbarch_init): Update.
2623 * cris-tdep.c (cris_gdbarch_init): Update.
2624 * avr-tdep.c (avr_gdbarch_init): Update.
2625 * arm-tdep.c (arm_gdbarch_init): Update.
2626 * alpha-tdep.c (alpha_gdbarch_init): Update.
2628 2003-03-13 Andrew Cagney <cagney@redhat.com>
2630 * frame.c (legacy_frame_p): New function.
2631 (get_prev_frame): Use legacy_frame_p.
2632 * frame.h (legacy_frame_p): Declare.
2634 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
2636 * MAINTAINERS (write after approval): Alphabetically
2639 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
2641 * MAINTAINERS (write after approval): Add myself.
2643 2003-03-12 Andrew Cagney <cagney@redhat.com>
2645 * frame.c (get_prev_frame): Rename the frame parameter to
2647 (get_next_frame, legacy_get_prev_frame): Ditto.
2649 2003-03-12 Andrew Cagney <cagney@redhat.com>
2651 * frame.c (get_current_frame): Check target_has_registers before
2652 checking target_has_stack.
2653 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
2654 instead of deprecated_selected_frame.
2655 * findvar.c (value_of_register): Pass "frame", not
2656 deprecated_selected_frame, to value_of_builtin_reg.
2658 2003-03-12 Andrew Cagney <cagney@redhat.com>
2660 * regcache.c (regcache_cooked_write_signed): New function.
2661 (regcache_cooked_write_unsigned): New function.
2662 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
2663 (regcache_cooked_read_signed): Fix regnum in range assertion.
2664 * regcache.h (regcache_cooked_write_signed): Declare.
2665 (regcache_cooked_write_unsigned): Declare.
2667 2003-03-12 Andrew Cagney <cagney@redhat.com>
2669 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
2670 * gdbarch.h, gdbarch.c: Re-generate.
2671 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2672 * x86-64-tdep.h: Update.
2673 * x86-64-tdep.c (x86_64_init_abi): Update.
2674 * v850-tdep.c (v850_gdbarch_init): Update.
2675 * sparc-tdep.c (sparc_gdbarch_init): Update.
2676 * sh-tdep.c (sh_gdbarch_init): Update.
2677 * s390-tdep.c (s390_gdbarch_init): Update.
2678 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2679 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
2680 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2681 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2682 * mips-tdep.c (mips_gdbarch_init): Update.
2683 * mcore-tdep.c (mcore_gdbarch_init): Update.
2684 * m68k-tdep.c (m68k_gdbarch_init): Update.
2685 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2686 * ia64-tdep.c (ia64_gdbarch_init): Update.
2687 * i386-tdep.c (i386_gdbarch_init): Update.
2688 * i386-interix-tdep.c (i386_interix_init_abi): Update.
2689 * hppa-tdep.c (hppa_gdbarch_init): Update.
2690 * h8300-tdep.c (h8300_gdbarch_init): Update.
2691 * frv-tdep.c (frv_gdbarch_init): Update.
2692 * cris-tdep.c (cris_gdbarch_init): Update.
2693 * avr-tdep.c (avr_gdbarch_init): Update.
2694 * arm-tdep.c (arm_gdbarch_init): Update.
2695 * alpha-tdep.c (alpha_gdbarch_init): Update.
2696 * sh-tdep.c (sh_init_extra_frame_info): Update.
2697 (sh64_init_extra_frame_info): Update.
2698 * ns32knbsd-nat.c (frame_num_args): Update.
2699 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
2700 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
2701 (xstormy16_frame_chain_valid): Update.
2702 * vax-tdep.c (vax_saved_pc_after_call): Update.
2703 * v850-tdep.c (v850_frame_chain): Update.
2704 (v850_pop_frame): Update.
2705 (v850_init_extra_frame_info): Update.
2706 * sparc-tdep.c (setup_arbitrary_frame): Update.
2707 * ns32k-tdep.c (umax_frame_num_args): Update.
2708 * s390-tdep.c (s390_pop_frame_regular): Update.
2709 * mn10300-tdep.c (mn10300_frame_chain): Update.
2710 (mn10300_pop_frame_regular): Update.
2711 (mn10300_init_extra_frame_info): Update.
2712 * mips-tdep.c (mips_init_frame_pc_first): Update.
2713 (mips_frame_chain): Update.
2714 (mips_pop_frame): Update.
2715 * mcore-tdep.c (mcore_frame_chain): Update.
2716 (mcore_pop_frame): Update.
2717 (mcore_init_extra_frame_info): Update.
2718 * arch-utils.c (init_frame_pc_default): Update.
2719 * m68k-tdep.c (isi_frame_num_args): Update.
2720 (delta68_frame_num_args): Update.
2721 (news_frame_num_args): Update.
2722 * ia64-tdep.c (ia64_pop_frame_regular): Update.
2723 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
2724 (alpha_frame_chain): Update.
2725 (alpha_pop_frame): Update.
2726 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
2727 (hppa_init_extra_frame_info): Update.
2728 (hppa_frame_chain): Update.
2729 (hppa_frame_chain_valid): Update.
2730 * cris-tdep.c (cris_init_extra_frame_info): Update.
2731 * avr-tdep.c (avr_init_extra_frame_info): Update.
2732 * arm-tdep.c (arm_frame_chain_valid): Update.
2733 (arm_init_extra_frame_info): Update.
2734 (arm_pop_frame): Update.
2735 * frame.c (frame_pc_unwind): Update.
2736 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
2737 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
2738 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
2739 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
2740 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
2741 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
2743 2003-03-12 Andrew Cagney <cagney@redhat.com>
2745 Eliminate the need for POP_FRAME.
2746 * frame.c (do_frame_unwind_register): New function.
2747 (frame_pop): When no POP_FRAME, pop the frame using register
2748 unwind and a scratch regcache.
2749 (frame_saved_regs_pop): Delete function.
2750 (trad_frame_unwinder): Update.
2751 * d10v-tdep.c (d10v_frame_pop): Delete function.
2752 (d10v_frame_unwind): Update.
2753 * sentinel-frame.c (sentinel_frame_pop): Delete function.
2754 (sentinel_frame_unwinder): Update.
2755 * dummy-frame.c (dummy_frame_pop): Delete function.
2756 (dummy_frame_unwind): Update.
2757 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
2758 (struct frame_unwind): Update.
2760 2003-03-11 Kevin Buettner <kevinb@redhat.com>
2762 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
2763 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
2764 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
2765 Do range checks on register number obtained from debugging info.
2766 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
2767 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
2768 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
2770 (do_fp_register_row): Fix typo which caused double type to be
2771 used when attempting to unpack a float.
2773 2003-03-11 J. Brobecker <brobecker@gnat.com>
2775 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
2777 2003-03-11 Andrew Cagney <cagney@redhat.com>
2779 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
2780 frame. Problem found by Corinna Vinschen.
2782 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
2784 * doublest.c (floatformat_from_length): Accept also
2785 the real size of 'long double' type.
2787 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
2789 From Klee Dienes <kdienes@apple.com>:
2790 * breakpoint.c (bpstat_copy): Copy the command lines as well
2791 as the old value, to match what is freed in bpstat_clear.
2793 2003-03-10 David Carlton <carlton@math.stanford.edu>
2795 * minsyms.c (add_minsym_to_hash_table): Replace
2796 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
2797 (compare_minimal_symbols, compact_minimal_symbols)
2798 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
2799 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
2800 of DEPRECATED_SYMBOL_MATCHES_NAME.
2801 (lookup_minimal_symbol_solib_trampoline): Ditto.
2803 2003-03-10 Andrew Cagney <cagney@redhat.com>
2805 * regcache.h (regcache_cooked_read_ftype): Define.
2806 (regcache_save, regcache_restore): Add a cooked_read parameter.
2807 * regcache.c (regcache_save, regcache_restore): Update.
2808 (do_cooked_read): New function.
2809 (regcache_cpy): Pass do_cooked_read to regcache_save and
2812 2003-03-10 Andrew Cagney <cagney@redhat.com>
2814 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
2815 * gdbarch.h, gdbarch.c: Re-generate.
2816 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2817 * x86-64-tdep.h: Update.
2818 * x86-64-tdep.c (x86_64_init_abi): Update.
2819 * v850-tdep.c (v850_gdbarch_init): Update.
2820 * sparc-tdep.c (sparc_gdbarch_init): Update.
2821 * sh-tdep.c (sh_gdbarch_init): Update.
2822 * s390-tdep.c (s390_gdbarch_init): Update.
2823 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2824 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
2825 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2826 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2827 * mips-tdep.c (mips_gdbarch_init): Update.
2828 * mcore-tdep.c (mcore_gdbarch_init): Update.
2829 * m68k-tdep.c (m68k_gdbarch_init): Update.
2830 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2831 * ia64-tdep.c (ia64_gdbarch_init): Update.
2832 * i386-tdep.c (i386_gdbarch_init): Update.
2833 * i386-interix-tdep.c (i386_interix_init_abi): Update.
2834 * hppa-tdep.c (hppa_gdbarch_init): Update.
2835 * h8300-tdep.c (h8300_gdbarch_init): Update.
2836 * frv-tdep.c (frv_gdbarch_init): Update.
2837 * cris-tdep.c (cris_gdbarch_init): Update.
2838 * avr-tdep.c (avr_gdbarch_init): Update.
2839 * arm-tdep.c (arm_gdbarch_init): Update.
2840 * alpha-tdep.c (alpha_gdbarch_init): Update.
2841 * sh-tdep.c (sh_init_extra_frame_info): Update.
2842 (sh64_init_extra_frame_info): Update.
2843 * ns32knbsd-nat.c (frame_num_args): Update.
2844 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
2845 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
2846 (xstormy16_frame_chain_valid): Update.
2847 * vax-tdep.c (vax_saved_pc_after_call): Update.
2848 * v850-tdep.c (v850_frame_chain): Update.
2849 (v850_pop_frame): Update.
2850 (v850_init_extra_frame_info): Update.
2851 * sparc-tdep.c (setup_arbitrary_frame): Update.
2852 * ns32k-tdep.c (umax_frame_num_args): Update.
2853 * s390-tdep.c (s390_pop_frame_regular): Update.
2854 * mn10300-tdep.c (mn10300_frame_chain): Update.
2855 (mn10300_pop_frame_regular): Update.
2856 (mn10300_init_extra_frame_info): Update.
2857 * mips-tdep.c (mips_init_frame_pc_first): Update.
2858 (mips_frame_chain): Update.
2859 (mips_pop_frame): Update.
2860 * mcore-tdep.c (mcore_frame_chain): Update.
2861 (mcore_pop_frame): Update.
2862 (mcore_init_extra_frame_info): Update.
2863 * arch-utils.c (init_frame_pc_default): Update.
2864 * m68k-tdep.c (isi_frame_num_args): Update.
2865 (delta68_frame_num_args): Update.
2866 (news_frame_num_args): Update.
2867 * ia64-tdep.c (ia64_pop_frame_regular): Update.
2868 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
2869 (alpha_frame_chain): Update.
2870 (alpha_pop_frame): Update.
2871 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
2872 (hppa_init_extra_frame_info): Update.
2873 (hppa_frame_chain): Update.
2874 (hppa_frame_chain_valid): Update.
2875 * cris-tdep.c (cris_init_extra_frame_info): Update.
2876 * avr-tdep.c (avr_init_extra_frame_info): Update.
2877 * arm-tdep.c (arm_frame_chain_valid): Update.
2878 (arm_init_extra_frame_info): Update.
2879 (arm_pop_frame): Update.
2880 * frame.c (frame_pc_unwind): Update.
2881 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
2882 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
2883 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
2884 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
2885 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
2886 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
2888 2003-03-10 Andrew Cagney <cagney@redhat.com>
2890 * gdbarch.sh (gdbarch_unwind_pc): New method.
2891 * gdbarch.h, gdbarch.c: Regenerate.
2892 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
2893 but use read_pc and FRAME_SAVED_PC as fall backs.
2894 (frame_saved_regs_pc_unwind): Delete function.
2895 (trad_frame_unwinder): Update.
2896 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
2897 (struct frame_unwind): Update.
2898 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
2899 (dummy_frame_unwind): Update.
2900 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
2901 (sentinel_frame_unwinder): Update.
2902 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
2903 (d10v_frame_unwind): Update.
2904 (d10v_unwind_pc): New function.
2905 (d10v_gdbarch_init): Set unwind_pc.
2907 2003-03-10 Andrew Cagney <cagney@redhat.com>
2909 * gdbarch.h: Re-generate.
2911 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
2913 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
2916 2003-03-08 Mark Kettenis <kettenis@gnu.org>
2918 * gdbarch.sh (save_dummy_frame_tos): Add comment.
2920 2003-03-08 Andrew Cagney <cagney@redhat.com>
2922 * cli-out.c: Update copyright.
2923 (cli_out_data): Define typedef. Use instead of ui_out_data.
2925 2003-03-08 Andrew Cagney <cagney@redhat.com>
2927 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
2930 2003-03-07 Andrew Cagney <cagney@redhat.com>
2932 * gdbarch.sh: Don't generate two macro definitions when an
2933 undefined macro taking no arguments.
2934 * gdbarch.h: Regenerate.
2936 2002-03-07 Michal Ludvig <mludvig@suse.cz>
2938 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
2939 (x86_64_unwind_dummy_id): New functions.
2940 (x86_64_init_abi): Register these two new functions.
2942 2003-03-07 Michal Ludvig <mludvig@suse.cz>
2944 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
2945 (x86_64_skip_prologue): Move prologue detection to
2947 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
2949 2003-03-05 Andrew Cagney <cagney@redhat.com>
2951 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
2952 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
2953 * frame.c (get_prev_frame): Restructure the frame ID unwind code
2954 to use unwind_dummy_id when a dummy frame.
2955 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
2957 * gdbarch.h, gdbarch.c: Regneerate.
2959 2003-03-05 Andrew Cagney <cagney@redhat.com>
2961 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
2962 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
2963 Do not use d10v_read_sp or d10v_read_fp when obtaining register
2966 2003-03-05 Andrew Cagney <cagney@redhat.com>
2968 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
2969 (struct d10v_unwind_cache): Delete field "frameless". Replace
2970 "next_addr" with "sp_offset". Add "r11_offset".
2971 (d10v_frame_unwind_cache): Update.
2972 (prologue_find_regs): Update. When "mv r11, sp", save the
2973 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
2974 RN was saved in r11_offset.
2976 2003-03-05 Andrew Cagney <cagney@redhat.com>
2978 * frame.c (deprecated_update_frame_pc_hack): Also update the the
2979 cached PC value in the next frame.
2981 2003-03-05 Andrew Cagney <cagney@redhat.com>
2983 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
2984 "id_unwind_cache" with "id".
2985 (frame_id_unwind): Delete declaration.
2986 * frame.c (frame_id_unwind): Delete function.
2987 (get_prev_frame): Call the frame id unwind method directly. Store
2988 the returned next frame's ID value in NEXT_FRAME. Note that there
2989 is a problem with the wrong unwind ID being called with the wrong
2992 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
2994 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
2996 2003-03-05 James Ingham <jingham@apple.com>
2997 Daniel Jacobowitz <drow@mvista.com>
2999 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
3000 (auto_cp_abi): New variable.
3001 (current_cp_abi, num_cp_abis): Make static.
3002 (CP_ABI_MAX): Define.
3003 (cp_abis): Turn into an array.
3004 (value_virtual_fn_field): Fix formatting.
3005 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
3007 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
3008 (list_cp_abis, _initialize_cp_abi): New functions.
3009 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
3010 declarations for cp_abis, num_cp_abis, current_cp_abi, and
3011 switch_to_cp_abi. Update prototype for register_cp_abi.
3012 * Makefile.in (cp-abi.o): Update dependencies.
3013 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
3014 instead of switch_to_cp_abi.
3015 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
3017 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
3019 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
3021 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
3023 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
3024 * dwarf2loc.c: Include "regcache.h".
3025 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
3027 * Makefile.in (dwarf2loc.o): Update dependencies.
3029 2003-03-04 Theodore A. Roth <troth@openavr.org>
3031 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
3032 number of io registers reported by remote target is not a multiple of
3035 2003-03-04 David Carlton <carlton@math.stanford.edu>
3037 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
3038 (lookup_symbol_aux_psymtabs): Update call to
3039 lookup_partial_symbol.
3040 (lookup_transparent_type, find_main_psymtab)
3041 (make_symbol_overload_list): Ditto.
3043 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
3045 * MAINTAINERS (Write after approval): Update my email address.
3047 2003-03-03 Andrew Cagney <cagney@redhat.com>
3049 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
3050 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
3051 predicate. Replace MAX_REGISTER_RAW_SIZE.
3052 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
3053 MAX_REGISTER_VIRTUAL_SIZE.
3054 * regcache.c (legacy_max_register_raw_size): New function.
3055 (legacy_max_register_virtual_size): New function.
3056 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
3057 (MAX_REGISTER_RAW_SIZE): Define.
3058 (legacy_max_register_raw_size): Declare.
3059 (legacy_max_register_virtual_size): Declare.
3060 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
3061 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
3062 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
3063 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
3064 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
3065 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
3066 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
3067 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
3068 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
3069 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3070 * vax-tdep.c (vax_gdbarch_init): Update.
3071 * v850-tdep.c (v850_gdbarch_init): Update.
3072 * sparc-tdep.c (sparc_gdbarch_init): Update.
3073 * sh-tdep.c (sh_gdbarch_init): Update.
3074 * s390-tdep.c (s390_gdbarch_init): Update.
3075 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3076 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3077 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3078 * mips-tdep.c (mips_gdbarch_init): Update.
3079 * mcore-tdep.c (mcore_gdbarch_init): Update.
3080 * m68k-tdep.c (m68k_gdbarch_init): Update.
3081 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3082 * ia64-tdep.c (ia64_gdbarch_init): Update.
3083 * i386-tdep.c (i386_gdbarch_init): Update.
3084 * hppa-tdep.c (hppa_gdbarch_init): Update.
3085 * h8300-tdep.c (h8300_gdbarch_init): Update.
3086 * frv-tdep.c (frv_gdbarch_init): Update.
3087 * cris-tdep.c (cris_gdbarch_init): Update.
3088 * avr-tdep.c (avr_gdbarch_init): Update.
3089 * arm-tdep.c (arm_gdbarch_init): Update.
3090 * alpha-tdep.c (alpha_gdbarch_init): Update.
3091 * d10v-tdep.c (d10v_gdbarch_init): Do not set
3092 max_register_raw_size or max_register_virtual_size.
3094 2003-03-03 David Carlton <carlton@math.stanford.edu>
3096 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
3097 SYMBOL_MATCHES_NAME, add comment.
3098 (SYMBOL_MATCHES_NATURAL_NAME): New.
3099 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
3100 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
3101 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
3102 * symtab.c (lookup_partial_symbol): Use
3103 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
3105 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
3106 SYMBOL_MATCHES_NAME.
3109 2003-03-03 David Carlton <carlton@math.stanford.edu>
3111 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
3112 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
3113 by regexp matching against SYMBOL_NATURAL_NAME.
3115 2003-03-03 David Carlton <carlton@math.stanford.edu>
3117 * linespec.c (find_method): Extract code into collect_methods.
3118 (collect_methods): New.
3120 2003-03-02 Mark Kettenis <kettenis@gnu.org>
3122 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
3125 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
3126 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
3128 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
3130 * arch-utils.c (generic_register_byte): Fix to use the loop index
3131 and not regnum when summing the size of all registers up to regnum.
3133 2003-03-01 Andrew Cagney <cagney@redhat.com>
3135 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
3136 FRAME_INIT_SAVED_REGS.
3137 * gdbarch.h, gdbarch.c: Regenerate.
3138 * stack.c (frame_info): Update.
3139 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
3140 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
3141 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
3142 * ns32k-tdep.c (ns32k_pop_frame): Update.
3143 * mips-tdep.c (mips_pop_frame): Update.
3144 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
3145 * ia64-tdep.c (ia64_frame_chain): Update.
3146 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
3147 (ia64_frameless_function_invocation): Update.
3148 (ia64_init_extra_frame_info): Update.
3149 (ia64_pop_frame_regular): Update.
3150 * frame.h (struct frame_info): Update comment.
3151 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
3152 * frame.c (frame_saved_regs_register_unwind): Update.
3153 (frame_saved_regs_register_unwind): Update.
3154 (deprecated_generic_get_saved_register): Update.
3155 * cris-tdep.c: Update comment.
3156 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
3158 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3159 * x86-64-tdep.c (x86_64_init_abi): Update.
3160 * vax-tdep.c (vax_gdbarch_init): Update.
3161 * v850-tdep.c (v850_gdbarch_init): Update.
3162 * sparc-tdep.c (sparc_gdbarch_init): Update.
3163 * sh-tdep.c (sh_gdbarch_init): Update.
3164 * s390-tdep.c (s390_gdbarch_init): Update.
3165 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3166 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
3167 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3168 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3169 * mips-tdep.c (mips_gdbarch_init): Update.
3170 * mcore-tdep.c (mcore_gdbarch_init): Update.
3171 * m68k-tdep.c (m68k_gdbarch_init): Update.
3172 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3173 * ia64-tdep.c (ia64_gdbarch_init): Update.
3174 * i386-tdep.c (i386_gdbarch_init): Update.
3175 * frv-tdep.c (frv_gdbarch_init): Update.
3176 * avr-tdep.c (avr_gdbarch_init): Update.
3177 * arm-tdep.c (arm_gdbarch_init): Update.
3178 * alpha-tdep.c (alpha_gdbarch_init): Update.
3180 2003-03-01 Andrew Cagney <cagney@redhat.com>
3182 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
3183 option enum and switch. When no windows, set the interpreter to
3186 2003-03-01 Andrew Cagney <cagney@redhat.com>
3188 * main.c (captured_main): Replace magic option characters with an
3191 2003-03-01 Andrew Cagney <cagney@redhat.com>
3193 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
3194 INIT_EXTRA_FRAME_INFO.
3195 * gdbarch.h, gdbarch.c: Regenerate.
3196 * arm-tdep.c: Update comments.
3197 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
3198 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
3199 * frame.h, avr-tdep.c: Ditto.
3200 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
3201 (create_new_frame, legacy_get_prev_frame): Ditto.
3202 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
3203 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
3204 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
3205 deprecated_init_extra_frame_info instead of init_extra_frame_info.
3206 * x86-64-tdep.c (x86_64_init_abi): Ditto.
3207 * v850-tdep.c (v850_gdbarch_init): Ditto.
3208 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3209 * sh-tdep.c (sh_gdbarch_init): Ditto.
3210 * s390-tdep.c (s390_gdbarch_init): Ditto.
3211 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
3212 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3213 * mips-tdep.c (mips_gdbarch_init): Ditto.
3214 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3215 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3216 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3217 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
3218 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
3219 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3220 * frv-tdep.c (frv_gdbarch_init): Ditto.
3221 * cris-tdep.c (cris_gdbarch_init): Ditto.
3222 * avr-tdep.c (avr_gdbarch_init): Ditto.
3223 * arm-tdep.c (arm_gdbarch_init): Ditto.
3224 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3225 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3227 2003-03-01 Andrew Cagney <cagney@redhat.com>
3229 * gdbarch.sh (register_type): New function with predicate.
3230 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
3231 * gdbarch.h, gdbarch.c: Re-generate.
3232 * arch-utils.c (generic_register_byte): Use generic_register_size.
3233 (generic_register_size): When available, use
3234 gdbarch_register_type.
3235 * regcache.c (init_regcache_descr): When available, initialize the
3236 register type array using gdbarch_register_type. If the
3237 architecture supplies gdbarch_register_type, do not use the legacy
3239 * d10v-tdep.c (d10v_register_type): Replace
3240 d10v_register_virtual_type.
3241 (d10v_gdbarch_init): Set register_type instead of
3242 register_virtual_type.
3244 2003-03-01 Andrew Cagney <cagney@redhat.com>
3246 * Makefile.in (ax-gdb.o): Update dependencies.
3247 * ax-gdb.c: Include "regcache.h".
3248 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
3249 * findvar.c (value_of_register): Ditto.
3250 * infcmd.c (default_print_registers_info): Ditto.
3252 2003-03-01 Mark Kettenis <kettenis@gnu.org>
3254 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
3255 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
3257 2003-03-01 Mark Kettenis <kettenis@gnu.org>
3259 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
3262 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
3264 * Makefile.in (dwarf2loc.o): Update dependencies.
3265 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
3266 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
3267 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
3268 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
3269 (locexpr_tracepoint_var_ref): New function.
3270 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
3272 2003-02-28 Andrew Cagney <cagney@redhat.com>
3274 * regcache.c (register_size): New function.
3275 * regcache.h (register_size): Declare
3276 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
3277 max_register_size instead of MAX_REGISTER_RAW_SIZE.
3279 2003-02-28 David Carlton <carlton@math.stanford.edu>
3281 * linespec.c (decode_compound): Extract code into find_method.
3284 2003-02-28 J. Brobecker <brobecker@gnat.com>
3286 * Makefile.in: Add rules to build and link in observer.o.
3288 2003-02-27 J. Brobecker <brobecker@gnat.com>
3290 * observer.c: Minor comments edits.
3292 2003-02-27 J. Brobecker <brobecker@gnat.com>
3294 * observer.h, observer.c: New file.
3296 2003-02-27 Andrew Cagney <cagney@redhat.com>
3298 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
3300 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
3302 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
3303 (M6812_OP_STS_EXT): Likewise.
3304 (m6811_prologue): Use the above to recognize prologue.
3305 (m6812_prologue): Likewise.
3307 2003-02-27 David Carlton <carlton@math.stanford.edu>
3309 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
3311 (compare_psymbols): Ditto.
3312 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
3314 2003-02-27 Michael Snyder <msnyder@redhat.com>
3316 * f-lang.c (build_fortran_types): New function.
3317 (_initialize_f_language): Gdbarch-register built-in fortran types.
3318 * doublest.c (extract_floating): Fix warning text.
3320 2003-02-27 Andrew Cagney <cagney@redhat.com>
3322 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
3323 predicate. Replaces PUSH_DUMMY_FRAME.
3324 * gdbarch.h, gdbarch.c: Regnerate.
3325 * valops.c (hand_function_call): Update. Call
3326 generic_push_dummy_frame directly.
3327 * vax-tdep.c (vax_gdbarch_init): Update.
3328 * sparc-tdep.c (sparc_gdbarch_init): Update.
3329 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3330 * m68k-tdep.c (m68k_gdbarch_init): Update.
3331 * hppa-tdep.c (hppa_gdbarch_init): Update.
3332 * alpha-tdep.c (alpha_gdbarch_init): Update.
3333 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
3334 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
3335 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
3336 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
3337 push_dummy_frame to generic_push_dummy_frame.
3338 * v850-tdep.c (v850_gdbarch_init): Ditto.
3339 * sh-tdep.c (sh_gdbarch_init): Ditto.
3340 * s390-tdep.c (s390_gdbarch_init): Ditto.
3341 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3342 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3343 * mips-tdep.c (mips_gdbarch_init): Ditto.
3344 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3345 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3346 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3347 * i386-tdep.c (i386_gdbarch_init): Ditto.
3348 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3349 * frv-tdep.c (frv_gdbarch_init): Ditto.
3350 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3351 * cris-tdep.c (cris_gdbarch_init): Ditto.
3352 * avr-tdep.c (avr_gdbarch_init): Ditto.
3353 * arm-tdep.c (arm_gdbarch_init): Ditto.
3355 2003-02-26 Kevin Buettner <kevinb@redhat.com>
3357 * mips-tdep.c (show_mips_abi): New function.
3358 (_initialize_mips_tdep): Use show_mips_abi() to implement the
3359 command ``show mips abi''.
3361 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
3363 From Elena Zannoni <ezannoni@redhat.com>
3364 * dbxread.c (process_one_symbol): Only record line 0 if one or
3365 more sline entries have been seen for the function.
3367 2003-02-26 Michael Chastain <mec@shout.net>
3369 * configure: Regenerate with autoconf 000227.
3371 2003-02-26 Michael Chastain <mec@shout.net>
3374 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
3375 for old libc5/glibc.
3376 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
3378 2003-02-26 Kris Warkentin <kewarken@qnx.com>
3380 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
3381 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
3383 2003-02-26 Michael Chastain <mec@shout.net>
3385 * configure.in: New variable HAVE_UINTPTR_T.
3386 * configure, config.in: Regenerated.
3388 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
3391 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
3393 2003-02-25 Andrew Cagney <cagney@redhat.com>
3395 * frame.c (get_prev_frame): Add comment on check for
3396 inside_entry_func. Only check for inside_entry_file when not a
3397 dummy and not a sentinel. Check that the new frame is not inner
3400 2003-02-25 Andrew Cagney <cagney@redhat.com>
3402 * frame.c (frame_debug): New variable.
3403 (_initialize_frame): Add "set/show debug frame" command.
3404 (get_prev_frame): When frame_debug, print reason why unwind
3407 2003-02-25 Michael Chastain <mec@shout.net>
3409 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
3410 to avoid uintptr_t definition problems.
3412 2003-02-25 David Carlton <carlton@math.stanford.edu>
3414 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
3415 (SYMBOL_LINKAGE_NAME): Ditto.
3416 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
3417 SYMBOL_LINKAGE_NAME.
3418 (struct general_symbol_info): Expand comment.
3419 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
3420 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
3421 (SYMBOL_MATCHES_REGEXP): Ditto.
3422 * symtab.c (symbol_natural_name): New function.
3423 * objfiles.h: Replace all uses of SYMBOL_NAME by
3424 DEPRECATED_SYMBOL_NAME.
3425 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
3426 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
3427 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
3428 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
3429 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
3430 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
3431 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
3432 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
3433 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
3434 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
3436 * ada-exp.y: Update copyright.
3437 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
3438 * cp-valprint.c: Ditto.
3440 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
3442 * infptrace.c (detach): Do not flag error if ptrace detach fails
3443 and errno is set to ESRCH.
3445 2003-02-24 Andrew Cagney <cagney@redhat.com>
3447 * infptrace.c (udot_info): Change type of udot_off to long. Use
3448 paddr when printing udot_off's value.
3450 2003-02-24 David Carlton <carlton@math.stanford.edu>
3452 * symtab.c (make_symbol_overload_list): Only read in partial
3453 symtabs containing a matching partial symbol.
3455 2003-02-24 David Carlton <carlton@math.stanford.edu>
3457 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
3458 do the comparison, not strcmp.
3459 * symfile.c (compare_psymbols): Ditto.
3460 * defs.h: Declare strcmp_iw_ordered.
3461 * utils.c (strcmp_iw_ordered): New function.
3463 2003-02-24 Jim Blandy <jimb@redhat.com>
3465 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
3466 support, shared libs): Remove my name from here, to better reflect
3469 2003-02-24 Kris Warkentin <kewarken@qnx.com>
3471 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
3472 (target_ops): Add to_have_continuable_watchpoint.
3473 * target.c (update_current_target): Add INHERIT line for
3474 to_have_continuable_watchpoint.
3475 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
3476 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
3477 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
3478 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
3480 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
3482 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
3485 2003-02-24 Kris Warkentin <kewarken@qnx.com>
3487 * solib.c (solib_open): Call target defined search function after
3488 failing with solib-search-path.
3489 * solist.h (target_so_ops): Add find_and_open_solib function hook and
3490 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
3492 2003-02-24 Kris Warkentin <kewarken@qnx.com>
3494 * MAINTAINERS: Add myself to Write After section.
3496 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
3498 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
3500 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
3502 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
3503 (m68hc11_add_reggroups): New function.
3504 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
3505 (m68hc11_gdbarch_init): Install the reggroups.
3506 (_initialize_m68hc11_tdep): Initialize them.
3508 2003-02-21 James E Wilson <wilson@tuliptree.org>
3510 * MAINTAINERS: Update my email address.
3512 2003-02-21 David Carlton <carlton@math.stanford.edu>
3514 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
3516 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
3518 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
3519 * symtab.h: Add opaque declarations of struct axs_value and
3521 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
3522 (struct location_funcs): New type.
3523 (struct symbol): Add "loc" to aux_value.
3524 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
3525 * dwarf2read.c: Include "dwarf2expr.h".
3526 (dwarf2_symbol_mark_computed): New function.
3527 (read_func_scope): Use it.
3528 (var_decode_location): New function.
3529 (new_symbol): Use it.
3530 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
3532 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
3533 (dwarf2expr_h, dwarf2loc_h): New variables.
3534 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
3535 (dwarf2expr.o, dwarf2loc.o): New rules.
3536 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
3537 * buildsym.c (finish_block): Handle LOC_COMPUTED and
3539 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
3540 * m2-exp.y (yylex): Likewise.
3541 * printcmd.c (address_info, print_frame_args): Likewise.
3542 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
3543 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
3544 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
3545 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
3546 * symtab.c (lookup_block_symbol): Likewise.
3548 2003-02-20 Adam Fedor <fedor@gnu.org>
3550 * symtab.h: Remove objc_specific struct
3551 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
3552 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
3553 Have language_objc use cplus_specific struct.
3555 2003-02-20 Tom Tromey <tromey@redhat.com>
3557 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
3558 TYPE_NAME, when printing a String value. PR java/1075.
3560 2003-02-20 Adam Fedor <fedor@gnu.org>
3562 * objc-lang.h (find_methods): Remove declaration.
3563 * objc-lang.c (find_methods): Make static.
3565 2003-02-20 Christopher Faylor <cgf@redhat.com>
3567 * win32-nat.c (get_image_name): Check return value from
3569 (child_xfer_memory): Ditto.
3571 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
3573 * configure.in (TARGET_SYSTEM_ROOT): Set default to
3574 ${exec_prefix}/${target_alias}/sys-root. Match explicit
3575 '${exec_prefix}' (in addition to the expansion thereof) as
3577 * configure: Rebuilt.
3579 2003-02-20 David Carlton <carlton@math.stanford.edu>
3581 * symtab.c (search_symbols): Revert the search_symbols part of my
3582 2002-12-23 patch. Add comment.
3584 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
3586 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
3587 * dbxread.c (elfstab_build_psymtabs): Don't call
3588 install_minimal_symbols.
3589 (stabsect_build_psymtabs): Likewise.
3590 * elfread.c (elf_symfile_read): Call install_minimal_symbols
3592 * somread.c (som_symfile_read): Call install_minimal_symbols
3593 and do_cleanups earlier.
3594 * nlmread.c (nlm_symfile_read): Likewise.
3595 * mdebugread.c (elfmdebug_build_psymtabs): Call
3596 install_minimal_symbols and make appropriate cleanups.
3598 2003-02-20 Kevin Buettner <kevinb@redhat.com>
3600 * solib.c (reload_shared_libraries): New function.
3601 (_initialize_solib): Add callbacks for ``set solib-search-path''
3602 and ``set solib-absolute-prefix''.
3604 2003-02-20 David Carlton <carlton@math.stanford.edu>
3606 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
3608 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
3609 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
3610 * ada-typeprint.c (ada_typedef_print): Ditto.
3611 * ax-gdb.c (gen_var_ref): Ditto.
3612 * breakpoint.c (print_one_breakpoint): Ditto.
3613 * buildsym.c (finish_block): Ditto.
3614 * c-valprint.c (c_val_print): Ditto.
3615 * expprint.c (print_subexp): Ditto.
3616 * findvar.c (locate_var_value): Ditto.
3617 * infcmd.c (jump_command): Ditto.
3618 * linespec.c (decode_line_2, decode_compound): Ditto.
3619 * maint.c (maintenance_translate_address): Ditto.
3620 * objc-lang.c (compare_selectors, compare_classes): Ditto.
3621 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
3623 * p-valprint.c (pascal_val_print): Ditto.
3624 * stabsread.c (define_symbol): Ditto.
3625 * stack.c (print_frame, frame_info, print_block_frame_locals)
3626 (print_frame_arg_vars, return_command): Ditto.
3627 * symfile.c (compare_symbols, compare_psymbols): Ditto.
3628 * symmisc.c (print_symbol): Ditto.
3629 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
3630 (compare_search_syms, print_symbol_info, print_msymbol_info)
3631 (rbreak_command): Ditto.
3632 * tracepoint.c (tracepoints_info): Ditto.
3633 * typeprint.c (typedef_print): Ditto.
3634 * valops.c (value_of_variable, hand_function_call): Ditto.
3635 * cli/cli-cmds.c (edit_command, list_command): Ditto.
3636 * ada-typeprint.c: Update Copyright.
3637 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
3638 * tracepoint.c, cli/cli-cmds.c: Ditto.
3640 2003-02-20 Kevin Buettner <kevinb@redhat.com>
3642 * frame.c (generic_unwind_get_saved_register): Make non-static.
3643 * frame.h (generic_unwind_get_saved_register): Declare.
3644 * mips-tdep.c (read_next_frame_reg): Fetch register from
3645 current regcache when frame is NULL.
3646 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
3648 (mips_get_saved_register): Call generic_unwind_get_saved_register()
3649 instead of frame_register_unwind().
3651 2003-02-20 Andrew Cagney <ac131313@redhat.com>
3653 * remote-sim.c (gdbsim_insert_breakpoint)
3654 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
3657 2003-02-20 Andrew Cagney <ac131313@redhat.com>
3659 * remote.c (_initialize_remote): Add commands "set/show remote
3660 hardware-watchpoint-limit" and "set/show remote
3661 hardware-breakpoint-limit".
3662 (remote_hw_watchpoint_limit): Initialize to -1.
3663 (remote_hw_breakpoint_limit): Ditto.
3664 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
3666 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
3668 * coff-pe-read.c: New file - support reading of minimal symbols from a
3669 portable executable using the export table.
3670 * coff-pe-read.h: New file.
3671 * coffread.c: Include coff-pe-read.h.
3672 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
3673 debugging symbols found.
3674 * Makefile.in (SFILES): Add coff-pe-read.o.
3675 (coff_pe_read_h): Define.
3676 (COMMON_OBS): Add coff-pe-read.o.
3677 (coffread.o): Add coff_pe_read_h dependency.
3678 (coff-pe-read.o): New target.
3680 2003-02-19 David Carlton <carlton@math.stanford.edu>
3682 * Makefile.in (SFILES): Add block.c.
3684 (COMMON_OBS): Add block.o.
3686 (x86-64-tdep.o): Add $(block_h).
3687 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
3688 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
3689 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
3690 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
3691 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
3692 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
3693 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
3694 * value.h: Add opaque declaration for struct block.
3695 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
3696 * ada-lang.h: Ditto.
3697 * x86-64-tdep.c: #include "block.h"
3698 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
3699 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
3700 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
3701 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
3702 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
3703 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
3704 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
3705 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
3706 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
3707 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
3708 * symtab.c (block_function): Ditto.
3709 (contained_in): Ditto.
3710 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
3711 block.h. Add opaque declaration for struct block.
3712 * symtab.h: Move block_function and contained_in declarations to
3713 block.h. Add opaque declarations for struct block, struct
3715 (struct block): Move to block.h.
3716 (struct blockvector): Ditto.
3717 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
3718 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
3719 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
3720 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
3721 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
3723 * block.c: New file.
3724 * block.h: New file.
3726 2003-02-19 Theodore A. Roth <troth@openavr.org>
3728 * avr-tdep.c (avr_extract_return_value): Remove function.
3729 (avr_store_return_value): Remove function.
3730 (avr_extract_struct_value_address): Remove function.
3731 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
3733 2003-02-19 Andrew Cagney <ac131313@redhat.com>
3735 * rs6000-tdep.c: Include "gdb_assert.h".
3736 (registers_e500): Add "acc" and "spefscr".
3737 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
3738 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
3739 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
3741 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
3743 2003-02-18 Keith Seitz <keiths@redhat.com>
3745 * Makefile.in: Add gdbtk-interps.c.
3747 2003-02-18 Kevin Buettner <kevinb@redhat.com>
3749 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
3750 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
3752 2003-02-18 Andrew Cagney <cagney@redhat.com>
3754 * symtab.h (struct objfile): Add opaque declaration.
3756 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
3758 From Jim Ingham <jingham@apple.com>:
3759 * dbxread.c (process_one_symbol): Use last_function_start rather
3760 than function_start_offset to find the real beginning of the
3761 current function. The latter is just the text section offset on
3762 some systems, the former is always the real function start.
3764 2003-02-17 Andrew Cagney <cagney@redhat.com>
3766 * configure.in: Revert ${target} != ${host}.
3768 2003-02-17 Andrew Cagney <ac131313@redhat.com>
3770 * configure.in (Makefile): Use the test ${target} != ${host},
3771 instead of the absence of the "nm.h" file, to determine of the
3772 configuration non-native.
3773 * configure: Regenerate.
3775 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
3777 From Brian Ford <ford@vss.fsi.com>
3779 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
3780 conditionalize tui_active test.
3781 (lookup_cmd_1): Ditto.
3783 2003-02-14 Mark Kettenis <kettenis@gnu.org>
3785 * configure.in: Add check for _etext.
3786 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
3788 * config.in, configure: regenerated.
3790 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
3792 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
3794 2003-02-14 Andrew Cagney <ac131313@redhat.com>
3796 * main.c (tui_version): Delete variable.
3797 (captured_main): When --tui, set interpreter_p to "tui" instead of
3798 enabling tui_version.
3799 * printcmd.c (display_command) [TUI]: Test tui_active instead of
3801 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
3802 * cli/cli-cmds.c (disassemble_command): Ditto.
3803 * defs.h (tui_version): Delete declaration.
3804 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
3805 (tui-interp.o): Add rules.
3806 (SUBDIR_TUI_OBS): Add "tui-interp.o".
3808 2003-02-14 Christopher Faylor <cgf@redhat.com>
3810 * win32-nat.c (register_loaded_dll): Correctly set address range for
3813 2003-02-12 Jason Molenda (jmolenda@apple.com)
3815 * symmisc.c (print_objfile_statistics): Include information about
3816 the number of psymtabs and symtabs in each object file.
3818 2003-02-13 Keith R Seitz <keiths@redhat.com>
3820 * main.h (struct captured_main_args): Add interpreter_p.
3821 * main.c (captured_main): Initialize interpreter_p from context.
3822 * gdb.c (main): Set interpreter_p argument.
3823 * Makefile.in (gdb.o): Add dependency for interps.h.
3825 2003-02-12 Andrew Cagney <ac131313@redhat.com>
3827 * event-top.c (cli_command_loop): Delete declaration.
3828 (_initialize_event_loop): Delete function setting event_loop_hook.
3829 * event-top.h (cli_command_loop): Declare. Update copyright.
3830 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
3831 * interps.c (current_interp_command_loop): When event_loop_p, call
3834 2003-02-12 Andrew Cagney <ac131313@redhat.com>
3836 * interps.h (interp_command_loop_ftype): Change return type to
3839 2003-02-12 Michal Ludvig <mludvig@suse.cz>
3841 * x86-64-tdep.c (x86_64_extract_return_value)
3842 (x86_64_store_return_value): Use regcache instead of regbuf.
3843 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
3844 * x86-64-linux-nat.c (fill_gregset): Use regcache.
3846 2003-02-11 Andrew Cagney <ac131313@redhat.com>
3848 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
3849 * aclocal.m4: Regenerate.
3850 * configure: Regenerate.
3852 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
3853 TCL_LD_SEARCH_FLAGS.
3855 2003-02-10 Michal Ludvig <mludvig@suse.cz>
3857 * dwarf2cfi.c: Reindented.
3859 2003-02-09 Andrew Cagney <ac131313@redhat.com>
3861 * interps.c (clear_interpreter_hooks): Convert function definition
3864 2003-02-07 David Carlton <carlton@math.stanford.edu>
3866 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
3868 2003-02-07 Kevin Buettner <kevinb@redhat.com>
3870 * gdbtypes.h (struct main_type): Move ``length'' field from here...
3871 (struct type): ...to here.
3872 (TYPE_LENGTH): Adjust to reflect different location of ``length''
3874 * gdbtypes.c (make_qualified_type): Set length on newly created type.
3875 (replace_type): Set length on all type variants for a given type.
3877 2003-02-07 Andrew Cagney <ac131313@redhat.com>
3879 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
3881 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
3883 2003-02-06 Andrew Cagney <ac131313@redhat.com>
3885 * Makefile.in (symm-nat.o): Update dependencies.
3886 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
3887 (lynx-nat.o, ia64-linux-nat.): Ditto.
3888 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
3889 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
3890 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
3892 * Makefile.in (inflow_h): Define.
3893 (procfs.o, inflow.o, procfs.o): Update dependencies.
3894 * inftarg.c (child_stop): Delete extern declaration of
3895 inferior_process_group. Include "inflow.h".
3896 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
3897 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
3898 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
3899 (our_process_group, inferior_process_group): Extern declarations.
3901 * procfs.c: Include "gdb_assert.h".
3903 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
3904 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
3905 * jv-typeprint.c (java_type_print_base): Ditto.
3906 * typeprint.c (typedef_print): Eliminate STREQ.
3907 * cli/cli-script.c (define_command, define_command): Ditto.
3908 * main.c (captured_main): Ditto.
3909 * values.c (lookup_internalvar): Ditto.
3910 * utils.c (safe_strerror, parse_escape): Eliminate assignment
3911 within `if' conditional.
3912 * linespec.c (decode_line_2): Ditto.
3913 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
3914 (bfd_openw_with_cleanup): Ditto.
3916 2003-02-07 Mark Kettenis <kettenis@gnu.org>
3918 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
3919 legacy_extract_return_value and store_return_value to
3920 legacy_return_value.
3922 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
3924 * win32-nat.c (get_relocated_section_addrs): New function. Find
3925 section load addresses for symbol handling in relocated DLLs.
3926 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
3928 2003-02-05 Fred Fish <fnf@intrinsity.com>
3930 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
3932 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
3934 (angel_RDI_info): Ditto.
3935 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
3937 (threads_continue_all_with_signals): Ditto.
3939 2003-02-05 Jim Ingham <jingham@apple.com>
3940 Keith Seitz <keiths@redhat.com>
3941 Elena Zannoni <ezannoni@redhat.com>
3942 Andrew Cagney <ac131313@redhat.com>
3944 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
3945 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
3946 (SUBDIR_MI_OBS): Add "mi-interp.o".
3947 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
3948 (SFILES): Add "interps.c".
3949 (COMMON_OBS): Add "interps.o".
3950 (interps_h, mi_main_h): Define.
3951 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
3952 (mi-main.o, main.o, event-top.o): Update dependencies.
3953 * cli/cli-interp.c: New file.
3954 * interps.h, interps.c: New files.
3955 * top.c: (gdb_init): Don't install the default interpreter, handed
3957 * main.c: Include "interps.h".
3958 (interpreter_p): Note that it should malloc'ed.
3959 (captured_command_loop): Call current_interp_command_loop.
3960 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
3961 xfree and xstrdup when updating interpreter_p. Install the
3962 default interpreter. Add hack to stop mi1's copyright notice
3964 * event-top.h (gdb_setup_readline): Declare.
3965 (gdb_disable_readline): Declare.
3966 * event-top.c: Include "interps.h".
3967 (display_gdb_prompt): Call current_interp_display_prompt_p.
3968 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
3969 gdb_stdlog, and gdb_stdtarg.
3970 (_initialize_event_loop): Don't call gdb_setup_readline.
3971 * cli-out.c (cli_out_set_stream): New function.
3972 * cli-out.h (cli_out_set_stream): Declare.
3974 2003-02-06 Mark Kettenis <kettenis@gnu.org>
3976 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
3977 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
3978 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
3979 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
3980 config/i386/i386v42mp.mt: Removed.
3982 2003-02-05 Mark Kettenis <kettenis@gnu.org>
3984 * configure.tgt (*-*-solaris*): Set gdb_osabi to
3987 2003-02-05 Michael Chastain <mec@shout.net>
3989 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
3990 2.12.1 and earlier versions.
3992 2003-02-05 Andrew Cagney <ac131313@redhat.com>
3994 Remove orphaned hosts, targets and files.
3995 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
3996 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
3997 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
3998 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
3999 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
4000 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
4001 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
4002 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
4003 * config/sparc/tm-sp64sim.h: Delete.
4004 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
4006 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
4007 mips*-dec-mach3* targets.
4009 2003-02-04 Michael Chastain <mec@shout.net>
4011 * NEWS: Fix typo: sepcifying -> specifying.
4013 2003-02-04 Michael Chastain <mec@shout.net>
4015 * dwarfread.c: Add documentation on the state of dwarf-1,
4016 looking towards obsoletion.
4018 2003-02-03 Michael Chastain <mec@shout.net>
4020 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
4021 gdb/testsuite/gdb.c++/pr-1023.exp.
4023 2003-02-04 Andrew Cagney <ac131313@redhat.com>
4025 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
4026 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
4028 * utils.c (init_page_info): Delete reference to MPW in comments.
4029 * main.c (captured_main): Delete #ifdef MPW.
4031 2003-02-04 Andrew Cagney <ac131313@redhat.com>
4033 * NEWS: Note that the m32r-*-elf* is obsolete.
4034 * monitor.c (monitor_expect): Obsolete reference to m32r.
4035 * configure.tgt: Mark m32r-*-elf* as obsolete.
4036 * MAINTAINERS: Mark m32k as obsolete.
4037 * m32r-rom.c: Obsolete file.
4038 * config/m32r/m32r.mt: Obsolete file.
4039 * config/m32r/tm-m32r.h: Obsolete file.
4040 * m32r-stub.c: Obsolete file.
4041 * m32r-tdep.c: Obsolete file.
4043 2003-02-04 Andrew Cagney <ac131313@redhat.com>
4045 * NEWS: Mention that the z8k-zilog-none is obsolete.
4046 * MAINTAINERS: Mark z8k as obsolete.
4047 * configure.tgt: Obsolete the z8k-*-coff* target.
4048 * config/z8k/z8k.mt: Obsolete file.
4049 * config/z8k/tm-z8k.h: Obsolete file.
4050 * z8k-tdep.c: Obsolete file.
4052 2003-02-04 Andrew Cagney <ac131313@redhat.com>
4054 * NEWS: Mention that the mn10200-elf is obsolete.
4055 * configure.tgt: Obsolete mn10200-*-* target.
4056 * breakpoint.c (update_breakpoints_after_exec): Update comment to
4057 mention that the mn10200 is obsolete.
4058 * breakpoint.h: Ditto.
4059 * MAINTAINERS: Mark the mn10200-elf as obsolete.
4060 * config/mn10200/mn10200.mt: Obsolete file.
4061 * config/mn10200/tm-mn10200.h: Obsolete file.
4062 * mn10200-tdep.c: Obsolete file.
4064 2003-02-04 Andrew Cagney <ac131313@redhat.com>
4066 * MAINTAINERS: Mark h8500 as obsolete.
4067 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
4068 * findvar.c (value_from_register): Ditto.
4069 * h8500-tdep.c: Mark file as obsolete.
4070 * config/h8500/h8500.mt: Ditto.
4071 * config/h8500/tm-h8500.h: Ditto.
4072 * NEWS: Mention that h8500 is obsolete.
4074 2003-02-04 David Carlton <carlton@math.stanford.edu>
4076 * objfiles.c (allocate_objfile): Always set name. Add comment at
4078 * jv-lang.c (get_dynamics_objfile): Add comment.
4080 2003-02-04 David Carlton <carlton@math.stanford.edu>
4082 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
4083 * printcmd.c (build_address_symbolic): Replace uses of
4084 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
4085 SYMBOL_NAME, and asm_demangle.
4088 2003-02-04 David Carlton <carlton@math.stanford.edu>
4090 * linespec.c (decode_compound): Extract code into
4092 (lookup_prefix_sym): New function.
4094 2003-02-04 David Carlton <carlton@math.stanford.edu>
4096 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
4097 FLOAT_COERCION_BADNESS.
4098 * gdbtypes.c (rank_one_type): Replace all uses of
4099 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
4101 2003-02-04 Jim Blandy <jimb@redhat.com>
4103 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
4104 section, let dwarf_macinfo_section point to it, not
4107 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
4109 Pointed out by Anton Blanchard <anton@samba.org>.
4110 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
4111 (ppc_linux_at_sigtramp_return_path): Use it.
4113 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
4115 * defs.h (streq): Add prototype.
4116 * utils.c (streq): New function.
4118 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
4119 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
4120 * mdebugread.c (new_symbol): Likewise.
4121 * stabsread.c (define_symbol): Likewise.
4122 * coffread.c (process_coff_symbol): Likewise.
4123 * dwarfread.c (new_symbol): Likewise.
4125 * minsyms.c (prim_record_minimal_symbol_and_info): Use
4126 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
4128 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
4129 SYMBOL_INIT_DEMANGLED_NAME.
4130 * objfiles.c: Include "hashtab.h".
4131 (allocate_objfile): Call htab_set_functions_ex for the
4132 demangled_names_hash.
4133 (free_objfile): Call htab_delete for the demangled_names_hash.
4134 * objfiles.h (struct htab): Add declaration.
4135 (struct objfile): Add demangled_names_hash.
4136 * symfile.c: Include "hashtab.h".
4137 (reread_symbols): Call htab_delete for the demangled_names_hash.
4138 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
4139 SYMBOL_NAME in the bcache.
4140 * symtab.c: Include "hashtab.h". Update comments.
4141 (create_demangled_names_hash, symbol_set_names): New functions.
4142 (symbol_find_demangled_name): New function, broken out from
4143 symbol_init_demangled_names.
4144 (symbol_init_demangled_names): Use it.
4145 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
4146 (SYMBOL_SET_NAMES): New macro.
4147 (symbol_set_names): Add prototype.
4149 2003-02-03 Jim Blandy <jimb@redhat.com>
4151 Use a single, consistent representation for an empty minimal
4152 symbol table in an objfile.
4153 * objfiles.c (terminate_minimal_symbol_table): New function.
4154 (allocate_objfile): Call it.
4155 * objfiles.h (terminate_minimal_symbol_table): New declaration.
4156 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
4158 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
4159 objfile has minimal symbols, compare minimal_symbol_count to zero,
4160 instead of comparing msymbols with NULL.
4161 * objfiles.c (have_minimal_symbols): Same.
4162 * solib-sunos.c (solib_add_common_symbols): Call
4163 terminate_minimal_symbol_table.
4164 * symfile.c (reread_symbols): Same.
4166 2003-02-03 Kevin Buettner <kevinb@redhat.com>
4168 * s390-tdep.c (s390_address_class_type_flags)
4169 (s390_address_class_type_flags_to_name)
4170 (s390_address_class_name_to_type_flags): New functions.
4171 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
4172 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
4174 2003-02-03 Michael Snyder <msnyder@redhat.com>
4176 * arm-tdep.c: Fix spell-o in comment.
4178 2003-02-03 Michal Ludvig <mludvig@suse.cz>
4180 * dwarf2cfi.c (pointer_encoding): Added new parameter.
4181 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
4182 error messages to contain BFD filename.
4184 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
4186 Fix PR gdb/742 gdb/743 gdb/877
4187 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
4188 (do_mixed_source_and_assembly): Use
4189 make_cleanup_ui_out_tuple_begin_end and
4190 make_cleanup_ui_out_tuple_begin_end.
4191 (do_mixed_source_and_assembly): Ditto.
4192 * thread.c (do_captured_list_thread_ids): Ditto.
4193 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
4194 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
4195 ui_out_tuple_end): Delete prototypes.
4196 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
4197 ui_out_list_end, ui_out_tuple_end): Delete.
4199 From Kevin Buettner <kevinb@redhat.com>:
4200 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
4201 * ui-out.c (make_cleanup_ui_out_table_begin_end)
4202 (do_cleanup_table_end): New functions.
4203 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
4204 Use cleanups to invoke_ui_out_tuple_end().
4205 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
4206 * cli/cli-setshow.c (cmd_show_list): Use
4207 make_cleanup_ui_out_tuple_begin_end.
4209 2003-02-02 Andrew Cagney <ac131313@redhat.com>
4211 * frame.c (frame_unwind_register): New function.
4212 (frame_unwind_unsigned_register): Use.
4213 (frame_unwind_signed_register): Use.
4214 (frame_read_register): New function.
4215 * frame.h (frame_unwind_register): Declare.
4216 (frame_read_register): Declare.
4218 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
4219 and frame_unwind_register instead of read_memory, write_register
4220 and deprecated_write_register_bytes.
4222 2003-02-02 Andrew Cagney <ac131313@redhat.com>
4224 * frame.h: Note that namelen can be negative.
4225 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
4228 * NEWS: Mention that the d10v's `regs' command is deprecated.
4229 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
4230 (d10v_print_registers_info): New function.
4231 (show_regs): Call d10v_print_registers_info.
4232 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
4234 2003-02-02 Mark Kettenis <kettenis@gnu.org>
4236 * stack.c (print_frame_info): Restore call to annotate_frame_begin
4237 lost in the previous patch.
4239 2003-02-01 Andrew Cagney <ac131313@redhat.com>
4241 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
4242 * stack.c (print_frame_info_base): Output complete FRAME tuple
4243 for synthesized frames.
4245 2003-02-02 Andrew Cagney <ac131313@redhat.com>
4247 * mips-nat.c (zerobuf): Delete.
4248 (fetch_inferior_registers): Alloc local zerobuf.
4249 (fetch_core_registers): Alloc local zerobuf.
4250 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
4251 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
4252 * thread-db.c (thread_db_store_registers): Ditto.
4253 * sh-tdep.c (sh_do_register): Ditto.
4254 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
4255 * remote-sim.c (gdbsim_store_register): Ditto.
4256 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4257 * remote-e7000.c (fetch_regs_from_dump): Ditto.
4258 * monitor.c (monitor_supply_register): Ditto.
4259 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
4260 * mips-nat.c (fetch_inferior_registers): Ditto.
4261 * m68klinux-nat.c (fetch_register): Ditto.
4262 * lynx-nat.c (fetch_inferior_registers): Ditto.
4263 (fetch_inferior_registers): Ditto.
4264 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
4265 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
4266 (hpux_thread_store_registers): Ditto.
4267 * hppah-nat.c (fetch_register): Ditto.
4268 * hppab-nat.c (fetch_register): Ditto.
4269 * hppa-tdep.c (pa_register_look_aside): Ditto.
4270 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
4271 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
4273 2003-02-01 Andrew Cagney <ac131313@redhat.com>
4275 * gdbarch.sh: Explictly specify all method levels. When a
4276 variable with an empty level, provide a non-multi-arch default.
4277 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
4278 * gdbarch.h: Re-generate.
4279 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
4280 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
4282 2003-02-01 Andrew Cagney <ac131313@redhat.com>
4284 * defs.h (host_pointer_to_address): Delete declaration.
4285 (address_to_host_pointer): Delete declaration.
4286 * utils.c (host_pointer_to_address): Delete function.
4287 (address_to_host_pointer): Delete function.
4288 * procfs.c (procfs_address_to_host_pointer): New function.
4289 * procfs.c (proc_set_watchpoint): Use.
4290 (procfs_can_use_hw_breakpoint): Update comments.
4291 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
4292 (som_solib_add): Use.
4293 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
4294 * hppa-tdep.c (unwind_command): Use.
4296 2003-02-01 Andrew Cagney <ac131313@redhat.com>
4298 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
4301 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
4302 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
4303 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
4304 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
4305 (define_symbol): Update.
4306 * symfile.c (generic_load): Remove references to nindy.
4307 * symtab.c: Remove references to nindy.
4309 2003-02-01 Andrew Cagney <ac131313@redhat.com>
4311 * infcmd.c (print_float_info): Delete code conditional on
4313 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
4314 * config/m68k/nm-apollo68b.h: Ditto.
4315 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
4316 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
4317 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
4319 2003-02-01 Mark Kettenis <kettenis@gnu.org>
4321 * config/i386/tm-i386os9k.h: Removed.
4323 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
4324 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
4325 they're identical to i[3456]86-*-sysv* now.
4326 * config/i386/i386v32.mh: Removed.
4327 * config/i386/xm-i386v32.h: Removed.
4328 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
4330 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
4332 * config/i386/i386dgux.mh: Removed.
4333 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
4335 * configure.in: Fix typo.
4336 * configure: Regenerated.
4338 2003-01-31 David Carlton <carlton@math.stanford.edu>
4340 * dwarf2read.c (dwarf2_locate_sections): Set
4341 dwarf_ranges_section.
4343 2003-01-31 Andrew Cagney <ac131313@redhat.com>
4345 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
4346 * utils.c: Update comments documenting legitimate uses of PTR.
4348 * utils.c: Re-indent.
4350 * config/djgpp/fnchange.lst: Delete nindy files.
4351 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
4352 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
4353 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
4354 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
4355 * nindy-share/README, nindy-share/Onindy.c: Delete files.
4356 * nindy-tdep.c, nindy-share/Makefile: Delete files.
4357 * Makefile.in (init.c): Remove nindy references.
4358 (saber_gdb): Delete rule.
4359 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
4360 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
4362 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
4363 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
4364 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
4365 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
4367 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
4368 * saber.suppress: Delete file.
4370 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
4372 * dbxread.c (stabs_data): New static variable.
4373 (fill_symbuf): Support an in-memory buffer for stabs data.
4374 (stabs_seek): New function.
4375 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
4376 (read_ofile_symtab): Use stabs_seek.
4377 (elfstab_build_psymtabs): Take an asection* instead of
4378 an offset and size. Relocate the stabs data if necessary.
4379 Save the section* for dbx_psymtab_to_symtab.
4380 * dwarf2read.c: Add section variables for each debug section.
4381 (dwarf2_locate_sections): Fill them in.
4382 (dwarf2_read_section): Take an asection* argument.
4383 Relocate the section contents if necessary.
4384 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
4385 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
4386 it to dwarf2_read_section.
4387 (dwarf2_build_frame_info): Update callers.
4388 * elfread.c (elf_symfile_read): Update call to
4389 elfstab_build_psymtabs.
4390 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
4391 (DBX_STAB_SECTION): New macro.
4392 * stabsread.h (elfstab_build_psymtabs): Update prototype.
4393 * symfile.c (symfile_dummy_outputs): New function.
4394 (symfile_relocate_debug_section): New function.
4395 * symfile.h (symfile_relocate_debug_section): Add prototype.
4397 2003-01-31 Richard Henderson <rth@redhat.com>
4399 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
4400 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
4401 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
4402 * alpha-tdep.c (alpha_register_name): Add "unique".
4403 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
4404 (ALPHA_UNIQUE_REGNUM): New.
4405 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
4407 2003-01-31 Andrew Cagney <ac131313@redhat.com>
4409 * README: Remove reference to Ericsson 1800 monitor.
4410 * Makefile.in (remote-es.o): Delete rule.
4411 (ALLDEPFILES): Delete remote-es.c.
4412 * remote-es.c: Delete file.
4413 * config/m68k/es1800.mt: Delete file.
4414 * config/djgpp/fnchange.lst: Update.
4415 * configure.tgt: Delete m68*-ericsson-* target.
4417 2003-01-31 Adam Fedor <fedor@gnu.org>
4419 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
4420 Remove duplicate/shadowing variable of same name.
4422 2003-01-30 Jim Blandy <jimb@redhat.com>
4424 * symfile.c (find_separate_debug_file): Assert that the objfile's
4425 directory name we compute ends with a slash, and then assume that
4426 that's so everywhere we use it.
4428 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
4430 * valops.c (value_assign): Flush frame cache after stores to memory
4433 2003-01-30 Andrew Cagney <ac131313@redhat.com>
4435 * Makefile.in (mon960-rom.o): Delete rule.
4436 * mon960-rom.c: Delete file.
4438 2003-01-30 Andrew Cagney <ac131313@redhat.com>
4440 * d10v-tdep.c: Include "frame-unwind.h".
4441 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
4443 (next_addr, uses_frame): Delete.
4444 (struct d10v_unwind_cache): Define.
4445 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
4446 Use info instead of next_addr and uses_frame globals.
4447 (d10v_frame_init_saved_regs): Delete function.
4448 (d10v_init_extra_frame_info): Delete function.
4449 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
4450 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
4451 init_frame_pc or frame_saved_pc.
4452 (d10v_pop_frame): Delete function.
4453 (do_d10v_pop_frame): Delete function.
4454 (d10v_frame_chain): Delete function.
4455 (d10v_frame_chain_valid): Delete function.
4456 (d10v_frame_pc_unwind): New function.
4457 (d10v_frame_id_unwind): New function.
4458 (saved_regs_unwinder): New function.
4459 (d10v_frame_register_unwind): New function.
4460 (d10v_frame_pop): New function.
4461 (d10v_frame_unwind): New variable.
4462 (d10v_frame_p): New function.
4463 (d10v_frame_saved_pc): Delete function.
4464 * Makefile.in (d10v-tdep.o): Update dependencies.
4466 2003-01-30 J. Brobecker <brobecker@gnat.com>
4468 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
4469 causing some regressions due to a change in the default value
4472 2003-01-29 Richard Henderson <rth@redhat.com>
4473 Elena Zannoni <ezannoni@redhat.com>
4474 Daniel Jacobowitz <drow@mvista.com>
4477 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
4479 (RANGES_SECTION): New.
4480 (dwarf_ranges_buffer): New variable.
4481 (struct comp_unit_head): Add member "die".
4482 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
4483 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
4484 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
4485 (dwarf2_locate_sections): Likewise.
4486 (dwarf2_build_psymtabs): Read .debug_ranges.
4487 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
4488 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
4489 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
4490 Look for DW_AT_ranges and return the bounding box.
4492 2003-01-29 Brian Ford <ford@vss.fsi.com>
4494 * win32-nat.c (cygwin_pid): Removed as unused.
4495 (child_attach): Try fall back to Cygwin pid.
4497 2003-01-29 Jim Blandy <jimb@redhat.com>
4499 * objfiles.h (struct objfile): Doc fix.
4501 2003-01-29 Andrew Cagney <ac131313@redhat.com>
4503 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
4504 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
4505 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
4506 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
4507 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
4508 (FRAME_SAVED_PC): Change to a function with predicate.
4509 * gdbarch.h, gdbarch.c: Re-generate.
4511 2003-01-28 Andrew Cagney <ac131313@redhat.com>
4513 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
4515 * complaints.c (complain): Delete function.
4516 * complaints.h (struct deprecated_complaint): Delete definition.
4517 (complain): Delete declaration.
4519 2003-01-28 Kevin Buettner <kevinb@redhat.com>
4521 * mips-tdep.c (mips_init_extra_frame_info): Return early for
4524 2003-01-27 Andrew Cagney <ac131313@redhat.com>
4526 * sentinel-frame.h, sentinel-frame.c: New files.
4527 * Makefile.in (frame.o): Update dependencies.
4528 (SFILES): Add sentinel-frame.c.
4529 (sentinel_frame_h): Define.
4530 (COMMON_OBS): Add sentinel-frame.o.
4531 (sentinel-frame.o): Specify dependencies.
4532 * frame.c: Include "sentinel-frame.h".
4533 (frame_register_unwind): Rewrite assuming that there is always a a
4535 (frame_register, generic_unwind_get_saved_register): Ditto.
4536 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
4537 (create_sentinel_frame, unwind_to_current_frame): New functions.
4538 (get_current_frame): Rewrite using create_sentinel_frame and
4539 unwind_to_current_frame. When possible, always create a frame.
4540 (create_new_frame): Set next to the sentinel frame.
4541 (get_next_frame): Rewrite. Don't go below the level 0 frame.
4542 (deprecated_update_frame_pc_hack): Update the next frame's PC and
4543 ID cache when necessary.
4544 (frame_saved_regs_id_unwind): Use frame_relative_level.
4545 (deprecated_generic_get_saved_register): Use frame_relative_level,
4546 get_frame_saved_regs, get_frame_pc, get_frame_base and
4548 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
4551 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
4553 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
4555 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
4557 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
4558 (maintenance_set_profile_cmd): Use error () instead of warning ().
4560 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
4562 * configure.in: Check that -pg works if using --enable-profiling.
4563 Check for monstartup and _mcleanup regardless of --enable-profiling.
4564 * maint.c: Check for monstartup and _mcleanup before using them.
4565 * config.in: Regenerated.
4566 * configure: Regenerated.
4568 2003-01-24 Nick Clifton <nickc@redhat.com>
4572 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
4574 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
4575 (sh2e_show_regs): New.
4576 (sh_gdbarch_init): Handle bfd_mach_sh2e.
4577 * config/sh/tm-sh.h: Added sh2e to comments.
4579 2003-01-23 Jim Blandy <jimb@redhat.com>
4581 * symfile.c (syms_from_objfile): Don't print the "(no debugging
4582 symbols found)" message here; we haven't checked for a separate
4583 debug info file yet, so we don't know yet.
4584 (symbol_file_add_with_addrs_or_offsets): Print it here, after
4585 we've looked everywhere. Also, there's no need to print a special
4586 message when we're loading the separate debug info file: the one
4587 symbol_file_add prints is fine.
4589 2003-01-23 Alexander Larsson <alexl@redhat.com>
4590 Jim Blandy <jimb@redhat.com>
4592 Add support for executables whose debug info has been separated
4593 out into a separate file, leaving only a link behind.
4594 * objfiles.h (struct objfile): New fields: separate_debug_objfile
4595 and separate_debug_objfile_backlink.
4596 (put_objfile_before): New declaration.
4597 * symfile.c: #include "filenames.h".
4598 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
4599 debug info in a separate file, read that, too. Save the addrs
4600 argument, so we can use it again to read the separated debug info;
4601 syms_from_objfile modifies the table we pass it.
4602 (reread_symbols): After re-reading an objfile, call
4603 reread_separate_symbols to refresh its separate debug info
4604 objfile, if it has one.
4605 (reread_separate_symbols, find_separate_debug_file,
4606 get_debug_link_info, separate_debug_file_exists): New functions.
4607 (debug_file_directory): New global var.
4608 (_initialize_symfile): Initialize debug_file_directory, and
4609 provide the new `set debug-file-directory' command to let the user
4611 * objfiles.c (free_objfile): If this objfile has its debug info in
4612 a separate objfile, free that one too. If this is itself a
4613 separate debug info objfile, clear our parent's backlink.
4614 (put_objfile_before): New function.
4615 * utils.c (gnu_debuglink_crc32): New function.
4616 * defs.h (gnu_debuglink_crc32): New declaration.
4617 * Makefile.in (symfile.o): Note dependency on "filenames.h".
4618 * configure.in: Handle --with-separate-debug-dir config option.
4619 * acinclude.m4 (AC_DEFINE_DIR): New macro.
4620 * acconfig.h (DEBUGDIR): New macro.
4621 * configure, aclocal.m4, config.in: Regenerated.
4623 2003-01-22 Jim Blandy <jimb@redhat.com>
4625 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
4626 like the old symbol_file_add, but taking new arguments: you can
4627 now pass in either a `struct section_addr_info' list to say where
4628 each section is loaded, or a `struct section_offsets' table. Pass
4629 these new arguments through to syms_from_objfile as appropriate.
4630 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
4631 with the appropriate quiescent values for the new arguments.
4633 * symfile.c: #include "gdb_assert.h".
4634 (syms_from_objfile): Add the ability to pass in a section offset
4635 table directly, as an alternative to the section_addr_info table.
4636 Document arguments better.
4637 (symbol_file_add): Pass extra arguments to syms_from_objfile.
4638 * symfile.h (syms_from_objfile): Update declaration.
4639 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
4641 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
4643 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
4645 Original patch by Tom Tromey <tromey@cygnus.com> and
4646 Jason Molenda <jmolenda@apple.com>.
4647 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
4648 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
4649 * NEWS: Mention profiling.
4650 * configure.in (--enable-gdbtk): Fix typo.
4651 (--enable-profiling): New. Set PROFILE_CFLAGS.
4652 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
4654 (profiling_state): New variable.
4655 (mcleanup_wrapper): New function.
4656 (_initialize_maint): Remove NOTYET, fix call to
4657 add_setshow_boolean_cmd for "maint set profile".
4658 * configure: Regenerated.
4660 2003-01-21 Martin M. Hunt <hunt@redhat.com>
4662 * Makefile.in (install-gdbtk): Install PNG images too.
4664 2003-01-21 Andrew Cagney <ac131313@redhat.com>
4666 * exec.c (text_start): Delete global variable.
4667 (exec_file_attach): Make text_start local to the function.
4668 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
4669 * valops.c (hand_function_call): Delete code that handles
4670 BEFORE_TEXT_END and AFTER_TEXT_END.
4671 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
4672 of CALL_DUMMY_LOCATION.
4673 * gdbarch.c: Regenerate.
4674 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
4675 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
4676 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
4677 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
4678 (text_end): Delete extern declaration.
4680 2003-01-21 Andrew Cagney <ac131313@redhat.com>
4682 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
4683 * blockframe.c (backtrace_below_main): Move to "frame.c".
4684 (frame_chain_valid): Delete check for backtrace_below_main.
4685 (_initialize_blockframe): Delete initialization, move ``set
4686 backtrace-below-main'' command to "frame.c".
4687 (do_flush_frames_sfunc): Delete function.
4688 * frame.c: Include "command.h" and "gdbcmd.h".
4689 (frame_type_from_pc): New function.
4690 (create_new_frame): Use frame_type_from_pc.
4691 (legacy_get_prev_frame): New function.
4692 (get_prev_frame): Rewrite. When an old style frame, call
4693 legacy_get_prev_frame. Otherwize, unwind the PC first.
4694 (_initialize_frame): Add ``set backtrace-below-main'' command.
4695 * Makefile.in (frame.o): Update dependencies.
4697 2003-01-19 Andrew Cagney <ac131313@redhat.com>
4699 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
4700 DEPRECATED_REGISTERS_INFO.
4702 2003-01-19 Andrew Cagney <ac131313@redhat.com>
4704 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
4705 Maintainers'. Update `Various Maintainers'.
4707 2003-01-19 Andrew Cagney <ac131313@redhat.com>
4709 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
4710 * gdbarch.sh (POP_FRAME): Change to function with predicate.
4711 Suppress actual parameters when `-'.
4712 * gdbarch.h, gdbarch.c: Regenerate.
4714 2003-01-19 Andrew Cagney <ac131313@redhat.com>
4716 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
4717 code handling dummy frames.
4719 2003-01-19 Andrew Cagney <ac131313@redhat.com>
4721 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
4722 (struct frame_unwind): Add field pop.
4723 * frame.h (frame_pop): Declare.
4724 * frame.c (frame_saved_regs_pop): New function.
4725 (trad_frame_unwinder): Add frame_saved_regs_pop.
4726 (frame_pop): New function.
4727 * dummy-frame.c (dummy_frame_pop): New function.
4728 (discard_innermost_dummy): New function.
4729 (generic_pop_dummy_frame): Use discard_innermost_dummy.
4730 (dummy_frame_unwind): Add dummy_frame_pop.
4731 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
4732 * valops.c (hand_function_call): Ditto.
4733 * stack.c (return_command): Ditto.
4735 2003-01-18 Andrew Cagney <ac131313@redhat.com>
4737 * cris-tdep.c: Fix function declaration indentation.
4738 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
4739 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
4740 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
4741 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
4742 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
4743 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
4745 2003-01-18 Michael Chastain <mec@shout.net>
4747 * README (Unpacking and Installation -- quick overview):
4748 Warn against ".../gdb-5.3/gdb/configure".
4750 2003-01-18 Andrew Cagney <ac131313@redhat.com>
4752 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
4753 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
4754 (struct frame_unwind): Declare opaque.
4755 (dummy_frame_p): Declare function.
4756 * dummy-frame.c (dummy_frame_id_unwind): Make static.
4757 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
4758 * dummy-frame.c: Include "frame-unwind.h".
4759 (dummy_frame_p): New function.
4760 (dummy_frame_unwind): New variable.
4761 * frame.c: Include "frame-unwind.h".
4762 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
4763 to use the new unwind field.
4764 (set_unwind_by_pc): Delete function.
4765 (create_new_frame, get_prev_frame): Set unwind field using
4766 frame_unwind_find_by_pc.
4767 (trad_frame_unwind, trad_frame_unwinder): New variables.
4768 * frame.h (trad_frame_unwind): Declare variable.
4769 (frame_id_unwind_ftype): Delete declaration.
4770 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
4771 (struct frame_unwind): Declare opaque.
4772 (struct frame_info): Replace the fields id_unwind, pc_unwind and
4773 register_unwind with a single unwind pointer.
4774 * frame-unwind.h, frame-unwind.c: New files.
4775 * Makefile.in (SFILES): Add frame-unwind.c.
4776 (frame_unwind_h): Define.
4777 (COMMON_OBS): Add frame-unwind.o.
4778 (frame-unwind.o): Specify dependencies.
4779 (frame.o, dummy-frame.o): Update dependencies.
4781 2003-01-18 Andrew Cagney <ac131313@redhat.com>
4783 * ada-valprint.c: Eliminate PTR.
4784 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
4785 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
4786 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
4787 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
4788 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
4789 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
4790 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
4792 2003-01-17 Andrew Cagney <ac131313@redhat.com>
4794 * main.c (captured_main): Don't use PTR.
4795 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
4796 * gdbtypes.c (lookup_primitive_typename): Ditto.
4797 (lookup_struct_elt_type): Ditto.
4798 * f-valprint.c (info_common_command): Ditto.
4799 (list_all_visible_commons): Ditto.
4800 * jv-typeprint.c (java_type_print_base): Ditto.
4802 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
4803 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
4804 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
4805 i386-interix-nat.c and i386-interix-tdep.c. Rename
4806 m68klinux-nat.c and m68klinux-tdep.c. Rename
4807 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
4808 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
4809 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
4810 * main.c (captured_main): Use xfree, not free.
4812 2003-01-16 Andrew Cagney <ac131313@redhat.com>
4814 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
4815 ID back using a parameter.
4816 * frame.c (frame_id_unwind): Update call.
4817 (frame_saved_regs_id_unwind): Update.
4818 * dummy-frame.c (dummy_frame_id_unwind): Update function.
4819 * dummy-frame.h (struct frame_id): Add opaque declaration.
4820 (dummy_frame_id_unwind): Update declaration.
4822 2003-01-15 Andrew Cagney <ac131313@redhat.com>
4824 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
4826 2003-01-15 Stephen P. Smith <ischis2@cox.net>
4828 * MAINTAINERS (Stephen P. Smith): Updated email address.
4830 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
4833 * breakpoint.c (until_break_command): Add new argument. Use it to
4834 decide whether to stop only at the current frame or not.
4835 * breakpoint.h (until_break_command): Update prototype.
4836 * infcmd.c (until_command): Add new argument to until_break_command
4838 (advance_command): New function.
4839 (_initialize_infcmd): Update help string for 'until' command.
4840 Add new 'advance' command.
4842 2003-01-14 David Carlton <carlton@math.stanford.edu>
4844 * linespec.c (decode_line_1): Normalize comments.
4846 (locate_first_half): Ditto.
4847 (decode_compound): Ditto.
4848 (symtab_from_filename): Ditto.
4849 (decode_all_digits): Ditto.
4850 (decode_dollar): Ditto.
4851 (find_methods): Ditto.
4852 (find_toplevel_char): Ditto.
4854 2003-01-13 Andrew Cagney <ac131313@redhat.com>
4856 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
4857 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
4858 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
4859 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
4860 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
4861 * language.c, language.h, m32r-tdep.c: Update copyright.
4862 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
4863 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
4864 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
4865 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
4866 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
4867 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
4869 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
4871 * stabsread.h (process_later, resolve_cfront_continuation):
4873 Update copyright years.
4874 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
4875 Update copyright year.
4876 * dbxread.c(struct cont_elem): Obsolete.
4877 (process_later, process_now): Obsolete functions.
4878 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
4879 Update copyright year.
4880 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
4881 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
4882 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
4883 (parse_partial_symbols): Obsolete cfront support.
4885 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
4887 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
4888 read_cfront_baseclasses, read_cfront_member_functions,
4889 resolve_cfront_continuation,read_cfront_static_fields,
4890 copy_cfront_struct_fields): Obsolete functions.
4891 (define_symbol, read_one_struct_field): Obsolete cfront support.
4892 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
4893 Update Copyright year.
4895 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
4897 * stack.c (print_frame_info, print_stack_frame_base_stub,
4898 print_stack_frame_base, show_and_print_stack_frame_stub,
4899 show_and_print_stack_frame, print_only_stack_frame_stub,
4900 print_only_stack_frame): Delete functions.
4901 (print_stack_frame_stub): Call print_frame_info instead of
4902 print_frame_info_base.
4903 (print_frame_info_base): Rename to print_frame_info.
4904 (backtrace_command_1): Call print_frame_info, instead of
4905 print_frame_info_base.
4906 (current_frame_command): Call print_stack_frame, instead of
4907 print_only_stack_frame.
4908 (frame_command): Call print_stack_frame, instead of
4909 show_and_print_stack_frame.
4910 (up_command): Ditto.
4911 (down_command): Ditto.
4912 * frame.h (print_only_stack_frame): Delete prototype.
4913 * infrun.c (normal_stop): Call print_stack_frame, instead of
4914 show_and_print_stack_frame.
4915 * thread.c (info_threads_command): Call print_stack_frame, instead
4916 of print_only_stack_frame.
4918 2003-01-13 Andrew Cagney <ac131313@redhat.com>
4920 * README (Graphical interface to GDB): Update URL. Point at
4923 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
4926 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
4928 * symtab.c (find_pc_sect_line): Don't consider end-of-function
4931 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
4933 * thread-db.c (attach_thread): Prototype.
4934 (struct private_thread_info): Remove lwpid. Add thread handle (th),
4935 thread information (ti), and valid flags (th_valid, ti_valid).
4936 (attach_thread): Move target_pid_to_str call to after the thread
4937 is added to GDB's list. Initialize the cache.
4938 (thread_get_info_callback, thread_db_map_id2thr)
4939 (thread_db_get_info): New functions.
4940 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
4941 (thread_db_store_registers, thread_db_thread_alive)
4942 (thread_db_get_thread_local_address): Use them.
4943 (thread_db_pid_to_str): Likewise. Return "Missing" instead
4944 of calling error() for threads in unknown state.
4946 (clear_lwpid_callback): New function.
4947 (thread_db_resume): Use it to clear the cache.
4949 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
4951 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
4952 (resume_callback): Remove dead code.
4954 2003-01-13 Andrew Cagney <ac131313@redhat.com>
4956 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
4958 * gdbarch.h, gdbarch.c: Regenerate.
4959 * stack.c (frame_info): Only initialize the saved registers when
4960 FRAME_INIT_SAVED_REGS_P.
4961 * frame.c (frame_saved_regs_register_unwind): Assert
4962 FRAME_INIT_SAVED_REGS_P.
4963 (deprecated_generic_get_saved_register): Ditto.
4965 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
4967 * source.c (openp): Squelch warning about "filename".
4969 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
4971 * source.c (openp): If the file does not exist don't necessarily
4974 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
4977 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
4978 (integer_types_same_name_p): New function.
4979 (rank_one_type): Use it.
4980 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
4982 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
4984 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
4986 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
4987 * configure.in: Add --with-sysroot.
4988 * configure: Regenerated.
4989 * main.c (gdb_sysroot): New variable.
4990 (captured_main): Initialize gdb_sysroot.
4991 * defs.h (gdb_sysroot): New extern declaration.
4992 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
4994 2003-01-12 Michael Chastain <mec@shout.net>
4996 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
4998 2003-01-12 Michael Chastain <mec@shout.net>
5000 * top.c (print_gdb_version): Bump copyright year to 2003.
5002 2003-01-12 David Carlton <carlton@bactrian.org>
5004 * linespec.c (symtab_from_filename): Rename variable 's' to
5007 2003-01-12 Andrew Cagney <ac131313@redhat.com>
5009 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
5011 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
5013 2003-01-12 Andrew Cagney <ac131313@redhat.com>
5015 * d10v-tdep.c: Include "gdb_assert.h".
5016 (d10v_store_return_value): Rewrite to match current interface.
5017 (d10v_extract_struct_value_address): Ditto.
5018 (d10v_extract_return_value): Ditto.
5019 (d10v_gdbarch_init): Set store_restore_value,
5020 extract_struct_value_address and extract_return_value.
5022 2003-01-12 J. Brobecker <brobecker@gnat.com>
5024 * hpread.c (set_namestring): New procedure replacing the
5025 SET_NAMESTRING macro.
5026 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
5027 by calls to set_namestring.
5029 2003-01-11 J. Brobecker <brobecker@gnat.com>
5031 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
5032 a compilation warning.
5033 (hpread_process_one_debug_symbol): Likewise.
5035 2003-01-10 David Carlton <carlton@math.stanford.edu>
5037 * linespec.c (decode_line_1): Rename variable 's' to
5039 (decode_all_digits): Rename argument 's' to 'file_symtab'.
5040 (decode_dollar): Ditto.
5041 (decode_variable): Ditto.
5042 (symbol_found): Ditto.
5044 2003-01-09 Michael Chastain <mec@shout.net>
5046 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
5048 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
5050 * win32-nat.c (set_process_privilege): New function.
5051 (child_attach): Call set_process_privilege() to enable the
5052 SE_DEBUG_NAME user privilege if available in process token.
5054 2003-01-10 J. Brobecker <brobecker@gnat.com>
5056 * hpread.c (hpread_process_one_debug_symbol): Fix a small
5057 compilation error in the previous revision.
5059 2003-01-09 David Carlton <carlton@math.stanford.edu>
5061 * linespec.c: Update copyright.
5063 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
5065 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
5067 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
5069 2003-01-09 Andrew Cagney <ac131313@redhat.com>
5071 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
5073 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
5074 (frame_saved_regs_zalloc): Update.
5075 (frame_saved_regs_register_unwind): Update.
5076 (create_new_frame): Update.
5077 (get_prev_frame): Update.
5078 (frame_extra_info_zalloc): Update.
5079 (deprecated_get_frame_saved_regs): Update.
5080 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
5081 * cris-tdep.c: Update comment.
5083 * somsolib.h: Fix function indentation.
5084 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
5085 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
5086 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
5087 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
5088 * somsolib.c, inftarg.c: Remove assignment in if conditional.
5090 * infrun.c (follow_fork): Use ISO C definition.
5091 * expprint.c (print_subexp): Use xfree instead of free.
5092 * charset.c: Include "gdb_string.h" instead of <string.h>.
5093 (register_iconv_charsets): Use ISO C definition.
5094 (host_charset, target_charset): Ditto.
5095 * Makefile.in (charset.o): Update dependencies.
5096 (mi-cmd-env.o): Update dependencies.
5098 2003-01-08 Andrew Cagney <cagney@redhat.com>
5100 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
5103 2003-01-08 Andrew Cagney <ac131313@redhat.com>
5105 * gdb_mbuild.sh: Add --keep option. When specified, keep the
5106 build directories. Save edited gdb output in Mbuild.log. If a
5107 build fails, remove any final GDB executable.
5109 2003-01-08 Andrew Cagney <ac131313@redhat.com>
5111 * gdb_mbuild.sh: Edit the output of `maint print architecture'
5112 replacing hex constants with function names and stripping leading
5113 file name directory prefixes.
5115 2003-01-08 Andrew Cagney <cagney@redhat.com>
5117 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
5120 2003-01-08 David Carlton <carlton@math.stanford.edu>
5122 * linespec.c (decode_line_1): Move code into decode_variable.
5123 (decode_variable): New function.
5125 2003-01-08 Andrew Cagney <ac131313@redhat.com>
5127 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
5129 2003-01-08 Andrew Cagney <cagney@redhat.com>
5131 * cris-tdep.c (cris_frame_init_saved_regs): Use
5132 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
5134 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
5135 (sh64_nofp_frame_init_saved_regs): Ditto.
5136 (sh_fp_frame_init_saved_regs): Ditto.
5137 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
5138 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
5139 * mcore-tdep.c (analyze_dummy_frame): Ditto.
5140 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
5142 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
5144 * minsyms.c (lookup_minimal_symbol): Update comment.
5145 (lookup_minimal_symbol_text): Update comment. Use the hash table.
5146 (lookup_minimal_symbol_solib_trampoline): Likewise.
5148 2003-01-08 Andrew Cagney <cagney@redhat.com>
5150 * d10v-tdep.c (d10v_init_extra_frame_info): Use
5151 frame_relative_level.
5153 * alpha-tdep.c: Use get_frame_extra_info.
5154 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
5155 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
5156 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
5157 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
5159 * alpha-tdep.c: Use get_next_frame.
5160 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
5161 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
5162 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
5163 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
5164 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
5165 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
5166 * xstormy16-tdep.c: Ditto.
5168 2003-01-07 Andrew Cagney <cagney@redhat.com>
5170 * alpha-tdep.c: Use get_frame_base.
5171 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
5172 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
5173 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
5174 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
5175 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
5176 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
5177 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
5178 * config/sparc/tm-sparc.h: Ditto.
5180 2003-01-07 Andrew Cagney <cagney@redhat.com>
5182 * frame.c (deprecated_get_frame_context): New function.
5183 (deprecated_set_frame_context): New function.
5184 * frame.h (deprecated_get_frame_context): Declare.
5185 (deprecated_set_frame_context): Declare.
5186 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
5187 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
5189 2003-01-07 Andrew Cagney <cagney@redhat.com>
5191 * frame.c (deprecated_set_frame_next_hack): New function.
5192 (deprecated_set_frame_prev_hack): New function.
5193 * frame.h (deprecated_set_frame_next_hack): Declare.
5194 (deprecated_set_frame_prev_hack): Declare.
5195 * mcore-tdep.c (analyze_dummy_frame): Use
5196 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
5197 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
5199 2003-01-07 David Carlton <carlton@math.stanford.edu>
5201 * linespec.c (decode_line_1): Move code into decode_dollar.
5202 (decode_dollar): New function.
5204 2003-01-07 Andrew Cagney <cagney@redhat.com>
5206 * arm-tdep.c (arm_init_extra_frame_info): Use
5207 deprecated_update_frame_base_hack.
5208 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
5209 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
5210 (fix_frame_pointer): Ditto.
5211 (mn10300_analyze_prologue): Ditto.
5213 2003-01-07 Andrew Cagney <cagney@redhat.com>
5215 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
5216 extra_info using frame_extra_info_zalloc.
5217 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5218 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
5219 (sh64_init_extra_frame_info): Ditto.
5220 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
5221 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
5222 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
5223 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
5224 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
5225 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
5226 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
5227 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
5228 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
5229 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
5230 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5231 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
5233 * mn10300-tdep.c (analyze_dummy_frame): Use
5234 deprecated_set_frame_extra_info_hack.
5235 * mcore-tdep.c (analyze_dummy_frame): Ditto.
5237 2003-01-07 J. Brobecker <brobecker@gnat.com>
5239 * mdebugread.c (parse_symbol): Skip stProc entries which storage
5240 class is not scText. These do not define "real" procedures.
5241 (parse_partial_symbols): Likewise.
5243 2003-01-06 Michael Snyder <msnyder@redhat.com>
5245 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
5247 2003-01-06 Andrew Cagney <ac131313@redhat.com>
5249 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
5250 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
5251 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
5252 deprecated_frame_xmalloc_with_cleanup.
5253 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
5254 deprecated_frame_xmalloc.
5255 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
5256 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
5258 2003-01-06 Andrew Cagney <cagney@redhat.com>
5260 * x86-64-linux-tdep.c: Include "osabi.h".
5261 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
5263 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
5265 2003-01-06 Andrew Cagney <cagney@redhat.com>
5267 * MAINTAINERS (Target Instruction Set Architectures): Update
5268 arm-elf. Can be built with -Werror, has been multiarched.
5270 * value.h (unpack_long): Make buffer parameter constant.
5271 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
5272 * scm-lang.h (scm_parse): Ditto.
5273 * defs.h (extract_typed_address, extract_address): Ditto.
5274 (extract_long_unsigned_integer): Ditto.
5275 * inferior.h (unsigned_pointer_to_address): Ditto.
5276 (signed_pointer_to_address): Ditto.
5277 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
5278 * gdbarch.h, gdbarch.c: Regenerate.
5279 * findvar.c (extract_long_unsigned_integer): Update.
5280 (extract_address): Update.
5281 (extract_typed_address): Update.
5282 (unsigned_pointer_to_address): Update.
5283 * values.c (unpack_long): Update.
5284 (unpack_double): Update.
5285 (unpack_pointer): Update.
5286 (unpack_field_as_long): Update.
5287 * d10v-tdep.c (d10v_pointer_to_address): Update.
5288 * avr-tdep.c (avr_pointer_to_address): Update.
5289 * scm-lang.c (scm_unpack): Update.
5290 * findvar.c (signed_pointer_to_address): Update.
5292 2003-01-06 Michal Ludvig <mludvig@suse.cz>
5294 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
5295 since it is in i386-tdep.c.
5297 2003-01-06 J. Brobecker <brobecker@gnat.com>
5299 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
5300 failure introduced in the previous change.
5302 2003-01-05 Michael Chastain <mec@shout.net>
5304 * README: Remove references to deleted remote-*.c files:
5305 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
5306 remote-nrom.c, remote-os9k.c, remote-udi.c.
5308 2003-01-05 Mark Kettenis <kettenis@gnu.org>
5310 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
5311 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
5312 i386_get_longjmp_target.
5314 2003-01-05 Andrew Cagney <ac131313@redhat.com>
5316 * arm-tdep.c (prologue_cache): Change to a pointer.
5317 (_initialize_arm_tdep): Allocate prologue_cache.
5318 (check_prologue_cache): Update.
5319 (save_prologue_cache): Update.
5320 (arm_gdbarch_init): Update.
5322 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
5324 * stabsread.c (update_method_name_from_physname): Call complaint()
5327 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
5329 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
5330 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
5331 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
5333 * blockframe.c: Include "gdbcmd.h" and "command.h".
5334 (backtrace_below_main): New variable.
5335 (file_frame_chain_valid, func_frame_chain_valid)
5336 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
5337 (generic_func_frame_chain_valid): Remove functions.
5338 (frame_chain_valid, do_flush_frames_sfunc): New functions.
5339 (_initialize_blockframe): New function.
5340 * Makefile.in (blockframe.o): Update dependencies.
5341 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
5342 comment. Call frame_chain_valid ().
5343 * frame.h: Remove old prototypes. Add prototype for
5344 frame_chain_valid and update comments to match.
5345 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
5347 * gdbarch.h: Regenerated.
5348 * gdbarch.c: Regenerated.
5350 * alpha-tdep.c (alpha_gdbarch_init): Don't call
5351 set_gdbarch_frame_chain_valid.
5352 * avr-tdep.c (avr_gdbarch_init): Likewise.
5353 * cris-tdep.c (cris_gdbarch_init): Likewise.
5354 * frv-tdep.c (frv_gdbarch_init): Likewise.
5355 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
5356 * i386-tdep.c (i386_svr4_init_abi): Likewise.
5357 (i386_nw_init_abi): Likewise.
5358 (i386_gdbarch_init): Likewise.
5359 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
5360 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
5361 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
5362 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
5363 * mips-tdep.c (mips_gdbarch_init): Likewise.
5364 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
5365 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
5366 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5367 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5368 * s390-tdep.c (s390_gdbarch_init): Likewise.
5369 * sh-tdep.c (sh_gdbarch_init): Likewise.
5370 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
5371 * v850-tdep.c (v850_gdbarch_init): Likewise.
5372 * vax-tdep.c (vax_gdbarch_init): Likewise.
5373 * x86-64-tdep.c (x86_64_init_abi): Likewise.
5375 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
5376 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
5377 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
5378 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
5379 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
5380 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
5381 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
5382 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
5384 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
5386 * Makefile.in (acconfig_h): Remove incorrect macro.
5388 (osabi.o): Update dependencies.
5389 * configure.tgt: Set gdb_osabi based on target triplet.
5390 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
5391 * configure: Regenerated.
5392 * config.in: Regenerated.
5393 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
5394 (GDB_OSABI_DEFAULT): Define if not already defined.
5395 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
5396 (set_osabi_string): New variables.
5397 (gdbarch_register_osabi): Add new OS ABI to
5398 gdb_osabi_available_names.
5399 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
5400 (set_osabi, show_osabi): New functions.
5401 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
5403 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
5405 * arch-utils.c (gdbarch_info_init): Set osabi to
5406 GDB_OSABI_UNINITIALIZED.
5407 * gdbarch.sh: Add osabi to struct gdbarch and to struct
5408 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
5409 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
5410 * gdbarch.c: Regenerated.
5411 * gdbarch.h: Regenerated.
5412 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
5414 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
5415 * osabi.h (enum gdb_osabi): Move to defs.h.
5416 (gdbarch_init_osabi): Update prototype.
5417 * defs.h (enum gdb_osabi): Moved here.
5418 * Makefile.in: Update dependencies.
5420 * alpha-tdep.h: Don't include "osabi.h".
5421 (struct gdbarch_tdep): Remove osabi member.
5422 * alpha-tdep.c: Include "osabi.h".
5423 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
5424 iterate over arches. Update call to gdbarch_init_osabi.
5425 (alpha_dump_tdep): Don't dump osabi.
5426 * alpha-linux-tdep.c: Include "osabi.h".
5427 * alpha-osf1-tdep.c: Include "osabi.h".
5428 * alphafbsd-tdep.c: Include "osabi.h".
5429 * alphanbsd-tdep.c: Include "osabi.h".
5431 * arm-tdep.h: Don't include "osabi.h".
5432 (struct gdbarch_tdep): Remove osabi member.
5433 * arm-tdep.c: Include "osabi.h".
5434 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
5435 iterate over arches. Update call to gdbarch_init_osabi.
5436 (arm_dump_tdep): Don't dump osabi.
5437 * arm-linux-tdep.c: Include "osabi.h".
5438 * armnbsd-tdep.c: Include "osabi.h".
5440 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
5441 Update call to gdbarch_init_osabi.
5443 * i386-tdep.h: Don't include "osabi.h".
5444 (struct gdbarch_tdep): Remove osabi member.
5445 * i386-tdep.c: Include "osabi.h".
5446 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
5447 iterate over arches. Update call to gdbarch_init_osabi.
5448 (i386_dump_tdep): Don't dump osabi.
5449 * i386-linux-tdep.c: Include "osabi.h".
5450 * i386-sol2-tdep.c: Include "osabi.h".
5451 * i386bsd-tdep.c: Include "osabi.h".
5452 * i386gnu-tdep.c: Include "osabi.h".
5453 * i386ly-tdep.c: Include "osabi.h".
5454 * i386nbsd-tdep.c: Include "osabi.h".
5455 * i386obsd-tdep.c: Include "osabi.h".
5457 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
5458 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
5459 check osabi when iterating over arches. Update call to
5461 (mips_dump_tdep): Don't dump osabi.
5463 * ns32k-tdep.h: Don't include "osabi.h".
5464 (struct gdbarch_tdep): Remove.
5465 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
5466 gdbarch_lookup_osabi. Don't iterate over arches. Don't
5467 allocate tdep. Update call to gdbarch_init_osabi.
5468 (ns32k_dump_tdep): Remove.
5469 (_initialize_ns32k_tdep): Update call to gdbarch_register.
5470 * ns32knbsd-tdep.c: Include "osabi.h".
5472 * ppc-tdep.h: Don't include "osabi.h".
5473 (struct gdbarch_tdep): Remove osabi member.
5474 * rs6000-tdep.c: Include "osabi.h".
5475 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
5476 osabi when iterating over arches. Update call to
5478 (rs6000_dump_tdep): Don't dump osabi.
5479 * ppc-linux-tdep.c: Include "osabi.h".
5480 * ppcnbsd-tdep.c: Include "osabi.h".
5482 * sh-tdep.h: Don't include "osabi.h".
5483 (struct gdbarch_tdep): Remove osabi member.
5484 * sh-tdep.c: Include "osabi.h".
5485 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
5486 iterate over arches. Update call to gdbarch_init_osabi.
5487 (sh_dump_tdep): Don't dump osabi.
5488 * shnbsd-tdep.c: Include "osabi.h".
5490 * sparc-tdep.c: Include "osabi.h".
5491 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
5492 iterate over arches. Update call to gdbarch_init_osabi.
5493 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
5496 * vax-tdep.h: Don't include "osabi.h".
5497 (struct gdbarch_tdep): Remove.
5498 * vax-tdep.c: Include "osabi.h".
5499 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
5500 iterate over arches. Don't allocate tdep. Update call
5501 to gdbarch_init_osabi.
5502 (vax_dump_tdep): Remove.
5503 (_initialize_vax_tdep): Update call to gdbarch_register.
5505 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
5507 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
5509 (breakpoint_re_set_one): Don't fetch the value for a disabled
5512 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
5514 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
5515 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
5516 (COERCE_FLOAT_TO_DOUBLE): Remove.
5517 * gdbarch.c: Regenerate.
5518 * gdbarch.h: Regenerate.
5519 * Makefile.in: Remove value_h from gdbarch_h.
5520 * valops.c (coerce_float_to_double): New variable.
5521 (default_coerce_float_to_double): Remove.
5522 (standard_coerce_float_to_double): Remove.
5523 (value_arg_coerce): Use coerce_float_to_double.
5524 (_initialize_valops): Add "set coerce-float-to-double".
5525 * value.h (default_coerce_float_to_double): Remove prototype.
5526 (standard_coerce_float_to_double): Remove prototype.
5528 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
5530 * mdebugread.c (parse_symbol): Likewise.
5531 * stabsread.c (define_symbol): Mark all functions as prototyped.
5533 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
5534 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
5535 set_gdbarch_coerce_float_to_double.
5536 * arm-tdep.c (arm_gdbarch_init): Likewise.
5537 * frv-tdep.c (frv_gdbarch_init): Likewise.
5538 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
5539 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
5540 * mips-tdep.c (mips_gdbarch_init): Likewise.
5541 (mips_coerce_float_to_double): Remove.
5542 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5543 (rs6000_coerce_float_to_double): Remove.
5544 * s390-tdep.c (s390_gdbarch_init): Likewise.
5545 * sh-tdep.c (sh_gdbarch_init): Likewise.
5546 (sh_coerce_float_to_double): Remove.
5547 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
5548 (sparc_coerce_float_to_double): Remove.
5549 * v850-tdep.c (v850_gdbarch_init): Likewise.
5550 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
5551 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
5552 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
5553 (hppa_coerce_float_to_double): Remove prototype.
5554 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
5556 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
5558 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
5560 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
5562 Suggested by Stewart Brown <sb24@avaya.com>:
5563 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
5564 in recursive calls. Handle TYPE_CODE_TYPEDEF.
5565 (c_type_print_varspec_suffix): Likewise.
5567 2003-01-04 Mark Kettenis <kettenis@gnu.org>
5569 * configure.in: Don't set and AC_SUBST SUBDIRS.
5570 * configure: Regenerated.
5572 * configure.in: Remove code dealing with shared libraries.
5573 * Makefile.in: Remove HLDFLAGS and HLDENV.
5574 * configure: Regenerated.
5576 2003-01-04 Andrew Cagney <ac131313@redhat.com>
5578 * frame.c (deprecated_frame_xmalloc): New function.
5579 (deprecated_set_frame_saved_regs_hack): New function.
5580 (deprecated_set_frame_extra_info_hack): New function.
5581 * frame.h (deprecated_frame_xmalloc): Declare.
5582 (deprecated_set_frame_saved_regs_hack): Declare.
5583 (deprecated_set_frame_extra_info_hack): Declare.
5585 2003-01-04 Mark Kettenis <kettenis@gnu.org>
5587 * configure.in: Move code that provides the --enable-gdbtk option
5588 right after the code that handles the --enable-tui option, and
5590 * configure: Regenerated.
5592 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
5593 AC_CHECK_FUNCS and remove the old check for pread64.
5594 * acinclude.m4 (AC_GNU_SOURCE): New macro.
5595 * acconfig.h (_GNU_SOURCE): Add.
5596 (HAVE_PREAD64): Remove.
5597 * configure, aclocal.m4, config.in: Regenerated.
5599 2003-01-03 Andrew Cagney <ac131313@redhat.com>
5601 * alpha-tdep.c: Use get_frame_saved_regs.
5602 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
5603 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
5604 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
5605 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
5606 * vax-tdep.c, xstormy16-tdep.c: Ditto.
5608 2003-01-03 Mark Kettenis <kettenis@gnu.org>
5610 * configure.in: Remove all use of the SUBDIRS variable; add
5611 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
5612 code providing the --enable-multi-ice option, and move it right in
5613 front of the code that checks whether gdbserver is supported.
5615 * configure: Regenerated.
5616 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
5619 2003-01-03 Andrew Cagney <cagney@redhat.com>
5621 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
5622 * avr-tdep.c, cris-tdep.c: Ditto.
5623 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
5624 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
5626 2003-01-03 Mark Kettenis <kettenis@gnu.org>
5628 * configure.in: Remove --enable-netrom option.
5629 * configure: Regenerated.
5631 2003-01-03 Mark Kettenis <kettenis@gnu.org>
5633 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
5634 declaration for `struct re_pattern_buffer' instead.
5635 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
5637 2003-01-03 J. Brobecker <brobecker@gnat.com>
5639 * mdebugread.c (parse_symbol): Count until the stEnd matching
5642 2003-01-02 Mark Kettenis <kettenis@gnu.org>
5644 * configure.in: Remove --with-cpu option.
5645 subscripts. Remove evil changequotes here.
5646 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
5647 * config.in, configure: Regenerated.
5649 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
5650 * configure.in: Cleanup section that sources GDB and BFD configure
5651 subscripts. Remove evil changequotes here.
5652 * config.in, configure: Regenerated.
5654 2003-01-02 Andrew Cagney <ac131313@redhat.com>
5656 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
5657 frame accessor methods.
5658 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
5659 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
5660 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
5661 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
5662 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
5663 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
5664 * z8k-tdep.c: Ditto.
5666 2003-01-02 Mark Kettenis <kettenis@gnu.org>
5668 * configure.in: Remove UI_OUT configuration code.
5669 * ada-lang.c: Update assuming UI_OUT is always true.
5670 * Makefile.in (UIOUT_CFLAGS): Remove.
5671 * configure: Regenerated.
5672 * TODO: Remove blurb about elimination of -DUI_OUT.
5674 * configure.in: Move code that provides the --enable-gdbcli,
5675 --enable-gdbmi options right before the code that handles the
5676 --enable-tui option. Polish a bit.
5677 * configure: Regenerated.
5679 * configure.in: Rewrite check for GNU regex and the
5680 --without-included regex option, and move it into the "Checks for
5681 library functions" section. This makes us use the system regex
5682 again by default on systems with version 2 of the GNU C library.
5683 This was apparently broken.
5684 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
5685 * acconfig.h (USE_INCLUDED_REGEX): Remove.
5686 * config.in, configure: Regenerated.
5688 * configure.in: Move code that provides the --enable-tui option
5689 before the "Checks for libraries" section. Polish the code
5690 somewhat and set need_curses to yes if we build the TUI. Rewrite
5691 code that looks for a library providing termcap functionality to
5692 match more closely what's done in the Readline library, and move
5693 it into to the "Checks for libraries" section.
5694 * configure: Regenerated.
5695 * Makefile.in (TERMCAP): Remove variable.
5696 * config/i386/go32.mh (TERMCAP): Remove variable.
5698 2003-01-02 Andrew Cagney <ac131313@redhat.com>
5700 * MAINTAINERS: Mention gdb_mbuild.sh.
5701 * gdb_mbuild.sh: Rewrite.
5703 2003-01-02 Mark Kettenis <kettenis@gnu.org>
5705 * configure.in: Fix typo in last change.
5706 * config.in, configure: Regenerated.
5708 2003-01-02 Andrew Cagney <ac131313@redhat.com>
5710 * valarith.c (value_binop): Delete obsolete code and comments.
5711 * configure.host: Ditto.
5712 * buildsym.h (make_blockvector): Ditto.
5713 * buildsym.c (make_blockvector): Ditto.
5714 * defs.h (enum language): Ditto.
5715 (chill_demangle): Ditto.
5716 * elfread.c (elf_symtab_read): Ditto.
5717 * dwarfread.c (CHILL_PRODUCER): Ditto.
5718 (set_cu_language): Ditto.
5719 (handle_producer): Ditto.
5720 * expprint.c (print_subexp): Ditto.
5721 * gdbtypes.c (chill_varying_type): Ditto.
5722 * gdbtypes.h (builtin_type_chill_bool): Ditto.
5723 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
5724 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
5725 (chill_varying_type): Ditto.
5726 * language.h (_LANG_chill): Ditto.
5727 * language.c (binop_result_type, integral_type): Ditto.
5728 (character_type, string_type, structured_type): Ditto.
5729 (lang_bool_type, binop_type_check): Ditto.
5730 * stabsread.h (os9k_stabs): Ditto.
5731 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
5732 (define_symbol, read_type, read_struct_fields): Ditto.
5733 (read_array_type, read_enum_type, read_huge_number): Ditto.
5734 (read_range_type, start_stabs): Ditto.
5735 * symfile.c (init_filename_language_table): Ditto.
5736 (add_psymbol_with_dem_name_to_list): Ditto.
5737 * symtab.c (symbol_init_language_specific): Ditto.
5738 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
5739 * symtab.h (struct general_symbol_info): Ditto.
5740 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5741 * typeprint.c (typedef_print): Ditto.
5742 * utils.c (fprintf_symbol_filtered): Ditto.
5743 * valops.c (value_cast, search_struct_field, value_slice): Delete
5745 (varying_to_slice): Delete function.
5746 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
5747 (varying_to_slice): Delete declaration.
5748 * MAINTAINERS: Update.
5750 2003-01-02 Mark Kettenis <kettenis@gnu.org>
5752 * configure.in: Reorganize "Checks for library functions section"
5753 a bit. Remove check for `btowc' and `isascii' functions.
5754 * configure: Regenerated.
5756 * acconfig.h (_MSE_INT_H): Remove.
5757 * configure.in: Create "Checks for header files" section, and move
5758 appropriate tests there. Don't check for objlist.h, wchar.h,
5759 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
5760 misdetection fix. Also add "Checks for types", "Checks for
5761 compiler characteristics" and "Checks for library functions"
5763 * config.in, configure: Regenerated.
5765 * configure.in: Create "Checks for programs" section, and move
5766 appropriate tests there.
5768 2003-01-01 Mark Kettenis <kettenis@gnu.org>
5770 * configure.in: Create "Checks for libraries" section, and move
5771 appropriate tests there. Cleanup check for wctype in libw. Use
5772 AC_SEARCH_LIBS to see whether we need libsocket.
5773 * configure: Regenerated.
5775 For older changes see ChangeLog-2002
5781 version-control: never