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