1 2003-05-19 Michal Ludvig <mludvig@suse.cz>
3 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
4 register numbers mapping.
6 2003-05-18 Adam Fedor <fedor@gnu.org>
8 * symtab.c (completion_list_objc_symbol): New function.
9 (make_symbol_completion_list): Use it to add ObjC symbols
10 when looking though the list.
11 (language_search_unquoted_string): New function.
12 (make_file_symbol_completion_list): Use it.
14 2003-05-18 Andreas Schwab <schwab@suse.de>
16 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
18 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
19 as m68k_linux_extract_return_value.
20 (DEPRECATED_STORE_RETURN_VALUE): Define as
21 m68k_linux_store_return_value.
22 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
23 m68k_linux_extract_struct_value_address.
24 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
25 get_next_frame, get_frame_base, get_frame_pc.
26 (m68k_linux_frame_saved_pc): Use get_frame_base.
27 (m68k_linux_extract_return_value): New function.
28 (m68k_linux_store_return_value): New function.
29 (m68k_linux_extract_struct_value_address): New function.
30 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
32 * c-exp.y (typebase): Remove duplicate occurence of
33 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
34 of lookup_signed_typename.
36 2003-05-18 Mark Kettenis <kettenis@gnu.org>
38 * dwarf2loc.c (find_location_expression): Change type of second
39 argument to `size_t *'.
40 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
43 2003-05-18 David Carlton <carlton@bactrian.org>
45 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
46 'linkage_name'. Add comment.
47 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
49 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
50 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
51 (lookup_block_symbol): Ditto.
53 2003-05-16 Andrew Cagney <cagney@redhat.com>
55 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
56 * gdbarch.h, gdbarch.c: Re-generate.
57 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
58 * TODO (REGISTER_BYTES): Delete reference.
59 * alpha-tdep.c (alpha_gdbarch_init): Update.
60 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
61 * x86-64-tdep.c (x86_64_init_abi): Update.
62 * vax-tdep.c (vax_gdbarch_init): Update.
63 * v850-tdep.c (v850_gdbarch_init): Update.
64 * sparc-tdep.c (sparc_gdbarch_init): Update.
65 * sh-tdep.c (sh_gdbarch_init): Update.
66 * s390-tdep.c (s390_gdbarch_init): Update.
67 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
68 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
69 (ns32k_gdbarch_init_32382): Update.
70 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
71 * mcore-tdep.c (mcore_gdbarch_init): Update.
72 * m68k-tdep.c (m68k_gdbarch_init): Update.
73 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
74 * ia64-tdep.c (ia64_gdbarch_init): Update.
75 * i386-tdep.c (i386_gdbarch_init): Update.
76 * i386-linux-tdep.c (i386_linux_init_abi): Update.
77 * hppa-tdep.c (hppa_gdbarch_init): Update.
78 * h8300-tdep.c (h8300_gdbarch_init): Update.
79 * frv-tdep.c (frv_gdbarch_init): Update.
80 * cris-tdep.c (cris_gdbarch_init): Update.
81 * avr-tdep.c (avr_gdbarch_init): Update.
82 * arm-tdep.c (arm_gdbarch_init): Update.
83 * sparc-tdep.c (sparc_pop_frame): Update.
84 * rs6000-tdep.c (rs6000_pop_frame): Update.
85 * remote.c (init_remote_state): Update.
86 (remote_prepare_to_store): Update.
87 * remote-vx.c (vx_prepare_to_store): Update.
88 * remote-sds.c (sds_fetch_registers): Update.
89 (sds_prepare_to_store): Update.
90 * remote-array.c: Update.
91 * regcache.c (init_legacy_regcache_descr): Update.
92 (init_regcache_descr): Update.
93 * mips-tdep.c (mips_eabi_extract_return_value): Update.
94 (mips_o64_extract_return_value): Update.
95 * irix5-nat.c (fetch_core_registers): Update.
96 * irix4-nat.c (fetch_core_registers): Update.
97 * i386-tdep.h: Update.
98 * hppa-tdep.c (pa_do_registers_info): Update.
99 (pa_do_strcat_registers_info): Update.
100 * cris-tdep.c (cris_register_bytes_ok): Update.
101 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
102 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
103 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
104 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
105 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
106 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
107 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
108 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
109 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
110 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
111 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
112 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
113 (REGISTER_BYTES_OK): Update.
114 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
115 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
117 2003-05-16 Ian Lance Taylor <ian@airs.com>
119 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
120 (vax_print_insn, print_insn_arg): Remove static functions.
121 (vax_gdbarch_init): Call set_gdbarch_print_insn with
122 print_insn_vax from opcodes library.
123 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
125 2003-05-15 Andrew Cagney <cagney@redhat.com>
127 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
128 * target.h (memory_breakpoint_from_pc): Delete declaration.
129 * mem-break.c (memory_breakpoint_from_pc): Delete function.
130 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
131 * monitor.c (monitor_insert_breakpoint): Use
132 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
133 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
134 * gdbarch.h, gdbarch.c: Re-generate.
135 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
136 (sparc_gdbarch_init): Set breakpoint_from_pc to
137 sparc_breakpoint_from_pc.
138 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
139 (BREAKPOINT_FROM_PC): Define.
140 (sparc_breakpoint_from_pc): Declare.
141 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
142 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
143 (BREAKPOINT_FROM_PC): Define.
144 (BREAKPOINT): Delete macro.
145 * target.h: Update comment.
146 * s390-tdep.c (s390_gdbarch_init): Update comments.
147 * remote.c: Update comments.
148 * remote-mips.c: Update comments.
149 * proc-api.c (write_with_trace): Do not check for a breakpoint.
150 * mem-break.c: Update comment.
151 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
152 (ia64_memory_insert_breakpoint): Update.
153 * config/sparc/tm-sparc.h: Update comment.
154 * config/pa/tm-hppa64.h: Update comment.
155 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
156 (rs6000_breakpoint_from_pc): Update.
157 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
158 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
159 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
160 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
161 (mips_breakpoint_from_pc): Update.
162 (mips_dump_tdep): Update.
164 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
165 * minsyms.c (lookup_minimal_symbol): Inline
166 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
168 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
169 * p-valprint.c (pascal_object_print_value_fields): Ditto.
170 * p-lang.c (pascal_printstr): Ditto.
171 * objc-lang.c (objc_printstr): Ditto.
172 * m2-lang.c (m2_printstr): Ditto.
173 * jv-valprint.c (java_print_value_fields): Ditto.
174 * f-lang.c (f_printstr): Ditto.
175 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
176 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
177 for repeat_count_threshold.
178 * Makefile.in (cp-valprint.o): Update dependencies.
180 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
182 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
183 (examine_prologue): Support looking through leaf functions, knowing
184 they start with mov r2,r12. Support skipping over indirect stores
185 of the input registers. Upon hitting a non-nop branch instruction
186 or predicated instruction, bail out by setting lim_pc to the current
187 pc value in the loop. At the end, if the lim_pc value is still
188 beyond our calculated value and we have trust_limit set,
189 use the lim_pc value.
191 2003-05-15 Andrew Cagney <cagney@redhat.com>
193 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
194 generic_find_dummy_frame.
195 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
196 (deprecated_generic_find_dummy_frame): Update.
197 (deprecated_read_register_dummy): Update.
198 * frame.c (deprecated_generic_get_saved_register): Update.
200 2003-05-15 Theodore A. Roth <troth@openavr.org>
202 * avr-tdep.c (avr_breakpoint_from_pc): New function.
203 (avr_gdbarch_init): Set breakpoint_from_pc method.
205 2003-05-15 Andrew Cagney <cagney@redhat.com>
207 * regcache.c (build_regcache): Set deprecated_register_valid
209 (deprecated_grub_regcache_for_register_valid): Delete function.
210 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
213 2003-05-15 David Carlton <carlton@bactrian.org>
215 Committed by Elena Zannoni <ezannoni@redhat.com>
216 * symtab.c (lookup_symbol_aux): Delete calls to
217 lookup_symbol_aux_minsyms.
218 (lookup_symbol_aux_minsyms): Comment out function and
219 prototype. Delete lookup by mangled name.
221 2003-05-14 Kevin Buettner <kevinb@redhat.com>
223 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
224 correctly indicate an empty stack and ``stack_allocated'' to the
225 indicate the number of elements initially allocated.
226 (dwarf_expr_grow_stack): Simplify method for computing new
227 stack size. Don't loop infinitely if ``stack_len'' is zero.
228 (execute_stack_op): Move ``ctx->in_reg'' initialization
229 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
230 be used in conjuction with DW_OP_piece. Revise error message
233 2003-05-14 Theodore A. Roth <troth@openavr.org>
235 * MAINTAINERS: Update my email address.
238 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
240 * symtab.h (enum domain_enum): Rename from namespace_enum.
241 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
242 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
243 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
244 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
245 TYPES_NAMESPACE, METHODS_NAMESPACE.
246 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
247 (struct symbol, struct partial_symbol): Rename field
248 'namespace_enum namespace' to 'domain_enum domain'.
249 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
250 Delete old define kludge for namespace.
252 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
253 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
254 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
255 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
256 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
257 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
258 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
259 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
260 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
261 occurrences of the above.
263 2003-05-14 Ian Lance Taylor <ian@airs.com>
265 * Makefile.in (install-only): Use $(SHELL) when running
268 2003-05-13 Ian Lance Taylor <ian@airs.com>
270 * MAINTAINERS (write after approval): Add myself.
272 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
273 second and third arguments.
274 * ser-tcp.c (_initialize_ser_tcp): Likewise.
275 * ser-unix.c (_initialize_ser_hardwire): Likewise.
277 2003-05-13 Andrew Cagney <cagney@redhat.com>
279 * defs.h (store_address): Delete declaration.
280 findvar.c (store_address): Delete function.
281 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
282 store_unsigned_integer.
283 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
284 * v850-tdep.c (v850_push_arguments): Ditto.
285 * sparc-tdep.c (sparc_get_saved_register): Ditto.
286 * sh-tdep.c (sh64_get_saved_register): Ditto.
287 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
288 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
289 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
290 (mips_get_saved_register): Ditto.
291 * ia64-tdep.c (ia64_get_saved_register): Ditto.
292 (find_func_descr, ia64_push_arguments): Ditto.
293 * i386-tdep.c (i386_push_arguments): Ditto.
294 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
295 * frv-tdep.c (frv_push_arguments): Ditto.
296 * frame.c (legacy_saved_regs_prev_register): Ditto.
297 (deprecated_generic_get_saved_register): Ditto.
298 * findvar.c (unsigned_address_to_pointer): Ditto.
299 * dwarf2read.c (dwarf2_const_value): Ditto.
300 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
301 * alpha-tdep.c (alpha_push_arguments): Ditto.
303 2003-05-12 J. Brobecker <brobecker@gnat.com>
305 * NEWS: Mention that the hppa-hpux port has been partially
306 multiarched (32bit ABIT only, so far).
308 2003-05-11 Andrew Cagney <cagney@redhat.com>
310 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
311 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
312 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
313 sim/testsuite/sim/arm/misaligned2.ms, and
314 sim/testsuite/sim/arm/misaligned3.ms.
315 * disasm.h (struct ui_file): Add opaque struct declaration.
316 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
317 * frame.h (struct ui_file): Ditto.
319 2003-05-11 Mark Kettenis <kettenis@gnu.org>
321 * value.h: Pretty print.
323 2003-05-10 Mark Kettenis <kettenis@gnu.org>
325 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
327 2003-05-08 Andrew Cagney <cagney@redhat.com>
329 * regcache.h (max_register_size): Delete declaration.
330 * regcache.c (max_register_size): Delete function.
331 (struct regcache_descr): Delete field "max_register_size".
332 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
333 registers fit in MAX_REGISTER_SIZE.
334 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
335 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
336 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
337 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
338 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
339 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
340 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
341 * dve3900-rom.c, hppa-tdep.c: Ditto.
343 2003-05-08 David Carlton <carlton@math.stanford.edu>
345 * valops.c (push_word): Fix typo.
347 2003-05-08 Andrew Cagney <cagney@redhat.com>
349 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
350 * gdbarch.h: Re-generate.
351 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
352 (legacy_max_register_raw_size): Delete declaration.
353 * regcache.c (legacy_max_register_raw_size): Delete function.
354 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
355 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
356 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
357 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
358 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
359 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
360 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
361 * findvar.c, dwarf2cfi.c: Ditto.
363 2003-05-08 Andrew Cagney <cagney@redhat.com>
365 * mips-tdep.c (read_signed_register): New function, moved to here
367 (read_signed_register_pid): Ditto.
368 * regcache.c (read_signed_register_pid): Delete function, moved to
370 (read_signed_register): Ditto.
371 * regcache.h (read_signed_register): Delete declaration.
372 (read_signed_register_pid): Delete declaration.
374 2003-05-08 Andrew Cagney <cagney@redhat.com>
376 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
377 * gdbarch.h: Re-generate.
378 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
379 (legacy_max_register_virtual_size): Delete declaration.
380 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
381 * d10v-tdep.c (d10v_print_registers_info): Ditto.
382 * tracepoint.c (memrange_sortmerge): Ditto.
383 * sparc-tdep.c (sparc_print_registers): Ditto.
384 * regcache.c (legacy_max_register_virtual_size): Delete function.
386 2002-05-08 J. Brobecker <brobecker@gnat.com>
388 * fork-child.c (escape_bang_in_quoted_argument): New function.
389 (fork_inferior): Escape '!' characters in quoted arguments
392 2003-05-08 J. Brobecker <brobecker@gnat.com>
394 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
395 the language of the CU is not currently supported by GDB.
397 2003-05-08 J. Brobecker <brobecker@gnat.com>
399 * defs.h (language): Add language_minimal enum value.
400 * c-lang.c (minimal_language_defn): New language definition.
401 (_initialize_c_language): Add the new minimal language to the list
402 of languages known to GDB.
404 2003-05-08 Kevin Buettner <kevinb@redhat.com>
406 * frame.c (get_frame_type): Don't attempt to lazily initialize
407 frame's unwinder for legacy frames.
409 2003-05-07 Andrew Cagney <cagney@redhat.com>
411 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
412 and "regcache" parameters.
413 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
415 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
417 * dwarf2read.c (dwarf_decode_lines): Only use output of
418 check_cu_functions() when calling record_line(). Do not update
421 2003-05-07 Andrew Cagney <cagney@redhat.com>
423 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
426 2003-05-07 Jim Blandy <jimb@redhat.com>
428 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
429 'maint info symtabs' and 'maint info psymtabs'.
430 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
431 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
432 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
433 Declarations updated.
434 * maint.c (maintenance_list_command): Delete.
435 (_initialize_maint_cmds): Update calls to add_cmd.
436 * gdbcmd.h (maintenancelistlist): Delete declaration.
437 * cli/cli-cmds.c (maintenancelistlist): Delete.
438 (init_cmd_lists): Don't initialize it.
439 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
441 2003-05-07 Andrew Cagney <cagney@redhat.com>
443 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
445 (d10v_print_registers_info): Update.
446 (d10v_dmap_register, d10v_imap_register): Delete functions.
447 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
449 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
450 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
451 * arch-utils.c (generic_remote_translate_xfer_address): Add
452 "regcache" and "gdbarch" parameters.
453 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
454 parameter. Change class to multi-arch.
455 * gdbarch.h, gdbarch.c: Re-generate.
456 * remote.c (remote_xfer_memory): Use
457 gdbarch_remote_translate_xfer_address.
459 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
461 * infrun.c (prev_pc): Move declaration ahead of proceed().
462 (proceed): Refresh prev_pc value before resuming.
463 (stop_stepping): Remove code to refresh prev_pc.
465 2003-05-06 Kris Warkentin <kewarken@qnx.com>
467 * nto-tdep.c: Removed stray comment.
469 2003-05-06 Kris Warkentin <kewarken@qnx.com>
471 * i386-nto-tdep.c: Fix old K&R function definitions.
472 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
473 Also change add_show_from_set() call to add_setshow_cmd().
474 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
476 2003-05-05 Andrew Cagney <cagney@redhat.com>
478 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
479 (fprint_dummy_frames): New function.
480 (maintenance_print_dummy_frames): New function.
481 (_initialize_dummy_frame): Add command "maint print dummy-frames".
482 * frame.c (fprint_frame_id): Make global.
483 * frame.h (fprint_frame_id): Declare.
484 * Makefile.in (dummy-frame.o): Update dependencies.
486 2003-05-05 Andrew Cagney <cagney@redhat.com>
488 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
489 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
490 SIZEOF_CALL_DUMMY_WORDS.
491 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
492 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
493 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
494 CALL_DUMMY_BREAKPOINT_OFFSET.
495 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
496 CALL_DUMMY_START_OFFSET.
497 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
498 * gdbarch.h, gdbarch.c: Re-generate.
499 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
500 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
501 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
502 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
503 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
504 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
505 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
506 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
507 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
508 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
509 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
510 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
511 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
512 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
513 * config/sparc/tm-sparc.h: Update.
515 2003-05-05 Kris Warkentin <kewarken@qnx.com>
517 * configure.tgt: Add i[3456]86-*-nto*.
518 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
519 * nto-tdep.c: New file. Neutrino target support routines.
520 * nto-tdep.h: New file. Neutrino target header.
521 * config/tm-qnxnto.h: New file.
522 * config/i386/i386nto.mt: New file.
523 * config/i386/tm-i386nto.h: New file.
525 2003-05-04 Andrew Cagney <cagney@redhat.com>
527 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
528 (load_infrun_state): Ditto.
529 (struct thread_info): Drop "prev_func_name" field.
530 * thread.c (load_infrun_state): Update.
531 (save_infrun_state): Update.
532 * infrun.c (prev_func_name): Delete variable.
533 (init_wait_for_inferior): Do not clear prev_func_name.
534 (stop_stepping, keep_going, context_switch): Do not swap
536 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
537 instead of PC_IN_SIGTRAMP.
539 2003-05-04 Andrew Cagney <cagney@redhat.com>
541 * sentinel-frame.c (sentinel_frame_prev_register): Replace
542 REGISTER_BYTE with register_offset_hack.
543 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
544 that REGISTER_BYTE is consistent with the regcache.
545 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
546 * gdbarch.h, gdbarch.c: Regenerate.
548 2003-05-04 Mark Kettenis <kettenis@gnu.org>
550 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
551 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
553 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
555 2003-05-03 J. Brobecker <brobecker@gnat.com>
557 From Thierry Schneider <tpschneider1@yahoo.com>
558 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
559 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
560 (mi-cmd-symbol.o): Add rule.
562 2003-05-03 Andrew Cagney <cagney@redhat.com>
564 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
565 comments noteing that it replaces the old FIX_CALL_DUMMY code.
566 * gdbarch.h, gdbarch.c: Re-generate.
567 * d10v-tdep.c (d10v_push_dummy_code): New function.
568 (d10v_gdbarch_init): Set push_dummy_code.
569 * infcall.c (legacy_push_dummy_code): New function.
570 (generic_push_dummy_code): New function.
571 (push_dummy_code): New function.
572 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
573 instead of dummy_addr, to push_dummy_call. Move call to
574 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
576 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
578 2003-05-03 Andrew Cagney <cagney@redhat.com>
580 * disasm.h (print_insn): Declare.
581 * disasm.c (init_gdb_disassemble_info): New function.
582 (gdb_disassembly): Call init_gdb_disassemble_info.
583 (gdb_print_insn): New function.
584 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
585 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
586 * mcore-tdep.c: Include "disasm.h"
587 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
588 * d10v-tdep.c: Include "disasm.h".
589 (display_trace): Call gdb_print_insn, instead of print_insn.
590 (print_insn): Delete function.
591 * printcmd.c: Include "disasm.h".
592 (print_insn): Delete function.
593 (print_formatted): Call gdb_print_insn, instead of print_insn.
594 * Makefile.in (printcmd.o): Update dependencies.
595 (mcore-tdep.o, d10v-tdep.o): Ditto.
597 2003-05-02 Andrew Cagney <cagney@redhat.com>
599 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
600 PC_REGNUM, re-indent.
601 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
604 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
605 * gdbarch.h, gdbarch.c: Re-generate.
606 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
607 register_virtual_size, pc_regnum, or register_bytes.
608 (D10V_PC_REGNUM): Rename _PC_REGNUM.
609 (d10v_register_type): Use D10V_PC_REGNUM.
610 (d10v_print_registers_info, d10v_read_pc): Ditto.
611 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
612 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
614 2003-05-02 David Carlton <carlton@bactrian.org>
616 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
617 the name with mstrsave.
619 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
621 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
622 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
623 (host_charset_name, target_charset_name): New vars for use by
625 (host_charset_enum, target_charset_enum): New enums for set/show
627 (set_charset_sfunc, set_host_charset_sfunc,
628 set_target_charset_sfunc): New functions.
629 (set_host_charset, set_target_charset): Make static.
630 (list_charsets, set_host_charset_command,
631 set_target_charset_command): Delete functions.
632 (show_charset_command): Rewrite as....
633 (show_charset): Hook this up with the set/show command mechanism.
634 (_initialize_charset): Change names of charsets to match the
635 set/show enums. Use host_charset_name and target_charset_name.
636 Use set/show mechanism for charset, host-charset, target-charset
637 commands. Do not make 'show host-charset' and 'show
638 target-charset' be aliases of 'show charset'.
640 * charset.h (set_host_charset, set_target_charset): Don't export,
641 they are not used outside the file.
643 2003-05-01 Andrew Cagney <cagney@redhat.com>
645 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
646 (gdb_disassembly): Make "di" non static, always initialize and
647 cleanup. Always use dis_asm_read_memory.
648 (gdb_dis_asm_read_memory): Delete function.
650 2003-05-01 Andrew Cagney <cagney@redhat.com>
652 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
653 (d10v_gdbarch_init): Set frame_align instead of stack_align.
655 2003-04-30 Andrew Cagney <cagney@redhat.com>
657 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
658 "tm_print_insn_info".
659 (TARGET_PRINT_INSN_INFO): Delete macro.
660 (dis_asm_read_memory): Delete function declaration.
661 (dis_asm_memory_error, dis_asm_print_address): Ditto.
662 (tm_print_insn_info): Delete variable definition.
663 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
664 * gdbarch.h, gdbarch.c: Re-generate.
665 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
666 "deprecated_tm_print_insn_info".
667 * mcore-tdep.c (mcore_dump_insn): Ditto.
668 * mips-tdep.c (mips_gdbarch_init): Ditto.
669 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
670 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
671 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
672 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
673 instead of TARGET_PRINT_INSN_INFO, add comment.
674 * s390-tdep.c (s390_get_frame_info): Instead of
675 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
676 (s390_check_function_end, s390_is_sigreturn): Ditto.
677 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
678 (dis_asm_memory_error, dis_asm_print_address): Ditto.
679 * disasm.c: Include "gdbcore.h".
680 (_initialize_disasm): New function, initialize
681 "deprecated_tm_print_insn_info".
682 (deprecated_tm_print_insn_info): New variable.
683 (dis_asm_read_memory): Moved from "corefile.c", made static.
684 (dis_asm_print_address, dis_asm_memory_error): Ditto.
685 * Makefile.in (disasm.o): Update dependencies.
687 2003-04-30 Andrew Cagney <cagney@redhat.com>
689 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
691 2003-04-29 Adam Fedor <fedor@gnu.org>
693 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
694 * infcall.c (find_function_addr): Make non-static.
695 * infcall.h (find_function_addr): Declare.
696 * Makefile.in (eval.o): Update dependencies.
698 2003-04-28 Adam Fedor <fedor@gnu.org>
700 * symtab.c (symbol_find_demangled_name): Check for and demangle
702 (symbol_init_demangled_name): Init for language_objc as well.
704 2003-04-28 Andrew Cagney <cagney@redhat.com>
706 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
707 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
708 * gdbarch.h, gdbarch.c: Re-generate.
709 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
710 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
711 * inferior.h (deprecated_read_fp): Rename read_fp.
712 (generic_target_read_fp): Delete declaration.
713 * regcache.c (generic_target_read_fp): Delete function.
714 (deprecated_read_fp): Replace read_fp, use
715 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
716 * d10v-tdep.c (d10v_read_fp): Delete function.
717 (d10v_gdbarch_init): Do not set deprecated_read_fp.
719 * sparc-tdep.c (sparc_gdbarch_init): Do not set
720 deprecated_target_read_fp to generic_target_read_fp.
721 * sh-tdep.c (sh_gdbarch_init): Ditto.
722 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
723 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
724 * frv-tdep.c (frv_gdbarch_init): Ditto.
726 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
727 deprecated_fp_regnum.
728 * x86-64-tdep.c (x86_64_init_abi): Ditto.
729 * vax-tdep.c (vax_gdbarch_init): Ditto.
730 * v850-tdep.c (v850_gdbarch_init): Ditto.
731 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
732 * sh-tdep.c (sh_gdbarch_init): Ditto.
733 * s390-tdep.c (s390_gdbarch_init): Ditto.
734 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
735 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
736 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
737 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
738 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
739 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
740 * i386-tdep.c (i386_gdbarch_init): Ditto.
741 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
742 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
743 * frv-tdep.c (frv_gdbarch_init): Ditto.
744 * cris-tdep.c (cris_gdbarch_init): Ditto.
745 * avr-tdep.c (avr_gdbarch_init): Ditto.
746 * arm-tdep.c (arm_gdbarch_init): Ditto.
747 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
749 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
750 * v850-tdep.c (v850_gdbarch_init): Ditto.
751 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
752 * sh-tdep.c (sh_gdbarch_init): Ditto.
753 * s390-tdep.c (s390_gdbarch_init): Ditto.
754 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
755 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
756 * mips-tdep.c (mips_gdbarch_init): Ditto.
757 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
758 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
759 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
760 * frv-tdep.c (frv_gdbarch_init): Ditto.
761 * avr-tdep.c (avr_gdbarch_init): Ditto.
762 * arm-tdep.c (arm_gdbarch_init): Ditto.
764 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
765 DEPRECATED_FP_REGNUM.
766 (vax_push_dummy_frame, vax_pop_frame): Ditto.
767 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
768 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
769 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
770 (sparc32_register_virtual_type): Ditto.
771 * sh-tdep.c (sh64_frame_chain): Ditto.
772 (sh64_get_saved_register, sh64_pop_frame): Ditto.
773 (sh_nofp_frame_init_saved_regs): Ditto.
774 (sh64_nofp_frame_init_saved_regs): Ditto.
775 (sh_fp_frame_init_saved_regs): Ditto.
776 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
777 * remote-e7000.c (fetch_regs_from_dump): Ditto.
778 * procfs.c (procfs_fetch_registers): Ditto.
779 (procfs_store_registers): Ditto.
780 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
781 (store_inferior_registers, fetch_core_registers): Ditto.
782 (fetch_kcore_registers, clear_regs): Ditto.
783 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
784 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
785 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
786 * nlm/i386.c (do_status): Ditto.
787 * mipsv4-nat.c (supply_gregset): Ditto.
788 * mips-tdep.c: Ditto for comments.
789 * mips-nat.c (fetch_inferior_registers): Ditto.
790 (store_inferior_registers, fetch_core_registers): Ditto.
791 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
792 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
793 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
794 (i386_do_pop_frame, i386_register_type): Ditto.
795 * hppa-tdep.c (hppa_frame_chain): Ditto.
796 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
797 (hppa_pop_frame, hppa_read_fp): Ditto.
798 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
799 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
800 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
801 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
802 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
803 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
804 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
805 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
806 * blockframe.c: Ditto for comments.
807 * arch-utils.h: Ditto for comments.
808 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
809 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
810 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
811 * alpha-tdep.h: Ditto for comments.
812 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
813 (alpha_cannot_store_register): Ditto.
814 (alpha_push_dummy_frame): Ditto.
815 * alpha-nat.c (supply_gregset): Ditto.
817 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
818 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
819 * config/sparc/tm-sparc.h: Update comment.
821 * hppa-tdep.c (hppa_init_extra_frame_info): Use
822 deprecated_read_fp instead of TARGET_READ_FP.
823 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
824 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
825 * sparc-tdep.c (sparc_init_extra_frame_info): Use
826 deprecated_read_fp instead of read_fp.
827 * s390-tdep.c (s390_push_arguments): Ditto.
828 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
829 * frame.h: Ditto in comments.
830 * frame.c (legacy_get_prev_frame): Ditto.
831 * dummy-frame.c (dummy_frame_this_id): Ditto.
832 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
834 2003-04-28 Andrew Cagney <cagney@redhat.com>
836 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
837 * gdbarch.h, gdbarch.c: Re-generate.
838 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
839 * vax-tdep.c (_initialize_vax_tdep): Update.
840 * v850-tdep.c (_initialize_v850_tdep): Update.
841 * sparc-tdep.c (_initialize_sparc_tdep): Update.
842 * s390-tdep.c (_initialize_s390_tdep): Update.
843 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
844 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
845 * mips-tdep.c (_initialize_mips_tdep): Update.
846 * mcore-tdep.c (_initialize_mcore_tdep): Update.
847 * m68k-tdep.c (_initialize_m68k_tdep): Update.
848 * ia64-tdep.c (_initialize_ia64_tdep): Update.
849 * hppa-tdep.c (_initialize_hppa_tdep): Update.
850 * h8300-tdep.c (_initialize_h8300_tdep): Update.
851 * frv-tdep.c (_initialize_frv_tdep): Update.
852 * cris-tdep.c (cris_delayed_get_disassembler): Update.
853 (_initialize_cris_tdep): Update.
854 * arch-utils.c (legacy_print_insn): Update.
855 * alpha-tdep.c (_initialize_alpha_tdep): Update.
857 2003-04-26 Adam Fedor <fedor@gnu.org>
859 * linespec.c (decode_objc): New function to decode ObjC calls
860 (decode_line_1): Check for ObjC calls (using decode_objc)
861 * Makefile (linespec.o): Update dependencies.
863 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
865 * breakpoint.h (struct breakpoint_ops): New.
866 (struct breakpoint): Add ops member.
868 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
869 (mention): Use new breakpoint ops member.
870 (set_raw_breakpoint): Initialize ops field to NULL.
871 (print_exception_catchpoint, print_one_exception_catchpoint)
872 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
873 (gnu_v3_exception_catchpoint_ops): New.
874 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
876 2003-04-25 Adam Fedor <fedor@gnu.org>
878 * Makefile.in (COMMON_OBS): Add objc-lang.o
880 2003-04-25 Andrew Cagney <cagney@redhat.com>
882 * d10v-tdep.c (print_insn): Delete function.
883 (display_trace): Use TARGET_PRINT_INSN.
884 (_initialize_d10v_tdep): Do not set tm_print_insn.
885 (d10v_gdbarch_init): Set print_insn.
887 2003-04-25 Andrew Cagney <cagney@redhat.com>
889 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
890 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
891 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
892 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
893 (nr_dmap_regs, a0_regnum): ... new functions.
894 (d10v_print_registers_info): Use a0_regnum, use register_size.
895 (d10v_register_byte): Delete function.
896 (d10v_register_raw_size): Delete function.
897 (d10v_register_type): Use a0_regnum.
898 (d10v_print_registers_info): Use a0_regnum.
899 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
900 (d10v_gdbarch_init): Do not set register_byte or
901 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
902 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
904 (trace_command): Use XCALLOC.
905 (print_insn): Delete reference to tm_print_insn.
906 (saved_regs_unwinder): Use store_unsigned_integer instead of
908 * frame.h (FRAME_OBSTACK_CALLOC): Define
910 2003-04-25 David Carlton <carlton@bactrian.org>
912 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
914 2003-04-24 Adam Fedor <fedor@gnu.org>
916 * objc-lang.c: Include "valprint.h"
917 * Makefile.in (objc-lang.o): Update dependencies.
919 2003-04-24 Adam Fedor <fedor@gnu.org>
921 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
922 architecture dependant compilation and mark as unimplemented
923 (until they get put in the gdbarch vector).
925 2003-04-23 David Carlton <carlton@bactrian.org>
927 * cp-support.c (cp_find_first_component): Accept 'operator' in
930 2003-04-23 Andrew Cagney <cagney@redhat.com>
932 * infcall.c (call_function_by_hand): Eliminate redundant
933 indentation. Move "saved_async" and "old_cleanups" to where they
936 2003-04-23 Andrew Cagney <cagney@redhat.com>
938 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
939 and "buffer". Move the "name" code to where it is needed.
941 2003-04-23 Andrew Cagney <cagney@redhat.com>
943 * infcall.c (call_function_by_hand): Move variables "start_sp",
944 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
945 code to ON_STACK switch branch.
947 2003-04-23 Andrew Cagney <cagney@redhat.com>
949 * infcall.c (call_function_by_hand): Make declaration of "i",
950 "sal", "bpt" and "old_sp" more local to their use. Delete #if
953 2003-04-23 Andrew Cagney <cagney@redhat.com>
955 * infcall.c (call_function_by_hand): Delete variable
956 "n_method_args". Localize "param_type"'s declaration to the loop
957 that it is used. Reinstate code assigning to said variable -
958 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
959 Rationalize code using "param_type".
961 2003-04-22 Andrew Cagney <cagney@redhat.com>
963 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
964 compute the breakpoint address. Only call FIX_CALL_DUMMY when
965 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
966 to DEPRECATED_PUSH_RETURN_ADDRESS.
968 2003-04-22 Kevin Buettner <kevinb@redhat.com>
970 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
971 on the DWARF2 register number prior to fetching a register.
973 2003-04-22 J. Brobecker <brobecker@gnat.com>
975 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
976 Update all the tests using SOFT_FLOAT considering the fact that
977 this macro was always set to 0.
978 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
979 considering the fact that this macro was always set to 0.
980 * hppa-tdep.h (hppa_store_return_value): Likewise.
981 (hppa_extract_return_value): Likewise.
983 2003-04-22 J. Brobecker <brobecker@gnat.com>
985 * config/pa/tm-hppa.h: Remove obsolete code, was used by
986 the hppa-pro target only.
988 2003-04-21 J. Brobecker <brobecker@gnat.com>
990 Ongoing multi-arch conversion effort for HP/UX:
991 * config/pa/tm-hppa.h: Move all macro that are no longer
992 defined now that GDB_MULTI_ARCH is now set to 1 from here...
993 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
995 2003-04-21 J. Brobecker <brobecker@gnat.com>
997 * config/pa/tm-hppa.h: Obsolete a section that was only used
1000 2003-04-21 J. Brobecker <brobecker@gnat.com>
1002 Ongoing multi-arch conversion for HP/UX.
1003 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
1004 if already defined (allows hppa64 to stay non-multiarched for now).
1005 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
1007 2003-04-21 Andrew Cagney <cagney@redhat.com>
1009 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
1011 2003-04-21 Andrew Cagney <cagney@redhat.com>
1013 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
1014 "i386_num_mmx_regs".
1016 2003-04-21 Andrew Cagney <cagney@redhat.com>
1018 * infcall.c: New file.
1019 * infcall.h: New file.
1020 * valarith.c: Include "infcall.h".
1021 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
1022 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
1023 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
1024 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
1025 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
1026 (SFILES): Add "infcall.c"
1027 (COMMON_OBS): Add "infcall.o".
1028 (infcall.o): Specify dependencies.
1029 * value.h (call_function_by_hand): Delete declaration.
1030 * inferior.h (run_stack_dummy): Delete declaration.
1031 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
1032 (run_stack_dummy): Move to "infcall.c", merged into
1033 call_function_by_hand.
1034 * valops.c (call_function_by_hand): Moved to "infcall.c".
1035 (find_function_addr, value_arg_coerce): Ditto.
1036 (unwindonsignal_p, coerce_float_to_double): Ditto.
1037 (_initialize_valops): Move "set/show coerce-float-to-double", and
1038 "set/show unwindonsignal" commands to "infcall.c".
1039 * v850-tdep.c, target.h: Update comments.
1040 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
1041 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
1042 (sh64_init_extra_frame_info): Update comments.
1043 * mn10300-tdep.c: Update comments.
1044 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
1045 * config/sparc/tm-sparc.h: Update comments.
1046 * breakpoint.h: Update comments.
1047 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
1048 * arm-tdep.c: Update comment.
1050 2003-04-19 Mark Kettenis <kettenis@gnu.org>
1052 * i386-tdep.c (i386_num_register_names): New variable.
1053 (i386_num_mmx_regs): Renamed from mmx_num_regs.
1054 (MM0_REGNUM): Remove redundant parentheses in define.
1055 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
1056 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
1057 i386_mxcsr_regnum_p): Remove redundant parentheses.
1058 (i386_register_name): Use i386_num_register_names.
1060 * i386-tdep.c (i386_extract_return_value,
1061 i386_store_return_value): Correct check for availability of
1062 floating-point registers.
1064 * i386-tdep.c (i386_frame_num_args): Remove function.
1065 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
1067 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
1068 mmx_regnum_to_fp_regnum. Adjust all callers.
1070 * i386-tdep.c (i386_get_longjmp_target): Use
1071 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
1072 and TARGET_CHAR_BIT. Use extract_typed_address instead of
1075 2003-04-19 Mark Kettenis <kettenis@gnu.org>
1077 * core-regset.c: Update comments to reflect reality. Re-order
1079 (fetch_core_registers): Use switch instead of if. Remove
1080 redundant prototype.
1082 2003-04-18 Jim Blandy <jimb@redhat.com>
1084 * s390-tdep.c (s390_frame_align): New function.
1085 (s390_gdbarch_init): Register it with the gdbarch object.
1087 2003-04-17 Richard Henderson <rth@redhat.com>
1089 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
1091 2003-04-17 Michael Snyder <msnyder@redhat.com>
1092 Karen Bennet <bennet@redhat.com>
1094 Committed by Elena Zannoni <ezannoni@redhat.com>
1095 * gdb_gcore.sh: New script to create a core dump of a process.
1097 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
1099 * values.c (value_being_returned): Don't fetch the return
1100 value if the return type is void.
1102 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
1104 * thread-db.c: Reindented.
1106 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
1108 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
1109 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
1112 2003-04-16 Kevin Buettner <kevinb@redhat.com>
1114 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
1115 the size of ``long double'' to 16, instead of 8.
1117 2003-04-16 Mark Kettenis <kettenis@gnu.org>
1119 * i386-linux-nat.c: Add some whitespace to make things more
1121 (fetch_register, store_register, fetch_inferior_registers,
1122 store_inferior_registers): Get rid of assignment in if-statement.
1123 (store_register): Fix typo in error message.
1125 2003-04-16 Andrew Cagney <cagney@redhat.com>
1127 * utils.c (xmmalloc): Always allocate something, matches
1128 libiberty/xmalloc's semantics.
1129 (xmrealloc, xmcalloc): Ditto.
1131 2003-04-16 Andrew Cagney <cagney@redhat.com>
1133 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
1135 (get_frame_type): Initialize unwind and type when needed.
1136 (get_frame_id, frame_register_unwind): Ditto.
1138 2003-04-16 Andrew Cagney <cagney@redhat.com>
1140 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
1142 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
1143 * sparcl-stub.c: Obsolete file.
1144 * config/sparc/tm-sparclet.h: Obsolete file.
1145 * sparclet-stub.c: Obsolete file.
1146 * sparclet-rom.c: Obsolete file.
1147 * sparcl-tdep.c: Obsolete file.
1148 * config/sparc/tm-sparclite.h: Obsolete file.
1149 * config/sparc/sparclite.mt: Obsolete file.
1150 * config/sparc/sparclet.mt: Obsolete file.
1151 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
1152 sparc86x-*-* obsolete.
1154 2003-04-15 David Carlton <carlton@math.stanford.edu>
1156 * Makefile.in (SFILES): Add cp-namespace.c.
1157 (COMMON_OBS): Add cp-namespace.o.
1158 (block.o): Depend on gdb_obstack_h and cp_support_h.
1159 (buildsym.o): Depend on cp_support_h.
1160 (cp-namespace.o): New.
1161 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
1162 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
1163 (dwarf2read.o): Depend on cp_support_h.
1164 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
1165 * dwarf2read.c (process_die): Set processing_has_namespace_info,
1166 processing_current_namespace.
1167 (read_namespace): Update processing_current_namespace; check for
1168 anonymous namespaces.
1169 (dwarf2_name): New function.
1170 (dwarf2_extension): Ditto.
1171 * cp-support.h: Update copyright, contributors.
1172 Add inclusion guards.
1173 Add opaque declaration for structs obstack, block, symbol.
1174 (struct using_direct): New struct.
1175 Add declarations for cp_find_first_component,
1176 cp_entire_prefix_len, processing_has_namespace_info,
1177 processing_current_namespace, cp_is_anonymous,
1178 cp_add_using_directive, cp_initialize_namespace,
1179 cp_finalize_namespace, cp_set_block_scope,
1180 cp_scan_for_anonymous_namespaces.
1181 * cp-namespace.c: New file.
1182 * cp-support.c: Update copyright.
1183 Include ctype.h, gdb_assert.h, gdbcmd.h.
1184 New variable maint_cplus_cmd_list.
1185 (cp_find_first_component): New function.
1186 (cp_entire_prefix_len, maint_cplus_command)
1187 (first_component_command, _initialize_cp_support): Ditto.
1188 * buildsym.c: Include cp-support.h.
1189 New variable using_list.
1190 (add_symbol_to_list): Check for anonymous namespaces.
1191 (finish_block): Set block's scope.
1192 (start_symtab): Initialize C++ namespace support.
1193 (end_symtab): Finalize C++ namespace support.
1194 * block.h: Add opaque declarations for structs
1195 block_namespace_info, using_direct, and obstack.
1196 Add declarations for block_set_scope and block_set_using.
1197 (struct block): Add 'language_specific' member.
1198 (BLOCK_NAMESPACE): New macro.
1199 * block.c: Include gdb_obstack.h and cp-support.h.
1200 (struct block_namespace_info): New struct.
1201 (block_set_scope): New function.
1202 (block_set_using, block_initialize_namespace): Ditto.
1204 2003-04-14 Kevin Buettner <kevinb@redhat.com>
1206 * solib-svr4.c (svr4_have_link_map_offsets): New function.
1207 (locate_base): Return early if there aren't any link map offsets.
1208 (svr4_solib_create_inferior_hook): Warn if shared library support
1211 2003-04-14 David Carlton <carlton@math.stanford.edu>
1213 * symtab.c (symbol_set_names): Add prefix when storing Java names
1214 in hash table. Fix for PR java/1039.
1216 2003-04-14 David Carlton <carlton@math.stanford.edu>
1218 * symtab.c (symbol_set_names): Rename 'name' arg to
1219 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
1220 * symtab.h: Change 'name' argument in declaration of
1221 symbol_set_names to 'linkage_name'.
1222 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
1224 2003-04-14 Andrew Cagney <cagney@redhat.com>
1226 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
1227 return the fully sign-extended register value.
1228 (get_frame_pointer): Ditto.
1229 (mips_pop_frame): Initialize "proc_desc" after checking for a
1232 2003-04-14 Andrew Cagney <cagney@redhat.com>
1234 * mips-tdep.c (mips_push_dummy_frame): Delete function.
1235 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
1236 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
1237 (mips_push_register): Delete function.
1238 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
1241 2003-04-14 Jim Blandy <jimb@redhat.com>
1243 * symmisc.c: #include "gdb_regex.h".
1244 (maintenance_list_symtabs, maintenance_list_psymtabs): New
1246 * maint.c (maintenance_list_command): New function.
1247 (_initialize_maint_cmds): Register the above as commands.
1248 * symtab.h (maintenance_list_symtabs,
1249 maintenance_list_psymtabs): New declarations.
1250 * cli/cli-cmds.c (maintenancelistlist): New variable.
1251 (init_cmd_lists): Initialize it.
1252 * cli/cli-cmds.h (maintenancelistlist): New declaration.
1253 * gdbcmd.h (maintenancelistlist): New declaration.
1254 * Makefile.in (symmisc.o): Update dependencies.
1256 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
1258 * s390-nat.c: Include asm/types.h for addr_t.
1260 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
1262 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
1263 actually incoming type.
1265 2003-04-13 Andrew Cagney <cagney@redhat.com>
1267 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
1268 get_next_frame and get_frame_saved_regs.
1270 2003-04-13 Andrew Cagney <cagney@redhat.com>
1272 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
1273 of gdbarch_num_regs.
1275 2003-04-13 Andrew Cagney <cagney@redhat.com>
1277 * frame.h: Mention what replaced what in "struct frame_info".
1278 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
1279 deprecated_update_frame_base_hack and
1280 deprecated_update_frame_pc_hack.
1281 * hppa-tdep.c: Ditto.
1283 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
1285 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
1286 to read_reg and update its comment. Remove regnum member.
1287 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
1288 Don't call read_reg when setting in_reg. Call read_reg to get
1289 the frame base if it's in a register. Return the register number
1290 on the stack instead of in the context. Remove extra arguments
1292 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
1293 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
1294 the register number on the expression stack.
1295 (needs_frame_read_reg): Remove extra arguments.
1297 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
1299 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
1301 (execute_stack_op): All callers updated.
1302 * dwarf2expr.h: Add prototype for dwarf2_read_address.
1303 * dwarf2loc.c (find_location_expression): New function.
1304 (dwarf_expr_frame_base): Call it.
1305 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
1306 (dwarf2_tracepoint_var_ref): New function, broken out from
1307 locexpr_tracepoint_var_ref.
1308 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
1310 (loclist_read_variable, loclist_read_needs_frame): New functions.
1311 (loclist_describe_location, loclist_tracepoint_var_ref): New
1313 (dwarf2_loclist_funcs): New struct location_funcs.
1314 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
1315 (struct dwarf2_locexpr_baton): Add comments.
1316 (dwarf2_loclist_funcs): New extern.
1317 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
1318 base_address and base_known.
1319 (dwarf_loc_buffer): New variable.
1320 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
1321 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
1322 (dwarf2_has_info): Initialize dwarf_loc_offset.
1323 (dwarf2_build_psymtabs): Read in .debug_loc.
1324 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
1326 (psymtab_to_symtab_1): Likewise. Move base address calculation
1328 (dwarf2_get_pc_bounds): ... here. Use the base address from
1330 (dwarf2_symbol_mark_computed): Handle location lists.
1332 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
1334 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
1335 if the linkage name demangled successfully.
1337 2003-04-13 Mark Kettenis <kettenis@gnu.org>
1339 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
1340 disassmbly_flavour): Removed.
1342 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
1344 2003-04-13 Mark Kettenis <kettenis@gnu.org>
1346 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
1348 2003-04-12 Andrew Cagney <cagney@redhat.com>
1350 * frame.h (struct frame_info): Move definition from here ...
1351 * frame.c (struct frame_info): ... to here.
1353 2003-04-12 Andrew Cagney <cagney@redhat.com>
1355 * gdbthread.h (save_infrun_state): Delete parameter
1357 (struct thread_info): Delete field "prev_func_start".
1358 (load_infrun_state): Ditto.
1359 * thread.c (load_infrun_state, save_infrun_state): Update.
1360 * infrun.c (prev_func_start): Delete variable.
1361 (context_switch, init_wait_for_inferior): Update.
1362 (stop_stepping, keep_going): Update.
1364 2003-04-12 Andrew Cagney <cagney@redhat.com>
1366 * gdbarch.sh: Add missing opaque declarations.
1367 * gdbarch.h: Regnerate.
1368 * symtab.h: Add missing opaque declarations.
1369 * value.h, target.h, symfile.h, stabsread.h: Ditto.
1370 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
1371 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
1372 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
1373 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
1374 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
1375 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
1376 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
1377 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
1378 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
1379 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
1380 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
1381 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
1383 2003-04-11 Andrew Cagney <cagney@redhat.com>
1385 * frame.c (get_frame_id): Return this frame's "id".
1386 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
1388 (legacy_saved_regs_this_id): Replace function body with
1390 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
1391 FRAME_OBSTACK_ZALLOC.
1392 (create_new_frame): Mark the frame ID as valid.
1394 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
1396 * Makefile.in (libbfd_h): Added missing setting.
1397 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
1398 according to the selected ABI.
1400 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
1402 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
1404 2003-04-11 Andrew Cagney <cagney@redhat.com>
1406 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
1407 SAVED_PC_AFTER_CALL.
1408 * gdbarch.h, gdbarch.c: Regenerate.
1409 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1410 * x86-64-tdep.c (x86_64_init_abi): Update.
1411 * vax-tdep.c (vax_gdbarch_init): Update.
1412 * v850-tdep.c (v850_gdbarch_init): Update.
1413 * sparc-tdep.c (sparc_gdbarch_init): Update.
1414 * sh-tdep.c (sh_gdbarch_init): Update.
1415 * s390-tdep.c (s390_gdbarch_init): Update.
1416 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1417 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1418 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1419 * mips-tdep.c (mips_gdbarch_init): Update.
1420 * mcore-tdep.c (mcore_gdbarch_init): Update.
1421 * m68k-tdep.c (m68k_gdbarch_init): Update.
1422 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1423 * ia64-tdep.c (ia64_gdbarch_init): Update.
1424 (ia64_saved_pc_after_call): Update declaration.
1425 * i386ly-tdep.c (i386lynx_init_abi): Update.
1426 * i386-tdep.c (i386_gdbarch_init): Update.
1427 * hppa-tdep.c (hppa_gdbarch_init): Update.
1428 * h8300-tdep.c (h8300_gdbarch_init): Update.
1429 * frv-tdep.c (frv_gdbarch_init): Update.
1430 * cris-tdep.c (cris_gdbarch_init): Update.
1431 * avr-tdep.c (avr_gdbarch_init): Update.
1432 * arm-tdep.c (arm_gdbarch_init): Update.
1433 * alpha-tdep.c (alpha_gdbarch_init): Update.
1434 * ns32knbsd-nat.c (frame_num_args): Update.
1435 * ns32k-tdep.c (umax_frame_num_args): Update.
1436 * mips-tdep.c (mips_init_frame_pc_first): Update.
1437 * infrun.c (step_over_function): Update.
1438 * i386-linux-tdep.c (skip_hurd_resolver): Update.
1439 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
1440 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
1441 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1442 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1443 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
1444 * arm-linux-tdep.c (skip_hurd_resolver): Update.
1445 * arch-utils.c (init_frame_pc_default): Update.
1446 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
1447 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
1450 2003-04-11 Andrew Cagney <cagney@redhat.com>
1452 * i387-tdep.c: Update copyright.
1453 (i387_to_double): Delete function.
1454 (double_to_i387): Delete function.
1456 2003-04-10 Andrew Cagney <cagney@redhat.com>
1458 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
1459 frame's function's address. Simplify.
1460 (d10v_frame_unwind_cache): Check that the frame's function is
1463 2003-04-10 Jim Blandy <jimb@redhat.com>
1465 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
1466 call to set_gdbarch_deprecated_push_arguments.
1468 2003-04-10 Andrew Cagney <cagney@redhat.com>
1470 * frame.c (fprint_frame_id): New function.
1471 (fprint_frame_type, fprint_frame): New function.
1472 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
1473 (create_sentinel_frame, get_frame_id): Ditto.
1474 (frame_id_p, frame_id_eq): Ditto.
1475 (frame_id_inner, create_new_frame): Ditto.
1476 (legacy_get_prev_frame, get_prev_frame): Ditto.
1477 (deprecated_update_frame_pc_hack): Ditto.
1478 (frame_register_unwind): Ditto.
1479 (deprecated_update_frame_base_hack): Ditto.
1481 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
1483 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
1484 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
1485 frame_chain function.
1486 * Makefile.in: Add dependencies due to above change.
1488 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
1490 * blockframe.c (legacy_frame_chain_valid): Move call to
1491 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
1494 2003-04-09 Andrew Cagney <cagney@redhat.com>
1496 * frame.h (struct frame_id): Replace "pc" and "base" with
1497 "stack_addr" and "code_addr". Update comments.
1498 (frame_id_build): Update parameter names and comment.
1499 (struct frame_info): Replace "id_p" and "id" with "this_id".
1500 * dummy-frame.c (dummy_frame_this_id): Update.
1501 * breakpoint.c (print_one_breakpoint): Update.
1502 * frame.c (get_frame_id): Update.
1503 (get_frame_base, frame_id_build): Update.
1504 (create_sentinel_frame, legacy_get_prev_frame): Update.
1505 (deprecated_update_frame_base_hack): Update.
1506 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
1507 (frame_id_inner): Ditto.
1509 2003-04-09 Andrew Cagney <cagney@redhat.com>
1511 * defs.h (gdb_print_host_address): Make "addr" parameter a
1513 * utils.c (gdb_print_host_address): Update.
1515 2003-04-09 Kevin Buettner <kevinb@redhat.com>
1517 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
1518 register number for R0 is 0.
1520 2003-04-09 J. Brobecker <brobecker@gnat.com>
1522 * frame.h (struct gdbarch): Add opaque structure definition
1523 to avoid a compilation warning on LynxOS 4.0.
1525 2003-04-09 Andrew Cagney <cagney@redhat.com>
1527 * frame.h (struct frame_info): Delete field "pc". Replace
1528 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
1530 * frame.c (frame_pc_unwind): Update.
1531 (create_sentinel_frame): Do not set "pc".
1532 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
1533 (get_frame_pc): Call frame_pc_unwind.
1534 (deprecated_update_frame_pc_hack): Update.
1535 (create_new_frame): Use "pc" not "->pc".
1537 2003-04-09 Andrew Cagney <cagney@redhat.com>
1539 * frame.c (get_frame_id): Eliminate code updating "frame".
1540 (legacy_get_prev_frame): Ditto.
1541 (get_frame_base): Return id.base directly.
1542 (deprecated_update_frame_base_hack): Update "id.base".
1543 * frame.h (struct frame_info): Delete field "frame".
1545 2003-04-09 Andrew Cagney <cagney@redhat.com>
1547 * NEWS: Mention that the "Sequent family" is obsolete.
1548 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
1549 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
1550 * configure.host: Obsolete i[3456]86-sequent-bsd*,
1551 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
1552 * config/i386/tm-ptx4.h: Obsolete file.
1553 * config/i386/tm-ptx.h: Obsolete file.
1554 * symm-tdep.c: Obsolete file.
1555 * config/i386/symmetry.mt: Obsolete file.
1556 * config/i386/tm-symmetry.h: Obsolete file.
1557 * symm-nat.c: Obsolete file.
1558 * config/i386/nm-symmetry.h: Obsolete file.
1559 * config/i386/xm-symmetry.h: Obsolete file.
1560 * config/i386/symmetry.mh: Obsolete file.
1561 * config/i386/nm-ptx4.h: Obsolete file.
1562 * config/i386/ptx4.mh: Obsolete file.
1563 * config/i386/ptx.mt: Obsolete file.
1564 * config/i386/ptx.mh: Obsolete file.
1565 * config/i386/xm-ptx4.h: Obsolete file.
1566 * config/i386/xm-ptx.h: Obsolete file.
1568 2003-04-09 Andrew Cagney <cagney@redhat.com>
1570 Obsolete mips*-*-mach3*.
1571 * NEWS: Mention that mips*-*-mach3* is obsolete.
1572 * m3-nat.c: Obsolete file.
1573 * config/nm-m3.h: Obsolete file.
1574 * config/mips/tm-mipsm3.h: Obsolete file.
1575 * config/mips/mipsm3.mt: Obsolete file.
1576 * config/mips/mipsm3.mh: Obsolete file.
1577 * config/mips/xm-mipsm3.h: Obsolete file.
1578 * mipsm3-nat.c: Obsolete file.
1579 * configure.host: Obsolete mips-dec-mach3*.
1580 * configure.tgt: Obsolete mips*-*-mach3*.
1582 2003-04-09 Andrew Cagney <cagney@redhat.com>
1584 * doublest.h: Update copyright.
1585 (deprecated_store_floating, deprecated_extract_floating): Rename
1586 store_floating and extract_floating. Update comments.
1587 * doublest.c: Update copyright.
1588 (extract_floating_by_length): Replace extract_floating.
1589 (store_floating_by_length): Replace store_floating.
1590 (deprecated_extract_floating): New function.
1591 (deprecated_store_floating): New function.
1592 (extract_typed_floating): Call extract_floating_by_length.
1593 (store_typed_floating): Call store_floating_by_length.
1594 * x86-64-tdep.c (x86_64_store_return_value): Update.
1595 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
1596 (sh64_extract_return_value): Update.
1597 (sh_sh4_register_convert_to_virtual): Update.
1598 (sh_sh64_register_convert_to_virtual): Update.
1599 (sh_sh4_register_convert_to_raw): Update.
1600 (sh_sh64_register_convert_to_raw): Update.
1601 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
1602 (rs6000_register_convert_to_raw): Update.
1603 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
1604 (ia64_register_convert_to_raw): Update.
1605 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
1606 (REGISTER_CONVERT_TO_VIRTUAL): Update.
1607 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
1608 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
1609 (alpha_register_convert_to_raw): Update.
1611 2003-04-08 Andrew Cagney <cagney@redhat.com>
1613 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
1614 * gdbarch.h, gdbarch.c: Re-generate.
1615 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
1616 (d10v_gdbarch_init): Do not set saved_pc_after_call.
1617 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
1618 conditionally, use frame_pc_unwind as an alternative. Add
1620 * arch-utils.c (init_frame_pc_default): Only call
1621 SAVED_PC_AFTER_CALL when available.
1623 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
1625 * infrun.c (stop_soon): Rename from stop_soon_quietly.
1626 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
1627 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
1628 (start_remote): Ditto.
1629 (handle_inferior_event): Ditto.
1630 (save_inferior_status): Ditto.
1631 (restore_inferior_status): Ditto.
1632 * infcmd.c (attach_command): Ditto.
1633 * fork-child.c (startup_inferior): Ditto.
1634 * inferior.h (stop_soon): Rename from stop_soon_quietly.
1635 * alpha-tdep.c (heuristic_proc_start): Ditto.
1636 * mips-tdep.c (heuristic_proc_start): Ditto.
1637 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
1638 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
1639 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
1640 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
1641 * remote-vx.c (vx_create_inferior): Ditto.
1643 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
1645 * infrun.c (stop_soon_quietly): Make it an enum, to better
1646 override the default behavior of handle_inferior_event.
1647 (clear_proceed_status): Update uses of stop_soon_quietly to
1648 reflect that it is now an enum.
1649 (start_remote): Ditto.
1650 (handle_inferior_event): Change logic a bit if stop_soon_quietly
1651 is set to handle the new GNU/Linux kernel behavior for
1652 attach/sigstop. Update uses of stop_soon_quietly.
1653 * inferior.h (enum stop_kind): New enum.
1654 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
1655 Reset normal handle_inferior_event behavior, afterwards.
1656 * fork-child.c (startup_inferior): Update.
1657 * alpha-tdep.c (heuristic_proc_start): Update.
1658 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1659 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
1660 * solib-osf.c (osf_solib_create_inferior_hook): Update.
1661 * solib-irix.c (irix_solib_create_inferior_hook): Update.
1662 * remote-vx.c (vx_create_inferior): Update.
1663 * mips-tdep.c (heuristic_proc_start): Update.
1665 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
1667 * disasm.c (dump_insns): Move variables inside loop, or they will
1668 be freed more than once, causing wild memory corruptions.
1669 (gdb_disassembly): Look for the substring "-thread",
1670 instead of "-threads" in the target name, to make sure to find
1671 the 'multi-thread' target. Also, make sure we do the right thing
1672 with the "core" target.
1674 2003-04-07 Kevin Buettner <kevinb@redhat.com>
1676 * mips-tdep.c (mips_print_fp_register): New function, created from
1677 do_fp_register_row(). Registers are now (also) printed as hex.
1678 Only one register is printed per row.
1679 (mips_print_register, do_fp_register_row): Print floating point
1680 registers with mips_print_fp_register().
1682 2003-04-06 Andrew Cagney <cagney@redhat.com>
1684 * valprint.h (inspect_it): Add extern declaration.
1685 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
1686 (selectors_info, classes_info): Ditto.
1687 (find_objc_msgcall): Fix indentation.
1688 (objc_printstr): Delete extern declarations.
1690 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
1692 2003-04-06 Andrew Cagney <cagney@redhat.com>
1694 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
1696 * frame.c (legacy_saved_regs_this_id): Update.
1697 (legacy_get_prev_frame): Update.
1698 * xstormy16-tdep.c: Update comment.
1699 * sparc-tdep.c (sparc_frame_chain): Update comment.
1700 * blockframe.c (legacy_frame_chain_valid): Update.
1702 2003-04-06 Andrew Cagney <cagney@redhat.com>
1704 * valprint.c (val_print_type_code_int): Delete #ifdef
1705 PRINT_TYPELESS_INTEGER code.
1707 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
1708 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
1709 multi-arch definition.
1710 * gdbarch.h: Re-generate.
1712 2003-04-05 Andrew Cagney <cagney@redhat.com>
1714 Eliminate FRAME_FIND_SAVED_REGS.
1715 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
1716 Change FSR parameter to a pointer.
1717 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
1718 Assume FSR parameter is a pointer.
1719 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
1721 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
1722 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
1723 saved_regs a pointer.
1724 (hppa_frame_saved_pc): Ditto.
1725 (find_dummy_frame_regs): Make frame_saved_regs a pointer
1726 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
1728 (restore_pc_queue): Make fsr a pointer.
1729 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
1730 (hppa_frame_chain): Make saved_regs a pointer, call
1731 hppa_frame_init_saved_regs.
1732 * sparc-tdep.c: Include "gdb_assert.h".
1733 (sparc_frame_find_saved_regs): Replace internal_error with
1735 * remote-vxsparc.c (vx_read_register): Delete reference to
1736 FRAME_FIND_SAVED_REGS.
1737 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
1738 * gdbarch.h: Regenerate.
1739 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
1740 (deprecated_get_frame_saved_regs): Delete declaration.
1741 (struct frame_saved_regs): Delete definition.
1742 * frame.c (deprecated_get_frame_saved_regs): Delete function.
1743 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
1744 (hppa_frame_find_saved_regs): Delete declaration.
1745 (FRAME_FIND_SAVED_REGS): Delete macro.
1746 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
1747 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
1748 FRAME_FIND_SAVED_REGS in comment.
1750 2003-04-05 Andrew Cagney <cagney@redhat.com>
1752 * frame.c (frame_func_unwind, get_frame_func): New functions.
1753 * frame.h (get_frame_func, frame_func_unwind): Declare.
1754 (struct frame_info): Add field "prev_func" for caching the
1755 previous frame's function address.
1756 * arm-tdep.c (arm_frameless_function_invocation): Combine
1757 get_pc_function_start and get_frame_pc into get_frame_func.
1758 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
1759 (sh64_nofp_frame_init_saved_regs): Ditto.
1760 * s390-tdep.c (s390_function_start): Ditto.
1761 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
1762 (rs6000_frameless_function_invocation): Ditto.
1763 (rs6000_frame_saved_pc): Ditto.
1764 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
1765 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
1766 * i386-tdep.c (i386_frameless_signal_p): Ditto.
1767 (i386_frame_init_saved_regs): Ditto.
1768 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
1769 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
1770 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
1771 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
1772 * blockframe.c (frameless_look_for_prologue): Ditto.
1774 2003-04-05 Andrew Cagney <cagney@redhat.com>
1776 * frame.c (legacy_get_prev_frame): Link prev to next at the
1777 function start. Update comments.
1779 2003-04-05 Andrew Cagney <cagney@redhat.com>
1781 * frame.c (get_frame_id): Update comment.
1782 (legacy_get_prev_frame): Update comment.
1783 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
1784 * gdbarch.h: Regenerate.
1785 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
1786 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
1788 2003-04-05 Andrew Cagney <cagney@redhat.com>
1790 * stack.c (print_frame_info): Use get_frame_pc.
1792 2003-04-04 Andrew Cagney <cagney@redhat.com>
1794 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
1795 the frame's type from the unwinder.
1796 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
1797 (create_new_frame, legacy_get_prev_frame): When the unwinder's
1798 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
1799 (get_frame_base_address): Use get_frame_type.
1800 (get_frame_locals_address, get_frame_args_address): Ditto.
1801 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
1802 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
1803 (struct frame_info): Add comment explaining why the frame contains
1805 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
1806 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
1807 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
1809 * frame-unwind.h: Include "frame.h".
1810 (struct frame_unwind): Add "type" field.
1811 * Makefile.in (frame_unwind_h): Add $(frame_h).
1813 2003-04-04 Andrew Cagney <cagney@redhat.com>
1815 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
1816 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
1817 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
1819 (d10v_unwind_dummy_id): Use frame_id_build.
1820 * frame.c (find_frame_sal): Use get_frame_pc.
1821 (create_new_frame): Use deprecated_update_frame_pc_hack and
1822 deprecated_update_frame_base_hack.
1823 (create_sentinel_frame): Add comment about ->pc going away.
1824 (get_prev_frame): Add comment about ->pc going away.
1825 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
1826 frame_id_build, deprecated_update_frame_pc_hack and
1827 deprecated_update_frame_base_hack.
1828 (select_frame): Use get_frame_pc.
1829 (legacy_saved_regs_this_id): Use frame_id_build.
1831 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
1833 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
1834 signed integer case.
1835 (classify_argument): Handle enumerations and references.
1837 2003-04-04 Andrew Cagney <cagney@redhat.com>
1839 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
1842 2003-04-01 Adam Fedor <fedor@gnu.org>
1844 * gdb/objc-lang.c (selectors_info): Replace calls to
1845 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
1846 SYMBOL_NATURAL_NAME.
1847 (classes_info, find_methods): Likewise.
1849 2003-04-03 Kevin Buettner <kevinb@redhat.com>
1851 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
1852 ``mach'' to the value determined by bfd_default_set_arch_mach().
1854 2003-04-02 Bob Rossi <bob_rossi@cox.net>
1856 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
1857 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
1858 (mi-cmd-file.o): Update dependencies.
1860 2003-04-01 Kevin Buettner <kevinb@redhat.com>
1862 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
1863 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
1865 2003-04-01 Adam Fedor <fedor@gnu.org>
1867 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
1868 * language.h (struct language_defn): Add la_demangle.
1869 (language_demangle): Declare.
1870 * language.c (language_demangle): New function.
1871 (unk_lang_demangle): Likewise.
1872 (unknown_language_defn, auto_language_defn, local_language_defn):
1873 Add ukn_lang_demangle.
1874 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
1875 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
1876 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
1877 (cplus_language_defn): Add cplus_demangle for la_demangle element.
1878 * jv-lang.c (java_demangle): New function
1879 (java_language_defn): Use it for la_demangle element.
1880 * objc-lang.c (objc_demangle): Add options argument
1881 (objc_language_defn): Use objc_demangle for la_demangle element.
1882 * maint.c (maintenance_demangle): Replace switch with
1883 call to language_demangle.
1884 * utils.c (fprintf_symbol_filtered): Likewise.
1886 2003-04-01 Andrew Cagney <cagney@redhat.com>
1888 * printcmd.c (print_frame_nameless_args): Delete #ifdef
1889 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
1890 PRINT_TYPELESS_INTEGER.
1891 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
1892 PUSH_RETURN_ADDRESS.
1894 2003-04-01 Andrew Cagney <cagney@redhat.com>
1896 * Makefile.in (d10v-tdep.o): Update dependencies.
1897 * d10v-tdep.c: Include "frame-base.h".
1898 (d10v_frame_unwind): Make constant.
1899 (d10v_frame_base_address): New function.
1900 (d10v_frame_base): New variable.
1901 (d10v_gdbarch_init): Set frame_base default.
1902 (struct d10v_unwind_cache): Add the field "prev_sp". Update
1904 (d10v_frame_unwind_cache): Set and use "prev_sp".
1905 (d10v_frame_this_id): Use the previous frame's inner most stack
1906 address and this frame's func address for the frame ID. Use
1907 frame_id_build. Don't analyze beyond the current instruction.
1909 2003-04-01 Andrew Cagney <cagney@redhat.com>
1911 * frame.h (get_frame_locals_address, get_frame_args_address):
1912 Refer to the base address, instead of the address of the first
1915 2003-04-01 Andrew Cagney <cagney@redhat.com>
1917 Add frame debug info addresses:
1918 * frame-base.c: New file.
1919 * frame-base.h: New file.
1920 * frame.h (struct frame_base): Add opaque declaration.
1921 (get_frame_base): Update comment.
1922 (get_frame_base_address): Declare.
1923 (get_frame_locals_address): Declare.
1924 (get_frame_args_address): Declare.
1925 (struct frame_info): Add "base" and "base_cache". Update
1926 comments on the unwinder.
1927 * frame.c: Include "frame-base.h".
1928 (get_frame_locals_address): New function.
1929 (get_frame_base_address): New function.
1930 (get_frame_args_address): New function.
1931 * findvar.c (read_var_value): Use get_frame_locals_address and
1932 get_frame_args_address.
1933 * stack.c (frame_info): Use get_frame_locals_address and
1934 get_frame_args_address.
1935 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
1936 moved to "frame-base.c".
1937 * printcmd.c (print_frame_nameless_args): Ditto.
1938 * symtab.h (address_class): Update comments.
1939 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
1940 get_frame_base_address.
1941 * dwarf2expr.c (execute_stack_op): Ditto.
1942 * Makefile.in (frame_base_h): Define.
1943 (frame.o): Update dependencies.
1944 (frame-base.o): Add dependencies.
1945 (SFILES): Add frame-base.c.
1946 (COMMON_OBS): Add frame-base.o.
1948 2003-04-01 Andrew Cagney <cagney@redhat.com>
1950 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
1951 CALL_DUMMY_LENGTH): Ditto.
1952 * gdbarch.c: Re-generate.
1953 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
1954 (CALL_DUMMY_LENGTH): Delete macro.
1955 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
1956 * arm-tdep.c (arm_gdbarch_init): Ditto.
1957 * avr-tdep.c (avr_gdbarch_init): Ditto.
1958 * cris-tdep.c (cris_gdbarch_init): Ditto.
1959 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1960 * frv-tdep.c (frv_gdbarch_init): Ditto.
1961 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1962 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
1963 * i386-tdep.c (i386_gdbarch_init): Ditto.
1964 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1965 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1966 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1967 * mips-tdep.c (mips_gdbarch_init): Ditto.
1968 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1969 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1970 * s390-tdep.c (s390_gdbarch_init): Ditto.
1971 * sh-tdep.c (sh_gdbarch_init): Ditto.
1972 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1973 * v850-tdep.c (v850_gdbarch_init): Ditto.
1974 * vax-tdep.c (vax_gdbarch_init): Ditto.
1975 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1977 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
1979 * frame.c (get_prev_frame): Disable call to inside_entry_file().
1981 2003-04-01 Andrew Cagney <cagney@redhat.com>
1983 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
1984 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
1985 * gdbarch.h, gdbarch.c: Re-generate.
1986 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
1987 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
1988 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
1989 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
1990 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
1991 * infcmd.c (run_stack_dummy): Simplify assuming
1992 CALL_DUMMY_BREAKPOINT_OFFSET_P.
1993 * infrun.c (handle_inferior_event): Ditto.
1994 * alpha-tdep.c (alpha_gdbarch_init): Do not set
1995 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
1996 * arm-tdep.c (arm_gdbarch_init): Ditto.
1997 * avr-tdep.c (avr_gdbarch_init): Ditto.
1998 * cris-tdep.c (cris_gdbarch_init): Ditto.
1999 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2000 * frv-tdep.c (frv_gdbarch_init): Ditto.
2001 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2002 * i386-tdep.c (i386_gdbarch_init): Ditto.
2003 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2004 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2005 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2006 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2007 * mips-tdep.c (mips_gdbarch_init): Ditto.
2008 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2009 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
2010 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2011 * s390-tdep.c (s390_gdbarch_init): Ditto.
2012 * sh-tdep.c (sh_gdbarch_init): Ditto.
2013 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2014 * v850-tdep.c (v850_gdbarch_init): Ditto.
2015 * vax-tdep.c (vax_gdbarch_init): Ditto.
2016 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
2018 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
2020 * symfile.c (symfile_relocate_debug_section): Update call to
2021 bfd_simple_get_relocated_section_contents.
2023 2003-03-31 Andrew Cagney <cagney@redhat.com>
2025 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
2026 * gdbarch.h, gdbarch.c: Regenerate.
2027 * inferior.h (FIX_CALL_DUMMY): Delete macro.
2028 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
2030 * frame.h (generic_fix_call_dummy): Delete declaration.
2031 * dummy-frame.h: Update comment.
2032 * dummy-frame.c (generic_fix_call_dummy): Delete function.
2033 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2035 * sh-tdep.c (sh_gdbarch_init): Ditto.
2036 * s390-tdep.c (s390_gdbarch_init): Ditto.
2037 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2038 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2039 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2040 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2041 * i386-tdep.c (i386_gdbarch_init): Ditto.
2042 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2043 * frv-tdep.c (frv_gdbarch_init): Ditto.
2044 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2045 * cris-tdep.c (cris_gdbarch_init): Ditto.
2046 * avr-tdep.c (avr_gdbarch_init): Ditto.
2047 * arm-tdep.c (arm_gdbarch_init): Ditto.
2049 2003-03-31 J. Brobecker <brobecker@gnat.com>
2051 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
2052 (INIT_FRAME_AP): Likewise.
2053 (EXTRA_FRAME_INFO): Likewise.
2055 2003-03-31 Andrew Cagney <cagney@redhat.com>
2057 * gdbarch.sh: Include "symfile.h".
2058 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
2059 * gdbarch.h, gdbarch.c: Re-generate.
2060 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
2061 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2062 call_dummy_address, the default is at entry_point_address.
2063 * v850-tdep.c (v850_gdbarch_init): Ditto.
2064 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2065 * sh-tdep.c (sh_gdbarch_init): Ditto.
2066 * s390-tdep.c (s390_gdbarch_init): Ditto.
2067 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2068 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2069 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2070 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2071 * i386-tdep.c (i386_gdbarch_init): Ditto.
2072 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2073 * frv-tdep.c (frv_gdbarch_init): Ditto.
2074 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2075 * cris-tdep.c (cris_gdbarch_init): Ditto.
2076 * arm-tdep.c (arm_gdbarch_init): Ditto.
2078 2003-03-31 Andrew Cagney <cagney@redhat.com>
2080 * gdbarch.sh (CALL_DUMMY_P): Delete.
2081 * gdbarch.h, gdbarch.c: Re-generate.
2082 * inferior.h (CALL_DUMMY_P): Delete macro.
2083 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2084 * vax-tdep.c (vax_gdbarch_init): Update.
2085 * v850-tdep.c (v850_gdbarch_init): Update.
2086 * sparc-tdep.c (sparc_gdbarch_init): Update.
2087 * sh-tdep.c (sh_gdbarch_init): Update.
2088 * s390-tdep.c (s390_gdbarch_init): Update.
2089 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2090 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2091 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2092 * mips-tdep.c (mips_gdbarch_init): Update.
2093 * mcore-tdep.c (mcore_gdbarch_init): Update.
2094 * m68k-tdep.c (m68k_gdbarch_init): Update.
2095 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2096 * ia64-tdep.c (ia64_gdbarch_init): Update.
2097 * i386-tdep.c (i386_gdbarch_init): Update.
2098 * h8300-tdep.c (h8300_gdbarch_init): Update.
2099 * frv-tdep.c (frv_gdbarch_init): Update.
2100 * d10v-tdep.c (d10v_gdbarch_init): Update.
2101 * cris-tdep.c (cris_gdbarch_init): Update.
2102 * breakpoint.c (deprecated_frame_in_dummy): Update.
2103 * avr-tdep.c (avr_gdbarch_init): Update.
2104 * alpha-tdep.c (alpha_gdbarch_init): Update.
2105 * arm-tdep.c (arm_gdbarch_init): Update.
2106 * dummy-frame.c (dummy_frame_this_id): Update comments.
2107 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
2108 * frame.c (legacy_get_prev_frame): Ditto.
2109 * valops.c (call_function_by_hand): Delete function.
2110 (hand_function_call): Rename to call_function_by_hand
2112 2003-03-30 Andrew Cagney <cagney@redhat.com>
2114 2002-11-10 Klee Dienes <kdienes@apple.com>
2115 * value.h (struct value): Update comment.
2117 2003-03-30 Andrew Cagney <cagney@redhat.com>
2119 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
2121 (d10v_gdbarch_init): Do not set fp_regnum.
2123 * frame.c (get_frame_base): Force ID initialization.
2124 (get_prev_frame): Move computation of the frame ID from here ...
2125 (get_frame_id): ... to here.
2126 (legacy_get_prev_frame): Mark the frame ID as valid.
2127 * frame.h (struct frame_info): Add field "id_p".
2129 2003-03-30 Mark Kettenis <kettenis@gnu.org>
2131 * i386-tdep.c (i386_store_struct_return): Removed.
2132 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
2134 2003-03-30 Andrew Cagney <cagney@redhat.com>
2136 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
2137 * gdbarch.h, gdbarch.c: Regenerate.
2138 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
2139 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
2140 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2141 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2142 * i386-tdep.c (i386_gdbarch_init): Ditto.
2143 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2144 * cris-tdep.c (cris_gdbarch_init): Ditto.
2145 * vax-tdep.c (vax_gdbarch_init): Ditto.
2146 * s390-tdep.c (s390_gdbarch_init): Ditto.
2147 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
2148 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2149 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2150 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
2151 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
2152 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
2153 * sparc-tdep.c (sparc_gdbarch_init): Update.
2154 * sh-tdep.c (sh_gdbarch_init): Update.
2155 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2156 * mips-tdep.c (mips_gdbarch_init): Update.
2157 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2158 * ia64-tdep.c (ia64_gdbarch_init): Update.
2159 * frv-tdep.c (frv_gdbarch_init): Update.
2160 * avr-tdep.c (avr_gdbarch_init): Update.
2161 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
2162 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
2163 instead of when push_dummy_call is not available.
2165 2003-03-30 Andrew Cagney <cagney@redhat.com>
2167 * infttrace.c: Include "gdbthread.h".
2168 (parent_attach_all): Fix function signature.
2169 (call_ptrace): Update call.
2170 * Makefile.in (infttrace.o): Update dependencies.
2172 2003-03-30 Andrew Cagney <cagney@redhat.com>
2174 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
2175 PUSH_RETURN_ADDRESS.
2176 * gdbarch.h, gdbarch.c: Regenerate.
2177 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2178 * x86-64-tdep.c (x86_64_init_abi): Update.
2179 * v850-tdep.c (v850_gdbarch_init): Update.
2180 * sparc-tdep.c (sparc_gdbarch_init): Update.
2181 * sh-tdep.c (sh_gdbarch_init): Update.
2182 * s390-tdep.c (s390_gdbarch_init): Update.
2183 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2184 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2185 * mips-tdep.c (mips_gdbarch_init): Update.
2186 * mcore-tdep.c (mcore_gdbarch_init): Update.
2187 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2188 * ia64-tdep.c (ia64_gdbarch_init): Update.
2189 * i386-tdep.c (i386_gdbarch_init): Update.
2190 * h8300-tdep.c (h8300_gdbarch_init): Update.
2191 * frv-tdep.c (frv_gdbarch_init): Update.
2192 * cris-tdep.c (cris_gdbarch_init): Update.
2193 * avr-tdep.c (avr_gdbarch_init): Update.
2194 * arm-tdep.c (arm_gdbarch_init): Update.
2195 * valops.c (hand_function_call): Update.
2197 2003-03-29 Andrew Cagney <cagney@redhat.com>
2199 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
2200 sizeof_call_dummy_words.
2201 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
2203 * gdbarch.h: Regenerate.
2205 2003-03-29 Andrew Cagney <cagney@redhat.com>
2207 * infttrace.h: New file.
2208 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
2209 (hpread_get_textlow): Detect an uninitialized dn_bufp.
2210 (hpread_read_doc_function_type): Detect an initialized type1.
2211 (hpread_quick_traverse): Initialize mod_name_string.
2212 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
2213 (som_solib_get_solib_by_pc): Declare.
2214 (so_lib_thread_start_addr): Declare.
2215 (no_shared_libraries): Declare.
2216 * somread.c (init_import_symbols): Make static. Add forward
2218 * config/pa/nm-hppah.h: Include "infttrace.h" for
2220 (hppa_insert_hw_watchpoint): Declare.
2221 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
2222 * hppah-nat.c: Include "gdb_string.h".
2223 (parent_attach_all): Delete extern declaration, moved to
2225 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
2227 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
2228 * Makefile.in (infttrace_h): Define.
2229 (hpread.o): Update dependencies.
2230 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
2231 * hppa-hpux-tdep.c: Include "gdb_string.h".
2232 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
2233 * infrun.c (handle_inferior_event): Always initialize
2234 stepped_after_stopped_by_watchpoint. Add default and remove
2235 fallthrough in switch statement.
2236 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
2238 (hppa_remove_hw_watchpoint): Ditto.
2240 2003-03-29 Andrew Cagney <cagney@redhat.com>
2242 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
2245 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
2247 * arm-tdep.c (arm_push_arguments): Delete.
2248 (struct stack_item): New type.
2249 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
2250 (arm_store_struct_return): Delte.
2251 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
2252 arm_push_arguments or arm_store_struct_return.
2254 2003-03-28 Andrew Cagney <cagney@redhat.com>
2256 * Makefile.in (d10v-tdep.o): Update dependencies.
2257 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
2258 * d10v-tdep.c: Include "remote.h".
2259 (target_resume_hook): Delete extern declaration.
2260 (target_wait_loop_hook): Ditto.
2261 (tdisassemble_command): Eliminate assignment in "if" conditional.
2262 (d10v_ts2_register_sim_regno): Eliminate call to
2263 legacy_register_sim_regno.
2264 (d10v_ts3_register_sim_regno): Ditto.
2266 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
2268 * thread.c: Reindented.
2270 * linux-proc.c: Ditto.
2272 2003-03-28 Bob Rossi <bob_rossi@cox.net>
2274 * MAINTAINERS (write after approval): Add myself.
2276 2003-03-27 Theodore A. Roth <troth@openavr.org>
2278 * objc-exp.y: Add missing semi-colons.
2280 2003-03-27 Andrew Cagney <cagney@redhat.com>
2282 * regcache.c (write_sp): Delete function and references.
2283 * inferior.h (write_sp): Delete declaration.
2284 * valops.c (hand_function_call): Replace write_sp with
2286 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
2287 (sparc_pop_frame): Ditto.
2289 2003-03-27 Andrew Cagney <cagney@redhat.com>
2291 * NEWS: Mention removal of support for hppa*-*-bsd* and
2292 hppa*-*-osf* natives, and hppa*-*-pro* target.
2293 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
2294 * config/pa/xm-pa.h: Obsolete file.
2295 * config/pa/xm-hppab.h: Obsolete file.
2296 * config/pa/nm-hppab.h: Obsolete file.
2297 * config/pa/tm-hppab.h: Obsolete file.
2298 * config/pa/tm-hppao.h: Obsolete file.
2299 * config/pa/nm-hppao.h: Obsolete file.
2300 * config/pa/tm-pro.h: Obsolete file.
2301 * config/pa/hppaosf.mt: Obsolete file.
2302 * config/pa/hppaosf.mh: Obsolete file.
2303 * config/pa/hppapro.mt: Obsolete file.
2304 * config/pa/hppabsd.mt: Obsolete file.
2305 * config/pa/hppabsd.mh: Obsolete file.
2306 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
2307 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
2310 2003-03-27 Andrew Cagney <cagney@redhat.com>
2312 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
2313 push_arguments. Don't set push_return_address or write_sp.
2314 (d10v_push_dummy_call): Replace d10v_push_arguments.
2315 (d10v_push_return_address, d10v_write_sp): Delete function,
2316 handled by push_dummy_call.
2318 2003-03-26 Andrew Cagney <cagney@redhat.com>
2320 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
2321 (push_dummy_call): New pure multi-arch replacement with gdbarch,
2322 regcache and dummy_addr parameters.
2323 * gdbarch.h, gdbarch.c: Re-generate.
2324 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
2325 available; assume it will handle stack alignment and return
2326 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
2327 legacy_push_arguments.
2328 (legacy_push_arguments): Rename default_push_arguments.
2329 * value.h (legacy_push_arguments): Rename default_push_arguments.
2330 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
2331 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
2332 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
2333 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
2334 * config/i386/tm-symmetry.h: Update.
2335 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2336 * x86-64-tdep.c (x86_64_init_abi): Update.
2337 * v850-tdep.c (v850_gdbarch_init): Update.
2338 * sparc-tdep.c (sparc_gdbarch_init): Update.
2339 * sh-tdep.c (sh_gdbarch_init): Update.
2340 * s390-tdep.c (s390_gdbarch_init): Update.
2341 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2342 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2343 * mips-tdep.c (mips_gdbarch_init): Update.
2344 * mcore-tdep.c (mcore_gdbarch_init): Update.
2345 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2346 * ia64-tdep.c (ia64_gdbarch_init): Update.
2347 * i386-tdep.c (i386_gdbarch_init): Update.
2348 * hppa-tdep.c (hppa_gdbarch_init): Update.
2349 * h8300-tdep.c (h8300_gdbarch_init): Update.
2350 * frv-tdep.c (frv_gdbarch_init): Update.
2351 * d10v-tdep.c (d10v_gdbarch_init): Update.
2352 * cris-tdep.c (cris_gdbarch_init): Update.
2353 * avr-tdep.c (avr_gdbarch_init): Update.
2354 * arm-tdep.c (arm_gdbarch_init): Update.
2355 * arm-linux-tdep.c (arm_linux_init_abi): Update.
2356 * alpha-tdep.c (alpha_gdbarch_init): Update.
2358 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
2360 * signals/signals.c (do_target_signal_to_host): Correct realtime
2363 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
2365 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
2366 (struct sal_chain, map_catch_names): Remove.
2367 (catch_exception_command_1): Don't call
2368 handle_gnu_4_16_catch_command.
2370 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
2372 From Mark Dettinger <dettinge@de.ibm.com>:
2373 * dwarf2cfi.c (read_2u): Increment pointer by two.
2375 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
2377 * signals/signals.c: Fix typos in last change.
2379 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
2381 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
2382 not already defined. Use __SIGRTMIN if available.
2383 (target_signal_from_host): Remove SIGRTMIN block.
2384 (do_target_signal_to_host): Remove SIGRTMIN block; check that
2385 the signal is within the realtime range.
2387 2003-03-25 Adam Fedor <fedor@gnu.org>
2389 * Makefile.in (infrun.o): Add $(language_h)
2390 * infrun.c (handle_inferior_event): Use skip_language_trampoline
2391 for language specific trampolines.
2392 * language.h (struct language_defn): Add skip_trampoline.
2393 (skip_language_trampoline): Declare.
2394 * language.c (unk_lang_trampoline, skip_language_trampoline):
2396 (unknown_language_defn, auto_language_defn, local_language_defn):
2397 Add ukn_lang_trampoline.
2398 * ada-lang.c (ada_language_defn): Add NULL for language
2399 specific skip_trampoline.
2400 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
2401 scm-lang.c: Likewise.
2402 * objc-lang.c (objc_skip_trampoline): New function.
2403 (objc_language_defn): Add objc_skip_trampoline.
2405 2003-03-25 Andrew Cagney <cagney@redhat.com>
2407 * frame.c (get_prev_frame): Delay validating a frame's ID -
2408 non-NULL, didn't go backwards - until an attempt to unwind it to
2411 2003-03-25 Andrew Cagney <cagney@redhat.com>
2413 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
2414 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
2415 * gdbarch.h, gdbarch.c: Re-generate.
2416 * config/sparc/tm-sparc.h
2417 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
2418 * sparc-tdep.c (sparc_gdbarch_init): Set
2419 deprecated_extra_stack_alignment_needed.
2420 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
2421 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
2422 extra_stack_alignment_needed.
2423 * v850-tdep.c (v850_gdbarch_init): Ditto.
2424 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
2425 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2426 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2427 * cris-tdep.c (cris_gdbarch_init): Ditto.
2428 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2429 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2431 2003-03-25 Andrew Cagney <cagney@redhat.com>
2433 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
2434 STORE_STRUCT_RETURN.
2435 * gdbarch.h, gdbarch.c: Regenerate.
2436 * d10v-tdep.c (d10v_store_struct_return): Delete function.
2437 (d10v_push_arguments): Set the struct return register.
2438 (d10v_gdbarch_init): Update.
2439 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2440 * x86-64-tdep.c (x86_64_init_abi): Update.
2441 * vax-tdep.c (vax_gdbarch_init): Update.
2442 * v850-tdep.c (v850_gdbarch_init): Update.
2443 * sparc-tdep.c (sparc_gdbarch_init): Update.
2444 * sh-tdep.c (sh_gdbarch_init): Update.
2445 * s390-tdep.c (s390_gdbarch_init): Update.
2446 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2447 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2448 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2449 * mips-tdep.c (mips_gdbarch_init): Update.
2450 * mcore-tdep.c (mcore_gdbarch_init): Update.
2451 * m68k-tdep.c (m68k_gdbarch_init): Update.
2452 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2453 * ia64-tdep.c (ia64_gdbarch_init): Update.
2454 * i386-tdep.c (i386_gdbarch_init): Update.
2455 * hppa-tdep.c (hppa_gdbarch_init): Update.
2456 * h8300-tdep.c (h8300_gdbarch_init): Update.
2457 * frv-tdep.c (frv_gdbarch_init): Update.
2458 * cris-tdep.c (cris_gdbarch_init): Update.
2459 * avr-tdep.c (avr_gdbarch_init): Update.
2460 * arm-tdep.c (arm_gdbarch_init): Update.
2461 * alpha-tdep.c (alpha_gdbarch_init): Update.
2463 2003-03-25 Andrew Cagney <cagney@redhat.com>
2465 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
2466 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
2467 CALL_DUMMY_STACK_ADJUST with a predicate variable.
2468 * gdbarch.h, gdbarch.c: Regenerate.
2469 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2470 call_dummy_stack_adjust_p.
2471 * vax-tdep.c (vax_gdbarch_init): Ditto.
2472 * v850-tdep.c (v850_gdbarch_init): Ditto.
2473 * sh-tdep.c (sh_gdbarch_init): Ditto.
2474 * s390-tdep.c (s390_gdbarch_init): Ditto.
2475 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2476 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
2477 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2478 * mips-tdep.c (mips_gdbarch_init): Ditto.
2479 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2480 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2481 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2482 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2483 * i386-tdep.c (i386_gdbarch_init): Ditto.
2484 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2485 * frv-tdep.c (frv_gdbarch_init): Ditto.
2486 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2487 * cris-tdep.c (cris_gdbarch_init): Ditto.
2488 * avr-tdep.c (avr_gdbarch_init): Ditto.
2489 * arm-tdep.c (arm_gdbarch_init): Ditto.
2490 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2491 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
2492 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
2493 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
2494 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
2495 call_dummy_stack_adjust_p.
2496 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
2497 (CALL_DUMMY_STACK_ADJUST): Delete macro.
2498 * sparc-tdep.c (sparc32_push_arguments): Update.
2499 * valops.c (hand_function_call): Update.
2501 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
2503 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
2504 set_gdbarch_char_signed.
2506 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
2509 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
2511 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
2513 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
2514 (_initialize_arm_tdep): Don't set tm_print_insn.
2516 2003-03-24 Adam Fedor <fedor@gnu.org>
2518 * Makefile.in (YYOBJ): Add objc-exp.tab.o
2519 * objc-lang.h: Add multiple inclusion protection.
2520 (start_msglist, add_msglist, end_msglist): Additional declarations.
2522 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
2524 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
2525 value was renamed to ARM_FLOAT_SOFT_FPA.
2527 2003-03-23 Andrew Cagney <cagney@redhat.com>
2529 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
2530 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
2531 * gdbarch.h, gdbarch.c: Regenerate.
2532 * valops.c (hand_function_call): Update.
2533 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
2534 * frame.c (legacy_saved_regs_this_id): Update.
2535 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
2536 * dummy-frame.h: Update.
2537 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
2538 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
2539 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
2540 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
2541 * config/m68k/tm-sun3.h: Update.
2542 * blockframe.c (inside_main_func, frame_chain_valid): Update.
2543 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2544 * x86-64-tdep.c (x86_64_init_abi): Update.
2545 * vax-tdep.c (vax_gdbarch_init): Update.
2546 * v850-tdep.c (v850_gdbarch_init): Update.
2547 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
2548 * sh-tdep.c (sh_gdbarch_init): Update.
2549 * s390-tdep.c (s390_gdbarch_init): Update.
2550 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2551 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
2552 (frame_get_saved_regs): Update.
2553 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
2554 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2555 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2556 * mips-tdep.c (mips_gdbarch_init): Update.
2557 * mcore-tdep.c (mcore_gdbarch_init): Update.
2558 * m68k-tdep.c (m68k_gdbarch_init): Update.
2559 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2560 * ia64-tdep.c (ia64_gdbarch_init): Update.
2561 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
2562 * i386-interix-tdep.c (i386_interix_init_abi): Update.
2563 (i386_interix_back_one_frame): Update.
2564 * hppa-tdep.c (hppa_gdbarch_init): Update.
2565 (hppa_init_extra_frame_info): Update.
2566 * h8300-tdep.c (h8300_gdbarch_init): Update.
2567 * frv-tdep.c (frv_gdbarch_init): Update.
2568 * cris-tdep.c (cris_gdbarch_init): Update.
2569 * avr-tdep.c (avr_gdbarch_init): Update.
2570 * arm-tdep.c (arm_gdbarch_init): Update.
2571 * alpha-tdep.c (alpha_gdbarch_init): Update.
2573 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
2575 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
2576 (arm_get_fp_model): Declare.
2577 * arm-tdep.c (fp_model_strings): New string array.
2578 (arm_fp_model, current_fp_model): New variables.
2579 (arm_get_fp_model): New function.
2580 (arm_set_fp): New function.
2581 (set_fp_model_sfunc): New function.
2582 (show_fp_model): New function.
2583 (_initialize_arm_tdep): Add new command to set/show the FPU.
2584 (arm_extract_return_value): Use arm_get_fp_model.
2585 (arm_store_return_value): Likewise.
2586 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
2587 to initialize the floating-point data types.
2588 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
2591 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
2593 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
2594 the current setting of each value.
2595 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
2596 new_set and new_show. Use add_setshow_cmd_full and
2597 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
2598 commands and add new version as subcommands of "set/show arm".
2600 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
2602 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
2603 (set_arm_command, show_arm_command): New functions.
2604 (_initialize_arm_tdep): Add them.
2605 (num_disassembly_options): Renamed from num_flavor_options.
2606 (valid_disassembly_styles): Renamed from valid_flavors.
2607 (disassembly_style): Renamed from disassembly_flavor.
2608 (set_disassembly_style_sfunc): Renamed from
2609 set_disassembly_flavor_sfunc.
2610 (set_disassembly_style): Renamed from set_disassembly_flavor.
2611 (arm_othernames): Updated.
2612 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
2613 command. Add "set/show arm disassembly" commands. Deprecate
2614 "othernames" command.
2616 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
2618 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
2619 (arm-tdep.o): Depend on elf_arm_h.
2621 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
2623 * Makefile.in (coff_internal_h): Define.
2624 (arm-tdep.o): Update dependencies.
2626 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
2628 * arm-tdep.c (prologue_cache): Delete.
2629 (check_prologue_cache, save_prologue_cache): Delete.
2630 (arm_scan_prologue): Don't check or update the prologue_cache.
2631 (arm_gdb_arch_init): Don't initialize it.
2632 (_initialize_arm_tdep): Likewise.
2634 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
2636 * MAINTAINERS (tui): Maintainer of tui code.
2638 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
2640 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
2641 (i386-cygwin-tdep.o): Add dependencies.
2642 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
2643 * i386-cygwin-tdep.c: New file.
2644 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
2645 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
2647 2003-03-20 Andrew Cagney <cagney@redhat.com>
2649 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
2650 (handle_inferior_event): Remove code calling
2651 DYNAMIC_TRAMPOLINE_NEXTPC.
2653 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
2654 already has a full path.
2656 * main.c (gdb_main): Return 1.
2657 (captured_main): Call error to report an invalid interpreter.
2659 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
2660 * alpha-osf1-tdep.c: Include "gdb_string.h".
2662 2003-03-19 J. Brobecker <brobecker@gnat.com>
2664 Continuing work to convert the hppa targets to multiarch partial.
2666 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
2667 method, now that hppa_push_dummy_frame has a conformant prototype.
2668 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
2669 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
2670 for the switch to multiarch partial.
2672 2003-03-19 Kevin Buettner <kevinb@redhat.com>
2674 * mdebugread.c (parse_symbol): For stEnd, we're done counting
2675 when iss is issNull.
2677 2003-03-18 Kevin Buettner <kevinb@redhat.com>
2679 * mips-tdep.c (mips_register_name): Fix fencepost error involving
2680 NUM_REGS bounds check.
2682 2003-03-18 Kevin Buettner <kevinb@redhat.com>
2684 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
2685 * mips-tdep.c (gdb_assert.h): Include.
2686 (mips_generic_reg_names, mips_processor_reg_names): Make static.
2687 (mips_register_name): Handle integer registers explicitly. Add
2689 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
2690 (mips_lsi33k_reg_names): Don't list integer registers; they're
2691 handled by mips_register_name() now.
2692 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
2693 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
2694 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
2695 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
2696 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
2698 2003-03-18 Andrew Cagney <cagney@redhat.com>
2700 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
2702 * gdbtypes.h (print_scalar_formatted): Update declaration.
2703 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
2705 2003-03-18 J. Brobecker <brobecker@gnat.com>
2707 * infrun.c (observer.h): Add #include.
2708 (normal_stop): Add call to observer_notify_normal_stop.
2709 * Makefile.in (infrun.o): Add dependency on observer.h.
2711 2003-03-18 J. Brobecker <brobecker@gnat.com>
2713 Continuing work to convert the hppa targets to multiarch partial.
2714 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
2715 parameter. Reformat comment.
2716 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
2717 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
2718 to match new profile.
2720 2003-03-18 J. Brobecker <brobecker@gnat.com>
2722 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
2723 appear to be working in any case.
2725 2003-03-18 J. Brobecker <brobecker@gnat.com>
2727 * observer.c (observer_test_first_observer): New static variable.
2728 (observer_test_second_observer): Likewise.
2729 (observer_test_third_observer): Likewise.
2730 (observer_test_first_notification_function): New static function.
2731 (observer_test_second_notification_function): Likewise.
2732 (observer_test_third_notification_function): Likewise.
2734 2003-03-17 J. Brobecker <brobecker@gnat.com>
2736 * hppa-tdep.c (gdb_assert.h): Add missing #include.
2737 * somsolib.c (gdb_assert.h): Likewise.
2738 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
2739 (somsolib.o): Likewise.
2741 2003-03-17 Andrew Cagney <cagney@redhat.com>
2743 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
2744 BFD. Simplify setting of di.endian.
2746 2003-03-17 Andrew Cagney <cagney@redhat.com>
2748 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
2749 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
2751 From Elena Zannoni <ezannoni@redhat.com>
2752 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
2753 vector and floating-point parameters.
2754 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
2756 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
2758 2003-03-17 Fernando Nasser <fnasser@redhat.com>
2760 * MAINTAINERS: Remove my name from several maintainership roles.
2762 2003-03-17 Andrew Cagney <cagney@redhat.com>
2764 Fix frame off-by-one bug.
2765 * frame-unwind.h (frame_this_id_ftype): Replace
2766 frame_unwind_id_ftype.
2767 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
2768 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
2769 with "prev_register".
2770 * frame-unwind.c (frame_unwind_find_by_pc): Return
2771 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
2773 * dummy-frame.c (cached_find_dummy_frame): Delete function.
2774 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
2775 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
2776 (dummy_frame_unwind): Update.
2777 * sentinel-frame.c (sentinel_frame_prev_register): Replace
2778 sentinel_frame_register_unwind.
2779 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
2780 (sentinel_frame_unwinder): Update.
2781 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
2782 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
2783 * frame.c (create_sentinel_frame): Update. Initialize
2784 "prologue_cache" instead of "unwind_cache".
2785 (frame_register_unwind): Call this frame's prev_register with the
2786 next frame and this frame's prologue cache.
2787 (get_prev_frame): Simplify. Always call prev frame's this_id with
2788 this frame and prev frame's prologue cache. Document that this
2789 call is shifted one to the left when compared to the
2790 frame_register_unwind call.
2791 (legacy_saved_regs_prev_register): Replace
2792 frame_saved_regs_register_unwind.
2793 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
2794 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
2795 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
2796 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
2797 (d10v_frame_unwind): Update.
2798 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
2799 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
2800 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
2801 "saved_regs" with "this_saved_regs".
2803 2003-03-16 Andrew Cagney <cagney@redhat.com>
2805 * frame.c (frame_pop): Don't call target_store_registers. Fix
2806 problem reported by Mark Kettenis.
2808 2003-03-16 Mark Kettenis <kettenis@gnu.org>
2810 * i386-tdep.c (i386_register_type): Renamed from
2811 i386_register_virtual_type. Adjust function signature.
2812 (i386_gdbarch_init): Set register_type instead of
2813 deprecated_max_register_raw_size,
2814 deprecated_max_register_virtual_size and register_virtual_type.
2816 2003-03-14 Andrew Cagney <cagney@redhat.com>
2818 * frame.c (get_prev_frame): When a legacy frame, always call
2819 legacy_get_prev_frame. Simplify unwind code using assumption that
2820 the unwinder is new.
2821 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
2822 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
2823 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
2825 2003-03-14 Andrew Cagney <cagney@redhat.com>
2827 * frame.c (get_saved_register): Delete function.
2828 * frame.h (get_saved_register): Delete declaration.
2829 * xstormy16-tdep.c: Update comment.
2830 * regcache.h: Update comments.
2831 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
2832 get_saved_register and extract_address, use
2833 frame_read_unsigned_register.
2834 (sparc_frame_saved_pc): Ditto.
2835 (sparc_get_saved_register): Instead of get_saved_register, use
2837 (sparc_pop_frame): Ditto.
2838 * findvar.c: Update comments.
2839 (value_of_register): Call frame_register instead of
2841 (value_from_register): Ditto.
2842 * config/sparc/tm-sparc.h: Update comment.
2843 * breakpoint.c: Update comment.
2845 2003-03-14 Andrew Cagney <cagney@redhat.com>
2847 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
2849 * gdbarch.h, gdbarch.c: Re-generate.
2850 * frame.h: Update comments.
2851 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2852 * x86-64-tdep.c (x86_64_init_abi): Update.
2853 * sparc-tdep.c (sparc_gdbarch_init): Update.
2854 * sh-tdep.c (sh_gdbarch_init): Update.
2855 * mips-tdep.c (mips_gdbarch_init): Update.
2856 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2857 * cris-tdep.c (cris_gdbarch_init): Update.
2858 * ia64-tdep.c (ia64_gdbarch_init): Update.
2859 * frame.c (frame_register): Update.
2860 (get_saved_register): Update.
2861 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
2863 2003-03-13 Andrew Cagney <cagney@redhat.com>
2865 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
2866 * gdbarch.h, gdbarch.c: Regenerate.
2867 * valops.c (hand_function_call): Update comment.
2868 * stack.c (return_command): Update comment.
2869 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
2870 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
2871 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2872 * x86-64-tdep.c (x86_64_init_abi): Update.
2873 * vax-tdep.c (vax_gdbarch_init): Update.
2874 * v850-tdep.c (v850_gdbarch_init): Update.
2875 * sparc-tdep.c (sparc_gdbarch_init): Update.
2876 * sh-tdep.c (sh_gdbarch_init): Update.
2877 * s390-tdep.c (s390_gdbarch_init): Update.
2878 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2879 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2880 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2881 * mips-tdep.c (mips_gdbarch_init): Update.
2882 * mcore-tdep.c (mcore_gdbarch_init): Update.
2883 * m68k-tdep.c (m68k_gdbarch_init): Update.
2884 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2885 * ia64-tdep.c (ia64_gdbarch_init): Update.
2886 * i386-tdep.c (i386_gdbarch_init): Update.
2887 * hppa-tdep.c (hppa_gdbarch_init): Update.
2888 * h8300-tdep.c (h8300_gdbarch_init): Update.
2889 * frv-tdep.c (frv_gdbarch_init): Update.
2890 * cris-tdep.c (cris_gdbarch_init): Update.
2891 * avr-tdep.c (avr_gdbarch_init): Update.
2892 * arm-tdep.c (arm_gdbarch_init): Update.
2893 * alpha-tdep.c (alpha_gdbarch_init): Update.
2895 2003-03-13 Andrew Cagney <cagney@redhat.com>
2897 * frame.c (legacy_frame_p): New function.
2898 (get_prev_frame): Use legacy_frame_p.
2899 * frame.h (legacy_frame_p): Declare.
2901 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
2903 * MAINTAINERS (write after approval): Alphabetically
2906 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
2908 * MAINTAINERS (write after approval): Add myself.
2910 2003-03-12 Andrew Cagney <cagney@redhat.com>
2912 * frame.c (get_prev_frame): Rename the frame parameter to
2914 (get_next_frame, legacy_get_prev_frame): Ditto.
2916 2003-03-12 Andrew Cagney <cagney@redhat.com>
2918 * frame.c (get_current_frame): Check target_has_registers before
2919 checking target_has_stack.
2920 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
2921 instead of deprecated_selected_frame.
2922 * findvar.c (value_of_register): Pass "frame", not
2923 deprecated_selected_frame, to value_of_builtin_reg.
2925 2003-03-12 Andrew Cagney <cagney@redhat.com>
2927 * regcache.c (regcache_cooked_write_signed): New function.
2928 (regcache_cooked_write_unsigned): New function.
2929 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
2930 (regcache_cooked_read_signed): Fix regnum in range assertion.
2931 * regcache.h (regcache_cooked_write_signed): Declare.
2932 (regcache_cooked_write_unsigned): Declare.
2934 2003-03-12 Andrew Cagney <cagney@redhat.com>
2936 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
2937 * gdbarch.h, gdbarch.c: Re-generate.
2938 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2939 * x86-64-tdep.h: Update.
2940 * x86-64-tdep.c (x86_64_init_abi): Update.
2941 * v850-tdep.c (v850_gdbarch_init): Update.
2942 * sparc-tdep.c (sparc_gdbarch_init): Update.
2943 * sh-tdep.c (sh_gdbarch_init): Update.
2944 * s390-tdep.c (s390_gdbarch_init): Update.
2945 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2946 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
2947 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2948 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2949 * mips-tdep.c (mips_gdbarch_init): Update.
2950 * mcore-tdep.c (mcore_gdbarch_init): Update.
2951 * m68k-tdep.c (m68k_gdbarch_init): Update.
2952 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2953 * ia64-tdep.c (ia64_gdbarch_init): Update.
2954 * i386-tdep.c (i386_gdbarch_init): Update.
2955 * i386-interix-tdep.c (i386_interix_init_abi): Update.
2956 * hppa-tdep.c (hppa_gdbarch_init): Update.
2957 * h8300-tdep.c (h8300_gdbarch_init): Update.
2958 * frv-tdep.c (frv_gdbarch_init): Update.
2959 * cris-tdep.c (cris_gdbarch_init): Update.
2960 * avr-tdep.c (avr_gdbarch_init): Update.
2961 * arm-tdep.c (arm_gdbarch_init): Update.
2962 * alpha-tdep.c (alpha_gdbarch_init): Update.
2963 * sh-tdep.c (sh_init_extra_frame_info): Update.
2964 (sh64_init_extra_frame_info): Update.
2965 * ns32knbsd-nat.c (frame_num_args): Update.
2966 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
2967 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
2968 (xstormy16_frame_chain_valid): Update.
2969 * vax-tdep.c (vax_saved_pc_after_call): Update.
2970 * v850-tdep.c (v850_frame_chain): Update.
2971 (v850_pop_frame): Update.
2972 (v850_init_extra_frame_info): Update.
2973 * sparc-tdep.c (setup_arbitrary_frame): Update.
2974 * ns32k-tdep.c (umax_frame_num_args): Update.
2975 * s390-tdep.c (s390_pop_frame_regular): Update.
2976 * mn10300-tdep.c (mn10300_frame_chain): Update.
2977 (mn10300_pop_frame_regular): Update.
2978 (mn10300_init_extra_frame_info): Update.
2979 * mips-tdep.c (mips_init_frame_pc_first): Update.
2980 (mips_frame_chain): Update.
2981 (mips_pop_frame): Update.
2982 * mcore-tdep.c (mcore_frame_chain): Update.
2983 (mcore_pop_frame): Update.
2984 (mcore_init_extra_frame_info): Update.
2985 * arch-utils.c (init_frame_pc_default): Update.
2986 * m68k-tdep.c (isi_frame_num_args): Update.
2987 (delta68_frame_num_args): Update.
2988 (news_frame_num_args): Update.
2989 * ia64-tdep.c (ia64_pop_frame_regular): Update.
2990 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
2991 (alpha_frame_chain): Update.
2992 (alpha_pop_frame): Update.
2993 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
2994 (hppa_init_extra_frame_info): Update.
2995 (hppa_frame_chain): Update.
2996 (hppa_frame_chain_valid): Update.
2997 * cris-tdep.c (cris_init_extra_frame_info): Update.
2998 * avr-tdep.c (avr_init_extra_frame_info): Update.
2999 * arm-tdep.c (arm_frame_chain_valid): Update.
3000 (arm_init_extra_frame_info): Update.
3001 (arm_pop_frame): Update.
3002 * frame.c (frame_pc_unwind): Update.
3003 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
3004 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
3005 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
3006 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
3007 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
3008 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
3010 2003-03-12 Andrew Cagney <cagney@redhat.com>
3012 Eliminate the need for POP_FRAME.
3013 * frame.c (do_frame_unwind_register): New function.
3014 (frame_pop): When no POP_FRAME, pop the frame using register
3015 unwind and a scratch regcache.
3016 (frame_saved_regs_pop): Delete function.
3017 (trad_frame_unwinder): Update.
3018 * d10v-tdep.c (d10v_frame_pop): Delete function.
3019 (d10v_frame_unwind): Update.
3020 * sentinel-frame.c (sentinel_frame_pop): Delete function.
3021 (sentinel_frame_unwinder): Update.
3022 * dummy-frame.c (dummy_frame_pop): Delete function.
3023 (dummy_frame_unwind): Update.
3024 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
3025 (struct frame_unwind): Update.
3027 2003-03-11 Kevin Buettner <kevinb@redhat.com>
3029 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
3030 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
3031 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
3032 Do range checks on register number obtained from debugging info.
3033 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
3034 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
3035 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
3037 (do_fp_register_row): Fix typo which caused double type to be
3038 used when attempting to unpack a float.
3040 2003-03-11 J. Brobecker <brobecker@gnat.com>
3042 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
3044 2003-03-11 Andrew Cagney <cagney@redhat.com>
3046 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
3047 frame. Problem found by Corinna Vinschen.
3049 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
3051 * doublest.c (floatformat_from_length): Accept also
3052 the real size of 'long double' type.
3054 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
3056 From Klee Dienes <kdienes@apple.com>:
3057 * breakpoint.c (bpstat_copy): Copy the command lines as well
3058 as the old value, to match what is freed in bpstat_clear.
3060 2003-03-10 David Carlton <carlton@math.stanford.edu>
3062 * minsyms.c (add_minsym_to_hash_table): Replace
3063 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3064 (compare_minimal_symbols, compact_minimal_symbols)
3065 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
3066 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
3067 of DEPRECATED_SYMBOL_MATCHES_NAME.
3068 (lookup_minimal_symbol_solib_trampoline): Ditto.
3070 2003-03-10 Andrew Cagney <cagney@redhat.com>
3072 * regcache.h (regcache_cooked_read_ftype): Define.
3073 (regcache_save, regcache_restore): Add a cooked_read parameter.
3074 * regcache.c (regcache_save, regcache_restore): Update.
3075 (do_cooked_read): New function.
3076 (regcache_cpy): Pass do_cooked_read to regcache_save and
3079 2003-03-10 Andrew Cagney <cagney@redhat.com>
3081 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
3082 * gdbarch.h, gdbarch.c: Re-generate.
3083 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3084 * x86-64-tdep.h: Update.
3085 * x86-64-tdep.c (x86_64_init_abi): Update.
3086 * v850-tdep.c (v850_gdbarch_init): Update.
3087 * sparc-tdep.c (sparc_gdbarch_init): Update.
3088 * sh-tdep.c (sh_gdbarch_init): Update.
3089 * s390-tdep.c (s390_gdbarch_init): Update.
3090 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3091 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
3092 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3093 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3094 * mips-tdep.c (mips_gdbarch_init): Update.
3095 * mcore-tdep.c (mcore_gdbarch_init): Update.
3096 * m68k-tdep.c (m68k_gdbarch_init): Update.
3097 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3098 * ia64-tdep.c (ia64_gdbarch_init): Update.
3099 * i386-tdep.c (i386_gdbarch_init): Update.
3100 * i386-interix-tdep.c (i386_interix_init_abi): Update.
3101 * hppa-tdep.c (hppa_gdbarch_init): Update.
3102 * h8300-tdep.c (h8300_gdbarch_init): Update.
3103 * frv-tdep.c (frv_gdbarch_init): Update.
3104 * cris-tdep.c (cris_gdbarch_init): Update.
3105 * avr-tdep.c (avr_gdbarch_init): Update.
3106 * arm-tdep.c (arm_gdbarch_init): Update.
3107 * alpha-tdep.c (alpha_gdbarch_init): Update.
3108 * sh-tdep.c (sh_init_extra_frame_info): Update.
3109 (sh64_init_extra_frame_info): Update.
3110 * ns32knbsd-nat.c (frame_num_args): Update.
3111 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
3112 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
3113 (xstormy16_frame_chain_valid): Update.
3114 * vax-tdep.c (vax_saved_pc_after_call): Update.
3115 * v850-tdep.c (v850_frame_chain): Update.
3116 (v850_pop_frame): Update.
3117 (v850_init_extra_frame_info): Update.
3118 * sparc-tdep.c (setup_arbitrary_frame): Update.
3119 * ns32k-tdep.c (umax_frame_num_args): Update.
3120 * s390-tdep.c (s390_pop_frame_regular): Update.
3121 * mn10300-tdep.c (mn10300_frame_chain): Update.
3122 (mn10300_pop_frame_regular): Update.
3123 (mn10300_init_extra_frame_info): Update.
3124 * mips-tdep.c (mips_init_frame_pc_first): Update.
3125 (mips_frame_chain): Update.
3126 (mips_pop_frame): Update.
3127 * mcore-tdep.c (mcore_frame_chain): Update.
3128 (mcore_pop_frame): Update.
3129 (mcore_init_extra_frame_info): Update.
3130 * arch-utils.c (init_frame_pc_default): Update.
3131 * m68k-tdep.c (isi_frame_num_args): Update.
3132 (delta68_frame_num_args): Update.
3133 (news_frame_num_args): Update.
3134 * ia64-tdep.c (ia64_pop_frame_regular): Update.
3135 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
3136 (alpha_frame_chain): Update.
3137 (alpha_pop_frame): Update.
3138 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
3139 (hppa_init_extra_frame_info): Update.
3140 (hppa_frame_chain): Update.
3141 (hppa_frame_chain_valid): Update.
3142 * cris-tdep.c (cris_init_extra_frame_info): Update.
3143 * avr-tdep.c (avr_init_extra_frame_info): Update.
3144 * arm-tdep.c (arm_frame_chain_valid): Update.
3145 (arm_init_extra_frame_info): Update.
3146 (arm_pop_frame): Update.
3147 * frame.c (frame_pc_unwind): Update.
3148 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
3149 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
3150 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
3151 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
3152 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
3153 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
3155 2003-03-10 Andrew Cagney <cagney@redhat.com>
3157 * gdbarch.sh (gdbarch_unwind_pc): New method.
3158 * gdbarch.h, gdbarch.c: Regenerate.
3159 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
3160 but use read_pc and FRAME_SAVED_PC as fall backs.
3161 (frame_saved_regs_pc_unwind): Delete function.
3162 (trad_frame_unwinder): Update.
3163 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
3164 (struct frame_unwind): Update.
3165 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
3166 (dummy_frame_unwind): Update.
3167 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
3168 (sentinel_frame_unwinder): Update.
3169 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
3170 (d10v_frame_unwind): Update.
3171 (d10v_unwind_pc): New function.
3172 (d10v_gdbarch_init): Set unwind_pc.
3174 2003-03-10 Andrew Cagney <cagney@redhat.com>
3176 * gdbarch.h: Re-generate.
3178 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
3180 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
3183 2003-03-08 Mark Kettenis <kettenis@gnu.org>
3185 * gdbarch.sh (save_dummy_frame_tos): Add comment.
3187 2003-03-08 Andrew Cagney <cagney@redhat.com>
3189 * cli-out.c: Update copyright.
3190 (cli_out_data): Define typedef. Use instead of ui_out_data.
3192 2003-03-08 Andrew Cagney <cagney@redhat.com>
3194 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
3197 2003-03-07 Andrew Cagney <cagney@redhat.com>
3199 * gdbarch.sh: Don't generate two macro definitions when an
3200 undefined macro taking no arguments.
3201 * gdbarch.h: Regenerate.
3203 2002-03-07 Michal Ludvig <mludvig@suse.cz>
3205 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
3206 (x86_64_unwind_dummy_id): New functions.
3207 (x86_64_init_abi): Register these two new functions.
3209 2003-03-07 Michal Ludvig <mludvig@suse.cz>
3211 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
3212 (x86_64_skip_prologue): Move prologue detection to
3214 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
3216 2003-03-05 Andrew Cagney <cagney@redhat.com>
3218 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
3219 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
3220 * frame.c (get_prev_frame): Restructure the frame ID unwind code
3221 to use unwind_dummy_id when a dummy frame.
3222 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
3224 * gdbarch.h, gdbarch.c: Regneerate.
3226 2003-03-05 Andrew Cagney <cagney@redhat.com>
3228 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
3229 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
3230 Do not use d10v_read_sp or d10v_read_fp when obtaining register
3233 2003-03-05 Andrew Cagney <cagney@redhat.com>
3235 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
3236 (struct d10v_unwind_cache): Delete field "frameless". Replace
3237 "next_addr" with "sp_offset". Add "r11_offset".
3238 (d10v_frame_unwind_cache): Update.
3239 (prologue_find_regs): Update. When "mv r11, sp", save the
3240 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
3241 RN was saved in r11_offset.
3243 2003-03-05 Andrew Cagney <cagney@redhat.com>
3245 * frame.c (deprecated_update_frame_pc_hack): Also update the the
3246 cached PC value in the next frame.
3248 2003-03-05 Andrew Cagney <cagney@redhat.com>
3250 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
3251 "id_unwind_cache" with "id".
3252 (frame_id_unwind): Delete declaration.
3253 * frame.c (frame_id_unwind): Delete function.
3254 (get_prev_frame): Call the frame id unwind method directly. Store
3255 the returned next frame's ID value in NEXT_FRAME. Note that there
3256 is a problem with the wrong unwind ID being called with the wrong
3259 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
3261 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
3263 2003-03-05 James Ingham <jingham@apple.com>
3264 Daniel Jacobowitz <drow@mvista.com>
3266 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
3267 (auto_cp_abi): New variable.
3268 (current_cp_abi, num_cp_abis): Make static.
3269 (CP_ABI_MAX): Define.
3270 (cp_abis): Turn into an array.
3271 (value_virtual_fn_field): Fix formatting.
3272 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
3274 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
3275 (list_cp_abis, _initialize_cp_abi): New functions.
3276 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
3277 declarations for cp_abis, num_cp_abis, current_cp_abi, and
3278 switch_to_cp_abi. Update prototype for register_cp_abi.
3279 * Makefile.in (cp-abi.o): Update dependencies.
3280 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
3281 instead of switch_to_cp_abi.
3282 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
3284 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
3286 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
3288 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
3290 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
3291 * dwarf2loc.c: Include "regcache.h".
3292 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
3294 * Makefile.in (dwarf2loc.o): Update dependencies.
3296 2003-03-04 Theodore A. Roth <troth@openavr.org>
3298 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
3299 number of io registers reported by remote target is not a multiple of
3302 2003-03-04 David Carlton <carlton@math.stanford.edu>
3304 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
3305 (lookup_symbol_aux_psymtabs): Update call to
3306 lookup_partial_symbol.
3307 (lookup_transparent_type, find_main_psymtab)
3308 (make_symbol_overload_list): Ditto.
3310 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
3312 * MAINTAINERS (Write after approval): Update my email address.
3314 2003-03-03 Andrew Cagney <cagney@redhat.com>
3316 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
3317 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
3318 predicate. Replace MAX_REGISTER_RAW_SIZE.
3319 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
3320 MAX_REGISTER_VIRTUAL_SIZE.
3321 * regcache.c (legacy_max_register_raw_size): New function.
3322 (legacy_max_register_virtual_size): New function.
3323 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
3324 (MAX_REGISTER_RAW_SIZE): Define.
3325 (legacy_max_register_raw_size): Declare.
3326 (legacy_max_register_virtual_size): Declare.
3327 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
3328 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
3329 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
3330 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
3331 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
3332 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
3333 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
3334 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
3335 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
3336 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3337 * vax-tdep.c (vax_gdbarch_init): Update.
3338 * v850-tdep.c (v850_gdbarch_init): Update.
3339 * sparc-tdep.c (sparc_gdbarch_init): Update.
3340 * sh-tdep.c (sh_gdbarch_init): Update.
3341 * s390-tdep.c (s390_gdbarch_init): Update.
3342 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3343 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3344 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3345 * mips-tdep.c (mips_gdbarch_init): Update.
3346 * mcore-tdep.c (mcore_gdbarch_init): Update.
3347 * m68k-tdep.c (m68k_gdbarch_init): Update.
3348 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3349 * ia64-tdep.c (ia64_gdbarch_init): Update.
3350 * i386-tdep.c (i386_gdbarch_init): Update.
3351 * hppa-tdep.c (hppa_gdbarch_init): Update.
3352 * h8300-tdep.c (h8300_gdbarch_init): Update.
3353 * frv-tdep.c (frv_gdbarch_init): Update.
3354 * cris-tdep.c (cris_gdbarch_init): Update.
3355 * avr-tdep.c (avr_gdbarch_init): Update.
3356 * arm-tdep.c (arm_gdbarch_init): Update.
3357 * alpha-tdep.c (alpha_gdbarch_init): Update.
3358 * d10v-tdep.c (d10v_gdbarch_init): Do not set
3359 max_register_raw_size or max_register_virtual_size.
3361 2003-03-03 David Carlton <carlton@math.stanford.edu>
3363 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
3364 SYMBOL_MATCHES_NAME, add comment.
3365 (SYMBOL_MATCHES_NATURAL_NAME): New.
3366 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
3367 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
3368 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
3369 * symtab.c (lookup_partial_symbol): Use
3370 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
3372 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
3373 SYMBOL_MATCHES_NAME.
3376 2003-03-03 David Carlton <carlton@math.stanford.edu>
3378 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
3379 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
3380 by regexp matching against SYMBOL_NATURAL_NAME.
3382 2003-03-03 David Carlton <carlton@math.stanford.edu>
3384 * linespec.c (find_method): Extract code into collect_methods.
3385 (collect_methods): New.
3387 2003-03-02 Mark Kettenis <kettenis@gnu.org>
3389 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
3392 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
3393 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
3395 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
3397 * arch-utils.c (generic_register_byte): Fix to use the loop index
3398 and not regnum when summing the size of all registers up to regnum.
3400 2003-03-01 Andrew Cagney <cagney@redhat.com>
3402 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
3403 FRAME_INIT_SAVED_REGS.
3404 * gdbarch.h, gdbarch.c: Regenerate.
3405 * stack.c (frame_info): Update.
3406 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
3407 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
3408 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
3409 * ns32k-tdep.c (ns32k_pop_frame): Update.
3410 * mips-tdep.c (mips_pop_frame): Update.
3411 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
3412 * ia64-tdep.c (ia64_frame_chain): Update.
3413 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
3414 (ia64_frameless_function_invocation): Update.
3415 (ia64_init_extra_frame_info): Update.
3416 (ia64_pop_frame_regular): Update.
3417 * frame.h (struct frame_info): Update comment.
3418 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
3419 * frame.c (frame_saved_regs_register_unwind): Update.
3420 (frame_saved_regs_register_unwind): Update.
3421 (deprecated_generic_get_saved_register): Update.
3422 * cris-tdep.c: Update comment.
3423 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
3425 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3426 * x86-64-tdep.c (x86_64_init_abi): Update.
3427 * vax-tdep.c (vax_gdbarch_init): Update.
3428 * v850-tdep.c (v850_gdbarch_init): Update.
3429 * sparc-tdep.c (sparc_gdbarch_init): Update.
3430 * sh-tdep.c (sh_gdbarch_init): Update.
3431 * s390-tdep.c (s390_gdbarch_init): Update.
3432 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3433 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
3434 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3435 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3436 * mips-tdep.c (mips_gdbarch_init): Update.
3437 * mcore-tdep.c (mcore_gdbarch_init): Update.
3438 * m68k-tdep.c (m68k_gdbarch_init): Update.
3439 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3440 * ia64-tdep.c (ia64_gdbarch_init): Update.
3441 * i386-tdep.c (i386_gdbarch_init): Update.
3442 * frv-tdep.c (frv_gdbarch_init): Update.
3443 * avr-tdep.c (avr_gdbarch_init): Update.
3444 * arm-tdep.c (arm_gdbarch_init): Update.
3445 * alpha-tdep.c (alpha_gdbarch_init): Update.
3447 2003-03-01 Andrew Cagney <cagney@redhat.com>
3449 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
3450 option enum and switch. When no windows, set the interpreter to
3453 2003-03-01 Andrew Cagney <cagney@redhat.com>
3455 * main.c (captured_main): Replace magic option characters with an
3458 2003-03-01 Andrew Cagney <cagney@redhat.com>
3460 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
3461 INIT_EXTRA_FRAME_INFO.
3462 * gdbarch.h, gdbarch.c: Regenerate.
3463 * arm-tdep.c: Update comments.
3464 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
3465 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
3466 * frame.h, avr-tdep.c: Ditto.
3467 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
3468 (create_new_frame, legacy_get_prev_frame): Ditto.
3469 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
3470 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
3471 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
3472 deprecated_init_extra_frame_info instead of init_extra_frame_info.
3473 * x86-64-tdep.c (x86_64_init_abi): Ditto.
3474 * v850-tdep.c (v850_gdbarch_init): Ditto.
3475 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3476 * sh-tdep.c (sh_gdbarch_init): Ditto.
3477 * s390-tdep.c (s390_gdbarch_init): Ditto.
3478 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
3479 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3480 * mips-tdep.c (mips_gdbarch_init): Ditto.
3481 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3482 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3483 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3484 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
3485 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
3486 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3487 * frv-tdep.c (frv_gdbarch_init): Ditto.
3488 * cris-tdep.c (cris_gdbarch_init): Ditto.
3489 * avr-tdep.c (avr_gdbarch_init): Ditto.
3490 * arm-tdep.c (arm_gdbarch_init): Ditto.
3491 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3492 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3494 2003-03-01 Andrew Cagney <cagney@redhat.com>
3496 * gdbarch.sh (register_type): New function with predicate.
3497 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
3498 * gdbarch.h, gdbarch.c: Re-generate.
3499 * arch-utils.c (generic_register_byte): Use generic_register_size.
3500 (generic_register_size): When available, use
3501 gdbarch_register_type.
3502 * regcache.c (init_regcache_descr): When available, initialize the
3503 register type array using gdbarch_register_type. If the
3504 architecture supplies gdbarch_register_type, do not use the legacy
3506 * d10v-tdep.c (d10v_register_type): Replace
3507 d10v_register_virtual_type.
3508 (d10v_gdbarch_init): Set register_type instead of
3509 register_virtual_type.
3511 2003-03-01 Andrew Cagney <cagney@redhat.com>
3513 * Makefile.in (ax-gdb.o): Update dependencies.
3514 * ax-gdb.c: Include "regcache.h".
3515 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
3516 * findvar.c (value_of_register): Ditto.
3517 * infcmd.c (default_print_registers_info): Ditto.
3519 2003-03-01 Mark Kettenis <kettenis@gnu.org>
3521 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
3522 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
3524 2003-03-01 Mark Kettenis <kettenis@gnu.org>
3526 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
3529 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
3531 * Makefile.in (dwarf2loc.o): Update dependencies.
3532 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
3533 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
3534 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
3535 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
3536 (locexpr_tracepoint_var_ref): New function.
3537 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
3539 2003-02-28 Andrew Cagney <cagney@redhat.com>
3541 * regcache.c (register_size): New function.
3542 * regcache.h (register_size): Declare
3543 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
3544 max_register_size instead of MAX_REGISTER_RAW_SIZE.
3546 2003-02-28 David Carlton <carlton@math.stanford.edu>
3548 * linespec.c (decode_compound): Extract code into find_method.
3551 2003-02-28 J. Brobecker <brobecker@gnat.com>
3553 * Makefile.in: Add rules to build and link in observer.o.
3555 2003-02-27 J. Brobecker <brobecker@gnat.com>
3557 * observer.c: Minor comments edits.
3559 2003-02-27 J. Brobecker <brobecker@gnat.com>
3561 * observer.h, observer.c: New file.
3563 2003-02-27 Andrew Cagney <cagney@redhat.com>
3565 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
3567 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
3569 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
3570 (M6812_OP_STS_EXT): Likewise.
3571 (m6811_prologue): Use the above to recognize prologue.
3572 (m6812_prologue): Likewise.
3574 2003-02-27 David Carlton <carlton@math.stanford.edu>
3576 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
3578 (compare_psymbols): Ditto.
3579 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
3581 2003-02-27 Michael Snyder <msnyder@redhat.com>
3583 * f-lang.c (build_fortran_types): New function.
3584 (_initialize_f_language): Gdbarch-register built-in fortran types.
3585 * doublest.c (extract_floating): Fix warning text.
3587 2003-02-27 Andrew Cagney <cagney@redhat.com>
3589 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
3590 predicate. Replaces PUSH_DUMMY_FRAME.
3591 * gdbarch.h, gdbarch.c: Regnerate.
3592 * valops.c (hand_function_call): Update. Call
3593 generic_push_dummy_frame directly.
3594 * vax-tdep.c (vax_gdbarch_init): Update.
3595 * sparc-tdep.c (sparc_gdbarch_init): Update.
3596 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3597 * m68k-tdep.c (m68k_gdbarch_init): Update.
3598 * hppa-tdep.c (hppa_gdbarch_init): Update.
3599 * alpha-tdep.c (alpha_gdbarch_init): Update.
3600 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
3601 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
3602 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
3603 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
3604 push_dummy_frame to generic_push_dummy_frame.
3605 * v850-tdep.c (v850_gdbarch_init): Ditto.
3606 * sh-tdep.c (sh_gdbarch_init): Ditto.
3607 * s390-tdep.c (s390_gdbarch_init): Ditto.
3608 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3609 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3610 * mips-tdep.c (mips_gdbarch_init): Ditto.
3611 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3612 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3613 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3614 * i386-tdep.c (i386_gdbarch_init): Ditto.
3615 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3616 * frv-tdep.c (frv_gdbarch_init): Ditto.
3617 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3618 * cris-tdep.c (cris_gdbarch_init): Ditto.
3619 * avr-tdep.c (avr_gdbarch_init): Ditto.
3620 * arm-tdep.c (arm_gdbarch_init): Ditto.
3622 2003-02-26 Kevin Buettner <kevinb@redhat.com>
3624 * mips-tdep.c (show_mips_abi): New function.
3625 (_initialize_mips_tdep): Use show_mips_abi() to implement the
3626 command ``show mips abi''.
3628 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
3630 From Elena Zannoni <ezannoni@redhat.com>
3631 * dbxread.c (process_one_symbol): Only record line 0 if one or
3632 more sline entries have been seen for the function.
3634 2003-02-26 Michael Chastain <mec@shout.net>
3636 * configure: Regenerate with autoconf 000227.
3638 2003-02-26 Michael Chastain <mec@shout.net>
3641 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
3642 for old libc5/glibc.
3643 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
3645 2003-02-26 Kris Warkentin <kewarken@qnx.com>
3647 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
3648 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
3650 2003-02-26 Michael Chastain <mec@shout.net>
3652 * configure.in: New variable HAVE_UINTPTR_T.
3653 * configure, config.in: Regenerated.
3655 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
3658 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
3660 2003-02-25 Andrew Cagney <cagney@redhat.com>
3662 * frame.c (get_prev_frame): Add comment on check for
3663 inside_entry_func. Only check for inside_entry_file when not a
3664 dummy and not a sentinel. Check that the new frame is not inner
3667 2003-02-25 Andrew Cagney <cagney@redhat.com>
3669 * frame.c (frame_debug): New variable.
3670 (_initialize_frame): Add "set/show debug frame" command.
3671 (get_prev_frame): When frame_debug, print reason why unwind
3674 2003-02-25 Michael Chastain <mec@shout.net>
3676 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
3677 to avoid uintptr_t definition problems.
3679 2003-02-25 David Carlton <carlton@math.stanford.edu>
3681 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
3682 (SYMBOL_LINKAGE_NAME): Ditto.
3683 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
3684 SYMBOL_LINKAGE_NAME.
3685 (struct general_symbol_info): Expand comment.
3686 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
3687 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
3688 (SYMBOL_MATCHES_REGEXP): Ditto.
3689 * symtab.c (symbol_natural_name): New function.
3690 * objfiles.h: Replace all uses of SYMBOL_NAME by
3691 DEPRECATED_SYMBOL_NAME.
3692 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
3693 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
3694 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
3695 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
3696 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
3697 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
3698 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
3699 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
3700 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
3701 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
3703 * ada-exp.y: Update copyright.
3704 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
3705 * cp-valprint.c: Ditto.
3707 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
3709 * infptrace.c (detach): Do not flag error if ptrace detach fails
3710 and errno is set to ESRCH.
3712 2003-02-24 Andrew Cagney <cagney@redhat.com>
3714 * infptrace.c (udot_info): Change type of udot_off to long. Use
3715 paddr when printing udot_off's value.
3717 2003-02-24 David Carlton <carlton@math.stanford.edu>
3719 * symtab.c (make_symbol_overload_list): Only read in partial
3720 symtabs containing a matching partial symbol.
3722 2003-02-24 David Carlton <carlton@math.stanford.edu>
3724 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
3725 do the comparison, not strcmp.
3726 * symfile.c (compare_psymbols): Ditto.
3727 * defs.h: Declare strcmp_iw_ordered.
3728 * utils.c (strcmp_iw_ordered): New function.
3730 2003-02-24 Jim Blandy <jimb@redhat.com>
3732 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
3733 support, shared libs): Remove my name from here, to better reflect
3736 2003-02-24 Kris Warkentin <kewarken@qnx.com>
3738 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
3739 (target_ops): Add to_have_continuable_watchpoint.
3740 * target.c (update_current_target): Add INHERIT line for
3741 to_have_continuable_watchpoint.
3742 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
3743 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
3744 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
3745 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
3747 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
3749 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
3752 2003-02-24 Kris Warkentin <kewarken@qnx.com>
3754 * solib.c (solib_open): Call target defined search function after
3755 failing with solib-search-path.
3756 * solist.h (target_so_ops): Add find_and_open_solib function hook and
3757 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
3759 2003-02-24 Kris Warkentin <kewarken@qnx.com>
3761 * MAINTAINERS: Add myself to Write After section.
3763 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
3765 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
3767 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
3769 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
3770 (m68hc11_add_reggroups): New function.
3771 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
3772 (m68hc11_gdbarch_init): Install the reggroups.
3773 (_initialize_m68hc11_tdep): Initialize them.
3775 2003-02-21 James E Wilson <wilson@tuliptree.org>
3777 * MAINTAINERS: Update my email address.
3779 2003-02-21 David Carlton <carlton@math.stanford.edu>
3781 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
3783 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
3785 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
3786 * symtab.h: Add opaque declarations of struct axs_value and
3788 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
3789 (struct location_funcs): New type.
3790 (struct symbol): Add "loc" to aux_value.
3791 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
3792 * dwarf2read.c: Include "dwarf2expr.h".
3793 (dwarf2_symbol_mark_computed): New function.
3794 (read_func_scope): Use it.
3795 (var_decode_location): New function.
3796 (new_symbol): Use it.
3797 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
3799 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
3800 (dwarf2expr_h, dwarf2loc_h): New variables.
3801 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
3802 (dwarf2expr.o, dwarf2loc.o): New rules.
3803 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
3804 * buildsym.c (finish_block): Handle LOC_COMPUTED and
3806 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
3807 * m2-exp.y (yylex): Likewise.
3808 * printcmd.c (address_info, print_frame_args): Likewise.
3809 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
3810 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
3811 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
3812 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
3813 * symtab.c (lookup_block_symbol): Likewise.
3815 2003-02-20 Adam Fedor <fedor@gnu.org>
3817 * symtab.h: Remove objc_specific struct
3818 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
3819 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
3820 Have language_objc use cplus_specific struct.
3822 2003-02-20 Tom Tromey <tromey@redhat.com>
3824 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
3825 TYPE_NAME, when printing a String value. PR java/1075.
3827 2003-02-20 Adam Fedor <fedor@gnu.org>
3829 * objc-lang.h (find_methods): Remove declaration.
3830 * objc-lang.c (find_methods): Make static.
3832 2003-02-20 Christopher Faylor <cgf@redhat.com>
3834 * win32-nat.c (get_image_name): Check return value from
3836 (child_xfer_memory): Ditto.
3838 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
3840 * configure.in (TARGET_SYSTEM_ROOT): Set default to
3841 ${exec_prefix}/${target_alias}/sys-root. Match explicit
3842 '${exec_prefix}' (in addition to the expansion thereof) as
3844 * configure: Rebuilt.
3846 2003-02-20 David Carlton <carlton@math.stanford.edu>
3848 * symtab.c (search_symbols): Revert the search_symbols part of my
3849 2002-12-23 patch. Add comment.
3851 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
3853 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
3854 * dbxread.c (elfstab_build_psymtabs): Don't call
3855 install_minimal_symbols.
3856 (stabsect_build_psymtabs): Likewise.
3857 * elfread.c (elf_symfile_read): Call install_minimal_symbols
3859 * somread.c (som_symfile_read): Call install_minimal_symbols
3860 and do_cleanups earlier.
3861 * nlmread.c (nlm_symfile_read): Likewise.
3862 * mdebugread.c (elfmdebug_build_psymtabs): Call
3863 install_minimal_symbols and make appropriate cleanups.
3865 2003-02-20 Kevin Buettner <kevinb@redhat.com>
3867 * solib.c (reload_shared_libraries): New function.
3868 (_initialize_solib): Add callbacks for ``set solib-search-path''
3869 and ``set solib-absolute-prefix''.
3871 2003-02-20 David Carlton <carlton@math.stanford.edu>
3873 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
3875 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
3876 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
3877 * ada-typeprint.c (ada_typedef_print): Ditto.
3878 * ax-gdb.c (gen_var_ref): Ditto.
3879 * breakpoint.c (print_one_breakpoint): Ditto.
3880 * buildsym.c (finish_block): Ditto.
3881 * c-valprint.c (c_val_print): Ditto.
3882 * expprint.c (print_subexp): Ditto.
3883 * findvar.c (locate_var_value): Ditto.
3884 * infcmd.c (jump_command): Ditto.
3885 * linespec.c (decode_line_2, decode_compound): Ditto.
3886 * maint.c (maintenance_translate_address): Ditto.
3887 * objc-lang.c (compare_selectors, compare_classes): Ditto.
3888 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
3890 * p-valprint.c (pascal_val_print): Ditto.
3891 * stabsread.c (define_symbol): Ditto.
3892 * stack.c (print_frame, frame_info, print_block_frame_locals)
3893 (print_frame_arg_vars, return_command): Ditto.
3894 * symfile.c (compare_symbols, compare_psymbols): Ditto.
3895 * symmisc.c (print_symbol): Ditto.
3896 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
3897 (compare_search_syms, print_symbol_info, print_msymbol_info)
3898 (rbreak_command): Ditto.
3899 * tracepoint.c (tracepoints_info): Ditto.
3900 * typeprint.c (typedef_print): Ditto.
3901 * valops.c (value_of_variable, hand_function_call): Ditto.
3902 * cli/cli-cmds.c (edit_command, list_command): Ditto.
3903 * ada-typeprint.c: Update Copyright.
3904 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
3905 * tracepoint.c, cli/cli-cmds.c: Ditto.
3907 2003-02-20 Kevin Buettner <kevinb@redhat.com>
3909 * frame.c (generic_unwind_get_saved_register): Make non-static.
3910 * frame.h (generic_unwind_get_saved_register): Declare.
3911 * mips-tdep.c (read_next_frame_reg): Fetch register from
3912 current regcache when frame is NULL.
3913 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
3915 (mips_get_saved_register): Call generic_unwind_get_saved_register()
3916 instead of frame_register_unwind().
3918 2003-02-20 Andrew Cagney <ac131313@redhat.com>
3920 * remote-sim.c (gdbsim_insert_breakpoint)
3921 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
3924 2003-02-20 Andrew Cagney <ac131313@redhat.com>
3926 * remote.c (_initialize_remote): Add commands "set/show remote
3927 hardware-watchpoint-limit" and "set/show remote
3928 hardware-breakpoint-limit".
3929 (remote_hw_watchpoint_limit): Initialize to -1.
3930 (remote_hw_breakpoint_limit): Ditto.
3931 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
3933 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
3935 * coff-pe-read.c: New file - support reading of minimal symbols from a
3936 portable executable using the export table.
3937 * coff-pe-read.h: New file.
3938 * coffread.c: Include coff-pe-read.h.
3939 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
3940 debugging symbols found.
3941 * Makefile.in (SFILES): Add coff-pe-read.o.
3942 (coff_pe_read_h): Define.
3943 (COMMON_OBS): Add coff-pe-read.o.
3944 (coffread.o): Add coff_pe_read_h dependency.
3945 (coff-pe-read.o): New target.
3947 2003-02-19 David Carlton <carlton@math.stanford.edu>
3949 * Makefile.in (SFILES): Add block.c.
3951 (COMMON_OBS): Add block.o.
3953 (x86-64-tdep.o): Add $(block_h).
3954 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
3955 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
3956 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
3957 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
3958 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
3959 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
3960 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
3961 * value.h: Add opaque declaration for struct block.
3962 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
3963 * ada-lang.h: Ditto.
3964 * x86-64-tdep.c: #include "block.h"
3965 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
3966 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
3967 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
3968 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
3969 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
3970 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
3971 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
3972 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
3973 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
3974 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
3975 * symtab.c (block_function): Ditto.
3976 (contained_in): Ditto.
3977 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
3978 block.h. Add opaque declaration for struct block.
3979 * symtab.h: Move block_function and contained_in declarations to
3980 block.h. Add opaque declarations for struct block, struct
3982 (struct block): Move to block.h.
3983 (struct blockvector): Ditto.
3984 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
3985 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
3986 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
3987 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
3988 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
3990 * block.c: New file.
3991 * block.h: New file.
3993 2003-02-19 Theodore A. Roth <troth@openavr.org>
3995 * avr-tdep.c (avr_extract_return_value): Remove function.
3996 (avr_store_return_value): Remove function.
3997 (avr_extract_struct_value_address): Remove function.
3998 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
4000 2003-02-19 Andrew Cagney <ac131313@redhat.com>
4002 * rs6000-tdep.c: Include "gdb_assert.h".
4003 (registers_e500): Add "acc" and "spefscr".
4004 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
4005 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
4006 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
4008 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
4010 2003-02-18 Keith Seitz <keiths@redhat.com>
4012 * Makefile.in: Add gdbtk-interps.c.
4014 2003-02-18 Kevin Buettner <kevinb@redhat.com>
4016 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
4017 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
4019 2003-02-18 Andrew Cagney <cagney@redhat.com>
4021 * symtab.h (struct objfile): Add opaque declaration.
4023 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
4025 From Jim Ingham <jingham@apple.com>:
4026 * dbxread.c (process_one_symbol): Use last_function_start rather
4027 than function_start_offset to find the real beginning of the
4028 current function. The latter is just the text section offset on
4029 some systems, the former is always the real function start.
4031 2003-02-17 Andrew Cagney <cagney@redhat.com>
4033 * configure.in: Revert ${target} != ${host}.
4035 2003-02-17 Andrew Cagney <ac131313@redhat.com>
4037 * configure.in (Makefile): Use the test ${target} != ${host},
4038 instead of the absence of the "nm.h" file, to determine of the
4039 configuration non-native.
4040 * configure: Regenerate.
4042 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
4044 From Brian Ford <ford@vss.fsi.com>
4046 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
4047 conditionalize tui_active test.
4048 (lookup_cmd_1): Ditto.
4050 2003-02-14 Mark Kettenis <kettenis@gnu.org>
4052 * configure.in: Add check for _etext.
4053 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
4055 * config.in, configure: regenerated.
4057 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
4059 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
4061 2003-02-14 Andrew Cagney <ac131313@redhat.com>
4063 * main.c (tui_version): Delete variable.
4064 (captured_main): When --tui, set interpreter_p to "tui" instead of
4065 enabling tui_version.
4066 * printcmd.c (display_command) [TUI]: Test tui_active instead of
4068 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
4069 * cli/cli-cmds.c (disassemble_command): Ditto.
4070 * defs.h (tui_version): Delete declaration.
4071 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
4072 (tui-interp.o): Add rules.
4073 (SUBDIR_TUI_OBS): Add "tui-interp.o".
4075 2003-02-14 Christopher Faylor <cgf@redhat.com>
4077 * win32-nat.c (register_loaded_dll): Correctly set address range for
4080 2003-02-12 Jason Molenda (jmolenda@apple.com)
4082 * symmisc.c (print_objfile_statistics): Include information about
4083 the number of psymtabs and symtabs in each object file.
4085 2003-02-13 Keith R Seitz <keiths@redhat.com>
4087 * main.h (struct captured_main_args): Add interpreter_p.
4088 * main.c (captured_main): Initialize interpreter_p from context.
4089 * gdb.c (main): Set interpreter_p argument.
4090 * Makefile.in (gdb.o): Add dependency for interps.h.
4092 2003-02-12 Andrew Cagney <ac131313@redhat.com>
4094 * event-top.c (cli_command_loop): Delete declaration.
4095 (_initialize_event_loop): Delete function setting event_loop_hook.
4096 * event-top.h (cli_command_loop): Declare. Update copyright.
4097 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
4098 * interps.c (current_interp_command_loop): When event_loop_p, call
4101 2003-02-12 Andrew Cagney <ac131313@redhat.com>
4103 * interps.h (interp_command_loop_ftype): Change return type to
4106 2003-02-12 Michal Ludvig <mludvig@suse.cz>
4108 * x86-64-tdep.c (x86_64_extract_return_value)
4109 (x86_64_store_return_value): Use regcache instead of regbuf.
4110 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
4111 * x86-64-linux-nat.c (fill_gregset): Use regcache.
4113 2003-02-11 Andrew Cagney <ac131313@redhat.com>
4115 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
4116 * aclocal.m4: Regenerate.
4117 * configure: Regenerate.
4119 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
4120 TCL_LD_SEARCH_FLAGS.
4122 2003-02-10 Michal Ludvig <mludvig@suse.cz>
4124 * dwarf2cfi.c: Reindented.
4126 2003-02-09 Andrew Cagney <ac131313@redhat.com>
4128 * interps.c (clear_interpreter_hooks): Convert function definition
4131 2003-02-07 David Carlton <carlton@math.stanford.edu>
4133 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
4135 2003-02-07 Kevin Buettner <kevinb@redhat.com>
4137 * gdbtypes.h (struct main_type): Move ``length'' field from here...
4138 (struct type): ...to here.
4139 (TYPE_LENGTH): Adjust to reflect different location of ``length''
4141 * gdbtypes.c (make_qualified_type): Set length on newly created type.
4142 (replace_type): Set length on all type variants for a given type.
4144 2003-02-07 Andrew Cagney <ac131313@redhat.com>
4146 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
4148 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
4150 2003-02-06 Andrew Cagney <ac131313@redhat.com>
4152 * Makefile.in (symm-nat.o): Update dependencies.
4153 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
4154 (lynx-nat.o, ia64-linux-nat.): Ditto.
4155 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
4156 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
4157 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
4159 * Makefile.in (inflow_h): Define.
4160 (procfs.o, inflow.o, procfs.o): Update dependencies.
4161 * inftarg.c (child_stop): Delete extern declaration of
4162 inferior_process_group. Include "inflow.h".
4163 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
4164 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
4165 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
4166 (our_process_group, inferior_process_group): Extern declarations.
4168 * procfs.c: Include "gdb_assert.h".
4170 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
4171 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
4172 * jv-typeprint.c (java_type_print_base): Ditto.
4173 * typeprint.c (typedef_print): Eliminate STREQ.
4174 * cli/cli-script.c (define_command, define_command): Ditto.
4175 * main.c (captured_main): Ditto.
4176 * values.c (lookup_internalvar): Ditto.
4177 * utils.c (safe_strerror, parse_escape): Eliminate assignment
4178 within `if' conditional.
4179 * linespec.c (decode_line_2): Ditto.
4180 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
4181 (bfd_openw_with_cleanup): Ditto.
4183 2003-02-07 Mark Kettenis <kettenis@gnu.org>
4185 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
4186 legacy_extract_return_value and store_return_value to
4187 legacy_return_value.
4189 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
4191 * win32-nat.c (get_relocated_section_addrs): New function. Find
4192 section load addresses for symbol handling in relocated DLLs.
4193 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
4195 2003-02-05 Fred Fish <fnf@intrinsity.com>
4197 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
4199 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
4201 (angel_RDI_info): Ditto.
4202 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
4204 (threads_continue_all_with_signals): Ditto.
4206 2003-02-05 Jim Ingham <jingham@apple.com>
4207 Keith Seitz <keiths@redhat.com>
4208 Elena Zannoni <ezannoni@redhat.com>
4209 Andrew Cagney <ac131313@redhat.com>
4211 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
4212 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
4213 (SUBDIR_MI_OBS): Add "mi-interp.o".
4214 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
4215 (SFILES): Add "interps.c".
4216 (COMMON_OBS): Add "interps.o".
4217 (interps_h, mi_main_h): Define.
4218 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
4219 (mi-main.o, main.o, event-top.o): Update dependencies.
4220 * cli/cli-interp.c: New file.
4221 * interps.h, interps.c: New files.
4222 * top.c: (gdb_init): Don't install the default interpreter, handed
4224 * main.c: Include "interps.h".
4225 (interpreter_p): Note that it should malloc'ed.
4226 (captured_command_loop): Call current_interp_command_loop.
4227 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
4228 xfree and xstrdup when updating interpreter_p. Install the
4229 default interpreter. Add hack to stop mi1's copyright notice
4231 * event-top.h (gdb_setup_readline): Declare.
4232 (gdb_disable_readline): Declare.
4233 * event-top.c: Include "interps.h".
4234 (display_gdb_prompt): Call current_interp_display_prompt_p.
4235 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
4236 gdb_stdlog, and gdb_stdtarg.
4237 (_initialize_event_loop): Don't call gdb_setup_readline.
4238 * cli-out.c (cli_out_set_stream): New function.
4239 * cli-out.h (cli_out_set_stream): Declare.
4241 2003-02-06 Mark Kettenis <kettenis@gnu.org>
4243 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
4244 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
4245 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
4246 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
4247 config/i386/i386v42mp.mt: Removed.
4249 2003-02-05 Mark Kettenis <kettenis@gnu.org>
4251 * configure.tgt (*-*-solaris*): Set gdb_osabi to
4254 2003-02-05 Michael Chastain <mec@shout.net>
4256 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
4257 2.12.1 and earlier versions.
4259 2003-02-05 Andrew Cagney <ac131313@redhat.com>
4261 Remove orphaned hosts, targets and files.
4262 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
4263 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
4264 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
4265 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
4266 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
4267 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
4268 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
4269 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
4270 * config/sparc/tm-sp64sim.h: Delete.
4271 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
4273 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
4274 mips*-dec-mach3* targets.
4276 2003-02-04 Michael Chastain <mec@shout.net>
4278 * NEWS: Fix typo: sepcifying -> specifying.
4280 2003-02-04 Michael Chastain <mec@shout.net>
4282 * dwarfread.c: Add documentation on the state of dwarf-1,
4283 looking towards obsoletion.
4285 2003-02-03 Michael Chastain <mec@shout.net>
4287 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
4288 gdb/testsuite/gdb.c++/pr-1023.exp.
4290 2003-02-04 Andrew Cagney <ac131313@redhat.com>
4292 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
4293 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
4295 * utils.c (init_page_info): Delete reference to MPW in comments.
4296 * main.c (captured_main): Delete #ifdef MPW.
4298 2003-02-04 Andrew Cagney <ac131313@redhat.com>
4300 * NEWS: Note that the m32r-*-elf* is obsolete.
4301 * monitor.c (monitor_expect): Obsolete reference to m32r.
4302 * configure.tgt: Mark m32r-*-elf* as obsolete.
4303 * MAINTAINERS: Mark m32k as obsolete.
4304 * m32r-rom.c: Obsolete file.
4305 * config/m32r/m32r.mt: Obsolete file.
4306 * config/m32r/tm-m32r.h: Obsolete file.
4307 * m32r-stub.c: Obsolete file.
4308 * m32r-tdep.c: Obsolete file.
4310 2003-02-04 Andrew Cagney <ac131313@redhat.com>
4312 * NEWS: Mention that the z8k-zilog-none is obsolete.
4313 * MAINTAINERS: Mark z8k as obsolete.
4314 * configure.tgt: Obsolete the z8k-*-coff* target.
4315 * config/z8k/z8k.mt: Obsolete file.
4316 * config/z8k/tm-z8k.h: Obsolete file.
4317 * z8k-tdep.c: Obsolete file.
4319 2003-02-04 Andrew Cagney <ac131313@redhat.com>
4321 * NEWS: Mention that the mn10200-elf is obsolete.
4322 * configure.tgt: Obsolete mn10200-*-* target.
4323 * breakpoint.c (update_breakpoints_after_exec): Update comment to
4324 mention that the mn10200 is obsolete.
4325 * breakpoint.h: Ditto.
4326 * MAINTAINERS: Mark the mn10200-elf as obsolete.
4327 * config/mn10200/mn10200.mt: Obsolete file.
4328 * config/mn10200/tm-mn10200.h: Obsolete file.
4329 * mn10200-tdep.c: Obsolete file.
4331 2003-02-04 Andrew Cagney <ac131313@redhat.com>
4333 * MAINTAINERS: Mark h8500 as obsolete.
4334 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
4335 * findvar.c (value_from_register): Ditto.
4336 * h8500-tdep.c: Mark file as obsolete.
4337 * config/h8500/h8500.mt: Ditto.
4338 * config/h8500/tm-h8500.h: Ditto.
4339 * NEWS: Mention that h8500 is obsolete.
4341 2003-02-04 David Carlton <carlton@math.stanford.edu>
4343 * objfiles.c (allocate_objfile): Always set name. Add comment at
4345 * jv-lang.c (get_dynamics_objfile): Add comment.
4347 2003-02-04 David Carlton <carlton@math.stanford.edu>
4349 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
4350 * printcmd.c (build_address_symbolic): Replace uses of
4351 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
4352 SYMBOL_NAME, and asm_demangle.
4355 2003-02-04 David Carlton <carlton@math.stanford.edu>
4357 * linespec.c (decode_compound): Extract code into
4359 (lookup_prefix_sym): New function.
4361 2003-02-04 David Carlton <carlton@math.stanford.edu>
4363 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
4364 FLOAT_COERCION_BADNESS.
4365 * gdbtypes.c (rank_one_type): Replace all uses of
4366 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
4368 2003-02-04 Jim Blandy <jimb@redhat.com>
4370 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
4371 section, let dwarf_macinfo_section point to it, not
4374 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
4376 Pointed out by Anton Blanchard <anton@samba.org>.
4377 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
4378 (ppc_linux_at_sigtramp_return_path): Use it.
4380 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
4382 * defs.h (streq): Add prototype.
4383 * utils.c (streq): New function.
4385 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
4386 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
4387 * mdebugread.c (new_symbol): Likewise.
4388 * stabsread.c (define_symbol): Likewise.
4389 * coffread.c (process_coff_symbol): Likewise.
4390 * dwarfread.c (new_symbol): Likewise.
4392 * minsyms.c (prim_record_minimal_symbol_and_info): Use
4393 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
4395 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
4396 SYMBOL_INIT_DEMANGLED_NAME.
4397 * objfiles.c: Include "hashtab.h".
4398 (allocate_objfile): Call htab_set_functions_ex for the
4399 demangled_names_hash.
4400 (free_objfile): Call htab_delete for the demangled_names_hash.
4401 * objfiles.h (struct htab): Add declaration.
4402 (struct objfile): Add demangled_names_hash.
4403 * symfile.c: Include "hashtab.h".
4404 (reread_symbols): Call htab_delete for the demangled_names_hash.
4405 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
4406 SYMBOL_NAME in the bcache.
4407 * symtab.c: Include "hashtab.h". Update comments.
4408 (create_demangled_names_hash, symbol_set_names): New functions.
4409 (symbol_find_demangled_name): New function, broken out from
4410 symbol_init_demangled_names.
4411 (symbol_init_demangled_names): Use it.
4412 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
4413 (SYMBOL_SET_NAMES): New macro.
4414 (symbol_set_names): Add prototype.
4416 2003-02-03 Jim Blandy <jimb@redhat.com>
4418 Use a single, consistent representation for an empty minimal
4419 symbol table in an objfile.
4420 * objfiles.c (terminate_minimal_symbol_table): New function.
4421 (allocate_objfile): Call it.
4422 * objfiles.h (terminate_minimal_symbol_table): New declaration.
4423 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
4425 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
4426 objfile has minimal symbols, compare minimal_symbol_count to zero,
4427 instead of comparing msymbols with NULL.
4428 * objfiles.c (have_minimal_symbols): Same.
4429 * solib-sunos.c (solib_add_common_symbols): Call
4430 terminate_minimal_symbol_table.
4431 * symfile.c (reread_symbols): Same.
4433 2003-02-03 Kevin Buettner <kevinb@redhat.com>
4435 * s390-tdep.c (s390_address_class_type_flags)
4436 (s390_address_class_type_flags_to_name)
4437 (s390_address_class_name_to_type_flags): New functions.
4438 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
4439 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
4441 2003-02-03 Michael Snyder <msnyder@redhat.com>
4443 * arm-tdep.c: Fix spell-o in comment.
4445 2003-02-03 Michal Ludvig <mludvig@suse.cz>
4447 * dwarf2cfi.c (pointer_encoding): Added new parameter.
4448 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
4449 error messages to contain BFD filename.
4451 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
4453 Fix PR gdb/742 gdb/743 gdb/877
4454 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
4455 (do_mixed_source_and_assembly): Use
4456 make_cleanup_ui_out_tuple_begin_end and
4457 make_cleanup_ui_out_tuple_begin_end.
4458 (do_mixed_source_and_assembly): Ditto.
4459 * thread.c (do_captured_list_thread_ids): Ditto.
4460 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
4461 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
4462 ui_out_tuple_end): Delete prototypes.
4463 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
4464 ui_out_list_end, ui_out_tuple_end): Delete.
4466 From Kevin Buettner <kevinb@redhat.com>:
4467 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
4468 * ui-out.c (make_cleanup_ui_out_table_begin_end)
4469 (do_cleanup_table_end): New functions.
4470 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
4471 Use cleanups to invoke_ui_out_tuple_end().
4472 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
4473 * cli/cli-setshow.c (cmd_show_list): Use
4474 make_cleanup_ui_out_tuple_begin_end.
4476 2003-02-02 Andrew Cagney <ac131313@redhat.com>
4478 * frame.c (frame_unwind_register): New function.
4479 (frame_unwind_unsigned_register): Use.
4480 (frame_unwind_signed_register): Use.
4481 (frame_read_register): New function.
4482 * frame.h (frame_unwind_register): Declare.
4483 (frame_read_register): Declare.
4485 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
4486 and frame_unwind_register instead of read_memory, write_register
4487 and deprecated_write_register_bytes.
4489 2003-02-02 Andrew Cagney <ac131313@redhat.com>
4491 * frame.h: Note that namelen can be negative.
4492 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
4495 * NEWS: Mention that the d10v's `regs' command is deprecated.
4496 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
4497 (d10v_print_registers_info): New function.
4498 (show_regs): Call d10v_print_registers_info.
4499 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
4501 2003-02-02 Mark Kettenis <kettenis@gnu.org>
4503 * stack.c (print_frame_info): Restore call to annotate_frame_begin
4504 lost in the previous patch.
4506 2003-02-01 Andrew Cagney <ac131313@redhat.com>
4508 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
4509 * stack.c (print_frame_info_base): Output complete FRAME tuple
4510 for synthesized frames.
4512 2003-02-02 Andrew Cagney <ac131313@redhat.com>
4514 * mips-nat.c (zerobuf): Delete.
4515 (fetch_inferior_registers): Alloc local zerobuf.
4516 (fetch_core_registers): Alloc local zerobuf.
4517 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
4518 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
4519 * thread-db.c (thread_db_store_registers): Ditto.
4520 * sh-tdep.c (sh_do_register): Ditto.
4521 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
4522 * remote-sim.c (gdbsim_store_register): Ditto.
4523 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4524 * remote-e7000.c (fetch_regs_from_dump): Ditto.
4525 * monitor.c (monitor_supply_register): Ditto.
4526 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
4527 * mips-nat.c (fetch_inferior_registers): Ditto.
4528 * m68klinux-nat.c (fetch_register): Ditto.
4529 * lynx-nat.c (fetch_inferior_registers): Ditto.
4530 (fetch_inferior_registers): Ditto.
4531 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
4532 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
4533 (hpux_thread_store_registers): Ditto.
4534 * hppah-nat.c (fetch_register): Ditto.
4535 * hppab-nat.c (fetch_register): Ditto.
4536 * hppa-tdep.c (pa_register_look_aside): Ditto.
4537 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
4538 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
4540 2003-02-01 Andrew Cagney <ac131313@redhat.com>
4542 * gdbarch.sh: Explictly specify all method levels. When a
4543 variable with an empty level, provide a non-multi-arch default.
4544 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
4545 * gdbarch.h: Re-generate.
4546 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
4547 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
4549 2003-02-01 Andrew Cagney <ac131313@redhat.com>
4551 * defs.h (host_pointer_to_address): Delete declaration.
4552 (address_to_host_pointer): Delete declaration.
4553 * utils.c (host_pointer_to_address): Delete function.
4554 (address_to_host_pointer): Delete function.
4555 * procfs.c (procfs_address_to_host_pointer): New function.
4556 * procfs.c (proc_set_watchpoint): Use.
4557 (procfs_can_use_hw_breakpoint): Update comments.
4558 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
4559 (som_solib_add): Use.
4560 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
4561 * hppa-tdep.c (unwind_command): Use.
4563 2003-02-01 Andrew Cagney <ac131313@redhat.com>
4565 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
4568 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
4569 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
4570 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
4571 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
4572 (define_symbol): Update.
4573 * symfile.c (generic_load): Remove references to nindy.
4574 * symtab.c: Remove references to nindy.
4576 2003-02-01 Andrew Cagney <ac131313@redhat.com>
4578 * infcmd.c (print_float_info): Delete code conditional on
4580 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
4581 * config/m68k/nm-apollo68b.h: Ditto.
4582 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
4583 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
4584 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
4586 2003-02-01 Mark Kettenis <kettenis@gnu.org>
4588 * config/i386/tm-i386os9k.h: Removed.
4590 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
4591 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
4592 they're identical to i[3456]86-*-sysv* now.
4593 * config/i386/i386v32.mh: Removed.
4594 * config/i386/xm-i386v32.h: Removed.
4595 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
4597 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
4599 * config/i386/i386dgux.mh: Removed.
4600 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
4602 * configure.in: Fix typo.
4603 * configure: Regenerated.
4605 2003-01-31 David Carlton <carlton@math.stanford.edu>
4607 * dwarf2read.c (dwarf2_locate_sections): Set
4608 dwarf_ranges_section.
4610 2003-01-31 Andrew Cagney <ac131313@redhat.com>
4612 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
4613 * utils.c: Update comments documenting legitimate uses of PTR.
4615 * utils.c: Re-indent.
4617 * config/djgpp/fnchange.lst: Delete nindy files.
4618 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
4619 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
4620 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
4621 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
4622 * nindy-share/README, nindy-share/Onindy.c: Delete files.
4623 * nindy-tdep.c, nindy-share/Makefile: Delete files.
4624 * Makefile.in (init.c): Remove nindy references.
4625 (saber_gdb): Delete rule.
4626 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
4627 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
4629 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
4630 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
4631 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
4632 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
4634 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
4635 * saber.suppress: Delete file.
4637 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
4639 * dbxread.c (stabs_data): New static variable.
4640 (fill_symbuf): Support an in-memory buffer for stabs data.
4641 (stabs_seek): New function.
4642 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
4643 (read_ofile_symtab): Use stabs_seek.
4644 (elfstab_build_psymtabs): Take an asection* instead of
4645 an offset and size. Relocate the stabs data if necessary.
4646 Save the section* for dbx_psymtab_to_symtab.
4647 * dwarf2read.c: Add section variables for each debug section.
4648 (dwarf2_locate_sections): Fill them in.
4649 (dwarf2_read_section): Take an asection* argument.
4650 Relocate the section contents if necessary.
4651 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
4652 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
4653 it to dwarf2_read_section.
4654 (dwarf2_build_frame_info): Update callers.
4655 * elfread.c (elf_symfile_read): Update call to
4656 elfstab_build_psymtabs.
4657 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
4658 (DBX_STAB_SECTION): New macro.
4659 * stabsread.h (elfstab_build_psymtabs): Update prototype.
4660 * symfile.c (symfile_dummy_outputs): New function.
4661 (symfile_relocate_debug_section): New function.
4662 * symfile.h (symfile_relocate_debug_section): Add prototype.
4664 2003-01-31 Richard Henderson <rth@redhat.com>
4666 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
4667 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
4668 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
4669 * alpha-tdep.c (alpha_register_name): Add "unique".
4670 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
4671 (ALPHA_UNIQUE_REGNUM): New.
4672 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
4674 2003-01-31 Andrew Cagney <ac131313@redhat.com>
4676 * README: Remove reference to Ericsson 1800 monitor.
4677 * Makefile.in (remote-es.o): Delete rule.
4678 (ALLDEPFILES): Delete remote-es.c.
4679 * remote-es.c: Delete file.
4680 * config/m68k/es1800.mt: Delete file.
4681 * config/djgpp/fnchange.lst: Update.
4682 * configure.tgt: Delete m68*-ericsson-* target.
4684 2003-01-31 Adam Fedor <fedor@gnu.org>
4686 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
4687 Remove duplicate/shadowing variable of same name.
4689 2003-01-30 Jim Blandy <jimb@redhat.com>
4691 * symfile.c (find_separate_debug_file): Assert that the objfile's
4692 directory name we compute ends with a slash, and then assume that
4693 that's so everywhere we use it.
4695 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
4697 * valops.c (value_assign): Flush frame cache after stores to memory
4700 2003-01-30 Andrew Cagney <ac131313@redhat.com>
4702 * Makefile.in (mon960-rom.o): Delete rule.
4703 * mon960-rom.c: Delete file.
4705 2003-01-30 Andrew Cagney <ac131313@redhat.com>
4707 * d10v-tdep.c: Include "frame-unwind.h".
4708 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
4710 (next_addr, uses_frame): Delete.
4711 (struct d10v_unwind_cache): Define.
4712 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
4713 Use info instead of next_addr and uses_frame globals.
4714 (d10v_frame_init_saved_regs): Delete function.
4715 (d10v_init_extra_frame_info): Delete function.
4716 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
4717 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
4718 init_frame_pc or frame_saved_pc.
4719 (d10v_pop_frame): Delete function.
4720 (do_d10v_pop_frame): Delete function.
4721 (d10v_frame_chain): Delete function.
4722 (d10v_frame_chain_valid): Delete function.
4723 (d10v_frame_pc_unwind): New function.
4724 (d10v_frame_id_unwind): New function.
4725 (saved_regs_unwinder): New function.
4726 (d10v_frame_register_unwind): New function.
4727 (d10v_frame_pop): New function.
4728 (d10v_frame_unwind): New variable.
4729 (d10v_frame_p): New function.
4730 (d10v_frame_saved_pc): Delete function.
4731 * Makefile.in (d10v-tdep.o): Update dependencies.
4733 2003-01-30 J. Brobecker <brobecker@gnat.com>
4735 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
4736 causing some regressions due to a change in the default value
4739 2003-01-29 Richard Henderson <rth@redhat.com>
4740 Elena Zannoni <ezannoni@redhat.com>
4741 Daniel Jacobowitz <drow@mvista.com>
4744 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
4746 (RANGES_SECTION): New.
4747 (dwarf_ranges_buffer): New variable.
4748 (struct comp_unit_head): Add member "die".
4749 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
4750 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
4751 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
4752 (dwarf2_locate_sections): Likewise.
4753 (dwarf2_build_psymtabs): Read .debug_ranges.
4754 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
4755 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
4756 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
4757 Look for DW_AT_ranges and return the bounding box.
4759 2003-01-29 Brian Ford <ford@vss.fsi.com>
4761 * win32-nat.c (cygwin_pid): Removed as unused.
4762 (child_attach): Try fall back to Cygwin pid.
4764 2003-01-29 Jim Blandy <jimb@redhat.com>
4766 * objfiles.h (struct objfile): Doc fix.
4768 2003-01-29 Andrew Cagney <ac131313@redhat.com>
4770 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
4771 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
4772 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
4773 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
4774 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
4775 (FRAME_SAVED_PC): Change to a function with predicate.
4776 * gdbarch.h, gdbarch.c: Re-generate.
4778 2003-01-28 Andrew Cagney <ac131313@redhat.com>
4780 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
4782 * complaints.c (complain): Delete function.
4783 * complaints.h (struct deprecated_complaint): Delete definition.
4784 (complain): Delete declaration.
4786 2003-01-28 Kevin Buettner <kevinb@redhat.com>
4788 * mips-tdep.c (mips_init_extra_frame_info): Return early for
4791 2003-01-27 Andrew Cagney <ac131313@redhat.com>
4793 * sentinel-frame.h, sentinel-frame.c: New files.
4794 * Makefile.in (frame.o): Update dependencies.
4795 (SFILES): Add sentinel-frame.c.
4796 (sentinel_frame_h): Define.
4797 (COMMON_OBS): Add sentinel-frame.o.
4798 (sentinel-frame.o): Specify dependencies.
4799 * frame.c: Include "sentinel-frame.h".
4800 (frame_register_unwind): Rewrite assuming that there is always a a
4802 (frame_register, generic_unwind_get_saved_register): Ditto.
4803 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
4804 (create_sentinel_frame, unwind_to_current_frame): New functions.
4805 (get_current_frame): Rewrite using create_sentinel_frame and
4806 unwind_to_current_frame. When possible, always create a frame.
4807 (create_new_frame): Set next to the sentinel frame.
4808 (get_next_frame): Rewrite. Don't go below the level 0 frame.
4809 (deprecated_update_frame_pc_hack): Update the next frame's PC and
4810 ID cache when necessary.
4811 (frame_saved_regs_id_unwind): Use frame_relative_level.
4812 (deprecated_generic_get_saved_register): Use frame_relative_level,
4813 get_frame_saved_regs, get_frame_pc, get_frame_base and
4815 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
4818 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
4820 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
4822 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
4824 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
4825 (maintenance_set_profile_cmd): Use error () instead of warning ().
4827 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
4829 * configure.in: Check that -pg works if using --enable-profiling.
4830 Check for monstartup and _mcleanup regardless of --enable-profiling.
4831 * maint.c: Check for monstartup and _mcleanup before using them.
4832 * config.in: Regenerated.
4833 * configure: Regenerated.
4835 2003-01-24 Nick Clifton <nickc@redhat.com>
4839 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
4841 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
4842 (sh2e_show_regs): New.
4843 (sh_gdbarch_init): Handle bfd_mach_sh2e.
4844 * config/sh/tm-sh.h: Added sh2e to comments.
4846 2003-01-23 Jim Blandy <jimb@redhat.com>
4848 * symfile.c (syms_from_objfile): Don't print the "(no debugging
4849 symbols found)" message here; we haven't checked for a separate
4850 debug info file yet, so we don't know yet.
4851 (symbol_file_add_with_addrs_or_offsets): Print it here, after
4852 we've looked everywhere. Also, there's no need to print a special
4853 message when we're loading the separate debug info file: the one
4854 symbol_file_add prints is fine.
4856 2003-01-23 Alexander Larsson <alexl@redhat.com>
4857 Jim Blandy <jimb@redhat.com>
4859 Add support for executables whose debug info has been separated
4860 out into a separate file, leaving only a link behind.
4861 * objfiles.h (struct objfile): New fields: separate_debug_objfile
4862 and separate_debug_objfile_backlink.
4863 (put_objfile_before): New declaration.
4864 * symfile.c: #include "filenames.h".
4865 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
4866 debug info in a separate file, read that, too. Save the addrs
4867 argument, so we can use it again to read the separated debug info;
4868 syms_from_objfile modifies the table we pass it.
4869 (reread_symbols): After re-reading an objfile, call
4870 reread_separate_symbols to refresh its separate debug info
4871 objfile, if it has one.
4872 (reread_separate_symbols, find_separate_debug_file,
4873 get_debug_link_info, separate_debug_file_exists): New functions.
4874 (debug_file_directory): New global var.
4875 (_initialize_symfile): Initialize debug_file_directory, and
4876 provide the new `set debug-file-directory' command to let the user
4878 * objfiles.c (free_objfile): If this objfile has its debug info in
4879 a separate objfile, free that one too. If this is itself a
4880 separate debug info objfile, clear our parent's backlink.
4881 (put_objfile_before): New function.
4882 * utils.c (gnu_debuglink_crc32): New function.
4883 * defs.h (gnu_debuglink_crc32): New declaration.
4884 * Makefile.in (symfile.o): Note dependency on "filenames.h".
4885 * configure.in: Handle --with-separate-debug-dir config option.
4886 * acinclude.m4 (AC_DEFINE_DIR): New macro.
4887 * acconfig.h (DEBUGDIR): New macro.
4888 * configure, aclocal.m4, config.in: Regenerated.
4890 2003-01-22 Jim Blandy <jimb@redhat.com>
4892 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
4893 like the old symbol_file_add, but taking new arguments: you can
4894 now pass in either a `struct section_addr_info' list to say where
4895 each section is loaded, or a `struct section_offsets' table. Pass
4896 these new arguments through to syms_from_objfile as appropriate.
4897 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
4898 with the appropriate quiescent values for the new arguments.
4900 * symfile.c: #include "gdb_assert.h".
4901 (syms_from_objfile): Add the ability to pass in a section offset
4902 table directly, as an alternative to the section_addr_info table.
4903 Document arguments better.
4904 (symbol_file_add): Pass extra arguments to syms_from_objfile.
4905 * symfile.h (syms_from_objfile): Update declaration.
4906 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
4908 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
4910 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
4912 Original patch by Tom Tromey <tromey@cygnus.com> and
4913 Jason Molenda <jmolenda@apple.com>.
4914 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
4915 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
4916 * NEWS: Mention profiling.
4917 * configure.in (--enable-gdbtk): Fix typo.
4918 (--enable-profiling): New. Set PROFILE_CFLAGS.
4919 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
4921 (profiling_state): New variable.
4922 (mcleanup_wrapper): New function.
4923 (_initialize_maint): Remove NOTYET, fix call to
4924 add_setshow_boolean_cmd for "maint set profile".
4925 * configure: Regenerated.
4927 2003-01-21 Martin M. Hunt <hunt@redhat.com>
4929 * Makefile.in (install-gdbtk): Install PNG images too.
4931 2003-01-21 Andrew Cagney <ac131313@redhat.com>
4933 * exec.c (text_start): Delete global variable.
4934 (exec_file_attach): Make text_start local to the function.
4935 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
4936 * valops.c (hand_function_call): Delete code that handles
4937 BEFORE_TEXT_END and AFTER_TEXT_END.
4938 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
4939 of CALL_DUMMY_LOCATION.
4940 * gdbarch.c: Regenerate.
4941 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
4942 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
4943 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
4944 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
4945 (text_end): Delete extern declaration.
4947 2003-01-21 Andrew Cagney <ac131313@redhat.com>
4949 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
4950 * blockframe.c (backtrace_below_main): Move to "frame.c".
4951 (frame_chain_valid): Delete check for backtrace_below_main.
4952 (_initialize_blockframe): Delete initialization, move ``set
4953 backtrace-below-main'' command to "frame.c".
4954 (do_flush_frames_sfunc): Delete function.
4955 * frame.c: Include "command.h" and "gdbcmd.h".
4956 (frame_type_from_pc): New function.
4957 (create_new_frame): Use frame_type_from_pc.
4958 (legacy_get_prev_frame): New function.
4959 (get_prev_frame): Rewrite. When an old style frame, call
4960 legacy_get_prev_frame. Otherwize, unwind the PC first.
4961 (_initialize_frame): Add ``set backtrace-below-main'' command.
4962 * Makefile.in (frame.o): Update dependencies.
4964 2003-01-19 Andrew Cagney <ac131313@redhat.com>
4966 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
4967 DEPRECATED_REGISTERS_INFO.
4969 2003-01-19 Andrew Cagney <ac131313@redhat.com>
4971 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
4972 Maintainers'. Update `Various Maintainers'.
4974 2003-01-19 Andrew Cagney <ac131313@redhat.com>
4976 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
4977 * gdbarch.sh (POP_FRAME): Change to function with predicate.
4978 Suppress actual parameters when `-'.
4979 * gdbarch.h, gdbarch.c: Regenerate.
4981 2003-01-19 Andrew Cagney <ac131313@redhat.com>
4983 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
4984 code handling dummy frames.
4986 2003-01-19 Andrew Cagney <ac131313@redhat.com>
4988 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
4989 (struct frame_unwind): Add field pop.
4990 * frame.h (frame_pop): Declare.
4991 * frame.c (frame_saved_regs_pop): New function.
4992 (trad_frame_unwinder): Add frame_saved_regs_pop.
4993 (frame_pop): New function.
4994 * dummy-frame.c (dummy_frame_pop): New function.
4995 (discard_innermost_dummy): New function.
4996 (generic_pop_dummy_frame): Use discard_innermost_dummy.
4997 (dummy_frame_unwind): Add dummy_frame_pop.
4998 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
4999 * valops.c (hand_function_call): Ditto.
5000 * stack.c (return_command): Ditto.
5002 2003-01-18 Andrew Cagney <ac131313@redhat.com>
5004 * cris-tdep.c: Fix function declaration indentation.
5005 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
5006 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
5007 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
5008 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
5009 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
5010 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
5012 2003-01-18 Michael Chastain <mec@shout.net>
5014 * README (Unpacking and Installation -- quick overview):
5015 Warn against ".../gdb-5.3/gdb/configure".
5017 2003-01-18 Andrew Cagney <ac131313@redhat.com>
5019 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
5020 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
5021 (struct frame_unwind): Declare opaque.
5022 (dummy_frame_p): Declare function.
5023 * dummy-frame.c (dummy_frame_id_unwind): Make static.
5024 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
5025 * dummy-frame.c: Include "frame-unwind.h".
5026 (dummy_frame_p): New function.
5027 (dummy_frame_unwind): New variable.
5028 * frame.c: Include "frame-unwind.h".
5029 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
5030 to use the new unwind field.
5031 (set_unwind_by_pc): Delete function.
5032 (create_new_frame, get_prev_frame): Set unwind field using
5033 frame_unwind_find_by_pc.
5034 (trad_frame_unwind, trad_frame_unwinder): New variables.
5035 * frame.h (trad_frame_unwind): Declare variable.
5036 (frame_id_unwind_ftype): Delete declaration.
5037 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
5038 (struct frame_unwind): Declare opaque.
5039 (struct frame_info): Replace the fields id_unwind, pc_unwind and
5040 register_unwind with a single unwind pointer.
5041 * frame-unwind.h, frame-unwind.c: New files.
5042 * Makefile.in (SFILES): Add frame-unwind.c.
5043 (frame_unwind_h): Define.
5044 (COMMON_OBS): Add frame-unwind.o.
5045 (frame-unwind.o): Specify dependencies.
5046 (frame.o, dummy-frame.o): Update dependencies.
5048 2003-01-18 Andrew Cagney <ac131313@redhat.com>
5050 * ada-valprint.c: Eliminate PTR.
5051 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
5052 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
5053 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
5054 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
5055 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
5056 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
5057 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
5059 2003-01-17 Andrew Cagney <ac131313@redhat.com>
5061 * main.c (captured_main): Don't use PTR.
5062 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
5063 * gdbtypes.c (lookup_primitive_typename): Ditto.
5064 (lookup_struct_elt_type): Ditto.
5065 * f-valprint.c (info_common_command): Ditto.
5066 (list_all_visible_commons): Ditto.
5067 * jv-typeprint.c (java_type_print_base): Ditto.
5069 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
5070 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
5071 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
5072 i386-interix-nat.c and i386-interix-tdep.c. Rename
5073 m68klinux-nat.c and m68klinux-tdep.c. Rename
5074 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
5075 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
5076 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
5077 * main.c (captured_main): Use xfree, not free.
5079 2003-01-16 Andrew Cagney <ac131313@redhat.com>
5081 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
5082 ID back using a parameter.
5083 * frame.c (frame_id_unwind): Update call.
5084 (frame_saved_regs_id_unwind): Update.
5085 * dummy-frame.c (dummy_frame_id_unwind): Update function.
5086 * dummy-frame.h (struct frame_id): Add opaque declaration.
5087 (dummy_frame_id_unwind): Update declaration.
5089 2003-01-15 Andrew Cagney <ac131313@redhat.com>
5091 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
5093 2003-01-15 Stephen P. Smith <ischis2@cox.net>
5095 * MAINTAINERS (Stephen P. Smith): Updated email address.
5097 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
5100 * breakpoint.c (until_break_command): Add new argument. Use it to
5101 decide whether to stop only at the current frame or not.
5102 * breakpoint.h (until_break_command): Update prototype.
5103 * infcmd.c (until_command): Add new argument to until_break_command
5105 (advance_command): New function.
5106 (_initialize_infcmd): Update help string for 'until' command.
5107 Add new 'advance' command.
5109 2003-01-14 David Carlton <carlton@math.stanford.edu>
5111 * linespec.c (decode_line_1): Normalize comments.
5113 (locate_first_half): Ditto.
5114 (decode_compound): Ditto.
5115 (symtab_from_filename): Ditto.
5116 (decode_all_digits): Ditto.
5117 (decode_dollar): Ditto.
5118 (find_methods): Ditto.
5119 (find_toplevel_char): Ditto.
5121 2003-01-13 Andrew Cagney <ac131313@redhat.com>
5123 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
5124 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
5125 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
5126 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
5127 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
5128 * language.c, language.h, m32r-tdep.c: Update copyright.
5129 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
5130 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
5131 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
5132 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
5133 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
5134 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
5136 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
5138 * stabsread.h (process_later, resolve_cfront_continuation):
5140 Update copyright years.
5141 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
5142 Update copyright year.
5143 * dbxread.c(struct cont_elem): Obsolete.
5144 (process_later, process_now): Obsolete functions.
5145 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
5146 Update copyright year.
5147 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
5148 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
5149 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
5150 (parse_partial_symbols): Obsolete cfront support.
5152 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
5154 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
5155 read_cfront_baseclasses, read_cfront_member_functions,
5156 resolve_cfront_continuation,read_cfront_static_fields,
5157 copy_cfront_struct_fields): Obsolete functions.
5158 (define_symbol, read_one_struct_field): Obsolete cfront support.
5159 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
5160 Update Copyright year.
5162 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
5164 * stack.c (print_frame_info, print_stack_frame_base_stub,
5165 print_stack_frame_base, show_and_print_stack_frame_stub,
5166 show_and_print_stack_frame, print_only_stack_frame_stub,
5167 print_only_stack_frame): Delete functions.
5168 (print_stack_frame_stub): Call print_frame_info instead of
5169 print_frame_info_base.
5170 (print_frame_info_base): Rename to print_frame_info.
5171 (backtrace_command_1): Call print_frame_info, instead of
5172 print_frame_info_base.
5173 (current_frame_command): Call print_stack_frame, instead of
5174 print_only_stack_frame.
5175 (frame_command): Call print_stack_frame, instead of
5176 show_and_print_stack_frame.
5177 (up_command): Ditto.
5178 (down_command): Ditto.
5179 * frame.h (print_only_stack_frame): Delete prototype.
5180 * infrun.c (normal_stop): Call print_stack_frame, instead of
5181 show_and_print_stack_frame.
5182 * thread.c (info_threads_command): Call print_stack_frame, instead
5183 of print_only_stack_frame.
5185 2003-01-13 Andrew Cagney <ac131313@redhat.com>
5187 * README (Graphical interface to GDB): Update URL. Point at
5190 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
5193 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
5195 * symtab.c (find_pc_sect_line): Don't consider end-of-function
5198 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
5200 * thread-db.c (attach_thread): Prototype.
5201 (struct private_thread_info): Remove lwpid. Add thread handle (th),
5202 thread information (ti), and valid flags (th_valid, ti_valid).
5203 (attach_thread): Move target_pid_to_str call to after the thread
5204 is added to GDB's list. Initialize the cache.
5205 (thread_get_info_callback, thread_db_map_id2thr)
5206 (thread_db_get_info): New functions.
5207 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
5208 (thread_db_store_registers, thread_db_thread_alive)
5209 (thread_db_get_thread_local_address): Use them.
5210 (thread_db_pid_to_str): Likewise. Return "Missing" instead
5211 of calling error() for threads in unknown state.
5213 (clear_lwpid_callback): New function.
5214 (thread_db_resume): Use it to clear the cache.
5216 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
5218 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
5219 (resume_callback): Remove dead code.
5221 2003-01-13 Andrew Cagney <ac131313@redhat.com>
5223 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
5225 * gdbarch.h, gdbarch.c: Regenerate.
5226 * stack.c (frame_info): Only initialize the saved registers when
5227 FRAME_INIT_SAVED_REGS_P.
5228 * frame.c (frame_saved_regs_register_unwind): Assert
5229 FRAME_INIT_SAVED_REGS_P.
5230 (deprecated_generic_get_saved_register): Ditto.
5232 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
5234 * source.c (openp): Squelch warning about "filename".
5236 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
5238 * source.c (openp): If the file does not exist don't necessarily
5241 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
5244 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
5245 (integer_types_same_name_p): New function.
5246 (rank_one_type): Use it.
5247 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
5249 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
5251 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
5253 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
5254 * configure.in: Add --with-sysroot.
5255 * configure: Regenerated.
5256 * main.c (gdb_sysroot): New variable.
5257 (captured_main): Initialize gdb_sysroot.
5258 * defs.h (gdb_sysroot): New extern declaration.
5259 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
5261 2003-01-12 Michael Chastain <mec@shout.net>
5263 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
5265 2003-01-12 Michael Chastain <mec@shout.net>
5267 * top.c (print_gdb_version): Bump copyright year to 2003.
5269 2003-01-12 David Carlton <carlton@bactrian.org>
5271 * linespec.c (symtab_from_filename): Rename variable 's' to
5274 2003-01-12 Andrew Cagney <ac131313@redhat.com>
5276 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
5278 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
5280 2003-01-12 Andrew Cagney <ac131313@redhat.com>
5282 * d10v-tdep.c: Include "gdb_assert.h".
5283 (d10v_store_return_value): Rewrite to match current interface.
5284 (d10v_extract_struct_value_address): Ditto.
5285 (d10v_extract_return_value): Ditto.
5286 (d10v_gdbarch_init): Set store_restore_value,
5287 extract_struct_value_address and extract_return_value.
5289 2003-01-12 J. Brobecker <brobecker@gnat.com>
5291 * hpread.c (set_namestring): New procedure replacing the
5292 SET_NAMESTRING macro.
5293 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
5294 by calls to set_namestring.
5296 2003-01-11 J. Brobecker <brobecker@gnat.com>
5298 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
5299 a compilation warning.
5300 (hpread_process_one_debug_symbol): Likewise.
5302 2003-01-10 David Carlton <carlton@math.stanford.edu>
5304 * linespec.c (decode_line_1): Rename variable 's' to
5306 (decode_all_digits): Rename argument 's' to 'file_symtab'.
5307 (decode_dollar): Ditto.
5308 (decode_variable): Ditto.
5309 (symbol_found): Ditto.
5311 2003-01-09 Michael Chastain <mec@shout.net>
5313 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
5315 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
5317 * win32-nat.c (set_process_privilege): New function.
5318 (child_attach): Call set_process_privilege() to enable the
5319 SE_DEBUG_NAME user privilege if available in process token.
5321 2003-01-10 J. Brobecker <brobecker@gnat.com>
5323 * hpread.c (hpread_process_one_debug_symbol): Fix a small
5324 compilation error in the previous revision.
5326 2003-01-09 David Carlton <carlton@math.stanford.edu>
5328 * linespec.c: Update copyright.
5330 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
5332 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
5334 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
5336 2003-01-09 Andrew Cagney <ac131313@redhat.com>
5338 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
5340 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
5341 (frame_saved_regs_zalloc): Update.
5342 (frame_saved_regs_register_unwind): Update.
5343 (create_new_frame): Update.
5344 (get_prev_frame): Update.
5345 (frame_extra_info_zalloc): Update.
5346 (deprecated_get_frame_saved_regs): Update.
5347 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
5348 * cris-tdep.c: Update comment.
5350 * somsolib.h: Fix function indentation.
5351 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
5352 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
5353 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
5354 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
5355 * somsolib.c, inftarg.c: Remove assignment in if conditional.
5357 * infrun.c (follow_fork): Use ISO C definition.
5358 * expprint.c (print_subexp): Use xfree instead of free.
5359 * charset.c: Include "gdb_string.h" instead of <string.h>.
5360 (register_iconv_charsets): Use ISO C definition.
5361 (host_charset, target_charset): Ditto.
5362 * Makefile.in (charset.o): Update dependencies.
5363 (mi-cmd-env.o): Update dependencies.
5365 2003-01-08 Andrew Cagney <cagney@redhat.com>
5367 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
5370 2003-01-08 Andrew Cagney <ac131313@redhat.com>
5372 * gdb_mbuild.sh: Add --keep option. When specified, keep the
5373 build directories. Save edited gdb output in Mbuild.log. If a
5374 build fails, remove any final GDB executable.
5376 2003-01-08 Andrew Cagney <ac131313@redhat.com>
5378 * gdb_mbuild.sh: Edit the output of `maint print architecture'
5379 replacing hex constants with function names and stripping leading
5380 file name directory prefixes.
5382 2003-01-08 Andrew Cagney <cagney@redhat.com>
5384 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
5387 2003-01-08 David Carlton <carlton@math.stanford.edu>
5389 * linespec.c (decode_line_1): Move code into decode_variable.
5390 (decode_variable): New function.
5392 2003-01-08 Andrew Cagney <ac131313@redhat.com>
5394 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
5396 2003-01-08 Andrew Cagney <cagney@redhat.com>
5398 * cris-tdep.c (cris_frame_init_saved_regs): Use
5399 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
5401 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
5402 (sh64_nofp_frame_init_saved_regs): Ditto.
5403 (sh_fp_frame_init_saved_regs): Ditto.
5404 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
5405 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
5406 * mcore-tdep.c (analyze_dummy_frame): Ditto.
5407 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
5409 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
5411 * minsyms.c (lookup_minimal_symbol): Update comment.
5412 (lookup_minimal_symbol_text): Update comment. Use the hash table.
5413 (lookup_minimal_symbol_solib_trampoline): Likewise.
5415 2003-01-08 Andrew Cagney <cagney@redhat.com>
5417 * d10v-tdep.c (d10v_init_extra_frame_info): Use
5418 frame_relative_level.
5420 * alpha-tdep.c: Use get_frame_extra_info.
5421 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
5422 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
5423 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
5424 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
5426 * alpha-tdep.c: Use get_next_frame.
5427 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
5428 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
5429 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
5430 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
5431 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
5432 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
5433 * xstormy16-tdep.c: Ditto.
5435 2003-01-07 Andrew Cagney <cagney@redhat.com>
5437 * alpha-tdep.c: Use get_frame_base.
5438 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
5439 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
5440 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
5441 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
5442 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
5443 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
5444 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
5445 * config/sparc/tm-sparc.h: Ditto.
5447 2003-01-07 Andrew Cagney <cagney@redhat.com>
5449 * frame.c (deprecated_get_frame_context): New function.
5450 (deprecated_set_frame_context): New function.
5451 * frame.h (deprecated_get_frame_context): Declare.
5452 (deprecated_set_frame_context): Declare.
5453 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
5454 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
5456 2003-01-07 Andrew Cagney <cagney@redhat.com>
5458 * frame.c (deprecated_set_frame_next_hack): New function.
5459 (deprecated_set_frame_prev_hack): New function.
5460 * frame.h (deprecated_set_frame_next_hack): Declare.
5461 (deprecated_set_frame_prev_hack): Declare.
5462 * mcore-tdep.c (analyze_dummy_frame): Use
5463 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
5464 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
5466 2003-01-07 David Carlton <carlton@math.stanford.edu>
5468 * linespec.c (decode_line_1): Move code into decode_dollar.
5469 (decode_dollar): New function.
5471 2003-01-07 Andrew Cagney <cagney@redhat.com>
5473 * arm-tdep.c (arm_init_extra_frame_info): Use
5474 deprecated_update_frame_base_hack.
5475 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
5476 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
5477 (fix_frame_pointer): Ditto.
5478 (mn10300_analyze_prologue): Ditto.
5480 2003-01-07 Andrew Cagney <cagney@redhat.com>
5482 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
5483 extra_info using frame_extra_info_zalloc.
5484 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5485 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
5486 (sh64_init_extra_frame_info): Ditto.
5487 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
5488 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
5489 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
5490 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
5491 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
5492 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
5493 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
5494 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
5495 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
5496 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
5497 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5498 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
5500 * mn10300-tdep.c (analyze_dummy_frame): Use
5501 deprecated_set_frame_extra_info_hack.
5502 * mcore-tdep.c (analyze_dummy_frame): Ditto.
5504 2003-01-07 J. Brobecker <brobecker@gnat.com>
5506 * mdebugread.c (parse_symbol): Skip stProc entries which storage
5507 class is not scText. These do not define "real" procedures.
5508 (parse_partial_symbols): Likewise.
5510 2003-01-06 Michael Snyder <msnyder@redhat.com>
5512 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
5514 2003-01-06 Andrew Cagney <ac131313@redhat.com>
5516 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
5517 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
5518 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
5519 deprecated_frame_xmalloc_with_cleanup.
5520 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
5521 deprecated_frame_xmalloc.
5522 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
5523 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
5525 2003-01-06 Andrew Cagney <cagney@redhat.com>
5527 * x86-64-linux-tdep.c: Include "osabi.h".
5528 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
5530 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
5532 2003-01-06 Andrew Cagney <cagney@redhat.com>
5534 * MAINTAINERS (Target Instruction Set Architectures): Update
5535 arm-elf. Can be built with -Werror, has been multiarched.
5537 * value.h (unpack_long): Make buffer parameter constant.
5538 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
5539 * scm-lang.h (scm_parse): Ditto.
5540 * defs.h (extract_typed_address, extract_address): Ditto.
5541 (extract_long_unsigned_integer): Ditto.
5542 * inferior.h (unsigned_pointer_to_address): Ditto.
5543 (signed_pointer_to_address): Ditto.
5544 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
5545 * gdbarch.h, gdbarch.c: Regenerate.
5546 * findvar.c (extract_long_unsigned_integer): Update.
5547 (extract_address): Update.
5548 (extract_typed_address): Update.
5549 (unsigned_pointer_to_address): Update.
5550 * values.c (unpack_long): Update.
5551 (unpack_double): Update.
5552 (unpack_pointer): Update.
5553 (unpack_field_as_long): Update.
5554 * d10v-tdep.c (d10v_pointer_to_address): Update.
5555 * avr-tdep.c (avr_pointer_to_address): Update.
5556 * scm-lang.c (scm_unpack): Update.
5557 * findvar.c (signed_pointer_to_address): Update.
5559 2003-01-06 Michal Ludvig <mludvig@suse.cz>
5561 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
5562 since it is in i386-tdep.c.
5564 2003-01-06 J. Brobecker <brobecker@gnat.com>
5566 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
5567 failure introduced in the previous change.
5569 2003-01-05 Michael Chastain <mec@shout.net>
5571 * README: Remove references to deleted remote-*.c files:
5572 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
5573 remote-nrom.c, remote-os9k.c, remote-udi.c.
5575 2003-01-05 Mark Kettenis <kettenis@gnu.org>
5577 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
5578 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
5579 i386_get_longjmp_target.
5581 2003-01-05 Andrew Cagney <ac131313@redhat.com>
5583 * arm-tdep.c (prologue_cache): Change to a pointer.
5584 (_initialize_arm_tdep): Allocate prologue_cache.
5585 (check_prologue_cache): Update.
5586 (save_prologue_cache): Update.
5587 (arm_gdbarch_init): Update.
5589 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
5591 * stabsread.c (update_method_name_from_physname): Call complaint()
5594 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
5596 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
5597 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
5598 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
5600 * blockframe.c: Include "gdbcmd.h" and "command.h".
5601 (backtrace_below_main): New variable.
5602 (file_frame_chain_valid, func_frame_chain_valid)
5603 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
5604 (generic_func_frame_chain_valid): Remove functions.
5605 (frame_chain_valid, do_flush_frames_sfunc): New functions.
5606 (_initialize_blockframe): New function.
5607 * Makefile.in (blockframe.o): Update dependencies.
5608 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
5609 comment. Call frame_chain_valid ().
5610 * frame.h: Remove old prototypes. Add prototype for
5611 frame_chain_valid and update comments to match.
5612 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
5614 * gdbarch.h: Regenerated.
5615 * gdbarch.c: Regenerated.
5617 * alpha-tdep.c (alpha_gdbarch_init): Don't call
5618 set_gdbarch_frame_chain_valid.
5619 * avr-tdep.c (avr_gdbarch_init): Likewise.
5620 * cris-tdep.c (cris_gdbarch_init): Likewise.
5621 * frv-tdep.c (frv_gdbarch_init): Likewise.
5622 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
5623 * i386-tdep.c (i386_svr4_init_abi): Likewise.
5624 (i386_nw_init_abi): Likewise.
5625 (i386_gdbarch_init): Likewise.
5626 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
5627 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
5628 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
5629 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
5630 * mips-tdep.c (mips_gdbarch_init): Likewise.
5631 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
5632 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
5633 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5634 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5635 * s390-tdep.c (s390_gdbarch_init): Likewise.
5636 * sh-tdep.c (sh_gdbarch_init): Likewise.
5637 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
5638 * v850-tdep.c (v850_gdbarch_init): Likewise.
5639 * vax-tdep.c (vax_gdbarch_init): Likewise.
5640 * x86-64-tdep.c (x86_64_init_abi): Likewise.
5642 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
5643 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
5644 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
5645 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
5646 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
5647 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
5648 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
5649 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
5651 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
5653 * Makefile.in (acconfig_h): Remove incorrect macro.
5655 (osabi.o): Update dependencies.
5656 * configure.tgt: Set gdb_osabi based on target triplet.
5657 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
5658 * configure: Regenerated.
5659 * config.in: Regenerated.
5660 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
5661 (GDB_OSABI_DEFAULT): Define if not already defined.
5662 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
5663 (set_osabi_string): New variables.
5664 (gdbarch_register_osabi): Add new OS ABI to
5665 gdb_osabi_available_names.
5666 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
5667 (set_osabi, show_osabi): New functions.
5668 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
5670 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
5672 * arch-utils.c (gdbarch_info_init): Set osabi to
5673 GDB_OSABI_UNINITIALIZED.
5674 * gdbarch.sh: Add osabi to struct gdbarch and to struct
5675 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
5676 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
5677 * gdbarch.c: Regenerated.
5678 * gdbarch.h: Regenerated.
5679 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
5681 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
5682 * osabi.h (enum gdb_osabi): Move to defs.h.
5683 (gdbarch_init_osabi): Update prototype.
5684 * defs.h (enum gdb_osabi): Moved here.
5685 * Makefile.in: Update dependencies.
5687 * alpha-tdep.h: Don't include "osabi.h".
5688 (struct gdbarch_tdep): Remove osabi member.
5689 * alpha-tdep.c: Include "osabi.h".
5690 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
5691 iterate over arches. Update call to gdbarch_init_osabi.
5692 (alpha_dump_tdep): Don't dump osabi.
5693 * alpha-linux-tdep.c: Include "osabi.h".
5694 * alpha-osf1-tdep.c: Include "osabi.h".
5695 * alphafbsd-tdep.c: Include "osabi.h".
5696 * alphanbsd-tdep.c: Include "osabi.h".
5698 * arm-tdep.h: Don't include "osabi.h".
5699 (struct gdbarch_tdep): Remove osabi member.
5700 * arm-tdep.c: Include "osabi.h".
5701 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
5702 iterate over arches. Update call to gdbarch_init_osabi.
5703 (arm_dump_tdep): Don't dump osabi.
5704 * arm-linux-tdep.c: Include "osabi.h".
5705 * armnbsd-tdep.c: Include "osabi.h".
5707 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
5708 Update call to gdbarch_init_osabi.
5710 * i386-tdep.h: Don't include "osabi.h".
5711 (struct gdbarch_tdep): Remove osabi member.
5712 * i386-tdep.c: Include "osabi.h".
5713 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
5714 iterate over arches. Update call to gdbarch_init_osabi.
5715 (i386_dump_tdep): Don't dump osabi.
5716 * i386-linux-tdep.c: Include "osabi.h".
5717 * i386-sol2-tdep.c: Include "osabi.h".
5718 * i386bsd-tdep.c: Include "osabi.h".
5719 * i386gnu-tdep.c: Include "osabi.h".
5720 * i386ly-tdep.c: Include "osabi.h".
5721 * i386nbsd-tdep.c: Include "osabi.h".
5722 * i386obsd-tdep.c: Include "osabi.h".
5724 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
5725 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
5726 check osabi when iterating over arches. Update call to
5728 (mips_dump_tdep): Don't dump osabi.
5730 * ns32k-tdep.h: Don't include "osabi.h".
5731 (struct gdbarch_tdep): Remove.
5732 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
5733 gdbarch_lookup_osabi. Don't iterate over arches. Don't
5734 allocate tdep. Update call to gdbarch_init_osabi.
5735 (ns32k_dump_tdep): Remove.
5736 (_initialize_ns32k_tdep): Update call to gdbarch_register.
5737 * ns32knbsd-tdep.c: Include "osabi.h".
5739 * ppc-tdep.h: Don't include "osabi.h".
5740 (struct gdbarch_tdep): Remove osabi member.
5741 * rs6000-tdep.c: Include "osabi.h".
5742 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
5743 osabi when iterating over arches. Update call to
5745 (rs6000_dump_tdep): Don't dump osabi.
5746 * ppc-linux-tdep.c: Include "osabi.h".
5747 * ppcnbsd-tdep.c: Include "osabi.h".
5749 * sh-tdep.h: Don't include "osabi.h".
5750 (struct gdbarch_tdep): Remove osabi member.
5751 * sh-tdep.c: Include "osabi.h".
5752 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
5753 iterate over arches. Update call to gdbarch_init_osabi.
5754 (sh_dump_tdep): Don't dump osabi.
5755 * shnbsd-tdep.c: Include "osabi.h".
5757 * sparc-tdep.c: Include "osabi.h".
5758 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
5759 iterate over arches. Update call to gdbarch_init_osabi.
5760 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
5763 * vax-tdep.h: Don't include "osabi.h".
5764 (struct gdbarch_tdep): Remove.
5765 * vax-tdep.c: Include "osabi.h".
5766 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
5767 iterate over arches. Don't allocate tdep. Update call
5768 to gdbarch_init_osabi.
5769 (vax_dump_tdep): Remove.
5770 (_initialize_vax_tdep): Update call to gdbarch_register.
5772 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
5774 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
5776 (breakpoint_re_set_one): Don't fetch the value for a disabled
5779 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
5781 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
5782 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
5783 (COERCE_FLOAT_TO_DOUBLE): Remove.
5784 * gdbarch.c: Regenerate.
5785 * gdbarch.h: Regenerate.
5786 * Makefile.in: Remove value_h from gdbarch_h.
5787 * valops.c (coerce_float_to_double): New variable.
5788 (default_coerce_float_to_double): Remove.
5789 (standard_coerce_float_to_double): Remove.
5790 (value_arg_coerce): Use coerce_float_to_double.
5791 (_initialize_valops): Add "set coerce-float-to-double".
5792 * value.h (default_coerce_float_to_double): Remove prototype.
5793 (standard_coerce_float_to_double): Remove prototype.
5795 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
5797 * mdebugread.c (parse_symbol): Likewise.
5798 * stabsread.c (define_symbol): Mark all functions as prototyped.
5800 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
5801 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
5802 set_gdbarch_coerce_float_to_double.
5803 * arm-tdep.c (arm_gdbarch_init): Likewise.
5804 * frv-tdep.c (frv_gdbarch_init): Likewise.
5805 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
5806 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
5807 * mips-tdep.c (mips_gdbarch_init): Likewise.
5808 (mips_coerce_float_to_double): Remove.
5809 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5810 (rs6000_coerce_float_to_double): Remove.
5811 * s390-tdep.c (s390_gdbarch_init): Likewise.
5812 * sh-tdep.c (sh_gdbarch_init): Likewise.
5813 (sh_coerce_float_to_double): Remove.
5814 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
5815 (sparc_coerce_float_to_double): Remove.
5816 * v850-tdep.c (v850_gdbarch_init): Likewise.
5817 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
5818 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
5819 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
5820 (hppa_coerce_float_to_double): Remove prototype.
5821 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
5823 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
5825 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
5827 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
5829 Suggested by Stewart Brown <sb24@avaya.com>:
5830 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
5831 in recursive calls. Handle TYPE_CODE_TYPEDEF.
5832 (c_type_print_varspec_suffix): Likewise.
5834 2003-01-04 Mark Kettenis <kettenis@gnu.org>
5836 * configure.in: Don't set and AC_SUBST SUBDIRS.
5837 * configure: Regenerated.
5839 * configure.in: Remove code dealing with shared libraries.
5840 * Makefile.in: Remove HLDFLAGS and HLDENV.
5841 * configure: Regenerated.
5843 2003-01-04 Andrew Cagney <ac131313@redhat.com>
5845 * frame.c (deprecated_frame_xmalloc): New function.
5846 (deprecated_set_frame_saved_regs_hack): New function.
5847 (deprecated_set_frame_extra_info_hack): New function.
5848 * frame.h (deprecated_frame_xmalloc): Declare.
5849 (deprecated_set_frame_saved_regs_hack): Declare.
5850 (deprecated_set_frame_extra_info_hack): Declare.
5852 2003-01-04 Mark Kettenis <kettenis@gnu.org>
5854 * configure.in: Move code that provides the --enable-gdbtk option
5855 right after the code that handles the --enable-tui option, and
5857 * configure: Regenerated.
5859 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
5860 AC_CHECK_FUNCS and remove the old check for pread64.
5861 * acinclude.m4 (AC_GNU_SOURCE): New macro.
5862 * acconfig.h (_GNU_SOURCE): Add.
5863 (HAVE_PREAD64): Remove.
5864 * configure, aclocal.m4, config.in: Regenerated.
5866 2003-01-03 Andrew Cagney <ac131313@redhat.com>
5868 * alpha-tdep.c: Use get_frame_saved_regs.
5869 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
5870 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
5871 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
5872 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
5873 * vax-tdep.c, xstormy16-tdep.c: Ditto.
5875 2003-01-03 Mark Kettenis <kettenis@gnu.org>
5877 * configure.in: Remove all use of the SUBDIRS variable; add
5878 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
5879 code providing the --enable-multi-ice option, and move it right in
5880 front of the code that checks whether gdbserver is supported.
5882 * configure: Regenerated.
5883 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
5886 2003-01-03 Andrew Cagney <cagney@redhat.com>
5888 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
5889 * avr-tdep.c, cris-tdep.c: Ditto.
5890 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
5891 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
5893 2003-01-03 Mark Kettenis <kettenis@gnu.org>
5895 * configure.in: Remove --enable-netrom option.
5896 * configure: Regenerated.
5898 2003-01-03 Mark Kettenis <kettenis@gnu.org>
5900 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
5901 declaration for `struct re_pattern_buffer' instead.
5902 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
5904 2003-01-03 J. Brobecker <brobecker@gnat.com>
5906 * mdebugread.c (parse_symbol): Count until the stEnd matching
5909 2003-01-02 Mark Kettenis <kettenis@gnu.org>
5911 * configure.in: Remove --with-cpu option.
5912 subscripts. Remove evil changequotes here.
5913 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
5914 * config.in, configure: Regenerated.
5916 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
5917 * configure.in: Cleanup section that sources GDB and BFD configure
5918 subscripts. Remove evil changequotes here.
5919 * config.in, configure: Regenerated.
5921 2003-01-02 Andrew Cagney <ac131313@redhat.com>
5923 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
5924 frame accessor methods.
5925 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
5926 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
5927 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
5928 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
5929 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
5930 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
5931 * z8k-tdep.c: Ditto.
5933 2003-01-02 Mark Kettenis <kettenis@gnu.org>
5935 * configure.in: Remove UI_OUT configuration code.
5936 * ada-lang.c: Update assuming UI_OUT is always true.
5937 * Makefile.in (UIOUT_CFLAGS): Remove.
5938 * configure: Regenerated.
5939 * TODO: Remove blurb about elimination of -DUI_OUT.
5941 * configure.in: Move code that provides the --enable-gdbcli,
5942 --enable-gdbmi options right before the code that handles the
5943 --enable-tui option. Polish a bit.
5944 * configure: Regenerated.
5946 * configure.in: Rewrite check for GNU regex and the
5947 --without-included regex option, and move it into the "Checks for
5948 library functions" section. This makes us use the system regex
5949 again by default on systems with version 2 of the GNU C library.
5950 This was apparently broken.
5951 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
5952 * acconfig.h (USE_INCLUDED_REGEX): Remove.
5953 * config.in, configure: Regenerated.
5955 * configure.in: Move code that provides the --enable-tui option
5956 before the "Checks for libraries" section. Polish the code
5957 somewhat and set need_curses to yes if we build the TUI. Rewrite
5958 code that looks for a library providing termcap functionality to
5959 match more closely what's done in the Readline library, and move
5960 it into to the "Checks for libraries" section.
5961 * configure: Regenerated.
5962 * Makefile.in (TERMCAP): Remove variable.
5963 * config/i386/go32.mh (TERMCAP): Remove variable.
5965 2003-01-02 Andrew Cagney <ac131313@redhat.com>
5967 * MAINTAINERS: Mention gdb_mbuild.sh.
5968 * gdb_mbuild.sh: Rewrite.
5970 2003-01-02 Mark Kettenis <kettenis@gnu.org>
5972 * configure.in: Fix typo in last change.
5973 * config.in, configure: Regenerated.
5975 2003-01-02 Andrew Cagney <ac131313@redhat.com>
5977 * valarith.c (value_binop): Delete obsolete code and comments.
5978 * configure.host: Ditto.
5979 * buildsym.h (make_blockvector): Ditto.
5980 * buildsym.c (make_blockvector): Ditto.
5981 * defs.h (enum language): Ditto.
5982 (chill_demangle): Ditto.
5983 * elfread.c (elf_symtab_read): Ditto.
5984 * dwarfread.c (CHILL_PRODUCER): Ditto.
5985 (set_cu_language): Ditto.
5986 (handle_producer): Ditto.
5987 * expprint.c (print_subexp): Ditto.
5988 * gdbtypes.c (chill_varying_type): Ditto.
5989 * gdbtypes.h (builtin_type_chill_bool): Ditto.
5990 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
5991 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
5992 (chill_varying_type): Ditto.
5993 * language.h (_LANG_chill): Ditto.
5994 * language.c (binop_result_type, integral_type): Ditto.
5995 (character_type, string_type, structured_type): Ditto.
5996 (lang_bool_type, binop_type_check): Ditto.
5997 * stabsread.h (os9k_stabs): Ditto.
5998 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
5999 (define_symbol, read_type, read_struct_fields): Ditto.
6000 (read_array_type, read_enum_type, read_huge_number): Ditto.
6001 (read_range_type, start_stabs): Ditto.
6002 * symfile.c (init_filename_language_table): Ditto.
6003 (add_psymbol_with_dem_name_to_list): Ditto.
6004 * symtab.c (symbol_init_language_specific): Ditto.
6005 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
6006 * symtab.h (struct general_symbol_info): Ditto.
6007 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6008 * typeprint.c (typedef_print): Ditto.
6009 * utils.c (fprintf_symbol_filtered): Ditto.
6010 * valops.c (value_cast, search_struct_field, value_slice): Delete
6012 (varying_to_slice): Delete function.
6013 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
6014 (varying_to_slice): Delete declaration.
6015 * MAINTAINERS: Update.
6017 2003-01-02 Mark Kettenis <kettenis@gnu.org>
6019 * configure.in: Reorganize "Checks for library functions section"
6020 a bit. Remove check for `btowc' and `isascii' functions.
6021 * configure: Regenerated.
6023 * acconfig.h (_MSE_INT_H): Remove.
6024 * configure.in: Create "Checks for header files" section, and move
6025 appropriate tests there. Don't check for objlist.h, wchar.h,
6026 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
6027 misdetection fix. Also add "Checks for types", "Checks for
6028 compiler characteristics" and "Checks for library functions"
6030 * config.in, configure: Regenerated.
6032 * configure.in: Create "Checks for programs" section, and move
6033 appropriate tests there.
6035 2003-01-01 Mark Kettenis <kettenis@gnu.org>
6037 * configure.in: Create "Checks for libraries" section, and move
6038 appropriate tests there. Cleanup check for wctype in libw. Use
6039 AC_SEARCH_LIBS to see whether we need libsocket.
6040 * configure: Regenerated.
6042 For older changes see ChangeLog-2002
6048 version-control: never