1 2003-05-18 Andreas Schwab <schwab@suse.de>
3 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6 as m68k_linux_extract_return_value.
7 (DEPRECATED_STORE_RETURN_VALUE): Define as
8 m68k_linux_store_return_value.
9 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
10 m68k_linux_extract_struct_value_address.
11 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
12 get_next_frame, get_frame_base, get_frame_pc.
13 (m68k_linux_frame_saved_pc): Use get_frame_base.
14 (m68k_linux_extract_return_value): New function.
15 (m68k_linux_store_return_value): New function.
16 (m68k_linux_extract_struct_value_address): New function.
17 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
19 * c-exp.y (typebase): Remove duplicate occurence of
20 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
21 of lookup_signed_typename.
23 2003-05-18 Mark Kettenis <kettenis@gnu.org>
25 * dwarf2loc.c (find_location_expression): Change type of second
26 argument to `size_t *'.
27 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
30 2003-05-18 David Carlton <carlton@bactrian.org>
32 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
33 'linkage_name'. Add comment.
34 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
36 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
37 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
38 (lookup_block_symbol): Ditto.
40 2003-05-16 Andrew Cagney <cagney@redhat.com>
42 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
43 * gdbarch.h, gdbarch.c: Re-generate.
44 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
45 * TODO (REGISTER_BYTES): Delete reference.
46 * alpha-tdep.c (alpha_gdbarch_init): Update.
47 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
48 * x86-64-tdep.c (x86_64_init_abi): Update.
49 * vax-tdep.c (vax_gdbarch_init): Update.
50 * v850-tdep.c (v850_gdbarch_init): Update.
51 * sparc-tdep.c (sparc_gdbarch_init): Update.
52 * sh-tdep.c (sh_gdbarch_init): Update.
53 * s390-tdep.c (s390_gdbarch_init): Update.
54 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
55 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
56 (ns32k_gdbarch_init_32382): Update.
57 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
58 * mcore-tdep.c (mcore_gdbarch_init): Update.
59 * m68k-tdep.c (m68k_gdbarch_init): Update.
60 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
61 * ia64-tdep.c (ia64_gdbarch_init): Update.
62 * i386-tdep.c (i386_gdbarch_init): Update.
63 * i386-linux-tdep.c (i386_linux_init_abi): Update.
64 * hppa-tdep.c (hppa_gdbarch_init): Update.
65 * h8300-tdep.c (h8300_gdbarch_init): Update.
66 * frv-tdep.c (frv_gdbarch_init): Update.
67 * cris-tdep.c (cris_gdbarch_init): Update.
68 * avr-tdep.c (avr_gdbarch_init): Update.
69 * arm-tdep.c (arm_gdbarch_init): Update.
70 * sparc-tdep.c (sparc_pop_frame): Update.
71 * rs6000-tdep.c (rs6000_pop_frame): Update.
72 * remote.c (init_remote_state): Update.
73 (remote_prepare_to_store): Update.
74 * remote-vx.c (vx_prepare_to_store): Update.
75 * remote-sds.c (sds_fetch_registers): Update.
76 (sds_prepare_to_store): Update.
77 * remote-array.c: Update.
78 * regcache.c (init_legacy_regcache_descr): Update.
79 (init_regcache_descr): Update.
80 * mips-tdep.c (mips_eabi_extract_return_value): Update.
81 (mips_o64_extract_return_value): Update.
82 * irix5-nat.c (fetch_core_registers): Update.
83 * irix4-nat.c (fetch_core_registers): Update.
84 * i386-tdep.h: Update.
85 * hppa-tdep.c (pa_do_registers_info): Update.
86 (pa_do_strcat_registers_info): Update.
87 * cris-tdep.c (cris_register_bytes_ok): Update.
88 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
89 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
90 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
91 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
92 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
93 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
94 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
95 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
96 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
97 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
98 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
99 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
100 (REGISTER_BYTES_OK): Update.
101 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
102 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
104 2003-05-16 Ian Lance Taylor <ian@airs.com>
106 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
107 (vax_print_insn, print_insn_arg): Remove static functions.
108 (vax_gdbarch_init): Call set_gdbarch_print_insn with
109 print_insn_vax from opcodes library.
110 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
112 2003-05-15 Andrew Cagney <cagney@redhat.com>
114 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
115 * target.h (memory_breakpoint_from_pc): Delete declaration.
116 * mem-break.c (memory_breakpoint_from_pc): Delete function.
117 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
118 * monitor.c (monitor_insert_breakpoint): Use
119 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
120 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
121 * gdbarch.h, gdbarch.c: Re-generate.
122 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
123 (sparc_gdbarch_init): Set breakpoint_from_pc to
124 sparc_breakpoint_from_pc.
125 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
126 (BREAKPOINT_FROM_PC): Define.
127 (sparc_breakpoint_from_pc): Declare.
128 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
129 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
130 (BREAKPOINT_FROM_PC): Define.
131 (BREAKPOINT): Delete macro.
132 * target.h: Update comment.
133 * s390-tdep.c (s390_gdbarch_init): Update comments.
134 * remote.c: Update comments.
135 * remote-mips.c: Update comments.
136 * proc-api.c (write_with_trace): Do not check for a breakpoint.
137 * mem-break.c: Update comment.
138 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
139 (ia64_memory_insert_breakpoint): Update.
140 * config/sparc/tm-sparc.h: Update comment.
141 * config/pa/tm-hppa64.h: Update comment.
142 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
143 (rs6000_breakpoint_from_pc): Update.
144 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
145 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
146 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
147 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
148 (mips_breakpoint_from_pc): Update.
149 (mips_dump_tdep): Update.
151 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
152 * minsyms.c (lookup_minimal_symbol): Inline
153 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
155 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
156 * p-valprint.c (pascal_object_print_value_fields): Ditto.
157 * p-lang.c (pascal_printstr): Ditto.
158 * objc-lang.c (objc_printstr): Ditto.
159 * m2-lang.c (m2_printstr): Ditto.
160 * jv-valprint.c (java_print_value_fields): Ditto.
161 * f-lang.c (f_printstr): Ditto.
162 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
163 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
164 for repeat_count_threshold.
165 * Makefile.in (cp-valprint.o): Update dependencies.
167 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
169 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
170 (examine_prologue): Support looking through leaf functions, knowing
171 they start with mov r2,r12. Support skipping over indirect stores
172 of the input registers. Upon hitting a non-nop branch instruction
173 or predicated instruction, bail out by setting lim_pc to the current
174 pc value in the loop. At the end, if the lim_pc value is still
175 beyond our calculated value and we have trust_limit set,
176 use the lim_pc value.
178 2003-05-15 Andrew Cagney <cagney@redhat.com>
180 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
181 generic_find_dummy_frame.
182 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
183 (deprecated_generic_find_dummy_frame): Update.
184 (deprecated_read_register_dummy): Update.
185 * frame.c (deprecated_generic_get_saved_register): Update.
187 2003-05-15 Theodore A. Roth <troth@openavr.org>
189 * avr-tdep.c (avr_breakpoint_from_pc): New function.
190 (avr_gdbarch_init): Set breakpoint_from_pc method.
192 2003-05-15 Andrew Cagney <cagney@redhat.com>
194 * regcache.c (build_regcache): Set deprecated_register_valid
196 (deprecated_grub_regcache_for_register_valid): Delete function.
197 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
200 2003-05-15 David Carlton <carlton@bactrian.org>
202 Committed by Elena Zannoni <ezannoni@redhat.com>
203 * symtab.c (lookup_symbol_aux): Delete calls to
204 lookup_symbol_aux_minsyms.
205 (lookup_symbol_aux_minsyms): Comment out function and
206 prototype. Delete lookup by mangled name.
208 2003-05-14 Kevin Buettner <kevinb@redhat.com>
210 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
211 correctly indicate an empty stack and ``stack_allocated'' to the
212 indicate the number of elements initially allocated.
213 (dwarf_expr_grow_stack): Simplify method for computing new
214 stack size. Don't loop infinitely if ``stack_len'' is zero.
215 (execute_stack_op): Move ``ctx->in_reg'' initialization
216 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
217 be used in conjuction with DW_OP_piece. Revise error message
220 2003-05-14 Theodore A. Roth <troth@openavr.org>
222 * MAINTAINERS: Update my email address.
225 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
227 * symtab.h (enum domain_enum): Rename from namespace_enum.
228 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
229 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
230 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
231 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
232 TYPES_NAMESPACE, METHODS_NAMESPACE.
233 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
234 (struct symbol, struct partial_symbol): Rename field
235 'namespace_enum namespace' to 'domain_enum domain'.
236 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
237 Delete old define kludge for namespace.
239 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
240 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
241 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
242 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
243 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
244 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
245 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
246 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
247 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
248 occurrences of the above.
250 2003-05-14 Ian Lance Taylor <ian@airs.com>
252 * Makefile.in (install-only): Use $(SHELL) when running
255 2003-05-13 Ian Lance Taylor <ian@airs.com>
257 * MAINTAINERS (write after approval): Add myself.
259 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
260 second and third arguments.
261 * ser-tcp.c (_initialize_ser_tcp): Likewise.
262 * ser-unix.c (_initialize_ser_hardwire): Likewise.
264 2003-05-13 Andrew Cagney <cagney@redhat.com>
266 * defs.h (store_address): Delete declaration.
267 findvar.c (store_address): Delete function.
268 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
269 store_unsigned_integer.
270 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
271 * v850-tdep.c (v850_push_arguments): Ditto.
272 * sparc-tdep.c (sparc_get_saved_register): Ditto.
273 * sh-tdep.c (sh64_get_saved_register): Ditto.
274 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
275 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
276 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
277 (mips_get_saved_register): Ditto.
278 * ia64-tdep.c (ia64_get_saved_register): Ditto.
279 (find_func_descr, ia64_push_arguments): Ditto.
280 * i386-tdep.c (i386_push_arguments): Ditto.
281 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
282 * frv-tdep.c (frv_push_arguments): Ditto.
283 * frame.c (legacy_saved_regs_prev_register): Ditto.
284 (deprecated_generic_get_saved_register): Ditto.
285 * findvar.c (unsigned_address_to_pointer): Ditto.
286 * dwarf2read.c (dwarf2_const_value): Ditto.
287 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
288 * alpha-tdep.c (alpha_push_arguments): Ditto.
290 2003-05-12 J. Brobecker <brobecker@gnat.com>
292 * NEWS: Mention that the hppa-hpux port has been partially
293 multiarched (32bit ABIT only, so far).
295 2003-05-11 Andrew Cagney <cagney@redhat.com>
297 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
298 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
299 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
300 sim/testsuite/sim/arm/misaligned2.ms, and
301 sim/testsuite/sim/arm/misaligned3.ms.
302 * disasm.h (struct ui_file): Add opaque struct declaration.
303 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
304 * frame.h (struct ui_file): Ditto.
306 2003-05-11 Mark Kettenis <kettenis@gnu.org>
308 * value.h: Pretty print.
310 2003-05-10 Mark Kettenis <kettenis@gnu.org>
312 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
314 2003-05-08 Andrew Cagney <cagney@redhat.com>
316 * regcache.h (max_register_size): Delete declaration.
317 * regcache.c (max_register_size): Delete function.
318 (struct regcache_descr): Delete field "max_register_size".
319 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
320 registers fit in MAX_REGISTER_SIZE.
321 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
322 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
323 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
324 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
325 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
326 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
327 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
328 * dve3900-rom.c, hppa-tdep.c: Ditto.
330 2003-05-08 David Carlton <carlton@math.stanford.edu>
332 * valops.c (push_word): Fix typo.
334 2003-05-08 Andrew Cagney <cagney@redhat.com>
336 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
337 * gdbarch.h: Re-generate.
338 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
339 (legacy_max_register_raw_size): Delete declaration.
340 * regcache.c (legacy_max_register_raw_size): Delete function.
341 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
342 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
343 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
344 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
345 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
346 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
347 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
348 * findvar.c, dwarf2cfi.c: Ditto.
350 2003-05-08 Andrew Cagney <cagney@redhat.com>
352 * mips-tdep.c (read_signed_register): New function, moved to here
354 (read_signed_register_pid): Ditto.
355 * regcache.c (read_signed_register_pid): Delete function, moved to
357 (read_signed_register): Ditto.
358 * regcache.h (read_signed_register): Delete declaration.
359 (read_signed_register_pid): Delete declaration.
361 2003-05-08 Andrew Cagney <cagney@redhat.com>
363 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
364 * gdbarch.h: Re-generate.
365 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
366 (legacy_max_register_virtual_size): Delete declaration.
367 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
368 * d10v-tdep.c (d10v_print_registers_info): Ditto.
369 * tracepoint.c (memrange_sortmerge): Ditto.
370 * sparc-tdep.c (sparc_print_registers): Ditto.
371 * regcache.c (legacy_max_register_virtual_size): Delete function.
373 2002-05-08 J. Brobecker <brobecker@gnat.com>
375 * fork-child.c (escape_bang_in_quoted_argument): New function.
376 (fork_inferior): Escape '!' characters in quoted arguments
379 2003-05-08 J. Brobecker <brobecker@gnat.com>
381 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
382 the language of the CU is not currently supported by GDB.
384 2003-05-08 J. Brobecker <brobecker@gnat.com>
386 * defs.h (language): Add language_minimal enum value.
387 * c-lang.c (minimal_language_defn): New language definition.
388 (_initialize_c_language): Add the new minimal language to the list
389 of languages known to GDB.
391 2003-05-08 Kevin Buettner <kevinb@redhat.com>
393 * frame.c (get_frame_type): Don't attempt to lazily initialize
394 frame's unwinder for legacy frames.
396 2003-05-07 Andrew Cagney <cagney@redhat.com>
398 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
399 and "regcache" parameters.
400 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
402 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
404 * dwarf2read.c (dwarf_decode_lines): Only use output of
405 check_cu_functions() when calling record_line(). Do not update
408 2003-05-07 Andrew Cagney <cagney@redhat.com>
410 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
413 2003-05-07 Jim Blandy <jimb@redhat.com>
415 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
416 'maint info symtabs' and 'maint info psymtabs'.
417 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
418 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
419 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
420 Declarations updated.
421 * maint.c (maintenance_list_command): Delete.
422 (_initialize_maint_cmds): Update calls to add_cmd.
423 * gdbcmd.h (maintenancelistlist): Delete declaration.
424 * cli/cli-cmds.c (maintenancelistlist): Delete.
425 (init_cmd_lists): Don't initialize it.
426 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
428 2003-05-07 Andrew Cagney <cagney@redhat.com>
430 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
432 (d10v_print_registers_info): Update.
433 (d10v_dmap_register, d10v_imap_register): Delete functions.
434 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
436 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
437 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
438 * arch-utils.c (generic_remote_translate_xfer_address): Add
439 "regcache" and "gdbarch" parameters.
440 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
441 parameter. Change class to multi-arch.
442 * gdbarch.h, gdbarch.c: Re-generate.
443 * remote.c (remote_xfer_memory): Use
444 gdbarch_remote_translate_xfer_address.
446 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
448 * infrun.c (prev_pc): Move declaration ahead of proceed().
449 (proceed): Refresh prev_pc value before resuming.
450 (stop_stepping): Remove code to refresh prev_pc.
452 2003-05-06 Kris Warkentin <kewarken@qnx.com>
454 * nto-tdep.c: Removed stray comment.
456 2003-05-06 Kris Warkentin <kewarken@qnx.com>
458 * i386-nto-tdep.c: Fix old K&R function definitions.
459 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
460 Also change add_show_from_set() call to add_setshow_cmd().
461 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
463 2003-05-05 Andrew Cagney <cagney@redhat.com>
465 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
466 (fprint_dummy_frames): New function.
467 (maintenance_print_dummy_frames): New function.
468 (_initialize_dummy_frame): Add command "maint print dummy-frames".
469 * frame.c (fprint_frame_id): Make global.
470 * frame.h (fprint_frame_id): Declare.
471 * Makefile.in (dummy-frame.o): Update dependencies.
473 2003-05-05 Andrew Cagney <cagney@redhat.com>
475 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
476 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
477 SIZEOF_CALL_DUMMY_WORDS.
478 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
479 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
480 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
481 CALL_DUMMY_BREAKPOINT_OFFSET.
482 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
483 CALL_DUMMY_START_OFFSET.
484 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
485 * gdbarch.h, gdbarch.c: Re-generate.
486 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
487 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
488 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
489 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
490 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
491 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
492 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
493 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
494 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
495 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
496 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
497 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
498 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
499 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
500 * config/sparc/tm-sparc.h: Update.
502 2003-05-05 Kris Warkentin <kewarken@qnx.com>
504 * configure.tgt: Add i[3456]86-*-nto*.
505 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
506 * nto-tdep.c: New file. Neutrino target support routines.
507 * nto-tdep.h: New file. Neutrino target header.
508 * config/tm-qnxnto.h: New file.
509 * config/i386/i386nto.mt: New file.
510 * config/i386/tm-i386nto.h: New file.
512 2003-05-04 Andrew Cagney <cagney@redhat.com>
514 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
515 (load_infrun_state): Ditto.
516 (struct thread_info): Drop "prev_func_name" field.
517 * thread.c (load_infrun_state): Update.
518 (save_infrun_state): Update.
519 * infrun.c (prev_func_name): Delete variable.
520 (init_wait_for_inferior): Do not clear prev_func_name.
521 (stop_stepping, keep_going, context_switch): Do not swap
523 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
524 instead of PC_IN_SIGTRAMP.
526 2003-05-04 Andrew Cagney <cagney@redhat.com>
528 * sentinel-frame.c (sentinel_frame_prev_register): Replace
529 REGISTER_BYTE with register_offset_hack.
530 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
531 that REGISTER_BYTE is consistent with the regcache.
532 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
533 * gdbarch.h, gdbarch.c: Regenerate.
535 2003-05-04 Mark Kettenis <kettenis@gnu.org>
537 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
538 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
540 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
542 2003-05-03 J. Brobecker <brobecker@gnat.com>
544 From Thierry Schneider <tpschneider1@yahoo.com>
545 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
546 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
547 (mi-cmd-symbol.o): Add rule.
549 2003-05-03 Andrew Cagney <cagney@redhat.com>
551 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
552 comments noteing that it replaces the old FIX_CALL_DUMMY code.
553 * gdbarch.h, gdbarch.c: Re-generate.
554 * d10v-tdep.c (d10v_push_dummy_code): New function.
555 (d10v_gdbarch_init): Set push_dummy_code.
556 * infcall.c (legacy_push_dummy_code): New function.
557 (generic_push_dummy_code): New function.
558 (push_dummy_code): New function.
559 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
560 instead of dummy_addr, to push_dummy_call. Move call to
561 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
563 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
565 2003-05-03 Andrew Cagney <cagney@redhat.com>
567 * disasm.h (print_insn): Declare.
568 * disasm.c (init_gdb_disassemble_info): New function.
569 (gdb_disassembly): Call init_gdb_disassemble_info.
570 (gdb_print_insn): New function.
571 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
572 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
573 * mcore-tdep.c: Include "disasm.h"
574 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
575 * d10v-tdep.c: Include "disasm.h".
576 (display_trace): Call gdb_print_insn, instead of print_insn.
577 (print_insn): Delete function.
578 * printcmd.c: Include "disasm.h".
579 (print_insn): Delete function.
580 (print_formatted): Call gdb_print_insn, instead of print_insn.
581 * Makefile.in (printcmd.o): Update dependencies.
582 (mcore-tdep.o, d10v-tdep.o): Ditto.
584 2003-05-02 Andrew Cagney <cagney@redhat.com>
586 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
587 PC_REGNUM, re-indent.
588 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
591 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
592 * gdbarch.h, gdbarch.c: Re-generate.
593 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
594 register_virtual_size, pc_regnum, or register_bytes.
595 (D10V_PC_REGNUM): Rename _PC_REGNUM.
596 (d10v_register_type): Use D10V_PC_REGNUM.
597 (d10v_print_registers_info, d10v_read_pc): Ditto.
598 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
599 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
601 2003-05-02 David Carlton <carlton@bactrian.org>
603 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
604 the name with mstrsave.
606 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
608 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
609 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
610 (host_charset_name, target_charset_name): New vars for use by
612 (host_charset_enum, target_charset_enum): New enums for set/show
614 (set_charset_sfunc, set_host_charset_sfunc,
615 set_target_charset_sfunc): New functions.
616 (set_host_charset, set_target_charset): Make static.
617 (list_charsets, set_host_charset_command,
618 set_target_charset_command): Delete functions.
619 (show_charset_command): Rewrite as....
620 (show_charset): Hook this up with the set/show command mechanism.
621 (_initialize_charset): Change names of charsets to match the
622 set/show enums. Use host_charset_name and target_charset_name.
623 Use set/show mechanism for charset, host-charset, target-charset
624 commands. Do not make 'show host-charset' and 'show
625 target-charset' be aliases of 'show charset'.
627 * charset.h (set_host_charset, set_target_charset): Don't export,
628 they are not used outside the file.
630 2003-05-01 Andrew Cagney <cagney@redhat.com>
632 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
633 (gdb_disassembly): Make "di" non static, always initialize and
634 cleanup. Always use dis_asm_read_memory.
635 (gdb_dis_asm_read_memory): Delete function.
637 2003-05-01 Andrew Cagney <cagney@redhat.com>
639 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
640 (d10v_gdbarch_init): Set frame_align instead of stack_align.
642 2003-04-30 Andrew Cagney <cagney@redhat.com>
644 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
645 "tm_print_insn_info".
646 (TARGET_PRINT_INSN_INFO): Delete macro.
647 (dis_asm_read_memory): Delete function declaration.
648 (dis_asm_memory_error, dis_asm_print_address): Ditto.
649 (tm_print_insn_info): Delete variable definition.
650 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
651 * gdbarch.h, gdbarch.c: Re-generate.
652 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
653 "deprecated_tm_print_insn_info".
654 * mcore-tdep.c (mcore_dump_insn): Ditto.
655 * mips-tdep.c (mips_gdbarch_init): Ditto.
656 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
657 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
658 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
659 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
660 instead of TARGET_PRINT_INSN_INFO, add comment.
661 * s390-tdep.c (s390_get_frame_info): Instead of
662 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
663 (s390_check_function_end, s390_is_sigreturn): Ditto.
664 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
665 (dis_asm_memory_error, dis_asm_print_address): Ditto.
666 * disasm.c: Include "gdbcore.h".
667 (_initialize_disasm): New function, initialize
668 "deprecated_tm_print_insn_info".
669 (deprecated_tm_print_insn_info): New variable.
670 (dis_asm_read_memory): Moved from "corefile.c", made static.
671 (dis_asm_print_address, dis_asm_memory_error): Ditto.
672 * Makefile.in (disasm.o): Update dependencies.
674 2003-04-30 Andrew Cagney <cagney@redhat.com>
676 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
678 2003-04-29 Adam Fedor <fedor@gnu.org>
680 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
681 * infcall.c (find_function_addr): Make non-static.
682 * infcall.h (find_function_addr): Declare.
683 * Makefile.in (eval.o): Update dependencies.
685 2003-04-28 Adam Fedor <fedor@gnu.org>
687 * symtab.c (symbol_find_demangled_name): Check for and demangle
689 (symbol_init_demangled_name): Init for language_objc as well.
691 2003-04-28 Andrew Cagney <cagney@redhat.com>
693 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
694 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
695 * gdbarch.h, gdbarch.c: Re-generate.
696 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
697 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
698 * inferior.h (deprecated_read_fp): Rename read_fp.
699 (generic_target_read_fp): Delete declaration.
700 * regcache.c (generic_target_read_fp): Delete function.
701 (deprecated_read_fp): Replace read_fp, use
702 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
703 * d10v-tdep.c (d10v_read_fp): Delete function.
704 (d10v_gdbarch_init): Do not set deprecated_read_fp.
706 * sparc-tdep.c (sparc_gdbarch_init): Do not set
707 deprecated_target_read_fp to generic_target_read_fp.
708 * sh-tdep.c (sh_gdbarch_init): Ditto.
709 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
710 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
711 * frv-tdep.c (frv_gdbarch_init): Ditto.
713 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
714 deprecated_fp_regnum.
715 * x86-64-tdep.c (x86_64_init_abi): Ditto.
716 * vax-tdep.c (vax_gdbarch_init): Ditto.
717 * v850-tdep.c (v850_gdbarch_init): Ditto.
718 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
719 * sh-tdep.c (sh_gdbarch_init): Ditto.
720 * s390-tdep.c (s390_gdbarch_init): Ditto.
721 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
722 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
723 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
724 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
725 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
726 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
727 * i386-tdep.c (i386_gdbarch_init): Ditto.
728 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
729 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
730 * frv-tdep.c (frv_gdbarch_init): Ditto.
731 * cris-tdep.c (cris_gdbarch_init): Ditto.
732 * avr-tdep.c (avr_gdbarch_init): Ditto.
733 * arm-tdep.c (arm_gdbarch_init): Ditto.
734 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
736 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
737 * v850-tdep.c (v850_gdbarch_init): Ditto.
738 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
739 * sh-tdep.c (sh_gdbarch_init): Ditto.
740 * s390-tdep.c (s390_gdbarch_init): Ditto.
741 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
742 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
743 * mips-tdep.c (mips_gdbarch_init): Ditto.
744 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
745 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
746 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
747 * frv-tdep.c (frv_gdbarch_init): Ditto.
748 * avr-tdep.c (avr_gdbarch_init): Ditto.
749 * arm-tdep.c (arm_gdbarch_init): Ditto.
751 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
752 DEPRECATED_FP_REGNUM.
753 (vax_push_dummy_frame, vax_pop_frame): Ditto.
754 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
755 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
756 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
757 (sparc32_register_virtual_type): Ditto.
758 * sh-tdep.c (sh64_frame_chain): Ditto.
759 (sh64_get_saved_register, sh64_pop_frame): Ditto.
760 (sh_nofp_frame_init_saved_regs): Ditto.
761 (sh64_nofp_frame_init_saved_regs): Ditto.
762 (sh_fp_frame_init_saved_regs): Ditto.
763 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
764 * remote-e7000.c (fetch_regs_from_dump): Ditto.
765 * procfs.c (procfs_fetch_registers): Ditto.
766 (procfs_store_registers): Ditto.
767 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
768 (store_inferior_registers, fetch_core_registers): Ditto.
769 (fetch_kcore_registers, clear_regs): Ditto.
770 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
771 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
772 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
773 * nlm/i386.c (do_status): Ditto.
774 * mipsv4-nat.c (supply_gregset): Ditto.
775 * mips-tdep.c: Ditto for comments.
776 * mips-nat.c (fetch_inferior_registers): Ditto.
777 (store_inferior_registers, fetch_core_registers): Ditto.
778 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
779 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
780 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
781 (i386_do_pop_frame, i386_register_type): Ditto.
782 * hppa-tdep.c (hppa_frame_chain): Ditto.
783 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
784 (hppa_pop_frame, hppa_read_fp): Ditto.
785 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
786 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
787 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
788 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
789 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
790 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
791 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
792 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
793 * blockframe.c: Ditto for comments.
794 * arch-utils.h: Ditto for comments.
795 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
796 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
797 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
798 * alpha-tdep.h: Ditto for comments.
799 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
800 (alpha_cannot_store_register): Ditto.
801 (alpha_push_dummy_frame): Ditto.
802 * alpha-nat.c (supply_gregset): Ditto.
804 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
805 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
806 * config/sparc/tm-sparc.h: Update comment.
808 * hppa-tdep.c (hppa_init_extra_frame_info): Use
809 deprecated_read_fp instead of TARGET_READ_FP.
810 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
811 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
812 * sparc-tdep.c (sparc_init_extra_frame_info): Use
813 deprecated_read_fp instead of read_fp.
814 * s390-tdep.c (s390_push_arguments): Ditto.
815 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
816 * frame.h: Ditto in comments.
817 * frame.c (legacy_get_prev_frame): Ditto.
818 * dummy-frame.c (dummy_frame_this_id): Ditto.
819 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
821 2003-04-28 Andrew Cagney <cagney@redhat.com>
823 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
824 * gdbarch.h, gdbarch.c: Re-generate.
825 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
826 * vax-tdep.c (_initialize_vax_tdep): Update.
827 * v850-tdep.c (_initialize_v850_tdep): Update.
828 * sparc-tdep.c (_initialize_sparc_tdep): Update.
829 * s390-tdep.c (_initialize_s390_tdep): Update.
830 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
831 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
832 * mips-tdep.c (_initialize_mips_tdep): Update.
833 * mcore-tdep.c (_initialize_mcore_tdep): Update.
834 * m68k-tdep.c (_initialize_m68k_tdep): Update.
835 * ia64-tdep.c (_initialize_ia64_tdep): Update.
836 * hppa-tdep.c (_initialize_hppa_tdep): Update.
837 * h8300-tdep.c (_initialize_h8300_tdep): Update.
838 * frv-tdep.c (_initialize_frv_tdep): Update.
839 * cris-tdep.c (cris_delayed_get_disassembler): Update.
840 (_initialize_cris_tdep): Update.
841 * arch-utils.c (legacy_print_insn): Update.
842 * alpha-tdep.c (_initialize_alpha_tdep): Update.
844 2003-04-26 Adam Fedor <fedor@gnu.org>
846 * linespec.c (decode_objc): New function to decode ObjC calls
847 (decode_line_1): Check for ObjC calls (using decode_objc)
848 * Makefile (linespec.o): Update dependencies.
850 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
852 * breakpoint.h (struct breakpoint_ops): New.
853 (struct breakpoint): Add ops member.
855 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
856 (mention): Use new breakpoint ops member.
857 (set_raw_breakpoint): Initialize ops field to NULL.
858 (print_exception_catchpoint, print_one_exception_catchpoint)
859 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
860 (gnu_v3_exception_catchpoint_ops): New.
861 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
863 2003-04-25 Adam Fedor <fedor@gnu.org>
865 * Makefile.in (COMMON_OBS): Add objc-lang.o
867 2003-04-25 Andrew Cagney <cagney@redhat.com>
869 * d10v-tdep.c (print_insn): Delete function.
870 (display_trace): Use TARGET_PRINT_INSN.
871 (_initialize_d10v_tdep): Do not set tm_print_insn.
872 (d10v_gdbarch_init): Set print_insn.
874 2003-04-25 Andrew Cagney <cagney@redhat.com>
876 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
877 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
878 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
879 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
880 (nr_dmap_regs, a0_regnum): ... new functions.
881 (d10v_print_registers_info): Use a0_regnum, use register_size.
882 (d10v_register_byte): Delete function.
883 (d10v_register_raw_size): Delete function.
884 (d10v_register_type): Use a0_regnum.
885 (d10v_print_registers_info): Use a0_regnum.
886 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
887 (d10v_gdbarch_init): Do not set register_byte or
888 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
889 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
891 (trace_command): Use XCALLOC.
892 (print_insn): Delete reference to tm_print_insn.
893 (saved_regs_unwinder): Use store_unsigned_integer instead of
895 * frame.h (FRAME_OBSTACK_CALLOC): Define
897 2003-04-25 David Carlton <carlton@bactrian.org>
899 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
901 2003-04-24 Adam Fedor <fedor@gnu.org>
903 * objc-lang.c: Include "valprint.h"
904 * Makefile.in (objc-lang.o): Update dependencies.
906 2003-04-24 Adam Fedor <fedor@gnu.org>
908 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
909 architecture dependant compilation and mark as unimplemented
910 (until they get put in the gdbarch vector).
912 2003-04-23 David Carlton <carlton@bactrian.org>
914 * cp-support.c (cp_find_first_component): Accept 'operator' in
917 2003-04-23 Andrew Cagney <cagney@redhat.com>
919 * infcall.c (call_function_by_hand): Eliminate redundant
920 indentation. Move "saved_async" and "old_cleanups" to where they
923 2003-04-23 Andrew Cagney <cagney@redhat.com>
925 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
926 and "buffer". Move the "name" code to where it is needed.
928 2003-04-23 Andrew Cagney <cagney@redhat.com>
930 * infcall.c (call_function_by_hand): Move variables "start_sp",
931 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
932 code to ON_STACK switch branch.
934 2003-04-23 Andrew Cagney <cagney@redhat.com>
936 * infcall.c (call_function_by_hand): Make declaration of "i",
937 "sal", "bpt" and "old_sp" more local to their use. Delete #if
940 2003-04-23 Andrew Cagney <cagney@redhat.com>
942 * infcall.c (call_function_by_hand): Delete variable
943 "n_method_args". Localize "param_type"'s declaration to the loop
944 that it is used. Reinstate code assigning to said variable -
945 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
946 Rationalize code using "param_type".
948 2003-04-22 Andrew Cagney <cagney@redhat.com>
950 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
951 compute the breakpoint address. Only call FIX_CALL_DUMMY when
952 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
953 to DEPRECATED_PUSH_RETURN_ADDRESS.
955 2003-04-22 Kevin Buettner <kevinb@redhat.com>
957 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
958 on the DWARF2 register number prior to fetching a register.
960 2003-04-22 J. Brobecker <brobecker@gnat.com>
962 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
963 Update all the tests using SOFT_FLOAT considering the fact that
964 this macro was always set to 0.
965 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
966 considering the fact that this macro was always set to 0.
967 * hppa-tdep.h (hppa_store_return_value): Likewise.
968 (hppa_extract_return_value): Likewise.
970 2003-04-22 J. Brobecker <brobecker@gnat.com>
972 * config/pa/tm-hppa.h: Remove obsolete code, was used by
973 the hppa-pro target only.
975 2003-04-21 J. Brobecker <brobecker@gnat.com>
977 Ongoing multi-arch conversion effort for HP/UX:
978 * config/pa/tm-hppa.h: Move all macro that are no longer
979 defined now that GDB_MULTI_ARCH is now set to 1 from here...
980 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
982 2003-04-21 J. Brobecker <brobecker@gnat.com>
984 * config/pa/tm-hppa.h: Obsolete a section that was only used
987 2003-04-21 J. Brobecker <brobecker@gnat.com>
989 Ongoing multi-arch conversion for HP/UX.
990 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
991 if already defined (allows hppa64 to stay non-multiarched for now).
992 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
994 2003-04-21 Andrew Cagney <cagney@redhat.com>
996 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
998 2003-04-21 Andrew Cagney <cagney@redhat.com>
1000 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
1001 "i386_num_mmx_regs".
1003 2003-04-21 Andrew Cagney <cagney@redhat.com>
1005 * infcall.c: New file.
1006 * infcall.h: New file.
1007 * valarith.c: Include "infcall.h".
1008 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
1009 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
1010 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
1011 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
1012 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
1013 (SFILES): Add "infcall.c"
1014 (COMMON_OBS): Add "infcall.o".
1015 (infcall.o): Specify dependencies.
1016 * value.h (call_function_by_hand): Delete declaration.
1017 * inferior.h (run_stack_dummy): Delete declaration.
1018 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
1019 (run_stack_dummy): Move to "infcall.c", merged into
1020 call_function_by_hand.
1021 * valops.c (call_function_by_hand): Moved to "infcall.c".
1022 (find_function_addr, value_arg_coerce): Ditto.
1023 (unwindonsignal_p, coerce_float_to_double): Ditto.
1024 (_initialize_valops): Move "set/show coerce-float-to-double", and
1025 "set/show unwindonsignal" commands to "infcall.c".
1026 * v850-tdep.c, target.h: Update comments.
1027 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
1028 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
1029 (sh64_init_extra_frame_info): Update comments.
1030 * mn10300-tdep.c: Update comments.
1031 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
1032 * config/sparc/tm-sparc.h: Update comments.
1033 * breakpoint.h: Update comments.
1034 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
1035 * arm-tdep.c: Update comment.
1037 2003-04-19 Mark Kettenis <kettenis@gnu.org>
1039 * i386-tdep.c (i386_num_register_names): New variable.
1040 (i386_num_mmx_regs): Renamed from mmx_num_regs.
1041 (MM0_REGNUM): Remove redundant parentheses in define.
1042 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
1043 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
1044 i386_mxcsr_regnum_p): Remove redundant parentheses.
1045 (i386_register_name): Use i386_num_register_names.
1047 * i386-tdep.c (i386_extract_return_value,
1048 i386_store_return_value): Correct check for availability of
1049 floating-point registers.
1051 * i386-tdep.c (i386_frame_num_args): Remove function.
1052 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
1054 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
1055 mmx_regnum_to_fp_regnum. Adjust all callers.
1057 * i386-tdep.c (i386_get_longjmp_target): Use
1058 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
1059 and TARGET_CHAR_BIT. Use extract_typed_address instead of
1062 2003-04-19 Mark Kettenis <kettenis@gnu.org>
1064 * core-regset.c: Update comments to reflect reality. Re-order
1066 (fetch_core_registers): Use switch instead of if. Remove
1067 redundant prototype.
1069 2003-04-18 Jim Blandy <jimb@redhat.com>
1071 * s390-tdep.c (s390_frame_align): New function.
1072 (s390_gdbarch_init): Register it with the gdbarch object.
1074 2003-04-17 Richard Henderson <rth@redhat.com>
1076 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
1078 2003-04-17 Michael Snyder <msnyder@redhat.com>
1079 Karen Bennet <bennet@redhat.com>
1081 Committed by Elena Zannoni <ezannoni@redhat.com>
1082 * gdb_gcore.sh: New script to create a core dump of a process.
1084 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
1086 * values.c (value_being_returned): Don't fetch the return
1087 value if the return type is void.
1089 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
1091 * thread-db.c: Reindented.
1093 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
1095 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
1096 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
1099 2003-04-16 Kevin Buettner <kevinb@redhat.com>
1101 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
1102 the size of ``long double'' to 16, instead of 8.
1104 2003-04-16 Mark Kettenis <kettenis@gnu.org>
1106 * i386-linux-nat.c: Add some whitespace to make things more
1108 (fetch_register, store_register, fetch_inferior_registers,
1109 store_inferior_registers): Get rid of assignment in if-statement.
1110 (store_register): Fix typo in error message.
1112 2003-04-16 Andrew Cagney <cagney@redhat.com>
1114 * utils.c (xmmalloc): Always allocate something, matches
1115 libiberty/xmalloc's semantics.
1116 (xmrealloc, xmcalloc): Ditto.
1118 2003-04-16 Andrew Cagney <cagney@redhat.com>
1120 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
1122 (get_frame_type): Initialize unwind and type when needed.
1123 (get_frame_id, frame_register_unwind): Ditto.
1125 2003-04-16 Andrew Cagney <cagney@redhat.com>
1127 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
1129 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
1130 * sparcl-stub.c: Obsolete file.
1131 * config/sparc/tm-sparclet.h: Obsolete file.
1132 * sparclet-stub.c: Obsolete file.
1133 * sparclet-rom.c: Obsolete file.
1134 * sparcl-tdep.c: Obsolete file.
1135 * config/sparc/tm-sparclite.h: Obsolete file.
1136 * config/sparc/sparclite.mt: Obsolete file.
1137 * config/sparc/sparclet.mt: Obsolete file.
1138 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
1139 sparc86x-*-* obsolete.
1141 2003-04-15 David Carlton <carlton@math.stanford.edu>
1143 * Makefile.in (SFILES): Add cp-namespace.c.
1144 (COMMON_OBS): Add cp-namespace.o.
1145 (block.o): Depend on gdb_obstack_h and cp_support_h.
1146 (buildsym.o): Depend on cp_support_h.
1147 (cp-namespace.o): New.
1148 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
1149 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
1150 (dwarf2read.o): Depend on cp_support_h.
1151 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
1152 * dwarf2read.c (process_die): Set processing_has_namespace_info,
1153 processing_current_namespace.
1154 (read_namespace): Update processing_current_namespace; check for
1155 anonymous namespaces.
1156 (dwarf2_name): New function.
1157 (dwarf2_extension): Ditto.
1158 * cp-support.h: Update copyright, contributors.
1159 Add inclusion guards.
1160 Add opaque declaration for structs obstack, block, symbol.
1161 (struct using_direct): New struct.
1162 Add declarations for cp_find_first_component,
1163 cp_entire_prefix_len, processing_has_namespace_info,
1164 processing_current_namespace, cp_is_anonymous,
1165 cp_add_using_directive, cp_initialize_namespace,
1166 cp_finalize_namespace, cp_set_block_scope,
1167 cp_scan_for_anonymous_namespaces.
1168 * cp-namespace.c: New file.
1169 * cp-support.c: Update copyright.
1170 Include ctype.h, gdb_assert.h, gdbcmd.h.
1171 New variable maint_cplus_cmd_list.
1172 (cp_find_first_component): New function.
1173 (cp_entire_prefix_len, maint_cplus_command)
1174 (first_component_command, _initialize_cp_support): Ditto.
1175 * buildsym.c: Include cp-support.h.
1176 New variable using_list.
1177 (add_symbol_to_list): Check for anonymous namespaces.
1178 (finish_block): Set block's scope.
1179 (start_symtab): Initialize C++ namespace support.
1180 (end_symtab): Finalize C++ namespace support.
1181 * block.h: Add opaque declarations for structs
1182 block_namespace_info, using_direct, and obstack.
1183 Add declarations for block_set_scope and block_set_using.
1184 (struct block): Add 'language_specific' member.
1185 (BLOCK_NAMESPACE): New macro.
1186 * block.c: Include gdb_obstack.h and cp-support.h.
1187 (struct block_namespace_info): New struct.
1188 (block_set_scope): New function.
1189 (block_set_using, block_initialize_namespace): Ditto.
1191 2003-04-14 Kevin Buettner <kevinb@redhat.com>
1193 * solib-svr4.c (svr4_have_link_map_offsets): New function.
1194 (locate_base): Return early if there aren't any link map offsets.
1195 (svr4_solib_create_inferior_hook): Warn if shared library support
1198 2003-04-14 David Carlton <carlton@math.stanford.edu>
1200 * symtab.c (symbol_set_names): Add prefix when storing Java names
1201 in hash table. Fix for PR java/1039.
1203 2003-04-14 David Carlton <carlton@math.stanford.edu>
1205 * symtab.c (symbol_set_names): Rename 'name' arg to
1206 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
1207 * symtab.h: Change 'name' argument in declaration of
1208 symbol_set_names to 'linkage_name'.
1209 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
1211 2003-04-14 Andrew Cagney <cagney@redhat.com>
1213 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
1214 return the fully sign-extended register value.
1215 (get_frame_pointer): Ditto.
1216 (mips_pop_frame): Initialize "proc_desc" after checking for a
1219 2003-04-14 Andrew Cagney <cagney@redhat.com>
1221 * mips-tdep.c (mips_push_dummy_frame): Delete function.
1222 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
1223 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
1224 (mips_push_register): Delete function.
1225 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
1228 2003-04-14 Jim Blandy <jimb@redhat.com>
1230 * symmisc.c: #include "gdb_regex.h".
1231 (maintenance_list_symtabs, maintenance_list_psymtabs): New
1233 * maint.c (maintenance_list_command): New function.
1234 (_initialize_maint_cmds): Register the above as commands.
1235 * symtab.h (maintenance_list_symtabs,
1236 maintenance_list_psymtabs): New declarations.
1237 * cli/cli-cmds.c (maintenancelistlist): New variable.
1238 (init_cmd_lists): Initialize it.
1239 * cli/cli-cmds.h (maintenancelistlist): New declaration.
1240 * gdbcmd.h (maintenancelistlist): New declaration.
1241 * Makefile.in (symmisc.o): Update dependencies.
1243 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
1245 * s390-nat.c: Include asm/types.h for addr_t.
1247 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
1249 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
1250 actually incoming type.
1252 2003-04-13 Andrew Cagney <cagney@redhat.com>
1254 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
1255 get_next_frame and get_frame_saved_regs.
1257 2003-04-13 Andrew Cagney <cagney@redhat.com>
1259 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
1260 of gdbarch_num_regs.
1262 2003-04-13 Andrew Cagney <cagney@redhat.com>
1264 * frame.h: Mention what replaced what in "struct frame_info".
1265 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
1266 deprecated_update_frame_base_hack and
1267 deprecated_update_frame_pc_hack.
1268 * hppa-tdep.c: Ditto.
1270 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
1272 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
1273 to read_reg and update its comment. Remove regnum member.
1274 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
1275 Don't call read_reg when setting in_reg. Call read_reg to get
1276 the frame base if it's in a register. Return the register number
1277 on the stack instead of in the context. Remove extra arguments
1279 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
1280 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
1281 the register number on the expression stack.
1282 (needs_frame_read_reg): Remove extra arguments.
1284 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
1286 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
1288 (execute_stack_op): All callers updated.
1289 * dwarf2expr.h: Add prototype for dwarf2_read_address.
1290 * dwarf2loc.c (find_location_expression): New function.
1291 (dwarf_expr_frame_base): Call it.
1292 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
1293 (dwarf2_tracepoint_var_ref): New function, broken out from
1294 locexpr_tracepoint_var_ref.
1295 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
1297 (loclist_read_variable, loclist_read_needs_frame): New functions.
1298 (loclist_describe_location, loclist_tracepoint_var_ref): New
1300 (dwarf2_loclist_funcs): New struct location_funcs.
1301 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
1302 (struct dwarf2_locexpr_baton): Add comments.
1303 (dwarf2_loclist_funcs): New extern.
1304 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
1305 base_address and base_known.
1306 (dwarf_loc_buffer): New variable.
1307 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
1308 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
1309 (dwarf2_has_info): Initialize dwarf_loc_offset.
1310 (dwarf2_build_psymtabs): Read in .debug_loc.
1311 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
1313 (psymtab_to_symtab_1): Likewise. Move base address calculation
1315 (dwarf2_get_pc_bounds): ... here. Use the base address from
1317 (dwarf2_symbol_mark_computed): Handle location lists.
1319 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
1321 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
1322 if the linkage name demangled successfully.
1324 2003-04-13 Mark Kettenis <kettenis@gnu.org>
1326 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
1327 disassmbly_flavour): Removed.
1329 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
1331 2003-04-13 Mark Kettenis <kettenis@gnu.org>
1333 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
1335 2003-04-12 Andrew Cagney <cagney@redhat.com>
1337 * frame.h (struct frame_info): Move definition from here ...
1338 * frame.c (struct frame_info): ... to here.
1340 2003-04-12 Andrew Cagney <cagney@redhat.com>
1342 * gdbthread.h (save_infrun_state): Delete parameter
1344 (struct thread_info): Delete field "prev_func_start".
1345 (load_infrun_state): Ditto.
1346 * thread.c (load_infrun_state, save_infrun_state): Update.
1347 * infrun.c (prev_func_start): Delete variable.
1348 (context_switch, init_wait_for_inferior): Update.
1349 (stop_stepping, keep_going): Update.
1351 2003-04-12 Andrew Cagney <cagney@redhat.com>
1353 * gdbarch.sh: Add missing opaque declarations.
1354 * gdbarch.h: Regnerate.
1355 * symtab.h: Add missing opaque declarations.
1356 * value.h, target.h, symfile.h, stabsread.h: Ditto.
1357 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
1358 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
1359 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
1360 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
1361 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
1362 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
1363 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
1364 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
1365 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
1366 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
1367 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
1368 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
1370 2003-04-11 Andrew Cagney <cagney@redhat.com>
1372 * frame.c (get_frame_id): Return this frame's "id".
1373 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
1375 (legacy_saved_regs_this_id): Replace function body with
1377 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
1378 FRAME_OBSTACK_ZALLOC.
1379 (create_new_frame): Mark the frame ID as valid.
1381 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
1383 * Makefile.in (libbfd_h): Added missing setting.
1384 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
1385 according to the selected ABI.
1387 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
1389 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
1391 2003-04-11 Andrew Cagney <cagney@redhat.com>
1393 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
1394 SAVED_PC_AFTER_CALL.
1395 * gdbarch.h, gdbarch.c: Regenerate.
1396 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1397 * x86-64-tdep.c (x86_64_init_abi): Update.
1398 * vax-tdep.c (vax_gdbarch_init): Update.
1399 * v850-tdep.c (v850_gdbarch_init): Update.
1400 * sparc-tdep.c (sparc_gdbarch_init): Update.
1401 * sh-tdep.c (sh_gdbarch_init): Update.
1402 * s390-tdep.c (s390_gdbarch_init): Update.
1403 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1404 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1405 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1406 * mips-tdep.c (mips_gdbarch_init): Update.
1407 * mcore-tdep.c (mcore_gdbarch_init): Update.
1408 * m68k-tdep.c (m68k_gdbarch_init): Update.
1409 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1410 * ia64-tdep.c (ia64_gdbarch_init): Update.
1411 (ia64_saved_pc_after_call): Update declaration.
1412 * i386ly-tdep.c (i386lynx_init_abi): Update.
1413 * i386-tdep.c (i386_gdbarch_init): Update.
1414 * hppa-tdep.c (hppa_gdbarch_init): Update.
1415 * h8300-tdep.c (h8300_gdbarch_init): Update.
1416 * frv-tdep.c (frv_gdbarch_init): Update.
1417 * cris-tdep.c (cris_gdbarch_init): Update.
1418 * avr-tdep.c (avr_gdbarch_init): Update.
1419 * arm-tdep.c (arm_gdbarch_init): Update.
1420 * alpha-tdep.c (alpha_gdbarch_init): Update.
1421 * ns32knbsd-nat.c (frame_num_args): Update.
1422 * ns32k-tdep.c (umax_frame_num_args): Update.
1423 * mips-tdep.c (mips_init_frame_pc_first): Update.
1424 * infrun.c (step_over_function): Update.
1425 * i386-linux-tdep.c (skip_hurd_resolver): Update.
1426 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
1427 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
1428 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1429 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1430 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
1431 * arm-linux-tdep.c (skip_hurd_resolver): Update.
1432 * arch-utils.c (init_frame_pc_default): Update.
1433 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
1434 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
1437 2003-04-11 Andrew Cagney <cagney@redhat.com>
1439 * i387-tdep.c: Update copyright.
1440 (i387_to_double): Delete function.
1441 (double_to_i387): Delete function.
1443 2003-04-10 Andrew Cagney <cagney@redhat.com>
1445 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
1446 frame's function's address. Simplify.
1447 (d10v_frame_unwind_cache): Check that the frame's function is
1450 2003-04-10 Jim Blandy <jimb@redhat.com>
1452 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
1453 call to set_gdbarch_deprecated_push_arguments.
1455 2003-04-10 Andrew Cagney <cagney@redhat.com>
1457 * frame.c (fprint_frame_id): New function.
1458 (fprint_frame_type, fprint_frame): New function.
1459 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
1460 (create_sentinel_frame, get_frame_id): Ditto.
1461 (frame_id_p, frame_id_eq): Ditto.
1462 (frame_id_inner, create_new_frame): Ditto.
1463 (legacy_get_prev_frame, get_prev_frame): Ditto.
1464 (deprecated_update_frame_pc_hack): Ditto.
1465 (frame_register_unwind): Ditto.
1466 (deprecated_update_frame_base_hack): Ditto.
1468 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
1470 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
1471 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
1472 frame_chain function.
1473 * Makefile.in: Add dependencies due to above change.
1475 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
1477 * blockframe.c (legacy_frame_chain_valid): Move call to
1478 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
1481 2003-04-09 Andrew Cagney <cagney@redhat.com>
1483 * frame.h (struct frame_id): Replace "pc" and "base" with
1484 "stack_addr" and "code_addr". Update comments.
1485 (frame_id_build): Update parameter names and comment.
1486 (struct frame_info): Replace "id_p" and "id" with "this_id".
1487 * dummy-frame.c (dummy_frame_this_id): Update.
1488 * breakpoint.c (print_one_breakpoint): Update.
1489 * frame.c (get_frame_id): Update.
1490 (get_frame_base, frame_id_build): Update.
1491 (create_sentinel_frame, legacy_get_prev_frame): Update.
1492 (deprecated_update_frame_base_hack): Update.
1493 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
1494 (frame_id_inner): Ditto.
1496 2003-04-09 Andrew Cagney <cagney@redhat.com>
1498 * defs.h (gdb_print_host_address): Make "addr" parameter a
1500 * utils.c (gdb_print_host_address): Update.
1502 2003-04-09 Kevin Buettner <kevinb@redhat.com>
1504 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
1505 register number for R0 is 0.
1507 2003-04-09 J. Brobecker <brobecker@gnat.com>
1509 * frame.h (struct gdbarch): Add opaque structure definition
1510 to avoid a compilation warning on LynxOS 4.0.
1512 2003-04-09 Andrew Cagney <cagney@redhat.com>
1514 * frame.h (struct frame_info): Delete field "pc". Replace
1515 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
1517 * frame.c (frame_pc_unwind): Update.
1518 (create_sentinel_frame): Do not set "pc".
1519 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
1520 (get_frame_pc): Call frame_pc_unwind.
1521 (deprecated_update_frame_pc_hack): Update.
1522 (create_new_frame): Use "pc" not "->pc".
1524 2003-04-09 Andrew Cagney <cagney@redhat.com>
1526 * frame.c (get_frame_id): Eliminate code updating "frame".
1527 (legacy_get_prev_frame): Ditto.
1528 (get_frame_base): Return id.base directly.
1529 (deprecated_update_frame_base_hack): Update "id.base".
1530 * frame.h (struct frame_info): Delete field "frame".
1532 2003-04-09 Andrew Cagney <cagney@redhat.com>
1534 * NEWS: Mention that the "Sequent family" is obsolete.
1535 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
1536 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
1537 * configure.host: Obsolete i[3456]86-sequent-bsd*,
1538 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
1539 * config/i386/tm-ptx4.h: Obsolete file.
1540 * config/i386/tm-ptx.h: Obsolete file.
1541 * symm-tdep.c: Obsolete file.
1542 * config/i386/symmetry.mt: Obsolete file.
1543 * config/i386/tm-symmetry.h: Obsolete file.
1544 * symm-nat.c: Obsolete file.
1545 * config/i386/nm-symmetry.h: Obsolete file.
1546 * config/i386/xm-symmetry.h: Obsolete file.
1547 * config/i386/symmetry.mh: Obsolete file.
1548 * config/i386/nm-ptx4.h: Obsolete file.
1549 * config/i386/ptx4.mh: Obsolete file.
1550 * config/i386/ptx.mt: Obsolete file.
1551 * config/i386/ptx.mh: Obsolete file.
1552 * config/i386/xm-ptx4.h: Obsolete file.
1553 * config/i386/xm-ptx.h: Obsolete file.
1555 2003-04-09 Andrew Cagney <cagney@redhat.com>
1557 Obsolete mips*-*-mach3*.
1558 * NEWS: Mention that mips*-*-mach3* is obsolete.
1559 * m3-nat.c: Obsolete file.
1560 * config/nm-m3.h: Obsolete file.
1561 * config/mips/tm-mipsm3.h: Obsolete file.
1562 * config/mips/mipsm3.mt: Obsolete file.
1563 * config/mips/mipsm3.mh: Obsolete file.
1564 * config/mips/xm-mipsm3.h: Obsolete file.
1565 * mipsm3-nat.c: Obsolete file.
1566 * configure.host: Obsolete mips-dec-mach3*.
1567 * configure.tgt: Obsolete mips*-*-mach3*.
1569 2003-04-09 Andrew Cagney <cagney@redhat.com>
1571 * doublest.h: Update copyright.
1572 (deprecated_store_floating, deprecated_extract_floating): Rename
1573 store_floating and extract_floating. Update comments.
1574 * doublest.c: Update copyright.
1575 (extract_floating_by_length): Replace extract_floating.
1576 (store_floating_by_length): Replace store_floating.
1577 (deprecated_extract_floating): New function.
1578 (deprecated_store_floating): New function.
1579 (extract_typed_floating): Call extract_floating_by_length.
1580 (store_typed_floating): Call store_floating_by_length.
1581 * x86-64-tdep.c (x86_64_store_return_value): Update.
1582 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
1583 (sh64_extract_return_value): Update.
1584 (sh_sh4_register_convert_to_virtual): Update.
1585 (sh_sh64_register_convert_to_virtual): Update.
1586 (sh_sh4_register_convert_to_raw): Update.
1587 (sh_sh64_register_convert_to_raw): Update.
1588 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
1589 (rs6000_register_convert_to_raw): Update.
1590 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
1591 (ia64_register_convert_to_raw): Update.
1592 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
1593 (REGISTER_CONVERT_TO_VIRTUAL): Update.
1594 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
1595 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
1596 (alpha_register_convert_to_raw): Update.
1598 2003-04-08 Andrew Cagney <cagney@redhat.com>
1600 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
1601 * gdbarch.h, gdbarch.c: Re-generate.
1602 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
1603 (d10v_gdbarch_init): Do not set saved_pc_after_call.
1604 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
1605 conditionally, use frame_pc_unwind as an alternative. Add
1607 * arch-utils.c (init_frame_pc_default): Only call
1608 SAVED_PC_AFTER_CALL when available.
1610 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
1612 * infrun.c (stop_soon): Rename from stop_soon_quietly.
1613 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
1614 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
1615 (start_remote): Ditto.
1616 (handle_inferior_event): Ditto.
1617 (save_inferior_status): Ditto.
1618 (restore_inferior_status): Ditto.
1619 * infcmd.c (attach_command): Ditto.
1620 * fork-child.c (startup_inferior): Ditto.
1621 * inferior.h (stop_soon): Rename from stop_soon_quietly.
1622 * alpha-tdep.c (heuristic_proc_start): Ditto.
1623 * mips-tdep.c (heuristic_proc_start): Ditto.
1624 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
1625 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
1626 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
1627 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
1628 * remote-vx.c (vx_create_inferior): Ditto.
1630 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
1632 * infrun.c (stop_soon_quietly): Make it an enum, to better
1633 override the default behavior of handle_inferior_event.
1634 (clear_proceed_status): Update uses of stop_soon_quietly to
1635 reflect that it is now an enum.
1636 (start_remote): Ditto.
1637 (handle_inferior_event): Change logic a bit if stop_soon_quietly
1638 is set to handle the new GNU/Linux kernel behavior for
1639 attach/sigstop. Update uses of stop_soon_quietly.
1640 * inferior.h (enum stop_kind): New enum.
1641 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
1642 Reset normal handle_inferior_event behavior, afterwards.
1643 * fork-child.c (startup_inferior): Update.
1644 * alpha-tdep.c (heuristic_proc_start): Update.
1645 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1646 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
1647 * solib-osf.c (osf_solib_create_inferior_hook): Update.
1648 * solib-irix.c (irix_solib_create_inferior_hook): Update.
1649 * remote-vx.c (vx_create_inferior): Update.
1650 * mips-tdep.c (heuristic_proc_start): Update.
1652 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
1654 * disasm.c (dump_insns): Move variables inside loop, or they will
1655 be freed more than once, causing wild memory corruptions.
1656 (gdb_disassembly): Look for the substring "-thread",
1657 instead of "-threads" in the target name, to make sure to find
1658 the 'multi-thread' target. Also, make sure we do the right thing
1659 with the "core" target.
1661 2003-04-07 Kevin Buettner <kevinb@redhat.com>
1663 * mips-tdep.c (mips_print_fp_register): New function, created from
1664 do_fp_register_row(). Registers are now (also) printed as hex.
1665 Only one register is printed per row.
1666 (mips_print_register, do_fp_register_row): Print floating point
1667 registers with mips_print_fp_register().
1669 2003-04-06 Andrew Cagney <cagney@redhat.com>
1671 * valprint.h (inspect_it): Add extern declaration.
1672 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
1673 (selectors_info, classes_info): Ditto.
1674 (find_objc_msgcall): Fix indentation.
1675 (objc_printstr): Delete extern declarations.
1677 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
1679 2003-04-06 Andrew Cagney <cagney@redhat.com>
1681 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
1683 * frame.c (legacy_saved_regs_this_id): Update.
1684 (legacy_get_prev_frame): Update.
1685 * xstormy16-tdep.c: Update comment.
1686 * sparc-tdep.c (sparc_frame_chain): Update comment.
1687 * blockframe.c (legacy_frame_chain_valid): Update.
1689 2003-04-06 Andrew Cagney <cagney@redhat.com>
1691 * valprint.c (val_print_type_code_int): Delete #ifdef
1692 PRINT_TYPELESS_INTEGER code.
1694 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
1695 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
1696 multi-arch definition.
1697 * gdbarch.h: Re-generate.
1699 2003-04-05 Andrew Cagney <cagney@redhat.com>
1701 Eliminate FRAME_FIND_SAVED_REGS.
1702 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
1703 Change FSR parameter to a pointer.
1704 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
1705 Assume FSR parameter is a pointer.
1706 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
1708 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
1709 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
1710 saved_regs a pointer.
1711 (hppa_frame_saved_pc): Ditto.
1712 (find_dummy_frame_regs): Make frame_saved_regs a pointer
1713 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
1715 (restore_pc_queue): Make fsr a pointer.
1716 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
1717 (hppa_frame_chain): Make saved_regs a pointer, call
1718 hppa_frame_init_saved_regs.
1719 * sparc-tdep.c: Include "gdb_assert.h".
1720 (sparc_frame_find_saved_regs): Replace internal_error with
1722 * remote-vxsparc.c (vx_read_register): Delete reference to
1723 FRAME_FIND_SAVED_REGS.
1724 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
1725 * gdbarch.h: Regenerate.
1726 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
1727 (deprecated_get_frame_saved_regs): Delete declaration.
1728 (struct frame_saved_regs): Delete definition.
1729 * frame.c (deprecated_get_frame_saved_regs): Delete function.
1730 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
1731 (hppa_frame_find_saved_regs): Delete declaration.
1732 (FRAME_FIND_SAVED_REGS): Delete macro.
1733 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
1734 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
1735 FRAME_FIND_SAVED_REGS in comment.
1737 2003-04-05 Andrew Cagney <cagney@redhat.com>
1739 * frame.c (frame_func_unwind, get_frame_func): New functions.
1740 * frame.h (get_frame_func, frame_func_unwind): Declare.
1741 (struct frame_info): Add field "prev_func" for caching the
1742 previous frame's function address.
1743 * arm-tdep.c (arm_frameless_function_invocation): Combine
1744 get_pc_function_start and get_frame_pc into get_frame_func.
1745 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
1746 (sh64_nofp_frame_init_saved_regs): Ditto.
1747 * s390-tdep.c (s390_function_start): Ditto.
1748 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
1749 (rs6000_frameless_function_invocation): Ditto.
1750 (rs6000_frame_saved_pc): Ditto.
1751 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
1752 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
1753 * i386-tdep.c (i386_frameless_signal_p): Ditto.
1754 (i386_frame_init_saved_regs): Ditto.
1755 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
1756 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
1757 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
1758 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
1759 * blockframe.c (frameless_look_for_prologue): Ditto.
1761 2003-04-05 Andrew Cagney <cagney@redhat.com>
1763 * frame.c (legacy_get_prev_frame): Link prev to next at the
1764 function start. Update comments.
1766 2003-04-05 Andrew Cagney <cagney@redhat.com>
1768 * frame.c (get_frame_id): Update comment.
1769 (legacy_get_prev_frame): Update comment.
1770 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
1771 * gdbarch.h: Regenerate.
1772 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
1773 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
1775 2003-04-05 Andrew Cagney <cagney@redhat.com>
1777 * stack.c (print_frame_info): Use get_frame_pc.
1779 2003-04-04 Andrew Cagney <cagney@redhat.com>
1781 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
1782 the frame's type from the unwinder.
1783 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
1784 (create_new_frame, legacy_get_prev_frame): When the unwinder's
1785 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
1786 (get_frame_base_address): Use get_frame_type.
1787 (get_frame_locals_address, get_frame_args_address): Ditto.
1788 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
1789 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
1790 (struct frame_info): Add comment explaining why the frame contains
1792 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
1793 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
1794 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
1796 * frame-unwind.h: Include "frame.h".
1797 (struct frame_unwind): Add "type" field.
1798 * Makefile.in (frame_unwind_h): Add $(frame_h).
1800 2003-04-04 Andrew Cagney <cagney@redhat.com>
1802 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
1803 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
1804 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
1806 (d10v_unwind_dummy_id): Use frame_id_build.
1807 * frame.c (find_frame_sal): Use get_frame_pc.
1808 (create_new_frame): Use deprecated_update_frame_pc_hack and
1809 deprecated_update_frame_base_hack.
1810 (create_sentinel_frame): Add comment about ->pc going away.
1811 (get_prev_frame): Add comment about ->pc going away.
1812 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
1813 frame_id_build, deprecated_update_frame_pc_hack and
1814 deprecated_update_frame_base_hack.
1815 (select_frame): Use get_frame_pc.
1816 (legacy_saved_regs_this_id): Use frame_id_build.
1818 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
1820 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
1821 signed integer case.
1822 (classify_argument): Handle enumerations and references.
1824 2003-04-04 Andrew Cagney <cagney@redhat.com>
1826 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
1829 2003-04-01 Adam Fedor <fedor@gnu.org>
1831 * gdb/objc-lang.c (selectors_info): Replace calls to
1832 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
1833 SYMBOL_NATURAL_NAME.
1834 (classes_info, find_methods): Likewise.
1836 2003-04-03 Kevin Buettner <kevinb@redhat.com>
1838 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
1839 ``mach'' to the value determined by bfd_default_set_arch_mach().
1841 2003-04-02 Bob Rossi <bob_rossi@cox.net>
1843 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
1844 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
1845 (mi-cmd-file.o): Update dependencies.
1847 2003-04-01 Kevin Buettner <kevinb@redhat.com>
1849 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
1850 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
1852 2003-04-01 Adam Fedor <fedor@gnu.org>
1854 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
1855 * language.h (struct language_defn): Add la_demangle.
1856 (language_demangle): Declare.
1857 * language.c (language_demangle): New function.
1858 (unk_lang_demangle): Likewise.
1859 (unknown_language_defn, auto_language_defn, local_language_defn):
1860 Add ukn_lang_demangle.
1861 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
1862 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
1863 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
1864 (cplus_language_defn): Add cplus_demangle for la_demangle element.
1865 * jv-lang.c (java_demangle): New function
1866 (java_language_defn): Use it for la_demangle element.
1867 * objc-lang.c (objc_demangle): Add options argument
1868 (objc_language_defn): Use objc_demangle for la_demangle element.
1869 * maint.c (maintenance_demangle): Replace switch with
1870 call to language_demangle.
1871 * utils.c (fprintf_symbol_filtered): Likewise.
1873 2003-04-01 Andrew Cagney <cagney@redhat.com>
1875 * printcmd.c (print_frame_nameless_args): Delete #ifdef
1876 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
1877 PRINT_TYPELESS_INTEGER.
1878 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
1879 PUSH_RETURN_ADDRESS.
1881 2003-04-01 Andrew Cagney <cagney@redhat.com>
1883 * Makefile.in (d10v-tdep.o): Update dependencies.
1884 * d10v-tdep.c: Include "frame-base.h".
1885 (d10v_frame_unwind): Make constant.
1886 (d10v_frame_base_address): New function.
1887 (d10v_frame_base): New variable.
1888 (d10v_gdbarch_init): Set frame_base default.
1889 (struct d10v_unwind_cache): Add the field "prev_sp". Update
1891 (d10v_frame_unwind_cache): Set and use "prev_sp".
1892 (d10v_frame_this_id): Use the previous frame's inner most stack
1893 address and this frame's func address for the frame ID. Use
1894 frame_id_build. Don't analyze beyond the current instruction.
1896 2003-04-01 Andrew Cagney <cagney@redhat.com>
1898 * frame.h (get_frame_locals_address, get_frame_args_address):
1899 Refer to the base address, instead of the address of the first
1902 2003-04-01 Andrew Cagney <cagney@redhat.com>
1904 Add frame debug info addresses:
1905 * frame-base.c: New file.
1906 * frame-base.h: New file.
1907 * frame.h (struct frame_base): Add opaque declaration.
1908 (get_frame_base): Update comment.
1909 (get_frame_base_address): Declare.
1910 (get_frame_locals_address): Declare.
1911 (get_frame_args_address): Declare.
1912 (struct frame_info): Add "base" and "base_cache". Update
1913 comments on the unwinder.
1914 * frame.c: Include "frame-base.h".
1915 (get_frame_locals_address): New function.
1916 (get_frame_base_address): New function.
1917 (get_frame_args_address): New function.
1918 * findvar.c (read_var_value): Use get_frame_locals_address and
1919 get_frame_args_address.
1920 * stack.c (frame_info): Use get_frame_locals_address and
1921 get_frame_args_address.
1922 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
1923 moved to "frame-base.c".
1924 * printcmd.c (print_frame_nameless_args): Ditto.
1925 * symtab.h (address_class): Update comments.
1926 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
1927 get_frame_base_address.
1928 * dwarf2expr.c (execute_stack_op): Ditto.
1929 * Makefile.in (frame_base_h): Define.
1930 (frame.o): Update dependencies.
1931 (frame-base.o): Add dependencies.
1932 (SFILES): Add frame-base.c.
1933 (COMMON_OBS): Add frame-base.o.
1935 2003-04-01 Andrew Cagney <cagney@redhat.com>
1937 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
1938 CALL_DUMMY_LENGTH): Ditto.
1939 * gdbarch.c: Re-generate.
1940 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
1941 (CALL_DUMMY_LENGTH): Delete macro.
1942 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
1943 * arm-tdep.c (arm_gdbarch_init): Ditto.
1944 * avr-tdep.c (avr_gdbarch_init): Ditto.
1945 * cris-tdep.c (cris_gdbarch_init): Ditto.
1946 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1947 * frv-tdep.c (frv_gdbarch_init): Ditto.
1948 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1949 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
1950 * i386-tdep.c (i386_gdbarch_init): Ditto.
1951 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1952 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1953 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1954 * mips-tdep.c (mips_gdbarch_init): Ditto.
1955 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1956 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1957 * s390-tdep.c (s390_gdbarch_init): Ditto.
1958 * sh-tdep.c (sh_gdbarch_init): Ditto.
1959 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1960 * v850-tdep.c (v850_gdbarch_init): Ditto.
1961 * vax-tdep.c (vax_gdbarch_init): Ditto.
1962 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1964 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
1966 * frame.c (get_prev_frame): Disable call to inside_entry_file().
1968 2003-04-01 Andrew Cagney <cagney@redhat.com>
1970 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
1971 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
1972 * gdbarch.h, gdbarch.c: Re-generate.
1973 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
1974 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
1975 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
1976 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
1977 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
1978 * infcmd.c (run_stack_dummy): Simplify assuming
1979 CALL_DUMMY_BREAKPOINT_OFFSET_P.
1980 * infrun.c (handle_inferior_event): Ditto.
1981 * alpha-tdep.c (alpha_gdbarch_init): Do not set
1982 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
1983 * arm-tdep.c (arm_gdbarch_init): Ditto.
1984 * avr-tdep.c (avr_gdbarch_init): Ditto.
1985 * cris-tdep.c (cris_gdbarch_init): Ditto.
1986 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1987 * frv-tdep.c (frv_gdbarch_init): Ditto.
1988 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1989 * i386-tdep.c (i386_gdbarch_init): Ditto.
1990 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1991 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1992 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
1993 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1994 * mips-tdep.c (mips_gdbarch_init): Ditto.
1995 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1996 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1997 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1998 * s390-tdep.c (s390_gdbarch_init): Ditto.
1999 * sh-tdep.c (sh_gdbarch_init): Ditto.
2000 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2001 * v850-tdep.c (v850_gdbarch_init): Ditto.
2002 * vax-tdep.c (vax_gdbarch_init): Ditto.
2003 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
2005 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
2007 * symfile.c (symfile_relocate_debug_section): Update call to
2008 bfd_simple_get_relocated_section_contents.
2010 2003-03-31 Andrew Cagney <cagney@redhat.com>
2012 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
2013 * gdbarch.h, gdbarch.c: Regenerate.
2014 * inferior.h (FIX_CALL_DUMMY): Delete macro.
2015 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
2017 * frame.h (generic_fix_call_dummy): Delete declaration.
2018 * dummy-frame.h: Update comment.
2019 * dummy-frame.c (generic_fix_call_dummy): Delete function.
2020 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2022 * sh-tdep.c (sh_gdbarch_init): Ditto.
2023 * s390-tdep.c (s390_gdbarch_init): Ditto.
2024 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2025 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2026 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2027 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2028 * i386-tdep.c (i386_gdbarch_init): Ditto.
2029 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2030 * frv-tdep.c (frv_gdbarch_init): Ditto.
2031 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2032 * cris-tdep.c (cris_gdbarch_init): Ditto.
2033 * avr-tdep.c (avr_gdbarch_init): Ditto.
2034 * arm-tdep.c (arm_gdbarch_init): Ditto.
2036 2003-03-31 J. Brobecker <brobecker@gnat.com>
2038 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
2039 (INIT_FRAME_AP): Likewise.
2040 (EXTRA_FRAME_INFO): Likewise.
2042 2003-03-31 Andrew Cagney <cagney@redhat.com>
2044 * gdbarch.sh: Include "symfile.h".
2045 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
2046 * gdbarch.h, gdbarch.c: Re-generate.
2047 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
2048 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2049 call_dummy_address, the default is at entry_point_address.
2050 * v850-tdep.c (v850_gdbarch_init): Ditto.
2051 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2052 * sh-tdep.c (sh_gdbarch_init): Ditto.
2053 * s390-tdep.c (s390_gdbarch_init): Ditto.
2054 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2055 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2056 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2057 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2058 * i386-tdep.c (i386_gdbarch_init): Ditto.
2059 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2060 * frv-tdep.c (frv_gdbarch_init): Ditto.
2061 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2062 * cris-tdep.c (cris_gdbarch_init): Ditto.
2063 * arm-tdep.c (arm_gdbarch_init): Ditto.
2065 2003-03-31 Andrew Cagney <cagney@redhat.com>
2067 * gdbarch.sh (CALL_DUMMY_P): Delete.
2068 * gdbarch.h, gdbarch.c: Re-generate.
2069 * inferior.h (CALL_DUMMY_P): Delete macro.
2070 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2071 * vax-tdep.c (vax_gdbarch_init): Update.
2072 * v850-tdep.c (v850_gdbarch_init): Update.
2073 * sparc-tdep.c (sparc_gdbarch_init): Update.
2074 * sh-tdep.c (sh_gdbarch_init): Update.
2075 * s390-tdep.c (s390_gdbarch_init): Update.
2076 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2077 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2078 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2079 * mips-tdep.c (mips_gdbarch_init): Update.
2080 * mcore-tdep.c (mcore_gdbarch_init): Update.
2081 * m68k-tdep.c (m68k_gdbarch_init): Update.
2082 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2083 * ia64-tdep.c (ia64_gdbarch_init): Update.
2084 * i386-tdep.c (i386_gdbarch_init): Update.
2085 * h8300-tdep.c (h8300_gdbarch_init): Update.
2086 * frv-tdep.c (frv_gdbarch_init): Update.
2087 * d10v-tdep.c (d10v_gdbarch_init): Update.
2088 * cris-tdep.c (cris_gdbarch_init): Update.
2089 * breakpoint.c (deprecated_frame_in_dummy): Update.
2090 * avr-tdep.c (avr_gdbarch_init): Update.
2091 * alpha-tdep.c (alpha_gdbarch_init): Update.
2092 * arm-tdep.c (arm_gdbarch_init): Update.
2093 * dummy-frame.c (dummy_frame_this_id): Update comments.
2094 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
2095 * frame.c (legacy_get_prev_frame): Ditto.
2096 * valops.c (call_function_by_hand): Delete function.
2097 (hand_function_call): Rename to call_function_by_hand
2099 2003-03-30 Andrew Cagney <cagney@redhat.com>
2101 2002-11-10 Klee Dienes <kdienes@apple.com>
2102 * value.h (struct value): Update comment.
2104 2003-03-30 Andrew Cagney <cagney@redhat.com>
2106 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
2108 (d10v_gdbarch_init): Do not set fp_regnum.
2110 * frame.c (get_frame_base): Force ID initialization.
2111 (get_prev_frame): Move computation of the frame ID from here ...
2112 (get_frame_id): ... to here.
2113 (legacy_get_prev_frame): Mark the frame ID as valid.
2114 * frame.h (struct frame_info): Add field "id_p".
2116 2003-03-30 Mark Kettenis <kettenis@gnu.org>
2118 * i386-tdep.c (i386_store_struct_return): Removed.
2119 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
2121 2003-03-30 Andrew Cagney <cagney@redhat.com>
2123 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
2124 * gdbarch.h, gdbarch.c: Regenerate.
2125 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
2126 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
2127 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2128 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2129 * i386-tdep.c (i386_gdbarch_init): Ditto.
2130 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2131 * cris-tdep.c (cris_gdbarch_init): Ditto.
2132 * vax-tdep.c (vax_gdbarch_init): Ditto.
2133 * s390-tdep.c (s390_gdbarch_init): Ditto.
2134 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
2135 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2136 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2137 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
2138 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
2139 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
2140 * sparc-tdep.c (sparc_gdbarch_init): Update.
2141 * sh-tdep.c (sh_gdbarch_init): Update.
2142 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2143 * mips-tdep.c (mips_gdbarch_init): Update.
2144 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2145 * ia64-tdep.c (ia64_gdbarch_init): Update.
2146 * frv-tdep.c (frv_gdbarch_init): Update.
2147 * avr-tdep.c (avr_gdbarch_init): Update.
2148 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
2149 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
2150 instead of when push_dummy_call is not available.
2152 2003-03-30 Andrew Cagney <cagney@redhat.com>
2154 * infttrace.c: Include "gdbthread.h".
2155 (parent_attach_all): Fix function signature.
2156 (call_ptrace): Update call.
2157 * Makefile.in (infttrace.o): Update dependencies.
2159 2003-03-30 Andrew Cagney <cagney@redhat.com>
2161 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
2162 PUSH_RETURN_ADDRESS.
2163 * gdbarch.h, gdbarch.c: Regenerate.
2164 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2165 * x86-64-tdep.c (x86_64_init_abi): Update.
2166 * v850-tdep.c (v850_gdbarch_init): Update.
2167 * sparc-tdep.c (sparc_gdbarch_init): Update.
2168 * sh-tdep.c (sh_gdbarch_init): Update.
2169 * s390-tdep.c (s390_gdbarch_init): Update.
2170 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2171 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2172 * mips-tdep.c (mips_gdbarch_init): Update.
2173 * mcore-tdep.c (mcore_gdbarch_init): Update.
2174 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2175 * ia64-tdep.c (ia64_gdbarch_init): Update.
2176 * i386-tdep.c (i386_gdbarch_init): Update.
2177 * h8300-tdep.c (h8300_gdbarch_init): Update.
2178 * frv-tdep.c (frv_gdbarch_init): Update.
2179 * cris-tdep.c (cris_gdbarch_init): Update.
2180 * avr-tdep.c (avr_gdbarch_init): Update.
2181 * arm-tdep.c (arm_gdbarch_init): Update.
2182 * valops.c (hand_function_call): Update.
2184 2003-03-29 Andrew Cagney <cagney@redhat.com>
2186 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
2187 sizeof_call_dummy_words.
2188 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
2190 * gdbarch.h: Regenerate.
2192 2003-03-29 Andrew Cagney <cagney@redhat.com>
2194 * infttrace.h: New file.
2195 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
2196 (hpread_get_textlow): Detect an uninitialized dn_bufp.
2197 (hpread_read_doc_function_type): Detect an initialized type1.
2198 (hpread_quick_traverse): Initialize mod_name_string.
2199 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
2200 (som_solib_get_solib_by_pc): Declare.
2201 (so_lib_thread_start_addr): Declare.
2202 (no_shared_libraries): Declare.
2203 * somread.c (init_import_symbols): Make static. Add forward
2205 * config/pa/nm-hppah.h: Include "infttrace.h" for
2207 (hppa_insert_hw_watchpoint): Declare.
2208 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
2209 * hppah-nat.c: Include "gdb_string.h".
2210 (parent_attach_all): Delete extern declaration, moved to
2212 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
2214 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
2215 * Makefile.in (infttrace_h): Define.
2216 (hpread.o): Update dependencies.
2217 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
2218 * hppa-hpux-tdep.c: Include "gdb_string.h".
2219 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
2220 * infrun.c (handle_inferior_event): Always initialize
2221 stepped_after_stopped_by_watchpoint. Add default and remove
2222 fallthrough in switch statement.
2223 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
2225 (hppa_remove_hw_watchpoint): Ditto.
2227 2003-03-29 Andrew Cagney <cagney@redhat.com>
2229 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
2232 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
2234 * arm-tdep.c (arm_push_arguments): Delete.
2235 (struct stack_item): New type.
2236 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
2237 (arm_store_struct_return): Delte.
2238 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
2239 arm_push_arguments or arm_store_struct_return.
2241 2003-03-28 Andrew Cagney <cagney@redhat.com>
2243 * Makefile.in (d10v-tdep.o): Update dependencies.
2244 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
2245 * d10v-tdep.c: Include "remote.h".
2246 (target_resume_hook): Delete extern declaration.
2247 (target_wait_loop_hook): Ditto.
2248 (tdisassemble_command): Eliminate assignment in "if" conditional.
2249 (d10v_ts2_register_sim_regno): Eliminate call to
2250 legacy_register_sim_regno.
2251 (d10v_ts3_register_sim_regno): Ditto.
2253 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
2255 * thread.c: Reindented.
2257 * linux-proc.c: Ditto.
2259 2003-03-28 Bob Rossi <bob_rossi@cox.net>
2261 * MAINTAINERS (write after approval): Add myself.
2263 2003-03-27 Theodore A. Roth <troth@openavr.org>
2265 * objc-exp.y: Add missing semi-colons.
2267 2003-03-27 Andrew Cagney <cagney@redhat.com>
2269 * regcache.c (write_sp): Delete function and references.
2270 * inferior.h (write_sp): Delete declaration.
2271 * valops.c (hand_function_call): Replace write_sp with
2273 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
2274 (sparc_pop_frame): Ditto.
2276 2003-03-27 Andrew Cagney <cagney@redhat.com>
2278 * NEWS: Mention removal of support for hppa*-*-bsd* and
2279 hppa*-*-osf* natives, and hppa*-*-pro* target.
2280 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
2281 * config/pa/xm-pa.h: Obsolete file.
2282 * config/pa/xm-hppab.h: Obsolete file.
2283 * config/pa/nm-hppab.h: Obsolete file.
2284 * config/pa/tm-hppab.h: Obsolete file.
2285 * config/pa/tm-hppao.h: Obsolete file.
2286 * config/pa/nm-hppao.h: Obsolete file.
2287 * config/pa/tm-pro.h: Obsolete file.
2288 * config/pa/hppaosf.mt: Obsolete file.
2289 * config/pa/hppaosf.mh: Obsolete file.
2290 * config/pa/hppapro.mt: Obsolete file.
2291 * config/pa/hppabsd.mt: Obsolete file.
2292 * config/pa/hppabsd.mh: Obsolete file.
2293 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
2294 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
2297 2003-03-27 Andrew Cagney <cagney@redhat.com>
2299 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
2300 push_arguments. Don't set push_return_address or write_sp.
2301 (d10v_push_dummy_call): Replace d10v_push_arguments.
2302 (d10v_push_return_address, d10v_write_sp): Delete function,
2303 handled by push_dummy_call.
2305 2003-03-26 Andrew Cagney <cagney@redhat.com>
2307 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
2308 (push_dummy_call): New pure multi-arch replacement with gdbarch,
2309 regcache and dummy_addr parameters.
2310 * gdbarch.h, gdbarch.c: Re-generate.
2311 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
2312 available; assume it will handle stack alignment and return
2313 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
2314 legacy_push_arguments.
2315 (legacy_push_arguments): Rename default_push_arguments.
2316 * value.h (legacy_push_arguments): Rename default_push_arguments.
2317 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
2318 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
2319 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
2320 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
2321 * config/i386/tm-symmetry.h: Update.
2322 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2323 * x86-64-tdep.c (x86_64_init_abi): Update.
2324 * v850-tdep.c (v850_gdbarch_init): Update.
2325 * sparc-tdep.c (sparc_gdbarch_init): Update.
2326 * sh-tdep.c (sh_gdbarch_init): Update.
2327 * s390-tdep.c (s390_gdbarch_init): Update.
2328 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2329 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2330 * mips-tdep.c (mips_gdbarch_init): Update.
2331 * mcore-tdep.c (mcore_gdbarch_init): Update.
2332 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2333 * ia64-tdep.c (ia64_gdbarch_init): Update.
2334 * i386-tdep.c (i386_gdbarch_init): Update.
2335 * hppa-tdep.c (hppa_gdbarch_init): Update.
2336 * h8300-tdep.c (h8300_gdbarch_init): Update.
2337 * frv-tdep.c (frv_gdbarch_init): Update.
2338 * d10v-tdep.c (d10v_gdbarch_init): Update.
2339 * cris-tdep.c (cris_gdbarch_init): Update.
2340 * avr-tdep.c (avr_gdbarch_init): Update.
2341 * arm-tdep.c (arm_gdbarch_init): Update.
2342 * arm-linux-tdep.c (arm_linux_init_abi): Update.
2343 * alpha-tdep.c (alpha_gdbarch_init): Update.
2345 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
2347 * signals/signals.c (do_target_signal_to_host): Correct realtime
2350 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
2352 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
2353 (struct sal_chain, map_catch_names): Remove.
2354 (catch_exception_command_1): Don't call
2355 handle_gnu_4_16_catch_command.
2357 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
2359 From Mark Dettinger <dettinge@de.ibm.com>:
2360 * dwarf2cfi.c (read_2u): Increment pointer by two.
2362 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
2364 * signals/signals.c: Fix typos in last change.
2366 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
2368 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
2369 not already defined. Use __SIGRTMIN if available.
2370 (target_signal_from_host): Remove SIGRTMIN block.
2371 (do_target_signal_to_host): Remove SIGRTMIN block; check that
2372 the signal is within the realtime range.
2374 2003-03-25 Adam Fedor <fedor@gnu.org>
2376 * Makefile.in (infrun.o): Add $(language_h)
2377 * infrun.c (handle_inferior_event): Use skip_language_trampoline
2378 for language specific trampolines.
2379 * language.h (struct language_defn): Add skip_trampoline.
2380 (skip_language_trampoline): Declare.
2381 * language.c (unk_lang_trampoline, skip_language_trampoline):
2383 (unknown_language_defn, auto_language_defn, local_language_defn):
2384 Add ukn_lang_trampoline.
2385 * ada-lang.c (ada_language_defn): Add NULL for language
2386 specific skip_trampoline.
2387 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
2388 scm-lang.c: Likewise.
2389 * objc-lang.c (objc_skip_trampoline): New function.
2390 (objc_language_defn): Add objc_skip_trampoline.
2392 2003-03-25 Andrew Cagney <cagney@redhat.com>
2394 * frame.c (get_prev_frame): Delay validating a frame's ID -
2395 non-NULL, didn't go backwards - until an attempt to unwind it to
2398 2003-03-25 Andrew Cagney <cagney@redhat.com>
2400 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
2401 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
2402 * gdbarch.h, gdbarch.c: Re-generate.
2403 * config/sparc/tm-sparc.h
2404 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
2405 * sparc-tdep.c (sparc_gdbarch_init): Set
2406 deprecated_extra_stack_alignment_needed.
2407 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
2408 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
2409 extra_stack_alignment_needed.
2410 * v850-tdep.c (v850_gdbarch_init): Ditto.
2411 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
2412 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2413 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2414 * cris-tdep.c (cris_gdbarch_init): Ditto.
2415 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2416 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2418 2003-03-25 Andrew Cagney <cagney@redhat.com>
2420 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
2421 STORE_STRUCT_RETURN.
2422 * gdbarch.h, gdbarch.c: Regenerate.
2423 * d10v-tdep.c (d10v_store_struct_return): Delete function.
2424 (d10v_push_arguments): Set the struct return register.
2425 (d10v_gdbarch_init): Update.
2426 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2427 * x86-64-tdep.c (x86_64_init_abi): Update.
2428 * vax-tdep.c (vax_gdbarch_init): Update.
2429 * v850-tdep.c (v850_gdbarch_init): Update.
2430 * sparc-tdep.c (sparc_gdbarch_init): Update.
2431 * sh-tdep.c (sh_gdbarch_init): Update.
2432 * s390-tdep.c (s390_gdbarch_init): Update.
2433 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2434 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2435 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2436 * mips-tdep.c (mips_gdbarch_init): Update.
2437 * mcore-tdep.c (mcore_gdbarch_init): Update.
2438 * m68k-tdep.c (m68k_gdbarch_init): Update.
2439 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2440 * ia64-tdep.c (ia64_gdbarch_init): Update.
2441 * i386-tdep.c (i386_gdbarch_init): Update.
2442 * hppa-tdep.c (hppa_gdbarch_init): Update.
2443 * h8300-tdep.c (h8300_gdbarch_init): Update.
2444 * frv-tdep.c (frv_gdbarch_init): Update.
2445 * cris-tdep.c (cris_gdbarch_init): Update.
2446 * avr-tdep.c (avr_gdbarch_init): Update.
2447 * arm-tdep.c (arm_gdbarch_init): Update.
2448 * alpha-tdep.c (alpha_gdbarch_init): Update.
2450 2003-03-25 Andrew Cagney <cagney@redhat.com>
2452 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
2453 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
2454 CALL_DUMMY_STACK_ADJUST with a predicate variable.
2455 * gdbarch.h, gdbarch.c: Regenerate.
2456 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2457 call_dummy_stack_adjust_p.
2458 * vax-tdep.c (vax_gdbarch_init): Ditto.
2459 * v850-tdep.c (v850_gdbarch_init): Ditto.
2460 * sh-tdep.c (sh_gdbarch_init): Ditto.
2461 * s390-tdep.c (s390_gdbarch_init): Ditto.
2462 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2463 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
2464 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2465 * mips-tdep.c (mips_gdbarch_init): Ditto.
2466 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2467 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2468 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2469 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2470 * i386-tdep.c (i386_gdbarch_init): Ditto.
2471 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2472 * frv-tdep.c (frv_gdbarch_init): Ditto.
2473 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2474 * cris-tdep.c (cris_gdbarch_init): Ditto.
2475 * avr-tdep.c (avr_gdbarch_init): Ditto.
2476 * arm-tdep.c (arm_gdbarch_init): Ditto.
2477 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2478 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
2479 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
2480 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
2481 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
2482 call_dummy_stack_adjust_p.
2483 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
2484 (CALL_DUMMY_STACK_ADJUST): Delete macro.
2485 * sparc-tdep.c (sparc32_push_arguments): Update.
2486 * valops.c (hand_function_call): Update.
2488 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
2490 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
2491 set_gdbarch_char_signed.
2493 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
2496 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
2498 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
2500 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
2501 (_initialize_arm_tdep): Don't set tm_print_insn.
2503 2003-03-24 Adam Fedor <fedor@gnu.org>
2505 * Makefile.in (YYOBJ): Add objc-exp.tab.o
2506 * objc-lang.h: Add multiple inclusion protection.
2507 (start_msglist, add_msglist, end_msglist): Additional declarations.
2509 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
2511 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
2512 value was renamed to ARM_FLOAT_SOFT_FPA.
2514 2003-03-23 Andrew Cagney <cagney@redhat.com>
2516 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
2517 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
2518 * gdbarch.h, gdbarch.c: Regenerate.
2519 * valops.c (hand_function_call): Update.
2520 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
2521 * frame.c (legacy_saved_regs_this_id): Update.
2522 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
2523 * dummy-frame.h: Update.
2524 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
2525 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
2526 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
2527 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
2528 * config/m68k/tm-sun3.h: Update.
2529 * blockframe.c (inside_main_func, frame_chain_valid): Update.
2530 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2531 * x86-64-tdep.c (x86_64_init_abi): Update.
2532 * vax-tdep.c (vax_gdbarch_init): Update.
2533 * v850-tdep.c (v850_gdbarch_init): Update.
2534 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
2535 * sh-tdep.c (sh_gdbarch_init): Update.
2536 * s390-tdep.c (s390_gdbarch_init): Update.
2537 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2538 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
2539 (frame_get_saved_regs): Update.
2540 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
2541 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2542 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2543 * mips-tdep.c (mips_gdbarch_init): Update.
2544 * mcore-tdep.c (mcore_gdbarch_init): Update.
2545 * m68k-tdep.c (m68k_gdbarch_init): Update.
2546 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2547 * ia64-tdep.c (ia64_gdbarch_init): Update.
2548 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
2549 * i386-interix-tdep.c (i386_interix_init_abi): Update.
2550 (i386_interix_back_one_frame): Update.
2551 * hppa-tdep.c (hppa_gdbarch_init): Update.
2552 (hppa_init_extra_frame_info): Update.
2553 * h8300-tdep.c (h8300_gdbarch_init): Update.
2554 * frv-tdep.c (frv_gdbarch_init): Update.
2555 * cris-tdep.c (cris_gdbarch_init): Update.
2556 * avr-tdep.c (avr_gdbarch_init): Update.
2557 * arm-tdep.c (arm_gdbarch_init): Update.
2558 * alpha-tdep.c (alpha_gdbarch_init): Update.
2560 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
2562 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
2563 (arm_get_fp_model): Declare.
2564 * arm-tdep.c (fp_model_strings): New string array.
2565 (arm_fp_model, current_fp_model): New variables.
2566 (arm_get_fp_model): New function.
2567 (arm_set_fp): New function.
2568 (set_fp_model_sfunc): New function.
2569 (show_fp_model): New function.
2570 (_initialize_arm_tdep): Add new command to set/show the FPU.
2571 (arm_extract_return_value): Use arm_get_fp_model.
2572 (arm_store_return_value): Likewise.
2573 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
2574 to initialize the floating-point data types.
2575 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
2578 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
2580 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
2581 the current setting of each value.
2582 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
2583 new_set and new_show. Use add_setshow_cmd_full and
2584 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
2585 commands and add new version as subcommands of "set/show arm".
2587 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
2589 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
2590 (set_arm_command, show_arm_command): New functions.
2591 (_initialize_arm_tdep): Add them.
2592 (num_disassembly_options): Renamed from num_flavor_options.
2593 (valid_disassembly_styles): Renamed from valid_flavors.
2594 (disassembly_style): Renamed from disassembly_flavor.
2595 (set_disassembly_style_sfunc): Renamed from
2596 set_disassembly_flavor_sfunc.
2597 (set_disassembly_style): Renamed from set_disassembly_flavor.
2598 (arm_othernames): Updated.
2599 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
2600 command. Add "set/show arm disassembly" commands. Deprecate
2601 "othernames" command.
2603 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
2605 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
2606 (arm-tdep.o): Depend on elf_arm_h.
2608 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
2610 * Makefile.in (coff_internal_h): Define.
2611 (arm-tdep.o): Update dependencies.
2613 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
2615 * arm-tdep.c (prologue_cache): Delete.
2616 (check_prologue_cache, save_prologue_cache): Delete.
2617 (arm_scan_prologue): Don't check or update the prologue_cache.
2618 (arm_gdb_arch_init): Don't initialize it.
2619 (_initialize_arm_tdep): Likewise.
2621 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
2623 * MAINTAINERS (tui): Maintainer of tui code.
2625 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
2627 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
2628 (i386-cygwin-tdep.o): Add dependencies.
2629 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
2630 * i386-cygwin-tdep.c: New file.
2631 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
2632 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
2634 2003-03-20 Andrew Cagney <cagney@redhat.com>
2636 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
2637 (handle_inferior_event): Remove code calling
2638 DYNAMIC_TRAMPOLINE_NEXTPC.
2640 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
2641 already has a full path.
2643 * main.c (gdb_main): Return 1.
2644 (captured_main): Call error to report an invalid interpreter.
2646 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
2647 * alpha-osf1-tdep.c: Include "gdb_string.h".
2649 2003-03-19 J. Brobecker <brobecker@gnat.com>
2651 Continuing work to convert the hppa targets to multiarch partial.
2653 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
2654 method, now that hppa_push_dummy_frame has a conformant prototype.
2655 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
2656 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
2657 for the switch to multiarch partial.
2659 2003-03-19 Kevin Buettner <kevinb@redhat.com>
2661 * mdebugread.c (parse_symbol): For stEnd, we're done counting
2662 when iss is issNull.
2664 2003-03-18 Kevin Buettner <kevinb@redhat.com>
2666 * mips-tdep.c (mips_register_name): Fix fencepost error involving
2667 NUM_REGS bounds check.
2669 2003-03-18 Kevin Buettner <kevinb@redhat.com>
2671 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
2672 * mips-tdep.c (gdb_assert.h): Include.
2673 (mips_generic_reg_names, mips_processor_reg_names): Make static.
2674 (mips_register_name): Handle integer registers explicitly. Add
2676 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
2677 (mips_lsi33k_reg_names): Don't list integer registers; they're
2678 handled by mips_register_name() now.
2679 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
2680 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
2681 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
2682 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
2683 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
2685 2003-03-18 Andrew Cagney <cagney@redhat.com>
2687 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
2689 * gdbtypes.h (print_scalar_formatted): Update declaration.
2690 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
2692 2003-03-18 J. Brobecker <brobecker@gnat.com>
2694 * infrun.c (observer.h): Add #include.
2695 (normal_stop): Add call to observer_notify_normal_stop.
2696 * Makefile.in (infrun.o): Add dependency on observer.h.
2698 2003-03-18 J. Brobecker <brobecker@gnat.com>
2700 Continuing work to convert the hppa targets to multiarch partial.
2701 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
2702 parameter. Reformat comment.
2703 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
2704 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
2705 to match new profile.
2707 2003-03-18 J. Brobecker <brobecker@gnat.com>
2709 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
2710 appear to be working in any case.
2712 2003-03-18 J. Brobecker <brobecker@gnat.com>
2714 * observer.c (observer_test_first_observer): New static variable.
2715 (observer_test_second_observer): Likewise.
2716 (observer_test_third_observer): Likewise.
2717 (observer_test_first_notification_function): New static function.
2718 (observer_test_second_notification_function): Likewise.
2719 (observer_test_third_notification_function): Likewise.
2721 2003-03-17 J. Brobecker <brobecker@gnat.com>
2723 * hppa-tdep.c (gdb_assert.h): Add missing #include.
2724 * somsolib.c (gdb_assert.h): Likewise.
2725 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
2726 (somsolib.o): Likewise.
2728 2003-03-17 Andrew Cagney <cagney@redhat.com>
2730 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
2731 BFD. Simplify setting of di.endian.
2733 2003-03-17 Andrew Cagney <cagney@redhat.com>
2735 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
2736 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
2738 From Elena Zannoni <ezannoni@redhat.com>
2739 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
2740 vector and floating-point parameters.
2741 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
2743 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
2745 2003-03-17 Fernando Nasser <fnasser@redhat.com>
2747 * MAINTAINERS: Remove my name from several maintainership roles.
2749 2003-03-17 Andrew Cagney <cagney@redhat.com>
2751 Fix frame off-by-one bug.
2752 * frame-unwind.h (frame_this_id_ftype): Replace
2753 frame_unwind_id_ftype.
2754 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
2755 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
2756 with "prev_register".
2757 * frame-unwind.c (frame_unwind_find_by_pc): Return
2758 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
2760 * dummy-frame.c (cached_find_dummy_frame): Delete function.
2761 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
2762 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
2763 (dummy_frame_unwind): Update.
2764 * sentinel-frame.c (sentinel_frame_prev_register): Replace
2765 sentinel_frame_register_unwind.
2766 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
2767 (sentinel_frame_unwinder): Update.
2768 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
2769 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
2770 * frame.c (create_sentinel_frame): Update. Initialize
2771 "prologue_cache" instead of "unwind_cache".
2772 (frame_register_unwind): Call this frame's prev_register with the
2773 next frame and this frame's prologue cache.
2774 (get_prev_frame): Simplify. Always call prev frame's this_id with
2775 this frame and prev frame's prologue cache. Document that this
2776 call is shifted one to the left when compared to the
2777 frame_register_unwind call.
2778 (legacy_saved_regs_prev_register): Replace
2779 frame_saved_regs_register_unwind.
2780 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
2781 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
2782 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
2783 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
2784 (d10v_frame_unwind): Update.
2785 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
2786 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
2787 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
2788 "saved_regs" with "this_saved_regs".
2790 2003-03-16 Andrew Cagney <cagney@redhat.com>
2792 * frame.c (frame_pop): Don't call target_store_registers. Fix
2793 problem reported by Mark Kettenis.
2795 2003-03-16 Mark Kettenis <kettenis@gnu.org>
2797 * i386-tdep.c (i386_register_type): Renamed from
2798 i386_register_virtual_type. Adjust function signature.
2799 (i386_gdbarch_init): Set register_type instead of
2800 deprecated_max_register_raw_size,
2801 deprecated_max_register_virtual_size and register_virtual_type.
2803 2003-03-14 Andrew Cagney <cagney@redhat.com>
2805 * frame.c (get_prev_frame): When a legacy frame, always call
2806 legacy_get_prev_frame. Simplify unwind code using assumption that
2807 the unwinder is new.
2808 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
2809 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
2810 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
2812 2003-03-14 Andrew Cagney <cagney@redhat.com>
2814 * frame.c (get_saved_register): Delete function.
2815 * frame.h (get_saved_register): Delete declaration.
2816 * xstormy16-tdep.c: Update comment.
2817 * regcache.h: Update comments.
2818 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
2819 get_saved_register and extract_address, use
2820 frame_read_unsigned_register.
2821 (sparc_frame_saved_pc): Ditto.
2822 (sparc_get_saved_register): Instead of get_saved_register, use
2824 (sparc_pop_frame): Ditto.
2825 * findvar.c: Update comments.
2826 (value_of_register): Call frame_register instead of
2828 (value_from_register): Ditto.
2829 * config/sparc/tm-sparc.h: Update comment.
2830 * breakpoint.c: Update comment.
2832 2003-03-14 Andrew Cagney <cagney@redhat.com>
2834 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
2836 * gdbarch.h, gdbarch.c: Re-generate.
2837 * frame.h: Update comments.
2838 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2839 * x86-64-tdep.c (x86_64_init_abi): Update.
2840 * sparc-tdep.c (sparc_gdbarch_init): Update.
2841 * sh-tdep.c (sh_gdbarch_init): Update.
2842 * mips-tdep.c (mips_gdbarch_init): Update.
2843 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2844 * cris-tdep.c (cris_gdbarch_init): Update.
2845 * ia64-tdep.c (ia64_gdbarch_init): Update.
2846 * frame.c (frame_register): Update.
2847 (get_saved_register): Update.
2848 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
2850 2003-03-13 Andrew Cagney <cagney@redhat.com>
2852 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
2853 * gdbarch.h, gdbarch.c: Regenerate.
2854 * valops.c (hand_function_call): Update comment.
2855 * stack.c (return_command): Update comment.
2856 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
2857 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
2858 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2859 * x86-64-tdep.c (x86_64_init_abi): Update.
2860 * vax-tdep.c (vax_gdbarch_init): Update.
2861 * v850-tdep.c (v850_gdbarch_init): Update.
2862 * sparc-tdep.c (sparc_gdbarch_init): Update.
2863 * sh-tdep.c (sh_gdbarch_init): Update.
2864 * s390-tdep.c (s390_gdbarch_init): Update.
2865 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2866 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2867 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2868 * mips-tdep.c (mips_gdbarch_init): Update.
2869 * mcore-tdep.c (mcore_gdbarch_init): Update.
2870 * m68k-tdep.c (m68k_gdbarch_init): Update.
2871 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2872 * ia64-tdep.c (ia64_gdbarch_init): Update.
2873 * i386-tdep.c (i386_gdbarch_init): Update.
2874 * hppa-tdep.c (hppa_gdbarch_init): Update.
2875 * h8300-tdep.c (h8300_gdbarch_init): Update.
2876 * frv-tdep.c (frv_gdbarch_init): Update.
2877 * cris-tdep.c (cris_gdbarch_init): Update.
2878 * avr-tdep.c (avr_gdbarch_init): Update.
2879 * arm-tdep.c (arm_gdbarch_init): Update.
2880 * alpha-tdep.c (alpha_gdbarch_init): Update.
2882 2003-03-13 Andrew Cagney <cagney@redhat.com>
2884 * frame.c (legacy_frame_p): New function.
2885 (get_prev_frame): Use legacy_frame_p.
2886 * frame.h (legacy_frame_p): Declare.
2888 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
2890 * MAINTAINERS (write after approval): Alphabetically
2893 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
2895 * MAINTAINERS (write after approval): Add myself.
2897 2003-03-12 Andrew Cagney <cagney@redhat.com>
2899 * frame.c (get_prev_frame): Rename the frame parameter to
2901 (get_next_frame, legacy_get_prev_frame): Ditto.
2903 2003-03-12 Andrew Cagney <cagney@redhat.com>
2905 * frame.c (get_current_frame): Check target_has_registers before
2906 checking target_has_stack.
2907 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
2908 instead of deprecated_selected_frame.
2909 * findvar.c (value_of_register): Pass "frame", not
2910 deprecated_selected_frame, to value_of_builtin_reg.
2912 2003-03-12 Andrew Cagney <cagney@redhat.com>
2914 * regcache.c (regcache_cooked_write_signed): New function.
2915 (regcache_cooked_write_unsigned): New function.
2916 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
2917 (regcache_cooked_read_signed): Fix regnum in range assertion.
2918 * regcache.h (regcache_cooked_write_signed): Declare.
2919 (regcache_cooked_write_unsigned): Declare.
2921 2003-03-12 Andrew Cagney <cagney@redhat.com>
2923 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
2924 * gdbarch.h, gdbarch.c: Re-generate.
2925 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2926 * x86-64-tdep.h: Update.
2927 * x86-64-tdep.c (x86_64_init_abi): Update.
2928 * v850-tdep.c (v850_gdbarch_init): Update.
2929 * sparc-tdep.c (sparc_gdbarch_init): Update.
2930 * sh-tdep.c (sh_gdbarch_init): Update.
2931 * s390-tdep.c (s390_gdbarch_init): Update.
2932 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2933 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
2934 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2935 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2936 * mips-tdep.c (mips_gdbarch_init): Update.
2937 * mcore-tdep.c (mcore_gdbarch_init): Update.
2938 * m68k-tdep.c (m68k_gdbarch_init): Update.
2939 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2940 * ia64-tdep.c (ia64_gdbarch_init): Update.
2941 * i386-tdep.c (i386_gdbarch_init): Update.
2942 * i386-interix-tdep.c (i386_interix_init_abi): Update.
2943 * hppa-tdep.c (hppa_gdbarch_init): Update.
2944 * h8300-tdep.c (h8300_gdbarch_init): Update.
2945 * frv-tdep.c (frv_gdbarch_init): Update.
2946 * cris-tdep.c (cris_gdbarch_init): Update.
2947 * avr-tdep.c (avr_gdbarch_init): Update.
2948 * arm-tdep.c (arm_gdbarch_init): Update.
2949 * alpha-tdep.c (alpha_gdbarch_init): Update.
2950 * sh-tdep.c (sh_init_extra_frame_info): Update.
2951 (sh64_init_extra_frame_info): Update.
2952 * ns32knbsd-nat.c (frame_num_args): Update.
2953 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
2954 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
2955 (xstormy16_frame_chain_valid): Update.
2956 * vax-tdep.c (vax_saved_pc_after_call): Update.
2957 * v850-tdep.c (v850_frame_chain): Update.
2958 (v850_pop_frame): Update.
2959 (v850_init_extra_frame_info): Update.
2960 * sparc-tdep.c (setup_arbitrary_frame): Update.
2961 * ns32k-tdep.c (umax_frame_num_args): Update.
2962 * s390-tdep.c (s390_pop_frame_regular): Update.
2963 * mn10300-tdep.c (mn10300_frame_chain): Update.
2964 (mn10300_pop_frame_regular): Update.
2965 (mn10300_init_extra_frame_info): Update.
2966 * mips-tdep.c (mips_init_frame_pc_first): Update.
2967 (mips_frame_chain): Update.
2968 (mips_pop_frame): Update.
2969 * mcore-tdep.c (mcore_frame_chain): Update.
2970 (mcore_pop_frame): Update.
2971 (mcore_init_extra_frame_info): Update.
2972 * arch-utils.c (init_frame_pc_default): Update.
2973 * m68k-tdep.c (isi_frame_num_args): Update.
2974 (delta68_frame_num_args): Update.
2975 (news_frame_num_args): Update.
2976 * ia64-tdep.c (ia64_pop_frame_regular): Update.
2977 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
2978 (alpha_frame_chain): Update.
2979 (alpha_pop_frame): Update.
2980 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
2981 (hppa_init_extra_frame_info): Update.
2982 (hppa_frame_chain): Update.
2983 (hppa_frame_chain_valid): Update.
2984 * cris-tdep.c (cris_init_extra_frame_info): Update.
2985 * avr-tdep.c (avr_init_extra_frame_info): Update.
2986 * arm-tdep.c (arm_frame_chain_valid): Update.
2987 (arm_init_extra_frame_info): Update.
2988 (arm_pop_frame): Update.
2989 * frame.c (frame_pc_unwind): Update.
2990 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
2991 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
2992 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
2993 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
2994 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
2995 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
2997 2003-03-12 Andrew Cagney <cagney@redhat.com>
2999 Eliminate the need for POP_FRAME.
3000 * frame.c (do_frame_unwind_register): New function.
3001 (frame_pop): When no POP_FRAME, pop the frame using register
3002 unwind and a scratch regcache.
3003 (frame_saved_regs_pop): Delete function.
3004 (trad_frame_unwinder): Update.
3005 * d10v-tdep.c (d10v_frame_pop): Delete function.
3006 (d10v_frame_unwind): Update.
3007 * sentinel-frame.c (sentinel_frame_pop): Delete function.
3008 (sentinel_frame_unwinder): Update.
3009 * dummy-frame.c (dummy_frame_pop): Delete function.
3010 (dummy_frame_unwind): Update.
3011 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
3012 (struct frame_unwind): Update.
3014 2003-03-11 Kevin Buettner <kevinb@redhat.com>
3016 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
3017 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
3018 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
3019 Do range checks on register number obtained from debugging info.
3020 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
3021 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
3022 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
3024 (do_fp_register_row): Fix typo which caused double type to be
3025 used when attempting to unpack a float.
3027 2003-03-11 J. Brobecker <brobecker@gnat.com>
3029 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
3031 2003-03-11 Andrew Cagney <cagney@redhat.com>
3033 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
3034 frame. Problem found by Corinna Vinschen.
3036 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
3038 * doublest.c (floatformat_from_length): Accept also
3039 the real size of 'long double' type.
3041 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
3043 From Klee Dienes <kdienes@apple.com>:
3044 * breakpoint.c (bpstat_copy): Copy the command lines as well
3045 as the old value, to match what is freed in bpstat_clear.
3047 2003-03-10 David Carlton <carlton@math.stanford.edu>
3049 * minsyms.c (add_minsym_to_hash_table): Replace
3050 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3051 (compare_minimal_symbols, compact_minimal_symbols)
3052 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
3053 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
3054 of DEPRECATED_SYMBOL_MATCHES_NAME.
3055 (lookup_minimal_symbol_solib_trampoline): Ditto.
3057 2003-03-10 Andrew Cagney <cagney@redhat.com>
3059 * regcache.h (regcache_cooked_read_ftype): Define.
3060 (regcache_save, regcache_restore): Add a cooked_read parameter.
3061 * regcache.c (regcache_save, regcache_restore): Update.
3062 (do_cooked_read): New function.
3063 (regcache_cpy): Pass do_cooked_read to regcache_save and
3066 2003-03-10 Andrew Cagney <cagney@redhat.com>
3068 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
3069 * gdbarch.h, gdbarch.c: Re-generate.
3070 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3071 * x86-64-tdep.h: Update.
3072 * x86-64-tdep.c (x86_64_init_abi): Update.
3073 * v850-tdep.c (v850_gdbarch_init): Update.
3074 * sparc-tdep.c (sparc_gdbarch_init): Update.
3075 * sh-tdep.c (sh_gdbarch_init): Update.
3076 * s390-tdep.c (s390_gdbarch_init): Update.
3077 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3078 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
3079 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3080 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3081 * mips-tdep.c (mips_gdbarch_init): Update.
3082 * mcore-tdep.c (mcore_gdbarch_init): Update.
3083 * m68k-tdep.c (m68k_gdbarch_init): Update.
3084 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3085 * ia64-tdep.c (ia64_gdbarch_init): Update.
3086 * i386-tdep.c (i386_gdbarch_init): Update.
3087 * i386-interix-tdep.c (i386_interix_init_abi): Update.
3088 * hppa-tdep.c (hppa_gdbarch_init): Update.
3089 * h8300-tdep.c (h8300_gdbarch_init): Update.
3090 * frv-tdep.c (frv_gdbarch_init): Update.
3091 * cris-tdep.c (cris_gdbarch_init): Update.
3092 * avr-tdep.c (avr_gdbarch_init): Update.
3093 * arm-tdep.c (arm_gdbarch_init): Update.
3094 * alpha-tdep.c (alpha_gdbarch_init): Update.
3095 * sh-tdep.c (sh_init_extra_frame_info): Update.
3096 (sh64_init_extra_frame_info): Update.
3097 * ns32knbsd-nat.c (frame_num_args): Update.
3098 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
3099 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
3100 (xstormy16_frame_chain_valid): Update.
3101 * vax-tdep.c (vax_saved_pc_after_call): Update.
3102 * v850-tdep.c (v850_frame_chain): Update.
3103 (v850_pop_frame): Update.
3104 (v850_init_extra_frame_info): Update.
3105 * sparc-tdep.c (setup_arbitrary_frame): Update.
3106 * ns32k-tdep.c (umax_frame_num_args): Update.
3107 * s390-tdep.c (s390_pop_frame_regular): Update.
3108 * mn10300-tdep.c (mn10300_frame_chain): Update.
3109 (mn10300_pop_frame_regular): Update.
3110 (mn10300_init_extra_frame_info): Update.
3111 * mips-tdep.c (mips_init_frame_pc_first): Update.
3112 (mips_frame_chain): Update.
3113 (mips_pop_frame): Update.
3114 * mcore-tdep.c (mcore_frame_chain): Update.
3115 (mcore_pop_frame): Update.
3116 (mcore_init_extra_frame_info): Update.
3117 * arch-utils.c (init_frame_pc_default): Update.
3118 * m68k-tdep.c (isi_frame_num_args): Update.
3119 (delta68_frame_num_args): Update.
3120 (news_frame_num_args): Update.
3121 * ia64-tdep.c (ia64_pop_frame_regular): Update.
3122 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
3123 (alpha_frame_chain): Update.
3124 (alpha_pop_frame): Update.
3125 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
3126 (hppa_init_extra_frame_info): Update.
3127 (hppa_frame_chain): Update.
3128 (hppa_frame_chain_valid): Update.
3129 * cris-tdep.c (cris_init_extra_frame_info): Update.
3130 * avr-tdep.c (avr_init_extra_frame_info): Update.
3131 * arm-tdep.c (arm_frame_chain_valid): Update.
3132 (arm_init_extra_frame_info): Update.
3133 (arm_pop_frame): Update.
3134 * frame.c (frame_pc_unwind): Update.
3135 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
3136 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
3137 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
3138 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
3139 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
3140 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
3142 2003-03-10 Andrew Cagney <cagney@redhat.com>
3144 * gdbarch.sh (gdbarch_unwind_pc): New method.
3145 * gdbarch.h, gdbarch.c: Regenerate.
3146 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
3147 but use read_pc and FRAME_SAVED_PC as fall backs.
3148 (frame_saved_regs_pc_unwind): Delete function.
3149 (trad_frame_unwinder): Update.
3150 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
3151 (struct frame_unwind): Update.
3152 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
3153 (dummy_frame_unwind): Update.
3154 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
3155 (sentinel_frame_unwinder): Update.
3156 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
3157 (d10v_frame_unwind): Update.
3158 (d10v_unwind_pc): New function.
3159 (d10v_gdbarch_init): Set unwind_pc.
3161 2003-03-10 Andrew Cagney <cagney@redhat.com>
3163 * gdbarch.h: Re-generate.
3165 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
3167 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
3170 2003-03-08 Mark Kettenis <kettenis@gnu.org>
3172 * gdbarch.sh (save_dummy_frame_tos): Add comment.
3174 2003-03-08 Andrew Cagney <cagney@redhat.com>
3176 * cli-out.c: Update copyright.
3177 (cli_out_data): Define typedef. Use instead of ui_out_data.
3179 2003-03-08 Andrew Cagney <cagney@redhat.com>
3181 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
3184 2003-03-07 Andrew Cagney <cagney@redhat.com>
3186 * gdbarch.sh: Don't generate two macro definitions when an
3187 undefined macro taking no arguments.
3188 * gdbarch.h: Regenerate.
3190 2002-03-07 Michal Ludvig <mludvig@suse.cz>
3192 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
3193 (x86_64_unwind_dummy_id): New functions.
3194 (x86_64_init_abi): Register these two new functions.
3196 2003-03-07 Michal Ludvig <mludvig@suse.cz>
3198 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
3199 (x86_64_skip_prologue): Move prologue detection to
3201 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
3203 2003-03-05 Andrew Cagney <cagney@redhat.com>
3205 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
3206 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
3207 * frame.c (get_prev_frame): Restructure the frame ID unwind code
3208 to use unwind_dummy_id when a dummy frame.
3209 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
3211 * gdbarch.h, gdbarch.c: Regneerate.
3213 2003-03-05 Andrew Cagney <cagney@redhat.com>
3215 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
3216 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
3217 Do not use d10v_read_sp or d10v_read_fp when obtaining register
3220 2003-03-05 Andrew Cagney <cagney@redhat.com>
3222 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
3223 (struct d10v_unwind_cache): Delete field "frameless". Replace
3224 "next_addr" with "sp_offset". Add "r11_offset".
3225 (d10v_frame_unwind_cache): Update.
3226 (prologue_find_regs): Update. When "mv r11, sp", save the
3227 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
3228 RN was saved in r11_offset.
3230 2003-03-05 Andrew Cagney <cagney@redhat.com>
3232 * frame.c (deprecated_update_frame_pc_hack): Also update the the
3233 cached PC value in the next frame.
3235 2003-03-05 Andrew Cagney <cagney@redhat.com>
3237 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
3238 "id_unwind_cache" with "id".
3239 (frame_id_unwind): Delete declaration.
3240 * frame.c (frame_id_unwind): Delete function.
3241 (get_prev_frame): Call the frame id unwind method directly. Store
3242 the returned next frame's ID value in NEXT_FRAME. Note that there
3243 is a problem with the wrong unwind ID being called with the wrong
3246 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
3248 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
3250 2003-03-05 James Ingham <jingham@apple.com>
3251 Daniel Jacobowitz <drow@mvista.com>
3253 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
3254 (auto_cp_abi): New variable.
3255 (current_cp_abi, num_cp_abis): Make static.
3256 (CP_ABI_MAX): Define.
3257 (cp_abis): Turn into an array.
3258 (value_virtual_fn_field): Fix formatting.
3259 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
3261 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
3262 (list_cp_abis, _initialize_cp_abi): New functions.
3263 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
3264 declarations for cp_abis, num_cp_abis, current_cp_abi, and
3265 switch_to_cp_abi. Update prototype for register_cp_abi.
3266 * Makefile.in (cp-abi.o): Update dependencies.
3267 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
3268 instead of switch_to_cp_abi.
3269 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
3271 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
3273 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
3275 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
3277 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
3278 * dwarf2loc.c: Include "regcache.h".
3279 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
3281 * Makefile.in (dwarf2loc.o): Update dependencies.
3283 2003-03-04 Theodore A. Roth <troth@openavr.org>
3285 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
3286 number of io registers reported by remote target is not a multiple of
3289 2003-03-04 David Carlton <carlton@math.stanford.edu>
3291 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
3292 (lookup_symbol_aux_psymtabs): Update call to
3293 lookup_partial_symbol.
3294 (lookup_transparent_type, find_main_psymtab)
3295 (make_symbol_overload_list): Ditto.
3297 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
3299 * MAINTAINERS (Write after approval): Update my email address.
3301 2003-03-03 Andrew Cagney <cagney@redhat.com>
3303 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
3304 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
3305 predicate. Replace MAX_REGISTER_RAW_SIZE.
3306 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
3307 MAX_REGISTER_VIRTUAL_SIZE.
3308 * regcache.c (legacy_max_register_raw_size): New function.
3309 (legacy_max_register_virtual_size): New function.
3310 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
3311 (MAX_REGISTER_RAW_SIZE): Define.
3312 (legacy_max_register_raw_size): Declare.
3313 (legacy_max_register_virtual_size): Declare.
3314 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
3315 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
3316 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
3317 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
3318 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
3319 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
3320 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
3321 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
3322 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
3323 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3324 * vax-tdep.c (vax_gdbarch_init): Update.
3325 * v850-tdep.c (v850_gdbarch_init): Update.
3326 * sparc-tdep.c (sparc_gdbarch_init): Update.
3327 * sh-tdep.c (sh_gdbarch_init): Update.
3328 * s390-tdep.c (s390_gdbarch_init): Update.
3329 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3330 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3331 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3332 * mips-tdep.c (mips_gdbarch_init): Update.
3333 * mcore-tdep.c (mcore_gdbarch_init): Update.
3334 * m68k-tdep.c (m68k_gdbarch_init): Update.
3335 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3336 * ia64-tdep.c (ia64_gdbarch_init): Update.
3337 * i386-tdep.c (i386_gdbarch_init): Update.
3338 * hppa-tdep.c (hppa_gdbarch_init): Update.
3339 * h8300-tdep.c (h8300_gdbarch_init): Update.
3340 * frv-tdep.c (frv_gdbarch_init): Update.
3341 * cris-tdep.c (cris_gdbarch_init): Update.
3342 * avr-tdep.c (avr_gdbarch_init): Update.
3343 * arm-tdep.c (arm_gdbarch_init): Update.
3344 * alpha-tdep.c (alpha_gdbarch_init): Update.
3345 * d10v-tdep.c (d10v_gdbarch_init): Do not set
3346 max_register_raw_size or max_register_virtual_size.
3348 2003-03-03 David Carlton <carlton@math.stanford.edu>
3350 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
3351 SYMBOL_MATCHES_NAME, add comment.
3352 (SYMBOL_MATCHES_NATURAL_NAME): New.
3353 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
3354 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
3355 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
3356 * symtab.c (lookup_partial_symbol): Use
3357 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
3359 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
3360 SYMBOL_MATCHES_NAME.
3363 2003-03-03 David Carlton <carlton@math.stanford.edu>
3365 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
3366 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
3367 by regexp matching against SYMBOL_NATURAL_NAME.
3369 2003-03-03 David Carlton <carlton@math.stanford.edu>
3371 * linespec.c (find_method): Extract code into collect_methods.
3372 (collect_methods): New.
3374 2003-03-02 Mark Kettenis <kettenis@gnu.org>
3376 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
3379 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
3380 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
3382 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
3384 * arch-utils.c (generic_register_byte): Fix to use the loop index
3385 and not regnum when summing the size of all registers up to regnum.
3387 2003-03-01 Andrew Cagney <cagney@redhat.com>
3389 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
3390 FRAME_INIT_SAVED_REGS.
3391 * gdbarch.h, gdbarch.c: Regenerate.
3392 * stack.c (frame_info): Update.
3393 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
3394 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
3395 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
3396 * ns32k-tdep.c (ns32k_pop_frame): Update.
3397 * mips-tdep.c (mips_pop_frame): Update.
3398 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
3399 * ia64-tdep.c (ia64_frame_chain): Update.
3400 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
3401 (ia64_frameless_function_invocation): Update.
3402 (ia64_init_extra_frame_info): Update.
3403 (ia64_pop_frame_regular): Update.
3404 * frame.h (struct frame_info): Update comment.
3405 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
3406 * frame.c (frame_saved_regs_register_unwind): Update.
3407 (frame_saved_regs_register_unwind): Update.
3408 (deprecated_generic_get_saved_register): Update.
3409 * cris-tdep.c: Update comment.
3410 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
3412 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3413 * x86-64-tdep.c (x86_64_init_abi): Update.
3414 * vax-tdep.c (vax_gdbarch_init): Update.
3415 * v850-tdep.c (v850_gdbarch_init): Update.
3416 * sparc-tdep.c (sparc_gdbarch_init): Update.
3417 * sh-tdep.c (sh_gdbarch_init): Update.
3418 * s390-tdep.c (s390_gdbarch_init): Update.
3419 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3420 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
3421 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3422 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3423 * mips-tdep.c (mips_gdbarch_init): Update.
3424 * mcore-tdep.c (mcore_gdbarch_init): Update.
3425 * m68k-tdep.c (m68k_gdbarch_init): Update.
3426 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3427 * ia64-tdep.c (ia64_gdbarch_init): Update.
3428 * i386-tdep.c (i386_gdbarch_init): Update.
3429 * frv-tdep.c (frv_gdbarch_init): Update.
3430 * avr-tdep.c (avr_gdbarch_init): Update.
3431 * arm-tdep.c (arm_gdbarch_init): Update.
3432 * alpha-tdep.c (alpha_gdbarch_init): Update.
3434 2003-03-01 Andrew Cagney <cagney@redhat.com>
3436 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
3437 option enum and switch. When no windows, set the interpreter to
3440 2003-03-01 Andrew Cagney <cagney@redhat.com>
3442 * main.c (captured_main): Replace magic option characters with an
3445 2003-03-01 Andrew Cagney <cagney@redhat.com>
3447 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
3448 INIT_EXTRA_FRAME_INFO.
3449 * gdbarch.h, gdbarch.c: Regenerate.
3450 * arm-tdep.c: Update comments.
3451 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
3452 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
3453 * frame.h, avr-tdep.c: Ditto.
3454 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
3455 (create_new_frame, legacy_get_prev_frame): Ditto.
3456 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
3457 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
3458 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
3459 deprecated_init_extra_frame_info instead of init_extra_frame_info.
3460 * x86-64-tdep.c (x86_64_init_abi): Ditto.
3461 * v850-tdep.c (v850_gdbarch_init): Ditto.
3462 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3463 * sh-tdep.c (sh_gdbarch_init): Ditto.
3464 * s390-tdep.c (s390_gdbarch_init): Ditto.
3465 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
3466 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3467 * mips-tdep.c (mips_gdbarch_init): Ditto.
3468 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3469 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3470 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3471 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
3472 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
3473 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3474 * frv-tdep.c (frv_gdbarch_init): Ditto.
3475 * cris-tdep.c (cris_gdbarch_init): Ditto.
3476 * avr-tdep.c (avr_gdbarch_init): Ditto.
3477 * arm-tdep.c (arm_gdbarch_init): Ditto.
3478 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3479 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3481 2003-03-01 Andrew Cagney <cagney@redhat.com>
3483 * gdbarch.sh (register_type): New function with predicate.
3484 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
3485 * gdbarch.h, gdbarch.c: Re-generate.
3486 * arch-utils.c (generic_register_byte): Use generic_register_size.
3487 (generic_register_size): When available, use
3488 gdbarch_register_type.
3489 * regcache.c (init_regcache_descr): When available, initialize the
3490 register type array using gdbarch_register_type. If the
3491 architecture supplies gdbarch_register_type, do not use the legacy
3493 * d10v-tdep.c (d10v_register_type): Replace
3494 d10v_register_virtual_type.
3495 (d10v_gdbarch_init): Set register_type instead of
3496 register_virtual_type.
3498 2003-03-01 Andrew Cagney <cagney@redhat.com>
3500 * Makefile.in (ax-gdb.o): Update dependencies.
3501 * ax-gdb.c: Include "regcache.h".
3502 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
3503 * findvar.c (value_of_register): Ditto.
3504 * infcmd.c (default_print_registers_info): Ditto.
3506 2003-03-01 Mark Kettenis <kettenis@gnu.org>
3508 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
3509 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
3511 2003-03-01 Mark Kettenis <kettenis@gnu.org>
3513 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
3516 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
3518 * Makefile.in (dwarf2loc.o): Update dependencies.
3519 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
3520 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
3521 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
3522 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
3523 (locexpr_tracepoint_var_ref): New function.
3524 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
3526 2003-02-28 Andrew Cagney <cagney@redhat.com>
3528 * regcache.c (register_size): New function.
3529 * regcache.h (register_size): Declare
3530 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
3531 max_register_size instead of MAX_REGISTER_RAW_SIZE.
3533 2003-02-28 David Carlton <carlton@math.stanford.edu>
3535 * linespec.c (decode_compound): Extract code into find_method.
3538 2003-02-28 J. Brobecker <brobecker@gnat.com>
3540 * Makefile.in: Add rules to build and link in observer.o.
3542 2003-02-27 J. Brobecker <brobecker@gnat.com>
3544 * observer.c: Minor comments edits.
3546 2003-02-27 J. Brobecker <brobecker@gnat.com>
3548 * observer.h, observer.c: New file.
3550 2003-02-27 Andrew Cagney <cagney@redhat.com>
3552 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
3554 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
3556 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
3557 (M6812_OP_STS_EXT): Likewise.
3558 (m6811_prologue): Use the above to recognize prologue.
3559 (m6812_prologue): Likewise.
3561 2003-02-27 David Carlton <carlton@math.stanford.edu>
3563 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
3565 (compare_psymbols): Ditto.
3566 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
3568 2003-02-27 Michael Snyder <msnyder@redhat.com>
3570 * f-lang.c (build_fortran_types): New function.
3571 (_initialize_f_language): Gdbarch-register built-in fortran types.
3572 * doublest.c (extract_floating): Fix warning text.
3574 2003-02-27 Andrew Cagney <cagney@redhat.com>
3576 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
3577 predicate. Replaces PUSH_DUMMY_FRAME.
3578 * gdbarch.h, gdbarch.c: Regnerate.
3579 * valops.c (hand_function_call): Update. Call
3580 generic_push_dummy_frame directly.
3581 * vax-tdep.c (vax_gdbarch_init): Update.
3582 * sparc-tdep.c (sparc_gdbarch_init): Update.
3583 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3584 * m68k-tdep.c (m68k_gdbarch_init): Update.
3585 * hppa-tdep.c (hppa_gdbarch_init): Update.
3586 * alpha-tdep.c (alpha_gdbarch_init): Update.
3587 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
3588 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
3589 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
3590 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
3591 push_dummy_frame to generic_push_dummy_frame.
3592 * v850-tdep.c (v850_gdbarch_init): Ditto.
3593 * sh-tdep.c (sh_gdbarch_init): Ditto.
3594 * s390-tdep.c (s390_gdbarch_init): Ditto.
3595 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3596 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3597 * mips-tdep.c (mips_gdbarch_init): Ditto.
3598 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3599 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3600 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3601 * i386-tdep.c (i386_gdbarch_init): Ditto.
3602 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3603 * frv-tdep.c (frv_gdbarch_init): Ditto.
3604 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3605 * cris-tdep.c (cris_gdbarch_init): Ditto.
3606 * avr-tdep.c (avr_gdbarch_init): Ditto.
3607 * arm-tdep.c (arm_gdbarch_init): Ditto.
3609 2003-02-26 Kevin Buettner <kevinb@redhat.com>
3611 * mips-tdep.c (show_mips_abi): New function.
3612 (_initialize_mips_tdep): Use show_mips_abi() to implement the
3613 command ``show mips abi''.
3615 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
3617 From Elena Zannoni <ezannoni@redhat.com>
3618 * dbxread.c (process_one_symbol): Only record line 0 if one or
3619 more sline entries have been seen for the function.
3621 2003-02-26 Michael Chastain <mec@shout.net>
3623 * configure: Regenerate with autoconf 000227.
3625 2003-02-26 Michael Chastain <mec@shout.net>
3628 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
3629 for old libc5/glibc.
3630 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
3632 2003-02-26 Kris Warkentin <kewarken@qnx.com>
3634 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
3635 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
3637 2003-02-26 Michael Chastain <mec@shout.net>
3639 * configure.in: New variable HAVE_UINTPTR_T.
3640 * configure, config.in: Regenerated.
3642 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
3645 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
3647 2003-02-25 Andrew Cagney <cagney@redhat.com>
3649 * frame.c (get_prev_frame): Add comment on check for
3650 inside_entry_func. Only check for inside_entry_file when not a
3651 dummy and not a sentinel. Check that the new frame is not inner
3654 2003-02-25 Andrew Cagney <cagney@redhat.com>
3656 * frame.c (frame_debug): New variable.
3657 (_initialize_frame): Add "set/show debug frame" command.
3658 (get_prev_frame): When frame_debug, print reason why unwind
3661 2003-02-25 Michael Chastain <mec@shout.net>
3663 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
3664 to avoid uintptr_t definition problems.
3666 2003-02-25 David Carlton <carlton@math.stanford.edu>
3668 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
3669 (SYMBOL_LINKAGE_NAME): Ditto.
3670 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
3671 SYMBOL_LINKAGE_NAME.
3672 (struct general_symbol_info): Expand comment.
3673 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
3674 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
3675 (SYMBOL_MATCHES_REGEXP): Ditto.
3676 * symtab.c (symbol_natural_name): New function.
3677 * objfiles.h: Replace all uses of SYMBOL_NAME by
3678 DEPRECATED_SYMBOL_NAME.
3679 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
3680 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
3681 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
3682 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
3683 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
3684 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
3685 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
3686 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
3687 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
3688 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
3690 * ada-exp.y: Update copyright.
3691 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
3692 * cp-valprint.c: Ditto.
3694 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
3696 * infptrace.c (detach): Do not flag error if ptrace detach fails
3697 and errno is set to ESRCH.
3699 2003-02-24 Andrew Cagney <cagney@redhat.com>
3701 * infptrace.c (udot_info): Change type of udot_off to long. Use
3702 paddr when printing udot_off's value.
3704 2003-02-24 David Carlton <carlton@math.stanford.edu>
3706 * symtab.c (make_symbol_overload_list): Only read in partial
3707 symtabs containing a matching partial symbol.
3709 2003-02-24 David Carlton <carlton@math.stanford.edu>
3711 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
3712 do the comparison, not strcmp.
3713 * symfile.c (compare_psymbols): Ditto.
3714 * defs.h: Declare strcmp_iw_ordered.
3715 * utils.c (strcmp_iw_ordered): New function.
3717 2003-02-24 Jim Blandy <jimb@redhat.com>
3719 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
3720 support, shared libs): Remove my name from here, to better reflect
3723 2003-02-24 Kris Warkentin <kewarken@qnx.com>
3725 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
3726 (target_ops): Add to_have_continuable_watchpoint.
3727 * target.c (update_current_target): Add INHERIT line for
3728 to_have_continuable_watchpoint.
3729 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
3730 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
3731 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
3732 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
3734 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
3736 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
3739 2003-02-24 Kris Warkentin <kewarken@qnx.com>
3741 * solib.c (solib_open): Call target defined search function after
3742 failing with solib-search-path.
3743 * solist.h (target_so_ops): Add find_and_open_solib function hook and
3744 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
3746 2003-02-24 Kris Warkentin <kewarken@qnx.com>
3748 * MAINTAINERS: Add myself to Write After section.
3750 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
3752 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
3754 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
3756 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
3757 (m68hc11_add_reggroups): New function.
3758 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
3759 (m68hc11_gdbarch_init): Install the reggroups.
3760 (_initialize_m68hc11_tdep): Initialize them.
3762 2003-02-21 James E Wilson <wilson@tuliptree.org>
3764 * MAINTAINERS: Update my email address.
3766 2003-02-21 David Carlton <carlton@math.stanford.edu>
3768 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
3770 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
3772 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
3773 * symtab.h: Add opaque declarations of struct axs_value and
3775 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
3776 (struct location_funcs): New type.
3777 (struct symbol): Add "loc" to aux_value.
3778 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
3779 * dwarf2read.c: Include "dwarf2expr.h".
3780 (dwarf2_symbol_mark_computed): New function.
3781 (read_func_scope): Use it.
3782 (var_decode_location): New function.
3783 (new_symbol): Use it.
3784 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
3786 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
3787 (dwarf2expr_h, dwarf2loc_h): New variables.
3788 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
3789 (dwarf2expr.o, dwarf2loc.o): New rules.
3790 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
3791 * buildsym.c (finish_block): Handle LOC_COMPUTED and
3793 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
3794 * m2-exp.y (yylex): Likewise.
3795 * printcmd.c (address_info, print_frame_args): Likewise.
3796 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
3797 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
3798 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
3799 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
3800 * symtab.c (lookup_block_symbol): Likewise.
3802 2003-02-20 Adam Fedor <fedor@gnu.org>
3804 * symtab.h: Remove objc_specific struct
3805 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
3806 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
3807 Have language_objc use cplus_specific struct.
3809 2003-02-20 Tom Tromey <tromey@redhat.com>
3811 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
3812 TYPE_NAME, when printing a String value. PR java/1075.
3814 2003-02-20 Adam Fedor <fedor@gnu.org>
3816 * objc-lang.h (find_methods): Remove declaration.
3817 * objc-lang.c (find_methods): Make static.
3819 2003-02-20 Christopher Faylor <cgf@redhat.com>
3821 * win32-nat.c (get_image_name): Check return value from
3823 (child_xfer_memory): Ditto.
3825 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
3827 * configure.in (TARGET_SYSTEM_ROOT): Set default to
3828 ${exec_prefix}/${target_alias}/sys-root. Match explicit
3829 '${exec_prefix}' (in addition to the expansion thereof) as
3831 * configure: Rebuilt.
3833 2003-02-20 David Carlton <carlton@math.stanford.edu>
3835 * symtab.c (search_symbols): Revert the search_symbols part of my
3836 2002-12-23 patch. Add comment.
3838 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
3840 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
3841 * dbxread.c (elfstab_build_psymtabs): Don't call
3842 install_minimal_symbols.
3843 (stabsect_build_psymtabs): Likewise.
3844 * elfread.c (elf_symfile_read): Call install_minimal_symbols
3846 * somread.c (som_symfile_read): Call install_minimal_symbols
3847 and do_cleanups earlier.
3848 * nlmread.c (nlm_symfile_read): Likewise.
3849 * mdebugread.c (elfmdebug_build_psymtabs): Call
3850 install_minimal_symbols and make appropriate cleanups.
3852 2003-02-20 Kevin Buettner <kevinb@redhat.com>
3854 * solib.c (reload_shared_libraries): New function.
3855 (_initialize_solib): Add callbacks for ``set solib-search-path''
3856 and ``set solib-absolute-prefix''.
3858 2003-02-20 David Carlton <carlton@math.stanford.edu>
3860 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
3862 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
3863 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
3864 * ada-typeprint.c (ada_typedef_print): Ditto.
3865 * ax-gdb.c (gen_var_ref): Ditto.
3866 * breakpoint.c (print_one_breakpoint): Ditto.
3867 * buildsym.c (finish_block): Ditto.
3868 * c-valprint.c (c_val_print): Ditto.
3869 * expprint.c (print_subexp): Ditto.
3870 * findvar.c (locate_var_value): Ditto.
3871 * infcmd.c (jump_command): Ditto.
3872 * linespec.c (decode_line_2, decode_compound): Ditto.
3873 * maint.c (maintenance_translate_address): Ditto.
3874 * objc-lang.c (compare_selectors, compare_classes): Ditto.
3875 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
3877 * p-valprint.c (pascal_val_print): Ditto.
3878 * stabsread.c (define_symbol): Ditto.
3879 * stack.c (print_frame, frame_info, print_block_frame_locals)
3880 (print_frame_arg_vars, return_command): Ditto.
3881 * symfile.c (compare_symbols, compare_psymbols): Ditto.
3882 * symmisc.c (print_symbol): Ditto.
3883 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
3884 (compare_search_syms, print_symbol_info, print_msymbol_info)
3885 (rbreak_command): Ditto.
3886 * tracepoint.c (tracepoints_info): Ditto.
3887 * typeprint.c (typedef_print): Ditto.
3888 * valops.c (value_of_variable, hand_function_call): Ditto.
3889 * cli/cli-cmds.c (edit_command, list_command): Ditto.
3890 * ada-typeprint.c: Update Copyright.
3891 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
3892 * tracepoint.c, cli/cli-cmds.c: Ditto.
3894 2003-02-20 Kevin Buettner <kevinb@redhat.com>
3896 * frame.c (generic_unwind_get_saved_register): Make non-static.
3897 * frame.h (generic_unwind_get_saved_register): Declare.
3898 * mips-tdep.c (read_next_frame_reg): Fetch register from
3899 current regcache when frame is NULL.
3900 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
3902 (mips_get_saved_register): Call generic_unwind_get_saved_register()
3903 instead of frame_register_unwind().
3905 2003-02-20 Andrew Cagney <ac131313@redhat.com>
3907 * remote-sim.c (gdbsim_insert_breakpoint)
3908 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
3911 2003-02-20 Andrew Cagney <ac131313@redhat.com>
3913 * remote.c (_initialize_remote): Add commands "set/show remote
3914 hardware-watchpoint-limit" and "set/show remote
3915 hardware-breakpoint-limit".
3916 (remote_hw_watchpoint_limit): Initialize to -1.
3917 (remote_hw_breakpoint_limit): Ditto.
3918 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
3920 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
3922 * coff-pe-read.c: New file - support reading of minimal symbols from a
3923 portable executable using the export table.
3924 * coff-pe-read.h: New file.
3925 * coffread.c: Include coff-pe-read.h.
3926 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
3927 debugging symbols found.
3928 * Makefile.in (SFILES): Add coff-pe-read.o.
3929 (coff_pe_read_h): Define.
3930 (COMMON_OBS): Add coff-pe-read.o.
3931 (coffread.o): Add coff_pe_read_h dependency.
3932 (coff-pe-read.o): New target.
3934 2003-02-19 David Carlton <carlton@math.stanford.edu>
3936 * Makefile.in (SFILES): Add block.c.
3938 (COMMON_OBS): Add block.o.
3940 (x86-64-tdep.o): Add $(block_h).
3941 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
3942 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
3943 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
3944 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
3945 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
3946 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
3947 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
3948 * value.h: Add opaque declaration for struct block.
3949 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
3950 * ada-lang.h: Ditto.
3951 * x86-64-tdep.c: #include "block.h"
3952 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
3953 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
3954 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
3955 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
3956 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
3957 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
3958 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
3959 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
3960 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
3961 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
3962 * symtab.c (block_function): Ditto.
3963 (contained_in): Ditto.
3964 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
3965 block.h. Add opaque declaration for struct block.
3966 * symtab.h: Move block_function and contained_in declarations to
3967 block.h. Add opaque declarations for struct block, struct
3969 (struct block): Move to block.h.
3970 (struct blockvector): Ditto.
3971 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
3972 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
3973 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
3974 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
3975 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
3977 * block.c: New file.
3978 * block.h: New file.
3980 2003-02-19 Theodore A. Roth <troth@openavr.org>
3982 * avr-tdep.c (avr_extract_return_value): Remove function.
3983 (avr_store_return_value): Remove function.
3984 (avr_extract_struct_value_address): Remove function.
3985 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
3987 2003-02-19 Andrew Cagney <ac131313@redhat.com>
3989 * rs6000-tdep.c: Include "gdb_assert.h".
3990 (registers_e500): Add "acc" and "spefscr".
3991 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
3992 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
3993 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
3995 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
3997 2003-02-18 Keith Seitz <keiths@redhat.com>
3999 * Makefile.in: Add gdbtk-interps.c.
4001 2003-02-18 Kevin Buettner <kevinb@redhat.com>
4003 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
4004 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
4006 2003-02-18 Andrew Cagney <cagney@redhat.com>
4008 * symtab.h (struct objfile): Add opaque declaration.
4010 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
4012 From Jim Ingham <jingham@apple.com>:
4013 * dbxread.c (process_one_symbol): Use last_function_start rather
4014 than function_start_offset to find the real beginning of the
4015 current function. The latter is just the text section offset on
4016 some systems, the former is always the real function start.
4018 2003-02-17 Andrew Cagney <cagney@redhat.com>
4020 * configure.in: Revert ${target} != ${host}.
4022 2003-02-17 Andrew Cagney <ac131313@redhat.com>
4024 * configure.in (Makefile): Use the test ${target} != ${host},
4025 instead of the absence of the "nm.h" file, to determine of the
4026 configuration non-native.
4027 * configure: Regenerate.
4029 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
4031 From Brian Ford <ford@vss.fsi.com>
4033 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
4034 conditionalize tui_active test.
4035 (lookup_cmd_1): Ditto.
4037 2003-02-14 Mark Kettenis <kettenis@gnu.org>
4039 * configure.in: Add check for _etext.
4040 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
4042 * config.in, configure: regenerated.
4044 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
4046 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
4048 2003-02-14 Andrew Cagney <ac131313@redhat.com>
4050 * main.c (tui_version): Delete variable.
4051 (captured_main): When --tui, set interpreter_p to "tui" instead of
4052 enabling tui_version.
4053 * printcmd.c (display_command) [TUI]: Test tui_active instead of
4055 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
4056 * cli/cli-cmds.c (disassemble_command): Ditto.
4057 * defs.h (tui_version): Delete declaration.
4058 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
4059 (tui-interp.o): Add rules.
4060 (SUBDIR_TUI_OBS): Add "tui-interp.o".
4062 2003-02-14 Christopher Faylor <cgf@redhat.com>
4064 * win32-nat.c (register_loaded_dll): Correctly set address range for
4067 2003-02-12 Jason Molenda (jmolenda@apple.com)
4069 * symmisc.c (print_objfile_statistics): Include information about
4070 the number of psymtabs and symtabs in each object file.
4072 2003-02-13 Keith R Seitz <keiths@redhat.com>
4074 * main.h (struct captured_main_args): Add interpreter_p.
4075 * main.c (captured_main): Initialize interpreter_p from context.
4076 * gdb.c (main): Set interpreter_p argument.
4077 * Makefile.in (gdb.o): Add dependency for interps.h.
4079 2003-02-12 Andrew Cagney <ac131313@redhat.com>
4081 * event-top.c (cli_command_loop): Delete declaration.
4082 (_initialize_event_loop): Delete function setting event_loop_hook.
4083 * event-top.h (cli_command_loop): Declare. Update copyright.
4084 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
4085 * interps.c (current_interp_command_loop): When event_loop_p, call
4088 2003-02-12 Andrew Cagney <ac131313@redhat.com>
4090 * interps.h (interp_command_loop_ftype): Change return type to
4093 2003-02-12 Michal Ludvig <mludvig@suse.cz>
4095 * x86-64-tdep.c (x86_64_extract_return_value)
4096 (x86_64_store_return_value): Use regcache instead of regbuf.
4097 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
4098 * x86-64-linux-nat.c (fill_gregset): Use regcache.
4100 2003-02-11 Andrew Cagney <ac131313@redhat.com>
4102 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
4103 * aclocal.m4: Regenerate.
4104 * configure: Regenerate.
4106 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
4107 TCL_LD_SEARCH_FLAGS.
4109 2003-02-10 Michal Ludvig <mludvig@suse.cz>
4111 * dwarf2cfi.c: Reindented.
4113 2003-02-09 Andrew Cagney <ac131313@redhat.com>
4115 * interps.c (clear_interpreter_hooks): Convert function definition
4118 2003-02-07 David Carlton <carlton@math.stanford.edu>
4120 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
4122 2003-02-07 Kevin Buettner <kevinb@redhat.com>
4124 * gdbtypes.h (struct main_type): Move ``length'' field from here...
4125 (struct type): ...to here.
4126 (TYPE_LENGTH): Adjust to reflect different location of ``length''
4128 * gdbtypes.c (make_qualified_type): Set length on newly created type.
4129 (replace_type): Set length on all type variants for a given type.
4131 2003-02-07 Andrew Cagney <ac131313@redhat.com>
4133 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
4135 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
4137 2003-02-06 Andrew Cagney <ac131313@redhat.com>
4139 * Makefile.in (symm-nat.o): Update dependencies.
4140 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
4141 (lynx-nat.o, ia64-linux-nat.): Ditto.
4142 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
4143 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
4144 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
4146 * Makefile.in (inflow_h): Define.
4147 (procfs.o, inflow.o, procfs.o): Update dependencies.
4148 * inftarg.c (child_stop): Delete extern declaration of
4149 inferior_process_group. Include "inflow.h".
4150 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
4151 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
4152 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
4153 (our_process_group, inferior_process_group): Extern declarations.
4155 * procfs.c: Include "gdb_assert.h".
4157 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
4158 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
4159 * jv-typeprint.c (java_type_print_base): Ditto.
4160 * typeprint.c (typedef_print): Eliminate STREQ.
4161 * cli/cli-script.c (define_command, define_command): Ditto.
4162 * main.c (captured_main): Ditto.
4163 * values.c (lookup_internalvar): Ditto.
4164 * utils.c (safe_strerror, parse_escape): Eliminate assignment
4165 within `if' conditional.
4166 * linespec.c (decode_line_2): Ditto.
4167 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
4168 (bfd_openw_with_cleanup): Ditto.
4170 2003-02-07 Mark Kettenis <kettenis@gnu.org>
4172 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
4173 legacy_extract_return_value and store_return_value to
4174 legacy_return_value.
4176 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
4178 * win32-nat.c (get_relocated_section_addrs): New function. Find
4179 section load addresses for symbol handling in relocated DLLs.
4180 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
4182 2003-02-05 Fred Fish <fnf@intrinsity.com>
4184 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
4186 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
4188 (angel_RDI_info): Ditto.
4189 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
4191 (threads_continue_all_with_signals): Ditto.
4193 2003-02-05 Jim Ingham <jingham@apple.com>
4194 Keith Seitz <keiths@redhat.com>
4195 Elena Zannoni <ezannoni@redhat.com>
4196 Andrew Cagney <ac131313@redhat.com>
4198 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
4199 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
4200 (SUBDIR_MI_OBS): Add "mi-interp.o".
4201 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
4202 (SFILES): Add "interps.c".
4203 (COMMON_OBS): Add "interps.o".
4204 (interps_h, mi_main_h): Define.
4205 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
4206 (mi-main.o, main.o, event-top.o): Update dependencies.
4207 * cli/cli-interp.c: New file.
4208 * interps.h, interps.c: New files.
4209 * top.c: (gdb_init): Don't install the default interpreter, handed
4211 * main.c: Include "interps.h".
4212 (interpreter_p): Note that it should malloc'ed.
4213 (captured_command_loop): Call current_interp_command_loop.
4214 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
4215 xfree and xstrdup when updating interpreter_p. Install the
4216 default interpreter. Add hack to stop mi1's copyright notice
4218 * event-top.h (gdb_setup_readline): Declare.
4219 (gdb_disable_readline): Declare.
4220 * event-top.c: Include "interps.h".
4221 (display_gdb_prompt): Call current_interp_display_prompt_p.
4222 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
4223 gdb_stdlog, and gdb_stdtarg.
4224 (_initialize_event_loop): Don't call gdb_setup_readline.
4225 * cli-out.c (cli_out_set_stream): New function.
4226 * cli-out.h (cli_out_set_stream): Declare.
4228 2003-02-06 Mark Kettenis <kettenis@gnu.org>
4230 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
4231 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
4232 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
4233 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
4234 config/i386/i386v42mp.mt: Removed.
4236 2003-02-05 Mark Kettenis <kettenis@gnu.org>
4238 * configure.tgt (*-*-solaris*): Set gdb_osabi to
4241 2003-02-05 Michael Chastain <mec@shout.net>
4243 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
4244 2.12.1 and earlier versions.
4246 2003-02-05 Andrew Cagney <ac131313@redhat.com>
4248 Remove orphaned hosts, targets and files.
4249 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
4250 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
4251 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
4252 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
4253 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
4254 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
4255 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
4256 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
4257 * config/sparc/tm-sp64sim.h: Delete.
4258 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
4260 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
4261 mips*-dec-mach3* targets.
4263 2003-02-04 Michael Chastain <mec@shout.net>
4265 * NEWS: Fix typo: sepcifying -> specifying.
4267 2003-02-04 Michael Chastain <mec@shout.net>
4269 * dwarfread.c: Add documentation on the state of dwarf-1,
4270 looking towards obsoletion.
4272 2003-02-03 Michael Chastain <mec@shout.net>
4274 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
4275 gdb/testsuite/gdb.c++/pr-1023.exp.
4277 2003-02-04 Andrew Cagney <ac131313@redhat.com>
4279 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
4280 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
4282 * utils.c (init_page_info): Delete reference to MPW in comments.
4283 * main.c (captured_main): Delete #ifdef MPW.
4285 2003-02-04 Andrew Cagney <ac131313@redhat.com>
4287 * NEWS: Note that the m32r-*-elf* is obsolete.
4288 * monitor.c (monitor_expect): Obsolete reference to m32r.
4289 * configure.tgt: Mark m32r-*-elf* as obsolete.
4290 * MAINTAINERS: Mark m32k as obsolete.
4291 * m32r-rom.c: Obsolete file.
4292 * config/m32r/m32r.mt: Obsolete file.
4293 * config/m32r/tm-m32r.h: Obsolete file.
4294 * m32r-stub.c: Obsolete file.
4295 * m32r-tdep.c: Obsolete file.
4297 2003-02-04 Andrew Cagney <ac131313@redhat.com>
4299 * NEWS: Mention that the z8k-zilog-none is obsolete.
4300 * MAINTAINERS: Mark z8k as obsolete.
4301 * configure.tgt: Obsolete the z8k-*-coff* target.
4302 * config/z8k/z8k.mt: Obsolete file.
4303 * config/z8k/tm-z8k.h: Obsolete file.
4304 * z8k-tdep.c: Obsolete file.
4306 2003-02-04 Andrew Cagney <ac131313@redhat.com>
4308 * NEWS: Mention that the mn10200-elf is obsolete.
4309 * configure.tgt: Obsolete mn10200-*-* target.
4310 * breakpoint.c (update_breakpoints_after_exec): Update comment to
4311 mention that the mn10200 is obsolete.
4312 * breakpoint.h: Ditto.
4313 * MAINTAINERS: Mark the mn10200-elf as obsolete.
4314 * config/mn10200/mn10200.mt: Obsolete file.
4315 * config/mn10200/tm-mn10200.h: Obsolete file.
4316 * mn10200-tdep.c: Obsolete file.
4318 2003-02-04 Andrew Cagney <ac131313@redhat.com>
4320 * MAINTAINERS: Mark h8500 as obsolete.
4321 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
4322 * findvar.c (value_from_register): Ditto.
4323 * h8500-tdep.c: Mark file as obsolete.
4324 * config/h8500/h8500.mt: Ditto.
4325 * config/h8500/tm-h8500.h: Ditto.
4326 * NEWS: Mention that h8500 is obsolete.
4328 2003-02-04 David Carlton <carlton@math.stanford.edu>
4330 * objfiles.c (allocate_objfile): Always set name. Add comment at
4332 * jv-lang.c (get_dynamics_objfile): Add comment.
4334 2003-02-04 David Carlton <carlton@math.stanford.edu>
4336 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
4337 * printcmd.c (build_address_symbolic): Replace uses of
4338 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
4339 SYMBOL_NAME, and asm_demangle.
4342 2003-02-04 David Carlton <carlton@math.stanford.edu>
4344 * linespec.c (decode_compound): Extract code into
4346 (lookup_prefix_sym): New function.
4348 2003-02-04 David Carlton <carlton@math.stanford.edu>
4350 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
4351 FLOAT_COERCION_BADNESS.
4352 * gdbtypes.c (rank_one_type): Replace all uses of
4353 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
4355 2003-02-04 Jim Blandy <jimb@redhat.com>
4357 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
4358 section, let dwarf_macinfo_section point to it, not
4361 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
4363 Pointed out by Anton Blanchard <anton@samba.org>.
4364 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
4365 (ppc_linux_at_sigtramp_return_path): Use it.
4367 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
4369 * defs.h (streq): Add prototype.
4370 * utils.c (streq): New function.
4372 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
4373 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
4374 * mdebugread.c (new_symbol): Likewise.
4375 * stabsread.c (define_symbol): Likewise.
4376 * coffread.c (process_coff_symbol): Likewise.
4377 * dwarfread.c (new_symbol): Likewise.
4379 * minsyms.c (prim_record_minimal_symbol_and_info): Use
4380 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
4382 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
4383 SYMBOL_INIT_DEMANGLED_NAME.
4384 * objfiles.c: Include "hashtab.h".
4385 (allocate_objfile): Call htab_set_functions_ex for the
4386 demangled_names_hash.
4387 (free_objfile): Call htab_delete for the demangled_names_hash.
4388 * objfiles.h (struct htab): Add declaration.
4389 (struct objfile): Add demangled_names_hash.
4390 * symfile.c: Include "hashtab.h".
4391 (reread_symbols): Call htab_delete for the demangled_names_hash.
4392 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
4393 SYMBOL_NAME in the bcache.
4394 * symtab.c: Include "hashtab.h". Update comments.
4395 (create_demangled_names_hash, symbol_set_names): New functions.
4396 (symbol_find_demangled_name): New function, broken out from
4397 symbol_init_demangled_names.
4398 (symbol_init_demangled_names): Use it.
4399 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
4400 (SYMBOL_SET_NAMES): New macro.
4401 (symbol_set_names): Add prototype.
4403 2003-02-03 Jim Blandy <jimb@redhat.com>
4405 Use a single, consistent representation for an empty minimal
4406 symbol table in an objfile.
4407 * objfiles.c (terminate_minimal_symbol_table): New function.
4408 (allocate_objfile): Call it.
4409 * objfiles.h (terminate_minimal_symbol_table): New declaration.
4410 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
4412 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
4413 objfile has minimal symbols, compare minimal_symbol_count to zero,
4414 instead of comparing msymbols with NULL.
4415 * objfiles.c (have_minimal_symbols): Same.
4416 * solib-sunos.c (solib_add_common_symbols): Call
4417 terminate_minimal_symbol_table.
4418 * symfile.c (reread_symbols): Same.
4420 2003-02-03 Kevin Buettner <kevinb@redhat.com>
4422 * s390-tdep.c (s390_address_class_type_flags)
4423 (s390_address_class_type_flags_to_name)
4424 (s390_address_class_name_to_type_flags): New functions.
4425 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
4426 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
4428 2003-02-03 Michael Snyder <msnyder@redhat.com>
4430 * arm-tdep.c: Fix spell-o in comment.
4432 2003-02-03 Michal Ludvig <mludvig@suse.cz>
4434 * dwarf2cfi.c (pointer_encoding): Added new parameter.
4435 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
4436 error messages to contain BFD filename.
4438 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
4440 Fix PR gdb/742 gdb/743 gdb/877
4441 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
4442 (do_mixed_source_and_assembly): Use
4443 make_cleanup_ui_out_tuple_begin_end and
4444 make_cleanup_ui_out_tuple_begin_end.
4445 (do_mixed_source_and_assembly): Ditto.
4446 * thread.c (do_captured_list_thread_ids): Ditto.
4447 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
4448 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
4449 ui_out_tuple_end): Delete prototypes.
4450 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
4451 ui_out_list_end, ui_out_tuple_end): Delete.
4453 From Kevin Buettner <kevinb@redhat.com>:
4454 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
4455 * ui-out.c (make_cleanup_ui_out_table_begin_end)
4456 (do_cleanup_table_end): New functions.
4457 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
4458 Use cleanups to invoke_ui_out_tuple_end().
4459 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
4460 * cli/cli-setshow.c (cmd_show_list): Use
4461 make_cleanup_ui_out_tuple_begin_end.
4463 2003-02-02 Andrew Cagney <ac131313@redhat.com>
4465 * frame.c (frame_unwind_register): New function.
4466 (frame_unwind_unsigned_register): Use.
4467 (frame_unwind_signed_register): Use.
4468 (frame_read_register): New function.
4469 * frame.h (frame_unwind_register): Declare.
4470 (frame_read_register): Declare.
4472 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
4473 and frame_unwind_register instead of read_memory, write_register
4474 and deprecated_write_register_bytes.
4476 2003-02-02 Andrew Cagney <ac131313@redhat.com>
4478 * frame.h: Note that namelen can be negative.
4479 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
4482 * NEWS: Mention that the d10v's `regs' command is deprecated.
4483 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
4484 (d10v_print_registers_info): New function.
4485 (show_regs): Call d10v_print_registers_info.
4486 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
4488 2003-02-02 Mark Kettenis <kettenis@gnu.org>
4490 * stack.c (print_frame_info): Restore call to annotate_frame_begin
4491 lost in the previous patch.
4493 2003-02-01 Andrew Cagney <ac131313@redhat.com>
4495 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
4496 * stack.c (print_frame_info_base): Output complete FRAME tuple
4497 for synthesized frames.
4499 2003-02-02 Andrew Cagney <ac131313@redhat.com>
4501 * mips-nat.c (zerobuf): Delete.
4502 (fetch_inferior_registers): Alloc local zerobuf.
4503 (fetch_core_registers): Alloc local zerobuf.
4504 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
4505 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
4506 * thread-db.c (thread_db_store_registers): Ditto.
4507 * sh-tdep.c (sh_do_register): Ditto.
4508 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
4509 * remote-sim.c (gdbsim_store_register): Ditto.
4510 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4511 * remote-e7000.c (fetch_regs_from_dump): Ditto.
4512 * monitor.c (monitor_supply_register): Ditto.
4513 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
4514 * mips-nat.c (fetch_inferior_registers): Ditto.
4515 * m68klinux-nat.c (fetch_register): Ditto.
4516 * lynx-nat.c (fetch_inferior_registers): Ditto.
4517 (fetch_inferior_registers): Ditto.
4518 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
4519 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
4520 (hpux_thread_store_registers): Ditto.
4521 * hppah-nat.c (fetch_register): Ditto.
4522 * hppab-nat.c (fetch_register): Ditto.
4523 * hppa-tdep.c (pa_register_look_aside): Ditto.
4524 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
4525 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
4527 2003-02-01 Andrew Cagney <ac131313@redhat.com>
4529 * gdbarch.sh: Explictly specify all method levels. When a
4530 variable with an empty level, provide a non-multi-arch default.
4531 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
4532 * gdbarch.h: Re-generate.
4533 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
4534 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
4536 2003-02-01 Andrew Cagney <ac131313@redhat.com>
4538 * defs.h (host_pointer_to_address): Delete declaration.
4539 (address_to_host_pointer): Delete declaration.
4540 * utils.c (host_pointer_to_address): Delete function.
4541 (address_to_host_pointer): Delete function.
4542 * procfs.c (procfs_address_to_host_pointer): New function.
4543 * procfs.c (proc_set_watchpoint): Use.
4544 (procfs_can_use_hw_breakpoint): Update comments.
4545 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
4546 (som_solib_add): Use.
4547 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
4548 * hppa-tdep.c (unwind_command): Use.
4550 2003-02-01 Andrew Cagney <ac131313@redhat.com>
4552 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
4555 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
4556 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
4557 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
4558 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
4559 (define_symbol): Update.
4560 * symfile.c (generic_load): Remove references to nindy.
4561 * symtab.c: Remove references to nindy.
4563 2003-02-01 Andrew Cagney <ac131313@redhat.com>
4565 * infcmd.c (print_float_info): Delete code conditional on
4567 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
4568 * config/m68k/nm-apollo68b.h: Ditto.
4569 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
4570 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
4571 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
4573 2003-02-01 Mark Kettenis <kettenis@gnu.org>
4575 * config/i386/tm-i386os9k.h: Removed.
4577 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
4578 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
4579 they're identical to i[3456]86-*-sysv* now.
4580 * config/i386/i386v32.mh: Removed.
4581 * config/i386/xm-i386v32.h: Removed.
4582 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
4584 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
4586 * config/i386/i386dgux.mh: Removed.
4587 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
4589 * configure.in: Fix typo.
4590 * configure: Regenerated.
4592 2003-01-31 David Carlton <carlton@math.stanford.edu>
4594 * dwarf2read.c (dwarf2_locate_sections): Set
4595 dwarf_ranges_section.
4597 2003-01-31 Andrew Cagney <ac131313@redhat.com>
4599 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
4600 * utils.c: Update comments documenting legitimate uses of PTR.
4602 * utils.c: Re-indent.
4604 * config/djgpp/fnchange.lst: Delete nindy files.
4605 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
4606 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
4607 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
4608 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
4609 * nindy-share/README, nindy-share/Onindy.c: Delete files.
4610 * nindy-tdep.c, nindy-share/Makefile: Delete files.
4611 * Makefile.in (init.c): Remove nindy references.
4612 (saber_gdb): Delete rule.
4613 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
4614 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
4616 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
4617 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
4618 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
4619 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
4621 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
4622 * saber.suppress: Delete file.
4624 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
4626 * dbxread.c (stabs_data): New static variable.
4627 (fill_symbuf): Support an in-memory buffer for stabs data.
4628 (stabs_seek): New function.
4629 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
4630 (read_ofile_symtab): Use stabs_seek.
4631 (elfstab_build_psymtabs): Take an asection* instead of
4632 an offset and size. Relocate the stabs data if necessary.
4633 Save the section* for dbx_psymtab_to_symtab.
4634 * dwarf2read.c: Add section variables for each debug section.
4635 (dwarf2_locate_sections): Fill them in.
4636 (dwarf2_read_section): Take an asection* argument.
4637 Relocate the section contents if necessary.
4638 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
4639 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
4640 it to dwarf2_read_section.
4641 (dwarf2_build_frame_info): Update callers.
4642 * elfread.c (elf_symfile_read): Update call to
4643 elfstab_build_psymtabs.
4644 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
4645 (DBX_STAB_SECTION): New macro.
4646 * stabsread.h (elfstab_build_psymtabs): Update prototype.
4647 * symfile.c (symfile_dummy_outputs): New function.
4648 (symfile_relocate_debug_section): New function.
4649 * symfile.h (symfile_relocate_debug_section): Add prototype.
4651 2003-01-31 Richard Henderson <rth@redhat.com>
4653 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
4654 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
4655 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
4656 * alpha-tdep.c (alpha_register_name): Add "unique".
4657 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
4658 (ALPHA_UNIQUE_REGNUM): New.
4659 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
4661 2003-01-31 Andrew Cagney <ac131313@redhat.com>
4663 * README: Remove reference to Ericsson 1800 monitor.
4664 * Makefile.in (remote-es.o): Delete rule.
4665 (ALLDEPFILES): Delete remote-es.c.
4666 * remote-es.c: Delete file.
4667 * config/m68k/es1800.mt: Delete file.
4668 * config/djgpp/fnchange.lst: Update.
4669 * configure.tgt: Delete m68*-ericsson-* target.
4671 2003-01-31 Adam Fedor <fedor@gnu.org>
4673 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
4674 Remove duplicate/shadowing variable of same name.
4676 2003-01-30 Jim Blandy <jimb@redhat.com>
4678 * symfile.c (find_separate_debug_file): Assert that the objfile's
4679 directory name we compute ends with a slash, and then assume that
4680 that's so everywhere we use it.
4682 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
4684 * valops.c (value_assign): Flush frame cache after stores to memory
4687 2003-01-30 Andrew Cagney <ac131313@redhat.com>
4689 * Makefile.in (mon960-rom.o): Delete rule.
4690 * mon960-rom.c: Delete file.
4692 2003-01-30 Andrew Cagney <ac131313@redhat.com>
4694 * d10v-tdep.c: Include "frame-unwind.h".
4695 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
4697 (next_addr, uses_frame): Delete.
4698 (struct d10v_unwind_cache): Define.
4699 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
4700 Use info instead of next_addr and uses_frame globals.
4701 (d10v_frame_init_saved_regs): Delete function.
4702 (d10v_init_extra_frame_info): Delete function.
4703 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
4704 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
4705 init_frame_pc or frame_saved_pc.
4706 (d10v_pop_frame): Delete function.
4707 (do_d10v_pop_frame): Delete function.
4708 (d10v_frame_chain): Delete function.
4709 (d10v_frame_chain_valid): Delete function.
4710 (d10v_frame_pc_unwind): New function.
4711 (d10v_frame_id_unwind): New function.
4712 (saved_regs_unwinder): New function.
4713 (d10v_frame_register_unwind): New function.
4714 (d10v_frame_pop): New function.
4715 (d10v_frame_unwind): New variable.
4716 (d10v_frame_p): New function.
4717 (d10v_frame_saved_pc): Delete function.
4718 * Makefile.in (d10v-tdep.o): Update dependencies.
4720 2003-01-30 J. Brobecker <brobecker@gnat.com>
4722 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
4723 causing some regressions due to a change in the default value
4726 2003-01-29 Richard Henderson <rth@redhat.com>
4727 Elena Zannoni <ezannoni@redhat.com>
4728 Daniel Jacobowitz <drow@mvista.com>
4731 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
4733 (RANGES_SECTION): New.
4734 (dwarf_ranges_buffer): New variable.
4735 (struct comp_unit_head): Add member "die".
4736 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
4737 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
4738 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
4739 (dwarf2_locate_sections): Likewise.
4740 (dwarf2_build_psymtabs): Read .debug_ranges.
4741 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
4742 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
4743 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
4744 Look for DW_AT_ranges and return the bounding box.
4746 2003-01-29 Brian Ford <ford@vss.fsi.com>
4748 * win32-nat.c (cygwin_pid): Removed as unused.
4749 (child_attach): Try fall back to Cygwin pid.
4751 2003-01-29 Jim Blandy <jimb@redhat.com>
4753 * objfiles.h (struct objfile): Doc fix.
4755 2003-01-29 Andrew Cagney <ac131313@redhat.com>
4757 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
4758 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
4759 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
4760 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
4761 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
4762 (FRAME_SAVED_PC): Change to a function with predicate.
4763 * gdbarch.h, gdbarch.c: Re-generate.
4765 2003-01-28 Andrew Cagney <ac131313@redhat.com>
4767 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
4769 * complaints.c (complain): Delete function.
4770 * complaints.h (struct deprecated_complaint): Delete definition.
4771 (complain): Delete declaration.
4773 2003-01-28 Kevin Buettner <kevinb@redhat.com>
4775 * mips-tdep.c (mips_init_extra_frame_info): Return early for
4778 2003-01-27 Andrew Cagney <ac131313@redhat.com>
4780 * sentinel-frame.h, sentinel-frame.c: New files.
4781 * Makefile.in (frame.o): Update dependencies.
4782 (SFILES): Add sentinel-frame.c.
4783 (sentinel_frame_h): Define.
4784 (COMMON_OBS): Add sentinel-frame.o.
4785 (sentinel-frame.o): Specify dependencies.
4786 * frame.c: Include "sentinel-frame.h".
4787 (frame_register_unwind): Rewrite assuming that there is always a a
4789 (frame_register, generic_unwind_get_saved_register): Ditto.
4790 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
4791 (create_sentinel_frame, unwind_to_current_frame): New functions.
4792 (get_current_frame): Rewrite using create_sentinel_frame and
4793 unwind_to_current_frame. When possible, always create a frame.
4794 (create_new_frame): Set next to the sentinel frame.
4795 (get_next_frame): Rewrite. Don't go below the level 0 frame.
4796 (deprecated_update_frame_pc_hack): Update the next frame's PC and
4797 ID cache when necessary.
4798 (frame_saved_regs_id_unwind): Use frame_relative_level.
4799 (deprecated_generic_get_saved_register): Use frame_relative_level,
4800 get_frame_saved_regs, get_frame_pc, get_frame_base and
4802 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
4805 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
4807 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
4809 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
4811 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
4812 (maintenance_set_profile_cmd): Use error () instead of warning ().
4814 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
4816 * configure.in: Check that -pg works if using --enable-profiling.
4817 Check for monstartup and _mcleanup regardless of --enable-profiling.
4818 * maint.c: Check for monstartup and _mcleanup before using them.
4819 * config.in: Regenerated.
4820 * configure: Regenerated.
4822 2003-01-24 Nick Clifton <nickc@redhat.com>
4826 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
4828 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
4829 (sh2e_show_regs): New.
4830 (sh_gdbarch_init): Handle bfd_mach_sh2e.
4831 * config/sh/tm-sh.h: Added sh2e to comments.
4833 2003-01-23 Jim Blandy <jimb@redhat.com>
4835 * symfile.c (syms_from_objfile): Don't print the "(no debugging
4836 symbols found)" message here; we haven't checked for a separate
4837 debug info file yet, so we don't know yet.
4838 (symbol_file_add_with_addrs_or_offsets): Print it here, after
4839 we've looked everywhere. Also, there's no need to print a special
4840 message when we're loading the separate debug info file: the one
4841 symbol_file_add prints is fine.
4843 2003-01-23 Alexander Larsson <alexl@redhat.com>
4844 Jim Blandy <jimb@redhat.com>
4846 Add support for executables whose debug info has been separated
4847 out into a separate file, leaving only a link behind.
4848 * objfiles.h (struct objfile): New fields: separate_debug_objfile
4849 and separate_debug_objfile_backlink.
4850 (put_objfile_before): New declaration.
4851 * symfile.c: #include "filenames.h".
4852 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
4853 debug info in a separate file, read that, too. Save the addrs
4854 argument, so we can use it again to read the separated debug info;
4855 syms_from_objfile modifies the table we pass it.
4856 (reread_symbols): After re-reading an objfile, call
4857 reread_separate_symbols to refresh its separate debug info
4858 objfile, if it has one.
4859 (reread_separate_symbols, find_separate_debug_file,
4860 get_debug_link_info, separate_debug_file_exists): New functions.
4861 (debug_file_directory): New global var.
4862 (_initialize_symfile): Initialize debug_file_directory, and
4863 provide the new `set debug-file-directory' command to let the user
4865 * objfiles.c (free_objfile): If this objfile has its debug info in
4866 a separate objfile, free that one too. If this is itself a
4867 separate debug info objfile, clear our parent's backlink.
4868 (put_objfile_before): New function.
4869 * utils.c (gnu_debuglink_crc32): New function.
4870 * defs.h (gnu_debuglink_crc32): New declaration.
4871 * Makefile.in (symfile.o): Note dependency on "filenames.h".
4872 * configure.in: Handle --with-separate-debug-dir config option.
4873 * acinclude.m4 (AC_DEFINE_DIR): New macro.
4874 * acconfig.h (DEBUGDIR): New macro.
4875 * configure, aclocal.m4, config.in: Regenerated.
4877 2003-01-22 Jim Blandy <jimb@redhat.com>
4879 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
4880 like the old symbol_file_add, but taking new arguments: you can
4881 now pass in either a `struct section_addr_info' list to say where
4882 each section is loaded, or a `struct section_offsets' table. Pass
4883 these new arguments through to syms_from_objfile as appropriate.
4884 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
4885 with the appropriate quiescent values for the new arguments.
4887 * symfile.c: #include "gdb_assert.h".
4888 (syms_from_objfile): Add the ability to pass in a section offset
4889 table directly, as an alternative to the section_addr_info table.
4890 Document arguments better.
4891 (symbol_file_add): Pass extra arguments to syms_from_objfile.
4892 * symfile.h (syms_from_objfile): Update declaration.
4893 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
4895 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
4897 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
4899 Original patch by Tom Tromey <tromey@cygnus.com> and
4900 Jason Molenda <jmolenda@apple.com>.
4901 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
4902 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
4903 * NEWS: Mention profiling.
4904 * configure.in (--enable-gdbtk): Fix typo.
4905 (--enable-profiling): New. Set PROFILE_CFLAGS.
4906 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
4908 (profiling_state): New variable.
4909 (mcleanup_wrapper): New function.
4910 (_initialize_maint): Remove NOTYET, fix call to
4911 add_setshow_boolean_cmd for "maint set profile".
4912 * configure: Regenerated.
4914 2003-01-21 Martin M. Hunt <hunt@redhat.com>
4916 * Makefile.in (install-gdbtk): Install PNG images too.
4918 2003-01-21 Andrew Cagney <ac131313@redhat.com>
4920 * exec.c (text_start): Delete global variable.
4921 (exec_file_attach): Make text_start local to the function.
4922 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
4923 * valops.c (hand_function_call): Delete code that handles
4924 BEFORE_TEXT_END and AFTER_TEXT_END.
4925 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
4926 of CALL_DUMMY_LOCATION.
4927 * gdbarch.c: Regenerate.
4928 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
4929 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
4930 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
4931 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
4932 (text_end): Delete extern declaration.
4934 2003-01-21 Andrew Cagney <ac131313@redhat.com>
4936 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
4937 * blockframe.c (backtrace_below_main): Move to "frame.c".
4938 (frame_chain_valid): Delete check for backtrace_below_main.
4939 (_initialize_blockframe): Delete initialization, move ``set
4940 backtrace-below-main'' command to "frame.c".
4941 (do_flush_frames_sfunc): Delete function.
4942 * frame.c: Include "command.h" and "gdbcmd.h".
4943 (frame_type_from_pc): New function.
4944 (create_new_frame): Use frame_type_from_pc.
4945 (legacy_get_prev_frame): New function.
4946 (get_prev_frame): Rewrite. When an old style frame, call
4947 legacy_get_prev_frame. Otherwize, unwind the PC first.
4948 (_initialize_frame): Add ``set backtrace-below-main'' command.
4949 * Makefile.in (frame.o): Update dependencies.
4951 2003-01-19 Andrew Cagney <ac131313@redhat.com>
4953 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
4954 DEPRECATED_REGISTERS_INFO.
4956 2003-01-19 Andrew Cagney <ac131313@redhat.com>
4958 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
4959 Maintainers'. Update `Various Maintainers'.
4961 2003-01-19 Andrew Cagney <ac131313@redhat.com>
4963 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
4964 * gdbarch.sh (POP_FRAME): Change to function with predicate.
4965 Suppress actual parameters when `-'.
4966 * gdbarch.h, gdbarch.c: Regenerate.
4968 2003-01-19 Andrew Cagney <ac131313@redhat.com>
4970 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
4971 code handling dummy frames.
4973 2003-01-19 Andrew Cagney <ac131313@redhat.com>
4975 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
4976 (struct frame_unwind): Add field pop.
4977 * frame.h (frame_pop): Declare.
4978 * frame.c (frame_saved_regs_pop): New function.
4979 (trad_frame_unwinder): Add frame_saved_regs_pop.
4980 (frame_pop): New function.
4981 * dummy-frame.c (dummy_frame_pop): New function.
4982 (discard_innermost_dummy): New function.
4983 (generic_pop_dummy_frame): Use discard_innermost_dummy.
4984 (dummy_frame_unwind): Add dummy_frame_pop.
4985 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
4986 * valops.c (hand_function_call): Ditto.
4987 * stack.c (return_command): Ditto.
4989 2003-01-18 Andrew Cagney <ac131313@redhat.com>
4991 * cris-tdep.c: Fix function declaration indentation.
4992 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
4993 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
4994 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
4995 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
4996 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
4997 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
4999 2003-01-18 Michael Chastain <mec@shout.net>
5001 * README (Unpacking and Installation -- quick overview):
5002 Warn against ".../gdb-5.3/gdb/configure".
5004 2003-01-18 Andrew Cagney <ac131313@redhat.com>
5006 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
5007 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
5008 (struct frame_unwind): Declare opaque.
5009 (dummy_frame_p): Declare function.
5010 * dummy-frame.c (dummy_frame_id_unwind): Make static.
5011 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
5012 * dummy-frame.c: Include "frame-unwind.h".
5013 (dummy_frame_p): New function.
5014 (dummy_frame_unwind): New variable.
5015 * frame.c: Include "frame-unwind.h".
5016 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
5017 to use the new unwind field.
5018 (set_unwind_by_pc): Delete function.
5019 (create_new_frame, get_prev_frame): Set unwind field using
5020 frame_unwind_find_by_pc.
5021 (trad_frame_unwind, trad_frame_unwinder): New variables.
5022 * frame.h (trad_frame_unwind): Declare variable.
5023 (frame_id_unwind_ftype): Delete declaration.
5024 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
5025 (struct frame_unwind): Declare opaque.
5026 (struct frame_info): Replace the fields id_unwind, pc_unwind and
5027 register_unwind with a single unwind pointer.
5028 * frame-unwind.h, frame-unwind.c: New files.
5029 * Makefile.in (SFILES): Add frame-unwind.c.
5030 (frame_unwind_h): Define.
5031 (COMMON_OBS): Add frame-unwind.o.
5032 (frame-unwind.o): Specify dependencies.
5033 (frame.o, dummy-frame.o): Update dependencies.
5035 2003-01-18 Andrew Cagney <ac131313@redhat.com>
5037 * ada-valprint.c: Eliminate PTR.
5038 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
5039 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
5040 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
5041 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
5042 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
5043 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
5044 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
5046 2003-01-17 Andrew Cagney <ac131313@redhat.com>
5048 * main.c (captured_main): Don't use PTR.
5049 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
5050 * gdbtypes.c (lookup_primitive_typename): Ditto.
5051 (lookup_struct_elt_type): Ditto.
5052 * f-valprint.c (info_common_command): Ditto.
5053 (list_all_visible_commons): Ditto.
5054 * jv-typeprint.c (java_type_print_base): Ditto.
5056 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
5057 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
5058 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
5059 i386-interix-nat.c and i386-interix-tdep.c. Rename
5060 m68klinux-nat.c and m68klinux-tdep.c. Rename
5061 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
5062 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
5063 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
5064 * main.c (captured_main): Use xfree, not free.
5066 2003-01-16 Andrew Cagney <ac131313@redhat.com>
5068 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
5069 ID back using a parameter.
5070 * frame.c (frame_id_unwind): Update call.
5071 (frame_saved_regs_id_unwind): Update.
5072 * dummy-frame.c (dummy_frame_id_unwind): Update function.
5073 * dummy-frame.h (struct frame_id): Add opaque declaration.
5074 (dummy_frame_id_unwind): Update declaration.
5076 2003-01-15 Andrew Cagney <ac131313@redhat.com>
5078 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
5080 2003-01-15 Stephen P. Smith <ischis2@cox.net>
5082 * MAINTAINERS (Stephen P. Smith): Updated email address.
5084 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
5087 * breakpoint.c (until_break_command): Add new argument. Use it to
5088 decide whether to stop only at the current frame or not.
5089 * breakpoint.h (until_break_command): Update prototype.
5090 * infcmd.c (until_command): Add new argument to until_break_command
5092 (advance_command): New function.
5093 (_initialize_infcmd): Update help string for 'until' command.
5094 Add new 'advance' command.
5096 2003-01-14 David Carlton <carlton@math.stanford.edu>
5098 * linespec.c (decode_line_1): Normalize comments.
5100 (locate_first_half): Ditto.
5101 (decode_compound): Ditto.
5102 (symtab_from_filename): Ditto.
5103 (decode_all_digits): Ditto.
5104 (decode_dollar): Ditto.
5105 (find_methods): Ditto.
5106 (find_toplevel_char): Ditto.
5108 2003-01-13 Andrew Cagney <ac131313@redhat.com>
5110 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
5111 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
5112 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
5113 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
5114 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
5115 * language.c, language.h, m32r-tdep.c: Update copyright.
5116 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
5117 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
5118 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
5119 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
5120 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
5121 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
5123 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
5125 * stabsread.h (process_later, resolve_cfront_continuation):
5127 Update copyright years.
5128 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
5129 Update copyright year.
5130 * dbxread.c(struct cont_elem): Obsolete.
5131 (process_later, process_now): Obsolete functions.
5132 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
5133 Update copyright year.
5134 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
5135 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
5136 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
5137 (parse_partial_symbols): Obsolete cfront support.
5139 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
5141 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
5142 read_cfront_baseclasses, read_cfront_member_functions,
5143 resolve_cfront_continuation,read_cfront_static_fields,
5144 copy_cfront_struct_fields): Obsolete functions.
5145 (define_symbol, read_one_struct_field): Obsolete cfront support.
5146 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
5147 Update Copyright year.
5149 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
5151 * stack.c (print_frame_info, print_stack_frame_base_stub,
5152 print_stack_frame_base, show_and_print_stack_frame_stub,
5153 show_and_print_stack_frame, print_only_stack_frame_stub,
5154 print_only_stack_frame): Delete functions.
5155 (print_stack_frame_stub): Call print_frame_info instead of
5156 print_frame_info_base.
5157 (print_frame_info_base): Rename to print_frame_info.
5158 (backtrace_command_1): Call print_frame_info, instead of
5159 print_frame_info_base.
5160 (current_frame_command): Call print_stack_frame, instead of
5161 print_only_stack_frame.
5162 (frame_command): Call print_stack_frame, instead of
5163 show_and_print_stack_frame.
5164 (up_command): Ditto.
5165 (down_command): Ditto.
5166 * frame.h (print_only_stack_frame): Delete prototype.
5167 * infrun.c (normal_stop): Call print_stack_frame, instead of
5168 show_and_print_stack_frame.
5169 * thread.c (info_threads_command): Call print_stack_frame, instead
5170 of print_only_stack_frame.
5172 2003-01-13 Andrew Cagney <ac131313@redhat.com>
5174 * README (Graphical interface to GDB): Update URL. Point at
5177 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
5180 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
5182 * symtab.c (find_pc_sect_line): Don't consider end-of-function
5185 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
5187 * thread-db.c (attach_thread): Prototype.
5188 (struct private_thread_info): Remove lwpid. Add thread handle (th),
5189 thread information (ti), and valid flags (th_valid, ti_valid).
5190 (attach_thread): Move target_pid_to_str call to after the thread
5191 is added to GDB's list. Initialize the cache.
5192 (thread_get_info_callback, thread_db_map_id2thr)
5193 (thread_db_get_info): New functions.
5194 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
5195 (thread_db_store_registers, thread_db_thread_alive)
5196 (thread_db_get_thread_local_address): Use them.
5197 (thread_db_pid_to_str): Likewise. Return "Missing" instead
5198 of calling error() for threads in unknown state.
5200 (clear_lwpid_callback): New function.
5201 (thread_db_resume): Use it to clear the cache.
5203 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
5205 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
5206 (resume_callback): Remove dead code.
5208 2003-01-13 Andrew Cagney <ac131313@redhat.com>
5210 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
5212 * gdbarch.h, gdbarch.c: Regenerate.
5213 * stack.c (frame_info): Only initialize the saved registers when
5214 FRAME_INIT_SAVED_REGS_P.
5215 * frame.c (frame_saved_regs_register_unwind): Assert
5216 FRAME_INIT_SAVED_REGS_P.
5217 (deprecated_generic_get_saved_register): Ditto.
5219 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
5221 * source.c (openp): Squelch warning about "filename".
5223 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
5225 * source.c (openp): If the file does not exist don't necessarily
5228 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
5231 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
5232 (integer_types_same_name_p): New function.
5233 (rank_one_type): Use it.
5234 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
5236 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
5238 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
5240 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
5241 * configure.in: Add --with-sysroot.
5242 * configure: Regenerated.
5243 * main.c (gdb_sysroot): New variable.
5244 (captured_main): Initialize gdb_sysroot.
5245 * defs.h (gdb_sysroot): New extern declaration.
5246 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
5248 2003-01-12 Michael Chastain <mec@shout.net>
5250 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
5252 2003-01-12 Michael Chastain <mec@shout.net>
5254 * top.c (print_gdb_version): Bump copyright year to 2003.
5256 2003-01-12 David Carlton <carlton@bactrian.org>
5258 * linespec.c (symtab_from_filename): Rename variable 's' to
5261 2003-01-12 Andrew Cagney <ac131313@redhat.com>
5263 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
5265 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
5267 2003-01-12 Andrew Cagney <ac131313@redhat.com>
5269 * d10v-tdep.c: Include "gdb_assert.h".
5270 (d10v_store_return_value): Rewrite to match current interface.
5271 (d10v_extract_struct_value_address): Ditto.
5272 (d10v_extract_return_value): Ditto.
5273 (d10v_gdbarch_init): Set store_restore_value,
5274 extract_struct_value_address and extract_return_value.
5276 2003-01-12 J. Brobecker <brobecker@gnat.com>
5278 * hpread.c (set_namestring): New procedure replacing the
5279 SET_NAMESTRING macro.
5280 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
5281 by calls to set_namestring.
5283 2003-01-11 J. Brobecker <brobecker@gnat.com>
5285 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
5286 a compilation warning.
5287 (hpread_process_one_debug_symbol): Likewise.
5289 2003-01-10 David Carlton <carlton@math.stanford.edu>
5291 * linespec.c (decode_line_1): Rename variable 's' to
5293 (decode_all_digits): Rename argument 's' to 'file_symtab'.
5294 (decode_dollar): Ditto.
5295 (decode_variable): Ditto.
5296 (symbol_found): Ditto.
5298 2003-01-09 Michael Chastain <mec@shout.net>
5300 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
5302 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
5304 * win32-nat.c (set_process_privilege): New function.
5305 (child_attach): Call set_process_privilege() to enable the
5306 SE_DEBUG_NAME user privilege if available in process token.
5308 2003-01-10 J. Brobecker <brobecker@gnat.com>
5310 * hpread.c (hpread_process_one_debug_symbol): Fix a small
5311 compilation error in the previous revision.
5313 2003-01-09 David Carlton <carlton@math.stanford.edu>
5315 * linespec.c: Update copyright.
5317 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
5319 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
5321 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
5323 2003-01-09 Andrew Cagney <ac131313@redhat.com>
5325 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
5327 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
5328 (frame_saved_regs_zalloc): Update.
5329 (frame_saved_regs_register_unwind): Update.
5330 (create_new_frame): Update.
5331 (get_prev_frame): Update.
5332 (frame_extra_info_zalloc): Update.
5333 (deprecated_get_frame_saved_regs): Update.
5334 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
5335 * cris-tdep.c: Update comment.
5337 * somsolib.h: Fix function indentation.
5338 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
5339 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
5340 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
5341 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
5342 * somsolib.c, inftarg.c: Remove assignment in if conditional.
5344 * infrun.c (follow_fork): Use ISO C definition.
5345 * expprint.c (print_subexp): Use xfree instead of free.
5346 * charset.c: Include "gdb_string.h" instead of <string.h>.
5347 (register_iconv_charsets): Use ISO C definition.
5348 (host_charset, target_charset): Ditto.
5349 * Makefile.in (charset.o): Update dependencies.
5350 (mi-cmd-env.o): Update dependencies.
5352 2003-01-08 Andrew Cagney <cagney@redhat.com>
5354 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
5357 2003-01-08 Andrew Cagney <ac131313@redhat.com>
5359 * gdb_mbuild.sh: Add --keep option. When specified, keep the
5360 build directories. Save edited gdb output in Mbuild.log. If a
5361 build fails, remove any final GDB executable.
5363 2003-01-08 Andrew Cagney <ac131313@redhat.com>
5365 * gdb_mbuild.sh: Edit the output of `maint print architecture'
5366 replacing hex constants with function names and stripping leading
5367 file name directory prefixes.
5369 2003-01-08 Andrew Cagney <cagney@redhat.com>
5371 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
5374 2003-01-08 David Carlton <carlton@math.stanford.edu>
5376 * linespec.c (decode_line_1): Move code into decode_variable.
5377 (decode_variable): New function.
5379 2003-01-08 Andrew Cagney <ac131313@redhat.com>
5381 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
5383 2003-01-08 Andrew Cagney <cagney@redhat.com>
5385 * cris-tdep.c (cris_frame_init_saved_regs): Use
5386 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
5388 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
5389 (sh64_nofp_frame_init_saved_regs): Ditto.
5390 (sh_fp_frame_init_saved_regs): Ditto.
5391 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
5392 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
5393 * mcore-tdep.c (analyze_dummy_frame): Ditto.
5394 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
5396 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
5398 * minsyms.c (lookup_minimal_symbol): Update comment.
5399 (lookup_minimal_symbol_text): Update comment. Use the hash table.
5400 (lookup_minimal_symbol_solib_trampoline): Likewise.
5402 2003-01-08 Andrew Cagney <cagney@redhat.com>
5404 * d10v-tdep.c (d10v_init_extra_frame_info): Use
5405 frame_relative_level.
5407 * alpha-tdep.c: Use get_frame_extra_info.
5408 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
5409 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
5410 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
5411 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
5413 * alpha-tdep.c: Use get_next_frame.
5414 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
5415 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
5416 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
5417 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
5418 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
5419 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
5420 * xstormy16-tdep.c: Ditto.
5422 2003-01-07 Andrew Cagney <cagney@redhat.com>
5424 * alpha-tdep.c: Use get_frame_base.
5425 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
5426 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
5427 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
5428 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
5429 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
5430 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
5431 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
5432 * config/sparc/tm-sparc.h: Ditto.
5434 2003-01-07 Andrew Cagney <cagney@redhat.com>
5436 * frame.c (deprecated_get_frame_context): New function.
5437 (deprecated_set_frame_context): New function.
5438 * frame.h (deprecated_get_frame_context): Declare.
5439 (deprecated_set_frame_context): Declare.
5440 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
5441 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
5443 2003-01-07 Andrew Cagney <cagney@redhat.com>
5445 * frame.c (deprecated_set_frame_next_hack): New function.
5446 (deprecated_set_frame_prev_hack): New function.
5447 * frame.h (deprecated_set_frame_next_hack): Declare.
5448 (deprecated_set_frame_prev_hack): Declare.
5449 * mcore-tdep.c (analyze_dummy_frame): Use
5450 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
5451 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
5453 2003-01-07 David Carlton <carlton@math.stanford.edu>
5455 * linespec.c (decode_line_1): Move code into decode_dollar.
5456 (decode_dollar): New function.
5458 2003-01-07 Andrew Cagney <cagney@redhat.com>
5460 * arm-tdep.c (arm_init_extra_frame_info): Use
5461 deprecated_update_frame_base_hack.
5462 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
5463 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
5464 (fix_frame_pointer): Ditto.
5465 (mn10300_analyze_prologue): Ditto.
5467 2003-01-07 Andrew Cagney <cagney@redhat.com>
5469 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
5470 extra_info using frame_extra_info_zalloc.
5471 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5472 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
5473 (sh64_init_extra_frame_info): Ditto.
5474 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
5475 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
5476 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
5477 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
5478 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
5479 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
5480 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
5481 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
5482 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
5483 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
5484 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5485 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
5487 * mn10300-tdep.c (analyze_dummy_frame): Use
5488 deprecated_set_frame_extra_info_hack.
5489 * mcore-tdep.c (analyze_dummy_frame): Ditto.
5491 2003-01-07 J. Brobecker <brobecker@gnat.com>
5493 * mdebugread.c (parse_symbol): Skip stProc entries which storage
5494 class is not scText. These do not define "real" procedures.
5495 (parse_partial_symbols): Likewise.
5497 2003-01-06 Michael Snyder <msnyder@redhat.com>
5499 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
5501 2003-01-06 Andrew Cagney <ac131313@redhat.com>
5503 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
5504 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
5505 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
5506 deprecated_frame_xmalloc_with_cleanup.
5507 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
5508 deprecated_frame_xmalloc.
5509 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
5510 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
5512 2003-01-06 Andrew Cagney <cagney@redhat.com>
5514 * x86-64-linux-tdep.c: Include "osabi.h".
5515 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
5517 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
5519 2003-01-06 Andrew Cagney <cagney@redhat.com>
5521 * MAINTAINERS (Target Instruction Set Architectures): Update
5522 arm-elf. Can be built with -Werror, has been multiarched.
5524 * value.h (unpack_long): Make buffer parameter constant.
5525 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
5526 * scm-lang.h (scm_parse): Ditto.
5527 * defs.h (extract_typed_address, extract_address): Ditto.
5528 (extract_long_unsigned_integer): Ditto.
5529 * inferior.h (unsigned_pointer_to_address): Ditto.
5530 (signed_pointer_to_address): Ditto.
5531 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
5532 * gdbarch.h, gdbarch.c: Regenerate.
5533 * findvar.c (extract_long_unsigned_integer): Update.
5534 (extract_address): Update.
5535 (extract_typed_address): Update.
5536 (unsigned_pointer_to_address): Update.
5537 * values.c (unpack_long): Update.
5538 (unpack_double): Update.
5539 (unpack_pointer): Update.
5540 (unpack_field_as_long): Update.
5541 * d10v-tdep.c (d10v_pointer_to_address): Update.
5542 * avr-tdep.c (avr_pointer_to_address): Update.
5543 * scm-lang.c (scm_unpack): Update.
5544 * findvar.c (signed_pointer_to_address): Update.
5546 2003-01-06 Michal Ludvig <mludvig@suse.cz>
5548 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
5549 since it is in i386-tdep.c.
5551 2003-01-06 J. Brobecker <brobecker@gnat.com>
5553 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
5554 failure introduced in the previous change.
5556 2003-01-05 Michael Chastain <mec@shout.net>
5558 * README: Remove references to deleted remote-*.c files:
5559 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
5560 remote-nrom.c, remote-os9k.c, remote-udi.c.
5562 2003-01-05 Mark Kettenis <kettenis@gnu.org>
5564 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
5565 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
5566 i386_get_longjmp_target.
5568 2003-01-05 Andrew Cagney <ac131313@redhat.com>
5570 * arm-tdep.c (prologue_cache): Change to a pointer.
5571 (_initialize_arm_tdep): Allocate prologue_cache.
5572 (check_prologue_cache): Update.
5573 (save_prologue_cache): Update.
5574 (arm_gdbarch_init): Update.
5576 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
5578 * stabsread.c (update_method_name_from_physname): Call complaint()
5581 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
5583 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
5584 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
5585 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
5587 * blockframe.c: Include "gdbcmd.h" and "command.h".
5588 (backtrace_below_main): New variable.
5589 (file_frame_chain_valid, func_frame_chain_valid)
5590 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
5591 (generic_func_frame_chain_valid): Remove functions.
5592 (frame_chain_valid, do_flush_frames_sfunc): New functions.
5593 (_initialize_blockframe): New function.
5594 * Makefile.in (blockframe.o): Update dependencies.
5595 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
5596 comment. Call frame_chain_valid ().
5597 * frame.h: Remove old prototypes. Add prototype for
5598 frame_chain_valid and update comments to match.
5599 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
5601 * gdbarch.h: Regenerated.
5602 * gdbarch.c: Regenerated.
5604 * alpha-tdep.c (alpha_gdbarch_init): Don't call
5605 set_gdbarch_frame_chain_valid.
5606 * avr-tdep.c (avr_gdbarch_init): Likewise.
5607 * cris-tdep.c (cris_gdbarch_init): Likewise.
5608 * frv-tdep.c (frv_gdbarch_init): Likewise.
5609 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
5610 * i386-tdep.c (i386_svr4_init_abi): Likewise.
5611 (i386_nw_init_abi): Likewise.
5612 (i386_gdbarch_init): Likewise.
5613 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
5614 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
5615 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
5616 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
5617 * mips-tdep.c (mips_gdbarch_init): Likewise.
5618 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
5619 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
5620 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5621 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5622 * s390-tdep.c (s390_gdbarch_init): Likewise.
5623 * sh-tdep.c (sh_gdbarch_init): Likewise.
5624 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
5625 * v850-tdep.c (v850_gdbarch_init): Likewise.
5626 * vax-tdep.c (vax_gdbarch_init): Likewise.
5627 * x86-64-tdep.c (x86_64_init_abi): Likewise.
5629 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
5630 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
5631 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
5632 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
5633 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
5634 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
5635 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
5636 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
5638 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
5640 * Makefile.in (acconfig_h): Remove incorrect macro.
5642 (osabi.o): Update dependencies.
5643 * configure.tgt: Set gdb_osabi based on target triplet.
5644 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
5645 * configure: Regenerated.
5646 * config.in: Regenerated.
5647 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
5648 (GDB_OSABI_DEFAULT): Define if not already defined.
5649 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
5650 (set_osabi_string): New variables.
5651 (gdbarch_register_osabi): Add new OS ABI to
5652 gdb_osabi_available_names.
5653 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
5654 (set_osabi, show_osabi): New functions.
5655 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
5657 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
5659 * arch-utils.c (gdbarch_info_init): Set osabi to
5660 GDB_OSABI_UNINITIALIZED.
5661 * gdbarch.sh: Add osabi to struct gdbarch and to struct
5662 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
5663 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
5664 * gdbarch.c: Regenerated.
5665 * gdbarch.h: Regenerated.
5666 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
5668 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
5669 * osabi.h (enum gdb_osabi): Move to defs.h.
5670 (gdbarch_init_osabi): Update prototype.
5671 * defs.h (enum gdb_osabi): Moved here.
5672 * Makefile.in: Update dependencies.
5674 * alpha-tdep.h: Don't include "osabi.h".
5675 (struct gdbarch_tdep): Remove osabi member.
5676 * alpha-tdep.c: Include "osabi.h".
5677 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
5678 iterate over arches. Update call to gdbarch_init_osabi.
5679 (alpha_dump_tdep): Don't dump osabi.
5680 * alpha-linux-tdep.c: Include "osabi.h".
5681 * alpha-osf1-tdep.c: Include "osabi.h".
5682 * alphafbsd-tdep.c: Include "osabi.h".
5683 * alphanbsd-tdep.c: Include "osabi.h".
5685 * arm-tdep.h: Don't include "osabi.h".
5686 (struct gdbarch_tdep): Remove osabi member.
5687 * arm-tdep.c: Include "osabi.h".
5688 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
5689 iterate over arches. Update call to gdbarch_init_osabi.
5690 (arm_dump_tdep): Don't dump osabi.
5691 * arm-linux-tdep.c: Include "osabi.h".
5692 * armnbsd-tdep.c: Include "osabi.h".
5694 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
5695 Update call to gdbarch_init_osabi.
5697 * i386-tdep.h: Don't include "osabi.h".
5698 (struct gdbarch_tdep): Remove osabi member.
5699 * i386-tdep.c: Include "osabi.h".
5700 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
5701 iterate over arches. Update call to gdbarch_init_osabi.
5702 (i386_dump_tdep): Don't dump osabi.
5703 * i386-linux-tdep.c: Include "osabi.h".
5704 * i386-sol2-tdep.c: Include "osabi.h".
5705 * i386bsd-tdep.c: Include "osabi.h".
5706 * i386gnu-tdep.c: Include "osabi.h".
5707 * i386ly-tdep.c: Include "osabi.h".
5708 * i386nbsd-tdep.c: Include "osabi.h".
5709 * i386obsd-tdep.c: Include "osabi.h".
5711 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
5712 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
5713 check osabi when iterating over arches. Update call to
5715 (mips_dump_tdep): Don't dump osabi.
5717 * ns32k-tdep.h: Don't include "osabi.h".
5718 (struct gdbarch_tdep): Remove.
5719 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
5720 gdbarch_lookup_osabi. Don't iterate over arches. Don't
5721 allocate tdep. Update call to gdbarch_init_osabi.
5722 (ns32k_dump_tdep): Remove.
5723 (_initialize_ns32k_tdep): Update call to gdbarch_register.
5724 * ns32knbsd-tdep.c: Include "osabi.h".
5726 * ppc-tdep.h: Don't include "osabi.h".
5727 (struct gdbarch_tdep): Remove osabi member.
5728 * rs6000-tdep.c: Include "osabi.h".
5729 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
5730 osabi when iterating over arches. Update call to
5732 (rs6000_dump_tdep): Don't dump osabi.
5733 * ppc-linux-tdep.c: Include "osabi.h".
5734 * ppcnbsd-tdep.c: Include "osabi.h".
5736 * sh-tdep.h: Don't include "osabi.h".
5737 (struct gdbarch_tdep): Remove osabi member.
5738 * sh-tdep.c: Include "osabi.h".
5739 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
5740 iterate over arches. Update call to gdbarch_init_osabi.
5741 (sh_dump_tdep): Don't dump osabi.
5742 * shnbsd-tdep.c: Include "osabi.h".
5744 * sparc-tdep.c: Include "osabi.h".
5745 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
5746 iterate over arches. Update call to gdbarch_init_osabi.
5747 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
5750 * vax-tdep.h: Don't include "osabi.h".
5751 (struct gdbarch_tdep): Remove.
5752 * vax-tdep.c: Include "osabi.h".
5753 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
5754 iterate over arches. Don't allocate tdep. Update call
5755 to gdbarch_init_osabi.
5756 (vax_dump_tdep): Remove.
5757 (_initialize_vax_tdep): Update call to gdbarch_register.
5759 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
5761 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
5763 (breakpoint_re_set_one): Don't fetch the value for a disabled
5766 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
5768 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
5769 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
5770 (COERCE_FLOAT_TO_DOUBLE): Remove.
5771 * gdbarch.c: Regenerate.
5772 * gdbarch.h: Regenerate.
5773 * Makefile.in: Remove value_h from gdbarch_h.
5774 * valops.c (coerce_float_to_double): New variable.
5775 (default_coerce_float_to_double): Remove.
5776 (standard_coerce_float_to_double): Remove.
5777 (value_arg_coerce): Use coerce_float_to_double.
5778 (_initialize_valops): Add "set coerce-float-to-double".
5779 * value.h (default_coerce_float_to_double): Remove prototype.
5780 (standard_coerce_float_to_double): Remove prototype.
5782 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
5784 * mdebugread.c (parse_symbol): Likewise.
5785 * stabsread.c (define_symbol): Mark all functions as prototyped.
5787 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
5788 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
5789 set_gdbarch_coerce_float_to_double.
5790 * arm-tdep.c (arm_gdbarch_init): Likewise.
5791 * frv-tdep.c (frv_gdbarch_init): Likewise.
5792 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
5793 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
5794 * mips-tdep.c (mips_gdbarch_init): Likewise.
5795 (mips_coerce_float_to_double): Remove.
5796 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5797 (rs6000_coerce_float_to_double): Remove.
5798 * s390-tdep.c (s390_gdbarch_init): Likewise.
5799 * sh-tdep.c (sh_gdbarch_init): Likewise.
5800 (sh_coerce_float_to_double): Remove.
5801 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
5802 (sparc_coerce_float_to_double): Remove.
5803 * v850-tdep.c (v850_gdbarch_init): Likewise.
5804 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
5805 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
5806 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
5807 (hppa_coerce_float_to_double): Remove prototype.
5808 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
5810 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
5812 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
5814 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
5816 Suggested by Stewart Brown <sb24@avaya.com>:
5817 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
5818 in recursive calls. Handle TYPE_CODE_TYPEDEF.
5819 (c_type_print_varspec_suffix): Likewise.
5821 2003-01-04 Mark Kettenis <kettenis@gnu.org>
5823 * configure.in: Don't set and AC_SUBST SUBDIRS.
5824 * configure: Regenerated.
5826 * configure.in: Remove code dealing with shared libraries.
5827 * Makefile.in: Remove HLDFLAGS and HLDENV.
5828 * configure: Regenerated.
5830 2003-01-04 Andrew Cagney <ac131313@redhat.com>
5832 * frame.c (deprecated_frame_xmalloc): New function.
5833 (deprecated_set_frame_saved_regs_hack): New function.
5834 (deprecated_set_frame_extra_info_hack): New function.
5835 * frame.h (deprecated_frame_xmalloc): Declare.
5836 (deprecated_set_frame_saved_regs_hack): Declare.
5837 (deprecated_set_frame_extra_info_hack): Declare.
5839 2003-01-04 Mark Kettenis <kettenis@gnu.org>
5841 * configure.in: Move code that provides the --enable-gdbtk option
5842 right after the code that handles the --enable-tui option, and
5844 * configure: Regenerated.
5846 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
5847 AC_CHECK_FUNCS and remove the old check for pread64.
5848 * acinclude.m4 (AC_GNU_SOURCE): New macro.
5849 * acconfig.h (_GNU_SOURCE): Add.
5850 (HAVE_PREAD64): Remove.
5851 * configure, aclocal.m4, config.in: Regenerated.
5853 2003-01-03 Andrew Cagney <ac131313@redhat.com>
5855 * alpha-tdep.c: Use get_frame_saved_regs.
5856 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
5857 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
5858 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
5859 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
5860 * vax-tdep.c, xstormy16-tdep.c: Ditto.
5862 2003-01-03 Mark Kettenis <kettenis@gnu.org>
5864 * configure.in: Remove all use of the SUBDIRS variable; add
5865 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
5866 code providing the --enable-multi-ice option, and move it right in
5867 front of the code that checks whether gdbserver is supported.
5869 * configure: Regenerated.
5870 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
5873 2003-01-03 Andrew Cagney <cagney@redhat.com>
5875 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
5876 * avr-tdep.c, cris-tdep.c: Ditto.
5877 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
5878 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
5880 2003-01-03 Mark Kettenis <kettenis@gnu.org>
5882 * configure.in: Remove --enable-netrom option.
5883 * configure: Regenerated.
5885 2003-01-03 Mark Kettenis <kettenis@gnu.org>
5887 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
5888 declaration for `struct re_pattern_buffer' instead.
5889 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
5891 2003-01-03 J. Brobecker <brobecker@gnat.com>
5893 * mdebugread.c (parse_symbol): Count until the stEnd matching
5896 2003-01-02 Mark Kettenis <kettenis@gnu.org>
5898 * configure.in: Remove --with-cpu option.
5899 subscripts. Remove evil changequotes here.
5900 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
5901 * config.in, configure: Regenerated.
5903 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
5904 * configure.in: Cleanup section that sources GDB and BFD configure
5905 subscripts. Remove evil changequotes here.
5906 * config.in, configure: Regenerated.
5908 2003-01-02 Andrew Cagney <ac131313@redhat.com>
5910 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
5911 frame accessor methods.
5912 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
5913 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
5914 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
5915 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
5916 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
5917 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
5918 * z8k-tdep.c: Ditto.
5920 2003-01-02 Mark Kettenis <kettenis@gnu.org>
5922 * configure.in: Remove UI_OUT configuration code.
5923 * ada-lang.c: Update assuming UI_OUT is always true.
5924 * Makefile.in (UIOUT_CFLAGS): Remove.
5925 * configure: Regenerated.
5926 * TODO: Remove blurb about elimination of -DUI_OUT.
5928 * configure.in: Move code that provides the --enable-gdbcli,
5929 --enable-gdbmi options right before the code that handles the
5930 --enable-tui option. Polish a bit.
5931 * configure: Regenerated.
5933 * configure.in: Rewrite check for GNU regex and the
5934 --without-included regex option, and move it into the "Checks for
5935 library functions" section. This makes us use the system regex
5936 again by default on systems with version 2 of the GNU C library.
5937 This was apparently broken.
5938 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
5939 * acconfig.h (USE_INCLUDED_REGEX): Remove.
5940 * config.in, configure: Regenerated.
5942 * configure.in: Move code that provides the --enable-tui option
5943 before the "Checks for libraries" section. Polish the code
5944 somewhat and set need_curses to yes if we build the TUI. Rewrite
5945 code that looks for a library providing termcap functionality to
5946 match more closely what's done in the Readline library, and move
5947 it into to the "Checks for libraries" section.
5948 * configure: Regenerated.
5949 * Makefile.in (TERMCAP): Remove variable.
5950 * config/i386/go32.mh (TERMCAP): Remove variable.
5952 2003-01-02 Andrew Cagney <ac131313@redhat.com>
5954 * MAINTAINERS: Mention gdb_mbuild.sh.
5955 * gdb_mbuild.sh: Rewrite.
5957 2003-01-02 Mark Kettenis <kettenis@gnu.org>
5959 * configure.in: Fix typo in last change.
5960 * config.in, configure: Regenerated.
5962 2003-01-02 Andrew Cagney <ac131313@redhat.com>
5964 * valarith.c (value_binop): Delete obsolete code and comments.
5965 * configure.host: Ditto.
5966 * buildsym.h (make_blockvector): Ditto.
5967 * buildsym.c (make_blockvector): Ditto.
5968 * defs.h (enum language): Ditto.
5969 (chill_demangle): Ditto.
5970 * elfread.c (elf_symtab_read): Ditto.
5971 * dwarfread.c (CHILL_PRODUCER): Ditto.
5972 (set_cu_language): Ditto.
5973 (handle_producer): Ditto.
5974 * expprint.c (print_subexp): Ditto.
5975 * gdbtypes.c (chill_varying_type): Ditto.
5976 * gdbtypes.h (builtin_type_chill_bool): Ditto.
5977 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
5978 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
5979 (chill_varying_type): Ditto.
5980 * language.h (_LANG_chill): Ditto.
5981 * language.c (binop_result_type, integral_type): Ditto.
5982 (character_type, string_type, structured_type): Ditto.
5983 (lang_bool_type, binop_type_check): Ditto.
5984 * stabsread.h (os9k_stabs): Ditto.
5985 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
5986 (define_symbol, read_type, read_struct_fields): Ditto.
5987 (read_array_type, read_enum_type, read_huge_number): Ditto.
5988 (read_range_type, start_stabs): Ditto.
5989 * symfile.c (init_filename_language_table): Ditto.
5990 (add_psymbol_with_dem_name_to_list): Ditto.
5991 * symtab.c (symbol_init_language_specific): Ditto.
5992 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
5993 * symtab.h (struct general_symbol_info): Ditto.
5994 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5995 * typeprint.c (typedef_print): Ditto.
5996 * utils.c (fprintf_symbol_filtered): Ditto.
5997 * valops.c (value_cast, search_struct_field, value_slice): Delete
5999 (varying_to_slice): Delete function.
6000 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
6001 (varying_to_slice): Delete declaration.
6002 * MAINTAINERS: Update.
6004 2003-01-02 Mark Kettenis <kettenis@gnu.org>
6006 * configure.in: Reorganize "Checks for library functions section"
6007 a bit. Remove check for `btowc' and `isascii' functions.
6008 * configure: Regenerated.
6010 * acconfig.h (_MSE_INT_H): Remove.
6011 * configure.in: Create "Checks for header files" section, and move
6012 appropriate tests there. Don't check for objlist.h, wchar.h,
6013 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
6014 misdetection fix. Also add "Checks for types", "Checks for
6015 compiler characteristics" and "Checks for library functions"
6017 * config.in, configure: Regenerated.
6019 * configure.in: Create "Checks for programs" section, and move
6020 appropriate tests there.
6022 2003-01-01 Mark Kettenis <kettenis@gnu.org>
6024 * configure.in: Create "Checks for libraries" section, and move
6025 appropriate tests there. Cleanup check for wctype in libw. Use
6026 AC_SEARCH_LIBS to see whether we need libsocket.
6027 * configure: Regenerated.
6029 For older changes see ChangeLog-2002
6035 version-control: never