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