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